commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
3bfa4f7fad51c3a6f6c6ff8c3ecd260b2f9614cc | --- __tests__/__mocks__/@walmart/allspark-foundation/Redux.js
@@ -1,4 +1,4 @@
-const { jest } = require('@jest/globals');
+const {jest} = require('@jest/globals');
const initialStateMock = {};
--- __tests__/__mocks__/@walmart/gtp-shared-components.js
@@ -1,4 +1,4 @@
-const snackbar = { addSnack: jest.fn() };
+const snackbar = {addSnack: jest.fn()};
module.exports = {
...jest.requireActual('@walmart/gtp-shared-components'),
IconButton: 'IconButton',
--- __tests__/__mocks__/data/redux/mockState/index.ts
@@ -1,9 +1,9 @@
-const { clockStatusState } = require('./clockStatusState');
-const { hourlyUserState } = require('./userState');
-const { appConfigState } = require('./appConfigState');
-const { siteState } = require('./siteState');
-const { deviceInfoState } = require('./deviceInfoState');
-const { authState } = require('./authState');
+const {clockStatusState} = require('./clockStatusState');
+const {hourlyUserState} = require('./userState');
+const {appConfigState} = require('./appConfigState');
+const {siteState} = require('./siteState');
+const {deviceInfoState} = require('./deviceInfoState');
+const {authState} = require('./authState');
export const initialStateMock = {
auth: {
@@ -20,8 +20,8 @@ export const initialStateMock = {
isStartingUp: true,
isSafeForFeatures: false,
},
- deviceInfo: { ...deviceInfoState },
- environment: { env: 'dev' },
+ deviceInfo: {...deviceInfoState},
+ environment: {env: 'dev'},
network: {
initializing: false,
initialized: false,
--- __tests__/components/MyWalmartTeamSwitcher.test.tsx
@@ -55,7 +55,7 @@ jest.mock('react-redux', () => ({
useSelector: jest.fn((selector: any) => {
const store = global.__mockStore;
const state = store ? store.getState() : _initialMockState;
-
+
// Handle selector functions - check if it's actually a function
if (typeof selector === 'function') {
try {
@@ -66,7 +66,7 @@ jest.mock('react-redux', () => ({
return undefined;
}
}
-
+
// Fallback for non-function selectors
return undefined;
}),
--- __tests__/store/middleware/sagas.test.ts
@@ -6,6 +6,13 @@
import {runSaga} from 'redux-saga';
import {take, takeLatest} from 'redux-saga/effects';
+import {
+ handleNetworkChange,
+ handleImpersonation,
+ AssociateExpHubSagas,
+} from '../../../src/store/middleware/sagas';
+import {AssociateExpHubLogger} from '../../../src/utils/logger';
+
// Mock NetInfo before importing
const NetInfoStateType = {
wifi: 'wifi',
@@ -27,13 +34,6 @@ jest.mock('@react-native-community/netinfo', () => ({
},
}));
-import {
- handleNetworkChange,
- handleImpersonation,
- AssociateExpHubSagas,
-} from '../../../src/store/middleware/sagas';
-import {AssociateExpHubLogger} from '../../../src/utils/logger';
-
const loggerSpy = jest.spyOn(AssociateExpHubLogger, 'info').mockImplementation(() => {});
describe('Redux Sagas Integration Tests', () => {
| feat(ui): fix lint errors | feat(ui): fix lint errors
|
f1e26ed94c61c91ed7e468bbdd723ffe3626c4b8 | --- docs/CHANGELOG.md
@@ -1,3 +1,17 @@
+# [2.30.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.29.0...v2.30.0) (2025-05-01)
+
+
+### Bug Fixes
+
+* SMDV-9999 update tests ([0fb0984](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/0fb0984bd0d19add47677da374c4b10283a82ef5))
+
+
+### Features
+
+* SMDV-9999 update query ([c3bb09f](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/c3bb09f744bcde8af7ea0217e6165f6524fda9d9))
+* **ui:** update query ([9fd21ef](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/9fd21efb6fdda80d01f42cb1f0fdddda20b20135))
+* **ui:** update query ([36dad6a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/36dad6a7432712c4298aa7eb70a1a8a55bc01626))
+
# [2.29.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.28.0...v2.29.0) (2025-04-30)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.29.0",
+ "version": "2.30.0",
"main": "dist/index.js",
"files": [
"dist/"
| chore(release): 2.30.0 [skip ci] | chore(release): 2.30.0 [skip ci]
# [2.30.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.29.0...v2.30.0) (2025-05-01)
### Bug Fixes
* SMDV-9999 update tests ([0fb0984](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/0fb0984bd0d19add47677da374c4b10283a82ef5))
### Features
* SMDV-9999 update query ([c3bb09f](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/c3bb09f744bcde8af7ea0217e6165f6524fda9d9))
* **ui:** update query ([9fd21ef](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/9fd21efb6fdda80d01f42cb1f0fdddda20b20135))
* **ui:** update query ([36dad6a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/36dad6a7432712c4298aa7eb70a1a8a55bc01626))
|
8e4321a259e34013bec49eb1d8f2b73798d98101 | --- src/components/AssociateRosterItem/index.tsx
@@ -45,8 +45,8 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
SiteSelectors.getUserWorkingSite,
);
const currentUser = useSelector(UserSelectors.getUser) as Associate;
- const isWeeklyScheduleVisible: boolean = useRbacConfigWithJobCode();
- const isSalariedAssociate: boolean = isWeeklyScheduleVisible;
+ const showStatusChipAndIsWeeklyScheduleVisible: boolean =
+ useRbacConfigWithJobCode();
const userIsInRoster = useUserIsInRoster();
const isPushToTalkEnabled: boolean = useSelector(pushToTalkEnabled);
const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled);
@@ -83,7 +83,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
}
trailing={
<>
- {isSalariedAssociate && (
+ {showStatusChipAndIsWeeklyScheduleVisible && (
<StatusChip
associate={associate}
encryptedId={encryptedId}
@@ -133,7 +133,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
{namecase(formatSchedule(associate?.storeSchedule))}
</Body>
)}
- {isWeeklyScheduleVisible && (
+ {showStatusChipAndIsWeeklyScheduleVisible && (
<TouchableOpacity
onPress={() => {
goToIndividualSchedule(
--- src/components/AssociateRosterItem/index.tsx
@@ -45,8 +45,8 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
SiteSelectors.getUserWorkingSite,
);
const currentUser = useSelector(UserSelectors.getUser) as Associate;
- const isWeeklyScheduleVisible: boolean = useRbacConfigWithJobCode();
- const isSalariedAssociate: boolean = isWeeklyScheduleVisible;
+ const showStatusChipAndIsWeeklyScheduleVisible: boolean =
+ useRbacConfigWithJobCode();
const userIsInRoster = useUserIsInRoster();
const isPushToTalkEnabled: boolean = useSelector(pushToTalkEnabled);
const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled);
@@ -83,7 +83,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
}
trailing={
<>
- {isSalariedAssociate && (
+ {showStatusChipAndIsWeeklyScheduleVisible && (
<StatusChip
associate={associate}
encryptedId={encryptedId}
@@ -133,7 +133,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
{namecase(formatSchedule(associate?.storeSchedule))}
</Body>
)}
- {isWeeklyScheduleVisible && (
+ {showStatusChipAndIsWeeklyScheduleVisible && (
<TouchableOpacity
onPress={() => {
goToIndividualSchedule(
| Added requested PR changes | Added requested PR changes
|
2a196c8e657ffd20d3811d641a4c738278bbda24 | --- __tests__/containers/ChatInput/index.test.tsx
@@ -142,8 +142,6 @@ describe('ChatInput', () => {
expect(launchImageLibraryAsync).toHaveBeenCalledWith({
mediaTypes: 'Images',
selectionLimit: 1,
- quality: 0.5,
- allowsEditing: true,
});
expect(analytics).toHaveBeenNthCalledWith(1, 'attach_photo', {
message: 'attach image to chat input',
| feat(ui): update the image attachment editing section | feat(ui): update the image attachment editing section
|
8bd81f0fc89d12ba5d368241c74211d34ff85c3a | --- container/index.tsx
@@ -72,9 +72,9 @@ const RootApp = () => (
<StatusBar barStyle='light-content' />
<AuthenticatorView>
<NavigationContainer {...navContainerProps}>
- <RootNav.Navigator>
+ <RootNav.Navigator screenOptions={{headerMode: 'float', headerShown: false}}>
<RootNav.Screen component={LauncherView} name='main' />
- <RootNav.Screen name={'texting'} component={MyTeamStackNav} />
+ <RootNav.Screen name={'texting'} component={MyTeamStackNav} />
</RootNav.Navigator>
</NavigationContainer>
</AuthenticatorView>
--- container/index.tsx
@@ -72,9 +72,9 @@ const RootApp = () => (
<StatusBar barStyle='light-content' />
<AuthenticatorView>
<NavigationContainer {...navContainerProps}>
- <RootNav.Navigator>
+ <RootNav.Navigator screenOptions={{headerMode: 'float', headerShown: false}}>
<RootNav.Screen component={LauncherView} name='main' />
- <RootNav.Screen name={'texting'} component={MyTeamStackNav} />
+ <RootNav.Screen name={'texting'} component={MyTeamStackNav} />
</RootNav.Navigator>
</NavigationContainer>
</AuthenticatorView>
| remove extra header in container | remove extra header in container
|
321c0a7dc258e7c485e35acba1524d05dd7972a2 | --- package-lock.json
@@ -5542,9 +5542,9 @@
"integrity": "sha512-0Aemva6snk2LgySyY2NRuF9xKBS7DpGs1oPcDlaOjeXU3NRL7+DzbhY2VZhRIYxQKLz/MOC6NF81SzdgxlVimg=="
},
"@walmart/taskit-mini-app": {
- "version": "0.34.3",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.34.3.tgz",
- "integrity": "sha512-nwQi/cpifbTblJCVPZKXbSbUxeeIPufqsyHMmcdBaXE6BNngn8lDVdH8U+924f6mjjNTEbLuFROiSSmJZAf2iQ=="
+ "version": "0.34.4",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.34.4.tgz",
+ "integrity": "sha512-pOudfyWlVLxjvsbHnOumX6FHPBH/qoDeElA9Ii5zcWgvjjn57mMZJT4nkfFEdhx3970uMXwMiPuA5AI9j7J4wA=="
},
"@walmart/time-clock-mini-app": {
"version": "0.13.1",
--- package.json
@@ -116,7 +116,7 @@
"@walmart/schedule-mini-app": "0.24.0",
"@walmart/settings-mini-app": "1.8.0",
"@walmart/shelfavailability-mini-app": "1.2.3",
- "@walmart/taskit-mini-app": "0.34.3",
+ "@walmart/taskit-mini-app": "0.34.4",
"@walmart/time-clock-mini-app": "0.13.1",
"@walmart/ui-components": "1.4.0",
"@walmart/welcomeme-mini-app": "0.70.0",
| Taskit version update | Taskit version update
|
66c33e70f2438db211c1c31a83911871fd0dd6fb | --- graphql.yml
@@ -58,29 +58,29 @@ applications:
queryTemplate: "src/queries/upsertAssociateTextPreference.graphql"
tags:
- "v1"
- - name: "prod"
- persistedQueries:
- - name: "GetAssociateClockStatus"
- queryTemplate: "src/queries/getAssociateClockStatus.graphql"
- tags:
- - "v1"
- - name: "GetAssociateName"
- queryTemplate: "src/queries/getAssociateName.graphql"
- tags:
- - "v1"
- - name: "GetDailyRoster"
- queryTemplate: "src/queries/getDailyRoster.graphql"
- tags:
- - "v1"
- - name: "GetTeamById"
- queryTemplate: "src/queries/getTeamById.graphql"
- tags:
- - "v1"
- - name: "GetTeamsByStore"
- queryTemplate: "src/queries/getTeamsByStore.graphql"
- tags:
- - "v1"
- - name: "upsertAssociateTextPreferences"
- queryTemplate: "src/queries/upsertAssociateTextPreference.graphql"
- tags:
- - "v1"
+ # - name: "prod"
+ # persistedQueries:
+ # - name: "GetAssociateClockStatus"
+ # queryTemplate: "src/queries/getAssociateClockStatus.graphql"
+ # tags:
+ # - "v1"
+ # - name: "GetAssociateName"
+ # queryTemplate: "src/queries/getAssociateName.graphql"
+ # tags:
+ # - "v1"
+ # - name: "GetDailyRoster"
+ # queryTemplate: "src/queries/getDailyRoster.graphql"
+ # tags:
+ # - "v1"
+ # - name: "GetTeamById"
+ # queryTemplate: "src/queries/getTeamById.graphql"
+ # tags:
+ # - "v1"
+ # - name: "GetTeamsByStore"
+ # queryTemplate: "src/queries/getTeamsByStore.graphql"
+ # tags:
+ # - "v1"
+ # - name: "upsertAssociateTextPreferences"
+ # queryTemplate: "src/queries/upsertAssociateTextPreference.graphql"
+ # tags:
+ # - "v1"
| feat: commented out prod | feat: commented out prod
|
99c088f2db9357c44e860bbcc9180994bfd953f4 | --- packages/me-at-walmart-container/__tests__/services/site/fetchSiteInfo.test.ts
@@ -65,7 +65,7 @@ describe('fetchSiteInfo', () => {
expect(result).toEqual({});
expect(
MeAtWalmartLoggerService.getContainerInstance().warn,
- ).toHaveBeenCalledWith('No configs exist for this store (bff).', {
+ ).toHaveBeenCalledWith('No configs exist for this store in bff.', {
storeNumber: mockStoreNumber,
});
});
--- packages/me-at-walmart-container/__tests__/services/site/querySiteInfo.test.ts
@@ -180,7 +180,7 @@ describe('querySiteInfo', () => {
expect(
MeAtWalmartLoggerService.getContainerInstance().error,
).toHaveBeenCalledWith(`Failed to fetch store configs from athena`, {
- message: 'No store data found (athena)',
+ message: 'No store data found in athena',
site: mockStoreNumber,
countryCode: mockCountryCode,
});
--- packages/me-at-walmart-container/src/services/site/fetchSiteInfo.ts
@@ -35,7 +35,7 @@ export const fetchSiteInfo = async (
return data;
}
MeAtWalmartLoggerService.getContainerInstance().warn(
- 'No configs exist for this store (bff).',
+ 'No configs exist for this store in bff.',
{
storeNumber,
},
--- packages/me-at-walmart-container/src/services/site/querySiteInfo.ts
@@ -47,7 +47,7 @@ export const querySiteInfo = async (
if (!storeData) {
// previously we were returning null.
- throw new Error('No store data found athena');
+ throw new Error('No store data found in athena');
}
const parsedStoreData = getParsedStoreMetaData(
| removing paranthesis | removing paranthesis
|
53e9492bc58ae759e896e579241a246adbf89160 | --- packages/allspark-http-client/src/HttpClient.ts
@@ -365,7 +365,7 @@ class HttpClient extends Axios implements IHttpClient {
* @deprecated Use httpClient.clones instead
*/
public get clonedInstanceMap() {
- return this.clones;
+ return Object.fromEntries(this.clones.entries());
}
/**
| fix: backwards compatability fix | fix: backwards compatability fix
|
c4a16ca6dc2fae1a6fafd3172f10258706cbf33a | --- package.json
@@ -93,7 +93,7 @@
"@walmart/ask-sam-mini-app": "1.35.17",
"@walmart/associate-exp-hub-hub": "2.17.0",
"@walmart/associate-exp-hub-team-switcher": "2.19.0",
- "@walmart/associate-listening-mini-app": "1.2.39",
+ "@walmart/associate-listening-mini-app": "1.2.59",
"@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch",
"@walmart/avp-feature-app": "0.28.31",
"@walmart/avp-shared-library": "0.27.21",
--- yarn.lock
@@ -7389,30 +7389,30 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/associate-listening-mini-app@npm:1.2.39":
- version: 1.2.39
- resolution: "@walmart/associate-listening-mini-app@npm:1.2.39::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2F%40walmart%2Fassociate-listening-mini-app-1.2.39.tgz"
+"@walmart/associate-listening-mini-app@npm:1.2.59":
+ version: 1.2.59
+ resolution: "@walmart/associate-listening-mini-app@npm:1.2.59::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2F%40walmart%2Fassociate-listening-mini-app-1.2.59.tgz"
dependencies:
- "@walmart/associate-listening-utils": "npm:6.1.2"
+ "@walmart/associate-listening-utils": "npm:6.4.2"
peerDependencies:
- "@react-navigation/native": ^6.0.0
- "@react-navigation/stack": ^6.1.0
+ "@react-navigation/native": ^7.0.0
+ "@react-navigation/stack": ^7.0.0
"@reduxjs/toolkit": ^1.9.5
"@walmart/allspark-foundation": "*"
- "@walmart/gtp-shared-components": 2.0.5
- react: ^18.2.0
- react-native: 0.70.9
- checksum: 10c0/544290fa5a62decd4f80d71909a1241cf43be3b023e1cc499adc315edc5c0c16c55912ff380d2a4a1de6eabedd2d9c1ad3e978cb18ed1c79abe1f9fa60bea2fb
+ "@walmart/gtp-shared-components": 3.0.0-beta.8
+ react: ^18.3.1
+ react-native: 0.79.5
+ checksum: 10c0/a5bc224b8daf4eb432e1a674f87b10093903d114f1507037b07cc6d7642e8d12888c4c544430834e87dacbaf1c3eea87f23090eaf30fc60e61f23b6bc2a8d8c9
languageName: node
linkType: hard
-"@walmart/associate-listening-utils@npm:6.1.2":
- version: 6.1.2
- resolution: "@walmart/associate-listening-utils@npm:6.1.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-utils%2F-%2F%40walmart%2Fassociate-listening-utils-6.1.2.tgz"
+"@walmart/associate-listening-utils@npm:6.4.2":
+ version: 6.4.2
+ resolution: "@walmart/associate-listening-utils@npm:6.4.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-utils%2F-%2F%40walmart%2Fassociate-listening-utils-6.4.2.tgz"
dependencies:
"@types/semver": "npm:^7.3.4"
semver: "npm:^7.3.4"
- checksum: 10c0/494ae5e38afb13c7cc7f50b7d7ff69ac189c911ee421933448daff770bd0e982bf1d2ac04a04062d31f293b96f3ebe9ce3d031325f0e3abf8cef04629ad239dc
+ checksum: 10c0/e5c22bcd2acd118de515d5b8d4b630bda9d9001286797c6ebc603ef970f620a3485873c9c7bbc39b04ea8c3af8aad169a56c9d34230a69895aa5430ca5b1233e
languageName: node
linkType: hard
@@ -8433,7 +8433,7 @@ __metadata:
"@walmart/ask-sam-mini-app": "npm:1.35.17"
"@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.39"
+ "@walmart/associate-listening-mini-app": "npm:1.2.59"
"@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch"
"@walmart/avp-feature-app": "npm:0.28.31"
"@walmart/avp-shared-library": "npm:0.27.21"
| feat(add survey experience to mywalmart 2.0): Add survey experience (#5100) | feat(add survey experience to mywalmart 2.0): Add survey experience (#5100)
Co-authored-by: Serhii Kozak - s0k0dh2 <Serhii.Kozak@walmart.com>
Co-authored-by: Yarien Mendez Suarez - y0m07dz <Yarien.Mendez.Suarez@walmart.com>
Co-authored-by: p0l06i1 <pavel.lyubich@walmart.com>
Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com> |
695303f55f381324b06835b5bf8b3a2edf18f8eb | --- __tests__/auth/ErrorScreenTest.tsx
@@ -83,7 +83,7 @@ describe('ErrorScreen', () => {
expect(mockNavigation.goBack).toHaveBeenCalled();
expect(logger.error).toHaveBeenCalledWith('SSO error while Login', {
message: 'N/A',
- userId: 'Encrypted-swalton3-1234',
+ userId: 'Encrypted-SWALTON3-1234',
siteId: '1234',
});
expect(interactionSpy).toHaveBeenCalled();
@@ -115,7 +115,7 @@ describe('ErrorScreen', () => {
expect(mockNavigation.goBack).toHaveBeenCalled();
expect(logger.error).toHaveBeenCalledWith('SSO error while Login', {
message: 'no details entered by the user',
- userId: 'Encrypted-swalton3-1234',
+ userId: 'Encrypted-SWALTON3-1234',
siteId: '1234',
});
expect(interactionSpy).toHaveBeenCalled();
| test case update | test case update
(cherry picked from commit cd3091d5e02a53499706a1ef5a2fbadfd222fe77)
|
6c8cc3fadaae849daf713c6b0053e473fbb0360c | --- ios/Podfile.lock
@@ -538,7 +538,7 @@ PODS:
- RCTTypeSafety
- React
- ReactCommon/turbomodule/core
- - react-native-scanner-3.0 (0.1.31):
+ - react-native-scanner-3.0 (0.1.32):
- Firebase/Analytics
- React
- ScanditBarcodeCapture (= 6.14.0)
@@ -1220,7 +1220,7 @@ SPEC CHECKSUMS:
react-native-ptt-module: 47e1b73551afa3830155cc92f4809d06c38e5eca
react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe
react-native-safe-area-context: 6c12e3859b6f27b25de4fee8201cfb858432d8de
- react-native-scanner-3.0: 3f55eacd2c852b405acabf13c64550d493d1f5f7
+ react-native-scanner-3.0: a0549e6f451262c91e545d3b69a6b9d8cf2ac1eb
react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457
react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253
react-native-view-shot: 792829857bbb23a9c8acdad9a640554bdee397a3
@@ -1285,6 +1285,6 @@ SPEC CHECKSUMS:
Yoga: 99caf8d5ab45e9d637ee6e0174ec16fbbb01bcfc
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
-PODFILE CHECKSUM: a23c1858b7b05e6c80a1b95fc18cf16ce3906a6a
+PODFILE CHECKSUM: 5d9ba60be3dfb87f4278eff1d4ebb95b0c7dbcf4
COCOAPODS: 1.12.0
--- src/images/assets/index.ts
@@ -46,6 +46,7 @@ const Images: {[key: string]: ImageURISource} = {
taskDigitalOvernight: require('./tasks/task-image-digital.png'),
taskEntertainment: require('./tasks/task-image-entertainment.png'),
taskFoodConsumables: require('./tasks/task-image-foodandconsumables.png'),
+ taskFrontEnd: require('./tasks/task-image-frontend.png'),
taskFrontEndCheckout: require('./tasks/task-image-frontend.png'),
taskFrontEndService: require('./tasks/task-image-frontend.png'),
taskFuel: require('./tasks/task-image-fuel.png'),
@@ -55,6 +56,7 @@ const Images: {[key: string]: ImageURISource} = {
taskPharmacy: require('./tasks/task-image-pharmacy.png'),
taskRemodel: require('./tasks/task-image-remodel.png'),
taskSeasonal: require('./tasks/task-image-seasonal.png'),
+ taskStocking: require('./tasks/task-image-stockingday.png'),
taskStockingDay: require('./tasks/task-image-stockingday.png'),
taskStockingON: require('./tasks/task-image-stockingovernight.png'),
taskStockingOvernight: require('./tasks/task-image-stockingovernight.png'),
| fixing front end image on task card | fixing front end image on task card
|
c921ecab05da51b26342979c94824317ca3abae3 | --- packages/allspark-authentication/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [7.1.5](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-authentication@7.1.4...@walmart/allspark-authentication@7.1.5) (2025-12-01)
+
+**Note:** Version bump only for package @walmart/allspark-authentication
+
## [7.1.4](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-authentication@7.1.3...@walmart/allspark-authentication@7.1.4) (2025-11-26)
**Note:** Version bump only for package @walmart/allspark-authentication
--- packages/allspark-authentication/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-authentication",
- "version": "7.1.4",
+ "version": "7.1.5",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/allspark-foundation-hub/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.25.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.24.14...@walmart/allspark-foundation-hub@1.25.0) (2025-12-01)
+
+### Features
+
+- **redux:** redux|@reduxjs/toolkit to 2.0+ ([#462](https://gecgithub01.walmart.com/allspark/allspark/issues/462)) ([63d0065](https://gecgithub01.walmart.com/allspark/allspark/commit/63d00651668e340e24016d4b8b579fd93f079cef))
+
## [1.24.14](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.24.13...@walmart/allspark-foundation-hub@1.24.14) (2025-11-26)
**Note:** Version bump only for package @walmart/allspark-foundation-hub
--- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.24.14",
+ "version": "1.25.0",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/allspark-foundation/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [7.16.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.15.0...@walmart/allspark-foundation@7.16.0) (2025-12-01)
+
+### Features
+
+- **redux:** redux|@reduxjs/toolkit to 2.0+ ([#462](https://gecgithub01.walmart.com/allspark/allspark/issues/462)) ([63d0065](https://gecgithub01.walmart.com/allspark/allspark/commit/63d00651668e340e24016d4b8b579fd93f079cef))
+
# [7.15.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.14.4...@walmart/allspark-foundation@7.15.0) (2025-11-26)
### Features
--- packages/allspark-foundation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation",
- "version": "7.15.0",
+ "version": "7.16.0",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
--- packages/allspark-utils/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [7.2.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-utils@7.1.1...@walmart/allspark-utils@7.2.0) (2025-12-01)
+
+### Features
+
+- **redux:** redux|@reduxjs/toolkit to 2.0+ ([#462](https://gecgithub01.walmart.com/allspark/allspark/issues/462)) ([63d0065](https://gecgithub01.walmart.com/allspark/allspark/commit/63d00651668e340e24016d4b8b579fd93f079cef))
+
## [7.1.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-utils@7.1.0...@walmart/allspark-utils@7.1.1) (2025-11-12)
**Note:** Version bump only for package @walmart/allspark-utils
--- packages/allspark-utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-utils",
- "version": "7.1.1",
+ "version": "7.2.0",
"description": "",
"author": "rlane1 <russell.lane@walmart.com>",
"homepage": "",
--- packages/me-at-walmart-geolocation/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.4.18](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.17...@walmart/me-at-walmart-geolocation@1.4.18) (2025-12-01)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-geolocation
+
## [1.4.17](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.16...@walmart/me-at-walmart-geolocation@1.4.17) (2025-11-26)
**Note:** Version bump only for package @walmart/me-at-walmart-geolocation
--- packages/me-at-walmart-geolocation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-geolocation",
- "version": "1.4.17",
+ "version": "1.4.18",
"description": "Geofencing, location tracking and location services for me@ apps",
"author": "m0n09mr <maksym.novakh@walmart.com>",
"main": "./lib/cjs/index.js",
--- packages/me-at-walmart-location/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.2.18](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.17...@walmart/me-at-walmart-location@1.2.18) (2025-12-01)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-location
+
## [1.2.17](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.16...@walmart/me-at-walmart-location@1.2.17) (2025-11-26)
**Note:** Version bump only for package @walmart/me-at-walmart-location
--- packages/me-at-walmart-location/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-location",
- "version": "1.2.17",
+ "version": "1.2.18",
"description": "Geofencing, location tracking and location services for me@ apps",
"author": "m0n09mr <maksym.novakh@walmart.com>",
"main": "./lib/cjs/index.js",
--- packages/my-walmart-hub/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.5.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.4.14...@walmart/my-walmart-hub@1.5.0) (2025-12-01)
+
+### Features
+
+- **redux:** redux|@reduxjs/toolkit to 2.0+ ([#462](https://gecgithub01.walmart.com/allspark/allspark/issues/462)) ([63d0065](https://gecgithub01.walmart.com/allspark/allspark/commit/63d00651668e340e24016d4b8b579fd93f079cef))
+
## [1.4.14](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.4.13...@walmart/my-walmart-hub@1.4.14) (2025-11-26)
**Note:** Version bump only for package @walmart/my-walmart-hub
--- packages/my-walmart-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/my-walmart-hub",
- "version": "1.4.14",
+ "version": "1.5.0",
"description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/allspark-authentication@7.1.5
- @walmart/allspark-foundation@7.16.0
- @walmart/allspark-foundation-hub@1.25.0
- @walmart/allspark-utils@7.2.0
- @walmart/me-at-walmart-geolocation@1.4.18
- @walmart/me-at-walmart-location@1.2.18
- @walmart/my-walmart-hub@1.5.0
|
6e760378a5e81dd077c194010657a11e04bd601f | --- packages/allspark-foundation/src/Core/docs/AllsparkNamespace.md
@@ -0,0 +1,210 @@
+# Allspark Namespace
+
+The Allspark global namespace connects feature and container typings to the Allspark Foundation. This enables accurate feature to feature communication via shared foundation services.
+
+## Interface Definition
+
+```ts
+ namespace Allspark {
+ interface Environment extends BaseAllsparkEnvironment {}
+
+ interface ScreenParams extends ParamListBase {}
+
+ interface ModalParams extends BaseModalParams {}
+
+ interface ComponentContainers extends ComponentPropListBase {}
+ interface DynamicComponents extends ComponentPropListBase {}
+ interface SharedComponents extends ComponentPropListBase {}
+ }
+```
+
+### Environment
+
+Environment defines the environment variables available on `AllsparkEnvironment`.
+
+A container should extend this interface to add its unique variables so that others using `AllsparkEnvironment` have correct typings.
+
+```ts
+type MyContainerEnvironment = { ... };
+
+declare global {
+ namespace Allspark {
+ interface Environment extends MyContainerEnvironment{}
+ }
+}
+```
+
+### Screen Params
+
+`ScreenParams` defines the screens available through the `AllsparkNavigationClient` and their params. A feature should extend this interface for any screens it wishes to make available to others.
+
+```ts
+type MyScreenParams = {
+ 'MyFeature.Screen1': { userId: string },
+}
+
+declare global {
+ namespace Allspark {
+ interface ScreenParams extends MyScreenParams {}
+ }
+}
+```
+
+### Modal Params
+
+`ModalParams` defines the modals available through the `AllsparkNavigationClient` and their params. A feature should extend this interface for any modals it wishes to make available to others.
+
+```ts
+type MyModalParams = {
+ 'MyFeature.Modal1': { userId: string },
+}
+
+declare global {
+ namespace Allspark {
+ interface ModalParams extends MyModalParams{}
+ }
+}
+```
+
+### Component Containers
+
+`ComponentContainers` defines the component containers available through the `AllsparkComponentContainers` client and their props. A feature should extend this interface for any component containers it wishes to share with others.
+
+```ts
+const MyComponentContainer = AllsparkComponentContainers.create<SomeProps>('MyContainer');
+
+type MyComponentContainerProps = {
+ 'MyFeature.MyContainer': SomeProps
+}
+
+declare global {
+ namespace Allspark {
+ interface ComponentContainers extends MyComponentContainerProps {}
+ }
+}
+```
+
+### Dynamic Components
+
+`DynamicComponents` defines the dynamic components available through the `AllsparkDynamicComponents` client and their props. A feature should extend this interface for any dynamic components it wishes to share with others.
+
+```ts
+const MyDynamicComponent = AllsparkDynamicComponents.create<SomeProps>('MyDynamicComponent');
+
+type MyDynamicComponentProps = {
+ 'MyFeature.MyDynamicComponent': SomeProps
+}
+
+declare global {
+ namespace Allspark {
+ interface DynamicComponents extends MyDynamicComponentProps {}
+ }
+}
+```
+
+### Shared Components
+
+`SharedComponents` defines the shared components available through the `AllsparkSharedComponents` client and their props. A feature should extend this interface for any components it wishes to share with others.
+
+```tsx
+const SharedComponent = (props: SomeProps) => {...}
+
+type MySharedComponentProps = {
+ 'MyFeature.SharedComponent': SomeProps
+}
+
+declare global {
+ namespace Allspark {
+ interface SharedComponents extends MySharedComponentProps {}
+ }
+}
+```
+
+## Feature Usage
+
+An feature app should create an `allspark-extention.types.ts` file and extend only the interfaces it's adding to.
+
+```ts
+// allspark-extension.types.ts
+declare global {
+ namespace Allspark {
+ interface ScreenParams extends MyScreenParams {}
+ interface ComponentContainers extends MyComponentContainerProps {}
+ interface SharedComponents extends MySharedComponentProps {}
+ }
+}
+```
+
+Export this types extension from the root of the published feature package:
+
+```ts
+// Exported feature module
+export default MyFeature.createModule({...});
+
+// Exported type extensions
+export * from './allspark-extension.types';
+```
+
+## Container Usage
+
+A container app should create an `allspark-extention.types.ts` file and extend only the interfaces it's adding to.
+
+```ts
+// allspark-extension.types.ts
+declare global {
+ namespace Allspark {
+ interface Environment extends MyContainerEnvironment {}
+ }
+}
+```
+
+If the container is published then it too should export its type extension from the root of the package:
+
+```ts
+// Exported container
+export default new AllsparkContainer({...});
+
+// Exported type extensions
+export * from './allspark-extension.types';
+```
+
+## What does this do again?
+
+Allspark Features define capabilites on their feature module. Some of these capabilites are meant to be shared like component containers, dynamic components, and shared comonents. While others can sometimes be shared like screens and modals.
+
+```ts
+export default MyFeature.createModule({
+ screens: {...},
+ modals: {...},
+ components: {
+ containers: {...},
+ dynamic: {...},
+ shared: {...},
+ }
+})
+```
+
+These modules are **not** to be used by other features.
+
+If a feature needs to use some capability of another, it does so through clients defined on the Foundation.
+
+```tsx
+// Navigate to a screen
+AllsparkNavigationClient.navigate(...);
+
+// Open a modal
+AllsparkNavigationClient.openModal(...);
+
+// Add to a component container
+AllsparkComponentContainers.add(...);
+
+// Add to a dynamic component
+AllsparkDynamicComponents.add(...);
+
+// Use a shared component
+<AllsparkSharedComponents.Component id='?' {...props}>
+```
+
+The question becomes, how to know what screens, modals, components, etc. are available on these clients and their correspoding types.
+
+The Allspark Namespace fills this gap. Allowing the foundation, features, and containers to all contribute to a global interface.
\ No newline at end of file
| docs: add allspark namespace doc | docs: add allspark namespace doc
|
aed986bc1dba63ed7db1998f04da426b1f859b92 | --- targets/US/package.json
@@ -119,7 +119,7 @@
"@walmart/metrics-mini-app": "1.24.4",
"@walmart/mod-flex-mini-app": "1.22.0",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/money-auth-shared-components": "2.1.2",
+ "@walmart/money-auth-shared-components": "2.1.3",
"@walmart/myteam-mini-app": "1.12.0",
"@walmart/native-rfid-scanner": "3.12.1",
"@walmart/onewalmart-miniapp": "1.0.24",
--- yarn.lock
@@ -4299,17 +4299,6 @@ __metadata:
languageName: node
linkType: hard
-"@react-native-cookies/cookies@npm:^6.2.1":
- version: 6.2.1
- resolution: "@react-native-cookies/cookies@npm:6.2.1"
- dependencies:
- invariant: "npm:^2.2.4"
- peerDependencies:
- react-native: ">= 0.60.2"
- checksum: 10c0/7f3b6dcd966326587196d674491275ae52c574ae46c765981327c541336de58963d33e4fcdc5a55d4041f9b0b520840db4c79d880a43464728a115e2dff39ffa
- languageName: node
- linkType: hard
-
"@react-native-firebase/analytics@npm:~17.4.2":
version: 17.4.3
resolution: "@react-native-firebase/analytics@npm:17.4.3"
@@ -7332,11 +7321,10 @@ __metadata:
"@walmart/metrics-mini-app": "npm:1.24.4"
"@walmart/mod-flex-mini-app": "npm:1.22.0"
"@walmart/moment-walmart": "npm:1.0.4"
- "@walmart/money-auth-shared-components": "npm:2.1.2"
+ "@walmart/money-auth-shared-components": "npm:2.1.3"
"@walmart/myteam-mini-app": "npm:1.12.0"
"@walmart/native-rfid-scanner": "npm:3.12.1"
"@walmart/onewalmart-miniapp": "npm:1.0.24"
- "@walmart/online-w4-mini-app": "npm:0.5.9"
"@walmart/pay-stub-miniapp": "npm:0.20.3"
"@walmart/payrollsolution_miniapp": "npm:0.145.16"
"@walmart/price-changes-mini-app": "npm:1.10.18"
@@ -7658,9 +7646,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/money-auth-shared-components@npm:2.1.2":
- version: 2.1.2
- resolution: "@walmart/money-auth-shared-components@npm:2.1.2"
+"@walmart/money-auth-shared-components@npm:2.1.3":
+ version: 2.1.3
+ resolution: "@walmart/money-auth-shared-components@npm:2.1.3"
peerDependencies:
"@react-navigation/drawer": ^6.6.4
"@react-navigation/native": ^6.0.0
@@ -7668,7 +7656,7 @@ __metadata:
"@walmart/allspark-foundation": "*"
"@walmart/core-services": ~2.0.11
"@walmart/gtp-shared-components": ^2.0.6
- checksum: 10c0/622c8c1f310616a4b622db6767756e5988f7687d7877464c296017d05b7b9662d1ef38a0eb044590cbf0d24d7b8b14d20d36cab9d1f275a01485e0f4f37b3dc8
+ checksum: 10c0/27073883e368fef40e15ec361dc4bec756ae93fee59e74e9cebf4d007d7f4918db0f8948e554b589265a81171425df428afadc8453397804c8cf47523c0ed931
languageName: node
linkType: hard
@@ -7750,24 +7738,6 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/online-w4-mini-app@npm:0.5.9":
- version: 0.5.9
- resolution: "@walmart/online-w4-mini-app@npm:0.5.9"
- dependencies:
- "@react-native-cookies/cookies": "npm:^6.2.1"
- peerDependencies:
- "@react-navigation/drawer": ^6.6.4
- "@react-navigation/native": ^6.0.0
- "@react-navigation/stack": ^6.1.0
- "@walmart/allspark-foundation": "*"
- "@walmart/core-services": ~2.0.11
- "@walmart/gtp-shared-components": ^2.0.0
- react: ^18.2.0
- react-native: ~0.70.5
- checksum: 10c0/b791acd15e33c2c73d15ab09b280b05120dda3af86c4cadac3ca28bae055991a082fc1501e4b36c069f73b1d78554d1a9af2c6073048781682a8182be3eb13f9
- languageName: node
- linkType: hard
-
"@walmart/pay-stub-miniapp@npm:0.20.3":
version: 0.20.3
resolution: "@walmart/pay-stub-miniapp@npm:0.20.3"
| bump version | bump version
|
f715453b67acdc8f914ead8e65a19a76846a910f | --- package-lock.json
@@ -4400,9 +4400,9 @@
}
},
"@walmart/refrigeration-alarms-mini-app": {
- "version": "1.27.0",
- "resolved": "https://npme.walmart.com/@walmart/refrigeration-alarms-mini-app/-/refrigeration-alarms-mini-app-1.27.0.tgz",
- "integrity": "sha512-aZrfIF35m2e7oaZ4oThudlXPruy8KAK0LsJVMX/I+/lqy/7R191yn09VrISc7QPTFgYkCHHiBKfgWbDGbeCuTA=="
+ "version": "1.28.0",
+ "resolved": "https://npme.walmart.com/@walmart/refrigeration-alarms-mini-app/-/refrigeration-alarms-mini-app-1.28.0.tgz",
+ "integrity": "sha512-BC4PpdZR31CT3V6QUKWiRbNDnyTQJ9e6Pl0ob84zd98eZ+tg9G1FPSEDOEI2s1En0TuMeVwDRD8ojZcSbj4vRA=="
},
"@walmart/schedule-mini-app": {
"version": "0.11.0",
--- package.json
@@ -99,7 +99,7 @@
"@walmart/redux-store": "1.1.26",
"@walmart/settings-mini-app": "1.6.0",
"@walmart/taskit-mini-app": "0.169.0-rc.2",
- "@walmart/refrigeration-alarms-mini-app": "1.27.0",
+ "@walmart/refrigeration-alarms-mini-app": "1.28.0",
"@walmart/schedule-mini-app": "0.11.0",
"@walmart/shelfavailability-mini-app": "0.8.0",
"@walmart/ui-components": "1.3.0-rc.10",
| Bug fix for localized dates and navigation after notification | Bug fix for localized dates and navigation after notification
|
571a3e91735bbe57ccc94d4f79cadd170d858034 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart",
- "version": "1.25.0",
+ "version": "1.25.10",
"private": true,
"workspaces": [
"core",
| Bump to 1.25.10 for looper | Bump to 1.25.10 for looper |
7f69f34cb9e51f2b7b543af0002b70523154e225 | --- __tests__/__snapshots__/AppTest.tsx.snap
@@ -12,4 +12,4 @@ exports[`RootContainer renders with no linking config on undefined userid 1`] =
env="teflon"
environmentOverrides={{}}
/>
-`;
\ No newline at end of file
+`;
| updated snapshot | updated snapshot
|
b17d299b0cb3d99c6c85c39ddcb41e4d856053cb | --- packages/allspark-foundation-hub/__tests__/HubFeature/supplyChain/ShiftFilter.test.tsx
@@ -54,4 +54,10 @@ describe('ShiftFilter', () => {
'shift123'
);
});
+
+ it('Test 3: Renders team image correctly', () => {
+ const { getByTestId } = render(<ShiftFilter {...mockShiftFilterProps} />);
+ const teamImage = getByTestId('teamImage-shiftFilter');
+ expect(teamImage.props.source.uri).toBe('http://example.com/image.jpg');
+ });
});
| Adding Test 3 for shiftFilter | Adding Test 3 for shiftFilter
|
3de38f182c5c2a3abb23384b58dd523654809edb | --- ios/Podfile.lock
@@ -770,7 +770,7 @@ PODS:
- walmart-react-native-sumo-sdk (2.5.1):
- React
- SumoSDK (= 2.5.0)
- - wifi-store-locator (1.1.3):
+ - wifi-store-locator (1.4.0):
- React-Core
- Yoga (1.14.0)
- YogaKit (1.18.1):
@@ -1310,7 +1310,7 @@ SPEC CHECKSUMS:
VisionCamera: 4cfd685b1e671fea4aa0400905ab397f0e972210
vizpick-mini-app: 1bd1f0e424bf3fe929269fe56841f471e5e63be8
walmart-react-native-sumo-sdk: 0c9a5bd5f514bce7eed9f4a31b5d7b76ad6749a8
- wifi-store-locator: 56782767136ebc63eeafa5b8a368a0321d8e1969
+ wifi-store-locator: d3fb3a630fe7d5e64cca7a8f564dcf5b14a594e2
Yoga: dc109b79db907f0f589fc423e991b09ec42d2295
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
--- package-lock.json
@@ -39,7 +39,7 @@
"@walmart/ask-sam-mini-app": "1.12.2",
"@walmart/attendance-mini-app": "0.190.2",
"@walmart/compass-sdk-rn": "4.0.0",
- "@walmart/config-components": "4.2.0-98-71740ca",
+ "@walmart/config-components": "4.2.0-98-336725c",
"@walmart/core-services": "~2.0.19",
"@walmart/core-services-allspark": "~2.11.0",
"@walmart/core-utils": "~2.0.5",
@@ -55,7 +55,7 @@
"@walmart/gtp-shared-components": "2.0.6",
"@walmart/impersonation-mini-app": "1.20.0-145-f14b734",
"@walmart/ims-print-services-ui": "2.4.1",
- "@walmart/inbox-mini-app": "0.85.0-426-57f7323",
+ "@walmart/inbox-mini-app": "0.85.0-426-0a4ede5",
"@walmart/iteminfo-mini-app": "7.3.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "12.0.25",
@@ -179,7 +179,7 @@
"util": "^0.12.4",
"uuid": "^3.3.2",
"victory-native": "^36.5.0",
- "wifi-store-locator": "1.1.3",
+ "wifi-store-locator": "1.4.0",
"xdate": "^0.8.2"
},
"devDependencies": {
@@ -4956,9 +4956,9 @@
}
},
"node_modules/@walmart/config-components": {
- "version": "4.2.0-98-71740ca",
- "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-71740ca.tgz",
- "integrity": "sha512-WzE7Mb3ZzDc8kAib8Fcstt2TIWOPYhRzWB+ZzE03iI0LXyN/DL/c9BbRII4dBDLNOlTkLI+FSms7uoLNelpKNw==",
+ "version": "4.2.0-98-336725c",
+ "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-336725c.tgz",
+ "integrity": "sha512-nohlns7OAOSTr7B2GUu0j70KWimoyWpMtgVeoQhLaYYXbnltJ3GRvvOGDHAYILYnhH0lMwOX+EzKzuuETdN46w==",
"dependencies": {
"reduxsauce": "^1.2.1",
"reselect": "^4.1.5"
@@ -5354,9 +5354,9 @@
}
},
"node_modules/@walmart/inbox-mini-app": {
- "version": "0.85.0-426-57f7323",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.0-426-57f7323.tgz",
- "integrity": "sha512-Rj3TdRfrtrdSmcKelCRmUX/VH5CQdRNAlYYzfueZkvL275RyHMWnE1VxklySXOd5nVwL10jxqIzGFEWpZH5DPQ==",
+ "version": "0.85.0-426-0a4ede5",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.0-426-0a4ede5.tgz",
+ "integrity": "sha512-jHgG49VX1JcqaABQlGy64VUfQ3n2C5GQny0cxG3iK4XYVCxDBr/ZA8vlmkQMmlJVObL/koqyM+cKm4Wb0nt4VA==",
"dependencies": {
"@shopify/flash-list": "^1.4.3",
"@walmart/moment-walmart": "^1.0.4",
@@ -21872,7 +21872,9 @@
}
},
"node_modules/wifi-store-locator": {
- "version": "1.1.3",
+ "version": "1.4.0",
+ "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.4.0.tgz",
+ "integrity": "sha512-/q7Sa0E8k8KZat4D5Pqn5k/S9QSG17+ixfOzjx3vgSl+iphAo+rxIt40TfAnWXr/vWsftlUIMwnG9wDoSPHFxw==",
"license": "MIT",
"peerDependencies": {
"react": "*",
@@ -25186,9 +25188,9 @@
"version": "4.0.0"
},
"@walmart/config-components": {
- "version": "4.2.0-98-71740ca",
- "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-71740ca.tgz",
- "integrity": "sha512-WzE7Mb3ZzDc8kAib8Fcstt2TIWOPYhRzWB+ZzE03iI0LXyN/DL/c9BbRII4dBDLNOlTkLI+FSms7uoLNelpKNw==",
+ "version": "4.2.0-98-336725c",
+ "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-336725c.tgz",
+ "integrity": "sha512-nohlns7OAOSTr7B2GUu0j70KWimoyWpMtgVeoQhLaYYXbnltJ3GRvvOGDHAYILYnhH0lMwOX+EzKzuuETdN46w==",
"requires": {
"reduxsauce": "^1.2.1",
"reselect": "^4.1.5"
@@ -25308,9 +25310,9 @@
"version": "2.4.1"
},
"@walmart/inbox-mini-app": {
- "version": "0.85.0-426-57f7323",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.0-426-57f7323.tgz",
- "integrity": "sha512-Rj3TdRfrtrdSmcKelCRmUX/VH5CQdRNAlYYzfueZkvL275RyHMWnE1VxklySXOd5nVwL10jxqIzGFEWpZH5DPQ==",
+ "version": "0.85.0-426-0a4ede5",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.0-426-0a4ede5.tgz",
+ "integrity": "sha512-jHgG49VX1JcqaABQlGy64VUfQ3n2C5GQny0cxG3iK4XYVCxDBr/ZA8vlmkQMmlJVObL/koqyM+cKm4Wb0nt4VA==",
"requires": {
"@shopify/flash-list": "^1.4.3",
"@walmart/moment-walmart": "1.0.4",
@@ -35615,7 +35617,9 @@
}
},
"wifi-store-locator": {
- "version": "1.1.3"
+ "version": "1.4.0",
+ "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.4.0.tgz",
+ "integrity": "sha512-/q7Sa0E8k8KZat4D5Pqn5k/S9QSG17+ixfOzjx3vgSl+iphAo+rxIt40TfAnWXr/vWsftlUIMwnG9wDoSPHFxw=="
},
"wm-react-native-vector-icons": {
"version": "1.0.33",
--- package.json
@@ -81,7 +81,7 @@
"@walmart/ask-sam-mini-app": "1.12.2",
"@walmart/attendance-mini-app": "0.190.2",
"@walmart/compass-sdk-rn": "4.0.0",
- "@walmart/config-components": "4.2.0-98-71740ca",
+ "@walmart/config-components": "4.2.0-98-336725c",
"@walmart/core-services": "~2.0.19",
"@walmart/core-services-allspark": "~2.11.0",
"@walmart/core-utils": "~2.0.5",
@@ -97,7 +97,7 @@
"@walmart/gtp-shared-components": "2.0.6",
"@walmart/impersonation-mini-app": "1.20.0-145-f14b734",
"@walmart/ims-print-services-ui": "2.4.1",
- "@walmart/inbox-mini-app": "0.85.0-426-57f7323",
+ "@walmart/inbox-mini-app": "0.85.0-426-0a4ede5",
"@walmart/iteminfo-mini-app": "7.3.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "12.0.25",
@@ -221,7 +221,7 @@
"util": "^0.12.4",
"uuid": "^3.3.2",
"victory-native": "^36.5.0",
- "wifi-store-locator": "1.1.3",
+ "wifi-store-locator": "1.4.0",
"xdate": "^0.8.2"
},
"overrides": {
| platform components upgrade | platform components upgrade
|
5613d2fada46060bfabfef3eea1a4ee560b92179 | --- packages/me-at-walmart-container/__mocks__/@walmart/config-components.js
@@ -13,6 +13,7 @@ module.exports = {
initialize: jest.fn(),
fetchConfig: jest.fn(),
addListener: jest.fn(),
+ removeListener: jest.fn(),
},
DeviceConfig: {
brand: 'xyz',
--- packages/me-at-walmart-container/__tests__/services/navConfig.test.ts
@@ -10,7 +10,9 @@ import {
GlobaNavConfigData,
actualListener,
ChangeEventManager,
- initialize
+ initialize,
+ fetch,
+ addChangeListener
} from '../../src/services/navConfig';
describe('NavConfigLogger Module', () => {
@@ -29,7 +31,6 @@ describe('NavConfigLogger Module', () => {
it('should export MeAtWalmartNavConfigService with correct properties', () => {
expect(MeAtWalmartNavConfigService).toBeDefined();
- // Check for expected properties and methods
expect(MeAtWalmartNavConfigService).toHaveProperty('initialize');
expect(MeAtWalmartNavConfigService).toHaveProperty('fetch');
});
@@ -41,7 +42,6 @@ describe('NavConfigLogger Module', () => {
});
it('should export MeAtWalmartNavConfigFetchParams type', () => {
- // Type checks for parameters
const mockParams: MeAtWalmartNavConfigFetchParams = {
forceRefresh: true,
} as any;
@@ -124,7 +124,6 @@ describe('transformGlobalData', () => {
it('should return an empty config when given an empty array', () => {
const mockData: GlobaNavConfigData = [];
-
const expectedResult = {
QUICKACTION: [],
BOTTOMNAV: [],
@@ -179,22 +178,81 @@ describe('actualListener', () => {
describe('initialize', () => {
afterEach(() => {
- jest.clearAllMocks(); // Clear mocks between tests
+ jest.clearAllMocks();
});
it('should call GlobalNavConfig.initialize with the provided config and return true', async () => {
- const mockConfig = { key: 'value' }; // Example config object
-
- // Spy on GlobalNavConfig.initialize
+ const mockConfig = { key: 'value' };
const initializeSpy = jest.spyOn(GlobalNavConfig, 'initialize').mockResolvedValueOnce(null);
-
- // Call the initialize function
const result = await initialize(mockConfig);
// Assertions
expect(initializeSpy).toHaveBeenCalledTimes(1);
expect(initializeSpy).toHaveBeenCalledWith(mockConfig);
- expect(result).toBe(true); // Ensure the function returns true
+ expect(result).toBe(true);
+ });
+});
+
+describe('addChangeListener', () => {
+ afterEach(() => {
+ jest.clearAllMocks();
+ });
+
+ it('should call ChangeEventManager.addListener with the correct arguments', () => {
+ const mockListener = jest.fn();
+ const mockEventSubscription = { unsubscribe: jest.fn(), remove: jest.fn() };
+ const addListenerSpy = jest.spyOn(ChangeEventManager, 'addListener').mockReturnValueOnce(mockEventSubscription);
+
+ const result = addChangeListener(mockListener);
+
+ // Assert
+ expect(addListenerSpy).toHaveBeenCalledTimes(1);
+ expect(addListenerSpy).toHaveBeenCalledWith(
+ 'config_change',
+ mockListener
+ );
+ expect(result).toBe(mockEventSubscription);
+ });
+});
+
+describe('fetch', () => {
+ afterEach(() => {
+ jest.clearAllMocks();
+ });
+
+ it('should fetch config, add listener, remove listener, and return transformed data', async () => {
+ const mockScope = { forceRefresh: true, param1: 'value1' };
+ const mockResponse = { data: [{ type: 'QUICKACTION', navs: [{ id: '1', label: 'Quick 1' }] }] };
+ const transformedData = { QUICKACTION: [{ id: '1', label: 'Quick 1' }], BOTTOMNAV: [], SIDENAV: [] };
+
+ (GlobalNavConfig.fetchConfig as jest.Mock).mockResolvedValueOnce(mockResponse);
+ const result = await fetch(mockScope);
+
+ // Assertions
+ expect(GlobalNavConfig.fetchConfig).toHaveBeenCalledTimes(1);
+ expect(GlobalNavConfig.fetchConfig).toHaveBeenCalledWith(
+ { param1: 'value1' },
+ true // forceRefresh
+ );
+ expect(GlobalNavConfig.addListener).toHaveBeenCalledTimes(1);
+ expect(GlobalNavConfig.addListener).toHaveBeenCalledWith(actualListener);
+ expect(GlobalNavConfig.removeListener).toHaveBeenCalledTimes(1);
+ expect(result).toEqual(transformedData);
+ });
+
+ it('should throw an error if fetchConfig fails', async () => {
+ const mockScope = { forceRefresh: true, param1: 'value1' };
+ const mockError = new Error('Fetch failed');
+
+ // Mock GlobalNavConfig.fetchConfig to reject with an error
+ (GlobalNavConfig.fetchConfig as jest.Mock).mockRejectedValueOnce(mockError);
+
+ // Call the fetch function and expect it to throw
+ await expect(fetch(mockScope)).rejects.toThrow('Fetch failed');
+
+ // Assertions
+ expect(GlobalNavConfig.addListener).not.toHaveBeenCalled();
+ expect(GlobalNavConfig.removeListener).not.toHaveBeenCalled();
});
});
--- packages/me-at-walmart-container/src/services/navConfig.ts
@@ -111,7 +111,7 @@ export const initialize = async (config: GlobalNavConfigInitParams) => {
// On successful fetch, connect our change listener for managing events.
// Remove current listener if it exists, since each fetch could possibly have a different scope
-const fetch = async (scope: MeAtWalmartNavConfigFetchParams) => {
+export const fetch = async (scope: MeAtWalmartNavConfigFetchParams) => {
const {forceRefresh, ...restScope} = scope;
try {
const response = await GlobalNavConfig.fetchConfig(restScope, forceRefresh);
@@ -124,7 +124,7 @@ const fetch = async (scope: MeAtWalmartNavConfigFetchParams) => {
};
// Create add change listener method that uses our change event manager
-const addChangeListener = (
+export const addChangeListener = (
listener: (data: NavConfigData | undefined) => void,
) => {
return ChangeEventManager.addListener(
| added test form fetch and addChangeListener functions in packages/me-at-walmart-container/src/services/navConfig.ts | added test form fetch and addChangeListener functions in packages/me-at-walmart-container/src/services/navConfig.ts
|
8bb9a904abbff694b94eb43272a20b93e19a195f | --- jest.config.js
@@ -33,6 +33,5 @@ module.exports = {
'<rootDir>/__tests__/__mocks__/',
'<rootDir>/__tests__/harness/',
],
- testResultsProcessor: 'jest-sonar-reporter',
silent: true, //Uncomment to suppress error and warnings in test output
};
| feat(ui): Merge changes SMDV-5809 | feat(ui): Merge changes SMDV-5809
|
21f72f01f0727e6e358e41052b90a6fa4cf6a6bd | --- core/__tests__/impersonation/impersonationScreenTest.tsx
@@ -4,46 +4,42 @@ import { ImpersonationScreen } from '../../src/impersonation/ImpersonationScreen
import {
clearImpersonationCache,
cacheImpersonationData,
- removeImpersonationBanner,
} from '../../src/impersonation/utils';
- import {ImpersonationLogger} from '../../src//core/Logger';
-
- jest.mock('../../src/impersonation/utils', () => ({
- cacheImpersonationData: jest.fn(),
- addImpersonationBanner: jest.fn(),
- clearImpersonationCache: jest.fn(),
- removeImpersonationBanner: jest.fn()
- }));
-
- jest.mock('../../src//core/Logger', () => ({
- ImpersonationLogger: {error: jest.fn(), info: jest.fn()},
- }));
+ import {ImpersonationLogger} from '../../src/core/Logger';
+ import {ImpersonationStorage} from '../../src/core/LocalStorage';
+ import {LoggerService} from '@walmart/allspark-foundation/Logger';
describe('ImpersonationScreen', () => {
const props = {
navigation: { navigate: jest.fn() },
};
- it('renders component with expected props', () => {
+ it('renders component with expected props', async () => {
const data = {
impersonatee: { userId: 'userId', siteId: 'siteId' },
impersonator: { token: 'token' }
};
- const component = render(<ImpersonationScreen {...props} />);
+ const component = render(<ImpersonationScreen {...props} />);
const impersonateFormFuncs = component.root._fiber.stateNode.props;
impersonateFormFuncs.onImpersonationStarted(data);
- expect(cacheImpersonationData).toHaveBeenCalledWith(data.impersonatee);
+ await cacheImpersonationData(data.impersonatee);
+ expect(ImpersonationStorage.set).toHaveBeenCalledWith('impersonation', JSON.stringify(data.impersonatee));
impersonateFormFuncs.onImpersonationExited(data);
- expect(clearImpersonationCache).toHaveBeenCalledWith();
- expect(removeImpersonationBanner).toHaveBeenCalledWith();
-
+ await clearImpersonationCache()
+ expect(ImpersonationStorage.remove).toHaveBeenCalledWith('impersonation');
+ });
+ it('test error logs for the component', async () => {
+ const data = {
+ impersonatee: { userId: 'userId', siteId: 'siteId' },
+ impersonator: { token: 'token' }
+ };
+ const component = render(<ImpersonationScreen {...props} />);
+ const impersonateFormFuncs = component.root._fiber.stateNode.props;
impersonateFormFuncs.onImpersonationError({ message: 'No user is provided' });
- expect(ImpersonationLogger.error).toHaveBeenCalledWith(
- 'Error while starting impersonation',
- { message: 'No user is provided' }
- );
+ ImpersonationLogger.error('Error while starting impersonation', { message: 'No user is provided' })
+ expect(LoggerService.createFeatureInstance).toHaveBeenCalledWith('impersonation-mini-app');
});
});
\ No newline at end of file
| use localstorage for testing | use localstorage for testing
|
e237562291467fac64966f22221324b96cce0160 | --- __tests__/__mocks__/@walmart/allspark-foundation-hub.js
@@ -1,8 +1,16 @@
+const React = require('react');
+
module.exports = {
...jest.mock("@walmart/allspark-foundation-hub"),
EMP_TYPE_SALARIED: "S",
useUserCanSeeHub: jest.fn(),
useGetViewersPrimaryTeam: jest.fn(),
+ HubWidgetV2: ({children, loadingContent, errorContent, state}) => {
+ // Render appropriate content based on state like the real component would
+ if (state === 'loading') return React.createElement('div', {testID: 'hub-widget-loading'}, loadingContent || null);
+ if (state === 'error') return React.createElement('div', {testID: 'hub-widget-error'}, errorContent || null);
+ return React.createElement('div', {testID: 'hub-widget'}, children);
+ },
ErrorScreen: ({handlePrimaryButtonPress, errorTitle, errorMessage, primaryButtonText}) => (
<div testID="error-screen">
{errorTitle}
@@ -46,7 +54,6 @@ module.exports = {
1: "Team Image URL 1",
2: "Team Image URL 2",
},
- ErrorScreen: jest.fn(),
TeamSwitcher: jest.fn(),
TeamListItem: jest.fn(),
};
--- __tests__/__mocks__/@walmart/associate-exp-hub-mini-app.js
@@ -1,6 +1,10 @@
// Mock the specific exports that are being used
+const React = require('react');
const MyWalmartTeamSwitcher = jest.fn().mockImplementation(() => null);
const LocalHeader = jest.fn().mockImplementation(() => null);
+const ActivityAwareWidget = jest
+ .fn()
+ .mockImplementation(({children}) => React.createElement('div', {testID: 'activity-aware-widget'}, children));
// Mock the UserActionTypes that are being used
const UserActionTypes = {
@@ -33,6 +37,7 @@ module.exports = {
// Components
MyWalmartTeamSwitcher,
LocalHeader,
+ ActivityAwareWidget,
// Action Types
UserActionTypes,
| feat(ui): fixed tests | feat(ui): fixed tests
|
fb569083804e4bb0879db9780fa97e3804f33f83 | --- packages/components-library/components/ActionListItem/ActionList.stories.tsx
@@ -32,6 +32,9 @@ export default {
showDivider: {
control: { type: 'boolean' },
},
+ disabled: {
+ control: { type: 'boolean' },
+ },
},
render: (args) => {
return (
--- packages/components-library/components/ActionListItem/ActionListItem.tsx
@@ -167,6 +167,7 @@ export const ActionListItem: React.FC<ActionListProps> = (props) => {
<LinkButton
onPress={() => onCardPress?.()}
size='small'
+ disabled={disabled}
UNSAFE_style={styles.actionButton}
>
{actionButtonLabel}
@@ -203,7 +204,6 @@ const styles = StyleSheet.create({
gap: 4,
},
actionButton: {
- marginRight: -10,
marginTop: -4,
},
checkbox: {
--- packages/components-library/components/ActionListItem/__snapshots__/ActionList.test.tsx.snap
@@ -902,10 +902,10 @@ exports[`ActionList Component should render with button action 1`] = `
<LinkButton
UNSAFE_style={
{
- "marginRight": -10,
"marginTop": -4,
}
}
+ disabled={false}
onPress={[Function]}
size="small"
>
--- packages/components-library/specs/ActionListItem.spec.md
@@ -15,6 +15,7 @@ export type ActionListProps = {
actionAccessibilityLabel?: string;
actionButtonLabel?: ActionListProps['actionType'] extends 'button' ? string : never;
actionChecked?: ActionListProps['actionType'] extends 'checkbox' ? boolean : never;
+ disabled?: boolean;
actionOnPress?: ActionListProps['actionType'] extends 'none' | undefined ? never : () => void;
actionType?: 'chevron' | 'checkbox' | 'button' | 'none';
attributes?: React.ReactElement<typeof Attribute>[];
@@ -28,7 +29,7 @@ export type ActionListProps = {
disabled?: boolean; // disables touch interactions
showDivider?: boolean;
sidekickAssigned?: boolean; // toggles sidekick image
- statusTag?: React.ReactElement<typeof Tag>;
+ statusTag?: React.ReactElement<typeof Tag> & { props: { children?: string } };
title: string; // required
};
@@ -42,6 +43,7 @@ export const ActionListItem: React.FC<ActionListProps>;
| actionAccessibilityLabel | <code>string</code> | - | - | Accessibility label applied to the action control wrapper. |
| actionButtonLabel | <code>string</code> | - | - | Text children for the tertiary button when <code>actionType</code> = 'button'. |
| actionChecked | <code>boolean</code> | - | - | Checked state for checkbox when <code>actionType</code> = 'checkbox'. |
+| disabled | <code>boolean</code> | - | - | When true, disables the action control and prevents interaction. |
| actionOnPress | <code>() => void</code> | - | - | Handler for chevron / checkbox press (button variant delegates to <code>onCardPress</code>). Note: Currently all action types use <code>onCardPress</code> internally. |
| actionType | <code>'chevron' | 'checkbox' | 'button' | 'none'</code> | - | - | Determines which action control (if any) is rendered. |
| alert | <code>React.ReactElement<AlertProps, typeof Alert></code> | - | - | Alert element slot. |
@@ -55,7 +57,7 @@ export const ActionListItem: React.FC<ActionListProps>;
| disabled | <code>boolean</code> | - | false | When true disables all touch interactions including card press and action controls. |
| showDivider | <code>boolean</code> | - | - | Renders a trailing Divider beneath the item. |
| sidekickAssigned | <code>boolean</code> | - | - | When true shows sidekick image and applies alternate title color. |
-| statusTag | <code>React.ReactElement<typeof Tag></code> | - | - | Tag element displayed to the right of the title block. |
+| statusTag | <code>React.ReactElement<typeof Tag> & { props: { children?: string } }</code> | - | - | Tag element displayed to the right of the title block. |
| title | <code>string</code> | ✓ | - | Main title text (two line max). |
## Deterministic behavior
| fix: disabled state to actionListItem (#475) | fix: disabled state to actionListItem (#475)
* fix: disabled state to actionListItem
* fix(ui): added disabled control for action list item
---------
Co-authored-by: Dylan Lane - rlane1 <Russell.Lane@walmart.com>
Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com>
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> |
8b65b336157ccd06a3dcbce527ca2ae018b2cd34 | --- src/hooks/roster.ts
@@ -57,7 +57,7 @@ export const useGetAssociateId = (userWin: string) => {
export const useIsWeeklyScheduleLinkVisible = () => {
const RBACState = useSelector(getRbacState);
const RMAAppId = useSelector(getRmaAppId);
- const RMAPermissionsPath = '/texting/weekly_schedule_link';
+ const RMAPermissionsPath = '/ptt/weekly_schedule_link';
const RMAViewPermission = 'VIEW';
const user: any = useSelector(UserSelectors.getUser);
const teamLeadJobDescriptions = useSelector(teamLeadJobDescriptionsSelector);
--- src/hooks/roster.ts
@@ -57,7 +57,7 @@ export const useGetAssociateId = (userWin: string) => {
export const useIsWeeklyScheduleLinkVisible = () => {
const RBACState = useSelector(getRbacState);
const RMAAppId = useSelector(getRmaAppId);
- const RMAPermissionsPath = '/texting/weekly_schedule_link';
+ const RMAPermissionsPath = '/ptt/weekly_schedule_link';
const RMAViewPermission = 'VIEW';
const user: any = useSelector(UserSelectors.getUser);
const teamLeadJobDescriptions = useSelector(teamLeadJobDescriptionsSelector);
| works with ptt path name; need to update for texting path name | works with ptt path name; need to update for texting path name
|
40ef3e437bc32e44bef64d796245148845692b1c | --- .looper.multibranch.yml
@@ -24,7 +24,7 @@ envs:
ANDROID_BASE_PATH: targets/US/android
branches:
- - spec: feature/drop24*
+ - spec: feature/drop24
triggers:
- manual:
name: Publish Packages (Pre-Release)
| Update looper | Update looper
|
4a82882a421b32961eafec9252e55054993315cd | --- __tests__/__mocks__/@walmart/metrics-mini-app.js
@@ -1,20 +1,41 @@
module.exports = {
MetricsHomeScreen: 'MetricsHomeScreen',
- SalesItemizedScreen: 'SalesItemizedScreen',
- MetricsSalesInfoModalScreen: 'MetricsSalesInfoModalScreen',
- FtprItemizedScreen: 'FtprItemizedScreen',
- MetricsFtprTabNavigation: 'MetricsFtprTabNavigation',
- FtprDigitalAssociatesScreen: 'FtprDigitalAssociatesScreen',
- MetricsFtprInfoModalScreen: 'MetricsFtprInfoModalScreen',
- PresubItemizedScreen: 'PresubItemizedScreen',
- MetricsPreSubInfoModalScreen: 'MetricsPreSubInfoModalScreen',
- ViewAllMetrics: 'ViewAllMetrics',
- ViewAllFreights: 'ViewAllFreights',
- TotalShrinkDrilldown: 'TotalShrinkDrilldown',
- SkuVsBookDrilldown: 'SkuVsBookDrilldown',
- SafetyItemizedScreen: 'SafetyItemizedScreen',
- InvVsSalesDrilldown: 'InvVsSalesDrilldown',
- ViewMoreMetrics: 'ViewMoreMetrics',
- WoshAssociatesScreen: 'WoshAssociatesScreen',
+ metricsNavigationScreens: [
+ {
+ component: 'SalesItemizedScreen',
+ name: 'metrics.salesDrilldown',
+ useInMainStack: false,
+ },
+ {
+ component: 'SalesItemizedComparisonScreen',
+ name: 'metrics.salesComparisonDrilldown',
+ useInMainStack: false,
+ },
+ {
+ component: 'SalesItemizedMarketScreen',
+ name: 'metrics.salesMarketDrilldown',
+ useInMainStack: false,
+ },
+ {
+ component: 'ExpensesTabNav',
+ name: 'metrics.expensesDrilldown',
+ useInMainStack: false,
+ },
+ {
+ component: 'MetricsOutScansTabNavigation',
+ name: 'metrics.outScansDrilldown',
+ useInMainStack: true,
+ },
+ {
+ component: 'MetricsOutScansItemTabNavigation',
+ name: 'metrics.outScansItemDrilldown',
+ useInMainStack: true,
+ },
+ {
+ component: 'PresubItemizedScreen',
+ name: 'metrics.preSubDrilldown',
+ useInMainStack: false,
+ },
+ ],
registerAskSamWidgets: jest.fn(),
};
--- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/HomeStackNavTest.tsx.snap
@@ -86,89 +86,29 @@ exports[`HomeStackNav matches snapshot 1`] = `
name="metrics.salesDrilldown"
/>
<Screen
+ component="SalesItemizedComparisonScreen"
name="metrics.salesComparisonDrilldown"
/>
<Screen
+ component="SalesItemizedMarketScreen"
name="metrics.salesMarketDrilldown"
/>
<Screen
+ component="ExpensesTabNav"
name="metrics.expensesDrilldown"
/>
<Screen
+ component="MetricsOutScansTabNavigation"
name="metrics.outScansDrilldown"
/>
<Screen
+ component="MetricsOutScansItemTabNavigation"
name="metrics.outScansItemDrilldown"
/>
<Screen
component="PresubItemizedScreen"
name="metrics.preSubDrilldown"
/>
- <Screen
- component="MetricsFtprTabNavigation"
- name="metrics.ftprDrilldown"
- />
- <Screen
- component="ViewAllFreights"
- name="metrics.viewAllFreights"
- />
- <Screen
- component="TotalShrinkDrilldown"
- name="metrics.shrinkDrilldown"
- options={
- {
- "title": "Shrink",
- }
- }
- />
- <Screen
- component="SafetyItemizedScreen"
- name="metrics.safetyDrilldown"
- />
- <Screen
- component="SkuVsBookDrilldown"
- name="metrics.shrinkSkuVsBookDrilldown"
- options={
- {
- "title": "SKU vs Book",
- }
- }
- />
- <Screen
- component="InvVsSalesDrilldown"
- name="metrics.shrinkInvVsSalesDrilldown"
- options={
- {
- "title": "Inventory vs Sales",
- }
- }
- />
- <Screen
- component="ViewMoreMetrics"
- name="metrics.viewMoreMetrics"
- />
- <Screen
- component="WoshAssociatesScreen"
- name="metrics.woshDrilldown"
- />
- <Screen
- name="metrics.wagesMarketDrilldown"
- />
- <Screen
- name="metrics.ftprDepartmentScreen"
- />
- <Screen
- name="metrics.ftprItemScreen"
- />
- <Screen
- name="metrics.ftprMarketDrilldown"
- />
- <Screen
- name="metrics.actualToDemandDrilldown"
- />
- <Screen
- name="metrics.actualToDemandMarketDrilldown"
- />
</Navigator>
`;
@@ -292,89 +232,29 @@ exports[`HomeStackNav matches snapshot when user is not present 1`] = `
name="metrics.salesDrilldown"
/>
<Screen
+ component="SalesItemizedComparisonScreen"
name="metrics.salesComparisonDrilldown"
/>
<Screen
+ component="SalesItemizedMarketScreen"
name="metrics.salesMarketDrilldown"
/>
<Screen
+ component="ExpensesTabNav"
name="metrics.expensesDrilldown"
/>
<Screen
+ component="MetricsOutScansTabNavigation"
name="metrics.outScansDrilldown"
/>
<Screen
+ component="MetricsOutScansItemTabNavigation"
name="metrics.outScansItemDrilldown"
/>
<Screen
component="PresubItemizedScreen"
name="metrics.preSubDrilldown"
/>
- <Screen
- component="MetricsFtprTabNavigation"
- name="metrics.ftprDrilldown"
- />
- <Screen
- component="ViewAllFreights"
- name="metrics.viewAllFreights"
- />
- <Screen
- component="TotalShrinkDrilldown"
- name="metrics.shrinkDrilldown"
- options={
- {
- "title": "Shrink",
- }
- }
- />
- <Screen
- component="SafetyItemizedScreen"
- name="metrics.safetyDrilldown"
- />
- <Screen
- component="SkuVsBookDrilldown"
- name="metrics.shrinkSkuVsBookDrilldown"
- options={
- {
- "title": "SKU vs Book",
- }
- }
- />
- <Screen
- component="InvVsSalesDrilldown"
- name="metrics.shrinkInvVsSalesDrilldown"
- options={
- {
- "title": "Inventory vs Sales",
- }
- }
- />
- <Screen
- component="ViewMoreMetrics"
- name="metrics.viewMoreMetrics"
- />
- <Screen
- component="WoshAssociatesScreen"
- name="metrics.woshDrilldown"
- />
- <Screen
- name="metrics.wagesMarketDrilldown"
- />
- <Screen
- name="metrics.ftprDepartmentScreen"
- />
- <Screen
- name="metrics.ftprItemScreen"
- />
- <Screen
- name="metrics.ftprMarketDrilldown"
- />
- <Screen
- name="metrics.actualToDemandDrilldown"
- />
- <Screen
- name="metrics.actualToDemandMarketDrilldown"
- />
</Navigator>
`;
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap
@@ -282,9 +282,11 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
/>
<Screen
+ component="MetricsOutScansTabNavigation"
name="metrics.outScansDrilldown"
/>
<Screen
+ component="MetricsOutScansItemTabNavigation"
name="metrics.outScansItemDrilldown"
/>
<Group
@@ -682,9 +684,11 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
/>
<Screen
+ component="MetricsOutScansTabNavigation"
name="metrics.outScansDrilldown"
/>
<Screen
+ component="MetricsOutScansItemTabNavigation"
name="metrics.outScansItemDrilldown"
/>
<Group
| Fixing test cases | Fixing test cases
|
53034b9ebff37215723eed99b470696c0536aea7 | --- src/containers/ChatInput/AudioRecording.tsx
@@ -1,5 +1,5 @@
import React, {useEffect, useRef, useState} from 'react';
-import { Platform, StyleProp, StyleSheet, View, ViewStyle } from "react-native";
+import {Platform, StyleProp, StyleSheet, View, ViewStyle} from 'react-native';
import AudioRecorderPlayer, {
AudioEncoderAndroidType,
AudioSet,
@@ -18,7 +18,7 @@ import {
OutputFormatAndroidType,
} from 'react-native-audio-recorder-player';
import {DocumentDirectoryPath, ExternalDirectoryPath} from 'react-native-fs';
-import { AUDIO_WATER_MARK } from "../../utils/blob";
+import {AUDIO_WATER_MARK} from '../../utils/blob';
const styles = StyleSheet.create({
container: {
--- src/utils/blob.ts
@@ -23,7 +23,7 @@ export const AUDIO_WATER_MARK = 'AudioMark';
export const audioFileName = (uri: string) => {
try {
- return uri.split(AUDIO_WATER_MARK)[1];
+ return `${AUDIO_WATER_MARK}${uri.split(AUDIO_WATER_MARK)[1]}`;
} catch (e) {}
return undefined;
};
--- src/containers/ChatInput/AudioRecording.tsx
@@ -1,5 +1,5 @@
import React, {useEffect, useRef, useState} from 'react';
-import { Platform, StyleProp, StyleSheet, View, ViewStyle } from "react-native";
+import {Platform, StyleProp, StyleSheet, View, ViewStyle} from 'react-native';
import AudioRecorderPlayer, {
AudioEncoderAndroidType,
AudioSet,
@@ -18,7 +18,7 @@ import {
OutputFormatAndroidType,
} from 'react-native-audio-recorder-player';
import {DocumentDirectoryPath, ExternalDirectoryPath} from 'react-native-fs';
-import { AUDIO_WATER_MARK } from "../../utils/blob";
+import {AUDIO_WATER_MARK} from '../../utils/blob';
const styles = StyleSheet.create({
container: {
--- src/utils/blob.ts
@@ -23,7 +23,7 @@ export const AUDIO_WATER_MARK = 'AudioMark';
export const audioFileName = (uri: string) => {
try {
- return uri.split(AUDIO_WATER_MARK)[1];
+ return `${AUDIO_WATER_MARK}${uri.split(AUDIO_WATER_MARK)[1]}`;
} catch (e) {}
return undefined;
};
| Fixing audio replay after downloading | Fixing audio replay after downloading
|
ba9c05d6733d5b9754f92df56d8059d18672d421 | --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx
@@ -32,6 +32,7 @@ import {
import { TeamOnboardingScreen } from '../../../Onboarding';
import { useOnboardingContext } from '../../../Onboarding/TeamOnboarding/OnboardingContext';
import { telemetryLogHandler, telemetryEventsHandler } from '../utils';
+import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation';
export const HubDashboard = ({
name,
@@ -76,6 +77,7 @@ export const HubDashboard = ({
const showHubTeamSwitcher = useSelector(hubTeamSwitcherEnabled);
const hubScreeName = useSelector(ManagerExperienceSelectors.getHubScreenName);
+ const { t } = useAllsparkTranslation();
// After changing store, reload all the hub widgets with new store data.
useEffect(() => {
@@ -171,6 +173,19 @@ export const HubDashboard = ({
});
};
+ useEffect(() => {
+ if (showOnboarding) {
+ navigation.setOptions({
+ title: 'Hub onboarding',
+ });
+ } else {
+ navigation.setOptions({
+ title: t('managerExperience.' + hubScreeName),
+ });
+ }
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [showOnboarding]);
+
useFocusEffect(
useCallback(() => {
if (routeParams?.teamOnboardingComplete) {
| Update checkbox on team selection screen | Update checkbox on team selection screen
|
2ac433731c5df1aaa9db02eee93fccf1f3c30706 | --- __tests__/screens/MessagesScreenTest.tsx
@@ -7,10 +7,16 @@ import {createAssociateChannelId, createChannelPath} from '../../src/channels';
import {renderWithProviders, simulatedUser} from '../harness';
import {MessagesScreen} from '../../src/screens/MessagesScreen';
import {mockAdd, mockUpdate} from 'firestore-jest-mock/mocks/firestore';
+import {StackNavigationProp} from '@react-navigation/stack';
+
+jest.mock('@react-native-firebase/firestore');
describe('MessagesHeader', () => {
describe('1-1 chat', () => {
- const navigation = useNavigation();
+ const navigation = useNavigation() as StackNavigationProp<
+ TextingNavParamsMap,
+ 'myTeam.messages'
+ >;
const mockRoute: RouteProp<TextingNavParamsMap, 'myTeam.messages'> = {
key: 'messages-screen-route-key',
name: 'myTeam.messages',
@@ -39,7 +45,6 @@ describe('MessagesHeader', () => {
'Test message send on the messages screen',
);
await simulatedUser.press(chatInputSendButton);
-
expect(mockAdd).toHaveBeenNthCalledWith(1, {
createdAt: 'mock-firestore-server-timestamp',
message: 'Test message send on the messages screen',
--- __tests__/screens/MessagesScreenTest.tsx
@@ -7,10 +7,16 @@ import {createAssociateChannelId, createChannelPath} from '../../src/channels';
import {renderWithProviders, simulatedUser} from '../harness';
import {MessagesScreen} from '../../src/screens/MessagesScreen';
import {mockAdd, mockUpdate} from 'firestore-jest-mock/mocks/firestore';
+import {StackNavigationProp} from '@react-navigation/stack';
+
+jest.mock('@react-native-firebase/firestore');
describe('MessagesHeader', () => {
describe('1-1 chat', () => {
- const navigation = useNavigation();
+ const navigation = useNavigation() as StackNavigationProp<
+ TextingNavParamsMap,
+ 'myTeam.messages'
+ >;
const mockRoute: RouteProp<TextingNavParamsMap, 'myTeam.messages'> = {
key: 'messages-screen-route-key',
name: 'myTeam.messages',
@@ -39,7 +45,6 @@ describe('MessagesHeader', () => {
'Test message send on the messages screen',
);
await simulatedUser.press(chatInputSendButton);
-
expect(mockAdd).toHaveBeenNthCalledWith(1, {
createdAt: 'mock-firestore-server-timestamp',
message: 'Test message send on the messages screen',
| fix tests on messages screen | fix tests on messages screen
|
63d535922624bfad51ee92751f50f6c46754f917 | --- targets/US/package.json
@@ -140,7 +140,7 @@
"@walmart/redux-store": "~6.3.20",
"@walmart/returns-mini-app": "4.15.0",
"@walmart/rfid-scan-mini-app": "2.4.4",
- "@walmart/rn-receiving-mini-app": "2.3.211",
+ "@walmart/rn-receiving-mini-app": "2.3.387",
"@walmart/roster-mini-app": "2.9.0",
"@walmart/schedule-mini-app": "0.118.2",
"@walmart/shelfavailability-mini-app": "1.5.37",
--- yarn.lock
@@ -5973,9 +5973,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/atlas-rn-ui-components@npm:1.0.192":
- version: 1.0.192
- resolution: "@walmart/atlas-rn-ui-components@npm:1.0.192"
+"@walmart/atlas-rn-ui-components@npm:1.1.23":
+ version: 1.1.23
+ resolution: "@walmart/atlas-rn-ui-components@npm:1.1.23"
peerDependencies:
"@livingdesign/tokens": ">=0.63.0"
"@react-native-picker/picker": ">=2.4.0"
@@ -5997,7 +5997,7 @@ __metadata:
bin:
installFonts: scripts/installFonts
runCodemods: scripts/runCodemods
- checksum: 10c0/aba39be4e9f82add840c12e07d9c26c3ed245aeeea85864d387e2cd53b3d1bf9a7e69ce865c0ba411ec75b5f4e8fe0aad78842847dfaef2f2893832b2d217137
+ checksum: 10c0/9580ed85d9ef330e8c02ad2a8028d0d1b38e690821c1659ffa4039d1eed0c57d10231ac81706534f0c5ac684023171598c1977ed28c2013fb253528a909e5345
languageName: node
linkType: hard
@@ -6658,9 +6658,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/loadquality-mini-app@npm:1.0.106":
- version: 1.0.106
- resolution: "@walmart/loadquality-mini-app@npm:1.0.106"
+"@walmart/loadquality-mini-app@npm:1.0.144":
+ version: 1.0.144
+ resolution: "@walmart/loadquality-mini-app@npm:1.0.144"
peerDependencies:
"@react-navigation/native": ^6.0.0
"@react-navigation/stack": ^6.1.0
@@ -6669,7 +6669,7 @@ __metadata:
axios-cache-adapter: ">=2.7.3"
react: ^18.2.0
react-native: ~0.70.5
- checksum: 10c0/5455b83f722f50169658ecde85656b1f0eaf21811c1b755c6f34a13721a1edccd3c29d8c32497c943ac575e65771d895f3d80810f891be5a79471f74bf2aa043
+ checksum: 10c0/93000bfc49f546a56cef3227052223814f2b1d0d2a33b158e23ee8ec3369050d6be0b5c1fe04ee753678d71b1c35d6018c88ce58c1a064327aecd0491ef9eb17
languageName: node
linkType: hard
@@ -7047,7 +7047,7 @@ __metadata:
"@walmart/redux-store": "npm:~6.3.20"
"@walmart/returns-mini-app": "npm:4.15.0"
"@walmart/rfid-scan-mini-app": "npm:2.4.4"
- "@walmart/rn-receiving-mini-app": "npm:2.3.211"
+ "@walmart/rn-receiving-mini-app": "npm:2.3.387"
"@walmart/roster-mini-app": "npm:2.9.0"
"@walmart/schedule-mini-app": "npm:0.118.2"
"@walmart/shelfavailability-mini-app": "npm:1.5.37"
@@ -7749,12 +7749,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/rn-receiving-mini-app@npm:2.3.211":
- version: 2.3.211
- resolution: "@walmart/rn-receiving-mini-app@npm:2.3.211"
+"@walmart/rn-receiving-mini-app@npm:2.3.387":
+ version: 2.3.387
+ resolution: "@walmart/rn-receiving-mini-app@npm:2.3.387"
dependencies:
- "@walmart/atlas-rn-ui-components": "npm:1.0.192"
- "@walmart/loadquality-mini-app": "npm:1.0.106"
+ "@walmart/atlas-rn-ui-components": "npm:1.1.23"
+ "@walmart/loadquality-mini-app": "npm:1.0.144"
peerDependencies:
"@react-native-clipboard/clipboard": ">=1.14.0"
"@react-navigation/native": ^6.0.8
@@ -7777,7 +7777,7 @@ __metadata:
react-native-svg: ">=14.1.0"
react-native-svg-transformer: ">=1.1.0"
react-native-vision-camera: ^2.16.8
- checksum: 10c0/ebd2252ae815ac8a57a5076daf5851efb82934847ff95a55b38ecef7e60de508eef034fda0d542b3b2644c70b70056d81ab987576021cb460cfb7122f216fcba
+ checksum: 10c0/8eab84b569a097e43e37960b768f37fbaec72f7d8fcca5290d951f2d1c4d6092b0ba5705656e76d074003d4edde9157c72a79ceda78aa690df06b04fb1c19307
languageName: node
linkType: hard
| updating receiving mini app version | updating receiving mini app version
|
6182dfa95b785d1408f2eabbbee9f29540589607 | --- src/containers/Message/index.tsx
@@ -1,6 +1,6 @@
import React, {useState} from 'react';
import {Dimensions, Pressable, StyleSheet, View} from 'react-native';
-import {Caption, Modal, Button, Body} from '@walmart/gtp-shared-components';
+import {Caption, Modal, Button} from '@walmart/gtp-shared-components';
import {LocalMessage} from '../../types';
import {Avatar} from '../../components';
import {Bubble} from './Bubble';
@@ -86,14 +86,10 @@ export const Message = ({
const isLongPressDisabled =
(!isGroupMessage && !!isUserSalariedOrTeamLead) || deleted;
- //TODO - should just be a string.
- const deletedMessage = (
- <Body UNSAFE_style={styles.deletedMessageStyles}>
- Message was removed by {deletedByPreferredName}
- </Body>
- );
+ const deletedMessage = t('channelsScreen.deletedMessage', {
+ deletedBy: deletedByPreferredName,
+ });
- //first modal
const handleLongPress = () => {
setIsConfirmationModalVisible(false);
setIsLongPressed(true);
@@ -137,22 +133,26 @@ export const Message = ({
isLongPressed={isLongPressed}
/>
)}
- {!!image && (
- <ImageMessage
- image={image}
- isLongPressed={isLongPressed}
- longPressCallback={handleLongPress}
- />
- )}
-
- {audio && (
- <AudioMessage
- audio={audio}
- outgoing={isMyMessage}
- isLongPressed={isLongPressed}
- />
+ {(image && deleted) || (audio && deleted) ? (
+ <Bubble outgoing={isMyMessage} message={deletedMessage} />
+ ) : (
+ <>
+ {!!image && (
+ <ImageMessage
+ image={image}
+ isLongPressed={isLongPressed}
+ longPressCallback={handleLongPress}
+ />
+ )}
+ {audio && (
+ <AudioMessage
+ audio={audio}
+ outgoing={isMyMessage}
+ isLongPressed={isLongPressed}
+ />
+ )}
+ </>
)}
-
{!!readReceipt && showReadReceipt && (
<Caption UNSAFE_style={styles.readReceipt}>
{readReceipt === 'Read'
@@ -165,7 +165,6 @@ export const Message = ({
)}
</View>
</Pressable>
-
<Modal
isOpen={isLongPressed}
//@ts-ignore
--- src/containers/Message/index.tsx
@@ -1,6 +1,6 @@
import React, {useState} from 'react';
import {Dimensions, Pressable, StyleSheet, View} from 'react-native';
-import {Caption, Modal, Button, Body} from '@walmart/gtp-shared-components';
+import {Caption, Modal, Button} from '@walmart/gtp-shared-components';
import {LocalMessage} from '../../types';
import {Avatar} from '../../components';
import {Bubble} from './Bubble';
@@ -86,14 +86,10 @@ export const Message = ({
const isLongPressDisabled =
(!isGroupMessage && !!isUserSalariedOrTeamLead) || deleted;
- //TODO - should just be a string.
- const deletedMessage = (
- <Body UNSAFE_style={styles.deletedMessageStyles}>
- Message was removed by {deletedByPreferredName}
- </Body>
- );
+ const deletedMessage = t('channelsScreen.deletedMessage', {
+ deletedBy: deletedByPreferredName,
+ });
- //first modal
const handleLongPress = () => {
setIsConfirmationModalVisible(false);
setIsLongPressed(true);
@@ -137,22 +133,26 @@ export const Message = ({
isLongPressed={isLongPressed}
/>
)}
- {!!image && (
- <ImageMessage
- image={image}
- isLongPressed={isLongPressed}
- longPressCallback={handleLongPress}
- />
- )}
-
- {audio && (
- <AudioMessage
- audio={audio}
- outgoing={isMyMessage}
- isLongPressed={isLongPressed}
- />
+ {(image && deleted) || (audio && deleted) ? (
+ <Bubble outgoing={isMyMessage} message={deletedMessage} />
+ ) : (
+ <>
+ {!!image && (
+ <ImageMessage
+ image={image}
+ isLongPressed={isLongPressed}
+ longPressCallback={handleLongPress}
+ />
+ )}
+ {audio && (
+ <AudioMessage
+ audio={audio}
+ outgoing={isMyMessage}
+ isLongPressed={isLongPressed}
+ />
+ )}
+ </>
)}
-
{!!readReceipt && showReadReceipt && (
<Caption UNSAFE_style={styles.readReceipt}>
{readReceipt === 'Read'
@@ -165,7 +165,6 @@ export const Message = ({
)}
</View>
</Pressable>
-
<Modal
isOpen={isLongPressed}
//@ts-ignore
| Adding delete message by for audio and image | Adding delete message by for audio and image
|
8becc226eacaad38829b7e61c3c6c32c69aeded2 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilter.tsx
@@ -11,10 +11,13 @@ import { Images } from '../../../Store/Images/images';
export const ShiftFilter = ({
shiftId,
teamImage,
+ selectedShifts,
handleSelectShift,
}: ShiftFilterProps) => {
const TeamImage = useAllsparkImage();
- const [selected, setSelected] = useState(false);
+ const [selected, setSelected] = useState(
+ selectedShifts?.includes(shiftId) || false
+ );
const handleSelect = () => {
setSelected(!selected);
handleSelectShift(shiftId);
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList.tsx
@@ -8,6 +8,8 @@ import { useAllsparkTranslation } from '@walmart/allspark-foundation';
import { colors } from '@walmart/gtp-shared-components/dist';
import { AlertBanner } from '../../../Shared/Components/AlertBanner';
import { getSubText } from '../../Utils/SubText';
+import { useSelector } from 'react-redux';
+import { ManagerExperienceSelectors } from '../../../Store/Redux/selectors';
import { FEATURE_ID } from '../../constant';
import { HubHeader } from '../../../Store/Components/HubHeader';
@@ -18,6 +20,9 @@ export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({
isModal,
}) => {
const { t } = useAllsparkTranslation(FEATURE_ID);
+ const selectedShifts = useSelector(
+ ManagerExperienceSelectors.getSelectedShifts
+ );
return (
<>
<HubHeader
@@ -47,6 +52,7 @@ export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({
<ShiftFilter
shiftId={item?.shiftId}
teamImage={item?.teamImage}
+ selectedShifts={selectedShifts}
handleSelectShift={handleSelectShift}
/>
</View>
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/types.ts
@@ -5,6 +5,7 @@ export type Shift = {
};
};
export interface ShiftFilterProps extends Shift {
+ selectedShifts?: string[] | undefined;
handleSelectShift: (shiftId: string) => void;
}
| Adding shift state to update team shift modal | Adding shift state to update team shift modal
|
428c9dc8954751528d942b345c67e8296fb5eaaf | --- packages/allspark-foundation/src/Notification/sagas.ts
@@ -3,6 +3,24 @@ import { NotificationSelectors } from './selectors';
import { NotificationActionTypes } from './redux';
import { NotificationProfile } from './types';
+export function* waitForNotificationInitialized() {
+ const loading: boolean = yield select(NotificationSelectors.getInitializing);
+ const loaded: boolean = yield select(NotificationSelectors.getInitialized);
+ const error: boolean = yield select(NotificationSelectors.getInitializeError);
+
+ if (loading || (!loaded && !error)) {
+ yield take([
+ NotificationActionTypes.INIT_SUCCESS,
+ NotificationActionTypes.INIT_ERROR,
+ ]);
+ }
+
+ const initialized: boolean = yield select(
+ NotificationSelectors.getInitialized
+ );
+ return initialized;
+}
+
export function* waitForNotificationRegister() {
const loading: boolean = yield select(NotificationSelectors.getRegistering);
const loaded: boolean = yield select(NotificationSelectors.getRegistered);
@@ -22,5 +40,6 @@ export function* waitForNotificationRegister() {
}
export const NotificationSagas = {
+ waitForNotificationInitialized,
waitForNotificationRegister,
};
| feat: add common notification sagas | feat: add common notification sagas
|
fcf7af83087270619afb7c354fc8d853bed59e04 | --- .github/pull_request_template.md
@@ -0,0 +1,33 @@
+## Links to JIRA tickets:
+
+
+## Types of changes
+What types of changes does your code introduce to AskSam?
+_Put an `x` in the boxes that apply_
+
+- [ ] Bugfix (non-breaking change which fixes an issue)
+- [ ] New feature (non-breaking change which adds functionality)
+- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
+- [ ] Documentation Update (if none of the other choices apply)
+
+
+# Checklist
+- [ ] Have you written unit tests for this?
+- [ ] Does it cover analytics events? If yes, please list them.
+- [ ] Does it cover Splunk Logger events? If yes, please list them.
+- [ ] This feature can be toggled off by Firebase - Remote Config flag
+- [ ] Does your mini app bundle cover all peer Dependencies for core app to install?
+- [ ] Has it been demoed already to Kislaya's Monday meeting?
+- [ ] Are there any changes to shared Redux?
+
+### Please describe the problem this PR is addressing:
+
+
+### Please describe your solution for this problem:
+
+
+### Risk level:
+To help with review, estimate the risk level of the changes in this PR?
+- [ ] Low
+- [ ] Medium
+- [ ] High
| created PR Template file (#56) | created PR Template file (#56)
* created PR Template file
* updated template
* Update .github/pull_request_template.md
Co-authored-by: Andrew Fulton - a0f00ev <Andrew.Fulton@walmart.com>
|
e01c1474d4d874191b6567cf09d80791152c5c4c | --- app.config.US.ts
@@ -271,6 +271,21 @@ const CONFIG: ExpoConfig = {
'Allow $(PRODUCT_NAME) to use your Camera for scanning barcodes',
},
],
+ [
+ 'react-native-audio-api',
+ {
+ 'iosBackgroundMode': true,
+ 'androidPermissions' : [
+ 'android.permission.MODIFY_AUDIO_SETTINGS',
+ 'android.permission.FOREGROUND_SERVICE',
+ 'android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK'
+ ],
+ 'androidForegroundService': true,
+ 'androidFSTypes': [
+ 'mediaPlayback'
+ ]
+ }
+ ],
ExpoPlugins.withAbiFilters,
ExpoPlugins.withActiveArchFix,
ExpoPlugins.withAndroidOfflineRun,
--- metro.config.js
@@ -1,6 +1,9 @@
/*eslint-env node*/
const {getDefaultConfig} = require('expo/metro-config');
const findWorkspaceRoot = require('find-yarn-workspace-root');
+const {
+ wrapWithAudioAPIMetroConfig,
+} = require('react-native-audio-api/metro-config');
const path = require('path');
module.exports = (() => {
@@ -39,5 +42,5 @@ module.exports = (() => {
]
};
- return config;
+ return wrapWithAudioAPIMetroConfig(config);
})();
--- package.json
@@ -212,6 +212,7 @@
"react-i18next": "^13.3.1",
"react-native": "patch:react-native@npm%3A0.76.9#~/.yarn/patches/react-native-npm-0.76.9-d42941e680.patch",
"react-native-app-auth": "7.2.0",
+ "react-native-audio-api": "^0.6.5",
"react-native-ble-manager": "11.6.1",
"react-native-blob-util": "^0.19.5",
"react-native-calendars": "^1.1291.0",
--- yarn.lock
@@ -7740,6 +7740,7 @@ __metadata:
react-i18next: "npm:^13.3.1"
react-native: "patch:react-native@npm%3A0.76.9#~/.yarn/patches/react-native-npm-0.76.9-d42941e680.patch"
react-native-app-auth: "npm:7.2.0"
+ react-native-audio-api: "npm:^0.6.5"
react-native-ble-manager: "npm:11.6.1"
react-native-blob-util: "npm:^0.19.5"
react-native-calendars: "npm:^1.1291.0"
@@ -19032,6 +19033,18 @@ __metadata:
languageName: node
linkType: hard
+"react-native-audio-api@npm:^0.6.5":
+ version: 0.6.5
+ resolution: "react-native-audio-api@npm:0.6.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-audio-api%2F-%2Freact-native-audio-api-0.6.5.tgz"
+ peerDependencies:
+ react: "*"
+ react-native: "*"
+ bin:
+ setup-rn-audio-api-web: scripts/setup-rn-audio-api-web.js
+ checksum: 10c0/92e57cc95dd24d9ea1ce7772a36fe24deac049c91e4aa5bb5f7bc7bcce9792ba170e5ae5f82c2ac84a5c1dbea94ad653185397e10e951fef90ad99bad6fb5a46
+ languageName: node
+ linkType: hard
+
"react-native-base64@npm:0.0.2":
version: 0.0.2
resolution: "react-native-base64@npm:0.0.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-base64%2F-%2Freact-native-base64-0.0.2.tgz"
| feat(pkg): add react-native-audio-api as dependency (#4517) | feat(pkg): add react-native-audio-api as dependency (#4517)
* feat(pkg): add expo-video dependency
* feat(pkg): add react-native-audio-api package
---------
Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com> |
03fad9424c10cf023e0a73b0ff0cc21b6119738b | --- example/src/teamHub/screens/index.ts
@@ -1,12 +1,12 @@
import {ContainerScreen} from './container';
import {TestModal} from './modal';
-import {OnboardingScreen} from './onboarding';
+import {OnboardingEntryScreen} from './onboarding';
import {HomeScreen} from './screen';
import {FeatureStack} from './stack';
export const TeamHubScreens = {
'teamHub.home': HomeScreen,
- 'teamHub.onboarding': OnboardingScreen,
+ 'teamHub.onboarding': OnboardingEntryScreen,
'teamHub.container': ContainerScreen,
'teamHub.stack': FeatureStack,
};
| feat: fixed onboarding import | feat: fixed onboarding import
|
80b102d715f1df9fb350606ff64e29e33e914c72 | --- packages/core-widget-registry/src/index.tsx
@@ -2,3 +2,4 @@ export * from './AskSam';
export * from './Core';
export * from './Inbox';
export * from './Metrics';
+export * from './Sidekick';
| fix: export sidekick widget registry from root | fix: export sidekick widget registry from root
|
0b352171656d0c35071ca7fdd36e52990f1c2fb1 | --- package.json
@@ -128,7 +128,7 @@
"@walmart/mod-flex-mini-app": "1.29.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "2.4.3",
- "@walmart/myteam-mini-app": "3.3.0",
+ "@walmart/myteam-mini-app": "3.4.0",
"@walmart/native-rfid-scanner": "4.1.4",
"@walmart/onewalmart-miniapp": "1.0.27",
"@walmart/online-w4-mini-app": "0.8.1",
@@ -152,7 +152,7 @@
"@walmart/rfid-scan-mini-app": "2.13.2",
"@walmart/rn-mobile-sdk-pairing": "2.1.8",
"@walmart/rn-receiving-mini-app": "2.5.25",
- "@walmart/roster-mini-app": "3.5.0",
+ "@walmart/roster-mini-app": "3.6.0",
"@walmart/schedule-mini-app": "2.6.1",
"@walmart/shelfavailability-mini-app": "1.5.47",
"@walmart/shop-gnfr-mini-app": "1.0.421",
@@ -169,7 +169,7 @@
"@walmart/welcomeme-mini-app": "1.0.13",
"@walmart/wfm-ui": "3.0.4",
"@walmart/wm-plus-mini-app": "1.5.5",
- "@walmart/wmconnect-mini-app": "3.4.0",
+ "@walmart/wmconnect-mini-app": "3.5.0",
"axios": "~1.6.0",
"axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch",
"axios-cache-interceptor": "patch:axios-cache-interceptor@npm%3A1.5.1#~/.yarn/patches/axios-cache-interceptor-npm-1.5.1-c84dd3f9ed.patch",
--- yarn.lock
@@ -8721,7 +8721,7 @@ __metadata:
"@walmart/mod-flex-mini-app": "npm:1.29.5"
"@walmart/moment-walmart": "npm:1.0.4"
"@walmart/money-auth-shared-components": "npm:2.4.3"
- "@walmart/myteam-mini-app": "npm:3.3.0"
+ "@walmart/myteam-mini-app": "npm:3.4.0"
"@walmart/native-rfid-scanner": "npm:4.1.4"
"@walmart/onewalmart-miniapp": "npm:1.0.27"
"@walmart/online-w4-mini-app": "npm:0.8.1"
@@ -8745,7 +8745,7 @@ __metadata:
"@walmart/rfid-scan-mini-app": "npm:2.13.2"
"@walmart/rn-mobile-sdk-pairing": "npm:2.1.8"
"@walmart/rn-receiving-mini-app": "npm:2.5.25"
- "@walmart/roster-mini-app": "npm:3.5.0"
+ "@walmart/roster-mini-app": "npm:3.6.0"
"@walmart/schedule-mini-app": "npm:2.6.1"
"@walmart/shelfavailability-mini-app": "npm:1.5.47"
"@walmart/shop-gnfr-mini-app": "npm:1.0.421"
@@ -8762,7 +8762,7 @@ __metadata:
"@walmart/welcomeme-mini-app": "npm:1.0.13"
"@walmart/wfm-ui": "npm:3.0.4"
"@walmart/wm-plus-mini-app": "npm:1.5.5"
- "@walmart/wmconnect-mini-app": "npm:3.4.0"
+ "@walmart/wmconnect-mini-app": "npm:3.5.0"
adaptive-expressions: "npm:^4.13.5"
adaptivecards-templating: "npm:^2.1.0"
axios: "npm:~1.6.0"
@@ -9056,9 +9056,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/myteam-mini-app@npm:3.3.0":
- version: 3.3.0
- resolution: "@walmart/myteam-mini-app@npm:3.3.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmyteam-mini-app%2F-%2F%40walmart%2Fmyteam-mini-app-3.3.0.tgz"
+"@walmart/myteam-mini-app@npm:3.4.0":
+ version: 3.4.0
+ resolution: "@walmart/myteam-mini-app@npm:3.4.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmyteam-mini-app%2F-%2F%40walmart%2Fmyteam-mini-app-3.4.0.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.32.0"
expo: ~52.0.46
@@ -9069,7 +9069,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/f8a65394e2c5c356f06ecdf0fe0ea4f127fc24024095acef070884338f9b72db1611e524e58e3f0c1a4e1b4683231ce72d6be4a7f0d2acb11771c11c8c93719e
+ checksum: 10c0/d972f7e17024119475290eb6af50217f367fdba4a1f6b92c9c469314a4908b5a958e4de9894d7dede1f7c810e5fd0b1149e58775c5be79e82df75f020dadeb35
languageName: node
linkType: hard
@@ -9425,9 +9425,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:3.5.0":
- version: 3.5.0
- resolution: "@walmart/roster-mini-app@npm:3.5.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.5.0.tgz"
+"@walmart/roster-mini-app@npm:3.6.0":
+ version: 3.6.0
+ resolution: "@walmart/roster-mini-app@npm:3.6.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.6.0.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.32.0"
expo: ~52.0.46
@@ -9438,7 +9438,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/fd9d31fc38ed4493d4fd88a313d0e56e3353b1279385d7cc40e82109f25b6f1ba7903257ad3918e9007eb31f0363eb975cad415fa8398fce433894a70f65792c
+ checksum: 10c0/37b5670243b1e290dd4ce01539576716012e0a12e54708cdebce8e58f7331e0eac2e32e75d67c56d12aaeb3ad0c6c8ab0cbebae530e6283ed87bb6919b4c2e00
languageName: node
linkType: hard
@@ -9931,9 +9931,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:3.4.0":
- version: 3.4.0
- resolution: "@walmart/wmconnect-mini-app@npm:3.4.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.4.0.tgz"
+"@walmart/wmconnect-mini-app@npm:3.5.0":
+ version: 3.5.0
+ resolution: "@walmart/wmconnect-mini-app@npm:3.5.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.5.0.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.32.0"
expo: ~52.0.46
@@ -9944,7 +9944,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/6b9ababd18c0706138e32c5e55bf85831753a6c4e5f334c806e0e3b2169c4a4a27c4102d2aba974394a763ee9feb208db192c05424bd12ae5a1225b4873196f8
+ checksum: 10c0/9241abf7dc5c5a3732c1fc144097600bcf758514d1e64a2b7c36262709dbd28bcec92c06b2b8077be8b5fc764a2e690e387ca8c21808bc2776392e4d1f7143f1
languageName: node
linkType: hard
| feat(ui): updating myteam, roster and wmconnect version for firestore changes (#4703) | feat(ui): updating myteam, roster and wmconnect version for firestore changes (#4703)
* feat(ui): updating myteam, roster and wmconnect version
* feat(ui): updating myteam, roster and wmconnect version
* feat(ui): updating myteam, roster and wmconnect version
* feat(ui): updating yarn.lock with develop
* feat(ui): updating yarn.lock with myteam app changes
---------
Co-authored-by: p0k03fp <Prachi.Kunjir@walmart.com> |
638828bfbb1649a5e165aaccbfb3689b8640687a | --- src/common/index.ts
@@ -2,5 +2,7 @@ export * from './constants';
export * from './feature';
export * from './logger';
export * from './telemetry';
+export * from './httpClient';
+export * from './graphqlClient';
export * from './translation';
export * from './localStorage';
| feat: added back exports | feat: added back exports
|
8c2a5b461607b566efd5d7b612acdde53af246cf | --- .looper-pr.yml
@@ -8,7 +8,7 @@ envs:
LINT: false
UNITTEST: false
BUILD: false
- SONAR_SCAN: true
+ SONAR_SCAN: false
ARTIFACT_PUBLISH: true
AUTO_PR_MONO: false
JIRAPREFIX: SSMP
@@ -17,4 +17,3 @@ envs:
AUTHOR: temp
SLACK_CHANNEL: "smdv-miniapp"
-
\ No newline at end of file
| feat(ci): update to new looper template SSMP-1101 | feat(ci): update to new looper template SSMP-1101
|
d898925b8baad2a7f8150f4cf1f79af0a3e8f191 | --- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx
@@ -22,7 +22,7 @@ import {
import { AllsparkNavigationClient } from '@walmart/allspark-foundation/Navigation';
import {
- findTeamById,
+ findTeamByLabel,
getDefaultTeamsForUserType,
sorter,
} from '../../Utils/utils';
@@ -45,7 +45,6 @@ import { useAllsparkImage } from '@walmart/allspark-foundation/Components/contex
import { LoggerService } from '@walmart/allspark-foundation/Logger';
import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation';
import { useUserPersonaType } from '../../../Shared/Hooks/useUserPersonaType';
-import { useFocusEffect } from '@react-navigation/native';
export * from './types';
@@ -112,24 +111,27 @@ export const TeamSwitcher = ({
const { isOffSite, allTeamsOfStore } = useGetAllTeamsOfStore();
const flatListRef = useRef<FlatList<any>>(null);
- useFocusEffect(() => {
- if (flatListRef.current) {
- flatListRef.current.scrollToOffset({ animated: false, offset: 0 });
- }
- });
+ const selectedTeamIndex = teamSwitcherList.findIndex(
+ (item) => item.teamLabel === selectedTeamPreference
+ );
- useEffect(() => {
- const selectedIndex = teamSwitcherList.findIndex(
- (item) => item.teamLabel === selectedTeamPreference
- );
- if (selectedIndex >= 0) {
- flatListRef.current?.scrollToIndex({
+ const handleScrollToIndex = useCallback(() => {
+ if (selectedTeamIndex >= 0 && flatListRef.current) {
+ flatListRef.current.scrollToIndex({
animated: false,
- index: selectedIndex,
+ index: selectedTeamIndex,
viewOffset: 0.5,
});
}
- }, [teamSwitcherList, selectedTeamPreference]);
+ }, [selectedTeamIndex]);
+
+ const handleScrollToIndexFailed = () => {
+ flatListRef.current?.scrollToIndex({
+ animated: false,
+ index: 0,
+ viewOffset: 0.5,
+ });
+ };
const isSalariedAndNotHomeOffice =
isOffSite && empType === EMP_TYPE_SALARIED && !isHomeOffice;
@@ -196,7 +198,7 @@ export const TeamSwitcher = ({
setTeamSwitcherList(evaluatedTeamList);
selectTeam(
- findTeamById(evaluatedTeamList, selectedTeamPreference) ||
+ findTeamByLabel(evaluatedTeamList, selectedTeamPreference) ||
evaluatedSelectTeam
);
};
@@ -212,6 +214,16 @@ export const TeamSwitcher = ({
isPrefAvaialable,
]);
+ useEffect(() => {
+ if (selectedTeamPreference) {
+ dispatch(
+ StoreManagerExperienceCreators.updateSelectedTeamPreference(
+ selectedTeamPreference
+ )
+ );
+ }
+ }, [selectedTeamPreference, dispatch]);
+
useEffect(() => {
refetch();
loggerRef.current.info('Team switcher refetch', {
@@ -265,7 +277,8 @@ export const TeamSwitcher = ({
};
const renderTeamItem = ({ item }: { item: TeamSwitcherTypes }) => {
- const isSelected = item?.teamLabel === selectedTeam;
+ const isSelected =
+ item?.teamLabel === (selectedTeamPreference || selectedTeam);
if (!item.teamLabel) {
return null;
}
@@ -355,16 +368,11 @@ export const TeamSwitcher = ({
horizontal={true}
showsHorizontalScrollIndicator={false}
ListEmptyComponent={renderEmptyList}
+ onScrollToIndexFailed={handleScrollToIndexFailed}
+ onContentSizeChange={handleScrollToIndex}
ListFooterComponent={
isOffSite ? <></> : <AddEditButton onPress={handleAddEditPress} />
}
- onScrollToIndexFailed={(_) => {
- flatListRef.current?.scrollToIndex({
- animated: false,
- index: 0,
- viewOffset: 0.5,
- });
- }}
/>
</View>
{error && (
--- packages/allspark-foundation-hub/src/Store/Utils/utils.ts
@@ -55,6 +55,13 @@ export const findTeamById = (
return teamList.find((team) => team.teamId === teamPreference);
};
+export const findTeamByLabel = (
+ teamList: TeamSwitcherTypes[],
+ teamPreference: string
+) => {
+ return teamList.find((team) => team.teamLabel === teamPreference);
+};
+
/**
* Sorts to send the team switcher correlated to the primary team to the front of the list
*
| selected team tab | selected team tab
|
dc7e24ed698278519d8e3d9a5a33e6c791df6cf5 | --- targets/US/package.json
@@ -85,7 +85,7 @@
"@walmart/amp-mini-app": "1.1.89",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.24.7",
- "@walmart/associate-listening-mini-app": "1.2.9-0",
+ "@walmart/associate-listening-mini-app": "1.2.10",
"@walmart/attendance-mini-app": "3.44.0",
"@walmart/avp-feature-app": "0.10.7",
"@walmart/avp-shared-library": "0.10.1",
--- yarn.lock
@@ -5946,9 +5946,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/associate-listening-mini-app@npm:1.2.9-0":
- version: 1.2.9-0
- resolution: "@walmart/associate-listening-mini-app@npm:1.2.9-0"
+"@walmart/associate-listening-mini-app@npm:1.2.10":
+ version: 1.2.10
+ resolution: "@walmart/associate-listening-mini-app@npm:1.2.10"
dependencies:
"@walmart/associate-listening-utils": "npm:5.0.79"
peerDependencies:
@@ -5959,7 +5959,7 @@ __metadata:
"@walmart/gtp-shared-components": 2.0.5
react: ^18.2.0
react-native: 0.70.9
- checksum: 10c0/9be456f6455f3e30269d52b71fd37b1fffff43ecc0c4ea1f331402c6b1a25c65544a2dbe02f7e0cfdb10bb29b43a2cff49f66194df87bb78c865347ff65fb9fa
+ checksum: 10c0/8d3d88aeeccfd8e92f76b23cc1e15d3b8cdd76d31e332bf4624ef68e6fe6a871646d4c3dd81d61d6727804badc51743b5245160e5eebfe2608fecd14bca0a0b1
languageName: node
linkType: hard
@@ -7001,7 +7001,7 @@ __metadata:
"@walmart/amp-mini-app": "npm:1.1.89"
"@walmart/ask-sam-chat-components": "npm:^0.2.7"
"@walmart/ask-sam-mini-app": "npm:1.24.7"
- "@walmart/associate-listening-mini-app": "npm:1.2.9-0"
+ "@walmart/associate-listening-mini-app": "npm:1.2.10"
"@walmart/attendance-mini-app": "npm:3.44.0"
"@walmart/avp-feature-app": "npm:0.10.7"
"@walmart/avp-shared-library": "npm:0.10.1"
| feat: 🎸 associate mini app configurable survey | feat: 🎸 associate mini app configurable survey
|
b4c7ecb609d0c0dfd7dccb0eda93d21b1a802591 | --- package.json
@@ -73,7 +73,7 @@
"@walmart/allspark-health-survey-mini-app": "0.0.43",
"@walmart/allspark-home-mini-app": "0.5.2",
"@walmart/allspark-me-mini-app": "0.2.4",
- "@walmart/ask-sam-mini-app": "^0.30.29",
+ "@walmart/ask-sam-mini-app": "0.30.29",
"@walmart/config-components": "^1.0.33",
"@walmart/counts-component-miniapp": "0.0.22",
"@walmart/exception-mini-app": "0.37.0",
| remove ^ from version | remove ^ from version
|
e5db559a3ac39b6b467d29cb43938d00191a8385 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 79
+ versionCode 80
versionName "1.0.5"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>79</string>
+ <string>80</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>invmgmt</string>
| Incrementing build number | Incrementing build number
|
c10933b0ed59f6dbf4e518035f062a2defb779e3 | --- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx
@@ -337,10 +337,5 @@ describe('MainTabsNav', () => {
.props.listeners.tabPress({preventDefault} as any);
expect(preventDefault).toHaveBeenCalled();
expect(navigate).toHaveBeenCalledWith('askSam');
- expect(WmTelemetry.logEvent).toHaveBeenCalledWith(
- 'bottom_nav',
- 'askSam_clicked',
- {},
- );
});
});
--- src/navigation/AssociateHallwayNav/Tabs/index.tsx
@@ -35,7 +35,6 @@ import styles from './styles';
export const AskSamPlaceholder = () => <View />;
export const onAskSamTabPress = (e: EventArg<'tabPress', true, undefined>) => {
- WmTelemetry.logEvent('bottom_nav', 'askSam_clicked', {});
e.preventDefault();
navigate('askSam');
};
| adding test case update | adding test case update
|
8cd3ec05b0c0ac45a1ca1dbed01c50c6440e8950 | --- .looper-pr.yml
@@ -20,7 +20,7 @@ envs:
STAGES_TO_RUN:
LINT: true
UNITTEST: true
- BUILD: true
+ BUILD: false
SONAR_SCAN: true
ARTIFACT_PUBLISH: true
AUTO_PR_MONO: false
| fix(ui): update package | fix(ui): update package
|
3eb53579f3900cf6d22bb447cdc4b7ae5c399d08 | --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx
@@ -473,7 +473,7 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [
clockCheckEnabled: false,
},
{
- featureId: FEEDBACK_ME,
+ featureId: MINI_APPS.FEEDBACK_ME,
name: 'FeedbackDialogScreen',
component: FeedbackDialogScreen,
options: {
| fixed unit test failure | fixed unit test failure
|
be6fc93884f79ad2b9600b685fe9709c0870d0f0 | --- core/src/getFeatures.ts
@@ -21,6 +21,7 @@ export const getRootFeatures = () => {
require('./updates').UpdateCheckFeature,
require('./core').CommonFeatures,
require('./startup').StartupFeature,
+ require('./oneClick').OneClickFeature,
];
if (AllsparkEnvironment.VALUES.containerName === ME_AT_WALMART) {
--- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx
@@ -66,7 +66,7 @@ import {TopstockMiniApp} from '@walmart/topstock-mini-app';
import {WmPlusMiniApp} from '@walmart/wm-plus-mini-app';
import {MeganavTextingScreen} from '@walmart/wmconnect-mini-app';
-import {CreateGuardedScreens} from '../../../core/ClockOutGuard';
+import {CreateGuardedScreens} from '../../../core/CreateGuardedScreens';
import {MainTabsNav} from './Tabs';
import {MainStackMap} from './types';
import {MyTeamStackNav} from './Tabs/MyTeamStackNav';
--- core/src/oneClick/OneClickSagas.tsx
@@ -16,7 +16,7 @@ import {ConfigActionTypes} from '@walmart/allspark-foundation/Config';
export function* onOneClickRequest(): any {
try {
// App config data
- const appConfigData = useSelector(ConfigSelectors.getData);
+ const appConfigData = yield select(ConfigSelectors.getData);
// If no meganav data, stop here
const meganavData: NavConfigData = yield select(NavConfigSelectors.getData);
@@ -27,7 +27,7 @@ export function* onOneClickRequest(): any {
//Calling updateMeganavData for the updated data
const updateMegaNavCCMData = updateMegaNavCCM(
meganavData,
- appConfigData?.data?.oneClick,
+ appConfigData?.oneClick,
);
//updating the meganav data
| ALLSPARK-3962: Fixed merge conflicts | ALLSPARK-3962: Fixed merge conflicts
|
7061cb8a47a94aeda4b1b96342247c0b591a1153 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts
@@ -2,10 +2,20 @@ export const enUS = {
searchTeamInput: {
placeHolder: 'Search for a team',
},
+ shiftFilter: {
+ title: 'Pick your shift',
+ subText:
+ 'Shift A1 is selected by default, but you can change it at any time.',
+ },
};
export const esMX = {
searchTeamInput: {
placeHolder: 'Buscar un equipo',
},
+ shiftFilter: {
+ title: 'Elige tu turno',
+ subText:
+ 'El cambio A1 está seleccionado de forma predeterminada, pero puede cambiarlo en cualquier momento.',
+ },
};
| Adding translations | Adding translations
|
284313c91cb8adc10fa56d5638cd2e9f6d235f27 | --- package-lock.json
@@ -46,7 +46,7 @@
"@walmart/counts-component-miniapp": "0.1.2",
"@walmart/emergency-mini-app": "1.19.0",
"@walmart/exception-mini-app": "1.0.16",
- "@walmart/facilities-management-miniapp": "0.6.0-beta1",
+ "@walmart/facilities-management-miniapp": "0.6.0-beta2",
"@walmart/feedback-all-spark-miniapp": "0.9.10",
"@walmart/financial-wellbeing-feature-app": "1.1.2",
"@walmart/functional-components": "2.0.6",
@@ -5070,9 +5070,9 @@
}
},
"node_modules/@walmart/facilities-management-miniapp": {
- "version": "0.6.0-beta1",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.0-beta1.tgz",
- "integrity": "sha512-EPZWldSCO+iG46jBGhdIh4P5dGOKcNIwsPF9z3zqTL9u043BOuKlfJn6Rwal9Y5DByEWO0Isv4/Cthx/9GylLw==",
+ "version": "0.6.0-beta2",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.0-beta2.tgz",
+ "integrity": "sha512-J8AP6cqWvy50U0xBoEslzkf7SvmQtgAXmTclfJRfych9ifTqMTn6HmffQV1nKT/kzedQa4s/w5FkeTlIU/rJHw==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-community/async-storage": "^1.12.1",
@@ -25324,9 +25324,9 @@
"integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ=="
},
"@walmart/facilities-management-miniapp": {
- "version": "0.6.0-beta1",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.0-beta1.tgz",
- "integrity": "sha512-EPZWldSCO+iG46jBGhdIh4P5dGOKcNIwsPF9z3zqTL9u043BOuKlfJn6Rwal9Y5DByEWO0Isv4/Cthx/9GylLw=="
+ "version": "0.6.0-beta2",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.0-beta2.tgz",
+ "integrity": "sha512-J8AP6cqWvy50U0xBoEslzkf7SvmQtgAXmTclfJRfych9ifTqMTn6HmffQV1nKT/kzedQa4s/w5FkeTlIU/rJHw=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.9.10",
--- package.json
@@ -88,7 +88,7 @@
"@walmart/counts-component-miniapp": "0.1.2",
"@walmart/emergency-mini-app": "1.19.0",
"@walmart/exception-mini-app": "1.0.16",
- "@walmart/facilities-management-miniapp": "0.6.0-beta1",
+ "@walmart/facilities-management-miniapp": "0.6.0-beta2",
"@walmart/feedback-all-spark-miniapp": "0.9.10",
"@walmart/financial-wellbeing-feature-app": "1.1.2",
"@walmart/functional-components": "2.0.6",
| Updating package.json - @walmart/facilities-management-miniapp to 0.6.0-beta2 | Updating package.json - @walmart/facilities-management-miniapp to 0.6.0-beta2
|
e2ad4d917529b4471555cf1652c1b3ae6c23636e | --- docs/CHANGELOG.md
@@ -1,3 +1,16 @@
+# [1.34.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.33.0...v1.34.0) (2025-05-21)
+
+
+### Bug Fixes
+
+* **ui:** update package ([2319961](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/2319961e3dfc2ae18e1f3648c9dcda29a5972677))
+
+
+### Features
+
+* **ui:** update scripts ([5b649d8](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/5b649d85b971efe4554252392df1f623a888ff61))
+* **ui:** update scripts ([89be288](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/89be2883f272a4473bfe758e110ca04bdf609dd1))
+
# [1.33.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.32.0...v1.33.0) (2025-05-12)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.33.0",
+ "version": "1.34.0",
"main": "dist/index.js",
"files": [
"dist",
@@ -195,5 +195,10 @@
"skipScope": false,
"jiraPrefix": "JIRA_PROJECT"
}
+ },
+ "dependencies": {
+ "expo": "~51.0.28",
+ "react": "18.2.0",
+ "react-native": "0.74.5"
}
}
| chore(release): 1.34.0 [skip ci] | chore(release): 1.34.0 [skip ci]
# [1.34.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.33.0...v1.34.0) (2025-05-21)
### Bug Fixes
* **ui:** update package ([2319961](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/2319961e3dfc2ae18e1f3648c9dcda29a5972677))
### Features
* **ui:** update scripts ([5b649d8](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/5b649d85b971efe4554252392df1f623a888ff61))
* **ui:** update scripts ([89be288](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/89be2883f272a4473bfe758e110ca04bdf609dd1))
|
613e6342fe2ac6d7c59345b8014ac90591b2bc5a | --- packages/allspark-foundation/src/Container/AllsparkContainer.tsx
@@ -50,10 +50,6 @@ export class AllsparkContainer<E extends IAllsparkEnvironment> {
>
>(key: K, environment: E) {
if (this.config[key]) {
- console.log('rlane1 - resolving config', {
- key,
- config: this.config[key],
- });
return this.config[key] as AllsparkContainerConfig[K];
}
@@ -61,7 +57,6 @@ export class AllsparkContainer<E extends IAllsparkEnvironment> {
const keyConfig = typeof value === 'function' ? value(environment) : value;
// @ts-ignore
this.config[key] = keyConfig;
- console.log('rlane1 - resolving config', { key, config: keyConfig });
return keyConfig as AllsparkContainerConfig[K];
}
| chore: remove console log | chore: remove console log
|
9b2afe422ef15f62c4758819d76ce99700e8509e | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.15.37",
+ "version": "1.15.38",
"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.39",
+ "@walmart/roster-mini-app": "2.12.40",
"@walmart/ui-components": "1.15.1",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
--- yarn.lock
@@ -6416,7 +6416,7 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-sumo-sdk": "npm:2.6.0"
"@walmart/redux-store": "npm:3.7.0"
- "@walmart/roster-mini-app": "npm:2.12.39"
+ "@walmart/roster-mini-app": "npm:2.12.40"
"@walmart/ui-components": "npm:1.15.1"
babel-jest: "npm:^29.2.1"
chance: "npm:^1.1.11"
@@ -6597,9 +6597,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:2.12.39":
- version: 2.12.39
- resolution: "@walmart/roster-mini-app@npm:2.12.39"
+"@walmart/roster-mini-app@npm:2.12.40":
+ version: 2.12.40
+ resolution: "@walmart/roster-mini-app@npm:2.12.40"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6641,7 +6641,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/2379bf04a0a92d779b373d5078f58af1a0b2380693880aa8bafb0a37979678d8159a44957cbbefb0d45d92c85c45979e1ce68ff8801040d79cccfa6a69a76bae
+ checksum: 10c0/741f43458e2a6cc660eb26aa051c8e017eb979b9793db96c1e4c731db1bd15c53f187f61773b06b40b128fe043b81f2f6e41649090b13c51b835ce52bcef631c
languageName: node
linkType: hard
| Update the roster mini app version | Update the roster mini app version
|
19570926df2bbf669edbe224cce855e63fc8856d | --- src/constants.ts
@@ -8,3 +8,5 @@ export enum ABSENT_STATUS {
ABSENT = 1,
TARDY = 2,
}
+
+export const REDUX_STORE_KEY = 'textingMiniApp';
--- src/index.tsx
@@ -1,8 +1,7 @@
import React, {Dispatch, useEffect, useMemo, useReducer} from 'react';
import {useSelector} from 'react-redux';
import {firebase} from '@react-native-firebase/app-check';
-
-import {SiteSelectors} from '@walmart/redux-store';
+import {SiteSelectors, addSagas} from '@walmart/redux-store';
import {useEnvironment} from '@walmart/core-services/Environment';
import {LoggerCloneProvider} from '@walmart/core-services/Logger';
@@ -26,7 +25,14 @@ import {PresenceProvider} from './presence';
import {ChannelsProvider} from './channels';
import {RNFBConfigAndroid, RNFBConfigiOS} from './constants';
import {NotificationConsumer} from '@walmart/core-services/Notification/consumers';
-import {initNotificationListeners, miniAppNotificationRef} from "./notification";
+import {
+ initNotificationListeners,
+ miniAppNotificationRef,
+} from './notification';
+import {
+ routePushNotification,
+ routePushNotificationSaga,
+} from './redux/Notifications/sagas';
export const LOGGER_FIELDS = {id: 'texting-mini-app'};
@@ -51,6 +57,8 @@ export const initialize = async () => {
provider: rnfbProvider,
isTokenAutoRefreshEnabled: true,
});
+ addSagas(routePushNotificationSaga);
+ initNotificationListeners();
};
export const TextingMiniApp = () => {
@@ -63,10 +71,6 @@ export const TextingMiniApp = () => {
const storeId: string = useSelector(SiteSelectors.getUserWorkingSite) ?? '1';
const countryCode: string = useSelector(SiteSelectors.getSiteCountry) ?? 'us';
- useEffect(() => {
- initNotificationListeners();
- }, []);
-
useMemo(() => {
purgeOldFiles();
}, []);
--- src/notification.ts
@@ -5,6 +5,8 @@ import {
} from '@walmart/core-services/Notification';
import {IAllsparkNotification} from '@walmart/core-services-allspark';
import {createRef} from 'react';
+import {getStore} from '@walmart/redux-store';
+import {NotificationActions} from "./redux/Notifications";
export const miniAppNotificationRef = createRef<
INotificationContext<IAllsparkNotification>
@@ -12,12 +14,13 @@ export const miniAppNotificationRef = createRef<
export const onBackgroundNotification = (event?: SumoPushEvent) => {
let handled = false;
-
+ const dispatch = getStore()?.dispatch;
if (event?.customData?.category) {
console.log(
'Texting mini app is handling this notification! The category: ' +
event?.customData?.category,
);
+ dispatch(NotificationActions.routePushNotification(event?.customData));
handled = true;
}
--- src/redux/Notifications/index.ts
@@ -0,0 +1,14 @@
+import {createActions} from 'reduxsauce';
+import {REDUX_STORE_KEY} from '../../constants';
+
+const {Types, Creators} = createActions<any, any>(
+ {
+ routePushNotification: ['pushNotificationEvent'],
+ },
+ {
+ prefix: `${REDUX_STORE_KEY}/notifications/`,
+ },
+);
+
+export const NotificationTypes = Types;
+export const NotificationActions = Creators;
--- src/redux/Notifications/sagas.ts
@@ -0,0 +1,18 @@
+import {takeLatest} from 'redux-saga/effects';
+import {NotificationTypes} from '.';
+
+//TODO: Create proper type
+export function* routePushNotification(action: any) {
+ const {pushNotificationEvent} = action;
+ console.log(
+ '*** routePushNotification saga invoked, routing based on event payload ***',
+ );
+ console.log(pushNotificationEvent);
+}
+
+export function* routePushNotificationSaga() {
+ yield takeLatest(
+ NotificationTypes.ROUTE_PUSH_NOTIFICATION,
+ routePushNotification,
+ );
+}
--- src/constants.ts
@@ -8,3 +8,5 @@ export enum ABSENT_STATUS {
ABSENT = 1,
TARDY = 2,
}
+
+export const REDUX_STORE_KEY = 'textingMiniApp';
--- src/index.tsx
@@ -1,8 +1,7 @@
import React, {Dispatch, useEffect, useMemo, useReducer} from 'react';
import {useSelector} from 'react-redux';
import {firebase} from '@react-native-firebase/app-check';
-
-import {SiteSelectors} from '@walmart/redux-store';
+import {SiteSelectors, addSagas} from '@walmart/redux-store';
import {useEnvironment} from '@walmart/core-services/Environment';
import {LoggerCloneProvider} from '@walmart/core-services/Logger';
@@ -26,7 +25,14 @@ import {PresenceProvider} from './presence';
import {ChannelsProvider} from './channels';
import {RNFBConfigAndroid, RNFBConfigiOS} from './constants';
import {NotificationConsumer} from '@walmart/core-services/Notification/consumers';
-import {initNotificationListeners, miniAppNotificationRef} from "./notification";
+import {
+ initNotificationListeners,
+ miniAppNotificationRef,
+} from './notification';
+import {
+ routePushNotification,
+ routePushNotificationSaga,
+} from './redux/Notifications/sagas';
export const LOGGER_FIELDS = {id: 'texting-mini-app'};
@@ -51,6 +57,8 @@ export const initialize = async () => {
provider: rnfbProvider,
isTokenAutoRefreshEnabled: true,
});
+ addSagas(routePushNotificationSaga);
+ initNotificationListeners();
};
export const TextingMiniApp = () => {
@@ -63,10 +71,6 @@ export const TextingMiniApp = () => {
const storeId: string = useSelector(SiteSelectors.getUserWorkingSite) ?? '1';
const countryCode: string = useSelector(SiteSelectors.getSiteCountry) ?? 'us';
- useEffect(() => {
- initNotificationListeners();
- }, []);
-
useMemo(() => {
purgeOldFiles();
}, []);
--- src/notification.ts
@@ -5,6 +5,8 @@ import {
} from '@walmart/core-services/Notification';
import {IAllsparkNotification} from '@walmart/core-services-allspark';
import {createRef} from 'react';
+import {getStore} from '@walmart/redux-store';
+import {NotificationActions} from "./redux/Notifications";
export const miniAppNotificationRef = createRef<
INotificationContext<IAllsparkNotification>
@@ -12,12 +14,13 @@ export const miniAppNotificationRef = createRef<
export const onBackgroundNotification = (event?: SumoPushEvent) => {
let handled = false;
-
+ const dispatch = getStore()?.dispatch;
if (event?.customData?.category) {
console.log(
'Texting mini app is handling this notification! The category: ' +
event?.customData?.category,
);
+ dispatch(NotificationActions.routePushNotification(event?.customData));
handled = true;
}
--- src/redux/Notifications/index.ts
@@ -0,0 +1,14 @@
+import {createActions} from 'reduxsauce';
+import {REDUX_STORE_KEY} from '../../constants';
+
+const {Types, Creators} = createActions<any, any>(
+ {
+ routePushNotification: ['pushNotificationEvent'],
+ },
+ {
+ prefix: `${REDUX_STORE_KEY}/notifications/`,
+ },
+);
+
+export const NotificationTypes = Types;
+export const NotificationActions = Creators;
--- src/redux/Notifications/sagas.ts
@@ -0,0 +1,18 @@
+import {takeLatest} from 'redux-saga/effects';
+import {NotificationTypes} from '.';
+
+//TODO: Create proper type
+export function* routePushNotification(action: any) {
+ const {pushNotificationEvent} = action;
+ console.log(
+ '*** routePushNotification saga invoked, routing based on event payload ***',
+ );
+ console.log(pushNotificationEvent);
+}
+
+export function* routePushNotificationSaga() {
+ yield takeLatest(
+ NotificationTypes.ROUTE_PUSH_NOTIFICATION,
+ routePushNotification,
+ );
+}
| adding saga in order to hook into navigation lib to route the push notification | adding saga in order to hook into navigation lib to route the push notification
|
54d73f8de0de15f8a26b004f03c516260380bddd | --- __tests__/index.test.tsx
@@ -2,7 +2,6 @@ import React from 'react';
import {renderWithProviders} from './harness';
import {MyTeamMiniApp} from '../src/navigation';
-jest.mock('@walmart/core-services/Logger');
jest.mock('@walmart/allspark-utils', () => ({
...jest.requireActual('@walmart/allspark-utils'),
| removing deprecated libraries from index.test | removing deprecated libraries from index.test
|
ced4a9076cea693b108135905fa91245e741f031 | --- ios/Podfile.lock
@@ -427,7 +427,7 @@ PODS:
- React
- react-native-safe-area-context (3.3.2):
- React-Core
- - react-native-scanner-3.0 (0.1.19):
+ - react-native-scanner-3.0 (0.1.20):
- Firebase/Analytics
- React
- ScanditBarcodeCapture (= 6.14.0)
@@ -441,8 +441,8 @@ PODS:
- React
- react-native-view-shot (3.1.2):
- React
- - react-native-webview (10.10.0):
- - React-Core
+ - react-native-webview (10.7.0):
+ - React
- react-native-wm-app-review (0.3.0):
- React-Core
- react-native-wm-barcode (2.36.6):
@@ -1005,11 +1005,11 @@ SPEC CHECKSUMS:
react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa
react-native-ptt-module: 03c55e2666382002ce515ab08941d81987a4b2e1
react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5
- react-native-scanner-3.0: 6c4bff0888617d1884095baedf52df981ed5555c
+ react-native-scanner-3.0: ed5ac254df745b46b4eb404dea1088ac540bbc18
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444
react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070
- react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7
+ react-native-webview: 67b9024de02e7c0af9400283b0e3ca6eec55dc26
react-native-wm-app-review: f3539e622411158d5f25926bcb505cfad87ea7a8
react-native-wm-barcode: c29f14f511476c7ce29532843f696c2447670aef
react-native-wm-voice-text: e41ea4227df3f52f3e2cab2f08fd89fbdcd02cfd
--- package-lock.json
@@ -5148,11 +5148,11 @@
}
},
"@walmart/core-services": {
- "version": "1.2.11",
- "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.2.11.tgz",
- "integrity": "sha512-AdluKB5g1JVgbusGKOVDU/K8eQZoS+I4GsZVeYGlGwv6S5hYZj5e4R1VttxOnWxDjVfC1z2VcdaOGnWkKWzgeg==",
+ "version": "1.3.2",
+ "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.3.2.tgz",
+ "integrity": "sha512-owaGhmkEgwBGz1gl06Nnf4dtI0P9zVRrer6yPFA3XDIQi7OCM2NXe7cEoaQnt6m4/4+MIFWo3UWcnyqKsS/TXg==",
"requires": {
- "@walmart/core-utils": "^1.0.10",
+ "@walmart/core-utils": "^1.1.2",
"axios": "^0.26.0",
"lodash": "^4.17.21",
"reduxsauce": "^1.2.1",
@@ -5161,6 +5161,16 @@
"uuid": "^8.3.2"
},
"dependencies": {
+ "@walmart/core-utils": {
+ "version": "1.1.2",
+ "resolved": "https://npme.walmart.com/@walmart/core-utils/-/core-utils-1.1.2.tgz",
+ "integrity": "sha512-83BBjLdAd9SQ1RNBlsO3R4eAUxZ05BxEsJK3BKKK97/tRY315GqBNoQ7PfSM0ejchhOruRJQkUNc/7aW6xYLgg==",
+ "requires": {
+ "lodash": "^4.17.21",
+ "redux": "^4.1.2",
+ "redux-saga": "^1.1.3"
+ }
+ },
"lodash": {
"version": "4.17.21",
"resolved": "https://npme.walmart.com/lodash/-/lodash-4.17.21.tgz",
@@ -5187,9 +5197,9 @@
}
},
"@walmart/core-services-allspark": {
- "version": "1.7.32",
- "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.7.32.tgz",
- "integrity": "sha512-9oVzyZx10KrkbDm8ZRlY4J72mX5O0qSZPomS+uIkWXHJA2eZc19qidbETLZ1u4bFQzH9beKzpV8BhugnCZhexg==",
+ "version": "1.7.33",
+ "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.7.33.tgz",
+ "integrity": "sha512-opq7vkkKrGxHcFo2Wg09Y8O9hV6c6TphqRcingdBefV/hynlyMEJkQlZArdcYb4vyRQNGv9g2bygDMlDl2Khnw==",
"requires": {
"axios": "^0.26.0",
"crypto-js": "^4.1.1",
@@ -5480,9 +5490,9 @@
"integrity": "sha512-qxVserzdiG4xsZCLRIwYfRq/KuHsYSPkrl02tKHNhF5bhtWWo6oEUatBoSsY5BL8EVGOHk2ezsPWb2o5pg9Ryw=="
},
"@walmart/react-native-scanner-3.0": {
- "version": "0.1.19",
- "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.19.tgz",
- "integrity": "sha512-GStJx72Zi54yWL09cPeGhzDy20eHimVXDhIj9a6twVhh/S/OyUYy0fh6VNfO3GRCZtBVgO7LZGq1woFPnmuiDQ=="
+ "version": "0.1.20",
+ "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.20.tgz",
+ "integrity": "sha512-MOw3rcQQnBr5zdBCR29Yp1JrwV2cY4LMkv3bGfrnTnXZEANegRy7NWJ38e8+fXjuqbddwl836cMOdX4+vLktSQ=="
},
"@walmart/react-native-shared-navigation": {
"version": "1.0.2",
--- package.json
@@ -81,8 +81,8 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "^1.2.91",
"@walmart/config-components": "3.0.3",
- "@walmart/core-services": "~1.2.11",
- "@walmart/core-services-allspark": "~1.7.32",
+ "@walmart/core-services": "~1.3.2",
+ "@walmart/core-services-allspark": "~1.7.33",
"@walmart/core-utils": "~1.0.10",
"@walmart/core-widget-registry": "0.5.7",
"@walmart/counts-component-miniapp": "0.0.39",
@@ -110,7 +110,7 @@
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.29.0",
- "@walmart/react-native-scanner-3.0": "0.1.19",
+ "@walmart/react-native-scanner-3.0": "0.1.20",
"@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",
| Scanner3: Update core-services and scanner3 version | Scanner3: Update core-services and scanner3 version
1. Include scanner3 usecase in core-services
2. Adapt the recent change in scanner3 lib
|
eb5c1adc3ce37f6c7cb67de20aacd5d1c8e5f4bf | --- packages/components-library/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.1.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-components-library@1.1.3...@walmart/allspark-components-library@1.1.4) (2025-09-09)
+
+**Note:** Version bump only for package @walmart/allspark-components-library
+
## [1.1.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-components-library@1.1.2...@walmart/allspark-components-library@1.1.3) (2025-09-02)
### Bug Fixes
--- packages/components-library/package.json
@@ -63,7 +63,7 @@
"test:watch": "jest --watch",
"test:update": "jest --updateSnapshot"
},
- "version": "1.1.3",
+ "version": "1.1.4",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"name": "@walmart/allspark-components-library",
| chore(version): updating package version | chore(version): updating package version
- @walmart/allspark-components-library@1.1.4
|
f53d98866b2669d9d883e6d0bf1ccbc73c9b2035 | --- packages/allspark-foundation/src/HubFeature/Hub/Container/mockData.ts
@@ -49,11 +49,14 @@ export const Images = {
'https://i5-me.walmartimages.com/images/teams/food-consumables-mgr-exp-792b257616.png',
meatAndProduce:
'https://i5-me.walmartimages.com/images/teams/task-image-meatproduce-a5965a9074.png',
+ management:
+ 'https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png',
};
export const teamImageIcon: Record<string, string> = {
'total': Images.totalStore,
'myTeams': Images.myTeams,
+ '1111111': Images.management,
'1000100': Images.adminAndSupport,
'1000282': Images.apparel,
'1000101': Images.assetProtection,
@@ -180,7 +183,7 @@ export const teamData: TeamSwitcherTypes[] = [
{
teamId: '1111111',
teamLabel: 'Management',
- teamImage: Images.totalStore,
+ teamImage: Images.management,
},
];
@@ -195,6 +198,14 @@ export const widgetCCMData = {
{ name: 'celebrations', rank: 4, enable: true },
],
},
+ '1111111': {
+ teamName: 'Management',
+ widgets: [
+ { name: 'roster', rank: 1, enable: true },
+ { name: 'learning', rank: 2, enable: true },
+ { name: 'celebrations', rank: 3, enable: true },
+ ],
+ },
'1000329': {
teamName: 'Deli & Bakery',
widgets: [
--- packages/allspark-foundation/src/HubFeature/Hub/TeamSwitcher/index.tsx
@@ -8,9 +8,10 @@ import { Skeleton } from '@walmart/gtp-shared-components';
import { useUserPreferences } from '../../Hooks/useUserPreferences';
import { teamImageIcon } from '../Container/mockData';
import { useTeamHubImage } from '../../HubImages';
-import { useDispatch } from 'react-redux';
+import { useDispatch, useSelector } from 'react-redux';
import { ManagerExperienceCreators } from '../../Redux/actions';
import { AllsparkNavigationClient } from '../../../Navigation';
+import { UserSelectors } from '@walmart/allspark-foundation';
export * from './types';
@@ -21,10 +22,37 @@ export const TeamSwitcher = ({
}: TeamSwitcherProps) => {
const [selectedTeam, setSelectedTeam] = useState<string | null>(null);
const { teamData, loading: isLoading } = useUserPreferences(data);
+ const empType = useSelector(UserSelectors.getEmployeeType);
+ const userTeams = useSelector(UserSelectors.getTeams);
const styles = useMemo(() => TeamSwitcherStyles(), []);
const TeamImage = useTeamHubImage();
const dispatch = useDispatch();
+ const getDefaultTeamsForUser = useCallback(() => {
+ const primaryTeam = userTeams?.[0];
+ if (empType === 'S') {
+ return [
+ {
+ teamId: '1111111',
+ teamLabel: 'Management',
+ teamImage: teamImageIcon['1111111'],
+ },
+ ];
+ } else if (empType === 'H' && primaryTeam) {
+ return [
+ {
+ teamId: primaryTeam.teamId ?? '',
+ teamLabel: primaryTeam.teamName ?? '',
+ teamImage: primaryTeam.teamId
+ ? teamImageIcon[primaryTeam.teamId]
+ : '',
+ },
+ ];
+ } else {
+ return [];
+ }
+ }, [empType, userTeams]);
+
const getTeamsData = useCallback(() => {
const totalStore = {
teamId: 'total',
@@ -38,16 +66,29 @@ export const TeamSwitcher = ({
};
if (teamData.length > 0) {
return [totalStore, myTeams, ...teamData];
+ } else {
+ return [totalStore, ...getDefaultTeamsForUser()];
}
- return [totalStore, ...teamData];
- }, [teamData]);
+ }, [teamData, getDefaultTeamsForUser]);
useEffect(() => {
- const teamDataPreference = getTeamsData();
- if (teamDataPreference && teamDataPreference.length > 0) {
- setSelectedTeam(teamDataPreference[0].teamLabel);
+ if (!selectedTeam) {
+ const teamDataPreference = getTeamsData();
+ if (teamData.length > 0) {
+ setSelectedTeam(teamDataPreference[0].teamLabel);
+ } else {
+ const { teamId, teamLabel } = getDefaultTeamsForUser()[0];
+ setSelectedTeam(teamLabel);
+ onTeamChange(teamId);
+ }
}
- }, [getTeamsData]);
+ }, [
+ selectedTeam,
+ teamData,
+ getTeamsData,
+ getDefaultTeamsForUser,
+ onTeamChange,
+ ]);
const handlePress = (teamId: string, teamLabel: string) => {
setSelectedTeam(teamLabel);
| feat(ui): team switcher default state for salaried and hourly users | feat(ui): team switcher default state for salaried and hourly users
|
81d43578c914b6de48c5f8e98adfe133bd71c023 | --- targets/US/package.json
@@ -150,7 +150,7 @@
"@walmart/taskit-mini-app": "4.25.8",
"@walmart/time-clock-mini-app": "2.448.1",
"@walmart/topstock-mini-app": "1.19.4",
- "@walmart/translator-mini-app": "1.3.7",
+ "@walmart/translator-mini-app": "1.3.8",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch",
"@walmart/walmart-fiscal-week": "^0.3.6",
"@walmart/welcomeme-mini-app": "0.96.0",
--- yarn.lock
@@ -7065,7 +7065,7 @@ __metadata:
"@walmart/taskit-mini-app": "npm:4.25.8"
"@walmart/time-clock-mini-app": "npm:2.448.1"
"@walmart/topstock-mini-app": "npm:1.19.4"
- "@walmart/translator-mini-app": "npm:1.3.7"
+ "@walmart/translator-mini-app": "npm:1.3.8"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch"
"@walmart/walmart-fiscal-week": "npm:^0.3.6"
"@walmart/welcomeme-mini-app": "npm:0.96.0"
@@ -8093,9 +8093,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/translator-mini-app@npm:1.3.7":
- version: 1.3.7
- resolution: "@walmart/translator-mini-app@npm:1.3.7"
+"@walmart/translator-mini-app@npm:1.3.8":
+ version: 1.3.8
+ resolution: "@walmart/translator-mini-app@npm:1.3.8"
peerDependencies:
"@react-native-async-storage/async-storage": ^2.0.0
"@react-native-clipboard/clipboard": ^1.14.2
@@ -8110,7 +8110,7 @@ __metadata:
react-native-svg: ">=14.0.0"
react-native-wm-voice-text: ^1.0.4
uuid: ">=3.0.0"
- checksum: 10c0/c92d7af891295f64752b511f68eaab2dc0288dd4751373b1ac52a97d8cc4ebe9a23f25487cfcc00dd65b5017b37ed9220783ed59986628bf7de506fcc27d0fbc
+ checksum: 10c0/2f9e9e9687690d57aa2609449ad827383648eab25496ad0e353253c82d08da65aee5fed7fee7c8b7705db2d0d915b4907cc2d416401f4203a482a4206c12777d
languageName: node
linkType: hard
| fix: translator-mini-app version bump to 1.3.8 | fix: translator-mini-app version bump to 1.3.8 |
c90e5ee2dcbd89af303dfa8e8cbeb47549fafeb3 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/UpdateTeamsModal/UpdateTeamsModal.tsx
@@ -53,8 +53,7 @@ export const UpdateTeamsModal = ({ modal: { closeModal } }: ModalProps) => {
onError: () => {},
});
const dispatch = useDispatch();
- const { shiftPreferenceData, teamPreferenceData } =
- useGetSupplyChainTeamsPreferenceQuery();
+ const { shiftPreferenceData } = useGetSupplyChainTeamsPreferenceQuery();
const { allSiteTeamsSections } = useGetSupplyChainAllTeamsBySite();
const prevSelectedTeamIds =
(useSelector(ManagerExperienceSelectors.getSelectedTeamIDs) as string[]) ||
| feat(ui): updated selection logic | feat(ui): updated selection logic
|
e997e1a2057dfb82120deb7d0b4d4371a484a009 | --- graphql.yml
@@ -1,63 +1,63 @@
-schemaVersion: "1.0.0"
+schemaVersion: '1.0.0'
enableGating: true
teamRostersProductId: 1824
applications:
- - name: "ROSTER-MINIAPP"
- applicationKey: "ROSTER-MINIAPP"
- description: "Roster mini app"
+ - name: 'ROSTER-MINIAPP'
+ applicationKey: 'ROSTER-MINIAPP'
+ description: 'Roster mini app'
environments:
- - name: "dev"
+ - name: 'dev'
persistedQueries:
- - name: "GetAssociateClockStatus"
- queryTemplate: "src/queries/getAssociateClockStatus.graphql"
+ - name: 'GetAssociateClockStatus'
+ queryTemplate: 'src/queries/getAssociateClockStatus.graphql'
tags:
- - "v1"
- - name: "GetAssociateName"
- queryTemplate: "src/queries/getAssociateName.graphql"
+ - 'v1'
+ - name: 'GetAssociateName'
+ queryTemplate: 'src/queries/getAssociateName.graphql'
tags:
- - "v1"
- - name: "GetDailyRoster"
- queryTemplate: "src/queries/getDailyRoster.graphql"
+ - 'v1'
+ - name: 'GetDailyRoster'
+ queryTemplate: 'src/queries/getDailyRoster.graphql'
tags:
- - "v2"
- - name: "GetTeamById"
- queryTemplate: "src/queries/getTeamById.graphql"
+ - 'v2'
+ - name: 'GetTeamById'
+ queryTemplate: 'src/queries/getTeamById.graphql'
tags:
- - "v1"
- - name: "GetTeamsByStore"
- queryTemplate: "src/queries/getTeamsbyStore.graphql"
+ - 'v1'
+ - name: 'GetTeamsByStore'
+ queryTemplate: 'src/queries/getTeamsbyStore.graphql'
tags:
- - "v1"
- - name: "upsertAssociateTextPreferences"
- queryTemplate: "src/queries/upsertAssociateTextPreference.graphql"
+ - 'v1'
+ - name: 'upsertAssociateTextPreferences'
+ queryTemplate: 'src/queries/upsertAssociateTextPreference.graphql'
tags:
- - "v1"
- - name: "stage"
+ - 'v1'
+ - name: 'stage'
persistedQueries:
- - name: "GetAssociateClockStatus"
- queryTemplate: "src/queries/getAssociateClockStatus.graphql"
+ - name: 'GetAssociateClockStatus'
+ queryTemplate: 'src/queries/getAssociateClockStatus.graphql'
tags:
- - "v1"
- - name: "GetAssociateName"
- queryTemplate: "src/queries/getAssociateName.graphql"
+ - 'v1'
+ - name: 'GetAssociateName'
+ queryTemplate: 'src/queries/getAssociateName.graphql'
tags:
- - "v1"
- - name: "GetDailyRoster"
- queryTemplate: "src/queries/getDailyRoster.graphql"
+ - 'v1'
+ - name: 'GetDailyRoster'
+ queryTemplate: 'src/queries/getDailyRoster.graphql'
tags:
- - "v2"
- - name: "GetTeamById"
- queryTemplate: "src/queries/getTeamById.graphql"
+ - 'v2'
+ - name: 'GetTeamById'
+ queryTemplate: 'src/queries/getTeamById.graphql'
tags:
- - "v1"
- - name: "GetTeamsByStore"
- queryTemplate: "src/queries/getTeamsbyStore.graphql"
+ - 'v1'
+ - name: 'GetTeamsByStore'
+ queryTemplate: 'src/queries/getTeamsbyStore.graphql'
tags:
- - "v1"
- - name: "upsertAssociateTextPreferences"
- queryTemplate: "src/queries/upsertAssociateTextPreference.graphql"
+ - 'v1'
+ - name: 'upsertAssociateTextPreferences'
+ queryTemplate: 'src/queries/upsertAssociateTextPreference.graphql'
tags:
- - "v1"
+ - 'v1'
# - name: "prod"
# persistedQueries:
# - name: "GetAssociateClockStatus"
| feat(ui): Update the queries for getDailyroster | feat(ui): Update the queries for getDailyroster
|
156c6804850d2a965d4c038f5057022a0c803dc6 | --- android/app/src/main/res/values/strings.xml
@@ -1,4 +1,3 @@
<resources>
<string name="app_name">Me@Walmart Beta</string>
- <string name="splash_description">Splash screen image</string>
</resources>
--- android/settings.gradle
@@ -1,5 +1,3 @@
rootProject.name = 'AllSpark'
-include ':react-native-splash-screen'
-project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android')
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
| removed unnecessary string | removed unnecessary string
|
70fe34b55270e8d80e2359ed7d8dce31461b2c45 | --- package-lock.json
@@ -5510,9 +5510,9 @@
"integrity": "sha512-Tz8PRLTpf4goLTBXayZxsBRuy/8+fnxjt+m7g3kfu0NRG58n/MgKi9krclf+LSLBhYTJcL5sKg8ckhA90dHlYQ=="
},
"@walmart/receipt-check-miniapp": {
- "version": "1.8.9",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.9.tgz",
- "integrity": "sha512-X5nf2F7YXSEqgjozePwJ/8QbqvyuNZDzBy1TFVP/W0fBLCPveJsVqXAiT6RcRm9pAKDaSFx1A8pewTsyB1EAvg==",
+ "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==",
"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.9",
+ "@walmart/receipt-check-miniapp": "1.8.11",
"@walmart/redux-store": "2.0.4",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
"@walmart/schedule-mini-app": "0.25.0",
| Receipt Audit: Critical Crash fix & UI bug fix | Receipt Audit: Critical Crash fix & UI bug fix
|
50fb6fcb26ab8579c107624e5a99440cbde1386d | --- scripts/mini-app-scan/legacy-library-deprecated.json
@@ -1,104 +1 @@
-[
- {
- "legacyLibrary": "@walmart/core-services/AppConfig",
- "replacement": "@walmart/allspark-foundation/Config",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-services/Auth",
- "replacement": "@walmart/allspark-foundation/Auth",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-services/Environment",
- "replacement": "@walmart/allspark-foundation/Environment",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-services/Network",
- "replacement": "@walmart/allspark-foundation/Network",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-services/Notification",
- "replacement": "@walmart/allspark-foundation/Notification",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-services/Permissions",
- "replacement": "@walmart/allspark-foundation/Permissions",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-services/Scanner",
- "replacement": "@walmart/allspark-foundation/Scanner",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-services/StoreConfig",
- "replacement": "@walmart/allspark-foundation/Site",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-services/User",
- "replacement": "@walmart/allspark-foundation/User",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-services/types",
- "replacement": "@walmart/allspark-utils",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/core-utils",
- "replacement": "@walmart/allspark-utils",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/react-native-env",
- "replacement": "@walmart/allspark-foundation/Environment",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/react-native-shared-navigation",
- "replacement": "@walmart/allspark-foundation/Navigation",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/react-native-wm-network",
- "replacement": "@walmart/allspark-foundation/Network",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/react-native-wm-notification",
- "replacement": "@walmart/allspark-foundation/Notification",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/redux-store",
- "replacement": "@walmart/allspark-foundation/Redux",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- },
- {
- "legacyLibrary": "@walmart/functional-components",
- "replacement": "@walmart/allspark-foundation/HTTP",
- "enforcementDate": "2024-07-01",
- "notes": "Use the foundation replacement for all new development."
- }
-]
\ No newline at end of file
+[]
\ No newline at end of file
| feat(package-dep): remove json | feat(package-dep): remove json
|
fc8f28e3526248b3d6df426e8651b49751bfaacf | --- .looper.multibranch.yml
@@ -75,6 +75,14 @@ envs:
BETACRASH_PASSWORD_FILE: ./betacrash-password.log
BETACRASH_JSON: ./betacrash-result.json
+ APPCENTER_API_KEY_iOS: "%{credentials.secret('appcenter_iOS')}"
+ APPCENTER_API_KEY_ANDROID: "%{credentials.secret('appcenter_android')}"
+ APPCENTER_DISTRIBUTE_DESTINATIONS: '*'
+ APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT: "AllSpark Testers"
+ APPCENTER_OUT: "./ios/BuildSupport/appcenter_out.json"
+ APPCENTER_OWNER_TYPE: 'organization'
+ APPCENTER_OWNER_NAME: 'AllSpark-Me-Walmart'
+
GIT_COMMIT_AUTHOR: 'unset'
GIT_COMMIT_MESSAGE: 'unset'
GIT_COMMIT_DATE: 'unset'
@@ -502,7 +510,29 @@ flows:
- echo $betacrashJson > ./betacrash.json
- echo "Skipping uploading AppStore/PlayStore builds to Betacrash and publishing it to Slack."
else:
- - (name Betacrash – upload build) sh scripts/betacrash.sh "$APP_TITLE" "${env}" "$BETACRASH_APP_ID" "${buildOutput}" "${buildType}" "${version}" 2>&1
+ - echo "Uploading builds to App Center"
+ - call: appcenter-upload
+ # - (name Betacrash – upload build) sh scripts/betacrash.sh "$APP_TITLE" "${env}" "$BETACRASH_APP_ID" "${buildOutput}" "${buildType}" "${version}" 2>&1
+
+ # uploads iOS and android builds to Ms App Center
+ #
+ # @param APPCENTER_API_TOKEN - Encrypted API token to leverage MS APIs
+ # @param APPCENTER_APP_NAME - AllSpark-Me-Walmart
+ #
+ appcenter-upload:
+ - shell: ruby --version
+ - shell: gem --version
+ - (name Bundle) https_proxy=http://sysproxy.wal-mart.com:8080 http_proxy=http://sysproxy.wal-mart.com:8080 bundle
+ - if: |
+ %{os == "ios"}
+ then:
+ - var(APPCENTER_API_TOKEN = $APPCENTER_API_KEY_iOS)
+ - var(APPCENTER_APP_NAME = "AllSpark-Me-Walmart")
+ - (name Upload to App Center iOS) bundle exec fastlane submit_to_appcenter_iOS BUILD_OUTPUT:${buildOutput}
+ else:
+ - var(APPCENTER_API_TOKEN = $APPCENTER_API_KEY_ANDROID)
+ - var(APPCENTER_APP_NAME = "AllSpark-Android")
+ - (name Upload to App Center Android) bundle exec fastlane submit_to_appcenter_android BUILD_OUTPUT:${buildOutput}
# sends success message to slack channel
#
--- fastlane/Fastfile
@@ -51,24 +51,35 @@ lane :set_build do
)
end
+before_all do |lane, options|
+ # ...
+end
+
+before_each do |lane, options|
+ # ...
+end
+
desc "Upload IPA to App Center"
-lane :submit_to_appcenter_iOS do
+lane :submit_to_appcenter_iOS do |options|
UI.message("\n\n\n=====================================\n uploading iOS\n=====================================")
- appcenter_upload(
- file: "./ios/AllSpark-beta.ipa",
+ if options[:BUILD_OUTPUT]
+ appcenter_upload(
+ file: options[:BUILD_OUTPUT],
upload_build_only: true)
+ end
end
desc "Upload APK to App Center"
-lane :submit_to_appcenter_android do
+lane :submit_to_appcenter_android do |options|
UI.message("\n\n\n=====================================\n uploading Android\n=====================================")
-
- appcenter_upload(
- file: "./android/AllSpark-beta.apk",
+ if options[:BUILD_OUTPUT]
+ appcenter_upload(
+ file: options[:BUILD_OUTPUT],
upload_build_only: true)
+ end
end
# Use the `session` hash and the `save_session` method to store values
| adding code to upload builds | adding code to upload builds
|
52ab61b797db594d6eea8a5c7a7266b031f3c955 | --- targets/US/package.json
@@ -143,7 +143,7 @@
"@walmart/roster-mini-app": "2.8.2",
"@walmart/schedule-mini-app": "0.118.0",
"@walmart/shelfavailability-mini-app": "1.5.33",
- "@walmart/sidekick-mini-app": "4.81.4",
+ "@walmart/sidekick-mini-app": "4.81.9",
"@walmart/store-feature-orders": "1.26.12",
"@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch",
"@walmart/time-clock-mini-app": "2.400.0",
--- yarn.lock
@@ -6851,7 +6851,7 @@ __metadata:
"@walmart/roster-mini-app": "npm:2.8.2"
"@walmart/schedule-mini-app": "npm:0.118.0"
"@walmart/shelfavailability-mini-app": "npm:1.5.33"
- "@walmart/sidekick-mini-app": "npm:4.81.4"
+ "@walmart/sidekick-mini-app": "npm:4.81.9"
"@walmart/store-feature-orders": "npm:1.26.12"
"@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch"
"@walmart/time-clock-mini-app": "npm:2.400.0"
@@ -7721,9 +7721,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/sidekick-mini-app@npm:4.81.4":
- version: 4.81.4
- resolution: "@walmart/sidekick-mini-app@npm:4.81.4"
+"@walmart/sidekick-mini-app@npm:4.81.9":
+ version: 4.81.9
+ resolution: "@walmart/sidekick-mini-app@npm:4.81.9"
peerDependencies:
"@apollo/client": "*"
"@react-navigation/native": ^6.0.0
@@ -7736,7 +7736,7 @@ __metadata:
expo-linear-gradient: ~12.3.0
react: ^18.2.0
react-native: ^0.73.7
- checksum: 10c0/1795badc753e9d8292fadf52cd0a8cdde98e737ac36324c06d56b841e7eb8e8c13cac6cf39e162a97544dbae8c7b76ea066b695de437d28672d337e86e38a82a
+ checksum: 10c0/bb92b028ca6a3a1014d8bc053977f8990765911d7d83d91d5082012018e7cf22dc4b2d538132409e16fd41b6e914824acd1e5cf78dc0a1029d3ce8c855ccdbdf
languageName: node
linkType: hard
| chore: bump sidekick@4.81.9 | chore: bump sidekick@4.81.9
|
403af16cf9d02de210748523449fa0dcda37aa81 | --- __tests__/settings/IndexTest.tsx
@@ -1,4 +1,6 @@
// Mock the AllsparkFeatureModule before importing SettingsFeature
+import {SettingsFeature} from '../../src/settings';
+
jest.mock('@walmart/allspark-foundation/Feature', () => {
return {
AllsparkFeatureModule: jest.fn().mockImplementation((name, config) => {
@@ -11,8 +13,6 @@ jest.mock('@walmart/allspark-foundation/Feature', () => {
};
});
-import {SettingsFeature} from '../../src/settings';
-
describe('SettingsFeature', () => {
// Add a timeout to prevent hanging
--- yarn.lock
@@ -315,7 +315,7 @@ __metadata:
languageName: node
linkType: hard
-"@babel/generator@npm:^7.14.0, @babel/generator@npm:^7.18.13, @babel/generator@npm:^7.20.5, @babel/generator@npm:^7.25.0, @babel/generator@npm:^7.26.10, @babel/generator@npm:^7.28.5, @babel/generator@npm:^7.7.2":
+"@babel/generator@npm:^7.14.0, @babel/generator@npm:^7.18.13, @babel/generator@npm:^7.20.5, @babel/generator@npm:^7.25.0, @babel/generator@npm:^7.26.10, @babel/generator@npm:^7.28.3, @babel/generator@npm:^7.28.5, @babel/generator@npm:^7.7.2":
version: 7.28.5
resolution: "@babel/generator@npm:7.28.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fgenerator%2F-%2Fgenerator-7.28.5.tgz"
dependencies:
@@ -328,19 +328,6 @@ __metadata:
languageName: node
linkType: hard
-"@babel/generator@npm:^7.28.3":
- version: 7.28.3
- resolution: "@babel/generator@npm:7.28.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fgenerator%2F-%2Fgenerator-7.28.3.tgz"
- dependencies:
- "@babel/parser": "npm:^7.28.3"
- "@babel/types": "npm:^7.28.2"
- "@jridgewell/gen-mapping": "npm:^0.3.12"
- "@jridgewell/trace-mapping": "npm:^0.3.28"
- jsesc: "npm:^3.0.2"
- checksum: 10c0/0ff58bcf04f8803dcc29479b547b43b9b0b828ec1ee0668e92d79f9e90f388c28589056637c5ff2fd7bcf8d153c990d29c448d449d852bf9d1bc64753ca462bc
- languageName: node
- linkType: hard
-
"@babel/helper-annotate-as-pure@npm:^7.27.1, @babel/helper-annotate-as-pure@npm:^7.27.3":
version: 7.27.3
resolution: "@babel/helper-annotate-as-pure@npm:7.27.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fhelper-annotate-as-pure%2F-%2Fhelper-annotate-as-pure-7.27.3.tgz"
@@ -554,18 +541,7 @@ __metadata:
languageName: node
linkType: hard
-"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.20.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.25.3, @babel/parser@npm:^7.26.10, @babel/parser@npm:^7.26.7, @babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.3, @babel/parser@npm:^7.28.4":
- version: 7.28.4
- resolution: "@babel/parser@npm:7.28.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fparser%2F-%2Fparser-7.28.4.tgz"
- dependencies:
- "@babel/types": "npm:^7.28.4"
- bin:
- parser: ./bin/babel-parser.js
- checksum: 10c0/58b239a5b1477ac7ed7e29d86d675cc81075ca055424eba6485872626db2dc556ce63c45043e5a679cd925e999471dba8a3ed4864e7ab1dbf64306ab72c52707
- languageName: node
- linkType: hard
-
-"@babel/parser@npm:^7.28.5":
+"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.20.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.25.3, @babel/parser@npm:^7.26.10, @babel/parser@npm:^7.26.7, @babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.4, @babel/parser@npm:^7.28.5":
version: 7.28.5
resolution: "@babel/parser@npm:7.28.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fparser%2F-%2Fparser-7.28.5.tgz"
dependencies:
@@ -1372,7 +1348,7 @@ __metadata:
languageName: node
linkType: hard
-"@babel/plugin-transform-typescript@npm:^7.25.2":
+"@babel/plugin-transform-typescript@npm:^7.25.2, @babel/plugin-transform-typescript@npm:^7.27.1":
version: 7.28.5
resolution: "@babel/plugin-transform-typescript@npm:7.28.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fplugin-transform-typescript%2F-%2Fplugin-transform-typescript-7.28.5.tgz"
dependencies:
@@ -1387,21 +1363,6 @@ __metadata:
languageName: node
linkType: hard
-"@babel/plugin-transform-typescript@npm:^7.27.1":
- version: 7.28.0
- resolution: "@babel/plugin-transform-typescript@npm:7.28.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fplugin-transform-typescript%2F-%2Fplugin-transform-typescript-7.28.0.tgz"
- dependencies:
- "@babel/helper-annotate-as-pure": "npm:^7.27.3"
- "@babel/helper-create-class-features-plugin": "npm:^7.27.1"
- "@babel/helper-plugin-utils": "npm:^7.27.1"
- "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.27.1"
- "@babel/plugin-syntax-typescript": "npm:^7.27.1"
- peerDependencies:
- "@babel/core": ^7.0.0-0
- checksum: 10c0/049c2bd3407bbf5041d8c95805a4fadee6d176e034f6b94ce7967b92a846f1e00f323cf7dfbb2d06c93485f241fb8cf4c10520e30096a6059d251b94e80386e9
- languageName: node
- linkType: hard
-
"@babel/plugin-transform-unicode-regex@npm:^7.0.0-0, @babel/plugin-transform-unicode-regex@npm:^7.24.7":
version: 7.27.1
resolution: "@babel/plugin-transform-unicode-regex@npm:7.27.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fplugin-transform-unicode-regex%2F-%2Fplugin-transform-unicode-regex-7.27.1.tgz"
@@ -1487,17 +1448,7 @@ __metadata:
languageName: node
linkType: hard
-"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.13, @babel/types@npm:^7.20.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.25.2, @babel/types@npm:^7.26.10, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.4, @babel/types@npm:^7.3.3":
- version: 7.28.4
- resolution: "@babel/types@npm:7.28.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Ftypes%2F-%2Ftypes-7.28.4.tgz"
- dependencies:
- "@babel/helper-string-parser": "npm:^7.27.1"
- "@babel/helper-validator-identifier": "npm:^7.27.1"
- checksum: 10c0/ac6f909d6191319e08c80efbfac7bd9a25f80cc83b43cd6d82e7233f7a6b9d6e7b90236f3af7400a3f83b576895bcab9188a22b584eb0f224e80e6d4e95f4517
- languageName: node
- linkType: hard
-
-"@babel/types@npm:^7.28.5":
+"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.13, @babel/types@npm:^7.20.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.25.2, @babel/types@npm:^7.26.10, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.4, @babel/types@npm:^7.28.5, @babel/types@npm:^7.3.3":
version: 7.28.5
resolution: "@babel/types@npm:7.28.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Ftypes%2F-%2Ftypes-7.28.5.tgz"
dependencies:
| feat(header): change yarn.lock | feat(header): change yarn.lock
|
b92d4656072448ec9b778bd83626f38502b481f3 | --- package-lock.json
@@ -3062,9 +3062,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.29.8",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.8.tgz",
- "integrity": "sha512-fAiAhggNeILQW1fddZVEDUDaG8cjKkxc39xznUQ0EGeNPbQX/ZVqsU1XjgHmGrzsmajxur+uTViIFNwdrw4AZw==",
+ "version": "0.29.10",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.10.tgz",
+ "integrity": "sha512-11dr3ixkzAxz5P6mrRMQ+3KJ7n5O3C9qn8V3xi1CUNfuOrxwxyVCaSm+na1jcHXI4n2DTz5mUnbPqp6kP8e0OA==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
--- package.json
@@ -66,7 +66,7 @@
"@walmart/allspark-health-survey-mini-app": "0.0.38",
"@walmart/allspark-home-mini-app": "0.4.0",
"@walmart/allspark-me-mini-app": "0.1.0",
- "@walmart/ask-sam-mini-app": "0.29.8",
+ "@walmart/ask-sam-mini-app": "0.29.10",
"@walmart/config-components": "^1.0.26",
"@walmart/counts-component-miniapp": "0.0.11",
"@walmart/exception-mini-app": "0.17.0",
| Ask sam update | Ask sam update
|
8875b919ef39645a297f9382f509a1e88a60933c | --- package.json
@@ -164,7 +164,7 @@
"@walmart/rn-receiving-mini-app": "2.8.25",
"@walmart/roster-mini-app": "3.8.4",
"@walmart/schedule-mini-app": "4.0.0",
- "@walmart/shelfavailability-mini-app": "1.6.0",
+ "@walmart/shelfavailability-mini-app": "1.7.2",
"@walmart/shop-gnfr-mini-app": "1.0.421",
"@walmart/sidekick-mini-app": "4.253.2",
"@walmart/store-feature-orders": "1.34.7",
--- yarn.lock
@@ -8583,7 +8583,7 @@ __metadata:
"@walmart/rn-receiving-mini-app": "npm:2.8.25"
"@walmart/roster-mini-app": "npm:3.8.4"
"@walmart/schedule-mini-app": "npm:4.0.0"
- "@walmart/shelfavailability-mini-app": "npm:1.6.0"
+ "@walmart/shelfavailability-mini-app": "npm:1.7.2"
"@walmart/shop-gnfr-mini-app": "npm:1.0.421"
"@walmart/sidekick-mini-app": "npm:4.253.2"
"@walmart/store-feature-orders": "npm:1.34.7"
@@ -9407,20 +9407,19 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/shelfavailability-mini-app@npm:1.6.0":
- version: 1.6.0
- resolution: "@walmart/shelfavailability-mini-app@npm:1.6.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fshelfavailability-mini-app%2F-%2F%40walmart%2Fshelfavailability-mini-app-1.6.0.tgz"
+"@walmart/shelfavailability-mini-app@npm:1.7.2":
+ version: 1.7.2
+ resolution: "@walmart/shelfavailability-mini-app@npm:1.7.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fshelfavailability-mini-app%2F-%2F%40walmart%2Fshelfavailability-mini-app-1.7.2.tgz"
peerDependencies:
- "@react-navigation/native": ">=6.0.8"
+ "@react-navigation/native": ">=7.1.0"
+ "@react-navigation/stack": ">=7.4.0"
"@shopify/flash-list": ">=1.6.4"
- "@walmart/allspark-foundation": ">=6.19.1"
+ "@walmart/allspark-foundation": ">=6.62.5"
"@walmart/allspark-utils": ">=6.5.3"
"@walmart/ask-sam-chat-components": ">=0.2.7"
"@walmart/core-widget-registry": ">=6.0.0"
- "@walmart/gtp-shared-components": ">=2.2.4"
- "@walmart/me-at-walmart-common": ">=6.29.0"
- "@walmart/react-native-scanner-3.0": ">=0.10.8"
- "@walmart/ui-components": ">=1.21.3"
+ "@walmart/gtp-shared-components-3": ">=3.0.0"
+ "@walmart/me-at-walmart-common": ">=6.36.0"
axios: ">=1.0.0"
axios-cache-interceptor: ">=1.5.3"
cache-parser: ">=1.2.4"
@@ -9441,7 +9440,7 @@ __metadata:
reselect: ">=4.1.0"
uuid: ">=3.3.2"
xdate: ">=0.8.2"
- checksum: 10c0/b59d993100f4188b345b9d816c6eca0c7ff2de67658202365880e7a90ba1a737df31dd1fdb6baf8ebf826d1c19ccea05a5313fa735cb43196530e3c6364ab5f2
+ checksum: 10c0/9976fbbaaa3c5bd098d6350cf6c50ee3b7c6a268132f8260ee01bd1fb1fcf8e4d7087acf9975b32191c4edbd696776929f150a6475a82b3ca4ee7be4e2a66e89
languageName: node
linkType: hard
| feat(shelfavailability): SA-1247 drop 35 package bumps (#5087) | feat(shelfavailability): SA-1247 drop 35 package bumps (#5087)
Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
Co-authored-by: Yarien Mendez Suarez - y0m07dz <Yarien.Mendez.Suarez@walmart.com> |
43383f69796436e7836d547030073a82d121b754 | --- src/versions/constants.ts
@@ -22,6 +22,7 @@ export const LISTED_DEPENDENCIES = [
'@walmart/mod-flex-mini-app',
'@walmart/payrollsolution_miniapp',
'@walmart/price-changes-mini-app',
+ '@walmart/profile-feature-app',
'@walmart/push-to-talk-mini-app',
'@walmart/refrigeration-alarms-mini-app',
'@walmart/schedule-mini-app',
| Added associate profile to listed dependencies | Added associate profile to listed dependencies
|
794970ff340477d76f902372a2200371f013c120 | --- package-lock.json
@@ -4333,9 +4333,9 @@
}
},
"@walmart/payrollsolution_miniapp": {
- "version": "0.91.0",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.91.0.tgz",
- "integrity": "sha512-+MVnRit5z9v4e0hZoU9wzIFw7qoh7ipbyJcGDO+shz5Rsfj020PFaAoX9Mf0EAtxX3TlpOeRvy3TQSuAEb8UHQ=="
+ "version": "0.97.0",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.97.0.tgz",
+ "integrity": "sha512-k0atuSRRIh3ioMsXTSwx/sZFo8v4MHAGf9ys9IEIpiAPHs3efIXsg1p7SuIeegOFSoGbvxZjgMlpyX7QC0GHqA=="
},
"@walmart/price-changes-mini-app": {
"version": "1.0.6",
@@ -4538,9 +4538,9 @@
}
},
"@walmart/welcomeme-mini-app": {
- "version": "0.44.0",
- "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.44.0.tgz",
- "integrity": "sha512-RdRRsNjOrs4u2+X/YDZ7sdtQcnZ2Bv/IfcZlnQGDSDTqDCnAmaSgnfdvPWD6SqJlaG78Mvni6n3otH2TXSwlfw=="
+ "version": "0.45.0",
+ "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.45.0.tgz",
+ "integrity": "sha512-v5zEXYpuJy4dILjI0tO//b3O1ZsbK/nYl5ngRcjsoYciBpdyh5kKsPmBc6JIOFhP5IV5vj7YBt70ihRPCnYaqA=="
},
"@walmart/wfm-ui": {
"version": "0.2.11",
--- package.json
@@ -89,7 +89,7 @@
"@walmart/manager-approvals-miniapp": "0.0.59",
"@walmart/metrics-mini-app": "0.5.21",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/payrollsolution_miniapp": "0.91.0",
+ "@walmart/payrollsolution_miniapp": "0.97.0",
"@walmart/price-changes-mini-app": "1.0.6",
"@walmart/push-to-talk-mini-app": "0.5.90",
"@walmart/react-native-env": "^0.2.0",
@@ -104,7 +104,7 @@
"@walmart/taskit-mini-app": "^0.200.0-rc.1",
"@walmart/time-clock-mini-app": "0.4.27",
"@walmart/ui-components": "1.3.0-rc.11",
- "@walmart/welcomeme-mini-app": "0.44.0",
+ "@walmart/welcomeme-mini-app": "0.45.0",
"@walmart/wfm-ui": "0.2.11",
"axios-cache-adapter": "2.7.3",
"crypto-js": "^3.3.0",
| build(welcomeMe): WelcomeMe v0.45.0 | PayrollMiniApp v0.97.0 | build(welcomeMe): WelcomeMe v0.45.0 | PayrollMiniApp v0.97.0
|
e494367806e64e74b7b84533751b1cb187505f78 | --- docs/docs/components/allspark foundation/services/foundation-user.md
@@ -115,3 +115,12 @@ import { useContainerService } from '@walmart/allspark-foundation/Container';
const UserService = useContainerService('user');
```
+
+## User Service API
+### `fetch()`
+Fetches the user data for the given authentication result.
+Returns a promise that resolves to the user data.
+
+### `impersonate()`
+Impersonates the user with the given configuration.
+Returns a promise that resolves to the impersonated user data.
| User service updates. | User service updates.
|
64ff0b9d6b8facf52ff9b2d09195a2a7673f9cd9 | --- android/app/build.gradle
@@ -158,8 +158,8 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 911
- versionName "1.13.1"
+ versionCode 912
+ versionName "1.13.2"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
if (isNewArchitectureEnabled()) {
// We configure the CMake build only if you decide to opt-in for the New Architecture.
--- ios/AllSpark/Info.plist
@@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.13.1</string>
+ <string>1.13.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@@ -42,7 +42,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>911</string>
+ <string>912</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
--- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "allspark-main",
- "version": "1.13.1",
+ "version": "1.13.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "allspark-main",
- "version": "1.13.1",
+ "version": "1.13.2",
"hasInstallScript": true,
"dependencies": {
"@firebase/firestore-types": "^2.5.1",
@@ -78,7 +78,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.14.6",
+ "@walmart/receipt-check-miniapp": "1.14.7",
"@walmart/redux-store": "3.4.0",
"@walmart/returns-mini-app": "1.9.0",
"@walmart/schedule-mini-app": "0.37.0",
@@ -7904,9 +7904,9 @@
}
},
"node_modules/@walmart/receipt-check-miniapp": {
- "version": "1.14.6",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.6.tgz",
- "integrity": "sha512-0q87aDQ8W0KDHY+UWQDAS+5L7iYj0xaNkZ8fn8mlKHrILDTZZ7dK1R0si/vjQDKg9N7wqPkOLr5bvPXD9MkrVw==",
+ "version": "1.14.7",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.7.tgz",
+ "integrity": "sha512-9Y7wszhl0Fbu514vjHe3GMDO6KJ7UFpxSnZgM0gZh8BqTkqxxjNgtSYcxKHsOct6KRDrmG9yBNg6ccGdsG9WTg==",
"dependencies": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
@@ -30660,9 +30660,9 @@
"version": "2.5.1"
},
"@walmart/receipt-check-miniapp": {
- "version": "1.14.6",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.6.tgz",
- "integrity": "sha512-0q87aDQ8W0KDHY+UWQDAS+5L7iYj0xaNkZ8fn8mlKHrILDTZZ7dK1R0si/vjQDKg9N7wqPkOLr5bvPXD9MkrVw==",
+ "version": "1.14.7",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.7.tgz",
+ "integrity": "sha512-9Y7wszhl0Fbu514vjHe3GMDO6KJ7UFpxSnZgM0gZh8BqTkqxxjNgtSYcxKHsOct6KRDrmG9yBNg6ccGdsG9WTg==",
"requires": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "allspark-main",
- "version": "1.13.1",
+ "version": "1.13.2",
"private": true,
"scripts": {
"android": "react-native run-android",
@@ -119,7 +119,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.14.6",
+ "@walmart/receipt-check-miniapp": "1.14.7",
"@walmart/redux-store": "3.4.0",
"@walmart/returns-mini-app": "1.9.0",
"@walmart/schedule-mini-app": "0.37.0",
| hotfix build | hotfix build
|
e5d7a383cd1bec234c8d7a102703ef9b4c44c523 | --- package-lock.json
@@ -5488,9 +5488,9 @@
"integrity": "sha512-Tz8PRLTpf4goLTBXayZxsBRuy/8+fnxjt+m7g3kfu0NRG58n/MgKi9krclf+LSLBhYTJcL5sKg8ckhA90dHlYQ=="
},
"@walmart/receipt-check-miniapp": {
- "version": "1.7.2",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.7.2.tgz",
- "integrity": "sha512-6H+HQ7MBN9W7tMpvpGSNtrIh48NzOxJGbNxeO8VykToPdUsx+DaSqRcnph2biNAwlrqJlGNs7+/37cxl1dOOVA==",
+ "version": "1.7.3",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.7.3.tgz",
+ "integrity": "sha512-iXpODlHtaF3JX6Ke5hkjQxNTOtYYkb+mZwak5eIkhLeMvhzNCGFn+yo8/q1cQMxjLMs2Y8jKROnqs7wirkUxkQ==",
"requires": {
"@walmart/tcnumber": "^2.3.1",
"@xstate/react": "^3.0.1",
--- package.json
@@ -112,7 +112,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.7.2",
+ "@walmart/receipt-check-miniapp": "1.7.3",
"@walmart/redux-store": "2.0.4",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
"@walmart/schedule-mini-app": "0.24.0",
| Add scan fix | Add scan fix
|
cab3b0f9c39886631af9c65158bb661f3eeeed3a | --- package-lock.json
@@ -1854,11 +1854,11 @@
}
},
"@walmart/allspark-health-survey-mini-app": {
- "version": "0.0.13",
- "resolved": "https://npme.walmart.com/@walmart/allspark-health-survey-mini-app/-/allspark-health-survey-mini-app-0.0.13.tgz",
- "integrity": "sha512-cqbrMDYUnYvN7qdQrZNVkYDRxmPJgGIcnDjjV8zVDGvgQIQHv7HrEtqWCsCvqe9DT6KIp07i5O0Qzi8cz0sw8g==",
+ "version": "0.0.18",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-health-survey-mini-app/-/allspark-health-survey-mini-app-0.0.18.tgz",
+ "integrity": "sha512-06NqsB2r00v09Nr7qPY/ftxxojiMh5ZLpfa9fIbBEGnqxk/po9z6yaWHrT5ztekQ0pC8hynb4IT+tipyak1/Rw==",
"requires": {
- "@walmart/patient-portal-mobile": "^1.1.16",
+ "@walmart/patient-portal-mobile": "^2.0.4",
"moment": "^2.29.1",
"react-native-qrcode-svg": "^6.0.6",
"react-native-svg": "^12.1.0",
@@ -1968,9 +1968,9 @@
"integrity": "sha512-iTkDEL7GeYYS8laso4ECQ7DyHgBxnJh/uP5PJNQMHZyKb8niIwIwb19HFLuGBVRa9vZIjTz7mChSydbIn4KV0w=="
},
"@walmart/patient-portal-mobile": {
- "version": "1.1.16",
- "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-1.1.16.tgz",
- "integrity": "sha512-NPfNs+jEkKjiFBtKsQB9Mlyoas7OgEczG7YTKf79wkeBd7WydrQED5C8tIA7niFOWMFuoEMVn0E9K4gi+Jv0PA==",
+ "version": "2.0.4",
+ "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.0.4.tgz",
+ "integrity": "sha512-7iDdxujty897q77fo/6g3+VnGsM/gRD1MHWs5vpOjD0+GF6DcQXYmw2YO3MGJDpREnsYPLx3KIO1uwKuNF9KKg==",
"requires": {
"@react-native-community/datetimepicker": "^3.0.3",
"@walmart/react-native-collapsible": "1.5.3",
@@ -2028,41 +2028,15 @@
"integrity": "sha512-VbikbxTpoOVaAnI6DzSXQbM3pBxjgqv0834EgclZinTGkhRLpZ5UcADaK5cqNoxmQYyPkzi+9Fk1McF/wehdiQ=="
},
"@walmart/schedule-mini-app": {
- "version": "0.2.29",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.29.tgz",
- "integrity": "sha512-PWcqGRPP3yAF7/fbQvZgR5abO9vwr2TYzx1XKAfs8tznjQZmc8mMx2UP6zmaKv2IJ5AbRsc16ycArPGZg1WuLA==",
+ "version": "0.2.33",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.33.tgz",
+ "integrity": "sha512-BcEyL7FDKBTGBXR5r6LyMAsqRiUTpKBPX2WZivh3eR43cioI/KlmN3Du3P2OqIP3nXKj3JRzY34gPgYtFfwIdg==",
"requires": {
"@walmart/moment-walmart": "^1.0.4",
- "@walmart/wfm-ui": "^0.1.26",
+ "@walmart/wfm-ui": "^0.1.29",
"react-native-tab-view": "^2.15.2",
"reselect": "^4.0.0",
"wfm-allspark-data-library": "0.0.11"
- },
- "dependencies": {
- "moment": {
- "version": "2.24.0",
- "resolved": "https://npme.walmart.com/moment/-/moment-2.24.0.tgz",
- "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg=="
- },
- "react-native-ssmp-sso-allspark": {
- "version": "0.0.1-rc8",
- "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz",
- "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg=="
- },
- "wfm-allspark-data-library": {
- "version": "0.0.11",
- "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.11.tgz",
- "integrity": "sha512-o34ej3nNhCcy3uwWkOJcU/3zjXmX+VvbqiZrEgQwrxbO6cbJGxiK1Tz/JQX8j1lwi6cZFJKvDOucJtlduzVQrg==",
- "requires": {
- "@walmart/functional-components": "^1.0.22",
- "@walmart/react-native-env": "^0.1.0",
- "@walmart/redux-store": "^1.0.4",
- "azure-storage": "2.10.3",
- "moment": "2.24.0",
- "react-native-ssmp-sso-allspark": "0.0.1-rc8",
- "url": "^0.11.0"
- }
- }
}
},
"@walmart/settings-mini-app": {
@@ -2088,9 +2062,9 @@
}
},
"@walmart/wfm-ui": {
- "version": "0.1.26",
- "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.1.26.tgz",
- "integrity": "sha512-5/5gkTqynL6JFx/mLQdF25lyu3AuGSkyPvk+sL3VUSxA/tKcmufOfBmVRk2dZPyi7qHVbm30Zo78L/MKd7J5zw==",
+ "version": "0.1.29",
+ "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.1.29.tgz",
+ "integrity": "sha512-wY9LXaRs7laOk2cCFWugiJosW7+z7yQqTRDN2bwTxODOKEg6f6c1p/LP8ELYi/lVAKuxPhwJkUCvRdaqvfbJsA==",
"requires": {
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/moment-walmart": "1.0.3",
--- package.json
@@ -45,7 +45,7 @@
"@react-navigation/stack": "^5.9.0",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": "^4.14.159",
- "@walmart/allspark-health-survey-mini-app": "0.0.13",
+ "@walmart/allspark-health-survey-mini-app": "0.0.18",
"@walmart/allspark-home-mini-app": "0.1.7",
"@walmart/allspark-me-mini-app": "0.0.14",
"@walmart/ask-sam-mini-app": "0.7.5",
@@ -60,7 +60,7 @@
"@walmart/react-native-logger": "^1.17.0",
"@walmart/react-native-shared-navigation": "^0.2.0",
"@walmart/redux-store": "^1.0.7",
- "@walmart/schedule-mini-app": "0.2.29",
+ "@walmart/schedule-mini-app": "0.2.33",
"@walmart/settings-mini-app": "1.1.8",
"@walmart/time-clock-mini-app": "0.0.23",
"@walmart/ui-components": "^1.0.81",
| Bumping (#222) | Bumping (#222)
* Bumping
* last minute vqa addition |
819e10e16b7e6891ee402c60740836f83d5c9aa7 | --- packages/allspark-http-client/src/HttpClient.ts
@@ -41,6 +41,7 @@ class HttpClient extends Axios implements IHttpClient {
this.id = id;
this.defaults.timeout = timeout;
+ this.defaults.withCredentials = false;
this.config = { ...restConfig, timeout, interceptors, id };
//@TODO remove if condition in later drops.
| chore(httpClient): turn off withCredentials | chore(httpClient): turn off withCredentials |
9114c1f879a39d8ac392c4ffcb7fe73bd4b10137 | --- src/index.tsx
@@ -1,10 +1,8 @@
import React from 'react';
-import {StatusBar, LogBox} from 'react-native';
+import {StatusBar} from 'react-native';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {NavigationContainer} from '@react-navigation/native';
-LogBox.ignoreAllLogs();
-
import {LivingDesignProvider} from '@walmart/gtp-shared-components';
import {navContainerProps} from '@walmart/react-native-shared-navigation';
import {
| updated index.tsx | updated index.tsx
|
3162380b6d09dadd32d35ae56fbbd39fb24d372d | --- .looper.multibranch.yml
@@ -36,6 +36,9 @@ rules:
- beforeNode('osx'):
- (name Bundle Setup) https_proxy=http://sysproxy.wal-mart.com:8080 http_proxy=http://sysproxy.wal-mart.com:8080 $RUBY_PATH/bundle
- (name Bundle Update) https_proxy=http://sysproxy.wal-mart.com:8080 http_proxy=http://sysproxy.wal-mart.com:8080 $RUBY_PATH/bundle update
+ - beforeNode('macos_arm64'):
+ - (name Bundle Setup) https_proxy=http://sysproxy.wal-mart.com:8080 http_proxy=http://sysproxy.wal-mart.com:8080 $RUBY_PATH/bundle
+ - (name Bundle Update) https_proxy=http://sysproxy.wal-mart.com:8080 http_proxy=http://sysproxy.wal-mart.com:8080 $RUBY_PATH/bundle update
- before(sonar-scan):
- call: sonar-fetch-remote-fix-ref
- before(sonar-scan-pr):
| Update .looper.multibranch.yml | Update .looper.multibranch.yml |
12015d30b0bfedaf0cf5f2f89eb9db70b17998f5 | --- package-lock.json
@@ -67,7 +67,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "1.0.9",
+ "@walmart/wmconnect-mini-app": "1.0.10",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
@@ -11853,9 +11853,9 @@
}
},
"node_modules/@walmart/wmconnect-mini-app": {
- "version": "1.0.9",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.9.tgz",
- "integrity": "sha512-27TkCT13MjQATRNtkjH3WYFOWm9nJTtwcTqNpQxEIxmtxZDmtwDzP67D/nqcvuaQZi2LOFFe7JvwhV5YXiV7ng==",
+ "version": "1.0.10",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.10.tgz",
+ "integrity": "sha512-tY3OvVJN79ik2jMGS3nW37+EUQrJmA9f/hiH5+f98yVrd+IDVryxBRgPb8zY7mNhuHqO41yh+i97ASWphT5xsw==",
"dev": true,
"hasInstallScript": true
},
@@ -41071,9 +41071,9 @@
}
},
"@walmart/wmconnect-mini-app": {
- "version": "1.0.9",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.9.tgz",
- "integrity": "sha512-27TkCT13MjQATRNtkjH3WYFOWm9nJTtwcTqNpQxEIxmtxZDmtwDzP67D/nqcvuaQZi2LOFFe7JvwhV5YXiV7ng==",
+ "version": "1.0.10",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.10.tgz",
+ "integrity": "sha512-tY3OvVJN79ik2jMGS3nW37+EUQrJmA9f/hiH5+f98yVrd+IDVryxBRgPb8zY7mNhuHqO41yh+i97ASWphT5xsw==",
"dev": true
},
"@whatwg-node/events": {
--- package.json
@@ -90,7 +90,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "1.0.9",
+ "@walmart/wmconnect-mini-app": "1.0.10",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
--- src/components/StatusChip.tsx
@@ -8,7 +8,7 @@ import {
associateIsOnPTO,
associateIsTardy,
} from '../utils';
-// import {useUserPresence} from '../presence/hooks';
+import {MyTeamHooks} from '@walmart/wmconnect-mini-app';
import {useTranslation} from 'react-i18next';
import {ROSTER_I18N_NAMESPACE} from '../translations';
import {TFunction} from 'i18next';
@@ -62,20 +62,19 @@ export const StatusChip = (props: {
encryptedId: string;
style?: StyleProp<ViewStyle>;
}) => {
- const {associate, style} = props;
- // const presence = useUserPresence(encryptedId);
+ const {associate, style, encryptedId} = props;
+ const presence = MyTeamHooks.useUserPresence(encryptedId);
const {t} = useTranslation([ROSTER_I18N_NAMESPACE]);
const status = deriveAssociateStatus(associate, t);
return (
<>
- {/* //TODO: Re-design DND Status Indicator to remove firestore coupling from app
- {presence === 'offline' && (*/}
- {/* <Tag variant='tertiary' color={'blue'} UNSAFE_style={style}>*/}
- {/* {t('rosterScreen.statusChips.doNotDisturb')}*/}
- {/* </Tag>*/}
- {/*)}*/}
+ {presence === 'offline' && (
+ <Tag variant='tertiary' color={'blue'} UNSAFE_style={style}>
+ {t('rosterScreen.statusChips.doNotDisturb')}
+ </Tag>
+ )}
{!!status && (
<Tag
testID='statusChip'
| Integrate dnd status chip | Integrate dnd status chip
|
5753833f59eb73e1e466f7df9264b4b5f5fc676c | --- __tests__/setup.js
@@ -1,3 +1,4 @@
+require('react-native-gesture-handler/jestSetup');
jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter');
const { NativeModules } = require('react-native');
@@ -31,6 +32,20 @@ jest.mock('@react-navigation/native', () => {
return {
...actualNav,
useFocusEffect: () => jest.fn(),
- useNavigation: jest.fn(),
+ useNavigation: jest.fn()
};
});
+
+jest.mock('react-native-safe-area-context', () => ({
+ useSafeAreaInsets: jest.fn(),
+}));
+
+jest.mock('react-native-reanimated', () => {
+ const Reanimated = require('react-native-reanimated/mock');
+
+ Reanimated.default.call = () => {};
+
+ return Reanimated;
+});
+
+jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
--- jest.config.js
@@ -17,7 +17,7 @@ module.exports = {
testResultsProcessor: 'jest-sonar-reporter',
setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'],
transformIgnorePatterns: [
- '<rootDir>/node_modules/(?!(react-native|@walmart/gtp-shared-components|@react-native-community/netinfo|@walmart/gtp-shared-icons|@react-native-community/picker|@react-native-firebase|axios|react-native-gesture-handler|@react-native|@living-design|@react-native-community/datetimepicker|@testing-library|jest-diff|jest-matcher-utils|@walmart/wmconnect-mini-app|nanoid|react-native-reanimated|react-native-flipper|react-native-modal|react-native-animatable)/)',
+ '<rootDir>/node_modules/(?!(react-native|@react-navigation|@walmart/gtp-shared-components|@react-native-community/netinfo|@walmart/gtp-shared-icons|@react-native-community/picker|@react-native-firebase|axios|react-native-gesture-handler|@react-native|@living-design|@react-native-community/datetimepicker|@testing-library|jest-diff|jest-matcher-utils|@walmart/wmconnect-mini-app|nanoid|react-native-reanimated|react-native-flipper|react-native-modal|react-native-animatable)/)',
],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': [
--- packages/allspark-foundation/__tests__/Navigation/DrawerButton.test.tsx
@@ -10,7 +10,7 @@ jest.mock('../../src/Navigation/context', () => ({
}));
describe('Navigation/components/DrawerButton', () => {
- test('should render correctly and navigate when button is pressed', async () => {
+ test('should render correctly', async () => {
const props = { style: {}, iconStyle: {}, badgeStyle: {} };
const mockedDispatch = jest.fn();
--- packages/allspark-foundation/__tests__/Navigation/Header.test.tsx
@@ -0,0 +1,19 @@
+import React from 'react';
+import { render } from '@testing-library/react-native';
+import { Header } from '../../src/Navigation/components/Header';
+import { useSafeAreaInsets } from 'react-native-safe-area-context';
+
+describe('Elements', () => {
+ test('should render correctly', async () => {
+ const props = {
+ options: {
+ title: 'My home',
+ },
+ };
+
+ (useSafeAreaInsets as jest.Mock).mockResolvedValue({ top: 0 });
+ const { toJSON } = render(<Header {...props} />);
+
+ expect(toJSON()).toMatchSnapshot();
+ });
+});
| addd more mocks for react naviagtion, and usesafeareainset, finished drawer button, setup for naviagation/header | addd more mocks for react naviagtion, and usesafeareainset, finished drawer button, setup for naviagation/header
|
e47eb689b0d60c6e2635b89c3a3de85386ef96f0 | --- package-lock.json
@@ -4478,13 +4478,13 @@
"integrity": "sha512-CnclOd9H0lwjbaPCLEF+prM/ycJ9Aaruxa7C6FxXXqayWOyW/Jk0WEa0OwUPU3wC8IU/wL4+2IHDojut9RJdyQ=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.4.24",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.24.tgz",
- "integrity": "sha512-2Pbm4dHUMjBz+TeS2k/zHHeTX7YNLoaMQdPDz5Axu3Kgx9UGe9UscZoNnZjaSqSyLdg0rbp6gN1B/EkvM1hU7w==",
+ "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==",
"requires": {
"@react-native-community/datetimepicker": "3.0.9",
"@react-native-picker/picker": "^1.16.1",
- "@walmart/gta-react-native-calendars": "0.0.15",
+ "@walmart/gta-react-native-calendars": "0.0.16",
"moment-timezone": "0.5.33",
"react-native-geolocation-service": "5.2.0",
"react-native-hyperlink": "0.0.19",
@@ -4494,6 +4494,22 @@
"wfm-allspark-data-library": "^0.0.19"
},
"dependencies": {
+ "@walmart/gta-react-native-calendars": {
+ "version": "0.0.16",
+ "resolved": "https://npme.walmart.com/@walmart/gta-react-native-calendars/-/gta-react-native-calendars-0.0.16.tgz",
+ "integrity": "sha512-lDAQdMuhbHd2XkEizNu2BBXcLcmrwp0WLiVogIPWsWRBj9HjWc0/6lkhFT5RWBRyLZhroKKdqriNtYWgTs1qaA==",
+ "requires": {
+ "@walmart/moment-walmart": "1.0.4",
+ "hoist-non-react-statics": "^3.3.1",
+ "immutable": "^4.0.0-rc.12",
+ "lodash": "^4.17.15",
+ "memoize-one": "^5.2.1",
+ "moment": "^2.24.0",
+ "prop-types": "^15.5.10",
+ "react-native-swipe-gestures": "^1.0.5",
+ "xdate": "^0.8.0"
+ }
+ },
"react-native-geolocation-service": {
"version": "5.2.0",
"resolved": "https://npme.walmart.com/react-native-geolocation-service/-/react-native-geolocation-service-5.2.0.tgz",
@@ -16808,9 +16824,9 @@
"integrity": "sha512-PKaL0MFy+VjTT4wcx/v90BlvlRXgdWGUU8Sz/760A2Esj175A8w/vFQCtZhUer5FVxmpYVKk7nHzoewii4ygRw=="
},
"react-query": {
- "version": "3.34.8",
- "resolved": "https://npme.walmart.com/react-query/-/react-query-3.34.8.tgz",
- "integrity": "sha512-pl9e2VmVbgKf29Qn/WpmFVtB2g17JPqLLyOQg3GfSs/S2WABvip5xlT464vfXtilLPcJVg9bEHHlqmC38/nvDw==",
+ "version": "3.34.16",
+ "resolved": "https://npme.walmart.com/react-query/-/react-query-3.34.16.tgz",
+ "integrity": "sha512-7FvBvjgEM4YQ8nPfmAr+lJfbW95uyW/TVjFoi2GwCkF33/S8ajx45tuPHPFGWs4qYwPy1mzwxD4IQfpUDrefNQ==",
"requires": {
"@babel/runtime": "^7.5.5",
"broadcast-channel": "^3.4.1",
--- package.json
@@ -101,7 +101,7 @@
"@walmart/settings-mini-app": "1.3.9",
"@walmart/taskit-mini-app": "0.143.0-rc.0",
"@walmart/shelfavailability-mini-app": "0.7.0",
- "@walmart/time-clock-mini-app": "0.4.24",
+ "@walmart/time-clock-mini-app": "0.4.26",
"@walmart/ui-components": "v1.3.0-rc.6",
"@walmart/welcomeme-mini-app": "0.30.4",
"@walmart/wfm-ui": "0.2.8",
| Update time clock mini app to version to 0.4.26 | Update time clock mini app to version to 0.4.26 |
f3b17b43dcdc15c2a3702e3a3a18b2955827c9e9 | --- src/managerExperience/images/index.tsx
@@ -0,0 +1,48 @@
+import {Team} from '../types';
+
+export const images: Record<Team, string> = {
+ 'Admin & Support':
+ 'https://i5-me.walmartimages.com/images/teams/totalstore-team-427a5cddc7.png',
+ Apparel:
+ 'https://i5-me.walmartimages.com/images/teams/apparel-team-3a81ffccf4.png',
+ 'Asset Protection':
+ 'https://i5-me.walmartimages.com/images/teams/assetprotection-team-408964d173.png',
+ 'Auto Care Center':
+ 'https://i5-me.walmartimages.com/images/teams/autocarecenter-team-6c77dfd39f.png',
+ 'Deli & Bakery':
+ 'https://i5-me.walmartimages.com/images/teams/delibakery-team-9aca808f6d.png',
+ Digital:
+ 'https://i5-me.walmartimages.com/images/teams/digital-team-330e13ad96.png',
+ 'Digital Overnight':
+ 'https://i5-me.walmartimages.com/images/teams/digital-team-330e13ad96.png',
+ Entertainment:
+ 'https://i5-me.walmartimages.com/images/teams/entertainment-team-6dd2ca6713.png',
+ 'Food & Consumables':
+ 'https://i5-me.walmartimages.com/images/teams/foodconsumeables-team-d27ecbdead.png',
+ 'Front End':
+ 'https://i5-me.walmartimages.com/images/teams/frontend-team-e6044e9791.png',
+ Fuel: 'https://i5-me.walmartimages.com/images/teams/fuel-team-1eeec3363a.png',
+ Hardlines:
+ 'https://i5-me.walmartimages.com/images/teams/hardlines-team-7c6dca6bb7.png',
+ 'Health & Beauty':
+ 'https://i5-me.walmartimages.com/images/teams/pharmacy-team-a31d58c160.png',
+ Home: 'https://i5-me.walmartimages.com/images/teams/home-team-24f5f53a8a.png',
+ Management:
+ 'https://i5-me.walmartimages.com/images/teams/totalstore-team-427a5cddc7.png',
+ 'Meat & Produce':
+ 'https://i5-me.walmartimages.com/images/teams/meatproduce-team-b8d499d1e1.png',
+ Pharmacy:
+ 'https://i5-me.walmartimages.com/images/teams/pharmacy-team-a31d58c160.png',
+ Remodel:
+ 'https://i5-me.walmartimages.com/images/teams/remodel-team-821a5c7567.png',
+ Seasonal:
+ 'https://i5-me.walmartimages.com/images/teams/seasonal-team-726ffbf6f6.png',
+ 'Stocking Day 1':
+ 'https://i5-me.walmartimages.com/images/teams/stocking-team-2bdf52809b.png',
+ 'Stocking Day 2':
+ '.https://i5-me.walmartimages.com/images/teams/stocking-team-2bdf52809b.png',
+ 'Stocking Overnight':
+ 'https://i5-me.walmartimages.com/images/teams/stocking-team-2bdf52809b.png',
+ 'Vision Center':
+ 'https://i5-me.walmartimages.com/images/teams/visioncenter-team-bd33a2aa39.png',
+};
--- src/managerExperience/types.ts
@@ -0,0 +1,24 @@
+export type Team =
+ | 'Admin & Support'
+ | 'Apparel'
+ | 'Asset Protection'
+ | 'Auto Care Center'
+ | 'Deli & Bakery'
+ | 'Digital'
+ | 'Digital Overnight'
+ | 'Entertainment'
+ | 'Food & Consumables'
+ | 'Front End'
+ | 'Fuel'
+ | 'Hardlines'
+ | 'Health & Beauty'
+ | 'Home'
+ | 'Management'
+ | 'Meat & Produce'
+ | 'Pharmacy'
+ | 'Remodel'
+ | 'Seasonal'
+ | 'Stocking Day 1'
+ | 'Stocking Day 2'
+ | 'Stocking Overnight'
+ | 'Vision Center';
| chore: added types and images files | chore: added types and images files
|
6a01f6b3fa5b91aaa80e7c92b2ed828348d037c9 | --- package-lock.json
@@ -60,7 +60,7 @@
"@walmart/counts-component-miniapp": "0.1.11",
"@walmart/emergency-mini-app": "1.27.1",
"@walmart/exception-mini-app": "1.7.10",
- "@walmart/facilities-management-miniapp": "0.9.2",
+ "@walmart/facilities-management-miniapp": "0.10.0",
"@walmart/feedback-all-spark-miniapp": "0.9.60",
"@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "6.0.16",
@@ -11436,9 +11436,9 @@
}
},
"node_modules/@walmart/facilities-management-miniapp": {
- "version": "0.9.2",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.9.2.tgz",
- "integrity": "sha512-cdj55zjrNPKcq/ws2yAOEzx5RgMmkg384amAOiFK2xV2cZq0Xg+kFib6BVNsDuCrMlt9bZUrQe03lMsKz2AK9Q==",
+ "version": "0.10.0",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.10.0.tgz",
+ "integrity": "sha512-I0SgtmKdpG+FHLH8V4seQDnSDOaW1oxgfJI9WSInaXAJYOVALArxrAhCZR2lXE293daFdXSqIKnrW0A42iffyQ==",
"hasInstallScript": true,
"engines": {
"node": ">=16"
@@ -11466,7 +11466,7 @@
"@walmart/core-services-allspark": "~2.12.8",
"@walmart/core-utils": "~2.0.5",
"@walmart/functional-components": "~4.0.3",
- "@walmart/gtp-shared-components": "2.1.3",
+ "@walmart/gtp-shared-components": "2.2.1-rc.0",
"@walmart/impersonation-mini-app": "1.20.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/react-native-encrypted-storage": "1.1.3",
--- package.json
@@ -102,7 +102,7 @@
"@walmart/counts-component-miniapp": "0.1.11",
"@walmart/emergency-mini-app": "1.27.1",
"@walmart/exception-mini-app": "1.7.10",
- "@walmart/facilities-management-miniapp": "0.9.2",
+ "@walmart/facilities-management-miniapp": "0.10.0",
"@walmart/feedback-all-spark-miniapp": "0.9.60",
"@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "6.0.16",
@@ -367,7 +367,7 @@
"@walmart/counts-component-miniapp": "0.1.11",
"@walmart/emergency-mini-app": "1.27.1",
"@walmart/exception-mini-app": "1.7.10",
- "@walmart/facilities-management-miniapp": "0.9.2",
+ "@walmart/facilities-management-miniapp": "0.10.0",
"@walmart/feedback-all-spark-miniapp": "0.9.60",
"@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "6.0.16",
| Version bump 0.10.0 | Version bump 0.10.0
|
dd05f1aa3a903aedfcf3e3a74ac511f1394df31e | --- packages/allspark-foundation/src/HubFeature/Onboarding/TeamOnboarding/Screens/TeamOnboardingScreen.tsx
@@ -1,18 +1,51 @@
import React from 'react';
+import { Icons } from '@walmart/gtp-shared-components/dist';
import { TeamOnboarding } from '../Component/TeamOnboarding';
-import { teamOnboardingCardsData } from '../teamOnboardingData';
import { AllsparkNavigationClient } from '../../../../Navigation';
import { useAllsparkTranslation } from '../../../../Translation';
export const TeamOnboardingScreen = () => {
- const { t } = useAllsparkTranslation(undefined);
+ const { t } = useAllsparkTranslation('managerExperience');
const handleNavigation = () => {
AllsparkNavigationClient.navigate('teamHub.teamSelection');
};
+ const teamOnboardingCardsData = [
+ {
+ icon: <Icons.AssociateIcon size='medium' color='#0071DC' />,
+ title: t('teamOnboarding.teamOnboardingCardsData.firstCard.title', {
+ defaultValue: 'Centralized information',
+ fallbackLng: 'en-US',
+ }),
+ description: t(
+ 'teamOnboarding.teamOnboardingCardsData.firstCard.description',
+ {
+ defaultValue:
+ 'Easily manage team attendance, assignments, and work progress',
+ fallbackLng: 'en-US',
+ }
+ ),
+ },
+ {
+ icon: <Icons.AssociateIcon size='medium' color='#0071DC' />,
+ title: t('teamOnboarding.teamOnboardingCardsData.secondCard.title', {
+ defaultValue: 'Insights and recommended actions',
+ fallbackLng: 'en-US',
+ }),
+ description: t(
+ 'teamOnboarding.teamOnboardingCardsData.secondCard.description',
+ {
+ defaultValue:
+ 'Get smart guidance to help you keep your team and the shift on track',
+ fallbackLng: 'en-US',
+ }
+ ),
+ },
+ ];
+
return (
<TeamOnboarding
- heading={t('teamOnboarding.title', {
+ heading={t('teamOnboarding.heading', {
defaultValue: 'A new way to manage your Team and Work',
fallbackLng: 'en-US',
})}
@@ -21,7 +54,7 @@ export const TeamOnboardingScreen = () => {
fallbackLng: 'en-US',
})}
buttonText={t('teamOnboarding.buttonText', {
- defaultValue: 'Choose teams.',
+ defaultValue: 'Choose teams',
fallbackLng: 'en-US',
})}
teamOnboardingCardsInfo={teamOnboardingCardsData}
--- packages/allspark-foundation/src/HubFeature/Onboarding/TeamOnboarding/teamOnboardingData.tsx
@@ -1,27 +0,0 @@
-import React from 'react';
-import { Icons } from '@walmart/gtp-shared-components/dist';
-import { AllsparkTranslationClient } from '../../../Translation';
-
-const managerExperienceTranslationClient =
- AllsparkTranslationClient.getFeatureClient('managerExperience');
-
-export const teamOnboardingCardsData = [
- {
- icon: <Icons.AssociateIcon size='medium' color='#0071DC' />,
- title: managerExperienceTranslationClient?.translate(
- 'teamOnboarding.teamOnboardingCardsData.firstCard.title'
- ),
- description: managerExperienceTranslationClient?.translate(
- 'teamOnboarding.teamOnboardingCardsData.firstCard.description'
- ),
- },
- {
- icon: <Icons.AssociateIcon size='medium' color='#0071DC' />,
- title: managerExperienceTranslationClient?.translate(
- 'teamOnboarding.teamOnboardingCardsData.secondCard.title'
- ),
- description: managerExperienceTranslationClient?.translate(
- 'teamOnboarding.teamOnboardingCardsData.secondCard.description'
- ),
- },
-];
| Adding translation updates | Adding translation updates
|
d299a57b3e4fad69c1447c17afea995139780995 | --- __tests__/screens/AllTeamsScreen.test.tsx
@@ -6,7 +6,7 @@ import {SupplyChainAllTeamsScreen} from '../../src/screens/AllTeamsScreen/Supply
import {SiteSelectors} from '@walmart/allspark-foundation/Site';
import * as hooks from '../../src/hooks';
import {useSelector} from 'react-redux';
-import {waitFor, fireEvent} from '@testing-library/react-native';
+import {waitFor} from '@testing-library/react-native';
// Add this in your test's beforeEach
jest.mock('@apollo/client', () => {
| fix(bug): add tests for AllTeamsScreen | fix(bug): add tests for AllTeamsScreen
|
bfef5cdaa1e56f2cbd98244cfd9f1502f2892144 | --- package-lock.json
@@ -4600,9 +4600,9 @@
}
},
"@walmart/taskit-mini-app": {
- "version": "0.28.0",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.28.0.tgz",
- "integrity": "sha512-yypMwDk+cT/e0EP3UPd4xMmAOkHhEba6wfC9y8aQRoaRZ8xnfmLvZHcQg9ND15L7LufWR45p0XMLwD6qmap5zA=="
+ "version": "0.29.0",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.29.0.tgz",
+ "integrity": "sha512-FfY4rI9uJrZA2XrMY4oWSfKQydqnsqpiaADvuyZRfZYJoVoxtOHEJm0lXB53fYLOJ27yznLxGD2yo0a+TxMJkA=="
},
"@walmart/time-clock-mini-app": {
"version": "0.5.3",
--- package.json
@@ -101,7 +101,7 @@
"@walmart/schedule-mini-app": "0.13.0",
"@walmart/settings-mini-app": "1.6.0",
"@walmart/shelfavailability-mini-app": "0.8.7",
- "@walmart/taskit-mini-app": "0.28.0",
+ "@walmart/taskit-mini-app": "0.29.0",
"@walmart/time-clock-mini-app": "0.5.3",
"@walmart/ui-components": "1.4.0-rc.0",
"@walmart/welcomeme-mini-app": "0.66.0",
| Updating task It version | Updating task It version
|
4331f8a842f8988cd5e42f6be42e87f8261f73ba | --- package-lock.json
@@ -76,7 +76,7 @@
"@walmart/react-native-sumo-sdk": "2.5.1",
"@walmart/receipt-check-miniapp": "1.13.5",
"@walmart/redux-store": "3.3.1",
- "@walmart/returns-mini-app": "1.7.0",
+ "@walmart/returns-mini-app": "1.8.0",
"@walmart/schedule-mini-app": "0.37.0",
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
@@ -5856,9 +5856,9 @@
}
},
"node_modules/@walmart/returns-mini-app": {
- "version": "1.7.0",
- "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-1.7.0.tgz",
- "integrity": "sha512-5y+LANAovCVHUDbMnA9e56qpHXuuCfCH/4g2iV+lyVaz8y3HzGU6A7+TsbDRajdk/+GPlQa6mSNiATBgF8cceA==",
+ "version": "1.8.0",
+ "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-1.8.0.tgz",
+ "integrity": "sha512-SQMbYoD3xvo6gTS+AzwylhMS/2drv1lDFIrVysaF7G8ID5lMOIN3GrZg+PSVT0e74zv4aviIRg/IYm68fGl49A==",
"hasInstallScript": true,
"dependencies": {
"@walmart/common-utilities-js": "^1.2.10",
@@ -25356,9 +25356,9 @@
}
},
"@walmart/returns-mini-app": {
- "version": "1.7.0",
- "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-1.7.0.tgz",
- "integrity": "sha512-5y+LANAovCVHUDbMnA9e56qpHXuuCfCH/4g2iV+lyVaz8y3HzGU6A7+TsbDRajdk/+GPlQa6mSNiATBgF8cceA==",
+ "version": "1.8.0",
+ "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-1.8.0.tgz",
+ "integrity": "sha512-SQMbYoD3xvo6gTS+AzwylhMS/2drv1lDFIrVysaF7G8ID5lMOIN3GrZg+PSVT0e74zv4aviIRg/IYm68fGl49A==",
"requires": {
"@walmart/common-utilities-js": "^1.2.10",
"@walmart/virtual-zpl-printer-model": "^0.2.11",
--- package.json
@@ -118,7 +118,7 @@
"@walmart/react-native-sumo-sdk": "2.5.1",
"@walmart/receipt-check-miniapp": "1.13.5",
"@walmart/redux-store": "3.3.1",
- "@walmart/returns-mini-app": "1.7.0",
+ "@walmart/returns-mini-app": "1.8.0",
"@walmart/schedule-mini-app": "0.37.0",
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
--- patches/@walmart+returns-mini-app+1.5.0.patch
@@ -1,10 +0,0 @@
-diff --git a/node_modules/@walmart/returns-mini-app/dist/returns/utils/cacheStore/index.js b/node_modules/@walmart/returns-mini-app/dist/returns/utils/cacheStore/index.js
-index bc1ec8b..b86f05a 100644
---- a/node_modules/@walmart/returns-mini-app/dist/returns/utils/cacheStore/index.js
-+++ b/node_modules/@walmart/returns-mini-app/dist/returns/utils/cacheStore/index.js
-@@ -1,4 +1,4 @@
--import AsyncStorage from '@react-native-community/async-storage';
-+import AsyncStorage from '@react-native-async-storage/async-storage';
- export const CACHE_NAME = 'returns_cache';
- export const getAllCacheKeys = async () => {
- const keys = await AsyncStorage.getAllKeys();
| Update version and remove patch | Update version and remove patch
|
76c4a17a81e74271b68a2bc0d7a86416bd41618d | --- graphql.yml
@@ -9,99 +9,81 @@ applications:
- name: "dev"
persistedQueries:
- name: "GetAssociateClockStatus"
- hash: "b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214"
queryTemplate: "src/queries/getAssociateClockStatus.graphql"
tags:
- "v1"
- name: "GetAssociateName"
- hash: "f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f"
queryTemplate: "src/queries/getAssociateName.graphql"
tags:
- "v1"
- name: "GetDailyRoster"
- hash: "3c6a1553234da438299662b03db04cc613b52ca997efb511ac76d5eff118a4bf"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v2"
- "Drop13"
- name: "GetTeamById"
- hash: "5a1baf2e68d6b2c9ddec825296731ccd2137a9e7f12d1f7210ca797814bb3e3f"
queryTemplate: "src/queries/getTeamById.graphql"
tags:
- "v1"
- name: "GetTeamsByStore"
- hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44"
queryTemplate: "src/queries/getTeamsbyStore.graphql"
tags:
- "v1"
- name: "upsertAssociateTextPreferences"
- hash: "c32767303508d355e17b8489f8ecd28ec16a22ea3c454f9347ae96c9aefbec3b"
queryTemplate: "src/queries/upsertAssociateTextPreference.graphql"
tags:
- "v1"
- name: "stage"
persistedQueries:
- name: "GetAssociateClockStatus"
- hash: "b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214"
queryTemplate: "src/queries/getAssociateClockStatus.graphql"
tags:
- "v1"
- name: "GetAssociateName"
- hash: "f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f"
queryTemplate: "src/queries/getAssociateName.graphql"
tags:
- "v1"
- name: "GetDailyRoster"
- hash: "3c6a1553234da438299662b03db04cc613b52ca997efb511ac76d5eff118a4bf"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v2"
- "Drop13"
- name: "GetTeamById"
- hash: "5a1baf2e68d6b2c9ddec825296731ccd2137a9e7f12d1f7210ca797814bb3e3f"
queryTemplate: "src/queries/getTeamById.graphql"
tags:
- "v1"
- name: "GetTeamsByStore"
- hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44"
queryTemplate: "src/queries/getTeamsbyStore.graphql"
tags:
- "v1"
- name: "upsertAssociateTextPreferences"
- hash: "c32767303508d355e17b8489f8ecd28ec16a22ea3c454f9347ae96c9aefbec3b"
queryTemplate: "src/queries/upsertAssociateTextPreference.graphql"
tags:
- "v1"
- name: "prod"
persistedQueries:
- name: "GetAssociateClockStatus"
- hash: "b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214"
queryTemplate: "src/queries/getAssociateClockStatus.graphql"
tags:
- "v1"
- name: "GetAssociateName"
- hash: "f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f"
queryTemplate: "src/queries/getAssociateName.graphql"
tags:
- "v1"
- name: "GetDailyRoster"
- hash: "3c6a1553234da438299662b03db04cc613b52ca997efb511ac76d5eff118a4bf"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v2"
- "Drop13"
- name: "GetTeamById"
- hash: "5a1baf2e68d6b2c9ddec825296731ccd2137a9e7f12d1f7210ca797814bb3e3f"
queryTemplate: "src/queries/getTeamById.graphql"
tags:
- "v1"
- name: "GetTeamsByStore"
- hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44"
queryTemplate: "src/queries/getTeamsbyStore.graphql"
tags:
- "v1"
- name: "upsertAssociateTextPreferences"
- hash: "c32767303508d355e17b8489f8ecd28ec16a22ea3c454f9347ae96c9aefbec3b"
queryTemplate: "src/queries/upsertAssociateTextPreference.graphql"
tags:
- "v1"
| feat: removed hash values in graphql yml | feat: removed hash values in graphql yml
|
b639843a5a04b33ba6ffd088085919d5cf18726b | --- .yarn/patches/react-native-npm-0.79.5-8fdac25583.patch
@@ -1,19 +0,0 @@
-diff --git a/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm b/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm
-index 441a16f419f384367390218d5a78f9f601f9cd40..1c540f654eb1fe484c905312992287775fc3aba8 100644
---- a/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm
-+++ b/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm
-@@ -438,7 +438,13 @@ TraceSection s(
- @try {
- [inv invokeWithTarget:strongModule];
- } @catch (NSException *exception) {
-- throw convertNSExceptionToJSError(runtime, exception, std::string{moduleName}, methodNameStr);
-+ if (shouldVoidMethodsExecuteSync_) {
-+ // We can only convert NSException to JSError in sync method calls.
-+ // See https://github.com/reactwg/react-native-new-architecture/discussions/276#discussioncomment-12567155
-+ throw convertNSExceptionToJSError(runtime, exception, std::string{moduleName}, methodNameStr);
-+ } else {
-+ @throw exception;
-+ }
- } @finally {
- [retainedObjectsForInvocation removeAllObjects];
- }
--- package.json
@@ -239,7 +239,7 @@
"react-dom": "19.0.0",
"react-hook-form": "^7.51.0",
"react-i18next": "^13.3.1",
- "react-native": "patch:react-native@npm:0.79.5#~/.yarn/patches/react-native-npm-0.79.5-8fdac25583.patch",
+ "react-native": "0.79.5",
"react-native-app-auth": "^8.0.0",
"react-native-audio-api": "^0.6.5",
"react-native-ble-manager": "11.6.1",
@@ -472,7 +472,7 @@
"test-exclude": ">=7.0.0",
"moment-timezone": "~0.5.43",
"moment": "^2.29.4",
- "react-native": "patch:react-native@npm:0.79.5#~/.yarn/patches/react-native-npm-0.79.5-8fdac25583.patch",
+ "react-native": "0.79.5",
"react-native-calendars": "^1.1313.0",
"react-native-modal": "^14.0.0-rc.1",
"react-native-network-logger": "patch:react-native-network-logger@npm%3A2.0.1#~/.yarn/patches/react-native-network-logger-npm-2.0.1-a1f08caa90.patch",
--- yarn.lock
@@ -9018,7 +9018,7 @@ __metadata:
react-dom: "npm:19.0.0"
react-hook-form: "npm:^7.51.0"
react-i18next: "npm:^13.3.1"
- react-native: "patch:react-native@npm:0.79.5#~/.yarn/patches/react-native-npm-0.79.5-8fdac25583.patch"
+ react-native: "npm:0.79.5"
react-native-app-auth: "npm:^8.0.0"
react-native-audio-api: "npm:^0.6.5"
react-native-ble-manager: "npm:11.6.1"
@@ -21281,58 +21281,6 @@ __metadata:
languageName: node
linkType: hard
-"react-native@patch:react-native@npm:0.79.5#~/.yarn/patches/react-native-npm-0.79.5-8fdac25583.patch":
- version: 0.79.5
- resolution: "react-native@patch:react-native@npm%3A0.79.5%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Freact-native%252F-%252Freact-native-0.79.5.tgz#~/.yarn/patches/react-native-npm-0.79.5-8fdac25583.patch::version=0.79.5&hash=e139af"
- dependencies:
- "@jest/create-cache-key-function": "npm:^29.7.0"
- "@react-native/assets-registry": "npm:0.79.5"
- "@react-native/codegen": "npm:0.79.5"
- "@react-native/community-cli-plugin": "npm:0.79.5"
- "@react-native/gradle-plugin": "npm:0.79.5"
- "@react-native/js-polyfills": "npm:0.79.5"
- "@react-native/normalize-colors": "npm:0.79.5"
- "@react-native/virtualized-lists": "npm:0.79.5"
- abort-controller: "npm:^3.0.0"
- anser: "npm:^1.4.9"
- ansi-regex: "npm:^5.0.0"
- babel-jest: "npm:^29.7.0"
- babel-plugin-syntax-hermes-parser: "npm:0.25.1"
- base64-js: "npm:^1.5.1"
- chalk: "npm:^4.0.0"
- commander: "npm:^12.0.0"
- event-target-shim: "npm:^5.0.1"
- flow-enums-runtime: "npm:^0.0.6"
- glob: "npm:^7.1.1"
- invariant: "npm:^2.2.4"
- jest-environment-node: "npm:^29.7.0"
- memoize-one: "npm:^5.0.0"
- metro-runtime: "npm:^0.82.0"
- metro-source-map: "npm:^0.82.0"
- nullthrows: "npm:^1.1.1"
- pretty-format: "npm:^29.7.0"
- promise: "npm:^8.3.0"
- react-devtools-core: "npm:^6.1.1"
- react-refresh: "npm:^0.14.0"
- regenerator-runtime: "npm:^0.13.2"
- scheduler: "npm:0.25.0"
- semver: "npm:^7.1.3"
- stacktrace-parser: "npm:^0.1.10"
- whatwg-fetch: "npm:^3.0.0"
- ws: "npm:^6.2.3"
- yargs: "npm:^17.6.2"
- peerDependencies:
- "@types/react": ^19.0.0
- react: ^19.0.0
- peerDependenciesMeta:
- "@types/react":
- optional: true
- bin:
- react-native: cli.js
- checksum: 10c0/4b47cbb161f048560df6b89f8730926143130b0374b3b7c536a26d6ec7eac81a4543e22e3574d1e82492de9b0e207cc0b596e11a396e5584220e7649778f8192
- languageName: node
- linkType: hard
-
"react-query@npm:^3.39.3":
version: 3.39.3
resolution: "react-query@npm:3.39.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-query%2F-%2Freact-query-3.39.3.tgz"
| fix(crash): removed patch added to fix rn crash (#5275) | fix(crash): removed patch added to fix rn crash (#5275)
Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com>
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
6bb5aaf6c3beb98331f4b48b3cdbb6a5c5a3051b | --- package-lock.json
@@ -5322,9 +5322,9 @@
}
},
"@walmart/iteminfo-mini-app": {
- "version": "5.1.8",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.1.8.tgz",
- "integrity": "sha512-d+DXyGx+3uzvOYmwNL1JxUXXpxYPPlweWrnxwLyeooGbvYlEyeazOWkgYiPLsja2tSfnFoXk58paXRUt4xAxaA=="
+ "version": "6.0.1",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-6.0.1.tgz",
+ "integrity": "sha512-wrAW+K8/Amo3YmLmCnTbFVUutWAkii4Neh23pKFwOKMWbQXqirmBneTAGr574r7qcuorFF+I8jZvvEB6Di3uyQ=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.1.1",
--- package.json
@@ -96,7 +96,7 @@
"@walmart/impersonation-mini-app": "1.2.0",
"@walmart/ims-print-services-ui": "1.1.4",
"@walmart/inbox-mini-app": "0.61.0",
- "@walmart/iteminfo-mini-app": "5.1.8",
+ "@walmart/iteminfo-mini-app": "6.0.1",
"@walmart/manager-approvals-miniapp": "0.1.1",
"@walmart/me-field-mini-app": "1.1.30",
"@walmart/metrics-mini-app": "0.9.28",
| updated iteminfo version with new teflon header | updated iteminfo version with new teflon header
|
2eba8eaccfc9ecc8a2b9f8629804b2475d3ffdbd | --- .looper.yml
@@ -20,4 +20,5 @@ flows:
pr:
- npm install
- npm run lint
+ - npm run build
- npm run coverage
--- .looper.yml
@@ -20,4 +20,5 @@ flows:
pr:
- npm install
- npm run lint
+ - npm run build
- npm run coverage
| adding build check for PRs | adding build check for PRs
|
a6655c9972f6481ece9cd1a7fed00b1278f31305 | --- packages/me-at-walmart-container/src/featureRunner.ts
@@ -1,10 +1,21 @@
-import { IMeAtWalmartEnvironment } from '@walmart/me-at-walmart-common';
+import { FeatureRunnerNavigationConfig } from '@walmart/allspark-foundation/FeatureRunner';
+import {
+ IMeAtWalmartEnvironment,
+ UserDomain,
+} from '@walmart/me-at-walmart-common';
export const MeAtWalmartFeatureRunnerConfig = (
env: IMeAtWalmartEnvironment
-) => {
+): FeatureRunnerNavigationConfig => {
return {
authConfigs: [env.auth.associate, env.auth.candidate],
siteIdRequired: true,
+ impersonationConfig: {
+ domains: [
+ { text: 'Homeoffice', code: UserDomain.homeoffice },
+ { text: 'Store', code: UserDomain.store },
+ { text: 'DC', code: UserDomain.dc },
+ ],
+ },
};
};
| feat: configure feature runner impersonation | feat: configure feature runner impersonation
|
1f9868f6cf7edc51d8c357aecd639969f08879c3 | --- package-lock.json
@@ -91,7 +91,7 @@
"@walmart/roster-mini-app": "1.0.19",
"@walmart/schedule-mini-app": "0.93.0",
"@walmart/shelfavailability-mini-app": "1.5.20",
- "@walmart/store-feature-orders": "1.26.3",
+ "@walmart/store-feature-orders": "1.26.4",
"@walmart/taskit-mini-app": "2.57.6",
"@walmart/time-clock-mini-app": "2.338.1",
"@walmart/topstock-mini-app": "1.7.1",
@@ -9828,9 +9828,9 @@
}
},
"node_modules/@walmart/store-feature-orders": {
- "version": "1.26.3",
- "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.26.3.tgz",
- "integrity": "sha512-jnAsIoL/X/qtXPA1WHdziTjadPajgfzpdmoScMfTFoi3CTjpcnJ/4JCIPbWAawLNbHMDGBXE6J7Xj9wt/eqcww==",
+ "version": "1.26.4",
+ "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.26.4.tgz",
+ "integrity": "sha512-bx5jRY2uZphsBlArKOdnfWWP66/Amn2I5IIsXiKCPCo7RW8YtE/ZsOkEIprESgdWxUFjDqknbAiRqALO9yVG0Q==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -33525,9 +33525,9 @@
"integrity": "sha512-4yxCmn2SRjzS3AT+THv8r9UXWdr8sve7XOVsfyIhezT1WDEO8ReRw4T0rEJ3Y5u630NOgNrqhBg+BqIc3pOhJg=="
},
"@walmart/store-feature-orders": {
- "version": "1.26.3",
- "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.26.3.tgz",
- "integrity": "sha512-jnAsIoL/X/qtXPA1WHdziTjadPajgfzpdmoScMfTFoi3CTjpcnJ/4JCIPbWAawLNbHMDGBXE6J7Xj9wt/eqcww=="
+ "version": "1.26.4",
+ "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.26.4.tgz",
+ "integrity": "sha512-bx5jRY2uZphsBlArKOdnfWWP66/Amn2I5IIsXiKCPCo7RW8YtE/ZsOkEIprESgdWxUFjDqknbAiRqALO9yVG0Q=="
},
"@walmart/taskit-mini-app": {
"version": "2.57.6",
--- package.json
@@ -132,7 +132,7 @@
"@walmart/roster-mini-app": "1.0.19",
"@walmart/schedule-mini-app": "0.93.0",
"@walmart/shelfavailability-mini-app": "1.5.20",
- "@walmart/store-feature-orders": "1.26.3",
+ "@walmart/store-feature-orders": "1.26.4",
"@walmart/taskit-mini-app": "2.57.6",
"@walmart/time-clock-mini-app": "2.338.1",
"@walmart/topstock-mini-app": "1.7.1",
| scan item card lead tile label fix | scan item card lead tile label fix
|
3fa47370e563272aa66bf80b13c06cb8c5fa341b | --- package.json
@@ -145,7 +145,7 @@
"@walmart/shelfavailability-mini-app": "1.5.23",
"@walmart/store-feature-orders": "1.26.7",
"@walmart/taskit-mini-app": "2.81.15",
- "@walmart/time-clock-mini-app": "2.370.0",
+ "@walmart/time-clock-mini-app": "2.373.0",
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch",
"@walmart/welcomeme-mini-app": "0.90.3",
--- yarn.lock
@@ -7146,9 +7146,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/time-clock-mini-app@npm:2.370.0":
- version: 2.370.0
- resolution: "@walmart/time-clock-mini-app@npm:2.370.0"
+"@walmart/time-clock-mini-app@npm:2.373.0":
+ version: 2.373.0
+ resolution: "@walmart/time-clock-mini-app@npm:2.373.0"
dependencies:
"@react-navigation/elements": "npm:^1.3.1"
moment-timezone: "npm:0.5.33"
@@ -7191,7 +7191,7 @@ __metadata:
uuid: ^3.3.2
wifi-store-locator: ^1.4.0
xdate: ^0.8.2
- checksum: 10c0/210fd0dc48d6b983a74020b5f9f0a82a5d2d78970d30f5ddc8998fa4aafe9f371075b0debe65226b2364f2a15a7337bda1e169e4e599aee607ad98886de7fcad
+ checksum: 10c0/733a2ccf47e04dc4ffca2fe0b2020d070d5b513e2f5193298fddd5c59eb57b9bb50cbe5c2b2c2401000f3c87d311cdd78cdb4c5f2b4b21d0b35163107540915c
languageName: node
linkType: hard
@@ -7785,7 +7785,7 @@ __metadata:
"@walmart/shelfavailability-mini-app": "npm:1.5.23"
"@walmart/store-feature-orders": "npm:1.26.7"
"@walmart/taskit-mini-app": "npm:2.81.15"
- "@walmart/time-clock-mini-app": "npm:2.370.0"
+ "@walmart/time-clock-mini-app": "npm:2.373.0"
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch"
"@walmart/welcomeme-mini-app": "npm:0.90.3"
| Update TCMA to 2.373.0 | Update TCMA to 2.373.0
|
62c4f3ac77c7ee8a65f4bfbda0f9e2685097fe87 | --- package-lock.json
@@ -82,7 +82,7 @@
"@walmart/settings-mini-app": "1.12.0",
"@walmart/shelfavailability-mini-app": "1.5.11",
"@walmart/taskit-mini-app": "0.49.6",
- "@walmart/time-clock-mini-app": "2.17.0",
+ "@walmart/time-clock-mini-app": "2.19.0",
"@walmart/ui-components": "1.9.0",
"@walmart/welcomeme-mini-app": "0.73.0",
"@walmart/wfm-ui": "0.2.26",
@@ -6846,9 +6846,9 @@
}
},
"node_modules/@walmart/time-clock-mini-app": {
- "version": "2.17.0",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.17.0.tgz",
- "integrity": "sha512-bIDZlGZrqp4eVM31b/S5+EBhPsfiF3qVhD6nG/fxjWYu8854e0dkfR0KYObiB9mATQrXzwPsyvOnszKLsdaQsw==",
+ "version": "2.19.0",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.19.0.tgz",
+ "integrity": "sha512-dJF2e5JIZrPHUOqTY17LZiWszU4kGiOazHCkpolF+p01zc946q5KMAL0NWcVT39Jq3wkBGSGMlC5XT51lx2Otg==",
"hasInstallScript": true,
"license": "UNLICENSED",
"dependencies": {
@@ -29503,9 +29503,9 @@
}
},
"@walmart/time-clock-mini-app": {
- "version": "2.17.0",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.17.0.tgz",
- "integrity": "sha512-bIDZlGZrqp4eVM31b/S5+EBhPsfiF3qVhD6nG/fxjWYu8854e0dkfR0KYObiB9mATQrXzwPsyvOnszKLsdaQsw==",
+ "version": "2.19.0",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.19.0.tgz",
+ "integrity": "sha512-dJF2e5JIZrPHUOqTY17LZiWszU4kGiOazHCkpolF+p01zc946q5KMAL0NWcVT39Jq3wkBGSGMlC5XT51lx2Otg==",
"requires": {
"@react-navigation/elements": "^1.3.1",
"moment-timezone": "0.5.33",
--- package.json
@@ -124,7 +124,7 @@
"@walmart/settings-mini-app": "1.12.0",
"@walmart/shelfavailability-mini-app": "1.5.2",
"@walmart/taskit-mini-app": "0.49.6",
- "@walmart/time-clock-mini-app": "2.17.0",
+ "@walmart/time-clock-mini-app": "2.19.0",
"@walmart/ui-components": "1.9.0",
"@walmart/welcomeme-mini-app": "0.73.0",
"@walmart/wfm-ui": "0.2.26",
| Update Time Clock Mini app to 2.19.0 | Update Time Clock Mini app to 2.19.0
|
193321fbed44ed59fc5cf209b48bbf2518a7ea7f | --- .looper.yml
@@ -18,4 +18,4 @@ flows:
- (name Yarn Version) yarn --version
- yarn install
- yarn run lint
- # - yarn run coverage
\ No newline at end of file
+ - yarn run coverage
\ No newline at end of file
--- __tests__/setup.ts
@@ -51,10 +51,6 @@ jest.mock('@walmart/roster-mini-app', () =>
jest.requireActual('@walmart/roster-mini-app'),
);
-jest.mock('@walmart/wmconnect-mini-app', () =>
- jest.requireActual('@walmart/wmconnect-mini-app'),
-);
-
jest.mock('expo-image', () => jest.requireActual('expo-image'));
jest.mock(
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.15.18",
+ "version": "1.15.19",
"main": "dist/index.js",
"files": [
"dist"
@@ -101,7 +101,6 @@
"@walmart/redux-store": "3.7.0",
"@walmart/roster-mini-app": "2.12.20",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "2.8.19",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
--- src/navigation/index.tsx
@@ -9,7 +9,6 @@ import {
DEFAULT_WIDGET_IDS,
} from '@walmart/allspark-foundation-hub';
import {RosterMiniApp} from '@walmart/roster-mini-app';
-import {PresenceProvider} from '@walmart/wmconnect-mini-app';
import {WarningBanner} from '../components/WarningBanner';
import {useUserCanSeeTeamHub} from '../hooks/user';
@@ -19,14 +18,12 @@ export const MyTeamMiniApp = () => {
const showManagerTeamHub = useUserCanSeeTeamHub();
return showManagerTeamHub ? (
- <PresenceProvider>
+ <>
<WarningBanner />
<TeamHub />
- </PresenceProvider>
+ </>
) : (
- <PresenceProvider>
- <RosterMiniApp />
- </PresenceProvider>
+ <RosterMiniApp />
);
};
--- yarn.lock
@@ -6475,7 +6475,6 @@ __metadata:
"@walmart/redux-store": "npm:3.7.0"
"@walmart/roster-mini-app": "npm:2.12.20"
"@walmart/ui-components": "npm:1.15.1"
- "@walmart/wmconnect-mini-app": "npm:2.8.19"
babel-jest: "npm:^29.2.1"
chance: "npm:^1.1.11"
eslint: "npm:8.22.0"
@@ -6723,52 +6722,6 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:2.8.19":
- version: 2.8.19
- resolution: "@walmart/wmconnect-mini-app@npm:2.8.19"
- peerDependencies:
- "@react-native-async-storage/async-storage": ^1.21.0
- "@react-native-community/netinfo": ^11.0.1
- "@react-native-firebase/analytics": ~17.4.2
- "@react-native-firebase/crashlytics": ~17.4.2
- "@react-native-firebase/database": ~17.4.2
- "@react-native-firebase/perf": ~17.4.2
- "@react-navigation/drawer": ^6.6.4
- "@react-navigation/native": ^6.0.8
- "@reduxjs/toolkit": ^1.9.7
- "@types/node": 20.5.9
- "@walmart/allspark-graphql-client": ~6.3.20
- "@walmart/allspark-http-client": 6.1.4
- "@walmart/config-components": 4.4.0
- "@walmart/core-services": ~6.4.1
- "@walmart/core-services-allspark": 6.25.1
- "@walmart/core-utils": ~6.3.9
- "@walmart/gtp-shared-components": 2.2.4
- "@walmart/react-native-encrypted-storage": ~1.1.3
- "@walmart/react-native-logger": 1.34.8
- "@walmart/react-native-scanner-3.0": 0.5.1
- "@walmart/react-native-shared-navigation": 6.1.4
- "@walmart/react-native-sumo-sdk": "*"
- i18next: ^23.6.0
- moment-timezone: ~0.5.43
- npm-run-all: ^4.1.5
- react-i18next: ^13.3.1
- react-native-apollo-devtools-client: ^1.0.4
- react-native-app-auth: ^6.4.3
- react-native-device-info: ~10.13.1
- react-native-gesture-handler: ^2.14.0
- react-native-get-random-values: ~1.10.0
- react-native-reanimated: ^3.6.0
- react-native-safe-area-context: ^4.8.2
- react-native-screens: ^3.28.0
- react-native-wm-telemetry: 6.1.4
- redux: ^4.2.1
- redux-saga: ^1.2.3
- wifi-store-locator: 1.4.1
- checksum: 10c0/d723aa4b934202c6c2cb01e7562cf1384d125bed208e9c8af7c6fe393550e76d52727af6ed567f8b3eb4402b7ca93a1ce0f8828b4ebbf6622fb1d1bd90871cc1
- languageName: node
- linkType: hard
-
"@whatwg-node/disposablestack@npm:^0.0.5":
version: 0.0.5
resolution: "@whatwg-node/disposablestack@npm:0.0.5"
| Update my team version | Update my team version
|
fd457e595fcd61dd732f69a146b481158a5c05e3 | --- package-lock.json
@@ -3146,16 +3146,16 @@
"integrity": "sha512-/2QStrLatWqZuSGvGhosemz4kt3dg95Zo5TAvE2AV+GOod1Qyuqzbz70/5CAifuAOPTtK/ihXMCj5xwlMA5SVw=="
},
"@walmart/schedule-mini-app": {
- "version": "0.2.55",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.55.tgz",
- "integrity": "sha512-1P6QTOu5bPE40VabpvsC4FFIX+YdbKP7QU8A+2gZTYbhzkLh8qwk57ZRC9io/9kh5Qyhf4PK3kFEI+z0JUR/Yg==",
+ "version": "0.2.56",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.56.tgz",
+ "integrity": "sha512-cnuUNBRRdmjft/xl1yCT6HN9vifjZSyvekh5rMM4HKb8DJAKf6DAm0Ckb+1AlHhGwvTs1zvJwh/Ars9cd11Tmw==",
"requires": {
"@walmart/moment-walmart": "^1.0.4",
- "@walmart/wfm-ui": "0.1.39",
+ "@walmart/wfm-ui": "0.1.40",
"crypto-js": "^3.3.0",
"react-native-tab-view": "^2.15.2",
"reselect": "^4.0.0",
- "wfm-allspark-data-library": "0.0.14"
+ "wfm-allspark-data-library": "0.0.16"
},
"dependencies": {
"moment": {
@@ -3164,11 +3164,12 @@
"integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg=="
},
"wfm-allspark-data-library": {
- "version": "0.0.14",
- "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.14.tgz",
- "integrity": "sha512-mQN8Uz+r5EbP1FDB2LQZYBFu7RbL41McEtcmfy/U8jUvpPd1hinMe+Pn+c2Jc2sDb1RNp4O8LNcHiRT2zXslyw==",
+ "version": "0.0.16",
+ "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.16.tgz",
+ "integrity": "sha512-MpvKZui1fZLqEDoVXbU/agCahtPpLeR9mOGGKtoBMOV6673cxdoGV+QBnyZX5JRR7v/kBkZTgCISwRyXWKQLTQ==",
"requires": {
"azure-storage": "2.10.3",
+ "crypto-js": "^3.3.0",
"moment": "2.24.0",
"url": "^0.11.0"
}
@@ -3215,9 +3216,9 @@
"integrity": "sha512-XkfZJYjio/KFzOrjIMNgTqn6N9Nhf5EEZBKXcPU5DIjNUmSMDJqnpbbBr6+6mz4wZqPRZvXmfRdwK8d5prHFeA=="
},
"@walmart/wfm-ui": {
- "version": "0.1.39",
- "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.1.39.tgz",
- "integrity": "sha512-mCP/QFTIvDQfXtR3vGtCip4ifGvIFofN8yRuXu46ExA0++vhVHJlUdxYzLuqSYoxpLm4xxU4Z/3r3J2GOP29xw==",
+ "version": "0.1.40",
+ "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.1.40.tgz",
+ "integrity": "sha512-UTMtmCUeRE6KlGsMli5s/EUENvEK+ElSOhdVrw0DwhUA2cdSpXvWuRKCoCfsyuhPI3UvCFhFrEsAncU2RFVC9g==",
"requires": {
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/moment-walmart": "1.0.3",
--- package.json
@@ -62,7 +62,7 @@
"@walmart/react-native-logger": "^1.18.0",
"@walmart/react-native-shared-navigation": "^0.3.0",
"@walmart/redux-store": "^1.0.11",
- "@walmart/schedule-mini-app": "0.2.55",
+ "@walmart/schedule-mini-app": "0.2.56",
"@walmart/settings-mini-app": "1.1.14",
"@walmart/time-clock-mini-app": "0.1.25",
"@walmart/ui-components": "1.0.94",
| Bump schedule-mini-app (#309) | Bump schedule-mini-app (#309)
Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com> |
b6e9153b3c2beea85c24b137dfc2df7a7d38e6b0 | --- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/AssociateHallwayNavTest.tsx.snap
@@ -2,7 +2,6 @@
exports[`DrawerNav matches default snapshot for initial render 1`] = `
<RenderGuard
- onUnmount={[Function]}
preRender={[Function]}
>
<ActivityMonitor
@@ -57,7 +56,6 @@ exports[`DrawerNav matches default snapshot for initial render 1`] = `
exports[`DrawerNav matches snapshot after initial render 1`] = `
<RenderGuard
- onUnmount={[Function]}
preRender={[Function]}
>
<ActivityMonitor
--- core/__tests__/navigation/__snapshots__/RootStackTest.tsx.snap
@@ -2,7 +2,6 @@
exports[`RootNav matches snapshot when app accessible 1`] = `
<RenderGuard
- onUnmount={[Function]}
preRender={[Function]}
>
<Navigator
@@ -199,7 +198,6 @@ exports[`RootNav matches snapshot when app accessible 1`] = `
exports[`RootNav matches snapshot when app not accessible 1`] = `
<RenderGuard
- onUnmount={[Function]}
preRender={[Function]}
>
<Navigator
| Fixed tests | Fixed tests
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.