commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
2c412ccac86c1b56a37697f9a720e794f0075bc1 | --- core/__tests__/permissions/PermissionsSagaTest.ts
@@ -3,7 +3,6 @@ import {call, select, fork, take, cancel, put} from 'redux-saga/effects';
import {createMockTask} from '@redux-saga/testing-utils';
import {
- AllsparkPermissionClient,
PermissionActionTypes,
} from '@walmart/allspark-foundation/Permissions';
import {NotificationSelectors} from '@walmart/allspark-foundation/Notification';
@@ -20,7 +19,6 @@ import {
PERMISSION_LOCATION_SCREEN,
PERMISSION_NOTIFICATION_SCREEN,
PERMISSION_WELCOME_SCREEN,
- PLATFORM_LOCATION_PERMISSION,
} from '../../src/permissions/constants';
import {
PERMISSIONS_COMPLETE,
@@ -127,41 +125,25 @@ describe('permissions sagas', () => {
});
describe('getPermissionsUnset', () => {
- it('returns true if notificationsUnset is true', () => {
+ it('returns locationUnset if locationUnset is true', () => {
const generator = getPermissionsUnset();
- expect(generator.next().value).toEqual(expect.objectContaining({
- type: 'SELECT',
- payload: expect.objectContaining({
- args: [],
- selector: expect.any(Function),
- }),
- }));
- expect(generator.next(false).value).toEqual(expect.objectContaining({
- type: 'SELECT',
- payload: expect.objectContaining({
- args: [],
- selector: expect.any(Function),
- }),
- }));
+ expect(generator.next(true).value).toEqual(
+ select(getLocationUnset),
+ );
+ expect(generator.next(true).value).toEqual(
+ select(NotificationSelectors.getPermissionUnset),
+ );
expect(generator.next(true).done).toBeTruthy();
});
- it('returns false if both are false', () => {
+ it('returns notificationsUnset if locationUnset is undefined', () => {
const generator = getPermissionsUnset();
- expect(generator.next().value).toEqual(expect.objectContaining({
- type: 'SELECT',
- payload: expect.objectContaining({
- args: [],
- selector: expect.any(Function),
- }),
- }));
- expect(generator.next(false).value).toEqual(expect.objectContaining({
- type: 'SELECT',
- payload: expect.objectContaining({
- args: [],
- selector: expect.any(Function),
- }),
- }));
- expect(generator.next().done).toBeTruthy();
+ expect(generator.next().value).toEqual(
+ select(getLocationUnset),
+ );
+ expect(generator.next().value).toEqual(
+ select(NotificationSelectors.getPermissionUnset),
+ );
+ expect(generator.next(true).done).toBeTruthy();
});
});
\ No newline at end of file
| cover test cases for getPermissionsUnset | cover test cases for getPermissionsUnset
|
1c7233dfcf25e67d251bf3d03eff0b31c8f52fe3 | --- src/index.tsx
@@ -20,7 +20,6 @@ export const LOGGER_FIELDS = {id: 'roster-mini-app'};
reducerManager.addReducer('roster', rosterSlice.reducer);
-// TODO: This needs to be reconsidered when we go production
export const initialize = async (debugToken: string) => {
const rnfbProvider = firebase
.appCheck()
| remove old todo | remove old todo
|
2a03a3f894ea9ba007bef017b4794fe6a8635766 | --- package.json
@@ -140,7 +140,7 @@
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.8.0",
"@walmart/react-native-webex-sdk": "0.8.50",
- "@walmart/receipt-check-miniapp": "1.31.0",
+ "@walmart/receipt-check-miniapp": "1.32.4",
"@walmart/redux-store": "~6.3.28",
"@walmart/returns-mini-app": "4.17.4",
"@walmart/rfid-scan-mini-app": "2.10.4",
--- yarn.lock
@@ -7648,7 +7648,7 @@ __metadata:
"@walmart/react-native-store-map": "npm:0.3.7"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
"@walmart/react-native-webex-sdk": "npm:0.8.50"
- "@walmart/receipt-check-miniapp": "npm:1.31.0"
+ "@walmart/receipt-check-miniapp": "npm:1.32.4"
"@walmart/redux-store": "npm:~6.3.28"
"@walmart/returns-mini-app": "npm:4.17.4"
"@walmart/rfid-scan-mini-app": "npm:2.10.4"
@@ -8192,19 +8192,18 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/receipt-check-miniapp@npm:1.31.0":
- version: 1.31.0
- resolution: "@walmart/receipt-check-miniapp@npm:1.31.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freceipt-check-miniapp%2F-%2F%40walmart%2Freceipt-check-miniapp-1.31.0.tgz"
+"@walmart/receipt-check-miniapp@npm:1.32.4":
+ version: 1.32.4
+ resolution: "@walmart/receipt-check-miniapp@npm:1.32.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freceipt-check-miniapp%2F-%2F%40walmart%2Freceipt-check-miniapp-1.32.4.tgz"
dependencies:
"@walmart/tcnumber": "npm:^2.3.3"
"@xstate/react": "npm:^3.0.1"
cpc-input: "npm:^1.7.28"
- dayjs: "npm:^1.11.1"
uuid: "npm:^3.3.2"
xstate: "npm:^4.32.1"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/01c84e8af54b2cb5e663d76ada9641cfd6003c8fe014cd8d953bf9d37d52be041c7005c2bfe5ab62642cc0504299c95f48ebdb566f1e7e5b0759bc0a998ff318
+ checksum: 10c0/620b5c5b795da33fea92594d5b42be06e005334434dde88fd6d459b86c7a726d02d81a6612e88a2e0455f178243c4fd9425a53c7fd70821ddf6ea47d7f177039
languageName: node
linkType: hard
@@ -11273,7 +11272,7 @@ __metadata:
languageName: node
linkType: hard
-"dayjs@npm:^1.11.1, dayjs@npm:^1.11.13, dayjs@npm:^1.11.5":
+"dayjs@npm:^1.11.13, dayjs@npm:^1.11.5":
version: 1.11.13
resolution: "dayjs@npm:1.11.13::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fdayjs%2F-%2Fdayjs-1.11.13.tgz"
checksum: 10c0/a3caf6ac8363c7dade9d1ee797848ddcf25c1ace68d9fe8678ecf8ba0675825430de5d793672ec87b24a69bf04a1544b176547b2539982275d5542a7955f35b7
| feat(receipt-check-miniapp): FLB-2731 Drop 32 changes (#4409) | feat(receipt-check-miniapp): FLB-2731 Drop 32 changes (#4409)
* feat(receipt-check-miniapp): FLB-2731 Drop 32 changes
* fix(receipt-check-miniapp): FLB-2867 version bump 1.32.2
* fix(receipt-check-miniapp): FLB-2863 version bump 1.32.4
---------
Co-authored-by: f0w02so <f0w02s0@homeoffice.wal-mart.com>
Co-authored-by: Teddy Ngo <teddy.ngo@walmart.com>
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
6f2a791600d741cdc9618b25519f071a4240f82b | --- package-lock.json
@@ -64,7 +64,7 @@
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
"@walmart/metrics-mini-app": "0.15.14",
- "@walmart/mod-flex-mini-app": "1.13.1",
+ "@walmart/mod-flex-mini-app": "1.13.2",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.10.15",
@@ -8757,9 +8757,9 @@
"license": "MIT"
},
"node_modules/@walmart/mod-flex-mini-app": {
- "version": "1.13.1",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.1.tgz",
- "integrity": "sha512-a5JN/96JNi1BLy7Gk9svRdVf8+0A7YQXjiL/nu8PsmV5DwEAqU+QwwrM7+P5J3WOlbVuV3v6SlhKwHXJElwbjA==",
+ "version": "1.13.2",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.2.tgz",
+ "integrity": "sha512-02dinY8mOhS86V7cu+hIts6ffjr+bkibFuaEiU8QzoPQrrDatruMn2MhZeUckpQZxg0t7SeA5Gom8P8eYI1Qfg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.19.0",
@@ -8770,8 +8770,8 @@
"@react-navigation/stack": "^6.1.0",
"@walmart/core-services-allspark": "^1.3.1",
"@walmart/functional-components": "^2.0.2",
- "@walmart/gtp-shared-components": "^2.0.4",
- "@walmart/ims-print-services-ui": "^2.5.5",
+ "@walmart/gtp-shared-components": "^2.1.3",
+ "@walmart/ims-print-services-ui": "^2.7.1",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.31.0-rc.0",
"@walmart/react-native-scanner-3.0": "^0.1.30-rc.1",
@@ -34412,9 +34412,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.13.1",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.1.tgz",
- "integrity": "sha512-a5JN/96JNi1BLy7Gk9svRdVf8+0A7YQXjiL/nu8PsmV5DwEAqU+QwwrM7+P5J3WOlbVuV3v6SlhKwHXJElwbjA=="
+ "version": "1.13.2",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.2.tgz",
+ "integrity": "sha512-02dinY8mOhS86V7cu+hIts6ffjr+bkibFuaEiU8QzoPQrrDatruMn2MhZeUckpQZxg0t7SeA5Gom8P8eYI1Qfg=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
--- package.json
@@ -105,7 +105,7 @@
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
"@walmart/metrics-mini-app": "0.15.14",
- "@walmart/mod-flex-mini-app": "1.13.1",
+ "@walmart/mod-flex-mini-app": "1.13.2",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.10.15",
| Updated to modflex v1.13.2 | Updated to modflex v1.13.2
|
66476b0cfe3b61229509e91bfaa55705c549e814 | --- env.teflon.js
@@ -39,14 +39,13 @@ export default {
clientAuthMethod: 'post',
},
athena: {
- url: 'https://athena-gateway.sstage.us.walmart.net/',
- // url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1',
+ // url: 'https://athena-gateway.sstage.us.walmart.net/',
+ url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1',
headers: {
'WM_SVC.NAME': 'ATHENA-GATEWAY',
'WM_SVC.ENV': 'stage',
- REQUEST_SOURCE: 'API_PROXY',
},
- persistedQueries: false,
+ persistedQueries: true,
},
logLevel: 'debug',
internalTestUrl:
--- package-lock.json
@@ -58,7 +58,7 @@
"@walmart/inbox-mini-app": "0.86.1",
"@walmart/iteminfo-mini-app": "7.4.0",
"@walmart/manager-approvals-miniapp": "0.2.4",
- "@walmart/me-field-mini-app": "13.0.2",
+ "@walmart/me-field-mini-app": "13.0.3",
"@walmart/metrics-mini-app": "0.13.11",
"@walmart/mod-flex-mini-app": "1.10.4",
"@walmart/moment-walmart": "1.0.4",
@@ -5480,9 +5480,9 @@
}
},
"node_modules/@walmart/me-field-mini-app": {
- "version": "13.0.2",
- "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-13.0.2.tgz",
- "integrity": "sha512-KJveK5175gsZkXkYr9BoKKs6Y/+Itc9C9W1C+m90eUbT+5g3sGe0D2ruzhJAhuNvSxIAh1hm0LL/lHsbsNovpA==",
+ "version": "13.0.3",
+ "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-13.0.3.tgz",
+ "integrity": "sha512-JvV5AUWQ51uTUyD3LNk0UD8W5nQjUTRnMdJMvh2x3OHmKAhqTGctHoKjcpBzrtZlBie6e6Az3CUWtPrcA2TZwA==",
"hasInstallScript": true,
"peerDependencies": {
"@atmt/feedback-component-native": "^8.0.0",
@@ -25370,9 +25370,9 @@
}
},
"@walmart/me-field-mini-app": {
- "version": "13.0.2",
- "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-13.0.2.tgz",
- "integrity": "sha512-KJveK5175gsZkXkYr9BoKKs6Y/+Itc9C9W1C+m90eUbT+5g3sGe0D2ruzhJAhuNvSxIAh1hm0LL/lHsbsNovpA=="
+ "version": "13.0.3",
+ "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-13.0.3.tgz",
+ "integrity": "sha512-JvV5AUWQ51uTUyD3LNk0UD8W5nQjUTRnMdJMvh2x3OHmKAhqTGctHoKjcpBzrtZlBie6e6Az3CUWtPrcA2TZwA=="
},
"@walmart/metrics-mini-app": {
"version": "0.13.11",
--- package.json
@@ -100,7 +100,7 @@
"@walmart/inbox-mini-app": "0.86.1",
"@walmart/iteminfo-mini-app": "7.4.0",
"@walmart/manager-approvals-miniapp": "0.2.4",
- "@walmart/me-field-mini-app": "13.0.2",
+ "@walmart/me-field-mini-app": "13.0.3",
"@walmart/metrics-mini-app": "0.13.11",
"@walmart/mod-flex-mini-app": "1.10.4",
"@walmart/moment-walmart": "1.0.4",
| feat: :arrow_up: Update learning mini app version to 13.0.3 | feat: :arrow_up: Update learning mini app version to 13.0.3
|
5c2c78fb5d213c56c45be58e2636497819ed20a5 | --- packages/me-at-walmart-container/src/services/site/fetchSiteInfo.ts
@@ -26,25 +26,25 @@ export const fetchSiteInfo = async (
},
);
if (status === 200) {
- MeAtWalmartLoggerService.getContainerInstance().debug(
+ MeAtWalmartLoggerService.getContainerInstance().info(
'Successfully fetched store configs from bff.',
{
- storeNumber,
+ siteId: storeNumber,
},
);
return data;
}
- MeAtWalmartLoggerService.getContainerInstance().warn(
+ MeAtWalmartLoggerService.getContainerInstance().info(
'No configs exist for this store in bff.',
{
- storeNumber,
+ siteId: storeNumber,
},
);
} catch (e) {
MeAtWalmartLoggerService.getContainerInstance().error(
'Unable to fetch store configs from bff.',
{
- storeNumber,
+ siteId: storeNumber,
message: (e as Error).message,
},
);
--- packages/me-at-walmart-container/src/services/site/querySiteInfo.ts
@@ -63,10 +63,10 @@ export const querySiteInfo = async (
ttl: 1000 * 60 * 60 * 24 * 7, // 1 week
},
);
- MeAtWalmartLoggerService.getContainerInstance().debug(
+ MeAtWalmartLoggerService.getContainerInstance().info(
'Successfully fetched store configs from athena.',
{
- site,
+ siteId: site,
},
);
@@ -76,7 +76,7 @@ export const querySiteInfo = async (
'Failed to fetch store configs from athena',
{
message: (error as Error).message,
- site,
+ siteId: site,
countryCode,
},
);
| fix(fetchsiteinfo and querysiteinfo): ALLSPARK-4182 changing to info log (#4054) | fix(fetchsiteinfo and querysiteinfo): ALLSPARK-4182 changing to info log (#4054)
* fix(fetchsiteinfo and querysiteinfo): ALLSPARK-4182 changing to info log
* fix(fetchsiteinfo and querysiteinfo): ALLSPARK-4182 change logs: siteid |
ade19e22983c7200097f4baebd742d328ec574a5 | --- src/components/RosterHeader.tsx
@@ -5,7 +5,7 @@ import {goToWeeklySchedule} from '../navigation/utils';
import {ROSTER_I18N_NAMESPACE} from '../translations';
import {useTranslation} from 'react-i18next';
import {useRbacConfigWithJobCode, useSiteTranslationContext} from '../hooks';
-import { Associate } from '../types';
+import {Associate} from '../types';
const styles = StyleSheet.create({
rosterHeader: {
| Update the types | Update the types
|
11a107a4e9b141eb3a902c0b19660368ef3c8259 | --- __tests__/banners/BannersTest.tsx
@@ -1,12 +1,26 @@
import React from 'react';
import {create} from 'react-test-renderer';
-import {all, call, takeLatest} from 'redux-saga/effects';
+import {all, call, select, takeLatest} from 'redux-saga/effects';
-import {NetworkActionTypes} from '@walmart/allspark-foundation/Network';
-import {UserActionTypes} from '@walmart/allspark-foundation/User';
+import {
+ NetworkActionTypes,
+ NetworkSelectors,
+} from '@walmart/allspark-foundation/Network';
+import {
+ UserActionTypes,
+ UserSelectors,
+} from '@walmart/allspark-foundation/User';
-import {Banners, bannerSagas, updateNetworkBanners} from '../../src/banners';
+import {
+ Banners,
+ bannerSagas,
+ updateChangeStoreBanner,
+ updateNetworkBanners,
+} from '../../src/banners';
import {SettingsActionTypes} from '../../src/settings/redux';
+import {SiteSelectors} from '@walmart/allspark-foundation/Site';
+import {AllsparkBanners} from '@walmart/allspark-foundation/Components';
+import {getChangeStoreBannerEnabled} from '../../src/banners/selectors.ts';
test('Banners', () => {
const component = create(<Banners />);
@@ -29,3 +43,39 @@ test('bannerSagas', () => {
]),
);
});
+
+describe('updateChangeStoreBanner', () => {
+ it('works when changeStore is disabled', () => {
+ const iterator = updateChangeStoreBanner();
+ expect(iterator.next().value).toEqual(select(getChangeStoreBannerEnabled));
+ expect(iterator.next(false).done).toEqual(true);
+ });
+ it('works when changeStore is enabled and there is site mismatch', () => {
+ const iterator = updateChangeStoreBanner();
+ expect(iterator.next().value).toEqual(select(getChangeStoreBannerEnabled));
+ expect(iterator.next(true).value).toEqual(
+ select(UserSelectors.getWorkingSite),
+ );
+ expect(iterator.next('100').value).toEqual(
+ select(NetworkSelectors.getNetworkWifiSiteId),
+ );
+ expect(iterator.next('1').value).toEqual(
+ select(SiteSelectors.getWorkingSiteIsStore),
+ );
+ expect(iterator.next(false).done).toEqual(true);
+ expect(AllsparkBanners.add).toHaveBeenCalled();
+ expect(AllsparkBanners.remove).not.toHaveBeenCalled();
+ });
+ it('removes banner if there is mismatch', () => {
+ const iterator = updateChangeStoreBanner();
+ expect(iterator.next().value).toEqual(select(getChangeStoreBannerEnabled));
+ expect(iterator.next(true).value).toEqual(
+ select(UserSelectors.getWorkingSite),
+ );
+ expect(iterator.next('100').value).toEqual(
+ select(NetworkSelectors.getNetworkWifiSiteId),
+ );
+ expect(iterator.next('100').done).toEqual(true);
+ expect(AllsparkBanners.remove).toHaveBeenCalled();
+ });
+});
--- src/banners/index.tsx
@@ -16,6 +16,7 @@ import {AllsparkTranslationClient} from '@walmart/allspark-foundation/Translatio
import {
UserActionCreators,
UserActionTypes,
+ UserSelectors,
} from '@walmart/allspark-foundation/User';
import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux';
@@ -33,7 +34,7 @@ export function* updateChangeStoreBanner() {
const changeStoreBannerEnabled = yield* select(getChangeStoreBannerEnabled);
if (changeStoreBannerEnabled) {
- const workingSiteId = yield* select(SiteSelectors.getWorkingSiteSiteId);
+ const workingSiteId = yield* select(UserSelectors.getWorkingSite);
const wifiSiteId = yield* select(NetworkSelectors.getNetworkWifiSiteId);
const mismatch = !!wifiSiteId && wifiSiteId !== workingSiteId?.toString();
@@ -59,6 +60,8 @@ export function* updateChangeStoreBanner() {
},
},
});
+ } else {
+ AllsparkBanners.remove('changeStore');
}
}
}
| update banner to be removed | update banner to be removed
|
c619ca4af26d22a4c002a353cc36332b40b6c3d5 | --- src/redux/selectors.ts
@@ -24,11 +24,11 @@ export const getGlobalState = (state: GlobalState) => {
};
export const getRbacState = createSelector([getGlobalState], (state) => {
- if (state?.rbac?.error) {
- logger.error('getRbacState error', {
- message: 'error in fetching Rbac State',
- });
- }
+ // if (state?.rbac?.error) {
+ // logger.error('getRbacState error', {
+ // message: 'error in fetching Rbac State',
+ // });
+ // }
return state?.rbac;
});
| fix(ui): update the selector error | fix(ui): update the selector error
|
8ebb87379eb759106f7990efdbf1f4bc8ce24c73 | --- package-lock.json
@@ -1937,9 +1937,9 @@
"integrity": "sha512-Pe55V+hzs8Z1aqVW3BNuHKpC92fViArzNHp754Y2ZKINFPv6pXTlxkEDNw5x4qQ1m9qBsQyS8LpBPGOllAlnEg=="
},
"@walmart/feedback-all-spark-miniapp": {
- "version": "0.0.29",
- "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.29.tgz",
- "integrity": "sha512-AhmCucaFw5mLIqZPF0766OpNutaLJa5SXyfPxDTX7J2x8MxYsd0G/lgKFL/41XKEmzvnYqILub3qTfJkBSTwAg=="
+ "version": "0.0.30",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.30.tgz",
+ "integrity": "sha512-mvICrEFNX9ne4iMiOo7AkLUGK4wTteyPH8zm9T0zlOlIukgoRu/8bXHUJbknT84+k2uE+MK8sBn7kMii6jCdjQ=="
},
"@walmart/functional-components": {
"version": "1.0.22",
--- package.json
@@ -46,7 +46,7 @@
"@walmart/allspark-me-mini-app": "0.0.13",
"@walmart/ask-sam-mini-app": "0.6.27",
"@walmart/config-components": "1.0.8",
- "@walmart/feedback-all-spark-miniapp": "0.0.29",
+ "@walmart/feedback-all-spark-miniapp": "0.0.30",
"@walmart/functional-components": "^1.0.22",
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/inbox-mini-app": "0.0.20",
| Bumped version of feedback miniapp with some more VQA fixes (#188) | Bumped version of feedback miniapp with some more VQA fixes (#188)
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
4d5ec43961a868afe998f6057ca184868f6aba56 | --- targets/US/ios/Podfile.lock
@@ -2252,7 +2252,7 @@ PODS:
- FirebaseMessaging (<= 10.18.0)
- StructuredLogAssistantIOS (= 0.0.7)
- TOCropViewController (2.7.4)
- - topstock-mini-app (1.17.8):
+ - topstock-mini-app (1.17.11):
- React
- VisionCamera (3.7.1):
- React
--- targets/US/package.json
@@ -149,7 +149,7 @@
"@walmart/store-feature-orders": "1.27.1",
"@walmart/taskit-mini-app": "4.17.17",
"@walmart/time-clock-mini-app": "2.419.0",
- "@walmart/topstock-mini-app": "1.17.8",
+ "@walmart/topstock-mini-app": "1.17.11",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch",
"@walmart/walmart-fiscal-week": "^0.3.6",
"@walmart/welcomeme-mini-app": "0.96.0",
| updated topstock version to 1.17.11 | updated topstock version to 1.17.11
|
38904b69c991905e1359af9b4fc80fa27b1e6a60 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList.tsx
@@ -7,7 +7,8 @@ import { HubHeader } from '../../../Store';
import { useAllsparkTranslation } from '@walmart/allspark-foundation';
import { FEATURE_ID } from '../../../Store/constant';
import { colors } from '@walmart/gtp-shared-components/dist';
-import { Alert } from '@walmart/gtp-shared-components/dist';
+// import { Alert } from '@walmart/gtp-shared-components/dist';
+import { AlertBanner } from '../../../Shared/Components/AlertBanner';
export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({
filterListData,
@@ -23,14 +24,17 @@ export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({
textColor={colors.black}
noPadding
/>
- {!filterListData && (
- <Alert
- variant='error'
- children={t('shiftFilter.mandatoryShiftError')}
- testID='mandatory-shift-error'
- UNSAFE_style={styles.alert}
- />
- )}
+ {/* {!filterListData && ( */}
+ <View style={styles.alert}>
+ <AlertBanner label={t('shiftFilter.mandatoryShiftError')} />
+ </View>
+ {/* <Alert
+ variant='error'
+ children={t('shiftFilter.mandatoryShiftError')}
+ testID='mandatory-shift-error'
+ UNSAFE_style={styles.alert}
+ /> */}
+ {/* )} */}
<View style={styles.container}>
{filterListData?.map(
(item) =>
| Adding shared alert component | Adding shared alert component
|
bf82c9dfc3e528660383bb4a4d51239f16554da1 | --- src/screens/RosterScreen.tsx
@@ -108,7 +108,6 @@ export const RosterScreen: React.FC<Props> = ({navigation}) => {
setAssociates(tempAssociatesMock);
}, []);
-
useEffect(() => {
firestore()
.collection('user_status')
--- src/screens/RosterScreen.tsx
@@ -108,7 +108,6 @@ export const RosterScreen: React.FC<Props> = ({navigation}) => {
setAssociates(tempAssociatesMock);
}, []);
-
useEffect(() => {
firestore()
.collection('user_status')
| fix lint issues | fix lint issues
|
63b49065a4e4c5d659e46c5bacaca5b95b9a27b2 | --- package-lock.json
@@ -44,7 +44,7 @@
"@walmart/core-widget-registry": "~0.7.2",
"@walmart/counts-component-miniapp": "0.1.2",
"@walmart/emergency-mini-app": "1.19.0",
- "@walmart/exception-mini-app": "1.0.16",
+ "@walmart/exception-mini-app": "1.1.11",
"@walmart/facilities-management-miniapp": "0.5.42",
"@walmart/feedback-all-spark-miniapp": "0.9.10",
"@walmart/financial-wellbeing-feature-app": "1.3.1",
@@ -80,7 +80,7 @@
"@walmart/settings-mini-app": "1.12.0",
"@walmart/shelfavailability-mini-app": "1.5.11",
"@walmart/taskit-mini-app": "0.49.12",
- "@walmart/time-clock-mini-app": "2.33.0",
+ "@walmart/time-clock-mini-app": "2.34.0",
"@walmart/ui-components": "1.10.0",
"@walmart/welcomeme-mini-app": "0.76.0",
"@walmart/wfm-ui": "0.2.26",
@@ -5082,13 +5082,13 @@
}
},
"node_modules/@walmart/exception-mini-app": {
- "version": "1.0.16",
- "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.16.tgz",
- "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==",
+ "version": "1.1.11",
+ "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.1.11.tgz",
+ "integrity": "sha512-CITFyfYCPmV/TnNjgSByxeDKApXal8QCd86bf5vjHAk6pZvx7A8VVsxGG0F/wXSH96HtEW9YKE31Jgjmn3SUDw==",
"peerDependencies": {
"@walmart/functional-components": ">=2.0.6",
- "@walmart/gtp-shared-components": "^2.0.2",
- "@walmart/ims-print-services-ui": "1.2.0",
+ "@walmart/gtp-shared-components": "2.0.2",
+ "@walmart/ims-print-services-ui": "2.0.6",
"@walmart/react-native-logger": ">=1.31.0-rc.0",
"@walmart/redux-store": ">=3.1.3",
"@walmart/ui-components": ">=1.6.0",
@@ -6132,9 +6132,9 @@
}
},
"node_modules/@walmart/time-clock-mini-app": {
- "version": "2.33.0",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.33.0.tgz",
- "integrity": "sha512-DrcEqUnBQ+nTR7u8Ad5OrXsPJDKmpifQG81d68cdTC64004xk1a0JNb97zw0c9I7/e058RlV+4rq4mLWF94RUA==",
+ "version": "2.34.0",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.34.0.tgz",
+ "integrity": "sha512-Zq7trIoKe4yB2kbVncoN35puf78gnyvgy1WuVmydLeSihMCN3HRFy4xwT8Up6jylBA9EReCc08QDFl2E+pg7Kw==",
"hasInstallScript": true,
"license": "UNLICENSED",
"dependencies": {
@@ -25509,9 +25509,9 @@
}
},
"@walmart/exception-mini-app": {
- "version": "1.0.16",
- "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.16.tgz",
- "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ=="
+ "version": "1.1.11",
+ "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.1.11.tgz",
+ "integrity": "sha512-CITFyfYCPmV/TnNjgSByxeDKApXal8QCd86bf5vjHAk6pZvx7A8VVsxGG0F/wXSH96HtEW9YKE31Jgjmn3SUDw=="
},
"@walmart/facilities-management-miniapp": {
"version": "0.5.42",
@@ -25813,9 +25813,9 @@
}
},
"@walmart/time-clock-mini-app": {
- "version": "2.33.0",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.33.0.tgz",
- "integrity": "sha512-DrcEqUnBQ+nTR7u8Ad5OrXsPJDKmpifQG81d68cdTC64004xk1a0JNb97zw0c9I7/e058RlV+4rq4mLWF94RUA==",
+ "version": "2.34.0",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.34.0.tgz",
+ "integrity": "sha512-Zq7trIoKe4yB2kbVncoN35puf78gnyvgy1WuVmydLeSihMCN3HRFy4xwT8Up6jylBA9EReCc08QDFl2E+pg7Kw==",
"requires": {
"@react-navigation/elements": "^1.3.1",
"moment-timezone": "0.5.33",
--- package.json
@@ -86,7 +86,7 @@
"@walmart/core-widget-registry": "~0.7.2",
"@walmart/counts-component-miniapp": "0.1.2",
"@walmart/emergency-mini-app": "1.19.0",
- "@walmart/exception-mini-app": "1.0.16",
+ "@walmart/exception-mini-app": "1.1.11",
"@walmart/facilities-management-miniapp": "0.5.42",
"@walmart/feedback-all-spark-miniapp": "0.9.10",
"@walmart/financial-wellbeing-feature-app": "1.3.1",
| reinstalling pinpoint 1.1.11 | reinstalling pinpoint 1.1.11
|
2f8d0d6a8cee22a2c2e45b3e597fdbbd3b1052c2 | --- __tests__/auth/LoginErrorScreen/indexTest.tsx
@@ -250,7 +250,7 @@ describe('ErrorScreen', () => {
});
});
- it('navigates to 2sv', () => {
+ it('navigates to 2sv screen', () => {
(useTranslation as jest.Mock).mockReturnValueOnce([
(translate) => {
const t = {'ssoError.other': 'Otro'};
| Update __tests__/auth/LoginErrorScreen/indexTest.tsx | Update __tests__/auth/LoginErrorScreen/indexTest.tsx |
e5f870c0585049c63bdc545df0085704f1e001b9 | --- .husky/pre-push
@@ -1 +1 @@
-npm run test:build
+npm run test && npm run build
--- .looper.yml
@@ -77,4 +77,4 @@ flows:
publishFromGit:
- call: preparePublish
- - (name Publish from Git) HUSKY=0 npm run publish from-git --yes
+ - (name Publish from Git) HUSKY=0 npm lerna publish from-git --yes
| chore: looper fixes | chore: looper fixes
|
78b0b81dbd80b402ef08da878bc7946b02aa6d89 | --- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,24 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# 1.4.0-alpha.12 (2025-08-26)
+
+# 1.4.0-alpha.9 (2025-08-25)
+
+### Features
+
+- **ui:** remove unused files ([ed92f5e](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/ed92f5ee2c2fff7001880b13e8e878572a4008ef))
+- **ui:** update associate exp hub version ([b710ee2](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/b710ee2fbde47b09de83c2c6bdc8dc0bc591a3fe))
+- **ui:** update associate exp hub version ([ca7f4f1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/ca7f4f16af82ce158675a886a40e93261b6df764))
+- **ui:** update associate exp hub version ([9154acb](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/9154acb0c827ce81aaff2f692348681010e369ea))
+- **ui:** update associate exp hub version ([a70ca55](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/a70ca55f58ef2b7dbfd690a10e6fb5ec34043502))
+- **ui:** update folder structure to match the feature template ([23d048d](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/23d048dc98e2b45fa1de3fc38101ea96728ef468))
+- **ui:** update folder structure to match the feature template ([b5e187c](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/b5e187c1954b8e2a38cf9b0f274cbfe6fccd039f))
+- **ui:** update logs ([bfdaa3b](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/bfdaa3baa6b22c3dc44bb1b80482fc1facfb5c3a))
+- **ui:** update logs ([fb26cba](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/fb26cbade479e81b427041a5a4606a1370a797e1))
+- **ui:** update tests ([b168474](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/b16847426cb1c9ef87eea29cc6e0f2e00c42d5ad))
+- **ui:** update tests ([1f52a87](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/1f52a87bb35ec0694c732175d3c3ddc54342b661))
+
# [1.4.0-alpha.9](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/v1.4.0...v1.4.0-alpha.9) (2025-08-25)
### Features
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.4.0-alpha.11",
+ "version": "1.4.0-alpha.12",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
| chore(version): updating package version | chore(version): updating package version
- @walmart/associate-exp-hub-mini-app@1.4.0-alpha.12
|
093f80751c3537568274d38253555b42a81ee072 | --- package-lock.json
@@ -46,7 +46,7 @@
"@walmart/counts-component-miniapp": "0.0.42",
"@walmart/emergency-mini-app": "1.17.0",
"@walmart/exception-mini-app": "1.0.14",
- "@walmart/facilities-management-miniapp": "0.5.12",
+ "@walmart/facilities-management-miniapp": "0.5.14",
"@walmart/feedback-all-spark-miniapp": "0.9.9",
"@walmart/financial-wellbeing-feature-app": "1.0.64",
"@walmart/functional-components": "2.0.6",
@@ -5082,9 +5082,9 @@
}
},
"node_modules/@walmart/facilities-management-miniapp": {
- "version": "0.5.12",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.12.tgz",
- "integrity": "sha512-LLC5ov44PZHwcp0p0vjmkMFJwI0Xjf6rpzeAcK9lN3HnK5ejr3CXNaTCdWuZYcf+l1j2vufbT9XYgwApNklx0A==",
+ "version": "0.5.14",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.14.tgz",
+ "integrity": "sha512-YPMwvUKJSDF/3j/9KCnOqnCB+kvJQSSnLUIahnOWB0RkJRPOZbO/7BdRibtK3OzDCLi/+IUGXrXhu072QLyv7A==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-community/async-storage": "^1.12.1",
@@ -5109,7 +5109,7 @@
"@walmart/core-services-allspark": "~1.10.11",
"@walmart/core-utils": "~1.3.0",
"@walmart/functional-components": "2.0.6",
- "@walmart/gtp-shared-components": "^2.0.0",
+ "@walmart/gtp-shared-components": "2.0.2",
"@walmart/impersonation-mini-app": "1.2.0",
"@walmart/moment-walmart": "1.0.4",
"@walmart/react-native-encrypted-storage": "1.1.3",
@@ -25164,9 +25164,9 @@
"integrity": "sha512-SaexB86EUhjf0oQiOc3RbsEMz9TsSM3av62l46CVznEOOVGmdcrm3naA37GxXSX5LeD0Brft2bWJ5xJbRkqwKg=="
},
"@walmart/facilities-management-miniapp": {
- "version": "0.5.12",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.12.tgz",
- "integrity": "sha512-LLC5ov44PZHwcp0p0vjmkMFJwI0Xjf6rpzeAcK9lN3HnK5ejr3CXNaTCdWuZYcf+l1j2vufbT9XYgwApNklx0A=="
+ "version": "0.5.14",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.14.tgz",
+ "integrity": "sha512-YPMwvUKJSDF/3j/9KCnOqnCB+kvJQSSnLUIahnOWB0RkJRPOZbO/7BdRibtK3OzDCLi/+IUGXrXhu072QLyv7A=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.9.9",
--- patches/@walmart+facilities-management-miniapp+0.5.14.patch
--- patches/@walmart+gtp-shared-components+2.0.0.patch
@@ -1,13 +0,0 @@
-diff --git a/node_modules/@walmart/gtp-shared-components/dist/next/components/ChipGroup.js b/node_modules/@walmart/gtp-shared-components/dist/next/components/ChipGroup.js
-index 2040590..ef29945 100644
---- a/node_modules/@walmart/gtp-shared-components/dist/next/components/ChipGroup.js
-+++ b/node_modules/@walmart/gtp-shared-components/dist/next/components/ChipGroup.js
-@@ -68,7 +68,7 @@ const ChipGroup = (props) => {
- };
- React.useEffect(() => {
- onGroupPress(selectedIds);
-- }, [onGroupPress, selectedIds]);
-+ }, [selectedIds]);
- const kids = (0, react_keyed_flatten_children_1.default)(children);
- // ---------------
- // Rendering
| Gtp upgrade | Gtp upgrade
|
a355ce34cca248829c3d1c69a09c78ebb4f9a735 | --- packages/celebration-mini-app-graphql/package.json
@@ -35,7 +35,7 @@
"@types/react-test-renderer": "^18.0.7",
"@walmart/allspark-components-library": "1.1.0",
"@walmart/allspark-foundation": "^6.32.0",
- "@walmart/allspark-foundation-hub": "1.12.0-beta.4979+2eb5821e",
+ "@walmart/allspark-foundation-hub": "1.13.0-beta.5047+b433a2a7",
"@walmart/gtp-shared-components": "2.2.4",
"@walmart/me-at-walmart-common": "6.29.0-alpha.0",
"eslint": "^8.19.0",
@@ -59,7 +59,7 @@
},
"peerDependencies": {
"@walmart/allspark-foundation": ">=6.32.0",
- "@walmart/allspark-foundation-hub": "1.12.0-beta.4979+2eb5821e",
+ "@walmart/allspark-foundation-hub": "1.13.0-beta.5047+b433a2a7",
"expo": "52.x",
"expo-image": "*",
"react": "*",
--- packages/celebration-mini-app/package.json
@@ -35,7 +35,7 @@
"@types/react-test-renderer": "^18.0.7",
"@walmart/allspark-components-library": "1.1.0",
"@walmart/allspark-foundation": "^6.32.0",
- "@walmart/allspark-foundation-hub": "1.12.0-beta.4979+2eb5821e",
+ "@walmart/allspark-foundation-hub": "1.13.0-beta.5047+b433a2a7",
"@walmart/gtp-shared-components": "2.2.4",
"@walmart/me-at-walmart-common": "6.29.0-alpha.0",
"eslint": "^8.19.0",
@@ -59,7 +59,7 @@
},
"peerDependencies": {
"@walmart/allspark-foundation": ">=6.32.0",
- "@walmart/allspark-foundation-hub": "1.12.0-beta.4979+2eb5821e",
+ "@walmart/allspark-foundation-hub": "1.13.0-beta.5047+b433a2a7",
"expo": "52.x",
"expo-image": "*",
"react": "*",
| feat(ui): update celebration mini app version | feat(ui): update celebration mini app version
|
30483600843daef74c48c19c9ef9806310757eaa | --- package.json
@@ -100,7 +100,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.126.4",
"@walmart/price-changes-mini-app": "1.4.10",
- "@walmart/profile-feature-app": "0.0.49",
+ "@walmart/profile-feature-app": "0.0.50",
"@walmart/push-to-talk-mini-app": "1.8.9",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "^0.2.0",
| Version bump to update CCM defaults. | Version bump to update CCM defaults.
|
756ee838066e5fb629cfe90662ff1df7d2457adb | --- packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.ts
@@ -1,7 +1,14 @@
import * as Types from './schema.types';
-import { gql } from '@apollo/client';
-import * as Apollo from '@apollo/client';
-import * as ApolloReactHooks from '@apollo/client';
+import {
+ gql,
+ useQuery,
+ useLazyQuery,
+ useSuspenseQuery,
+ QueryHookOptions,
+ LazyQueryHookOptions,
+ SuspenseQueryHookOptions,
+ QueryResult,
+} from '@apollo/client';
const defaultOptions = {} as const;
@@ -130,39 +137,39 @@ export const GetForYouHeaderAssociateDetailsDocument = gql`
`;
export function useGetForYouHeaderAssociateDetailsQuery(
- baseOptions: ApolloReactHooks.QueryHookOptions<
+ baseOptions: QueryHookOptions<
GetForYouHeaderAssociateDetailsQuery,
GetForYouHeaderAssociateDetailsQueryVariables
>
) {
const options = { ...defaultOptions, ...baseOptions };
- return ApolloReactHooks.useQuery<
+ return useQuery<
GetForYouHeaderAssociateDetailsQuery,
GetForYouHeaderAssociateDetailsQueryVariables
>(GetForYouHeaderAssociateDetailsDocument, options);
}
export function useGetForYouHeaderAssociateDetailsLazyQuery(
- baseOptions?: ApolloReactHooks.LazyQueryHookOptions<
+ baseOptions?: LazyQueryHookOptions<
GetForYouHeaderAssociateDetailsQuery,
GetForYouHeaderAssociateDetailsQueryVariables
>
) {
const options = { ...defaultOptions, ...baseOptions };
- return ApolloReactHooks.useLazyQuery<
+ return useLazyQuery<
GetForYouHeaderAssociateDetailsQuery,
GetForYouHeaderAssociateDetailsQueryVariables
>(GetForYouHeaderAssociateDetailsDocument, options);
}
export function useGetForYouHeaderAssociateDetailsSuspenseQuery(
- baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<
+ baseOptions?: SuspenseQueryHookOptions<
GetForYouHeaderAssociateDetailsQuery,
GetForYouHeaderAssociateDetailsQueryVariables
>
) {
const options = { ...defaultOptions, ...baseOptions };
- return ApolloReactHooks.useSuspenseQuery<
+ return useSuspenseQuery<
GetForYouHeaderAssociateDetailsQuery,
GetForYouHeaderAssociateDetailsQueryVariables
>(GetForYouHeaderAssociateDetailsDocument, options);
@@ -180,7 +187,7 @@ export type GetForYouHeaderAssociateDetailsSuspenseQueryHookResult = ReturnType<
typeof useGetForYouHeaderAssociateDetailsSuspenseQuery
>;
-export type GetForYouHeaderAssociateDetailsQueryResult = Apollo.QueryResult<
+export type GetForYouHeaderAssociateDetailsQueryResult = QueryResult<
GetForYouHeaderAssociateDetailsQuery,
GetForYouHeaderAssociateDetailsQueryVariables
>;
| feat(graphql): Change imports | feat(graphql): Change imports
|
f9c83e7d7f7f5e3dc0b23c20684ac41775a28f5c | --- 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.358.0",
+ "@walmart/time-clock-mini-app": "2.359.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
@@ -7156,9 +7156,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/time-clock-mini-app@npm:2.358.0":
- version: 2.358.0
- resolution: "@walmart/time-clock-mini-app@npm:2.358.0"
+"@walmart/time-clock-mini-app@npm:2.359.0":
+ version: 2.359.0
+ resolution: "@walmart/time-clock-mini-app@npm:2.359.0"
dependencies:
"@react-navigation/elements": "npm:^1.3.1"
moment-timezone: "npm:0.5.33"
@@ -7201,7 +7201,7 @@ __metadata:
uuid: ^3.3.2
wifi-store-locator: ^1.4.0
xdate: ^0.8.2
- checksum: 10c0/6feb084b04f82a095dc6258ab8fc883928ebfbd0feb9b36a2a085283d14c6e6d77dbafb1bb8832df6e7dff957027f6501f9f44ef9c901144614a124f2ade8b40
+ checksum: 10c0/fd5be724efd980011d03fa1eb4bb0d4b76e780d01e6f336a12486388de5492a9ccdbdafeaa86cfbfcc1902b4eedfc601dd681ed3bd3559aa6bba471a81bc04ce
languageName: node
linkType: hard
@@ -7795,7 +7795,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.358.0"
+ "@walmart/time-clock-mini-app": "npm:2.359.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"
| TCMA v2.359.0 | TCMA v2.359.0
|
37acf867c43c7bed25a1bdac655d40ebcecc0313 | --- packages/allspark-utils/src/Layout.tsx
@@ -66,7 +66,9 @@ export const Layout = <P = {},>(props: LayoutProps<P>) => {
const ErrorBoundary = props?.errorBoundary ?? PassThrough;
return (
- <ErrorBoundary key={`${componentId}-${rowIndex}-${colIndex}`}>
+ <ErrorBoundary
+ key={`error-${componentId}-${rowIndex}-${colIndex}`}
+ >
<View
key={`${componentId}-${rowIndex}-${colIndex}`}
style={[styles.column, !!width && { flex: width }]}
| feat(layout): fixed error boundary key so that it is always unique | feat(layout): fixed error boundary key so that it is always unique
|
8321514c645c83d90ec8d59cfd2bf6a987da335f | --- src/redux/selectors.ts
@@ -44,11 +44,6 @@ export const getUploadingBlob = createSelector(
(state) => state?.uploadingBlob,
);
-export const getSearchText = createSelector(
- [getTextingState],
- (state) => state.searchText,
-);
-
export type Permissions = {
rn: string;
a: string;
--- src/screens/SearchScreen.tsx
@@ -39,8 +39,7 @@ import {LOCAL_STORAGE_KEY_PREFIX} from '../constants';
import {logger} from '../logger/Logger';
import {renderAssociateRosterItem} from '../components';
import {RecentSearchHistory} from '../components/RecentSearchHistory';
-import {useDispatch, useSelector} from 'react-redux';
-import {getSearchText} from '../redux/selectors';
+import {useDispatch} from 'react-redux';
import {rosterSlice} from '../redux/reducer';
const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`;
@@ -96,7 +95,7 @@ const SearchHeaderBase = (props: StackHeaderProps) => {
const {top} = useSafeAreaInsets();
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
const dispatch = useDispatch();
- const searchTextInput = useSelector(getSearchText);
+ const searchTextInput = '';
useEffect(() => {
if (searchTextInput) {
@@ -179,9 +178,8 @@ type SearchScreenProps = {
route: RouteProp<TextingNavParamsMap, 'myTeam.searchScreen'>;
};
-export const SearchScreen: React.FC<SearchScreenProps> = (props) => {
- const {route} = props;
- const {searchInput} = route?.params;
+export const SearchScreen: React.FC<SearchScreenProps> = () => {
+ const searchInput: string = '';
const {data} = useDailyRoster();
const allAssociates = (data?.getDailyRoster || []) as Associate[];
| fixing search screen | fixing search screen
|
942f4c722ab38af449bafba60eaf5dda1524b2fd | --- scripts/mini-app-scan/package-deprecation/scheduled-library-deprecation.json
@@ -11,6 +11,10 @@
{
"package": "@walmart/time-clock-mini-app",
"endDate": "2026-02-03"
+ },
+ {
+ "package": "@walmart/attendance-mini-app",
+ "endDate": "2026-01-15"
}]
},
{
@@ -79,6 +83,10 @@
{
"package": "@walmart/time-clock-mini-app",
"endDate": "2026-02-03"
+ },
+ {
+ "package": "@walmart/attendance-mini-app",
+ "endDate": "2026-01-15"
}]
},
{
@@ -149,7 +157,11 @@
"legacyLibrary": "axios-cache-adapter",
"replacement": "axios-cache-interceptor",
"enforcementDate": "2025-11-03",
- "notes": "Use the replacement for all new development."
+ "notes": "Use the replacement for all new development.",
+ "exemptions": [{
+ "package": "@walmart/attendance-mini-app",
+ "endDate": "2026-01-15"
+ }]
},
{
"legacyLibrary": "react-native-geolocation-service",
| feat(dep): update deprecation exemptions (#5089) | feat(dep): update deprecation exemptions (#5089)
|
4ede5b6808c9d102b62ad533b153d38823ca9ba9 | --- .looper-pr.yml
@@ -31,3 +31,5 @@ envs:
MONO_REPO_BASE_BRANCH: develop
AUTHOR: temp
SLACK_CHANNEL: 'smdv-miniapp'
+
+
--- .looper.yml
@@ -20,7 +20,7 @@ flows:
pr:
- (name Corepack enable) corepack enable
- - (name Yarn Set Version) yarn set version 4.6.0
+ - (name Yarn Set Version) yarn set version 4.4.0
- (name Yarn Version) yarn --version
- yarn install
- yarn run lint
--- docs/CHANGELOG.md
@@ -1,48 +1,3 @@
-# [3.6.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.5.0...v3.6.0) (2025-09-22)
-
-
-### Features
-
-* **ui:** updated versions ([e174c86](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e174c86be22d668fdb1fcc563df139a5207d44cc))
-
-# [3.5.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.4.0...v3.5.0) (2025-09-17)
-
-
-### Features
-
-* **ui:** adding new version for drop 34 ([a4c18ec](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/a4c18eca33ae7c06b16f04691bea6906cc6be1c7))
-* **ui:** adding new version for drop 34 ([b455d16](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/b455d161e36ae31085abe8163e878e0f277e10e2))
-* **ui:** update version for drop 34 ([c478413](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/c4784136eb60f483201b7cacb6ce6acbbaaa8a34))
-* **ui:** update version for drop 34 ([faac5e9](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/faac5e9c83758b55ec62d3405a5991f8545a44f8))
-
-# [3.4.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.3.0...v3.4.0) (2025-09-05)
-
-
-### Features
-
-* **ui:** updating wmconnect version for firestore changes ([11910d8](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/11910d8ed675f89196d2a3b5f8eccdbf5e4d3eb2))
-
-# [3.3.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.2.0...v3.3.0) (2025-08-28)
-
-
-### Features
-
-* **ui:** fixing conflicts ([e0f3c26](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e0f3c2656f5e88178b3307d932bb7fa01084484a))
-* **ui:** updating looper-pr file ([cad923a](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/cad923a332ab119a5edfe9510fb0a6c3c99efa8a))
-* **ui:** updating versions ([6602c68](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/6602c68899b40380dc042bebc54a28bf6f6cc821))
-
-# [3.2.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.1.0...v3.2.0) (2025-08-25)
-
-
-### Features
-
-* **ui:** adding changes to looper-pr.yml ([e1650af](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e1650af900e53867595aaa83d9b7d9b420927cf8))
-* **ui:** updating new version for drop 33 ([f1a308b](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/f1a308bddc010c715bb8c1fd99548b3bf8dc5783))
-* **ui:** updating roster wmconnect version for drop 33 ([21274e5](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/21274e590fb2ae3dce721376e734637f4e0632d8))
-* **ui:** updating versions for drop 33 ([85c4265](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/85c426590086be9d3567344f8b97db526e87a167))
-* **ui:** updating versions for drop 33 ([172064f](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/172064f4a006ccf9414a47a4d3bde57f0793b231))
-* **ui:** updating versions for drop 33 ([0a922dd](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/0a922dd223b545985c146517dfbe6b991e9b46d4))
-
# [3.1.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.0.2...v3.1.0) (2025-07-22)
| chore(a11y): code cleanup | chore(a11y): code cleanup
|
00cf598332db177621a6b2f2b10ff5b95deb9f34 | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.0.0-beta.9",
+ "version": "1.0.1-beta.1",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
| Update hub version | Update hub version
|
b9078787ce2d04f990a06645f1edce30703aa604 | --- packages/allspark-foundation/src/Components/DynamicComponents.tsx
@@ -1,6 +1,10 @@
import React, { FC, useMemo } from 'react';
import { StyleProp, View, ViewStyle } from 'react-native';
-import { EventManager, useRenderOnChange } from '@walmart/allspark-utils';
+import {
+ DynamicQueue,
+ EventManager,
+ useRenderOnChange,
+} from '@walmart/allspark-utils';
export type ComponentRecord<T extends any = any> = {
id: string;
@@ -279,6 +283,29 @@ class DynamicComponentManager<
private _components = {} as {
[K in keyof ParamList]: DynamicComponent<ParamList[K], RecordList[K]>;
};
+ private _addQueue = new DynamicQueue();
+ private _updateQueue = new DynamicQueue();
+ private _removeQueue = new DynamicQueue();
+
+ /**
+ * Flushes the queues for a given component ID.
+ */
+ private _flushQueueForComponent = (componentId: string) => {
+ // Flush the add queue for given component ID
+ this._addQueue.flush(componentId, ([recordId, props]) =>
+ this.add(componentId, recordId, props)
+ );
+
+ // Flush the update queue for given component ID
+ this._updateQueue.flush(componentId, ([recordId, props]) =>
+ this.add(componentId, recordId, props)
+ );
+
+ // Flush the remove queue for given component ID
+ this._removeQueue.flush(componentId, ([recordId]) => {
+ this.remove(componentId, recordId);
+ });
+ };
/**
* Creates a DynamicComponent instance.
@@ -302,7 +329,7 @@ class DynamicComponentManager<
) => {
const component = new DynamicComponent<T, K>(Component);
// @ts-ignore
- this._components[componentId] = component;
+ this.register(componentId, component);
return component;
};
@@ -313,6 +340,7 @@ class DynamicComponentManager<
if (!this._components[id]) {
//@ts-ignore
this._components[id] = component;
+ this._flushQueueForComponent(id);
}
};
@@ -399,7 +427,11 @@ class DynamicComponentManager<
id: RecordList[K],
props: ParamList[K]
) => {
- this._components[component]?.add(id, props);
+ if (this._components[component]) {
+ this._components[component].add(id, props);
+ } else {
+ this._addQueue.enqueue(component.toString(), [id, props]);
+ }
};
/**
@@ -416,7 +448,11 @@ class DynamicComponentManager<
id: RecordList[K],
props: ParamList[K]
) => {
- this._components[component]?.update(id, props);
+ if (this._components[component]) {
+ this._components[component].update(id, props);
+ } else {
+ this._updateQueue.enqueue(component.toString(), [id, props]);
+ }
};
/**
@@ -431,7 +467,11 @@ class DynamicComponentManager<
component: K,
id: RecordList[K]
) => {
- this._components[component]?.remove(id);
+ if (this._components[component]) {
+ this._components[component].remove(id);
+ } else {
+ this._removeQueue.enqueue(component.toString(), id);
+ }
};
}
| feat: add queue to dynamic component manager to handle interaction before registration | feat: add queue to dynamic component manager to handle interaction before registration
|
b0a3b78e311a2052a3e52d7671b060f2a2dcd989 | --- .looper.multibranch.yml
@@ -470,7 +470,7 @@ flows:
- type: mrkdwn
text: "*OS Type:* ${os}"
- type: mrkdwn
- text: "*Branch:* TODO"
+ text: "*Branch:* ${GITHUB_BRANCH_NAME}"
- type: mrkdwn
text: "*Author:* ${GIT_COMMIT_AUTHOR}"
- type: mrkdwn
| fix branch name | fix branch name
|
ef7f12e7419db5cabe49e8469d57348fde945161 | --- __tests__/home/components/GreetingRowV2/__snapshots__/GreetingRowV2Test.tsx.snap
@@ -20,9 +20,9 @@ exports[`GreetingRowV2 renders anniversary greeting (anniversary only) 1`] = `
"borderTopColor": "#7aa5f6",
"borderTopWidth": 1,
"marginBottom": 30,
+ "marginHorizontal": -16,
"marginTop": 0,
"minHeight": 158,
- "width": "100%",
}
}
team="1234"
@@ -50,9 +50,9 @@ exports[`GreetingRowV2 renders birthday greeting (birthday only) 1`] = `
"borderTopColor": "#7aa5f6",
"borderTopWidth": 1,
"marginBottom": 30,
+ "marginHorizontal": -16,
"marginTop": 0,
"minHeight": 158,
- "width": "100%",
}
}
team="US"
@@ -79,9 +79,9 @@ exports[`GreetingRowV2 renders birthday priority when both birthday and annivers
"borderTopColor": "#7aa5f6",
"borderTopWidth": 1,
"marginBottom": 30,
+ "marginHorizontal": -16,
"marginTop": 0,
"minHeight": 158,
- "width": "100%",
}
}
team="2020-01-01"
@@ -99,9 +99,9 @@ exports[`GreetingRowV2 renders error state 1`] = `
"borderTopColor": "#7aa5f6",
"borderTopWidth": 1,
"marginBottom": 30,
+ "marginHorizontal": -16,
"marginTop": 0,
"minHeight": 158,
- "width": "100%",
}
}
/>
@@ -118,9 +118,9 @@ exports[`GreetingRowV2 renders loading state 1`] = `
"borderTopColor": "#7aa5f6",
"borderTopWidth": 1,
"marginBottom": 30,
+ "marginHorizontal": -16,
"marginTop": 0,
"minHeight": 158,
- "width": "100%",
}
}
/>
@@ -146,9 +146,9 @@ exports[`GreetingRowV2 renders with anniversary month unit 1`] = `
"borderTopColor": "#7aa5f6",
"borderTopWidth": 1,
"marginBottom": 30,
+ "marginHorizontal": -16,
"marginTop": 0,
"minHeight": 158,
- "width": "100%",
}
}
team="Sam"
@@ -169,9 +169,9 @@ exports[`GreetingRowV2 renders with null userInfo but not loading and no error (
"borderTopColor": "#7aa5f6",
"borderTopWidth": 1,
"marginBottom": 30,
+ "marginHorizontal": -16,
"marginTop": 0,
"minHeight": 158,
- "width": "100%",
}
}
team={
@@ -199,9 +199,9 @@ exports[`GreetingRowV2 renders with user info (no events) 1`] = `
"borderTopColor": "#7aa5f6",
"borderTopWidth": 1,
"marginBottom": 30,
+ "marginHorizontal": -16,
"marginTop": 0,
"minHeight": 158,
- "width": "100%",
}
}
team={false}
--- src/home/components/GreetingRowV2/index.tsx
@@ -15,7 +15,7 @@ export const styles = StyleSheet.create({
backgroundColor: colors.blue[100],
marginTop: 0,
marginBottom: 30,
- width: '100%',
+ marginHorizontal: -16,
borderTopColor: colors.blue[50],
borderTopWidth: 1,
minHeight: 158,
| fix: update padding on header component (#5278) | fix: update padding on header component (#5278)
|
7996c0cc1bb9c539784704f7dc3d146e2dbc02c3 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "3.3.0-alpha.3",
+ "version": "3.3.0-alpha.4",
"main": "dist/index.js",
"files": [
"dist",
@@ -89,7 +89,7 @@
"@walmart/react-native-scanner-3.0": "0.10.4",
"@walmart/react-native-sumo-sdk": "2.8.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "3.2.0-alpha.3",
+ "@walmart/wmconnect-mini-app": "3.2.0-alpha.4",
"babel-jest": "^29.6.3",
"chance": "^1.1.11",
"crypto-js": "~4.2.0",
--- yarn.lock
@@ -6368,7 +6368,7 @@ __metadata:
"@walmart/react-native-scanner-3.0": "npm:0.10.4"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
"@walmart/ui-components": "npm:1.15.1"
- "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.3"
+ "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.4"
babel-jest: "npm:^29.6.3"
chance: "npm:^1.1.11"
crypto-js: "npm:~4.2.0"
@@ -6451,9 +6451,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.3":
- version: 3.2.0-alpha.3
- resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.3.tgz"
+"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.4":
+ version: 3.2.0-alpha.4
+ resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.4.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.32.0"
expo: ~52.0.46
@@ -6464,7 +6464,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/0fd5dd299abe3b0a05996c5ce71d8e092969a5243abc9d57f22e78ff8d84021c536d38cbce4db2d5e57471f20f598268aec9749e8f52674254c6bdf5132218fc
+ checksum: 10c0/caacd0d342aee015360fea98c39054c837a045e21df2945eaf64ebc94ab85801250b6fa83603e4f4ac85018dcf66acf7d32ec6a3cc77f2bd67b275355dfe508b
languageName: node
linkType: hard
| feat(ui): updating new version | feat(ui): updating new version
|
f59b068008837a0608a230f2fb77dc4ac92cec23 | --- packages/associate-exp-hub-hub/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.12.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.12.0...@walmart/associate-exp-hub-hub@2.12.1) (2025-11-18)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-hub
+
# [2.12.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.11.0...@walmart/associate-exp-hub-hub@2.12.0) (2025-11-18)
### Features
--- packages/associate-exp-hub-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-hub",
- "version": "2.12.0",
+ "version": "2.12.1",
"description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub",
"packageManager": "yarn@4.6.0",
"engines": {
--- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.4.0-alpha.42](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.41...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.42) (2025-11-18)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app
+
# [1.4.0-alpha.41](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.40...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.41) (2025-11-18)
### Features
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.4.0-alpha.41",
+ "version": "1.4.0-alpha.42",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
| chore(version): updating package version | chore(version): updating package version
- @walmart/associate-exp-hub-hub@2.12.1
- @walmart/associate-exp-hub-mini-app@1.4.0-alpha.42
|
6143bafd253e4a988300fe53ecc3c396d1ca5a3e | --- package-lock.json
@@ -1995,9 +1995,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.0.51",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.51.tgz",
- "integrity": "sha512-dGJfJQQf1/pXwDsC+8D0wF0PWpxL07Vvlufxb+rKDxY7BBzCG38arIlOPotqaHmAjCrntv0DbjJMNBHwaOBRiw=="
+ "version": "0.0.52",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.52.tgz",
+ "integrity": "sha512-8eLwTE330X+1/nv4y8nmc2dpW2cBm8LAzBai32raTdJKELRGjpxr73KjnyGB1CqnCRGNCziMblLj/SZTb22cNg=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -55,7 +55,7 @@
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/inbox-mini-app": "0.0.20",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.0.51",
+ "@walmart/push-to-talk-mini-app": "0.0.52",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.17.0",
"@walmart/react-native-shared-navigation": "^0.2.0",
| chore: bump to version 0.0.52 for PTT mini app (#197) | chore: bump to version 0.0.52 for PTT mini app (#197)
Co-authored-by: Russell Lane - rlane1 <Russell.Lane@walmart.com> |
f6f1b768da81e23e05a654636934bd359334c02f | --- saucelabs/.looper-native-common-saucelabs.yml
@@ -34,7 +34,9 @@ envs:
tools:
maven: 3.5.4
nodejs: 12.4.0
- jdk: 8
+ jdk:
+ flavor: azul
+ version: 11
flows:
npm-install-and-coverage:
| updated jdk | updated jdk
|
373f5c89c313ffd992d250282e16dc8144b7386d | --- packages/allspark-foundation/__tests__/Feature/AllsparkFeatureModule.test.tsx
@@ -9,6 +9,7 @@ import { ActiveAllsparkContainer } from '../../src/Container/ActiveContainerMana
import { AllsparkModuleConfig } from '../../src/Feature';
import { Image } from 'expo-image';
import { CDN_BASE_URL } from '../../Feature/constants';
+import { AllsparkWorkClient } from '../../src/Work/client';
jest.mock('../../src/Notification', () => ({
AllsparkNotificationClient: {
@@ -36,7 +37,7 @@ jest.mock('../../src/Components', () => ({
add: jest.fn(),
},
}));
-const config: AllsparkModuleConfig = {
+let config: AllsparkModuleConfig = {
name: 'TestFeature',
tags: ['feature-tag-1', 'feature-tag-2'],
components: {},
@@ -686,3 +687,125 @@ describe('_connectScreens', () => {
expect((allsparkFeatureModule as any)._events.addListener).toHaveBeenCalledWith('onConnect', mockListener, { 'id': 'id' });
});
});
+describe('_connectFlows', () => {
+ let allsparkFeatureModule: AllsparkFeatureModule;
+ const mockFlows = {
+ flowA: jest.fn(),
+ flowB: jest.fn(),
+ };
+
+ beforeEach(() => {
+ config = {
+ name: 'TestFeature',
+ tags: [],
+ components: {},
+ flows: mockFlows,
+ listeners: {},
+ modals: {},
+ redux: {},
+ screens: {},
+ translations: {},
+ prefetchedImages: [],
+ };
+ allsparkFeatureModule = new AllsparkFeatureModule('feature-id', config);
+
+ // Reset connectedMap and resourceMap
+ (allsparkFeatureModule as any)._connectedMap = {};
+ (allsparkFeatureModule as any)._resourceMap = {};
+
+ // Spy on dependencies
+ jest
+ .spyOn(allsparkFeatureModule as any, '_resolveCapability')
+ .mockReturnValue(mockFlows);
+ jest.spyOn(AllsparkWorkClient, 'registerFlow').mockImplementation();
+ jest.spyOn(ActiveAllsparkContainer, 'addFlow').mockImplementation();
+ });
+
+ afterEach(() => {
+ jest.clearAllMocks();
+ });
+
+ it('should not connect flows if already connected', () => {
+ (allsparkFeatureModule as any)._connectedMap.flows = true;
+ const resolveSpy = jest.spyOn(
+ allsparkFeatureModule as any,
+ '_resolveCapability'
+ );
+ const consoleWarnSpy = jest.spyOn(console, 'warn').mockImplementation();
+
+ (allsparkFeatureModule as any)._connectFlows();
+
+ expect(consoleWarnSpy).toHaveBeenCalledWith(
+ 'AllsparkFeature feature-id flows already connected.'
+ );
+ expect(resolveSpy).not.toHaveBeenCalled();
+
+ consoleWarnSpy.mockRestore();
+ });
+
+ it('should connect flows and register them if not already connected', () => {
+ (allsparkFeatureModule as any)._connectedMap.flows = false;
+
+ (allsparkFeatureModule as any)._connectFlows();
+
+ expect((allsparkFeatureModule as any)._resourceMap.flows).toBe(mockFlows);
+ expect((allsparkFeatureModule as any)._connectedMap.flows).toBe(true);
+
+ expect(AllsparkWorkClient.registerFlow).toHaveBeenCalledWith(
+ 'flowA',
+ mockFlows.flowA,
+ 'feature-id'
+ );
+ expect(AllsparkWorkClient.registerFlow).toHaveBeenCalledWith(
+ 'flowB',
+ mockFlows.flowB,
+ 'feature-id'
+ );
+ expect(ActiveAllsparkContainer.addFlow).toHaveBeenCalledWith(
+ 'flowA',
+ mockFlows.flowA
+ );
+ expect(ActiveAllsparkContainer.addFlow).toHaveBeenCalledWith(
+ 'flowB',
+ mockFlows.flowB
+ );
+ });
+
+ it('should not register or add flows if flows is falsy', () => {
+ jest
+ .spyOn(allsparkFeatureModule as any, '_resolveCapability')
+ .mockReturnValue(undefined);
+
+ (allsparkFeatureModule as any)._connectFlows();
+
+ expect(AllsparkWorkClient.registerFlow).not.toHaveBeenCalled();
+ expect(ActiveAllsparkContainer.addFlow).not.toHaveBeenCalled();
+ expect((allsparkFeatureModule as any)._resourceMap.flows).toBeUndefined();
+ expect((allsparkFeatureModule as any)._connectedMap.flows).toBeUndefined();
+ });
+
+ it('should skip null/undefined flows in the flows object', () => {
+ const flowsWithNull = {
+ flowA: mockFlows.flowA,
+ flowB: null,
+ flowC: undefined,
+ };
+ jest
+ .spyOn(allsparkFeatureModule as any, '_resolveCapability')
+ .mockReturnValue(flowsWithNull);
+
+ (allsparkFeatureModule as any)._connectFlows();
+
+ expect(AllsparkWorkClient.registerFlow).toHaveBeenCalledTimes(1);
+ expect(AllsparkWorkClient.registerFlow).toHaveBeenCalledWith(
+ 'flowA',
+ mockFlows.flowA,
+ 'feature-id'
+ );
+ expect(ActiveAllsparkContainer.addFlow).toHaveBeenCalledTimes(1);
+ expect(ActiveAllsparkContainer.addFlow).toHaveBeenCalledWith(
+ 'flowA',
+ mockFlows.flowA
+ );
+ });
+});
--- packages/allspark-foundation/src/Work/types.ts
@@ -16,7 +16,7 @@ export type WorkflowMetadata<
export type WorkflowExecutor<
T extends Record<string, any> = Record<string, any>,
R = any,
-> = (metadata: WorkflowMetadata<T>) => Generator<any, R, any>;
+> = (metadata?: WorkflowMetadata<T>) => Generator<any, R, any>;
export type BaseWorkflows = {
[key: string]: WorkflowExecutor<any, any>;
| fix: type issues and add unit tests | fix: type issues and add unit tests
|
622593b9a2784eda9ff788e256dfbf99094b83bb | --- package.json
@@ -30,7 +30,7 @@
"run-expo-doctor": "expo-doctor",
"start:minified": "expo start --no-dev --minify",
"postinstall": "yarn build",
- "start": "ts-node scripts/runWithVariablePrompt 'expo start'",
+ "start": "ts-node scripts/runWithVariablePrompt 'expo start --dev-client'",
"prebuild": "ts-node scripts/runWithVariablePrompt 'expo prebuild --clean' --skipContext",
"run:ios": "ts-node scripts/runWithVariablePrompt 'expo run:ios'",
"run:android": "ts-node scripts/runWithVariablePrompt 'expo run:android'",
| chore: add dev client configuration on start script | chore: add dev client configuration on start script
|
16be5273f11a24bc5f0386a1f0e7b2feece55310 | --- yarn.lock
@@ -9511,8 +9511,6 @@ __metadata:
"@walmart/allspark-utils": "workspace:^"
"@walmart/gtp-shared-components": "npm:^2.2.2"
"@walmart/me-at-walmart-athena-queries": "workspace:^"
- expo: "npm:~52.0.46"
- expo-image: "npm:~2.3.2"
lodash: "npm:~4.17.21"
namecase: "npm:^1.1.2"
react: "npm:^18.2.0"
| fix(dependencies): updated yarn lock file | fix(dependencies): updated yarn lock file
|
8879a45c54b4b314aa8303f0c3e2c05209f6b765 | --- package-lock.json
@@ -4553,9 +4553,9 @@
}
},
"@walmart/core-services": {
- "version": "1.0.12",
- "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.0.12.tgz",
- "integrity": "sha512-HjDtpCvMikH0RpxWwtexmf8RXWnA0pfrTUgJ/DobAHCfR9efEvA0sWuiIx7hpjeSQWIm3IZhziy8C3k0i4HH6Q==",
+ "version": "1.0.13",
+ "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.0.13.tgz",
+ "integrity": "sha512-Xl5NdX0gr2klzR3cz2eb6YkeANvRmmUkz/TmNeQQBsXLfuchZy3aEY+K5QyKfW90W7ilF2hpmg2a98NGtQk5QA==",
"requires": {
"@walmart/core-utils": "^1.0.8",
"axios": "^0.26.0",
@@ -4592,9 +4592,9 @@
}
},
"@walmart/core-services-allspark": {
- "version": "1.3.1",
- "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.3.1.tgz",
- "integrity": "sha512-X8bdLPojDs4nDX3st97Gnf4fw7wSRfW2cKN5UzLVav9GC+w0YxadEdYgitUeEGt+ftI/uf7FC6tXyy498LLYtg==",
+ "version": "1.4.2",
+ "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.4.2.tgz",
+ "integrity": "sha512-mAOUiq0iSCOQyBqpWqB6VHyG3ufsc1WsSvDi/gXd1KtNObcCoklvSuTDreNvc8Jken8SO2CgkWJR1g2GXio02g==",
"requires": {
"axios": "^0.26.0",
"crypto-js": "^4.1.1",
@@ -4615,9 +4615,9 @@
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"luxon": {
- "version": "2.4.0",
- "resolved": "https://npme.walmart.com/luxon/-/luxon-2.4.0.tgz",
- "integrity": "sha512-w+NAwWOUL5hO0SgwOHsMBAmZ15SoknmQXhSO0hIbJCAmPKSsGeK8MlmhYh2w6Iib38IxN2M+/ooXWLbeis7GuA=="
+ "version": "2.5.0",
+ "resolved": "https://npme.walmart.com/luxon/-/luxon-2.5.0.tgz",
+ "integrity": "sha512-IDkEPB80Rb6gCAU+FEib0t4FeJ4uVOuX1CQ9GsvU3O+JAGIgu0J7sf1OarXKaKDygTZIoJyU6YdZzTFRu+YR0A=="
},
"uuid": {
"version": "8.3.2",
--- package.json
@@ -75,8 +75,8 @@
"@walmart/allspark-neon-core": "0.1.26",
"@walmart/ask-sam-mini-app": "^0.41.8",
"@walmart/config-components": "3.0.2",
- "@walmart/core-services": "^1.0.12",
- "@walmart/core-services-allspark": "^1.3.1",
+ "@walmart/core-services": "^1.0.13",
+ "@walmart/core-services-allspark": "^1.4.2",
"@walmart/core-utils": "^1.0.8",
"@walmart/counts-component-miniapp": "0.0.35",
"@walmart/exception-mini-app": "0.41.1",
| bumping core services for notification fix | bumping core services for notification fix
|
4dfe06934c6571ea0cf93c0c55503b2308cf6ff4 | --- core/__tests__/home/containers/CelebrationListScreenTest.tsx
@@ -1,6 +1,7 @@
import React, {useRef, useState} from 'react';
import {create} from 'react-test-renderer';
-import {Dimensions, ScaledSize} from 'react-native';
+import {render, fireEvent} from '@testing-library/react-native';
+import {Dimensions, ScaledSize, Animated} from 'react-native';
import {responseWithData} from '../mockData/celebration';
import {
CelebrationListScreen,
--- core/__tests__/permissions/IndexTest.ts
@@ -0,0 +1,20 @@
+import {PermissionsFeature} from '../../src/permissions'
+import {enUS, esMX} from '../../src/permissions//translations';
+import {
+ PERMISSION_WELCOME_SCREEN,
+ PERMISSION_LOCATION_SCREEN,
+ PERMISSION_NOTIFICATION_SCREEN,
+ } from '../../src/permissions/constants';
+
+describe('SettingsFeature', () => {
+ it('render scrren correctly', () => {
+ expect(PermissionsFeature._screens[PERMISSION_WELCOME_SCREEN].getComponent()).toBeInstanceOf(Function);
+ expect(PermissionsFeature._screens[PERMISSION_LOCATION_SCREEN].getComponent()).toBeInstanceOf(Function);
+ expect(PermissionsFeature._screens[PERMISSION_WELCOME_SCREEN].options.animationTypeForReplace).toBe('push');
+ expect(PermissionsFeature._screens[PERMISSION_WELCOME_SCREEN].options.gestureEnabled).toBe(false);
+ expect(PermissionsFeature._screens[PERMISSION_NOTIFICATION_SCREEN].options.headerShown).toBe(false);
+ expect(PermissionsFeature._screens[PERMISSION_NOTIFICATION_SCREEN].getComponent()).toBeInstanceOf(Function);
+ expect(PermissionsFeature._translations['en-US']).toEqual(enUS);
+ expect(PermissionsFeature._translations['es-MX']).toEqual(esMX);
+ });
+ });
\ No newline at end of file
--- core/__tests__/settings/IndexTest.tsx
@@ -0,0 +1,17 @@
+import {SettingsFeature} from '../../src/settings'
+import {enUS, esMX} from '../../src/settings//translations';
+
+describe('SettingsFeature', () => {
+ it('render scrren correctly', () => {
+ expect(SettingsFeature._screens['Core.Settings'].getComponent()).toBeInstanceOf(Function);
+ expect(SettingsFeature._screens['Settings.DataSaver'].getComponent()).toBeInstanceOf(Function);
+ expect(SettingsFeature._screens['Settings.Notifications'].getComponent()).toBeInstanceOf(Function);
+ expect(SettingsFeature._screens['Settings.PrivacyPreferences'].getComponent()).toBeInstanceOf(Function);
+ expect(SettingsFeature._screens['Settings.TimeClock'].getComponent()).toBeInstanceOf(Function);
+ expect(SettingsFeature._screens['Settings.Versions'].getComponent()).toBeInstanceOf(Function);
+ expect(SettingsFeature._screens['Settings.Language'].getComponent()).toBeInstanceOf(Function);
+ expect(SettingsFeature._screens['Settings.3rdPartyNotices'].getComponent()).toBeInstanceOf(Function);
+ expect(SettingsFeature._translations['en-US']).toEqual(enUS);
+ expect(SettingsFeature._translations['es-MX']).toEqual(esMX);
+ });
+ });
\ No newline at end of file
--- core/__tests__/startup/AuthFlowTest.ts
@@ -5,7 +5,7 @@ import {
authFlow,
waitForAuth,
} from '../../src/startup/AuthFlow';
-import {AuthActionTypes, AuthService} from '@walmart/allspark-foundation/Auth';
+import {AuthActionTypes} from '@walmart/allspark-foundation/Auth';
import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
describe('isSilentSignInError', () => {
--- core/__tests__/storeInfo/IndexTest.ts
@@ -0,0 +1,8 @@
+import {StoreInfoFeature} from '../../src/storeInfo/index'
+
+describe('StoreInfoFeature', () => {
+ it('render scrren correctly', () => {
+ expect(StoreInfoFeature._screens['Core.StoreInfoModal'].getComponent()).toBeInstanceOf(Function);
+ expect(StoreInfoFeature._screens['Core.StoreInfoModal'].options.presentation).toEqual('transparentModal');
+ });
+ });
\ No newline at end of file
--- core/__tests__/termsOfUse/IndexTest.ts
@@ -0,0 +1,10 @@
+import {TermsOfUseFeature} from '../../src/termsOfUse/index'
+
+describe('TermsOfUseFeature', () => {
+ it('render scrren correctly', () => {
+ expect(TermsOfUseFeature._screens['Core.TermsOfUse'].getComponent()).toBeInstanceOf(Function);
+ expect(TermsOfUseFeature._screens['Core.TermsOfUse'].options.gestureEnabled).toEqual(false);
+ expect(TermsOfUseFeature._screens['Core.TermsOfUse'].options.animationTypeForReplace).toEqual('push');
+ expect(TermsOfUseFeature._screens['Settings.TermsOfUse'].getComponent()).toBeInstanceOf(Function);
+ });
+ });
\ No newline at end of file
--- core/__tests__/whatsNew/IndextTest.ts
@@ -0,0 +1,11 @@
+import {WhatsNewFeature} from '../../src/whatsNew/index'
+import {enUS, esMX} from '../../src/whatsNew//translations';
+
+describe('WhatsNewFeature', () => {
+ it('render WhatsNewFeature correctly', () => {
+ expect(WhatsNewFeature._screens['Core.WhatsNew'].getComponent()).toBeInstanceOf(Function);
+ expect(WhatsNewFeature._screens['Core.FeatureRestrictions'].getComponent()).toBeInstanceOf(Function);
+ expect(WhatsNewFeature._translations['en-US']).toEqual(enUS);
+ expect(WhatsNewFeature._translations['es-MX']).toEqual(esMX);
+ });
+ });
\ No newline at end of file
| add permissions settings store info termisofuse and watsnew tests | add permissions settings store info termisofuse and watsnew tests
|
b8dc8f1c5e8b1cbc6b39c079fea32b80d165af8f | --- __tests__/__snapshots__/index.test.tsx.snap
@@ -1,3 +1,30 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`MyTeamMiniApp should render as expected 1`] = `<Navigator />`;
+exports[`MyTeamMiniApp should render as expected 1`] = `
+<Navigator>
+ <Screen
+ component={[Function]}
+ name="myTeam.rosterDetail"
+ options={
+ {
+ "cardStyle": {
+ "backgroundColor": "rgba(0, 0, 0, 0)",
+ },
+ "headerShown": false,
+ }
+ }
+ />
+ <Screen
+ component={[Function]}
+ name="myTeam.allTeams"
+ options={
+ {
+ "cardStyle": {
+ "backgroundColor": "rgba(0, 0, 0, 0)",
+ },
+ "headerShown": false,
+ }
+ }
+ />
+</Navigator>
+`;
--- __tests__/setup.ts
@@ -47,10 +47,9 @@ jest.mock('expo-modules-core', () => {
};
});
-jest.mock('@walmart/roster-mini-app', () => ({
- ...jest.doMock('@walmart/roster-mini-app'),
- buildAllScreens: jest.fn(),
-}));
+jest.mock('@walmart/roster-mini-app', () =>
+ jest.requireActual('@walmart/roster-mini-app'),
+);
jest.mock('expo-image', () => jest.requireActual('expo-image'));
| Update the roster navigation for my team | Update the roster navigation for my team
|
7cb31470e936bfad9a97305a2c661dc9d71016fb | --- package.json
@@ -101,7 +101,7 @@
"@walmart/core-widget-registry": "6.1.4",
"@walmart/counts-component-miniapp": "0.1.11",
"@walmart/emergency-mini-app": "1.27.1",
- "@walmart/exception-mini-app": "1.8.2",
+ "@walmart/exception-mini-app": "1.8.3",
"@walmart/facilities-management-miniapp": "0.11.2",
"@walmart/feedback-all-spark-miniapp": "0.9.63",
"@walmart/financial-wellbeing-feature-app": "1.23.3",
--- yarn.lock
@@ -5998,9 +5998,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/exception-mini-app@npm:1.8.2":
- version: 1.8.2
- resolution: "@walmart/exception-mini-app@npm:1.8.2"
+"@walmart/exception-mini-app@npm:1.8.3":
+ version: 1.8.3
+ resolution: "@walmart/exception-mini-app@npm:1.8.3"
peerDependencies:
"@walmart/core-services": ^2.0.15
"@walmart/core-services-allspark": ^2.10.3
@@ -6018,7 +6018,7 @@ __metadata:
react-native-ssmp-sso-allspark: ">=1.1.0"
react-native-webview: ">=11.23.1"
uuid: ">=3.3.2"
- checksum: 10c0/54e0acea10a8e895390f43a03645d7cde4ce078446cd68ff3d1c468df82a53d9a708313682f8a77ef36a36f2ed1282df753eb25fe513b870152090488b18bd46
+ checksum: 10c0/3b49e6f74425b8b3a36c0fe1e1e64d8138c0e11e45bfdd18272b5557c5a563bc1be032849b0b8c2fe3f1500bbea29105b4fc03ce9f0f9572a44436dcbc7cf5b8
languageName: node
linkType: hard
@@ -7716,7 +7716,7 @@ __metadata:
"@walmart/core-widget-registry": "npm:6.1.4"
"@walmart/counts-component-miniapp": "npm:0.1.11"
"@walmart/emergency-mini-app": "npm:1.27.1"
- "@walmart/exception-mini-app": "npm:1.8.2"
+ "@walmart/exception-mini-app": "npm:1.8.3"
"@walmart/facilities-management-miniapp": "npm:0.11.2"
"@walmart/feedback-all-spark-miniapp": "npm:0.9.63"
"@walmart/financial-wellbeing-feature-app": "npm:1.23.3"
| Updating exception-mini-app version | Updating exception-mini-app version
|
54dad177f56b92c2c6ade4e4c9691d64643392e8 | --- __tests__/home/components/TaskCard/__snapshots__/TaskClockStatusStoreCardTest.tsx.snap
@@ -87,13 +87,13 @@ exports[`TaskClockStatusStoreCard matches snapshot when loaded but without data
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png",
@@ -213,13 +213,13 @@ exports[`TaskClockStatusStoreCard matches snapshot when loaded with team view fo
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png",
@@ -325,13 +325,13 @@ exports[`TaskClockStatusStoreCard matches snapshot when loaded with team view; c
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png",
@@ -437,13 +437,13 @@ exports[`TaskClockStatusStoreCard matches snapshot when loading, but with result
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png",
--- __tests__/home/components/TaskCard/__snapshots__/TaskClockStatusTeamCard2Test.tsx.snap
@@ -103,13 +103,13 @@ exports[`TaskClockStatusTeamCard2 displays undefined data correctly 1`] = `
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png",
@@ -215,13 +215,13 @@ exports[`TaskClockStatusTeamCard2 handles loading while data is present 1`] = `
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-foodandconsumables-5be2ce96ca.png",
@@ -349,13 +349,13 @@ exports[`TaskClockStatusTeamCard2 shows data on load and navigates on tap 1`] =
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-foodandconsumables-5be2ce96ca.png",
--- __tests__/home/components/TaskCard/__snapshots__/TaskClockStatusTeamCardTest.tsx.snap
@@ -87,13 +87,13 @@ exports[`TaskClockStatusTeamCard matches snapshot when loaded but without data f
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png",
@@ -213,13 +213,13 @@ exports[`TaskClockStatusTeamCard matches snapshot when loaded with team view; ca
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-foodandconsumables-5be2ce96ca.png",
@@ -325,13 +325,13 @@ exports[`TaskClockStatusTeamCard matches snapshot when loading, but with results
</View>
<View>
<Image
+ contentFit="contain"
onError={[Function]}
placeholder={
{
"testUri": "../../../src/images/assets/tasks/task-image-store.png",
}
}
- resizeMode="contain"
source={
{
"uri": "https://i5-me.walmartimages.com/images/teams/task-image-foodandconsumables-5be2ce96ca.png",
| fix snapshot | fix snapshot
|
a8bc83c4b0ef738304fd791e0cf6d09b821bc8b2 | --- package-lock.json
@@ -66,7 +66,7 @@
"@walmart/payrollsolution_miniapp": "0.130.4",
"@walmart/price-changes-mini-app": "1.6.8",
"@walmart/profile-feature-app": "0.76.0",
- "@walmart/push-to-talk-mini-app": "1.9.5",
+ "@walmart/push-to-talk-mini-app": "1.9.6",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
"@walmart/react-native-logger": "1.31.0-rc.1",
@@ -5775,9 +5775,9 @@
}
},
"node_modules/@walmart/push-to-talk-mini-app": {
- "version": "1.9.5",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.5.tgz",
- "integrity": "sha512-naGwL5XjRgMXHOG5nuWrnQxkF5JYL30EoH4+ATdKf9f0ZlcYaL2DOPxe6lZEw5eZJvBYYJzpOdUxfCYSw27oAQ==",
+ "version": "1.9.6",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.6.tgz",
+ "integrity": "sha512-/ZD7S6gwmV2biGwnD/VpXsMSC4itpi6HFarEmqYLHENJ75smqGyA+15bw4Nu2b2Mle2QxOcmOVJ/IXqn8fIOgA==",
"license": "UNLICENSED",
"peerDependencies": {
"@react-native-community/async-storage": "^1.11.0",
@@ -25382,9 +25382,9 @@
"integrity": "sha512-P4fXm0HihY3jsOkUX7ZVICRiLOUIDo16FVOZHeie7o611ZmslNScFNWwuzEcFulKsLRq4jSU+XQKrOlUqQlW2g=="
},
"@walmart/push-to-talk-mini-app": {
- "version": "1.9.5",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.5.tgz",
- "integrity": "sha512-naGwL5XjRgMXHOG5nuWrnQxkF5JYL30EoH4+ATdKf9f0ZlcYaL2DOPxe6lZEw5eZJvBYYJzpOdUxfCYSw27oAQ=="
+ "version": "1.9.6",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.6.tgz",
+ "integrity": "sha512-/ZD7S6gwmV2biGwnD/VpXsMSC4itpi6HFarEmqYLHENJ75smqGyA+15bw4Nu2b2Mle2QxOcmOVJ/IXqn8fIOgA=="
},
"@walmart/react-native-encrypted-storage": {
"version": "1.1.3",
--- package.json
@@ -108,7 +108,7 @@
"@walmart/payrollsolution_miniapp": "0.130.4",
"@walmart/price-changes-mini-app": "1.6.8",
"@walmart/profile-feature-app": "0.76.0",
- "@walmart/push-to-talk-mini-app": "1.9.5",
+ "@walmart/push-to-talk-mini-app": "1.9.6",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
"@walmart/react-native-logger": "1.31.0-rc.1",
| update package version | update package version
|
0dd104e58a2f45e875dfc937cff4c4e5d4db0def | --- packages/core-services-allspark/src/appConfig/sagas.ts
@@ -148,7 +148,7 @@ export function* initAppConfig(this: AppConfigSagaScope): any {
yield call(this.appConfig.initialize, {
baseURL: `${this.env.externalBffUrl}${this.env.bffService}`,
headers: { 'WM_CONSUMER.ID': this.env.consumerId },
- logger: this.logger.clone({}, { id: 'AppConfig' }),
+ logger: this.logger,
httpClient: this.httpClient,
localStorage: this.localStorage,
forceRefreshInterval: MIN_ALLOWED_FORCE_REFRESH_INTERVAL,
| fix: remove cloning of app config logger a second time | fix: remove cloning of app config logger a second time
|
3b9bd628b5502f92a3e7ae0fa03810314aed5a86 | --- src/images/assets/home-tab-active.png
Binary files a/src/images/assets/home-tab-active.png and b/src/images/assets/home-tab-active.png differ
--- src/images/assets/home-tab-active@2x.png
Binary files a/src/images/assets/home-tab-active@2x.png and b/src/images/assets/home-tab-active@2x.png differ
--- src/images/assets/home-tab-active@3x.png
Binary files a/src/images/assets/home-tab-active@3x.png and b/src/images/assets/home-tab-active@3x.png differ
| Adding correct selected home icon source (#156) | Adding correct selected home icon source (#156)
Co-authored-by: rlane1 <rlane1@walmart.com> |
44eabbea164ec032e13ea42326eddd8a153d0323 | --- src/components/RecentSearchHistory/index.tsx
@@ -7,12 +7,32 @@ import {styles} from './style';
import {rosterSlice} from '../../redux/reducer';
import {RecentSearchHistoryProps} from './types';
import {useTranslation} from 'react-i18next';
-import {TEXTING_I18N_NAMESPACE} from '../../translations';
+import {ROSTER_I18N_NAMESPACE} from '../../translations';
+
+const Item = ({
+ title,
+ index,
+ associateRemoveHandler,
+ associateLinkHandler,
+}: any) => (
+ <View style={styles.item}>
+ <IconButton
+ size='small'
+ children={<Icons.CloseIcon size={16} color={colors.black} />}
+ onPress={() => associateRemoveHandler(index)}
+ />
+ <TouchableOpacity
+ testID='pressTextLink'
+ onPress={() => associateLinkHandler(title)}>
+ <Body UNSAFE_style={styles.itemText}>{title}</Body>
+ </TouchableOpacity>
+ </View>
+);
export const RecentSearchHistory = (props: RecentSearchHistoryProps) => {
const {recentSearchHistoryData, clearSearchHistory, associateRemoveHandler} =
props;
- const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
+ const {t} = useTranslation([ROSTER_I18N_NAMESPACE]);
const dispatch = useDispatch();
const keyExtractor = (item: any, index: number) => index.toString();
@@ -20,21 +40,6 @@ export const RecentSearchHistory = (props: RecentSearchHistoryProps) => {
dispatch(rosterSlice.actions.SET_SEARCH_TEXT(title));
};
- const Item = ({title, index}: any) => (
- <View style={styles.item}>
- <IconButton
- size='small'
- children={<Icons.CloseIcon size={16} color={colors.black} />}
- onPress={() => associateRemoveHandler(index)}
- />
- <TouchableOpacity
- testID='pressTextLink'
- onPress={() => associateLinkHandler(title)}>
- <Body UNSAFE_style={styles.itemText}>{title}</Body>
- </TouchableOpacity>
- </View>
- );
-
const footerItem = () => {
return (
<View style={styles.clearSearch}>
@@ -51,7 +56,12 @@ export const RecentSearchHistory = (props: RecentSearchHistoryProps) => {
};
const renderItem = ({item, index}: any) => (
- <Item title={item} index={index} />
+ <Item
+ title={item}
+ index={index}
+ associateRemoveHandler={associateRemoveHandler}
+ associateLinkHandler={{associateLinkHandler}}
+ />
);
return (
--- src/components/Roster/Roster.tsx
@@ -1,6 +1,10 @@
import React, {useCallback, useEffect, useState} from 'react';
-import { AssociateListRenderItem, AssociateRosterItem, RosterProps } from "./types";
-import {View, Text} from 'react-native';
+import {
+ AssociateListRenderItem,
+ AssociateRosterItem,
+ RosterProps,
+} from './types';
+import {View} from 'react-native';
import {styles} from './styles';
import {FlashList, ListRenderItem} from '@shopify/flash-list';
import {useDailyRoster} from '../../hooks';
@@ -9,7 +13,7 @@ import {sortedAssociateList} from '../../utils';
import {useSelector} from 'react-redux';
import {teamLeadJobDescriptions} from '../../redux/selectors';
import {logger} from '../../logger/Logger';
-import { AssociateListItem } from "./AssociateListItem";
+import {AssociateListItem} from './AssociateListItem';
//TODO: States to verify: No Data, Loading, Error (identify all types of errors), Success
export const Roster: React.FC<RosterProps> = (props) => {
| fixing lint | fixing lint
|
862810f3c61383fde95ec0cb92432aba4c3e17ff | --- __tests__/components/AssociateListItem.test.tsx
@@ -19,12 +19,12 @@ jest.mock('@walmart/allspark-foundation/Components/SharedComponents', () => ({
// Add this mock for gtp-shared-components
jest.mock('@walmart/gtp-shared-components', () => {
- const React = require('react');
+ const ReactMock = require('react');
return {
Body: ({children, ...props}) =>
- React.createElement('text', props, children),
+ ReactMock.createElement('text', props, children),
Link: ({children, ...props}) =>
- React.createElement('view', props, children),
+ ReactMock.createElement('view', props, children),
colors: {
gray: {
'160': '#000000',
@@ -39,7 +39,7 @@ jest.mock('@walmart/gtp-shared-components', () => {
},
},
Icons: {
- ClockIcon: () => React.createElement('view', {testID: 'clock-icon'}),
+ ClockIcon: () => ReactMock.createElement('view', {testID: 'clock-icon'}),
},
};
});
--- __tests__/components/ListEmptyComponent.test.tsx
@@ -5,12 +5,12 @@ import {ListEmptyComponentProps} from '../../src/components/EmptyList/types';
// Mock the ErrorMessage component from @walmart/gtp-shared-components
jest.mock('@walmart/gtp-shared-components', () => {
- const React = require('react');
+ const ReactMock = require('react');
const {View, Text} = require('react-native');
return {
ErrorMessage: ({children, title, UNSAFE_style, accessibilityRole}) =>
- React.createElement(
+ ReactMock.createElement(
View,
{
testID: 'ErrorMessage',
@@ -18,7 +18,7 @@ jest.mock('@walmart/gtp-shared-components', () => {
style: [{flex: 1, alignItems: 'center'}, UNSAFE_style],
},
[
- React.createElement(
+ ReactMock.createElement(
Text,
{
key: 'title',
@@ -38,7 +38,7 @@ jest.mock('@walmart/gtp-shared-components', () => {
},
title,
),
- React.createElement(
+ ReactMock.createElement(
Text,
{
key: 'content',
--- __tests__/components/RosterDetailPageHeader.test.tsx
@@ -3,12 +3,12 @@ import {renderWithProviders} from '../harness';
import {RosterDetailPageHeader} from '../../src/components/RosterDetailPageHeader';
jest.mock('@walmart/gtp-shared-components', () => {
- const React = require('react');
+ const ReactModule = require('react');
const ReactNative = require('react-native');
return {
Heading: ({children, UNSAFE_style, testID}) =>
- React.createElement(
+ ReactModule.createElement(
ReactNative.Text,
{
accessibilityRole: 'header',
@@ -18,7 +18,7 @@ jest.mock('@walmart/gtp-shared-components', () => {
children,
),
Link: ({children, UNSAFE_style, onPress, testID}) =>
- React.createElement(
+ ReactModule.createElement(
ReactNative.Text,
{
accessibilityRole: 'link',
@@ -42,10 +42,10 @@ jest.mock('@walmart/gtp-shared-components', () => {
});
jest.mock('@walmart/allspark-foundation/Components/context', () => {
- const React = require('react');
+ const ReactModule = require('react');
return {
useAllsparkImage: () => (props) =>
- React.createElement('Image', {
+ ReactModule.createElement('Image', {
...props,
source: props.source,
placeholder: props.placeholder,
--- __tests__/components/RosterFiltersAndInfo.test.tsx
@@ -117,6 +117,7 @@ describe('RosterFiltersAndInfo Component', () => {
handleFilter: jest.fn(),
totalScheduleCount: 100,
isPrimaryTeam: false,
+ onShiftChange: jest.fn(),
};
afterEach(() => {
@@ -167,7 +168,6 @@ describe('RosterFiltersAndInfo Component', () => {
);
expect(queryByTestId('viewWeeklyScheduleButton')).toBeNull();
});
-
it('disables the button when associates are empty', () => {
const newProps: RosterFiltersAndInfoProps = {
headerText: `Today's roster`,
@@ -177,8 +177,10 @@ describe('RosterFiltersAndInfo Component', () => {
handleFilter: jest.fn(),
totalScheduleCount: 0,
isPrimaryTeam: false,
+ onShiftChange: jest.fn(),
};
jest.spyOn(hooks, 'useRbacConfigWithJobCode').mockReturnValue(false);
+ jest.spyOn(hooks, 'useRbacConfigWithJobCode').mockReturnValue(false);
const {queryByTestId} = renderWithProviders(
<RosterFiltersAndInfo {...newProps} />,
| fix(bug): fix linting warnings | fix(bug): fix linting warnings
|
ded198a56d21a920c8ce55e80498cbab6afe6ce0 | --- package-lock.json
@@ -15697,6 +15697,11 @@
"integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
"dev": true
},
+ "paths-js": {
+ "version": "0.4.11",
+ "resolved": "https://npme.walmart.com/paths-js/-/paths-js-0.4.11.tgz",
+ "integrity": "sha512-3mqcLomDBXOo7Fo+UlaenG6f71bk1ZezPQy2JCmYHy2W2k5VKpP+Jbin9H0bjXynelTbglCqdFhSEkeIkKTYUA=="
+ },
"pbxproj-dom": {
"version": "1.2.0",
"resolved": "https://npme.walmart.com/pbxproj-dom/-/pbxproj-dom-1.2.0.tgz",
@@ -15762,6 +15767,11 @@
"resolved": "https://npme.walmart.com/pngjs/-/pngjs-3.4.0.tgz",
"integrity": "sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w=="
},
+ "point-in-polygon": {
+ "version": "1.1.0",
+ "resolved": "https://npme.walmart.com/point-in-polygon/-/point-in-polygon-1.1.0.tgz",
+ "integrity": "sha512-3ojrFwjnnw8Q9242TzgXuTD+eKiutbzyslcq1ydfu82Db2y+Ogbmyrkpv0Hgj31qwT3lbS9+QAAO/pIQM35XRw=="
+ },
"posix-character-classes": {
"version": "0.1.1",
"resolved": "https://npme.walmart.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
@@ -16299,6 +16309,16 @@
"xdate": "^0.8.0"
}
},
+ "react-native-chart-kit": {
+ "version": "6.6.1",
+ "resolved": "https://npme.walmart.com/react-native-chart-kit/-/react-native-chart-kit-6.6.1.tgz",
+ "integrity": "sha512-aYPqKW37CxOVnP6jWq+I7mQ4AWJ6kDvD2InMI143ShQCmOmWGMbykIgFZ3xs8KFCgQx8YUaPgnvayH9zuOP07Q==",
+ "requires": {
+ "lodash": "^4.17.13",
+ "paths-js": "^0.4.10",
+ "point-in-polygon": "^1.0.1"
+ }
+ },
"react-native-check-app-install": {
"version": "0.0.5",
"resolved": "https://npme.walmart.com/react-native-check-app-install/-/react-native-check-app-install-0.0.5.tgz",
--- package.json
@@ -120,6 +120,7 @@
"react-native-barcode-builder": "^2.0.0",
"react-native-a-beep": "1.1.0",
"react-native-biometrics": "^2.1.4",
+ "react-native-chart-kit": "6.6.1",
"react-native-check-app-install": "0.0.5",
"react-native-circular-progress": "^1.3.6",
"react-native-connect-sso-redux": "^1.1.1",
| updating missing dependency | updating missing dependency
|
10be701bda2a6c8f80f104627f95e598a5da13fa | --- package-lock.json
@@ -42,7 +42,7 @@
"@walmart/ask-sam-mini-app": "1.18.5",
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/avp-feature-app": "0.0.31",
- "@walmart/avp-shared-library": "0.0.52",
+ "@walmart/avp-shared-library": "0.0.53",
"@walmart/compass-sdk-rn": "5.18.15",
"@walmart/config-components": "4.2.13",
"@walmart/copilot-mini-app": "3.42.3",
@@ -8574,11 +8574,11 @@
}
},
"node_modules/@walmart/avp-shared-library": {
- "version": "0.0.52",
- "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.0.52.tgz",
- "integrity": "sha512-h2/ccGqmq/mzUDnWftUOdN3eRdEKakahh+yaUDk7pW/nLJ3beEm1xphi2iduBujyZInNSjq2fBAP6GK8HduqFA==",
+ "version": "0.0.53",
+ "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.0.53.tgz",
+ "integrity": "sha512-l65IsvS5OTHL/FO33gZsgHUl/lb/UoE7nZv07dMqTOWdODTw1S1Ym4L79ojt8/SeVKT2GIGUZXRlOGbfVonzRA==",
"license": "ISC",
- "dependencies": {
+ "peerDependencies": {
"axios": "^1.3.4",
"immer": "^9.0.16",
"moment": "^2.29.4",
@@ -33113,19 +33113,9 @@
}
},
"@walmart/avp-shared-library": {
- "version": "0.0.52",
- "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.0.52.tgz",
- "integrity": "sha512-h2/ccGqmq/mzUDnWftUOdN3eRdEKakahh+yaUDk7pW/nLJ3beEm1xphi2iduBujyZInNSjq2fBAP6GK8HduqFA==",
- "requires": {
- "axios": "~1.2.6",
- "immer": "^9.0.16",
- "moment": "^2.29.4",
- "react": "^18.2.0",
- "redux": "^4.2.0",
- "redux-saga": "^1.1.3",
- "reduxsauce": "^1.2.0",
- "reselect": "^4.1.7"
- }
+ "version": "0.0.53",
+ "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.0.53.tgz",
+ "integrity": "sha512-l65IsvS5OTHL/FO33gZsgHUl/lb/UoE7nZv07dMqTOWdODTw1S1Ym4L79ojt8/SeVKT2GIGUZXRlOGbfVonzRA=="
},
"@walmart/common-utilities-js": {
"version": "1.2.10",
--- package.json
@@ -83,7 +83,7 @@
"@walmart/ask-sam-mini-app": "1.18.5",
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/avp-feature-app": "0.0.31",
- "@walmart/avp-shared-library": "0.0.52",
+ "@walmart/avp-shared-library": "0.0.53",
"@walmart/compass-sdk-rn": "5.18.15",
"@walmart/config-components": "4.2.13",
"@walmart/copilot-mini-app": "3.42.3",
--- src/translations/en-US.ts
@@ -5,8 +5,8 @@ export const enUS_common = {
'@walmart/amp-mini-app': 'Amp',
'@walmart/ask-sam-mini-app': 'Ask Sam',
'@walmart/attendance-mini-app': 'Attendance',
- '@walmart/avp-feature-app': 'AVP feature app',
- '@walmart/avp-shared-library': 'AVP shared library',
+ '@walmart/avp-feature-app': 'AVP',
+ '@walmart/avp-shared-library': 'AVP shared',
'@walmart/copilot-mini-app': 'Copilot',
'@walmart/counts-component-miniapp': 'Counts',
'@walmart/emergency-mini-app': 'Emergency',
--- src/translations/es-MX.ts
@@ -5,8 +5,8 @@ export const esMX_common = {
'@walmart/amp-mini-app': 'Amp',
'@walmart/ask-sam-mini-app': 'Ask Sam',
'@walmart/attendance-mini-app': 'Attendance',
- '@walmart/avp-feature-app': 'AVP feature app',
- '@walmart/avp-shared-library': 'AVP shared library',
+ '@walmart/avp-feature-app': 'AVP',
+ '@walmart/avp-shared-library': 'AVP shared',
'@walmart/copilot-mini-app': 'Copilot',
'@walmart/counts-component-miniapp': 'Counts',
'@walmart/emergency-mini-app': 'Emergency',
| bumped the shared-library version and updated the text in translation for AVP | bumped the shared-library version and updated the text in translation for AVP
|
6c3ba2afe06bf19048fbb954c74a708c09d25b21 | --- packages/allspark-foundation/src/Feature/AllsparkFeatureModule.tsx
@@ -391,7 +391,13 @@ export class AllsparkFeatureModule<
// Add component to container if specified
if (containerId) {
- AllsparkComponentContainers.add(containerId, id, component);
+ if (Array.isArray(containerId)) {
+ containerId.forEach((cId) => {
+ AllsparkComponentContainers.add(cId, id, component);
+ });
+ } else {
+ AllsparkComponentContainers.add(containerId, id, component);
+ }
}
// Add component to shared if specified
@@ -699,7 +705,13 @@ export class AllsparkFeatureModule<
const { containerId } = components[id];
if (containerId) {
- AllsparkComponentContainers.remove(containerId, id);
+ if (Array.isArray(containerId)) {
+ containerId.forEach((cId) => {
+ AllsparkComponentContainers.remove(cId, id);
+ });
+ } else {
+ AllsparkComponentContainers.remove(containerId, id);
+ }
}
});
}
--- packages/allspark-foundation/src/Feature/types.ts
@@ -70,7 +70,9 @@ export type IAllsparkFeatureComponents = {
/**
* @description Signals component should be registered to a component container
*/
- containerId?: string;
+ containerId?:
+ | keyof Allspark.ComponentContainers
+ | (keyof Allspark.ComponentContainers)[];
/**
* @description If the component should be accessible via AllsparkSharedComponents
*/
| feat(feature): support multi container registration of components. add specific container id typing | feat(feature): support multi container registration of components. add specific container id typing
|
2bf9a3fdf7f4069fcbad9c247f6019573261b86e | --- packages/allspark-foundation-hub/src/SupplyChain/Hooks/useUpsertSupplyChainAssociatePreference.ts
@@ -31,6 +31,7 @@ export const useUpsertSupplyChainAssociatePreference = () => {
selectedShift?: string[] | undefined,
selectedTeams?: string[] | undefined
) => {
+ const selectedShifts = selectedShift?.filter(Boolean) || [];
return upsertSupplyChainAssociatePreferenceMutation({
variables: {
associatePreferencesInput: {
@@ -40,7 +41,7 @@ export const useUpsertSupplyChainAssociatePreference = () => {
mySupplyChainTeams: {
...mySupplyChainTeams,
businessUnitNumber: Number(site),
- shiftCodePreference: selectedShift ?? [],
+ shiftCodePreference: selectedShifts,
supplyChainTeamPreference: selectedTeams?.map(
(teamId: string) => ({
businessUnitNumber: Number(site),
| feat(ui): null check guard to shifts | feat(ui): null check guard to shifts
|
a6e7000b2388b4af8480f31605754ca8d6cf50b5 | --- package.json
@@ -65,7 +65,6 @@
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/allspark-health-survey-mini-app": "0.0.41",
"@walmart/allspark-home-mini-app": "0.4.24",
- "@walmart/metrics-mini-app": "0.4.6",
"@walmart/allspark-me-mini-app": "0.1.0",
"@walmart/ask-sam-mini-app": "0.30.6",
"@walmart/config-components": "^1.0.26",
@@ -79,6 +78,7 @@
"@walmart/inbox-mini-app": "0.0.98",
"@walmart/iteminfo-mini-app": "1.0.17",
"@walmart/manager-approvals-miniapp": "0.0.39",
+ "@walmart/metrics-mini-app": "0.4.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/push-to-talk-mini-app": "0.5.21",
"@walmart/react-native-env": "^0.1.0",
@@ -118,6 +118,7 @@
"react-native-get-random-values": "^1.5.1",
"react-native-haptic-feedback": "^1.10.0",
"react-native-htmlview": "^0.16.0",
+ "react-native-hyperlink": "0.0.19",
"react-native-linear-gradient": "^2.5.6",
"react-native-modal": "^11.5.6",
"react-native-pdf": "^6.2.0",
| Update package.json | Update package.json
|
1b165f64569e2e7a404a4dd3c3b1029d302f7291 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 122
+ versionCode 123
versionName "1.0.11"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>122</string>
+ <string>123</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
| Incrementing build number | Incrementing build number
|
f463c9471d372a861798d887ca33ac62a55fbd60 | --- packages/allspark-foundation/src/Components/Hub/TeamSwitcher/AddEditButton.tsx
@@ -1,11 +1,11 @@
-import React from 'react';
+import React, { useMemo } from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import { Icons, colors } from '@walmart/gtp-shared-components';
import { TeamSwitcherStyles } from './styles';
-const styles = TeamSwitcherStyles();
-
export const AddEditButton = () => {
+ const styles = useMemo(() => TeamSwitcherStyles(), []);
+
return (
<TouchableOpacity style={styles.buttonContainer} testID='add-edit-button'>
<View style={styles.button} testID='add-edit-icon'>
--- packages/allspark-foundation/src/Components/Hub/TeamSwitcher/VerticalDivider.tsx
@@ -1,9 +1,9 @@
-import React from 'react';
+import React, { useMemo } from 'react';
import { View } from 'react-native';
import { TeamSwitcherStyles } from './styles';
-const styles = TeamSwitcherStyles();
+export const VerticalDivider = () => {
+ const styles = useMemo(() => TeamSwitcherStyles(), []);
-export const VerticalDivider = () => (
- <View style={styles.divider} testID='vertical-divider' />
-);
+ return <View style={styles.divider} testID='vertical-divider' />;
+};
| feat: update style being defined in additional components | feat: update style being defined in additional components
|
0d7cea443cff0731ff788cf291a28fbba874517c | --- package-lock.json
@@ -58,7 +58,7 @@
"@walmart/gta-react-native-calendars": "0.1.0",
"@walmart/gtp-shared-components": "2.0.10",
"@walmart/impersonation-mini-app": "1.20.6",
- "@walmart/ims-print-services-ui": "2.7.3",
+ "@walmart/ims-print-services-ui": "2.7.4",
"@walmart/inbox-mini-app": "0.88.9",
"@walmart/iteminfo-mini-app": "7.6.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
@@ -8501,9 +8501,9 @@
}
},
"node_modules/@walmart/ims-print-services-ui": {
- "version": "2.7.3",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.3.tgz",
- "integrity": "sha512-wZIf4S2Vh4IHOXocsDZFeGJbPSyhyN2SpdbTzRjFNsWj94us4TnOXAM04oy/nrX3lUcrKR2CN3WupwhfqZ42PQ==",
+ "version": "2.7.4",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.4.tgz",
+ "integrity": "sha512-OygtObnpPMgwPpn37CFEYfaIoGkL6oCcr20Ye2g6CuJPICG/OeF+F+KjJApPnwr8JwmoyP8EhrbWrGE502aU3w==",
"peerDependencies": {
"@react-native-firebase/analytics": ">=10.5.1",
"@react-native-firebase/app": ">=10.5.0",
@@ -34353,9 +34353,9 @@
"integrity": "sha512-5qaxHHlwLNsI2QOghCAlp1FS3sE0bdJ9DOswgEClQgRdZwFTZTY1F1qWkLmWVdnZm3/k7BTE3RT/Ltfy0rbfxg=="
},
"@walmart/ims-print-services-ui": {
- "version": "2.7.3",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.3.tgz",
- "integrity": "sha512-wZIf4S2Vh4IHOXocsDZFeGJbPSyhyN2SpdbTzRjFNsWj94us4TnOXAM04oy/nrX3lUcrKR2CN3WupwhfqZ42PQ=="
+ "version": "2.7.4",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.4.tgz",
+ "integrity": "sha512-OygtObnpPMgwPpn37CFEYfaIoGkL6oCcr20Ye2g6CuJPICG/OeF+F+KjJApPnwr8JwmoyP8EhrbWrGE502aU3w=="
},
"@walmart/inbox-mini-app": {
"version": "0.88.9",
--- package.json
@@ -99,7 +99,7 @@
"@walmart/gta-react-native-calendars": "0.1.0",
"@walmart/gtp-shared-components": "2.0.10",
"@walmart/impersonation-mini-app": "1.20.6",
- "@walmart/ims-print-services-ui": "2.7.3",
+ "@walmart/ims-print-services-ui": "2.7.4",
"@walmart/inbox-mini-app": "0.88.9",
"@walmart/iteminfo-mini-app": "7.6.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
| Bump print UI version to 2.7.4 | Bump print UI version to 2.7.4
|
33ab0c36dc5d3b338ad6320bcf656dc61c20a83c | --- lerna.json
@@ -1,5 +1,5 @@
{
- "version": "6.28.1-alpha.0",
+ "version": "6.28.0",
"npmClient": "yarn",
"changelogPreset": "angular",
"command": {
| chore: bump package version for prerelease publish | chore: bump package version for prerelease publish
|
d44c29dc99a56b2bec9c056653ee12f4a78290a9 | --- packages/me-at-walmart-container/src/http/interceptors/performance.ts
@@ -11,6 +11,8 @@ export const PerformanceInterceptor: Interceptor = {
request.method || 'GET',
);
+ httpMetric.putAttribute("featureId", request.headers?.["x-http-client-feature-key"] || 'unknown');
+
// @ts-ignore - metadata not typed
request.metadata = {httpMetric};
| feature: add feature id http perf metric (#3979) | feature: add feature id http perf metric (#3979)
* feat: http performance metric scoped to feature id
* chore: fix unit tests
* refactor: custom perf attribute before metadata set |
19a544f39b075b29169e37385f6cf4c95bbf953d | --- package-lock.json
@@ -3187,13 +3187,14 @@
"integrity": "sha512-4VL2h7BKEZNP+QtIaYbQXJ6kpxZdeeCqTA3PvP1L933vlNsilF3y5RO9lCyMsTjWQ+AJ3Ww6gqC/oNDxjTvtGw=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.3.1",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.3.1.tgz",
- "integrity": "sha512-OSGbrKHLn6cw1wlcKdGmtXj9qH4kPnkw9FGMQZ3PCSc3OvM9ML3nNmVpch3f/tAOtsafnrJcZlecjjHN4kFTAg==",
+ "version": "0.3.2",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.3.2.tgz",
+ "integrity": "sha512-vW/2/tecEEcLFldrkp6xHgRgWjA/tIaDtDXeW91wboKiM4uRIsfJ0V9I+F8zJAzQMIieqwW0valQzDfyEkgGfQ==",
"requires": {
"@react-native-community/datetimepicker": "3.0.9",
"moment-timezone": "^0.5.31",
"react-native-geolocation-service": "^5.0.0",
+ "react-native-sound-player": "0.10.9",
"wfm-allspark-data-library": "^0.0.19"
},
"dependencies": {
| Update package lock | Update package lock
|
d1fe8ee9d1b0049baea41feada2f587113c18c88 | --- packages/allspark-foundation/__tests__/GraphQL/utils/sortDocumentNode.test.ts
@@ -0,0 +1,157 @@
+import { sortDocumentNode } from '../../../src/GraphQL/utils/sortDocumentNode';
+import { DocumentNode } from 'graphql';
+
+// filepath: packages/allspark-foundation/src/GraphQL/utils/sortDocumentNode.test.ts
+
+describe('sortDocumentNode', () => {
+ it('sorts variable definitions by variable name', () => {
+ const document: DocumentNode = {
+ kind: 'Document',
+ definitions: [
+ {
+ kind: 'OperationDefinition',
+ operation: 'query',
+ variableDefinitions: [
+ {
+ kind: 'VariableDefinition',
+ variable: {
+ kind: 'Variable',
+ name: { kind: 'Name', value: 'zVar' },
+ },
+ type: {
+ kind: 'NamedType',
+ name: { kind: 'Name', value: 'String' },
+ },
+ },
+ {
+ kind: 'VariableDefinition',
+ variable: {
+ kind: 'Variable',
+ name: { kind: 'Name', value: 'aVar' },
+ },
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
+ },
+ ],
+ selectionSet: { kind: 'SelectionSet', selections: [] },
+ },
+ ],
+ };
+
+ const sortedDocument = sortDocumentNode(document);
+
+ expect(
+ (sortedDocument.definitions[0] as any).variableDefinitions.map(
+ (v: any) => v.variable.name.value
+ )
+ ).toEqual(['aVar', 'zVar']);
+ });
+
+ it('sorts selection arguments by name', () => {
+ const document: DocumentNode = {
+ kind: 'Document',
+ definitions: [
+ {
+ kind: 'OperationDefinition',
+ operation: 'query',
+ selectionSet: {
+ kind: 'SelectionSet',
+ selections: [
+ {
+ kind: 'Field',
+ name: { kind: 'Name', value: 'testField' },
+ arguments: [
+ {
+ kind: 'Argument',
+ name: { kind: 'Name', value: 'zArg' },
+ value: { kind: 'StringValue', value: 'zValue' },
+ },
+ {
+ kind: 'Argument',
+ name: { kind: 'Name', value: 'aArg' },
+ value: { kind: 'StringValue', value: 'aValue' },
+ },
+ ],
+ },
+ ],
+ },
+ },
+ ],
+ };
+
+ const sortedDocument = sortDocumentNode(document);
+
+ expect(
+ (
+ (sortedDocument.definitions[0] as any).selectionSet.selections[0] as any
+ ).arguments.map((arg: any) => arg.name.value)
+ ).toEqual(['aArg', 'zArg']);
+ });
+
+ it('sorts selection fields by name', () => {
+ const document: DocumentNode = {
+ kind: 'Document',
+ definitions: [
+ {
+ kind: 'OperationDefinition',
+ operation: 'query',
+ selectionSet: {
+ kind: 'SelectionSet',
+ selections: [
+ {
+ kind: 'Field',
+ name: { kind: 'Name', value: 'zField' },
+ arguments: [],
+ },
+ {
+ kind: 'Field',
+ name: { kind: 'Name', value: 'aField' },
+ arguments: [],
+ },
+ ],
+ },
+ },
+ ],
+ };
+
+ const sortedDocument = sortDocumentNode(document);
+
+ expect(
+ (sortedDocument.definitions[0] as any).selectionSet.selections.map(
+ (selection: any) => selection.name.value
+ )
+ ).toEqual(['aField', 'zField']);
+ });
+
+ it('handles empty document gracefully', () => {
+ const document: DocumentNode = {
+ kind: 'Document',
+ definitions: [],
+ };
+
+ const sortedDocument = sortDocumentNode(document);
+
+ expect(sortedDocument).toEqual(document);
+ });
+
+ it('handles undefined arguments and selections gracefully', () => {
+ const document: DocumentNode = {
+ kind: 'Document',
+ definitions: [
+ {
+ kind: 'OperationDefinition',
+ operation: 'query',
+ selectionSet: {
+ kind: 'SelectionSet',
+ selections: [
+ { kind: 'Field', name: { kind: 'Name', value: 'testField' } },
+ ],
+ },
+ },
+ ],
+ };
+
+ const sortedDocument = sortDocumentNode(document);
+
+ expect(sortedDocument).toEqual(document);
+ });
+});
| test: sortDocumentNode | test: sortDocumentNode
|
2778149983eb5518d50cbf889bd8deb268b00a71 | --- src/containers/Message/index.tsx
@@ -168,7 +168,6 @@ export const Message = ({
disabled={isLongPressDisabled}
accessibilityRole={isLongPressDisabled ? 'text' : 'button'}
accessibilityLabel={getAccessibilityLabel()}
- accessibilityState={isLongPressDisabled ? {} : undefined}
>
<View
testID='messageBubbleAvatarContainer'
--- src/modals/ImagePreviewScreen.tsx
@@ -49,7 +49,7 @@ export const ImagePreviewScreen = ({
});
return (
- <View style={styles.container} accessibilityViewIsModal={true} accessible={false}>
+ <View style={styles.container} accessibilityViewIsModal={true} importantForAccessibility="no-hide-descendants">
<TouchableOpacity
ref={closeButtonRef}
testID='close-button'
--- src/modals/NewMessageScreen.tsx
@@ -115,9 +115,9 @@ export const NewMessageScreen = ({modal: {closeModal}}: any) => {
}
}, [refetch, warningAlertClickCount]);
return (
- <View ref={modalContainerRef} style={styles.newMessageScreenContainer} accessibilityViewIsModal={true}
- accessible={false}
- importantForAccessibility="yes">
+ <View ref={modalContainerRef} style={styles.newMessageScreenContainer}
+ accessibilityViewIsModal={true}
+ importantForAccessibility="no-hide-descendants">
<NewMessageHeader
title={t('newMessageScreen.title')}
closeModal={handleCloseModal}
| fix(wmconnect): apply ADA accessibility fixes for Android TalkBack and iOS VoiceOver | fix(wmconnect): apply ADA accessibility fixes for Android TalkBack and iOS VoiceOver
- Fixes SMDV-7780: Remove accessibilityState prop causing VoiceOver "dimmed" announcement
- Fixes SMDV-7813: Use importantForAccessibility="no-hide-descendants" for NewMessageScreen
- Fixes SMDV-7817: Use importantForAccessibility="no-hide-descendants" for ImagePreviewScreen
All fixes follow Walmart's validated React Native accessibility patterns and meet
WCAG 2.1 Level A standard 4.1.2 (Name, Role, Value).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
d82d5e58d842e35d1eeb6499ec042ecd0c36da0b | --- src/auth/ErrorScreen.tsx
@@ -46,6 +46,7 @@ export const ErrorScreen: FC<any> = (props) => {
const onSave = () => {
setFormDirty(true);
if (userId && siteId) {
+ const userIdValue = userId.split('.')[0];
navigation.goBack();
WmTelemetry.logEvent(SSO_APP, 'feedback_submitted', {
composite_app: appJson.displayName,
@@ -58,7 +59,7 @@ export const ErrorScreen: FC<any> = (props) => {
);
logger.error('SSO error while Login', {
message: detail || 'no details entered by the user',
- userId: encryptUserId(userId.toUpperCase(), siteId),
+ userId: encryptUserId(userIdValue.toUpperCase(), siteId),
siteId: siteId,
});
}
| removed store number | removed store number
(cherry picked from commit 884fa13901e5c8efbe690b764f6bda90cb019a4d)
|
c6df6641d95a31896ba8273380d27c42bcaf2476 | --- index.js
@@ -5,6 +5,8 @@ import 'react-native-get-random-values';
import 'intl';
import 'intl/locale-data/jsonp/en';
+import 'moment/locale/es';
+
import {AppRegistry} from 'react-native';
import {RootContainer} from './src/core/RootContainer';
import {name as appName} from './app.json';
--- package.json
@@ -82,10 +82,10 @@
"@walmart/functional-components": "1.0.34",
"@walmart/gta-react-native-calendars": "0.0.15",
"@walmart/gtp-shared-components": "1.2.0",
- "@walmart/iteminfo-mini-app": "4.0.7",
"@walmart/impersonation-mini-app": "1.0.27",
"@walmart/ims-print-services-ui": "0.1.11",
"@walmart/inbox-mini-app": "0.26.0",
+ "@walmart/iteminfo-mini-app": "4.0.7",
"@walmart/manager-approvals-miniapp": "0.0.59",
"@walmart/metrics-mini-app": "0.5.21",
"@walmart/moment-walmart": "1.0.4",
@@ -97,13 +97,13 @@
"@walmart/react-native-shared-navigation": "^0.4.0",
"@walmart/react-native-sumo-sdk": "2.1.0",
"@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.29.0",
"@walmart/schedule-mini-app": "0.11.0",
+ "@walmart/settings-mini-app": "1.6.0",
"@walmart/shelfavailability-mini-app": "0.8.1",
- "@walmart/ui-components": "1.3.0-rc.10",
+ "@walmart/taskit-mini-app": "0.169.0-rc.2",
"@walmart/time-clock-mini-app": "0.4.27",
+ "@walmart/ui-components": "1.3.0-rc.10",
"@walmart/welcomeme-mini-app": "0.44.0",
"@walmart/wfm-ui": "0.2.10",
"axios-cache-adapter": "2.7.3",
@@ -115,13 +115,14 @@
"jwt-decode": "^3.1.2",
"lodash": "^4.17.20",
"luxon": "^1.26.0",
+ "moment": "^2.29.1",
"namecase": "^1.1.2",
"react": "^17.0.2",
"react-i18next": "^11.7.3",
"react-native": "^0.66.4",
+ "react-native-a-beep": "1.1.0",
"react-native-background-timer": "^2.4.1",
"react-native-barcode-builder": "^2.0.0",
- "react-native-a-beep": "1.1.0",
"react-native-biometrics": "^2.1.4",
"react-native-chart-kit": "6.6.1",
"react-native-check-app-install": "0.0.5",
| manually importing moment es locale so release builds will function properly | manually importing moment es locale so release builds will function properly
|
cc75fe6a51c4a34a0e8248fdd4eb2c619f6f3e05 | --- package-lock.json
@@ -4263,9 +4263,9 @@
"integrity": "sha512-oaJp26HyCBzoqC3AHWqRtNhUuYnzhFoLl8dg/h3y6/Bk6uTbMAYmBolXRot2OeLoZgEWqD4cNnLdHQMy4ZS68g=="
},
"@walmart/iteminfo-mini-app": {
- "version": "4.0.5",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.5.tgz",
- "integrity": "sha512-kgl3GlkayRQya7G87jzA3Dal1B5nk2SiBVDhjrisCuaF6EjCNFopoy7YmRdJ7lKyeKpumnALgWKMYLMBYoKyjg=="
+ "version": "4.0.7",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.7.tgz",
+ "integrity": "sha512-P80O5hX4TmaBff/NUf508RYFgBYlCXGya56A1zquUNuqo3UDf/GmNT8DqBpLefBp42hzpAYaoH59YAXuHQeKBA=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.0.58",
--- package.json
@@ -82,7 +82,7 @@
"@walmart/functional-components": "1.0.34",
"@walmart/gta-react-native-calendars": "0.0.15",
"@walmart/gtp-shared-components": "1.2.0",
- "@walmart/iteminfo-mini-app": "4.0.5",
+ "@walmart/iteminfo-mini-app": "4.0.7",
"@walmart/impersonation-mini-app": "1.0.27",
"@walmart/ims-print-services-ui": "0.1.11",
"@walmart/inbox-mini-app": "0.24.0",
| 2 more minor issues inside item info | 2 more minor issues inside item info
|
6d711ccce3ec25d3b2f70458e503f6b33fc9f933 | --- packages/allspark-foundation-hub/src/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx
@@ -208,7 +208,6 @@ export const OnboardingScreen = () => {
);
}
- // Hello this is a new changeasdf
return (
<>
<ScrollView
| fix(bug): code cleanup | fix(bug): code cleanup
|
46ee9e3364c85d18fe777d8b6bb6dc01ebdc0c89 | --- package.json
@@ -63,7 +63,7 @@
"@redux-saga/testing-utils": "^1.1.3",
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
- "@walmart/ItemInfo": "0.1.127",
+ "@walmart/ItemInfo": "0.1.128",
"@walmart/allspark-health-survey-mini-app": "0.0.35",
"@walmart/allspark-home-mini-app": "0.4.0",
"@walmart/allspark-me-mini-app": "0.1.0",
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx
@@ -93,7 +93,8 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
} else {
StatusBar.setBarStyle('light-content', true);
if (remoteNavConfig?.length && !navConfig) {
- setNavConfig(remoteNavConfig);
+ // TODO: revert back to setNavConfig(remoteNavConfig);
+ setNavConfig([defaultConfig[0], ...remoteNavConfig ]);
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
| iteminfo 128 | iteminfo 128
|
f912de240877d415d9df513359649dc9142d498a | --- src/navigation/AssociateHallwayNav/Tabs/index.tsx
@@ -1,7 +1,7 @@
__DEV__ && console.log('loading main tabs nav');
import React from 'react';
import {useSelector} from 'react-redux';
-import {TouchableOpacity, Text, View, Image} from 'react-native';
+import {TouchableOpacity, Text, View} from 'react-native';
import {
BottomTabBarButtonProps,
BottomTabNavigationOptions,
@@ -35,7 +35,6 @@ import {Telemetry} from '../../../core/Telemetry';
import {getBottomNavConfigMap} from '../../../navConfig/NavConfigRedux';
import {getValueForCurrentLanguage} from '../../../transforms/language';
import {BottomTabNav} from '../../../navConfig/types';
-import {Images} from '../../../images';
import {withClockOutGuard} from '../../ClockOutGuard';
import {HomeStackNav} from './HomeStackNav';
import {MeStackNav} from './MeStackNav';
| Fixed linting issue | Fixed linting issue
|
48b3215b9f1bfbaf86a436087ba84d4c5e95cb20 | --- package-lock.json
@@ -53,7 +53,7 @@
"@walmart/gtp-shared-components": "2.0.4",
"@walmart/impersonation-mini-app": "1.18.1",
"@walmart/ims-print-services-ui": "2.1.2",
- "@walmart/inbox-mini-app": "0.83.2",
+ "@walmart/inbox-mini-app": "0.83.3",
"@walmart/iteminfo-mini-app": "7.1.4",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.3.0",
@@ -5333,9 +5333,9 @@
}
},
"node_modules/@walmart/inbox-mini-app": {
- "version": "0.83.2",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.83.2.tgz",
- "integrity": "sha512-PgFcGs1WAtkFqPEskTHHqiYNdKikGRttTPI7kDj9q+5id4uoXDvSS0iD7WC6R6g7ryTEp5iRi1IEdOI+4/q7Wg==",
+ "version": "0.83.3",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.83.3.tgz",
+ "integrity": "sha512-m5Fpb20Kg+67fCx8VoCYSCaTBGm2VY2D9IxGlnEAoVbaMtR/B2Z58lWU5Q7C4FBw/jfn/VnTiVAn5sMYZdVC6w==",
"dependencies": {
"@walmart/moment-walmart": "^1.0.4",
"@walmart/walmart-fiscal-week": "^0.3.6"
@@ -25286,9 +25286,9 @@
"integrity": "sha512-wLgzD/a0hpXo+hL9tgH860T5faXgbqWdjEFULLbpiNJds/tmltjBS4SfNPbzkifPc/sIkALbZZ+12g8znNvQcQ=="
},
"@walmart/inbox-mini-app": {
- "version": "0.83.2",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.83.2.tgz",
- "integrity": "sha512-PgFcGs1WAtkFqPEskTHHqiYNdKikGRttTPI7kDj9q+5id4uoXDvSS0iD7WC6R6g7ryTEp5iRi1IEdOI+4/q7Wg==",
+ "version": "0.83.3",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.83.3.tgz",
+ "integrity": "sha512-m5Fpb20Kg+67fCx8VoCYSCaTBGm2VY2D9IxGlnEAoVbaMtR/B2Z58lWU5Q7C4FBw/jfn/VnTiVAn5sMYZdVC6w==",
"requires": {
"@walmart/moment-walmart": "1.0.4",
"@walmart/walmart-fiscal-week": "^0.3.6"
--- package.json
@@ -95,7 +95,7 @@
"@walmart/gtp-shared-components": "2.0.4",
"@walmart/impersonation-mini-app": "1.18.1",
"@walmart/ims-print-services-ui": "2.1.2",
- "@walmart/inbox-mini-app": "0.83.2",
+ "@walmart/inbox-mini-app": "0.83.3",
"@walmart/iteminfo-mini-app": "7.1.4",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.3.0",
| incrementing inbox version | incrementing inbox version
|
870340778ae29c8adb0cb8a6b4820da788de1076 | --- 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.7.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.6.12...@walmart/my-walmart-hub@1.7.0) (2025-12-11)
+
+### Features
+
+- **ui:** useGetViewersPrimaryTeam bug fix ([#527](https://gecgithub01.walmart.com/allspark/allspark/issues/527)) ([4704df7](https://gecgithub01.walmart.com/allspark/allspark/commit/4704df77bb32dccc978b4544a43f09c8dd4474b3))
+
## [1.6.12](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.6.11...@walmart/my-walmart-hub@1.6.12) (2025-12-11)
**Note:** Version bump only for package @walmart/my-walmart-hub
--- packages/my-walmart-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/my-walmart-hub",
- "version": "1.6.12",
+ "version": "1.7.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/my-walmart-hub@1.7.0
|
7adb3c7686f98cc28b585edc99800e59648beee5 | --- package-lock.json
@@ -3188,9 +3188,9 @@
"integrity": "sha512-0sVdqnfYb2Z90rZpk8drAttxOFKAIR3fAvOvFlVWOyxtPPXrAACOFzoTx++gO5SO5vZ1w6IlMKe8uTi2rpCWTA=="
},
"@walmart/schedule-mini-app": {
- "version": "0.2.76",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.76.tgz",
- "integrity": "sha512-fFBvhVhJ0w/wldj3iyDfe6jw95bazPBi3R4g5d+3vDOazM89sFPYItaZSmSrlD5qn6BWFSLbHrh5GnhjePBVTA==",
+ "version": "0.2.77",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.77.tgz",
+ "integrity": "sha512-wk2oXbQXVMNFHoGM1oJ8+56o4xbAY7kbLoebHXNbw7tde6W5Oh3b3y8vdt/8uHzcdxhdJct1gYXbtfnKj6oOVw==",
"requires": {
"@walmart/moment-walmart": "^1.0.4",
"@walmart/wfm-ui": "0.1.50",
--- package.json
@@ -79,7 +79,7 @@
"@walmart/react-native-logger": "^1.26.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
"@walmart/redux-store": "^1.0.12",
- "@walmart/schedule-mini-app": "0.2.76",
+ "@walmart/schedule-mini-app": "0.2.77",
"@walmart/settings-mini-app": "1.2.3",
"@walmart/time-clock-mini-app": "0.3.4",
"@walmart/ui-components": "1.1.14",
| bump schedules | bump schedules
|
2f0ee822d4f7769e7dc1ff337c14fa488549c12e | --- packages/allspark-http-client/src/index.ts
@@ -10,6 +10,7 @@ export { HttpClient };
export * from './react';
export type {
+ RetryConfig,
RequestInterceptor,
ResponseInterceptor,
Interceptor,
| fix: add type to export | fix: add type to export
|
af2e62c3026e09494c3db02f9d9d016119196609 | --- src/containers/ChatInput/index.tsx
@@ -127,8 +127,8 @@ export const ChatInput = (props: {
const [audioDetails, setAudioDetails] = useState<RecordingDetails>();
const [uploadingResource, setUploadingResource] = useState(false);
const {textingState, dispatch} = useTextingReducer();
- const storeId = useSelector(SiteSelectors.getUserWorkingSite) ?? '1';
- const countryCode = useSelector(SiteSelectors.getSiteCountry) ?? 'us';
+ const storeId: string = useSelector(SiteSelectors.getUserWorkingSite) ?? '1';
+ const countryCode: string = useSelector(SiteSelectors.getSiteCountry) ?? 'us';
const handleInputChange = (value: string) => {
setText(value);
--- src/containers/UserHeader.tsx
@@ -20,8 +20,8 @@ const styles = StyleSheet.create({
});
export const UserHeader = () => {
- const userId = useSelector(UserSelectors.getUserId);
- const name = useSelector(UserSelectors.getUserName);
+ const userId: string = useSelector(UserSelectors.getUserId);
+ const name: string = useSelector(UserSelectors.getUserName);
const presence = useUserPresence(userId!, true);
--- src/containers/ChatInput/index.tsx
@@ -127,8 +127,8 @@ export const ChatInput = (props: {
const [audioDetails, setAudioDetails] = useState<RecordingDetails>();
const [uploadingResource, setUploadingResource] = useState(false);
const {textingState, dispatch} = useTextingReducer();
- const storeId = useSelector(SiteSelectors.getUserWorkingSite) ?? '1';
- const countryCode = useSelector(SiteSelectors.getSiteCountry) ?? 'us';
+ const storeId: string = useSelector(SiteSelectors.getUserWorkingSite) ?? '1';
+ const countryCode: string = useSelector(SiteSelectors.getSiteCountry) ?? 'us';
const handleInputChange = (value: string) => {
setText(value);
--- src/containers/UserHeader.tsx
@@ -20,8 +20,8 @@ const styles = StyleSheet.create({
});
export const UserHeader = () => {
- const userId = useSelector(UserSelectors.getUserId);
- const name = useSelector(UserSelectors.getUserName);
+ const userId: string = useSelector(UserSelectors.getUserId);
+ const name: string = useSelector(UserSelectors.getUserName);
const presence = useUserPresence(userId!, true);
| adding more explicit types | adding more explicit types
|
506175018fe37441de2038adbfc72f667da5d826 | --- package.json
@@ -92,7 +92,7 @@
"@walmart/backroom-mini-app": "1.12.0",
"@walmart/calling-mini-app": "0.7.60",
"@walmart/checkout-mini-app": "4.13.0",
- "@walmart/compass-sdk-rn": "6.2.17",
+ "@walmart/compass-sdk-rn": "6.2.845",
"@walmart/config-components": "4.9.3",
"@walmart/core-services": "~6.5.2",
"@walmart/core-services-allspark": "workspace:^",
@@ -416,7 +416,7 @@
"@walmart/allspark-utils": "6.5.3",
"@walmart/core-services-allspark": "workspace:^",
"@walmart/core-widget-registry": "workspace:^",
- "@walmart/compass-sdk-rn": "6.2.17",
+ "@walmart/compass-sdk-rn": "6.2.845",
"@walmart/me-at-walmart-common": "workspace:^",
"@walmart/me-at-walmart-container": "workspace:^",
"@walmart/moment-walmart": "1.0.4",
--- yarn.lock
@@ -7973,13 +7973,13 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/compass-sdk-rn@npm:6.2.17":
- version: 6.2.17
- resolution: "@walmart/compass-sdk-rn@npm:6.2.17::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcompass-sdk-rn%2F-%2F%40walmart%2Fcompass-sdk-rn-6.2.17.tgz"
+"@walmart/compass-sdk-rn@npm:6.2.845":
+ version: 6.2.845
+ resolution: "@walmart/compass-sdk-rn@npm:6.2.845::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcompass-sdk-rn%2F-%2F%40walmart%2Fcompass-sdk-rn-6.2.845.tgz"
peerDependencies:
react: "*"
react-native: "*"
- checksum: 10c0/44b9eed70b974a7ab54175fb32323156c31b14ab5bd62327f740f08f451bca510a8f594b87e4fa869bb8000e8eff1a0dd82ac6cba912576965fa2a7ec3205106
+ checksum: 10c0/fe6b49859b5e7b24bd7e3920feff6c37bc918e6ecc924b11468652b4ddd491c8168cf22adbc552256a0f883d898b5b5fc020debf13b8f0e9e24c5e7d4d64c6a2
languageName: node
linkType: hard
@@ -8638,7 +8638,7 @@ __metadata:
"@walmart/backroom-mini-app": "npm:1.12.0"
"@walmart/calling-mini-app": "npm:0.7.60"
"@walmart/checkout-mini-app": "npm:4.13.0"
- "@walmart/compass-sdk-rn": "npm:6.2.17"
+ "@walmart/compass-sdk-rn": "npm:6.2.845"
"@walmart/config-components": "npm:4.9.3"
"@walmart/core-services": "npm:~6.5.2"
"@walmart/core-services-allspark": "workspace:^"
| fix(compass): COM-4694 Positioning related bug fixes (#4347) | fix(compass): COM-4694 Positioning related bug fixes (#4347)
|
2e4844bd7f8e81b7b2de9f5c80690b6bbe07212c | --- src/utils/timestamps.ts
@@ -9,10 +9,9 @@ export const daysAgoTimestamp = (numDays: number) => {
);
};
-type translationFunction = TFunction;
export const channelRowTimeStamp = (
lastMessageTimeStamp: LastMessageTimeStamp,
- t: translationFunction,
+ t: TFunction,
) => {
const messageTimeStamp = moment(lastMessageTimeStamp);
const currentDate = moment();
--- src/utils/timestamps.ts
@@ -9,10 +9,9 @@ export const daysAgoTimestamp = (numDays: number) => {
);
};
-type translationFunction = TFunction;
export const channelRowTimeStamp = (
lastMessageTimeStamp: LastMessageTimeStamp,
- t: translationFunction,
+ t: TFunction,
) => {
const messageTimeStamp = moment(lastMessageTimeStamp);
const currentDate = moment();
| Removed extra variable | Removed extra variable
|
95281d9a6774833e768e85692b654e6e6b32c5e0 | --- __tests__/harness/redux/index.tsx
@@ -7,6 +7,9 @@ import {PreloadedState} from 'redux';
import {configureStore} from '@reduxjs/toolkit';
// @ts-ignore
import {initialStateMock} from './mockState';
+import {I18nextProvider, initReactI18next} from 'react-i18next';
+import i18n from 'i18next';
+import {enUS} from '../../../src/translations/en-US';
const rootReducer = reducerManager.getRootReducer();
@@ -24,6 +27,15 @@ export const setupStore = (preloadedState?: PreloadedState<RootState>) => {
});
};
+i18n.use(initReactI18next).init({
+ lng: 'en',
+ fallbackLng: 'en',
+ ns: ['texting'],
+ defaultNS: 'texting',
+ debug: true,
+ resources: {['en']: {texting: enUS}},
+});
+
export const renderWithProviders: typeof render = (
ui: React.ReactElement,
{
@@ -33,7 +45,11 @@ export const renderWithProviders: typeof render = (
}: ExtendedRenderOptions = {},
) => {
function Wrapper({children}: PropsWithChildren<{}>): React.ReactElement {
- return <Provider store={store}>{children}</Provider>;
+ return (
+ <I18nextProvider i18n={i18n}>
+ <Provider store={store}>{children}</Provider>
+ </I18nextProvider>
+ );
}
return {store, ...render(ui, {wrapper: Wrapper, ...renderOptions})};
};
--- __tests__/setup.ts
@@ -1,3 +1,9 @@
+import i18n from 'i18next';
+import 'react-native-gesture-handler/jestSetup';
+import {initReactI18next} from 'react-i18next';
+import {enUS} from '../src/translations/en-US';
+import {esMX} from '../src/translations/es-MX';
+
jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter');
jest.mock('@walmart/functional-components', () => {
const mockHttpClient = {
@@ -20,3 +26,4 @@ jest.mock('react-native-reanimated', () => {
return Reanimated;
});
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
+// ------ End
--- __tests__/harness/redux/index.tsx
@@ -7,6 +7,9 @@ import {PreloadedState} from 'redux';
import {configureStore} from '@reduxjs/toolkit';
// @ts-ignore
import {initialStateMock} from './mockState';
+import {I18nextProvider, initReactI18next} from 'react-i18next';
+import i18n from 'i18next';
+import {enUS} from '../../../src/translations/en-US';
const rootReducer = reducerManager.getRootReducer();
@@ -24,6 +27,15 @@ export const setupStore = (preloadedState?: PreloadedState<RootState>) => {
});
};
+i18n.use(initReactI18next).init({
+ lng: 'en',
+ fallbackLng: 'en',
+ ns: ['texting'],
+ defaultNS: 'texting',
+ debug: true,
+ resources: {['en']: {texting: enUS}},
+});
+
export const renderWithProviders: typeof render = (
ui: React.ReactElement,
{
@@ -33,7 +45,11 @@ export const renderWithProviders: typeof render = (
}: ExtendedRenderOptions = {},
) => {
function Wrapper({children}: PropsWithChildren<{}>): React.ReactElement {
- return <Provider store={store}>{children}</Provider>;
+ return (
+ <I18nextProvider i18n={i18n}>
+ <Provider store={store}>{children}</Provider>
+ </I18nextProvider>
+ );
}
return {store, ...render(ui, {wrapper: Wrapper, ...renderOptions})};
};
--- __tests__/setup.ts
@@ -1,3 +1,9 @@
+import i18n from 'i18next';
+import 'react-native-gesture-handler/jestSetup';
+import {initReactI18next} from 'react-i18next';
+import {enUS} from '../src/translations/en-US';
+import {esMX} from '../src/translations/es-MX';
+
jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter');
jest.mock('@walmart/functional-components', () => {
const mockHttpClient = {
@@ -20,3 +26,4 @@ jest.mock('react-native-reanimated', () => {
return Reanimated;
});
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
+// ------ End
| adding i18n to unit tests | adding i18n to unit tests
|
9417ab873367c1b1fe8fab9ce7c24160cc0f01b7 | --- lerna.json
@@ -1,5 +1,5 @@
{
- "version": "6.27.0-alpha.0",
+ "version": "6.28.0",
"npmClient": "yarn",
"changelogPreset": "angular",
"command": {
| chore: bump packages for drop 28 | chore: bump packages for drop 28
|
6d4f29301eab43caebdee74f642e6628012d1faa | --- package.json
@@ -140,7 +140,7 @@
"@walmart/react-native-webex-sdk": "0.8.40",
"@walmart/receipt-check-miniapp": "1.30.2",
"@walmart/redux-store": "~6.3.28",
- "@walmart/returns-mini-app": "4.16.7",
+ "@walmart/returns-mini-app": "4.16.8",
"@walmart/rfid-scan-mini-app": "2.10.4",
"@walmart/rn-mobile-sdk-pairing": "2.1.8",
"@walmart/rn-receiving-mini-app": "2.4.85",
--- yarn.lock
@@ -8314,7 +8314,7 @@ __metadata:
"@walmart/react-native-webex-sdk": "npm:0.8.40"
"@walmart/receipt-check-miniapp": "npm:1.30.2"
"@walmart/redux-store": "npm:~6.3.28"
- "@walmart/returns-mini-app": "npm:4.16.7"
+ "@walmart/returns-mini-app": "npm:4.16.8"
"@walmart/rfid-scan-mini-app": "npm:2.10.4"
"@walmart/rn-mobile-sdk-pairing": "npm:2.1.8"
"@walmart/rn-receiving-mini-app": "npm:2.4.85"
@@ -8928,9 +8928,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/returns-mini-app@npm:4.16.7":
- version: 4.16.7
- resolution: "@walmart/returns-mini-app@npm:4.16.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freturns-mini-app%2F-%2F%40walmart%2Freturns-mini-app-4.16.7.tgz"
+"@walmart/returns-mini-app@npm:4.16.8":
+ version: 4.16.8
+ resolution: "@walmart/returns-mini-app@npm:4.16.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freturns-mini-app%2F-%2F%40walmart%2Freturns-mini-app-4.16.8.tgz"
dependencies:
"@walmart/common-utilities-js": "npm:^1.2.10"
"@walmart/virtual-zpl-printer-model": "npm:^0.2.11"
@@ -8956,7 +8956,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/5c315ab10147ec975624ae29f6f4bb4ccc0e41c758ad2e60ddd87d9b3f1b16c2ce28bbe4384d8dda04fd95a5986476de7aabe64072dfcf5c209a3c97d44c1bf3
+ checksum: 10c0/776ee5fea8d1fb621bd5764b66bc9be0351def92b3701571d800891b572e795de7e768cf896c8e332f8bbdb68f5b5c560e21daee4deb70bf2abd577ca87e71cc
languageName: node
linkType: hard
| fix: SRC-550 Accessibility bug fixes (#4173) | fix: SRC-550 Accessibility bug fixes (#4173)
* fix: SRC-550 Accessibility bug fixes
* fix(rwm a11y accessibility bug fixes): SRC-550 rwm a11y ada bug fixes
---------
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
Co-authored-by: Shwetha Gurunath - s0g0fma <Shwetha.Gurunath@walmart.com> |
209862989e90226187479c0c9a802f8e704f11b5 | --- jest.config.js
@@ -11,7 +11,7 @@ module.exports = {
coverageThreshold: {
global: {
statements: 88,
- branches: 80,
+ branches: 83,
functions: 79,
lines: 88,
},
| revert branches target coverage | revert branches target coverage
|
0fa461b4c0e2ba64bf9366cd67e60a0748f61d87 | --- package-lock.json
@@ -3082,9 +3082,9 @@
"integrity": "sha512-7QKyLMpYGKM8/bdbhtkehZ3qG+EY4qbsTxln64eWso/hBFirAAelhzR1wGm0VITOvDetFrGbSNnqpow+lJFiAw=="
},
"@walmart/inbox-mini-app": {
- "version": "0.0.44",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.44.tgz",
- "integrity": "sha512-weC5F3c6hgcHMjiqQi/2UocvJrxDqb8+dzK1HmeCZdDG1aehbcuX3ZhiiY4crKvGXqQshh40TXML21WAVqFc3g=="
+ "version": "0.0.50",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.50.tgz",
+ "integrity": "sha512-LTLPceLwlT4vnfMW1hPWz7ctNnlNO5QsScl1dNZanezRJbAX89XH3hcWsv1wTmSO1C9YqOWs9numFLJDaP0zgA=="
},
"@walmart/moment-walmart": {
"version": "1.0.4",
--- package.json
@@ -55,7 +55,7 @@
"@walmart/functional-components": "^1.0.22",
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/impersonation-mini-app": "1.0.9",
- "@walmart/inbox-mini-app": "0.0.44",
+ "@walmart/inbox-mini-app": "0.0.50",
"@walmart/moment-walmart": "1.0.4",
"@walmart/push-to-talk-mini-app": "0.0.86",
"@walmart/react-native-env": "^0.1.0",
| inbox mini app version bump (#325) | inbox mini app version bump (#325)
Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com> |
bcec0b82441e256e2b915dbdfd743d15d923ffb9 | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.0.16-alpha-2",
+ "version": "1.0.16-alpha-3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/myteam-mini-app",
- "version": "1.0.16-alpha-2",
+ "version": "1.0.16-alpha-3",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.20.0",
@@ -65,9 +65,9 @@
"@walmart/react-native-scanner-3.0": "0.4.2",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-sumo-sdk": "2.6.0",
- "@walmart/roster-mini-app": "1.0.17-alpha-2",
+ "@walmart/roster-mini-app": "1.0.17-alpha-3",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "1.0.16-alpha-2",
+ "@walmart/wmconnect-mini-app": "1.0.16-alpha-3",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
@@ -11815,9 +11815,9 @@
}
},
"node_modules/@walmart/roster-mini-app": {
- "version": "1.0.17-alpha-2",
- "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.17-alpha-2.tgz",
- "integrity": "sha512-TMMqqKxLNGHqKx6KDTYQ8D6x5Gl3hR1MnMDCRbAL6RhHbAJlLmvrz9ShpVfL9WWm+BtcNWV8XEBDNbDMt2SGrg==",
+ "version": "1.0.17-alpha-3",
+ "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.17-alpha-3.tgz",
+ "integrity": "sha512-zNC8lZ2+rvg4MWWBmvbwMn8GxXBBieQfR8lXgvMG2sw/s1kSUINnWvBRq7jOrxBmQoOk+bADSV43EYohxv1POw==",
"dev": true,
"hasInstallScript": true
},
@@ -11844,9 +11844,9 @@
}
},
"node_modules/@walmart/wmconnect-mini-app": {
- "version": "1.0.16-alpha-2",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-2.tgz",
- "integrity": "sha512-YtaYJqZ6jxsMdYo3aLjBP1DEKj9NX1lcSAkg88vYuvVBeI7/AWzN3vVfgVkimIRg/r/vaA/ibwjshhpjHR5GKA==",
+ "version": "1.0.16-alpha-3",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-3.tgz",
+ "integrity": "sha512-WLqcrS9vV32U6a6T1R5s5WD4VHLqe2u2abmN9KYz/iuXlORVu08yAmTIXYYwNGuXYHD1Q7CD6d9Ms+QeBMnFRA==",
"dev": true,
"hasInstallScript": true
},
@@ -41047,9 +41047,9 @@
}
},
"@walmart/roster-mini-app": {
- "version": "1.0.17-alpha-2",
- "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.17-alpha-2.tgz",
- "integrity": "sha512-TMMqqKxLNGHqKx6KDTYQ8D6x5Gl3hR1MnMDCRbAL6RhHbAJlLmvrz9ShpVfL9WWm+BtcNWV8XEBDNbDMt2SGrg==",
+ "version": "1.0.17-alpha-3",
+ "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.17-alpha-3.tgz",
+ "integrity": "sha512-zNC8lZ2+rvg4MWWBmvbwMn8GxXBBieQfR8lXgvMG2sw/s1kSUINnWvBRq7jOrxBmQoOk+bADSV43EYohxv1POw==",
"dev": true
},
"@walmart/ui-components": {
@@ -41064,9 +41064,9 @@
}
},
"@walmart/wmconnect-mini-app": {
- "version": "1.0.16-alpha-2",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-2.tgz",
- "integrity": "sha512-YtaYJqZ6jxsMdYo3aLjBP1DEKj9NX1lcSAkg88vYuvVBeI7/AWzN3vVfgVkimIRg/r/vaA/ibwjshhpjHR5GKA==",
+ "version": "1.0.16-alpha-3",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-3.tgz",
+ "integrity": "sha512-WLqcrS9vV32U6a6T1R5s5WD4VHLqe2u2abmN9KYz/iuXlORVu08yAmTIXYYwNGuXYHD1Q7CD6d9Ms+QeBMnFRA==",
"dev": true
},
"@whatwg-node/events": {
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.0.16-alpha-2",
+ "version": "1.0.16-alpha-3",
"private": false,
"main": "dist/index.js",
"files": [
@@ -88,8 +88,8 @@
"@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.16-alpha-2",
- "@walmart/roster-mini-app": "1.0.17-alpha-2",
+ "@walmart/wmconnect-mini-app": "1.0.16-alpha-3",
+ "@walmart/roster-mini-app": "1.0.17-alpha-3",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
| Update version | Update version
|
9bf3f8264a6786f3c1ebd40ea6d9fed139fc7333 | --- packages/allspark-foundation/src/utils/DynamicServiceCreator.tsx
@@ -13,7 +13,7 @@ export type AnyService = Record<
* that aren't defined on the original service type T.
*/
export const DynamicServiceCreator = <T extends AnyService, I extends T = T>(
- name: string,
+ _: string,
transform?: (implementation: T) => I
) => {
let isConnected = false;
| chore: lint fix | chore: lint fix
|
a45deb1a6332c565a64409760e6a5d9108c6be72 | --- package.json
@@ -99,7 +99,7 @@
"@walmart/inbox-mini-app": "0.84.1",
"@walmart/iteminfo-mini-app": "7.3.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
- "@walmart/me-field-mini-app": "12.0.27",
+ "@walmart/me-field-mini-app": "13.0.2",
"@walmart/metrics-mini-app": "0.12.10",
"@walmart/mod-flex-mini-app": "1.9.4",
"@walmart/moment-walmart": "1.0.4",
| Update package.json | Update package.json |
6c04e5b7bc871f86911a4dfda1a1ae56eaf4ef5b | --- package-lock.json
@@ -20502,9 +20502,9 @@
"integrity": "sha512-+4vPVbvtT+kRUtKIIJIjmL/bqefoUTAZ7CoiYhiwf+9zumrM+CxfVLmSGDwNtxjrOOfHQTXZhXf5TZO3nNVQZQ=="
},
"react-native-webview": {
- "version": "10.7.0",
- "resolved": "https://npme.walmart.com/react-native-webview/-/react-native-webview-10.7.0.tgz",
- "integrity": "sha512-4TSYwJqMBUTKB9+xqGbPwx+eLXbp6RRD7lQ2BumT8eSTfuuqr2rXNqcrlKU1VRla7QGGYowmYmxl2aXIx5k9wA==",
+ "version": "10.10.0",
+ "resolved": "https://npme.walmart.com/react-native-webview/-/react-native-webview-10.10.0.tgz",
+ "integrity": "sha512-T0AnZ0LVhaFBqZpl5attDDYo83zqdFRsFVINbrgHaIm6w5r0d/QK/dJRgXRNyFhn1fSONhe0ejdcnCYCT73B6g==",
"requires": {
"escape-string-regexp": "2.0.0",
"invariant": "2.2.4"
--- package.json
@@ -192,7 +192,7 @@
"react-native-video": "^5.1.0-alpha8",
"react-native-view-shot": "^3.1.2",
"react-native-vision-camera": "1.0.10",
- "react-native-webview": "^10.7.0",
+ "react-native-webview": "10.10.0",
"react-native-wm-app-review": "0.3.0",
"react-native-wm-barcode": "2.36.6",
"react-native-wm-config": "^0.1.1",
| RN webview version upgrade back to drop 8 ver | RN webview version upgrade back to drop 8 ver
|
81733a7da9d3fa77ba66ce6a20b39d05a9dea115 | --- package-lock.json
@@ -3362,9 +3362,9 @@
"integrity": "sha512-obMi22nJz2FN8CWuJ/0ekV9pKMRQJz0u4qiX5lQTAv6yOVUmtJtksvErLAlZtc+ACiLUakj2EiRyw1bUcN+YNQ=="
},
"@walmart/ims-print-services-ui": {
- "version": "0.0.31",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.0.31.tgz",
- "integrity": "sha512-sOCKZYWFegHp47LQg4AZMbqxFHwi0DZfp1qf+gueOJKMhB7VCbt0/1TRFrHmfw9GCS7a58Kg6rNgKsivNEGuRw=="
+ "version": "0.0.32",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.0.32.tgz",
+ "integrity": "sha512-7awLRsOjpMuAT6khSXmSHxNJECj7uZ17rWzfNkql4QSXOGGpbBm+42Fib4PKcLt2ZGefbB8grTOXnS3DirO5Cw=="
},
"@walmart/inbox-mini-app": {
"version": "0.0.105",
@@ -3372,9 +3372,9 @@
"integrity": "sha512-cKvZIhfn+NPDhdwFONeRyOmj81FOh7Qmne00KJ4gah40L3T2cWvNR1lXRmC0ORLQ/cK0orrDvXfVpVTIa06CKQ=="
},
"@walmart/iteminfo-mini-app": {
- "version": "2.0.2",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.2.tgz",
- "integrity": "sha512-kCI7qJeCC9+PLqPTtCIWhDdJN+O4gTp9Tu8lGCfASlZL+wz0g+2+ps2bHv3ZCtcQhXVkjphC4ie0LWRLxnMAkQ==",
+ "version": "2.0.3",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.3.tgz",
+ "integrity": "sha512-73lhU+Ofyozf3Mrfp7sL+KEOX+iJvIZAuunfVPG6YLyMtcdr2bRbFxWSNF0orCRuN2mIe+WPPLYBymCNcvGgLw==",
"requires": {
"react-native-chart-kit": "6.6.1"
}
--- package.json
@@ -74,9 +74,9 @@
"@walmart/functional-components": "1.0.31",
"@walmart/gtp-shared-components": "^1.2.0",
"@walmart/impersonation-mini-app": "1.0.18",
- "@walmart/ims-print-services-ui": "0.0.31",
+ "@walmart/ims-print-services-ui": "0.0.32",
"@walmart/inbox-mini-app": "0.0.105",
- "@walmart/iteminfo-mini-app": "2.0.2",
+ "@walmart/iteminfo-mini-app": "2.0.3",
"@walmart/manager-approvals-miniapp": "0.0.46",
"@walmart/metrics-mini-app": "0.4.11",
"@walmart/moment-walmart": "1.0.4",
| Bumping packages ItemInfo 2.0.3 Print 0.0.32 | Bumping packages ItemInfo 2.0.3 Print 0.0.32
|
92cd00cbc278e7d7d559cdca7326bdec4c68eda7 | --- package-lock.json
@@ -43,7 +43,7 @@
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/compass-sdk-rn": "5.18.9",
"@walmart/config-components": "4.2.13",
- "@walmart/copilot-mini-app": "^3.37.3",
+ "@walmart/copilot-mini-app": "^3.39.1",
"@walmart/core-services": "~2.3.0",
"@walmart/core-services-allspark": "~2.13.4",
"@walmart/core-utils": "~2.0.5",
@@ -8592,9 +8592,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "3.37.3",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.37.3.tgz",
- "integrity": "sha512-2Ibe4X+BbLLcgcJ87BENctAuSzj5MOSdInSzh8hpxSdXV8q9emWK1qTsNKnpxjMfUR45qcjm3GaUVeaqvJeq6Q==",
+ "version": "3.39.1",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.39.1.tgz",
+ "integrity": "sha512-lK2gdydTpmnfWMj9/2DLk8leGPSsmV4IFpqRvV5kaIzouRagMxxBqlgCymUsRc5EueI3WcqWISXMH3UWMLbwhQ==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -33223,9 +33223,9 @@
}
},
"@walmart/copilot-mini-app": {
- "version": "3.37.3",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.37.3.tgz",
- "integrity": "sha512-2Ibe4X+BbLLcgcJ87BENctAuSzj5MOSdInSzh8hpxSdXV8q9emWK1qTsNKnpxjMfUR45qcjm3GaUVeaqvJeq6Q=="
+ "version": "3.39.1",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.39.1.tgz",
+ "integrity": "sha512-lK2gdydTpmnfWMj9/2DLk8leGPSsmV4IFpqRvV5kaIzouRagMxxBqlgCymUsRc5EueI3WcqWISXMH3UWMLbwhQ=="
},
"@walmart/core-services": {
"version": "2.3.2",
--- package.json
@@ -84,7 +84,7 @@
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/compass-sdk-rn": "5.18.9",
"@walmart/config-components": "4.2.13",
- "@walmart/copilot-mini-app": "^3.33.8",
+ "@walmart/copilot-mini-app": "3.39.1",
"@walmart/core-services": "~2.3.0",
"@walmart/core-services-allspark": "~2.13.4",
"@walmart/core-utils": "~2.0.5",
| chore: bump copilot@3.39.1 | chore: bump copilot@3.39.1
|
84fd896867f0c03383faf009a8ebc7c1af6c7c29 | --- yarn.lock
@@ -6736,24 +6736,6 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-graphql-client@npm:6.3.29":
- version: 6.3.29
- resolution: "@walmart/allspark-graphql-client@npm:6.3.29::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-graphql-client%2F-%2Fallspark-graphql-client-6.3.29.tgz"
- peerDependencies:
- "@walmart/allspark-foundation": "*"
- checksum: 10c0/3a7890486780c06ef9621a39a829c5587eaf91f6274d58339001d8b2db84a5dce672ad27fdd5275f4fc6126428aba0f11a0e98a18b99e02fa979dd08b93b4493
- languageName: node
- linkType: hard
-
-"@walmart/allspark-http-client@npm:6.3.29":
- version: 6.3.29
- resolution: "@walmart/allspark-http-client@npm:6.3.29::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-http-client%2F-%2Fallspark-http-client-6.3.29.tgz"
- peerDependencies:
- "@walmart/allspark-foundation": "*"
- checksum: 10c0/fa6b22721f17dd125d2c777773ed838292c450e37a1c7a520209a17e038612b9d9462b4197ac07d0af09725f26a3f4d3969c3ce6aa158801761a8628973a4586
- languageName: node
- linkType: hard
-
"@walmart/allspark-utils@npm:6.5.1":
version: 6.5.1
resolution: "@walmart/allspark-utils@npm:6.5.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-utils%2F-%2Fallspark-utils-6.5.1.tgz"
@@ -6805,37 +6787,6 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/core-services-allspark@npm:6.29.0-alpha.0":
- version: 6.29.0-alpha.0
- resolution: "@walmart/core-services-allspark@npm:6.29.0-alpha.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcore-services-allspark%2F-%2Fcore-services-allspark-6.29.0-alpha.0.tgz"
- peerDependencies:
- "@walmart/allspark-foundation": ">=6.26.0"
- "@walmart/me-at-walmart-common": "workspace:^"
- "@walmart/me-at-walmart-container": "workspace:^"
- checksum: 10c0/b9753a6376722422734a92b2f6e146e81e2dc798a43f82574112ed928e96ac52b15c2212438c3b66db1e40e3d7b6b0c0253e33f22252be6a6162ec840c1cfe9d
- languageName: node
- linkType: hard
-
-"@walmart/core-services@npm:6.5.3":
- version: 6.5.3
- resolution: "@walmart/core-services@npm:6.5.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcore-services%2F-%2Fcore-services-6.5.3.tgz"
- peerDependencies:
- "@walmart/allspark-foundation": "*"
- "@walmart/allspark-utils": "*"
- "@walmart/me-at-walmart-common": "*"
- checksum: 10c0/93a98b879fe7d61d0a404522e9db76afd7cf97d0f92094a3a6fdb51ffe6f55828070a42c0c457a8048bb00094ddd6ab551542b0222425c4040fcbf3a8bc0f564
- languageName: node
- linkType: hard
-
-"@walmart/core-utils@npm:6.3.10":
- version: 6.3.10
- resolution: "@walmart/core-utils@npm:6.3.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcore-utils%2F-%2Fcore-utils-6.3.10.tgz"
- peerDependencies:
- "@walmart/allspark-utils": "*"
- checksum: 10c0/e6cd72b6ed7efe0f6bffe02f154766fc90ccb24550c6ccee6908cae14a03528aaf609bd7ab988f1dba05f788758009be20e3e139ccd28a0c2c7466fbb9cfaeae
- languageName: node
- linkType: hard
-
"@walmart/expo-config-plugins@npm:0.1.4":
version: 0.1.4
resolution: "@walmart/expo-config-plugins@npm:0.1.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fexpo-config-plugins%2F-%2F%40walmart%2Fexpo-config-plugins-0.1.4.tgz"
@@ -6975,15 +6926,6 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/react-native-shared-navigation@npm:6.1.4":
- version: 6.1.4
- resolution: "@walmart/react-native-shared-navigation@npm:6.1.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-shared-navigation%2F-%2Freact-native-shared-navigation-6.1.4.tgz"
- peerDependencies:
- "@walmart/allspark-foundation": "*"
- checksum: 10c0/a2760447012b10da6630b46b8fbb4664d2a9ef3489dce6510197021d6792dda0907690117d2256df4431ab59119392992f16f54321a5428171ad0eb34820c879
- languageName: node
- linkType: hard
-
"@walmart/react-native-sumo-sdk@npm:2.8.0":
version: 2.8.0
resolution: "@walmart/react-native-sumo-sdk@npm:2.8.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-sumo-sdk%2F-%2F%40walmart%2Freact-native-sumo-sdk-2.8.0.tgz"
@@ -6994,16 +6936,6 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/redux-store@npm:6.3.29":
- version: 6.3.29
- resolution: "@walmart/redux-store@npm:6.3.29::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fredux-store%2F-%2Fredux-store-6.3.29.tgz"
- peerDependencies:
- "@walmart/allspark-foundation": "*"
- "@walmart/me-at-walmart-common": "*"
- checksum: 10c0/b4ebf30bb6179144b5d4ff4a98e3a619a8319d1ba43a009870ea23cf9c916d924db09ffa0be46ccd1f075b1b5ceee53d0f2da676c5f39192ee3a4399f70e61ec
- languageName: node
- linkType: hard
-
"@walmart/roster-mini-app@workspace:.":
version: 0.0.0-use.local
resolution: "@walmart/roster-mini-app@workspace:."
@@ -7048,13 +6980,8 @@ __metadata:
"@walmart/allspark-authentication": "npm:6.4.1"
"@walmart/allspark-foundation": "npm:^6.32.0"
"@walmart/allspark-foundation-hub": "npm:latest"
- "@walmart/allspark-graphql-client": "npm:6.3.29"
- "@walmart/allspark-http-client": "npm:6.3.29"
"@walmart/allspark-utils": "npm:6.5.1"
"@walmart/config-components": "npm:4.6.5"
- "@walmart/core-services": "npm:6.5.3"
- "@walmart/core-services-allspark": "npm:6.29.0-alpha.0"
- "@walmart/core-utils": "npm:6.3.10"
"@walmart/expo-config-plugins": "npm:0.1.4"
"@walmart/gtp-shared-components": "npm:2.2.4"
"@walmart/me-at-walmart-athena-queries": "npm:6.26.1"
@@ -7063,9 +6990,7 @@ __metadata:
"@walmart/react-native-encrypted-storage": "npm:~1.1.3"
"@walmart/react-native-logger": "npm:1.35.0"
"@walmart/react-native-scanner-3.0": "npm:0.10.4"
- "@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
- "@walmart/redux-store": "npm:6.3.29"
"@walmart/ui-components": "npm:1.15.1"
"@walmart/wmconnect-mini-app": "npm:2.36.2"
babel-jest: "npm:^29.6.3"
| Adding yarn.lock file changes | Adding yarn.lock file changes
|
6ef0c0abfa9e7b874aade45a42d2e6ad268d317f | --- package-lock.json
@@ -5607,9 +5607,9 @@
"integrity": "sha512-vX4PWvt7QJvyd8cTmuBpITXVmHgCJ4ifkSsRSzFpK1fGZyfJaJn+pTP+h7XfQivQYCsIiB3Nm+tF12EXFJPBzg=="
},
"@walmart/shelfavailability-mini-app": {
- "version": "1.2.4",
- "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-1.2.4.tgz",
- "integrity": "sha512-+2MW/LQi8PqCiPpJXBs2uvhOa4mMKwHcjp3m4XpA8fVtndQLd76C0FivBSqOvAZgBoQc1DYRbVMdqM9nkCdy6Q=="
+ "version": "1.2.6",
+ "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-1.2.6.tgz",
+ "integrity": "sha512-Y32/EH9Dk8y3H43r3/hlIB12cYvA761Mh71kZ3oKKv40Fp/h/BmeeJwVo4+H1oGMTGA3V6D72yffTJFRTfhbKw=="
},
"@walmart/taskit-mini-app": {
"version": "0.34.5-beta.6",
--- package.json
@@ -119,7 +119,7 @@
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
"@walmart/schedule-mini-app": "0.25.0",
"@walmart/settings-mini-app": "1.10.0",
- "@walmart/shelfavailability-mini-app": "1.2.4",
+ "@walmart/shelfavailability-mini-app": "1.2.6",
"@walmart/taskit-mini-app": "0.34.5-beta.6",
"@walmart/time-clock-mini-app": "0.22.0",
"@walmart/ui-components": "1.5.0-rc.1",
| SA-268 bugfix for SA service call issue (v0.9.2) | SA-268 bugfix for SA service call issue (v0.9.2)
|
0457bc840b49fe1a0ad917d07333638f6f15743a | --- package-lock.json
@@ -57,7 +57,7 @@
"@walmart/core-services-allspark": "6.0.7",
"@walmart/core-utils": "6.0.7",
"@walmart/core-widget-registry": "6.0.7",
- "@walmart/counts-component-miniapp": "0.1.10",
+ "@walmart/counts-component-miniapp": "0.1.11",
"@walmart/emergency-mini-app": "1.27.0",
"@walmart/exception-mini-app": "1.7.9",
"@walmart/facilities-management-miniapp": "0.9.0",
@@ -83,7 +83,7 @@
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.140.1",
- "@walmart/price-changes-mini-app": "1.10.6",
+ "@walmart/price-changes-mini-app": "1.10.9",
"@walmart/profile-feature-app": "1.138.3",
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-env": "6.0.7",
@@ -95,7 +95,7 @@
"@walmart/react-native-webex-sdk": "0.1.5",
"@walmart/receipt-check-miniapp": "1.19.3",
"@walmart/redux-store": "6.0.7",
- "@walmart/returns-mini-app": "3.13.0",
+ "@walmart/returns-mini-app": "4.6.0",
"@walmart/roster-mini-app": "1.0.20",
"@walmart/schedule-mini-app": "0.94.1",
"@walmart/shelfavailability-mini-app": "1.5.23",
@@ -11220,9 +11220,9 @@
}
},
"node_modules/@walmart/counts-component-miniapp": {
- "version": "0.1.10",
- "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.10.tgz",
- "integrity": "sha512-X91bd/JBMjzv7YS79oxYK0RJ03OgUVwNc1a+47mT+SoVCwZq/s75xUvBZ7hq5w9zubSTM8t4cHSw/yUz5JflUQ==",
+ "version": "0.1.11",
+ "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.11.tgz",
+ "integrity": "sha512-ZIcz2433t3VbadERykI4bdiYWo+bJgpaX7PM2wlpunzzm6af5GkWKxKFGzI2r5PR311sXH7wQgnOV4RNqaCpkQ==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -12007,9 +12007,9 @@
}
},
"node_modules/@walmart/price-changes-mini-app": {
- "version": "1.10.6",
- "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.10.6.tgz",
- "integrity": "sha512-PQaPHNhUWpkJbxaKTOcpHubh81kpkuLcGshlN1nhcu+Vhe762u3Pt2KB6m4cHaoyzpDrLxNZX8ymYHlsiHAz2A==",
+ "version": "1.10.9",
+ "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.10.9.tgz",
+ "integrity": "sha512-T+2LNdCRT7+ShATU17OZkUUVw1LflnGY2nnvmCBqqFIYArbm71YMnm7JcOlXkNyVAWmIlNQrAPMLPONfY5dMXg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -12198,9 +12198,9 @@
}
},
"node_modules/@walmart/returns-mini-app": {
- "version": "4.5.0",
- "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-4.5.0.tgz",
- "integrity": "sha512-tGZVixzoC3CAeECi6iIntzalNgVOmnJc0g9KJQGCBWMeUEcbRoIP7h15WXCrVviBcPwXXH2cpsPYc0H8Vu/snQ==",
+ "version": "4.6.0",
+ "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-4.6.0.tgz",
+ "integrity": "sha512-PZ5JJNUYAm1Nr+s80QaSyTLsiOARCNnW+UoA8UOyGdfYC2TgxERfNkjYnOQY8VGbp7J/vRY9cosnlHb6LW36Kg==",
"dependencies": {
"@walmart/common-utilities-js": "^1.2.10",
"@walmart/virtual-zpl-printer-model": "^0.2.11"
--- package.json
@@ -98,7 +98,7 @@
"@walmart/core-services-allspark": "6.0.7",
"@walmart/core-utils": "6.0.7",
"@walmart/core-widget-registry": "6.0.7",
- "@walmart/counts-component-miniapp": "0.1.10",
+ "@walmart/counts-component-miniapp": "0.1.11",
"@walmart/emergency-mini-app": "1.27.0",
"@walmart/exception-mini-app": "1.7.9",
"@walmart/facilities-management-miniapp": "0.9.0",
@@ -124,7 +124,7 @@
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.140.1",
- "@walmart/price-changes-mini-app": "1.10.6",
+ "@walmart/price-changes-mini-app": "1.10.9",
"@walmart/profile-feature-app": "1.138.3",
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-env": "6.0.7",
@@ -359,7 +359,7 @@
"@walmart/core-services-allspark": "6.0.7",
"@walmart/core-utils": "6.0.7",
"@walmart/core-widget-registry": "6.0.7",
- "@walmart/counts-component-miniapp": "0.1.10",
+ "@walmart/counts-component-miniapp": "0.1.11",
"@walmart/emergency-mini-app": "1.27.0",
"@walmart/exception-mini-app": "1.7.9",
"@walmart/facilities-management-miniapp": "0.9.0",
@@ -383,7 +383,7 @@
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.140.1",
- "@walmart/price-changes-mini-app": "1.10.6",
+ "@walmart/price-changes-mini-app": "1.10.9",
"@walmart/profile-feature-app": "1.138.3",
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-env": "6.0.7",
| Resolving conflicts | Resolving conflicts
|
bed032f8757da860a3360c298873a186a5a40df7 | --- package-lock.json
@@ -64,7 +64,7 @@
"@walmart/learning-mini-app": "17.0.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.17.9",
- "@walmart/mod-flex-mini-app": "1.13.6",
+ "@walmart/mod-flex-mini-app": "1.13.7",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.12",
"@walmart/onewalmart-miniapp": "1.0.16",
@@ -9285,9 +9285,9 @@
}
},
"node_modules/@walmart/mod-flex-mini-app": {
- "version": "1.13.6",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.6.tgz",
- "integrity": "sha512-9NnvbXebvPD5xxCbAW0DI2skwGxKgqn1g1e/tDv+wRLhl+TNQDCg+era9Fs1hYxLcPnctWtZdNKSp6B0cdQODQ==",
+ "version": "1.13.7",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.7.tgz",
+ "integrity": "sha512-SQWSQCXyany6Vmws6lApYW9NO/DRPl+kYtltPxmqv7GBYIRCcceEZR9b5dybURXsP2KRZb0AzrnDUiokhPhSrg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.19.0",
@@ -33408,9 +33408,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.13.6",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.6.tgz",
- "integrity": "sha512-9NnvbXebvPD5xxCbAW0DI2skwGxKgqn1g1e/tDv+wRLhl+TNQDCg+era9Fs1hYxLcPnctWtZdNKSp6B0cdQODQ=="
+ "version": "1.13.7",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.7.tgz",
+ "integrity": "sha512-SQWSQCXyany6Vmws6lApYW9NO/DRPl+kYtltPxmqv7GBYIRCcceEZR9b5dybURXsP2KRZb0AzrnDUiokhPhSrg=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
--- package.json
@@ -105,7 +105,7 @@
"@walmart/learning-mini-app": "17.0.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.17.9",
- "@walmart/mod-flex-mini-app": "1.13.6",
+ "@walmart/mod-flex-mini-app": "1.13.7",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.12",
"@walmart/onewalmart-miniapp": "1.0.16",
| Updated to modflex to v1.13.7 due to bugfix | Updated to modflex to v1.13.7 due to bugfix
|
3b227f22edb3d8496e5c9e15bc7ba0866acf578d | --- 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.8.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.7.4...@walmart/my-walmart-hub@1.8.0) (2025-12-12)
+
+### Features
+
+- **ui:** added timer to alert ([#531](https://gecgithub01.walmart.com/allspark/allspark/issues/531)) ([d1fb4ad](https://gecgithub01.walmart.com/allspark/allspark/commit/d1fb4ad071a3c2495c2b49e2b44ec6f4a1c9bd9a))
+
## [1.7.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.7.3...@walmart/my-walmart-hub@1.7.4) (2025-12-11)
**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.7.4",
+ "version": "1.8.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/my-walmart-hub@1.8.0
|
88a52b04cdf58ce6bf91ff6e4eec2256f94430c8 | --- __tests__/auth/__snapshots__/SectionCardTest.tsx.snap
@@ -8,9 +8,9 @@ exports[`SectionCard renders default 1`] = `
Array [
Object {
"borderRadius": 8,
- "flex": 0,
"marginBottom": 24,
"marginHorizontal": 16,
+ "paddingVertical": 0,
},
undefined,
]
@@ -19,59 +19,75 @@ exports[`SectionCard renders default 1`] = `
<View
style={
Object {
- "alignItems": "flex-start",
- "flexDirection": "column",
- "padding": 16,
- "width": "55%",
+ "flexDirection": "row",
}
}
>
- <Caption
+ <View
style={
Object {
- "color": "#2e2f32",
- "fontSize": 12,
- "lineHeight": 16,
+ "alignItems": "flex-start",
+ "flex": 2,
+ "flexDirection": "column",
}
}
>
- Label
- </Caption>
- <Headline
- style={
- Object {
- "color": "#2e2f32",
- "fontSize": 18,
- "lineHeight": 24,
+ <Caption
+ style={
+ Object {
+ "color": "#2e2f32",
+ "fontSize": 12,
+ "lineHeight": 16,
+ }
}
- }
- >
- Title
- </Headline>
- <SecondaryButton
- accessibilityLabel="buttonId"
- onPress={[MockFunction]}
+ >
+ Label
+ </Caption>
+ <Headline
+ style={
+ Object {
+ "color": "#2e2f32",
+ "fontSize": 18,
+ "lineHeight": 24,
+ }
+ }
+ >
+ Title
+ </Headline>
+ <SecondaryButton
+ accessibilityLabel="buttonId"
+ onPress={[MockFunction]}
+ style={
+ Object {
+ "marginTop": 16,
+ }
+ }
+ testID="buttonId"
+ >
+ Action
+ </SecondaryButton>
+ </View>
+ <View
style={
Object {
- "marginTop": 16,
+ "flex": 1,
}
}
- testID="buttonId"
>
- Action
- </SecondaryButton>
+ <Image
+ source={1}
+ style={
+ Object {
+ "bottom": -16,
+ "height": 140,
+ "position": "absolute",
+ "right": -16,
+ "width": 130,
+ }
+ }
+ />
+ </View>
</View>
- <Image
- source={1}
- style={
- Object {
- "bottom": 0,
- "height": 145,
- "position": "absolute",
- "right": 0,
- }
- }
- />
</SolidCard>
`;
@@ -83,9 +99,9 @@ exports[`SectionCard renders with loading and custom style 1`] = `
Array [
Object {
"borderRadius": 8,
- "flex": 0,
"marginBottom": 24,
"marginHorizontal": 16,
+ "paddingVertical": 0,
},
Object {
"padding": 10,
@@ -96,59 +112,75 @@ exports[`SectionCard renders with loading and custom style 1`] = `
<View
style={
Object {
- "alignItems": "flex-start",
- "flexDirection": "column",
- "padding": 16,
- "width": "55%",
+ "flexDirection": "row",
}
}
>
- <Caption
+ <View
style={
Object {
- "color": "#2e2f32",
- "fontSize": 12,
- "lineHeight": 16,
+ "alignItems": "flex-start",
+ "flex": 2,
+ "flexDirection": "column",
}
}
>
- Label
- </Caption>
- <Headline
- style={
- Object {
- "color": "#2e2f32",
- "fontSize": 18,
- "lineHeight": 24,
+ <Caption
+ style={
+ Object {
+ "color": "#2e2f32",
+ "fontSize": 12,
+ "lineHeight": 16,
+ }
}
- }
- >
- Title
- </Headline>
- <SecondaryButton
- accessibilityLabel="buttonId"
- loading={true}
- onPress={[MockFunction]}
+ >
+ Label
+ </Caption>
+ <Headline
+ style={
+ Object {
+ "color": "#2e2f32",
+ "fontSize": 18,
+ "lineHeight": 24,
+ }
+ }
+ >
+ Title
+ </Headline>
+ <SecondaryButton
+ accessibilityLabel="buttonId"
+ loading={true}
+ onPress={[MockFunction]}
+ style={
+ Object {
+ "marginTop": 16,
+ }
+ }
+ testID="buttonId"
+ >
+ Action
+ </SecondaryButton>
+ </View>
+ <View
style={
Object {
- "marginTop": 16,
+ "flex": 1,
}
}
- testID="buttonId"
>
- Action
- </SecondaryButton>
+ <Image
+ source={1}
+ style={
+ Object {
+ "bottom": -16,
+ "height": 140,
+ "position": "absolute",
+ "right": -16,
+ "width": 130,
+ }
+ }
+ />
+ </View>
</View>
- <Image
- source={1}
- style={
- Object {
- "bottom": 0,
- "height": 145,
- "position": "absolute",
- "right": 0,
- }
- }
- />
</SolidCard>
`;
--- src/auth/SectionCard.tsx
@@ -34,19 +34,23 @@ export const SectionCard = (props: SectionCardProps) => {
return (
<SolidCard color='white' elevation={1} style={[styles.card, style]}>
- <View style={styles.cardInfoCol}>
- <Caption style={styles.cardLabel}>{label}</Caption>
- <Headline style={styles.cardTitle}>{title}</Headline>
- <SecondaryButton
- style={styles.cardButton}
- loading={loading}
- onPress={onAction}
- testID={buttonId}
- accessibilityLabel={buttonId}>
- {action}
- </SecondaryButton>
+ <View style={styles.cardContent}>
+ <View style={styles.cardInfoCol}>
+ <Caption style={styles.cardLabel}>{label}</Caption>
+ <Headline style={styles.cardTitle}>{title}</Headline>
+ <SecondaryButton
+ style={styles.cardButton}
+ loading={loading}
+ onPress={onAction}
+ testID={buttonId}
+ accessibilityLabel={buttonId}>
+ {action}
+ </SecondaryButton>
+ </View>
+ <View style={styles.cardImageCol}>
+ <Image source={image} style={styles.cardIllustration} />
+ </View>
</View>
- <Image source={image} style={styles.cardIllustration} />
</SolidCard>
);
};
--- src/auth/styles.ts
@@ -6,7 +6,6 @@ export default StyleSheet.create({
screen: {
flex: 1,
backgroundColor: colors.gray['5'],
- // marginTop: 150,
},
topSection: {
alignItems: 'center',
@@ -33,14 +32,16 @@ export default StyleSheet.create({
},
// SectionCard
card: {
- flex: 0,
borderRadius: 8,
marginBottom: 24,
marginHorizontal: 16,
+ paddingVertical: 0,
+ },
+ cardContent: {
+ flexDirection: 'row',
},
cardInfoCol: {
- padding: 16,
- width: '55%',
+ flex: 2,
flexDirection: 'column',
alignItems: 'flex-start',
},
@@ -57,10 +58,14 @@ export default StyleSheet.create({
cardButton: {
marginTop: 16,
},
+ cardImageCol: {
+ flex: 1,
+ },
cardIllustration: {
- right: 0,
- bottom: 0,
- height: 145,
+ right: -16, // default inner card padding
+ bottom: -16, // default inner card padding
+ width: 130,
+ height: 140,
position: 'absolute',
},
// Temporary Guest Button
| Correcting auth view styling | Correcting auth view styling
|
091f71513ed5e86fa0adbac2351000643213a5c9 | --- package.json
@@ -91,5 +91,5 @@
"babel-jest": "29.2.1",
"metro-react-native-babel-preset": "0.76.8"
},
- "packageManager": "yarn@4.4.0"
+ "packageManager": "yarn@4.6.0"
}
--- packages/allspark-foundation-hub/__tests__/TeamOnboarding/TeamSelectionUtils.test.tsx
@@ -18,13 +18,14 @@ jest.mock('../../src/Store/Modules/TeamSelection/Utils/teams', () => ({
describe('teamsByWorkgroup', () => {
const mockTeamData: Team[] = [
- { teamName: 'Team A', workgroup: 'Group 1' },
- { teamName: 'Team B', workgroup: 'Group 1' },
- { teamName: 'Team C', workgroup: 'Group 2' },
- { teamName: 'Team D' },
+ { __typename: 'Team', teamName: 'Team A', workgroup: 'Group 1' },
+ { __typename: 'Team', teamName: 'Team B', workgroup: 'Group 1' },
+ { __typename: 'Team', teamName: 'Team C', workgroup: 'Group 2' },
+ { __typename: 'Team', teamName: 'Team D' },
];
const mockPrimaryTeamData: Team = {
+ __typename: 'Team',
teamName: 'Team A',
workgroup: 'Group 1',
};
@@ -193,19 +194,25 @@ describe('useGetViewersPrimaryTeamName', () => {
});
describe('createSections', () => {
- const mineArea: MyAreaType = 'Area1';
- const areas: Areas = ['Area1', 'Area2', 'Area3'];
- const areaTeamMap: AreaTeamMap = {
- Area1: [
- { teamName: 'Team1', teamId: '111111' },
- { teamName: 'Team2', teamId: '111111' },
- ] as Team[],
- Area2: [{ teamName: 'Team3', teamId: '111111' }] as Team[],
- Area3: [
- { teamName: 'Team4', teamId: '111111' },
- { teamName: 'Team5', teamId: '111111' },
- ] as Team[],
- };
+ let mineArea: MyAreaType;
+ let areas: Areas;
+ let areaTeamMap: AreaTeamMap;
+
+ beforeAll(() => {
+ mineArea = 'Area1';
+ areas = ['Area1', 'Area2', 'Area3'];
+ areaTeamMap = {
+ Area1: [
+ { teamName: 'Team1', teamId: '111111' },
+ { teamName: 'Team2', teamId: '111111' },
+ ] as Team[],
+ Area2: [{ teamName: 'Team3', teamId: '111111' }] as Team[],
+ Area3: [
+ { teamName: 'Team4', teamId: '111111' },
+ { teamName: 'Team5', teamId: '111111' },
+ ] as Team[],
+ };
+ });
it('should include primary area when myArea is provided', () => {
const sections = createSections(mineArea, areas, areaTeamMap);
--- packages/allspark-foundation-hub/__tests__/supplyChain/AllSupplyTeamsList.test.tsx
@@ -7,9 +7,7 @@ import {
allTeamsListEnabled,
teamSearchInputEnabled,
} from '../../src/SupplyChain/Redux';
-import {
- SiteSelectors,
-} from '@walmart/allspark-foundation';
+import { SiteSelectors } from '@walmart/allspark-foundation';
import { SupplyChainTeam } from '../../src/SupplyChain/Modals/EditSavedTeamModal/types';
import { fireEvent } from '@testing-library/react-native';
@@ -62,44 +60,41 @@ jest.mock(
);
describe('AllSupplyTeamList', () => {
- const mockSections = [
- {
- title: 'Total Site',
- data: [{ teamId: 'total', teamName: 'Total site' }],
- },
- {
- title: 'LeaderShip',
- data: [
- { teamId: '7000137', teamName: 'Leadership - Management' },
- ],
- },
- {
- title: 'Receiving',
- data: [
- { teamId: '7000287', teamName: 'Receiving - Meat/Produce' },
- ],
- },
- {
- title: 'RSR',
- data: [
- { teamId: '7000313', teamName: 'RSR - Dairy/Deli/Frozen' },
- ],
- },
- ] as Array<{ title: string; data: SupplyChainTeam[] }>;
+ let mockSections: Array<{ title: string; data: SupplyChainTeam[] }>;
+ let mockProps: any;
const handleSelection = jest.fn();
const handleSearchInput = jest.fn();
const handleEdit = jest.fn();
const selectedItems = ['7000137'];
- const mockProps = {
- sections: mockSections,
- handleSelection,
- selectedItems,
- isModal: true,
- handleSearchInput,
- handleEdit,
- };
-
+ beforeAll(() => {
+ mockSections = [
+ {
+ title: 'Total Site',
+ data: [{ teamId: 'total', teamName: 'Total site' }],
+ },
+ {
+ title: 'LeaderShip',
+ data: [{ teamId: '7000137', teamName: 'Leadership - Management' }],
+ },
+ {
+ title: 'Receiving',
+ data: [{ teamId: '7000287', teamName: 'Receiving - Meat/Produce' }],
+ },
+ {
+ title: 'RSR',
+ data: [{ teamId: '7000313', teamName: 'RSR - Dairy/Deli/Frozen' }],
+ },
+ ] as Array<{ title: string; data: SupplyChainTeam[] }>;
+ mockProps = {
+ sections: mockSections,
+ handleSelection,
+ selectedItems,
+ isModal: true,
+ handleSearchInput,
+ handleEdit,
+ };
+ });
it('should render header component when isModal is true', () => {
const { getByTestId, toJSON } = render(
<AllSupplyTeamList {...mockProps} />
--- yarn.lock
@@ -24645,11 +24645,11 @@ __metadata:
"typescript@patch:typescript@npm%3A^5.0.4#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.4.4#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.7.3#optional!builtin<compat/typescript>":
version: 5.7.3
- resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=74658d"
+ resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=5786d5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
- checksum: 10c0/3b56d6afa03d9f6172d0b9cdb10e6b1efc9abc1608efd7a3d2f38773d5d8cfb9bbc68dfb72f0a7de5e8db04fc847f4e4baeddcd5ad9c9feda072234f0d788896
+ checksum: 10c0/6fd7e0ed3bf23a81246878c613423730c40e8bdbfec4c6e4d7bf1b847cbb39076e56ad5f50aa9d7ebd89877999abaee216002d3f2818885e41c907caaa192cc4
languageName: node
linkType: hard
| fix(ui): fix tests | fix(ui): fix tests
|
49faac1867c045b1cd1b22680ab7770cf38f5eb5 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ExpandedTeamShift/ExpandedTeamShift.tsx
@@ -9,7 +9,11 @@ import { colors, Divider } from '@walmart/gtp-shared-components';
import { useAllsparkTranslation } from '@walmart/allspark-foundation';
import { ActionButtonGroup } from '../../../Shared/Components/ActionButtonGroup';
import { FEATURE_ID } from '../../constant';
+import { useSelector } from 'react-redux';
+import { shiftFilterGroupEnabled } from '../../Redux';
+
export const ExpandedTeamShift = () => {
+ const showShiftFilterList = useSelector(shiftFilterGroupEnabled);
const { t } = useAllsparkTranslation(FEATURE_ID);
//TODO: Remove dummy data
const shiftdata = [
@@ -47,12 +51,14 @@ export const ExpandedTeamShift = () => {
return (
<>
<View style={styles.container}>
- <ShiftFilterList
- filterListData={shiftdata}
- handleSelectShift={() => {}}
- isLoading={false}
- isModal
- />
+ {showShiftFilterList && (
+ <ShiftFilterList
+ filterListData={shiftdata}
+ handleSelectShift={() => {}}
+ isLoading={false}
+ isModal
+ />
+ )}
<Divider UNSAFE_style={styles.divider} />
<HubHeader
title={t('expandedTeamShiftModal.Teams.title')}
| feat: implemented show shift filter list ff | feat: implemented show shift filter list ff
|
6471d45f82c5752a6d458c2d7ea973189a5b7371 | --- .gitignore
@@ -63,6 +63,10 @@ buck-out/
# CocoaPods
/ios/Pods/
+# Firebase config
+ios/GoogleService-Info.plist
+android/app/google-services.json
+
coverage/
test-report.xml
--- android/app/google-services-dev.json
--- android/app/google-services-prod.json
@@ -0,0 +1,46 @@
+{
+ "project_info": {
+ "project_number": "123190082581",
+ "project_id": "wmt-allspark-v2-prod",
+ "storage_bucket": "wmt-allspark-v2-prod.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:123190082581:android:c696774b48110d918f221c",
+ "android_client_info": {
+ "package_name": "com.walmart.stores.allspark.beta"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "123190082581-0fiiir462q5puhc190ld05abbtgaci7n.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyAjV5BtXF0Bqm4AOarpYOKS61M07pUMIOE"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "123190082581-0fiiir462q5puhc190ld05abbtgaci7n.apps.googleusercontent.com",
+ "client_type": 3
+ },
+ {
+ "client_id": "123190082581-qll9tcpb9da28ds9naokr1gu2e9s25q9.apps.googleusercontent.com",
+ "client_type": 2,
+ "ios_info": {
+ "bundle_id": "com.walmart.stores.allspark.beta"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
--- ios/GoogleService-Info-Dev.plist
--- ios/GoogleService-Info-Prod.plist
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CLIENT_ID</key>
+ <string>123190082581-qll9tcpb9da28ds9naokr1gu2e9s25q9.apps.googleusercontent.com</string>
+ <key>REVERSED_CLIENT_ID</key>
+ <string>com.googleusercontent.apps.123190082581-qll9tcpb9da28ds9naokr1gu2e9s25q9</string>
+ <key>API_KEY</key>
+ <string>AIzaSyC69VLgbJl2FL43fQE1f3QaCh4g2ZQNAKk</string>
+ <key>GCM_SENDER_ID</key>
+ <string>123190082581</string>
+ <key>PLIST_VERSION</key>
+ <string>1</string>
+ <key>BUNDLE_ID</key>
+ <string>com.walmart.stores.allspark.beta</string>
+ <key>PROJECT_ID</key>
+ <string>wmt-allspark-v2-prod</string>
+ <key>STORAGE_BUCKET</key>
+ <string>wmt-allspark-v2-prod.appspot.com</string>
+ <key>IS_ADS_ENABLED</key>
+ <false></false>
+ <key>IS_ANALYTICS_ENABLED</key>
+ <false></false>
+ <key>IS_APPINVITE_ENABLED</key>
+ <true></true>
+ <key>IS_GCM_ENABLED</key>
+ <true></true>
+ <key>IS_SIGNIN_ENABLED</key>
+ <true></true>
+ <key>GOOGLE_APP_ID</key>
+ <string>1:123190082581:ios:64ee6fc29194aa268f221c</string>
+</dict>
+</plist>
\ No newline at end of file
--- package-lock.json
@@ -1976,6 +1976,11 @@
}
}
},
+ "@walmart/inbox-mini-app": {
+ "version": "0.0.11",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.11.tgz",
+ "integrity": "sha512-ZYZoOJ0Dkm9yBAUvGh3HCWQHG3pQ8WHkIhBmCjN4PS1B8xPLZvInv82z1GYQgtvqFzWtYxWLTlmxQohQibAIig=="
+ },
"@walmart/moment-walmart": {
"version": "1.0.4",
"resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.4.tgz",
@@ -2068,9 +2073,9 @@
}
},
"@walmart/ui-components": {
- "version": "1.0.75",
- "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.75.tgz",
- "integrity": "sha512-rOvJAvai1zfc87i47NrBG5OssDTJsgCg2e4Zws6w7As6raZKpeOOAvRPuqYQ8OCjkNbkcHCrdEk49iqTlBjaWA==",
+ "version": "1.0.77",
+ "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.77.tgz",
+ "integrity": "sha512-QbCRpjNipHvHIod3kSomHJx4IZjV9v95UEk2DZ/YQPUlARB1UYOGwvm3hSMwkL3k9l4Red46MpN/xh06GFJPBA==",
"requires": {
"react-native-calendars": "1.299.0"
}
@@ -5441,6 +5446,14 @@
"istanbul-lib-report": "^3.0.0"
}
},
+ "javascript-time-ago": {
+ "version": "2.3.3",
+ "resolved": "https://npme.walmart.com/javascript-time-ago/-/javascript-time-ago-2.3.3.tgz",
+ "integrity": "sha512-T4aOCWRQPWv5wsOBiiktKxu1Zd0deIHK2ymKg8XO+MEFZKnZklBOHCXrKbEWPD2Qk2V+ekfmX976r+W1+3dWsw==",
+ "requires": {
+ "relative-time-format": "^1.0.5"
+ }
+ },
"jest": {
"version": "25.1.0",
"resolved": "https://npme.walmart.com/jest/-/jest-25.1.0.tgz",
@@ -9628,6 +9641,11 @@
}
}
},
+ "relative-time-format": {
+ "version": "1.0.5",
+ "resolved": "https://npme.walmart.com/relative-time-format/-/relative-time-format-1.0.5.tgz",
+ "integrity": "sha512-MAgx/YKcUQYJpIaWcfetPstElnWf26JxVis4PirdwVrrymFdbxyCSm6yENpfB1YuwFbtHSHksN3aBajVNxk10Q=="
+ },
"remove-trailing-separator": {
"version": "1.1.0",
"resolved": "https://npme.walmart.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
--- package.json
@@ -3,8 +3,10 @@
"version": "0.0.1",
"private": true,
"scripts": {
- "env:dev": "cp env.dev.js env.js",
- "env:prod": "cp env.prod.js env.js",
+ "firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json",
+ "firebase:prod": "cp ./ios/GoogleService-Info-Prod.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-prod.json ./android/app/google-services.json",
+ "env:dev": "npm run firebase:dev && cp env.dev.js env.js",
+ "env:prod": "npm run firebase:prod && cp env.prod.js env.js",
"android": "react-native run-android",
"android:dev": "npm run env:dev && react-native run-android",
"android:prod": "npm run env:prod && react-native run-android",
@@ -105,7 +107,7 @@
"rn-fetch-blob": "^0.12.0",
"seamless-immutable": "^7.1.4",
"victory-native": "^35.0.1",
- "@walmart/inbox-mini-app":"0.0.11",
+ "@walmart/inbox-mini-app": "0.0.11",
"javascript-time-ago": "^2.3.3"
},
"devDependencies": {
| integrate firebase prod (#162) | integrate firebase prod (#162)
|
1acdd0b1c350f68a21afcfc7c5bc8389f63f640d | --- package-lock.json
@@ -3445,9 +3445,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.32",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.32.tgz",
- "integrity": "sha512-qJvU7F4iew2Oyzb9/lNjGl8l+LPj9WyHDoxOeQrXnTW8BsPAXI7qOr5mW9K8nAN9siebKfqo3mIfgbbNLBMGLQ=="
+ "version": "0.5.33",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.33.tgz",
+ "integrity": "sha512-U3HBMt6b7JntDjqPIl77EcypIBl71O2BG/MOC8VPTqRrjvW7WUPXiilqQ3rGcZeirpOzfjcN4sJVWldtBQJgVQ=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -80,7 +80,7 @@
"@walmart/manager-approvals-miniapp": "0.0.45",
"@walmart/metrics-mini-app": "0.4.11",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.5.32",
+ "@walmart/push-to-talk-mini-app": "0.5.33",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.27.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| PTT preferred name update for SUMO notifications | PTT preferred name update for SUMO notifications
|
c501ff05ac9baaf35a8842c7e9d04b71ee62ec3d | --- src/containers/UserHeader.tsx
@@ -6,7 +6,7 @@ import {Body, colors, ListItem, Switch} from '@walmart/gtp-shared-components';
import {useUserPresence} from '../presence/hooks';
import {Avatar} from '../components/Avatar';
-import {goOfflineForUser, goOnlineForUser} from '../presence/transforms';
+import {goOfflineForUser, goOnlineForUser} from '../presence/service';
import {getEncryptedUserId} from '../redux/selectors';
const styles = StyleSheet.create({
--- src/navigation/index.tsx
@@ -10,7 +10,7 @@ import {useAppStateEffect} from '@walmart/allspark-utils';
import {MessagesScreen} from '../screens/MessagesScreen';
import {TabsScreen} from '../screens/TabsScreen';
import {NewMessageScreen} from '../screens/NewMessageScreen';
-import {goOfflineForUser, goOnlineForUser} from '../presence/transforms';
+import {goOfflineForUser, goOnlineForUser} from '../presence/service';
import {ViewTeamScreen} from '../screens/ViewTeamScreen';
import {
SearchHeader,
--- src/presence/service.ts
@@ -1,13 +1,7 @@
import firestore from '@react-native-firebase/firestore';
-import {UserPresence} from './types';
import {FIRESTORE_OFFLINE_DATA, FIRESTORE_ONLINE_DATA} from './constants';
import {createUserDocumentPath} from './utils';
-export const createDefaultPresence = (): UserPresence => ({
- state: 'offline',
- lastUpdated: firestore.Timestamp.fromDate(new Date()),
-});
-
// Set user as online
export const goOnlineForUser = (storeId: string, userId: string) => {
const userDocument = createUserDocumentPath(storeId, userId);
--- src/containers/UserHeader.tsx
@@ -6,7 +6,7 @@ import {Body, colors, ListItem, Switch} from '@walmart/gtp-shared-components';
import {useUserPresence} from '../presence/hooks';
import {Avatar} from '../components/Avatar';
-import {goOfflineForUser, goOnlineForUser} from '../presence/transforms';
+import {goOfflineForUser, goOnlineForUser} from '../presence/service';
import {getEncryptedUserId} from '../redux/selectors';
const styles = StyleSheet.create({
--- src/navigation/index.tsx
@@ -10,7 +10,7 @@ import {useAppStateEffect} from '@walmart/allspark-utils';
import {MessagesScreen} from '../screens/MessagesScreen';
import {TabsScreen} from '../screens/TabsScreen';
import {NewMessageScreen} from '../screens/NewMessageScreen';
-import {goOfflineForUser, goOnlineForUser} from '../presence/transforms';
+import {goOfflineForUser, goOnlineForUser} from '../presence/service';
import {ViewTeamScreen} from '../screens/ViewTeamScreen';
import {
SearchHeader,
--- src/presence/service.ts
@@ -1,13 +1,7 @@
import firestore from '@react-native-firebase/firestore';
-import {UserPresence} from './types';
import {FIRESTORE_OFFLINE_DATA, FIRESTORE_ONLINE_DATA} from './constants';
import {createUserDocumentPath} from './utils';
-export const createDefaultPresence = (): UserPresence => ({
- state: 'offline',
- lastUpdated: firestore.Timestamp.fromDate(new Date()),
-});
-
// Set user as online
export const goOnlineForUser = (storeId: string, userId: string) => {
const userDocument = createUserDocumentPath(storeId, userId);
| chore: rename presence transforms to service | chore: rename presence transforms to service
|
4328a0f0e28ee070dbaa932adb21c3d9e85828e1 | --- package-lock.json
@@ -5060,17 +5060,6 @@
"redux": "^4.1.2"
}
},
- "node_modules/@walmart/emergency-mini-app/node_modules/@walmart/core-widget-registry": {
- "version": "0.6.11",
- "resolved": "https://npme.walmart.com/@walmart/core-widget-registry/-/core-widget-registry-0.6.11.tgz",
- "integrity": "sha512-mTLH8c5l4vVQfZtT9U9J4+fz0QzQSiHN/PtxKT9L6vMueWzAKUwp1UfRNrA6FZpHSEDi7wNGWzm9G+vOBC9VIw==",
- "license": "ISC",
- "peerDependencies": {
- "@walmart/core-utils": "^1.1.2",
- "react": "^18.2.0",
- "react-native": "~0.70.0"
- }
- },
"node_modules/@walmart/exception-mini-app": {
"version": "1.0.14",
"resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.14.tgz",
@@ -5985,18 +5974,6 @@
"reselect": ">=4.0.0"
}
},
- "node_modules/@walmart/schedule-mini-app/node_modules/react-native-tab-view": {
- "version": "2.16.0",
- "resolved": "https://npme.walmart.com/react-native-tab-view/-/react-native-tab-view-2.16.0.tgz",
- "integrity": "sha512-ac2DmT7+l13wzIFqtbfXn4wwfgtPoKzWjjZyrK1t+T8sdemuUvD4zIt+UImg03fu3s3VD8Wh/fBrIdcqQyZJWg==",
- "license": "MIT",
- "peerDependencies": {
- "react": "*",
- "react-native": "*",
- "react-native-gesture-handler": "*",
- "react-native-reanimated": "*"
- }
- },
"node_modules/@walmart/schedule-mini-app/node_modules/wfm-allspark-data-library": {
"version": "1.0.1",
"resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.0.1.tgz",
@@ -6361,15 +6338,6 @@
"xdate": "^0.8.0"
}
},
- "node_modules/@walmart/wfm-ui/node_modules/@walmart/moment-walmart": {
- "version": "1.0.3",
- "resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.3.tgz",
- "integrity": "sha1-JYhQmoi+ylQ/z6jdXhGZncmaYGQ=",
- "license": "ISC",
- "peerDependencies": {
- "moment": "^2.24.0"
- }
- },
"node_modules/@wry/context": {
"version": "0.7.0",
"resolved": "https://npme.walmart.com/@wry/context/-/context-0.7.0.tgz",
@@ -25183,14 +25151,7 @@
"resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.15.0.tgz",
"integrity": "sha512-QU1FlQRezbifB0woIL6/IoN1KRapKZsWvpSAJzabjoTZiDaBXa0mkDnLOmcmOC6NUHUbOrL6hJ1CMH2lxhPQRQ==",
"requires": {
- "@walmart/core-widget-registry": "^0.6.6"
- },
- "dependencies": {
- "@walmart/core-widget-registry": {
- "version": "0.6.11",
- "resolved": "https://npme.walmart.com/@walmart/core-widget-registry/-/core-widget-registry-0.6.11.tgz",
- "integrity": "sha512-mTLH8c5l4vVQfZtT9U9J4+fz0QzQSiHN/PtxKT9L6vMueWzAKUwp1UfRNrA6FZpHSEDi7wNGWzm9G+vOBC9VIw=="
- }
+ "@walmart/core-widget-registry": "~0.7.2"
}
},
"@walmart/exception-mini-app": {
@@ -25454,18 +25415,13 @@
"resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.29.0.tgz",
"integrity": "sha512-C8oSmV83RX/jZBPlBw1Fd5gMawFp60y19l7k8FzXT0JB8s/tW5u4XjLiQqod7SOkAtnksKVJHjxsyQMvIRS6ow==",
"requires": {
- "@walmart/moment-walmart": "^1.0.4",
+ "@walmart/moment-walmart": "1.0.4",
"@walmart/wfm-ui": "0.2.25",
"crypto-js": "^3.3.0",
- "react-native-tab-view": "^2.4.0",
+ "react-native-tab-view": "^3.3.0",
"wfm-allspark-data-library": "1.0.1"
},
"dependencies": {
- "react-native-tab-view": {
- "version": "2.16.0",
- "resolved": "https://npme.walmart.com/react-native-tab-view/-/react-native-tab-view-2.16.0.tgz",
- "integrity": "sha512-ac2DmT7+l13wzIFqtbfXn4wwfgtPoKzWjjZyrK1t+T8sdemuUvD4zIt+UImg03fu3s3VD8Wh/fBrIdcqQyZJWg=="
- },
"wfm-allspark-data-library": {
"version": "1.0.1",
"resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.0.1.tgz",
@@ -25581,7 +25537,7 @@
"resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.2.25.tgz",
"integrity": "sha512-Nqk4mu8wmYDdU4OSdGhovvEh1FqSWDR5w26xiXRqtFDU7/JNTMvXIVlF+nCzuAy1N/VDBL87Lmuc25iDNWXA8g==",
"requires": {
- "@walmart/moment-walmart": "1.0.3",
+ "@walmart/moment-walmart": "1.0.4",
"lodash": "^4.17.20",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
@@ -25590,13 +25546,6 @@
"react-native-vector-icons": "^9.2.0",
"string.prototype.matchall": "^4.0.2",
"wm-react-native-vector-icons": "^1.0.26"
- },
- "dependencies": {
- "@walmart/moment-walmart": {
- "version": "1.0.3",
- "resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.3.tgz",
- "integrity": "sha1-JYhQmoi+ylQ/z6jdXhGZncmaYGQ="
- }
}
},
"@wry/context": {
--- package.json
@@ -220,6 +220,11 @@
"xdate": "^0.8.2"
},
"overrides": {
+ "@walmart/core-services": "~1.4.11",
+ "@walmart/core-services-allspark": "~2.2.2",
+ "@walmart/core-utils": "~1.3.0",
+ "@walmart/core-widget-registry": "~0.7.2",
+ "@walmart/moment-walmart": "1.0.4",
"@react-native-community/datetimepicker": "^5.1.0",
"axios": "^1.2.6",
"crypto-js": "^3.3.0",
@@ -229,6 +234,7 @@
"react-native-modal": "^13.0.1",
"react-native-popup-menu": "^0.16.0",
"react-native-svg": "^13.4.0",
+ "react-native-tab-view": "^3.3.0",
"react-native-vector-icons": "^9.2.0",
"uuid": "^3.3.2"
},
| fix: overriding critical dependencies to ensure single version | fix: overriding critical dependencies to ensure single version
|
f58c5ca7fa85a5dae981353309230da94b013bbe | --- package.json
@@ -13,8 +13,8 @@
"private": true,
"scripts": {
"init": "npm i --workspaces",
- "test": "jest",
- "test:build": "npm run build && jest",
+ "test": "jest --no-watchman",
+ "test:build": "npm run build && jest --no-watchman",
"coverage": "jest --coverage",
"lint": "npm run lint --workspaces --if-present",
"lint:fix": "npm run lint:fix --workspaces --if-present",
| chore: disable watchman on jest command | chore: disable watchman on jest command
|
534b28b85f3f6e8c31a72a71c6c5f692bbc085fb | --- packages/allspark-foundation/src/utils/DynamicServiceCreator.tsx
@@ -91,9 +91,10 @@ export const DynamicServiceCreator = <T extends AnyService, I extends T = T>(
*/
const Creator = <Service extends T>(
service: Service
- ): I & Service & { isAllsparkInstance: true } => {
+ ): I & Service & { isAllsparkInstance: true; origService: Service } => {
if (isConnected) {
- return proxiedService as I & Service & { isAllsparkInstance: true };
+ return proxiedService as I &
+ Service & { isAllsparkInstance: true; origService: Service };
}
implementation = (transform?.(service) || service) as I;
@@ -106,7 +107,10 @@ export const DynamicServiceCreator = <T extends AnyService, I extends T = T>(
__DEV__ && console.log(`${name} Dynamic Service Created!`);
// @ts-ignore
proxiedService.isAllsparkInstance = true;
- return proxiedService as I & Service & { isAllsparkInstance: true };
+ // @ts-ignore
+ proxiedService.origService = service;
+ return proxiedService as I &
+ Service & { isAllsparkInstance: true; origService: Service };
};
return {
| feat: add reference to original service on dynamic service | feat: add reference to original service on dynamic service
|
41f89757f013de8684223300522f82151c2ab0f2 | --- package.json
@@ -245,7 +245,7 @@
"react-native-wm-telemetry": "6.3.17",
"react-native-wm-voice-text": "1.0.4",
"react-redux": "^8.1.3",
- "realm": "12.8.1",
+ "realm": "12.14.1",
"redux": "^4.2.1",
"redux-saga": "^1.2.3",
"redux-thunk": "^2.4.0",
--- yarn.lock
@@ -6822,7 +6822,7 @@ __metadata:
react-test-renderer: "npm:18.2.0"
reactotron-react-native: "npm:^5.1.12"
reactotron-redux: "npm:^3.1.11"
- realm: "npm:12.8.1"
+ realm: "npm:12.14.1"
redux: "npm:^4.2.1"
redux-saga: "npm:^1.2.3"
redux-thunk: "npm:^2.4.0"
@@ -17368,7 +17368,7 @@ __metadata:
languageName: node
linkType: hard
-"prebuild-install@npm:^7.1.1":
+"prebuild-install@npm:^7.1.2":
version: 7.1.3
resolution: "prebuild-install@npm:7.1.3"
dependencies:
@@ -18873,9 +18873,9 @@ __metadata:
languageName: node
linkType: hard
-"realm@npm:12.8.1":
- version: 12.8.1
- resolution: "realm@npm:12.8.1"
+"realm@npm:12.14.1":
+ version: 12.14.1
+ resolution: "realm@npm:12.14.1"
dependencies:
"@realm/fetch": "npm:^0.1.1"
bson: "npm:^4.7.2"
@@ -18883,13 +18883,13 @@ __metadata:
node-gyp: "npm:latest"
node-machine-id: "npm:^1.1.12"
path-browserify: "npm:^1.0.1"
- prebuild-install: "npm:^7.1.1"
+ prebuild-install: "npm:^7.1.2"
peerDependencies:
react-native: ">=0.71.0"
peerDependenciesMeta:
react-native:
optional: true
- checksum: 10c0/a4ee1635fcebb1ee1ced0d630eec2a4a1ba5f8866c4bdcbde3f870f1c9f05e11272ac308f36bb2b6df19ec7dc5dca718696aa83db997f5d143b7fe024d41fb41
+ checksum: 10c0/448a119b4457f3e89ae7e10b4fd92a7adf1bf61b6db517f274fa06cef8e5a3fb145b1e28ad887da951210e6eeeb64bb2bb606e6f2b82b742571a62038a49d082
languageName: node
linkType: hard
| fixing android build by using latest realm 12.x release instead of rolling back to the prior version that is not compatible with this react-native release. | fixing android build by using latest realm 12.x release instead of rolling back to the prior version that is not compatible with this react-native release.
|
4b942b2b3addf75cb9cff01552edbc30c4c96c5a | --- packages/allspark-foundation-hub/__tests__/TeamOnboarding/TeamSelectionUtils.test.tsx
@@ -297,18 +297,18 @@ describe('createSections', () => {
const sections = createSections(mineArea, areas, areaTeamMap, primaryTeam);
expect(sections[0].data[0]).toEqual(primaryTeam);
- expect(sections[0].data.length).toBe(3); // Primary team + 2 teams from Area1
+ expect(sections[0].data.length).toBe(3);
});
it('should exclude duplicate teams when primary team is included', () => {
- const primaryTeam = { teamName: 'Team1', teamId: '111111' }; // Same as one in Area1
+ const primaryTeam = { teamName: 'Team1', teamId: '111111' };
const sections = createSections(mineArea, areas, areaTeamMap, primaryTeam);
expect(sections[0].data[0]).toEqual(primaryTeam);
- expect(sections[0].data.length).toBe(2); // Primary team + 1 unique team from Area1
+ expect(sections[0].data.length).toBe(2);
expect(
sections[0].data.filter((team) => team.teamName === 'Team1').length
- ).toBe(1); // Only one 'Team1'
+ ).toBe(1);
});
it('should handle null/undefined values in areaTeamMap', () => {
@@ -321,9 +321,9 @@ describe('createSections', () => {
const sections = createSections(mineArea, areas, incompleteAreaTeamMap);
expect(sections.length).toBe(3);
- expect(sections[0].data).toBe(null); // Area1 has null teams
- expect(sections[1].data).toBe(undefined); // Area2 has undefined teams
- expect(sections[2].data).toEqual([{ teamName: 'Team4', teamId: '100003' }]); // Area3 has teams
+ expect(sections[0].data).toBe(null);
+ expect(sections[1].data).toBe(undefined);
+ expect(sections[2].data).toEqual([{ teamName: 'Team4', teamId: '100003' }]);
});
it('should handle null areaTeamMap', () => {
--- packages/allspark-foundation-hub/__tests__/hooks/useTeamSelection.test.ts
@@ -160,19 +160,6 @@ describe('useTeamSelection', () => {
expect(result.current.isLoading).toBeTruthy();
});
- // it('should handle preference data loading and errors', () => {
- // // (useTeamsByStore as jest.Mock).mockReturnValue({
- // // data: mockGetTeamsByStoreQuery.result.data.getTeamsByStore,
- // // });
- // (useUserPreferences as jest.Mock).mockReturnValue({
- // data: [{ ad: 'adsad' }],
- // });
- // const { result } = renderHookWithProviders(() => useTeamSelection());
- // console.log('====> result.current.preferenceData', result.current);
- // expect(result.current.preferenceData).toBeDefined();
- // expect(typeof result.current.refetchPreferences).toBe('function');
- // });
-
it('should return all available teams correctly', () => {
(useTeamsByStore as jest.Mock).mockReturnValue({
data: mockGetTeamsByStoreQuery.result.data.getTeamsByStore,
@@ -205,15 +192,6 @@ describe('useTeamSelection', () => {
expect(result.current.sections).toBeDefined();
});
- // it('should handle null primary team data', () => {
- // (useTeamsByStore as jest.Mock).mockReturnValue({
- // data: mockGetTeamsByStoreQuery.result.data.getTeamsByStore,
- // });
- // (UserSelectors.getTeams as jest.Mock).mockReturnValue(null);
- // const { result } = renderHookWithProviders(useTeamSelection);
- // expect(result.current.primaryTeamData).toBeUndefined();
- // });
-
it('should handle teamsByWorkgroup with empty data', () => {
(useTeamsByStore as jest.Mock).mockReturnValue({
data: [],
@@ -223,7 +201,6 @@ describe('useTeamSelection', () => {
expect(result.current.allAvailableTeams()).toEqual([]);
});
- // it('should correctly map selected team IDs', () => {
// const mockData = [
// { teamId: '123', teamName: 'Team1' },
// { teamId: '456', teamName: 'Team2' },
--- packages/allspark-foundation-hub/__tests__/store/teams.test.ts
@@ -127,14 +127,14 @@ describe('TeamSelection Utils - teams.tsx', () => {
const workgroupKeys = ['Design', 'Marketing', OTHER_WORKGROUP];
const resultWithNull = sortWorkgroupKeysForTeamList(workgroupKeys, null);
- expect(resultWithNull[0]).toBe('Design'); // Alphabetical order
+ expect(resultWithNull[0]).toBe('Design');
expect(resultWithNull[resultWithNull.length - 1]).toBe(OTHER_WORKGROUP);
const resultWithUndefined = sortWorkgroupKeysForTeamList(
workgroupKeys,
undefined
);
- expect(resultWithUndefined[0]).toBe('Design'); // Alphabetical order
+ expect(resultWithUndefined[0]).toBe('Design');
expect(resultWithUndefined[resultWithUndefined.length - 1]).toBe(
OTHER_WORKGROUP
);
@@ -152,7 +152,6 @@ describe('TeamSelection Utils - teams.tsx', () => {
const workgroupKeys = ['Design', 'Marketing', 'Design', OTHER_WORKGROUP];
const result = sortWorkgroupKeysForTeamList(workgroupKeys, 'Design');
- // Both instances of 'Design' should come first
expect(result[0]).toBe('Design');
expect(result[1]).toBe('Design');
});
@@ -208,8 +207,6 @@ describe('TeamSelection Utils - teams.tsx', () => {
const teamA = { teamId: '1', teamName: 'Team', workgroup: 'Test' };
const teamB = { teamId: '2', teamName: 'team', workgroup: 'Test' };
- // Expected result depends on implementation, but we should get a consistent sort
- // Most implementations will sort case-sensitively (uppercase before lowercase)
const result = sortTeamsAscComparator(teamA, teamB);
expect([ASC_SORT, DESC_SORT, NO_SORT]).toContain(result);
});
@@ -249,11 +246,11 @@ describe('TeamSelection Utils - teams.tsx', () => {
it('should handle null or undefined myArea', () => {
const areasNull = ['Design', 'Engineering', 'Marketing'];
const resultNull = [...areasNull].sort(sortAreas(null));
- expect(resultNull).toEqual(['Design', 'Engineering', 'Marketing']); // Should be alphabetical
+ expect(resultNull).toEqual(['Design', 'Engineering', 'Marketing']);
const areasUndefined = ['Design', 'Engineering', 'Marketing'];
const resultUndefined = [...areasUndefined].sort(sortAreas(undefined));
- expect(resultUndefined).toEqual(['Design', 'Engineering', 'Marketing']); // Should be alphabetical
+ expect(resultUndefined).toEqual(['Design', 'Engineering', 'Marketing']);
});
it('should handle empty strings as myArea', () => {
| feat(ui): cleanup and case fix | feat(ui): cleanup and case fix
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.