commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
1a76b1fddac815438904893a3dca4de2b5b71594 | --- __tests__/hooks/useCanImpersonateTest.ts
@@ -2,11 +2,7 @@ import {renderHook} from '@testing-library/react-hooks';
import {useSelector} from 'react-redux';
import {useCanImpersonate} from '../../src/hooks';
-import WmConfig from 'react-native-wm-config';
-jest.mock('react-native-wm-config', () => ({
- getValue: jest.fn(),
-}));
jest.mock('react-redux', () => ({
useSelector: jest.fn(),
}));
@@ -16,7 +12,6 @@ jest.mock('@walmart/react-native-logger', () => ({
},
}));
-const mockGetValue = WmConfig.getValue as jest.Mock;
const mockUseSelector = useSelector as jest.Mock;
describe('useCanImpersonate', () => {
@@ -26,16 +21,18 @@ describe('useCanImpersonate', () => {
memberOf: ['things', 'junk', 'stuff'],
};
const state = {
- wmConfig: {
- wmConfigActivated: true,
- },
user: {
data: user,
},
+ appConfig: {
+ data: {
+ core: {
+ impersonatorGroups,
+ },
+ },
+ },
};
- mockGetValue.mockReturnValue({
- asString: () => JSON.stringify(impersonatorGroups),
- });
+
mockUseSelector.mockImplementation((selector: (state: any) => any) => {
return selector(state);
});
@@ -49,13 +46,14 @@ describe('useCanImpersonate', () => {
memberOf: ['things', 'junk', 'stuff'],
};
const state = {
- wmConfig: {
- wmConfigActivated: false,
- },
user: {
data: user,
},
+ appConfig: {
+ data: null,
+ },
};
+
mockUseSelector.mockImplementation((selector: (state: any) => any) => {
return selector(state);
});
@@ -70,16 +68,18 @@ describe('useCanImpersonate', () => {
memberOf: ['things', 'junk'],
};
const state = {
- wmConfig: {
- wmConfigActivated: true,
- },
user: {
data: user,
},
+ appConfig: {
+ data: {
+ core: {
+ impersonatorGroups,
+ },
+ },
+ },
};
- mockGetValue.mockReturnValue({
- asString: () => JSON.stringify(impersonatorGroups),
- });
+
mockUseSelector.mockImplementation((selector: (state: any) => any) => {
return selector(state);
});
--- src/hooks/useCanImpersonate.ts
@@ -1,5 +1,3 @@
-import {useState, useEffect} from 'react';
-import WmConfig from 'react-native-wm-config';
import {useSelector} from 'react-redux';
import {getOriginalUserData} from '../redux';
import {User} from '@walmart/redux-store';
@@ -9,27 +7,18 @@ export interface UserWithGroups extends User {
}
export const useCanImpersonate = () => {
- const [canImpersonate, setCanImpersonate] = useState(false);
-
const user = useSelector(getOriginalUserData) as UserWithGroups;
- const configReady = useSelector(
- (state: any) => state.wmConfig?.wmConfigActivated,
+ const impersonatorGroups = useSelector(
+ (state: any) => state.appConfig?.data?.core?.impersonatorGroups,
);
- useEffect(() => {
- if (configReady) {
- const impersonatorGroupsText = WmConfig.getValue(
- 'core',
- 'impersonatorGroups',
- ).asString();
- const impersonatorGroups = JSON.parse(impersonatorGroupsText) as string[];
- if (impersonatorGroups && impersonatorGroups.length > 0) {
- setCanImpersonate(
- impersonatorGroups.some((group) => user?.memberOf?.includes(group)),
- );
- }
- }
- }, [configReady, user]);
+ let canImpersonate = false;
+
+ if (impersonatorGroups && impersonatorGroups.length > 0) {
+ canImpersonate = impersonatorGroups.some((group: string) =>
+ user?.memberOf?.includes(group),
+ );
+ }
return canImpersonate;
};
| move impersonator groups to ccm (#385) | move impersonator groups to ccm (#385)
Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com> |
658dc988dfdb050377e88176ee912bb5f29504a8 | --- src/channels/components/ChannelRow.tsx
@@ -117,7 +117,8 @@ export const ChannelRow = (props: ChannelRowProps) => {
const shouldDisplayLastMessage =
lastMessage?.createdAt &&
- lastMessage?.createdAt?.nanoseconds < SEVEN_DAYS_AGO_TIMESTAMP?.nanoseconds;
+ lastMessage?.createdAt?.toDate()?.getMilliseconds() <
+ SEVEN_DAYS_AGO_TIMESTAMP?.toDate()?.getMilliseconds();
const updatedLastMessageTime = shouldDisplayLastMessage
? lastMessageTime
--- src/channels/provider.tsx
@@ -103,8 +103,8 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => {
if (
!isNil(lastMessageTimeInFirestore) &&
lastMessageTimeInFirestore &&
- lastMessageTimeInFirestore?.nanoseconds >
- SEVEN_DAYS_AGO_TIMESTAMP?.nanoseconds
+ lastMessageTimeInFirestore?.toDate()?.getMilliseconds() <
+ SEVEN_DAYS_AGO_TIMESTAMP?.toDate()?.getMilliseconds()
) {
teamChannelDoc.update({
participants: firestore.FieldValue.arrayUnion(viewerId),
@@ -147,8 +147,8 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => {
if (
!isNil(lastMessageTimeInFirestore) &&
lastMessageTimeInFirestore &&
- lastMessageTimeInFirestore?.nanoseconds >
- SEVEN_DAYS_AGO_TIMESTAMP?.nanoseconds
+ lastMessageTimeInFirestore?.toDate()?.getMilliseconds() <
+ SEVEN_DAYS_AGO_TIMESTAMP?.toDate()?.getMilliseconds()
) {
storeChannelDoc.update({
participants: firestore.FieldValue.arrayUnion(viewerId),
--- src/channels/components/ChannelRow.tsx
@@ -117,7 +117,8 @@ export const ChannelRow = (props: ChannelRowProps) => {
const shouldDisplayLastMessage =
lastMessage?.createdAt &&
- lastMessage?.createdAt?.nanoseconds < SEVEN_DAYS_AGO_TIMESTAMP?.nanoseconds;
+ lastMessage?.createdAt?.toDate()?.getMilliseconds() <
+ SEVEN_DAYS_AGO_TIMESTAMP?.toDate()?.getMilliseconds();
const updatedLastMessageTime = shouldDisplayLastMessage
? lastMessageTime
--- src/channels/provider.tsx
@@ -103,8 +103,8 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => {
if (
!isNil(lastMessageTimeInFirestore) &&
lastMessageTimeInFirestore &&
- lastMessageTimeInFirestore?.nanoseconds >
- SEVEN_DAYS_AGO_TIMESTAMP?.nanoseconds
+ lastMessageTimeInFirestore?.toDate()?.getMilliseconds() <
+ SEVEN_DAYS_AGO_TIMESTAMP?.toDate()?.getMilliseconds()
) {
teamChannelDoc.update({
participants: firestore.FieldValue.arrayUnion(viewerId),
@@ -147,8 +147,8 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => {
if (
!isNil(lastMessageTimeInFirestore) &&
lastMessageTimeInFirestore &&
- lastMessageTimeInFirestore?.nanoseconds >
- SEVEN_DAYS_AGO_TIMESTAMP?.nanoseconds
+ lastMessageTimeInFirestore?.toDate()?.getMilliseconds() <
+ SEVEN_DAYS_AGO_TIMESTAMP?.toDate()?.getMilliseconds()
) {
storeChannelDoc.update({
participants: firestore.FieldValue.arrayUnion(viewerId),
| update the time | update the time
|
1d759eabc2bbed7881544bef620b0164374ebce3 | --- ios/AllSpark.xcodeproj/project.pbxproj
@@ -524,7 +524,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 212ACBF9F6EA1B3866D5D388 /* Pods-AllSpark.debug.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta";
+ ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
@@ -568,7 +568,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 18C7AF990A657BA8B527E5F6 /* Pods-AllSpark.release.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta";
+ ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements;
CODE_SIGN_IDENTITY = "iPhone Distribution";
--- ios/AllSpark/Info.plist
@@ -108,7 +108,7 @@
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key>
- <string>LaunchScreen-Beta</string>
+ <string>LaunchScreen-Dev</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
--- ios/Podfile.lock
@@ -548,6 +548,8 @@ PODS:
- React
- RNPermissions (3.0.0):
- React-Core
+ - RNReactNativeABeep (1.0.4):
+ - React
- RNReactNativeHapticFeedback (1.11.0):
- React-Core
- RNReanimated (1.13.1):
@@ -674,6 +676,7 @@ DEPENDENCIES:
- RNFS (from `../node_modules/react-native-fs`)
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
- RNPermissions (from `../node_modules/react-native-permissions`)
+ - RNReactNativeABeep (from `../node_modules/react-native-a-beep/ios`)
- RNReactNativeHapticFeedback (from `../node_modules/react-native-haptic-feedback`)
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
@@ -875,6 +878,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-gesture-handler"
RNPermissions:
:path: "../node_modules/react-native-permissions"
+ RNReactNativeABeep:
+ :path: "../node_modules/react-native-a-beep/ios"
RNReactNativeHapticFeedback:
:path: "../node_modules/react-native-haptic-feedback"
RNReanimated:
@@ -1011,6 +1016,7 @@ SPEC CHECKSUMS:
RNFS: 93d5b5535eb39d98e6b19009faa8fe717f7ea45d
RNGestureHandler: 7a5833d0f788dbd107fbb913e09aa0c1ff333c39
RNPermissions: 350964d19150b183796a88180fb7ec62a1e41422
+ RNReactNativeABeep: 48dcc9a3c52ac98a5e2df055d760a36dc5cba754
RNReactNativeHapticFeedback: 653a8c126a0f5e88ce15ffe280b3ff37e1fbb285
RNReanimated: dd8c286ab5dd4ba36d3a7fef8bff7e08711b5476
RNScreens: d6da2b9e29cf523832c2542f47bf1287318b1868
@@ -1036,4 +1042,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: bad445a1e03103e750e2363574e815776b61d95e
-COCOAPODS: 1.11.2
+COCOAPODS: 1.10.1
| reverting podfile and ios env changes | reverting podfile and ios env changes
|
2008de3b49bd01671526be57465842498b167b33 | --- package-lock.json
@@ -3228,9 +3228,9 @@
"integrity": "sha512-R+Kkr3KRExpa59xqPkVPF66+zGo88oZiqbfFx+BzrIJE6eUTUKTGCeiidVci+xjmfSnp6TKrMUkRBxh2b/GffA=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.1.52",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.52.tgz",
- "integrity": "sha512-XdtyOoTcIppZAAV52QwcD3YldtP6D2WYRuKKM3gTYjwCFhmDJ+pLd40RkvwObSl9HDNBieW8iBDJqzHUEVl04Q==",
+ "version": "0.1.54",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.54.tgz",
+ "integrity": "sha512-knJBm8r/bD+F2cQ4zBaNPZ9sFk0qmVpgXdnPX6QhB3FOGys1PSvUVyU8jBXaixVuHhEMiTtXwaXYP9sNMylG4A==",
"requires": {
"@react-native-community/datetimepicker": "^3.0.3",
"javascript-time-ago": "^2.3.4",
--- package.json
@@ -77,7 +77,7 @@
"@walmart/redux-store": "^1.0.12",
"@walmart/schedule-mini-app": "0.2.67",
"@walmart/settings-mini-app": "1.1.20",
- "@walmart/time-clock-mini-app": "0.1.52",
+ "@walmart/time-clock-mini-app": "0.1.54",
"@walmart/ui-components": "1.0.102",
"@walmart/welcomeme-mini-app": "0.5.27",
"crypto-js": "^3.3.0",
| Time clock startup, MDM, and splunk fix (#462) | Time clock startup, MDM, and splunk fix (#462)
* Time clock startup and splunk fix
* Filter sams clubs from mdm response
Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com> |
e9cf3e93334ada29b278b6002fda382986f1c7fb | --- src/components/Roster/Roster.tsx
@@ -64,6 +64,7 @@ export const Roster: React.FC<RosterProps> = (props) => {
//TODO: teamLeads should not be controlled by CCM. This list should be controlled bt RBAC. Reconsider impl for teamLead check
const teamLeads = useSelector(teamLeadJobDescriptions) as string[];
+ //TODO: Roster filter broke after port, troubleshoot further and fix
const onFilter = (
filteredAssociates: AssociateRosterItem[],
filterId: FilterValue,
| adding the roster filter | adding the roster filter
|
1de3f0af1ec1b9b7e3cfe1992c6bb4281028959a | --- packages/allspark-foundation-hub/__tests__/__mocks__/data/apolloMocks.ts
@@ -231,7 +231,7 @@ export const apolloMocks = [
mewClockedOutCount: 30,
site: '100',
teamId: '1000282',
- teamName: 'Apparel',
+ teamName: 'Fashion',
workgroup: 'GM',
workgroupId: '1000216',
},
--- packages/allspark-foundation-hub/__tests__/__mocks__/data/getTeamsByStoreMock.ts
@@ -151,7 +151,7 @@ export const mockGetTeamsByStoreQuery = {
mewClockedOutCount: 30,
site: '100',
teamId: '1000282',
- teamName: 'Apparel',
+ teamName: 'Fashion',
workgroup: 'GM',
workgroupId: '1000216',
},
--- packages/allspark-foundation-hub/__tests__/__mocks__/data/teamData.ts
@@ -578,7 +578,7 @@ export const teamData = [
mewTardyCount: 0,
site: '100',
teamId: '1000282',
- teamName: 'Apparel',
+ teamName: 'Fashion',
workgroup: 'GM',
workgroupId: '1000216',
},
--- packages/allspark-foundation-hub/__tests__/__mocks__/data/teamSelection.ts
@@ -29,7 +29,7 @@ export const areaTeamMap: AreaTeamMap = {
],
'Fuel': [{ teamName: 'Fuel', teamId: '1000319' }],
'General Merchandise': [
- { teamName: 'Apparel', teamId: '1000282' },
+ { teamName: 'Fashion', teamId: '1000282' },
{ teamName: 'Auto Care Center', teamId: '1000340' },
{ teamName: 'Entertainment', teamId: '1000198' },
{ teamName: 'Hardlines', teamId: '1000187' },
--- packages/allspark-foundation-hub/src/Shared/Images/images.tsx
@@ -37,7 +37,7 @@ export const StoreImages: Record<any, ImageReturn> = {
blurhash: 'KRQTGy4;^*R+IokC~U-SIp',
},
'1000282': {
- teamName: 'Apparel',
+ teamName: 'Fashion',
uri: 'https://i5-me.walmartimages.com/images/teams/apparel-mgr-exp-dd10fcf60a.png',
blurhash: 'KpR37uNL?^S*jYng?vxZD%',
},
| chore(ui): clean up apparel from code base (#275) | chore(ui): clean up apparel from code base (#275)
Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com> |
16ae21c90539ce20a07d87b8e5d2afccde4ef995 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 16
+ versionCode 17
versionName "1.0.1"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>16</string>
+ <string>17</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>invmgmt</string>
--- ios/AllSparkTests/Info.plist
@@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>16</string>
+ <string>17</string>
</dict>
</plist>
| Incrementing build number | Incrementing build number
|
5bd918c18a305fc62580fdcf6005a3367f150a24 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart",
- "version": "1.33.0",
+ "version": "1.34.0",
"main": "index.js",
"private": true,
"workspaces": [
| fix: update version for drop 34 (#4685) | fix: update version for drop 34 (#4685)
Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com> |
e4d34baccdf62398c088e8651a77e6e7ddec8ec9 | --- package-lock.json
@@ -3509,9 +3509,9 @@
"integrity": "sha512-bRj8dBPIo3ShYDH800Lm9XfbCHk8Kclu+Cqbdo/oEB3DIQtoK4TSoyIm8W+c9nhd/kaeEQsev6N99WmNj5BEAg=="
},
"@walmart/schedule-mini-app": {
- "version": "0.3.0",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.3.0.tgz",
- "integrity": "sha512-oeuIR4tNfpdgccpEexd5I09RQiwfxsGsMnqfnA3Q6Du3KiBe9xYFY+fte0bWvfe40m8ZftJCjJNfB2C4v/qObQ==",
+ "version": "0.3.1",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.3.1.tgz",
+ "integrity": "sha512-rPUEIhhP0V+qaKBOjCRPSXAQ0tYLO9YNm5XPiCiuNuj13bsV+vM3iGxwCxCc+SnotWRXXNhFFVik04Psipm2Tg==",
"requires": {
"@walmart/moment-walmart": "^1.0.4",
"@walmart/wfm-ui": "0.1.52",
--- package.json
@@ -94,7 +94,7 @@
"@walmart/react-native-shared-navigation": "^0.4.0",
"@walmart/react-native-sumo-sdk": "^2.0.0-beta-7",
"@walmart/redux-store": "^1.0.15",
- "@walmart/schedule-mini-app": "0.3.0",
+ "@walmart/schedule-mini-app": "0.3.1",
"@walmart/settings-mini-app": "1.3.7",
"@walmart/shelfavailability-mini-app": "0.3.89",
"@walmart/time-clock-mini-app": "0.4.10",
| Bumping schedule-mini-app | Bumping schedule-mini-app
|
1245eab788bc73d4db1485a4a6b6a545cc22a6da | --- src/components/RosterWidget.tsx
@@ -76,7 +76,7 @@ export const RosterWidget = (props: WidgetDataProps) => {
export const Header = () => {
const {t} = useTranslation([MY_TEAM_I18N_NAMESPACE]);
return (
- <HubHeader title={t('hubheader.title')} subText={t('hubheader.subText')} />
+ <HubHeader title={t('hubHeader.title')} subText={t('hubHeader.subText')} />
);
};
| feat(ui): fixed typo for labels | feat(ui): fixed typo for labels
|
52f634405725d4350c8284724288baffe3da46c3 | --- package.json
@@ -1,7 +1,7 @@
{
"name": "@walmart/wmconnect-mini-app",
"version": "2.38.0",
- "main": "dist/index.js",
+ "main": "main.js",
"files": [
"dist",
"main.js"
| feat(ui): update wmconnect develop with main | feat(ui): update wmconnect develop with main
|
184b634f2a29fdafc4b7f737f3688cbe0b871e36 | --- package-lock.json
@@ -54,7 +54,7 @@
"@walmart/checkout-mini-app": "3.9.310",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.7",
+ "@walmart/copilot-mini-app": "3.92.8",
"@walmart/core-services": "6.0.16",
"@walmart/core-services-allspark": "6.0.16",
"@walmart/core-utils": "6.0.16",
@@ -11193,9 +11193,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "3.92.7",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.7.tgz",
- "integrity": "sha512-Rz/MBWZGR3YFg7NfCtJh3ak1GfpRNQCp0PVIHKCqQqY6+uXZ+6iA0tx6PbTdDgcShgt0ZTA4n/f5d4QYkq/cvA==",
+ "version": "3.92.8",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.8.tgz",
+ "integrity": "sha512-NbCNY4HtEfvdasKgPwYIj2vO3BUxuRnot6/iMAs4x4+kggmhnO7HwykD1Pk3/LKaA8eccpKInhCWiWi5wc2M7g==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
--- package.json
@@ -95,7 +95,7 @@
"@walmart/checkout-mini-app": "3.9.310",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.7",
+ "@walmart/copilot-mini-app": "3.92.8",
"@walmart/core-services": "6.0.16",
"@walmart/core-services-allspark": "6.0.16",
"@walmart/core-utils": "6.0.16",
@@ -360,7 +360,7 @@
"@walmart/calling-mini-app": "0.1.24",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.7",
+ "@walmart/copilot-mini-app": "3.92.8",
"@walmart/core-services": "6.0.16",
"@walmart/core-services-allspark": "6.0.16",
"@walmart/core-utils": "6.0.16",
| chore: bump copilot@3.92.8 | chore: bump copilot@3.92.8
|
cffcb930a0a25b4038a3581dcfcabac7765fbb1e | --- package-lock.json
@@ -35,7 +35,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "1.1.30",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.3.74",
+ "@walmart/ask-sam-mini-app": "1.12.1",
"@walmart/attendance-mini-app": "0.86.0",
"@walmart/compass-sdk-rn": "3.16.17",
"@walmart/config-components": "4.1.0-rc.4",
@@ -4797,9 +4797,9 @@
}
},
"node_modules/@walmart/ask-sam-mini-app": {
- "version": "1.3.74",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.74.tgz",
- "integrity": "sha512-gsj+1bZGnWAzpwarAKCs2zjBL3/68yODdPtpUlMRTXwRpXsGT0XC9d4HZI9bRu9LoQFbqqL7TqBr56Qga3OWzg==",
+ "version": "1.12.1",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.12.1.tgz",
+ "integrity": "sha512-7/O80+/11485PmNt8Q8MrcDZuboElyqB861RdanU0nCqBec5k3psW8svqcPLVJgaqkmAEHdECXClo0SkO+ze1Q==",
"license": "NONE",
"dependencies": {
"apisauce": "^1.1.2",
@@ -25147,9 +25147,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "1.3.74",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.74.tgz",
- "integrity": "sha512-gsj+1bZGnWAzpwarAKCs2zjBL3/68yODdPtpUlMRTXwRpXsGT0XC9d4HZI9bRu9LoQFbqqL7TqBr56Qga3OWzg==",
+ "version": "1.12.1",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.12.1.tgz",
+ "integrity": "sha512-7/O80+/11485PmNt8Q8MrcDZuboElyqB861RdanU0nCqBec5k3psW8svqcPLVJgaqkmAEHdECXClo0SkO+ze1Q==",
"requires": {
"apisauce": "^1.1.2",
"axios-cache-adapter": "^2.7.3",
--- package.json
@@ -77,7 +77,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "1.1.30",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.3.74",
+ "@walmart/ask-sam-mini-app": "1.12.1",
"@walmart/attendance-mini-app": "0.86.0",
"@walmart/compass-sdk-rn": "3.16.17",
"@walmart/config-components": "4.1.0-rc.4",
| Bumped ask-sam-mini-app version | Bumped ask-sam-mini-app version
|
f8b576eeeffb29dc601567ef83c228767d320a8d | --- src/transforms/user.ts
@@ -1,7 +1,9 @@
/* eslint-disable curly */
-import {User} from '@walmart/redux-store';
+import {User, UserSelectors} from '@walmart/redux-store';
import type {LoggedInUser} from '../services/KGraph';
+const {returnIfValid} = UserSelectors;
+
export const NOT_FOUND = 'NOT_FOUND';
export const DEFAULT_COUNTRY_CODE = 'US';
@@ -91,9 +93,13 @@ export const kGraphUserToRedux = (
): User => {
const associate = kgUser?.associate;
- const domain = inferDomain(kgUser?.wmBusinessUnitType, kgUser?.mail);
const siteId = inferSiteId(kgUser?.sub);
const workingSite = kgUser?.wmBusinessUnitNumber || NOT_FOUND;
+ const domainFallback =
+ returnIfValid(kgUser?.sub) ||
+ returnIfValid(kgUser?.userPrincipalName) ||
+ returnIfValid(kgUser?.mail);
+ const domain = inferDomain(kgUser?.wmBusinessUnitType, domainFallback);
const user: User = {
domain,
| Updating user transforms domain fallback | Updating user transforms domain fallback
|
1282f6bc5339fb28cebd7b71e81e64e5d2ef6fe1 | --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MainTabsNavTest.tsx.snap
@@ -18,7 +18,7 @@ exports[`MainTabsNav matches snapshot when disabled from config 1`] = `
name="copilot"
options={
{
- "tabBarAccessibilityLabel": "navigation.work",
+ "tabBarAccessibilityLabel": "navigation.copilot.work",
"tabBarBadge": undefined,
"tabBarBadgeStyle": {
"alignItems": "center",
@@ -266,7 +266,7 @@ exports[`MainTabsNav matches snapshot with no badges 1`] = `
name="copilot"
options={
{
- "tabBarAccessibilityLabel": "navigation.work",
+ "tabBarAccessibilityLabel": "navigation.copilot.work",
"tabBarBadge": undefined,
"tabBarBadgeStyle": {
"alignItems": "center",
--- src/navigation/AssociateHallwayNav/Tabs/index.tsx
@@ -169,17 +169,10 @@ export const MainTabsNav = () => {
const [t] = useTranslation('common');
const {bottom} = useSafeAreaInsets();
- const A11Y_PAUSE = ', :';
const badgesCount = useSelector(getInboxBadgeCount);
const taskTabBadge = getTaskTabBarBadge();
const myTeamTabBadge = MyTeamHooks.useMessagesUnreadCount();
const {total} = useWorkBadgeCount();
- const workTabA11yTranslate =
- t('navigation.work') +
- A11Y_PAUSE +
- total +
- A11Y_PAUSE +
- t('navigation.notifications');
const configMap = useSelector(getBottomNavConfigMap);
const {home, me, askSam, myTeam, taskit, copilot} = configMap;
@@ -253,8 +246,8 @@ export const MainTabsNav = () => {
options={{
tabBarTestID: 'Work',
tabBarAccessibilityLabel: total
- ? workTabA11yTranslate
- : t('navigation.work'),
+ ? t('navigation.copilot.workNotificationsLabel', {total})
+ : t('navigation.copilot.work'),
tabBarIcon: renderTabBarIcon.bind({
icon: 'inactive-task',
iconSelected: 'task-active',
--- src/translations/en-US.ts
@@ -110,7 +110,11 @@ export const enUS_common = {
},
navigation: {
askSam: 'Ask Sam',
- copilot: 'Work',
+ copilot: {
+ work: 'Work',
+ workNotificationsLabel:
+ '$t(navigation.copilot.work), {{total}} $t(navigation.notifications)',
+ },
emergency: 'Message Details',
featureRestrictions: 'Feature restrictions',
feedback: 'Feedback',
@@ -136,7 +140,6 @@ export const enUS_common = {
taskit: 'Notes',
terms_of_use: 'Terms of Use',
whatsNew: "What's New",
- work: 'Work',
},
permissions: {
continueButton: 'Continue',
--- src/translations/es-MX.ts
@@ -117,7 +117,11 @@ export const esMX_common = {
},
navigation: {
askSam: 'Ask Sam',
- copilot: 'Trabajo',
+ copilot: {
+ work: 'Trabajo',
+ workNotificationsLabel:
+ '$t(navigation.copilot.work), {{total}} $t(navigation.notifications)',
+ },
emergency: 'Message Details',
featureRestrictions: 'Restricciones',
feedback: 'Comentarios',
@@ -143,7 +147,6 @@ export const esMX_common = {
taskit: 'Notas',
terms_of_use: 'Condiciones de uso',
whatsNew: 'Novedades en la app',
- work: 'Trabajar',
},
permissions: {
continueButton: 'Seguir',
| fix: translation feedback to combine strings | fix: translation feedback to combine strings
|
3ba8b10c14aa828a7582c6e8ac79ca12379b0020 | --- packages/allspark-foundation/src/GraphQL/README.md
@@ -0,0 +1,51 @@
+# AllsparkGraphQLClient
+
+The `AllsparkGraphQLClient` provides a simple, unified interface for making GraphQL requests. It is an extension of [Apollo Client](https://www.apollographql.com/docs/react/) and can create scoped clients for use in feature apps.
+
+Its underlying fetch implementation uses the `AllsparkHttpClient`.
+
+## Container Client
+
+The container client is the globally available `AllsparkGraphQLClient` instance. It is configured through the `AllsparkContainer` class and controls all feature instances created from it.
+
+It uses the `AllsparkHttpClient` as its underlying fetch implementation. So any configuration applied to the `AllsparkHttpClient` will indirectly be applied to the requests coming from `AllsparkGraphQLClient`.
+
+## Feature Client
+
+A feature client is a scoped GraphQL client that's used to make GraphQL requests from a feature app.
+
+It's scoped in that all requests include the `featureId` as a header in each request. This allows the container to identify the feature that made the request.
+
+If a feature http client is created with the same `featureId` it will be used for the underlying fetch implementation. If none is found, the `AllsparkHttpClient` will be used instead. So any configuration applied to a features http client will indirectly be applied to the requests coming from `AllsparkGraphQLClient`.
+
+## API
+
+### `createFeatureClient`
+
+Creates a scoped GraphQL client for use in a feature app. `AllsparkFeature.createGraphQLClient` is a wrapper around this method and should be used instead whenever possible.
+
+#### `config.headers`
+
+The `headers` config option is used to configure the default headers for all requests.
+
+#### `config.typePolicies`
+
+The `typePolicies` config option is used to add feature specific type policies to the GraphQL client cache.
+
+```typescript
+const MyFeatureHttpClient = MyFeature.createHttpClient({
+ headers: {
+ 'my-feature-header': 'my-feature-header-value',
+ },
+ timeout: 10000,
+ transformRequest: [
+ (data, headers) => {
+ // Do something with the request data
+ return data;
+ },
+ ],
+ // ...etc
+});
+```
+
+### `getFeatureClient`
--- packages/allspark-foundation/src/HTTP/README.md
@@ -0,0 +1,57 @@
+# AllsparkHttpClient
+
+The `AllsparkHttpClient` provides a simple, unified interface for making HTTP requests. It is an extension of [Axios](https://axios-http.com/) and can create scoped clients for use in feature apps.
+
+## Container Client
+
+An `AllsparkContainer` should use the globally available `AllsparkHttpClient` instance. Its configured through the `AllsparkContainer` class and controls all feature instances created from it.
+
+## Feature Client
+
+A feature client is a scoped HTTP client that's used to make HTTP requests from a feature app.
+
+It's scoped in that all requests include the `featureId` as a `x-http-client-feature-key` header. This allows the container to identify the feature that made the request.
+
+## API
+
+### `createFeatureClient`
+
+Creates a scoped HTTP client for use in a feature app. `AllsparkFeature.createHttpClient` is a wrapper around this method and should be used instead whenever possible.
+
+See the [axios request config documentation](https://axios-http.com/docs/req_config) for all possible configuration options.
+
+Note that `baseUrl` is omitted from the config options. Features are limited to a single http client, so the full url should be provided with each request.
+
+```typescript
+const MyFeatureHttpClient = MyFeature.createHttpClient({
+ headers: {
+ 'my-feature-header': 'my-feature-header-value',
+ },
+ timeout: 10000,
+ transformRequest: [
+ (data, headers) => {
+ // Do something with the request data
+ return data;
+ },
+ ],
+ // ...etc
+});
+```
+
+### `getFeatureClient`
+
+### `configure`
+
+### `cancelRequests`
+
+### `resumeRequests`
+
+### `addInterceptor`
+
+### `addInterceptors`
+
+### `getHeaders`
+
+### `useRequest`
+
+### `useLazyRequest`
| chore: documentation | chore: documentation
|
92dedd8e8ef1ba0bdc4d4402266b97611c303827 | --- package-lock.json
@@ -77,7 +77,7 @@
"@walmart/receipt-check-miniapp": "1.9.4",
"@walmart/redux-store": "3.1.3",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
- "@walmart/returns-mini-app": "0.9.0",
+ "@walmart/returns-mini-app": "0.11.0",
"@walmart/schedule-mini-app": "0.29.0",
"@walmart/settings-mini-app": "1.12.0",
"@walmart/shelfavailability-mini-app": "1.5.2",
@@ -5919,9 +5919,10 @@
}
},
"node_modules/@walmart/returns-mini-app": {
- "version": "0.9.0",
- "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.9.0.tgz",
- "integrity": "sha512-TqmPyb20PYDB+9+PRfi4vq79UfU68Wo0+LjdmTq9kQWhSHXwFgQntfimmgJXHsNOhFUtQCnBjR8pka+F1jW5uA==",
+ "version": "0.11.0",
+ "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.11.0.tgz",
+ "integrity": "sha512-wxg2WIWkD2cGTFDLvFi28zVqZZgoF0u4cmITFPhz6SvkLAY3/D+8QzHHLfwRDu3Y+37L4p/Ab3phKJWI2IWaHA==",
+ "hasInstallScript": true,
"dependencies": {
"@walmart/common-utilities-js": "^1.2.10",
"@walmart/virtual-zpl-printer-model": "^0.2.11",
@@ -5940,6 +5941,7 @@
"@walmart/redux-store": "^2.0.4",
"big-integer": "^1.6.51",
"cpc-input": "^1.7.28",
+ "promise.allsettled": "^1.0.6",
"react": "^16.13.1",
"react-native": "^0.70.4",
"react-native-html-parser": "^0.1.0",
@@ -25570,9 +25572,9 @@
"integrity": "sha512-YRNp3VcfzWTyDZt6h5hAUK5XTzUrblOZOWUclor4ht/g4E5Oo2sMF8rV5swXlB3QdSQUZwSsU60b01veuR3o6g=="
},
"@walmart/returns-mini-app": {
- "version": "0.9.0",
- "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.9.0.tgz",
- "integrity": "sha512-TqmPyb20PYDB+9+PRfi4vq79UfU68Wo0+LjdmTq9kQWhSHXwFgQntfimmgJXHsNOhFUtQCnBjR8pka+F1jW5uA==",
+ "version": "0.11.0",
+ "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.11.0.tgz",
+ "integrity": "sha512-wxg2WIWkD2cGTFDLvFi28zVqZZgoF0u4cmITFPhz6SvkLAY3/D+8QzHHLfwRDu3Y+37L4p/Ab3phKJWI2IWaHA==",
"requires": {
"@walmart/common-utilities-js": "^1.2.10",
"@walmart/virtual-zpl-printer-model": "^0.2.11",
--- package.json
@@ -119,7 +119,7 @@
"@walmart/receipt-check-miniapp": "1.9.4",
"@walmart/redux-store": "3.1.3",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
- "@walmart/returns-mini-app": "0.9.0",
+ "@walmart/returns-mini-app": "0.11.0",
"@walmart/schedule-mini-app": "0.29.0",
"@walmart/settings-mini-app": "1.12.0",
"@walmart/shelfavailability-mini-app": "1.5.2",
| bump returns version | bump returns version
|
03fe19184c7d9fc957a1728a8a65fa24b58967cb | --- docs/docusaurus.config.ts
@@ -83,7 +83,7 @@ const config: Config = {
// Uncomment this to enable blog
//{to: '/blog', label: 'Blog', position: 'left'},
{
- to: '',
+ to: 'https://gecgithub01.walmart.com/allspark/allspark',
label: 'FAQ',
position: 'right',
},
| Update getting started file | Update getting started file
|
34d4a7286805ba78037ae223d346810f5ef1fc1a | --- packages/core-services-allspark/src/graphql/cache.ts
@@ -33,6 +33,9 @@ const AllsparkTypePolicies: StrictTypedTypePolicies = {
keyFields: ['associateId'],
merge: true,
},
+ CourseAssertion: {
+ keyFields: ['assignedBy', 'completionStatus', 'id'],
+ },
MewAssociate: {
keyFields: ['associateId'],
merge: true,
@@ -40,6 +43,20 @@ const AllsparkTypePolicies: StrictTypedTypePolicies = {
MewTeam: {
keyFields: ['teamId', 'site'],
},
+ MicroLearnings: {
+ fields: {
+ completed: {
+ read(_, { args, toReference }) {
+ return toReference({
+ __typename: 'CourseAssertion',
+ assignedBy: args?.assignedBy,
+ completionStatus: args?.completionStatus,
+ id: args?.id,
+ });
+ },
+ },
+ },
+ },
Team: {
keyFields: ['teamId', 'site'],
merge: true,
| fix: add learning type policies | fix: add learning type policies
|
7b1b2a3602afcffa8cfae1a20279b44d97e95da5 | --- package.json
@@ -121,12 +121,12 @@
"@walmart/metrics-mini-app": "1.29.6",
"@walmart/mod-flex-mini-app": "1.25.4",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/money-auth-shared-components": "2.3.4",
+ "@walmart/money-auth-shared-components": "2.3.6",
"@walmart/myteam-mini-app": "1.20.0",
"@walmart/native-rfid-scanner": "4.0.20",
"@walmart/onewalmart-miniapp": "1.0.27",
- "@walmart/pay-stub-miniapp": "0.20.11",
- "@walmart/payrollsolution_miniapp": "0.145.33",
+ "@walmart/pay-stub-miniapp": "0.20.15",
+ "@walmart/payrollsolution_miniapp": "0.145.35",
"@walmart/price-changes-mini-app": "1.12.3",
"@walmart/profile-feature-app": "1.138.5",
"@walmart/react-native-cookies": "1.0.1",
--- yarn.lock
@@ -7342,12 +7342,12 @@ __metadata:
"@walmart/metrics-mini-app": "npm:1.29.6"
"@walmart/mod-flex-mini-app": "npm:1.25.4"
"@walmart/moment-walmart": "npm:1.0.4"
- "@walmart/money-auth-shared-components": "npm:2.3.4"
+ "@walmart/money-auth-shared-components": "npm:2.3.6"
"@walmart/myteam-mini-app": "npm:1.20.0"
"@walmart/native-rfid-scanner": "npm:4.0.20"
"@walmart/onewalmart-miniapp": "npm:1.0.27"
- "@walmart/pay-stub-miniapp": "npm:0.20.11"
- "@walmart/payrollsolution_miniapp": "npm:0.145.33"
+ "@walmart/pay-stub-miniapp": "npm:0.20.15"
+ "@walmart/payrollsolution_miniapp": "npm:0.145.35"
"@walmart/price-changes-mini-app": "npm:1.12.3"
"@walmart/profile-feature-app": "npm:1.138.5"
"@walmart/react-native-cookies": "npm:1.0.1"
@@ -7672,9 +7672,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/money-auth-shared-components@npm:2.3.4":
- version: 2.3.4
- resolution: "@walmart/money-auth-shared-components@npm:2.3.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmoney-auth-shared-components%2F-%2F%40walmart%2Fmoney-auth-shared-components-2.3.4.tgz"
+"@walmart/money-auth-shared-components@npm:2.3.6":
+ version: 2.3.6
+ resolution: "@walmart/money-auth-shared-components@npm:2.3.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmoney-auth-shared-components%2F-%2F%40walmart%2Fmoney-auth-shared-components-2.3.6.tgz"
peerDependencies:
"@react-navigation/drawer": ^6.6.4
"@react-navigation/native": ^6.0.0
@@ -7682,7 +7682,7 @@ __metadata:
"@walmart/allspark-foundation": "*"
"@walmart/core-services": ~2.0.11
"@walmart/gtp-shared-components": ^2.0.6
- checksum: 10c0/2665ef575f34b0807d253b589ce41c6856b3602245ff8b4be66cd0ea02609a662e549fb939781568baff2933b6373171dd784c6f06cfff3bd01bc3164646c184
+ checksum: 10c0/d06cb35b0e43fc331ded83b202b33f991d13946ae1a3cdbb89e51bcf1c113c00369817c700c6c7b0a9508b35e46dd0b5ed2fc13c8a8e912cfdb3a9fe2bfd1715
languageName: node
linkType: hard
@@ -7760,21 +7760,21 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/pay-stub-miniapp@npm:0.20.11":
- version: 0.20.11
- resolution: "@walmart/pay-stub-miniapp@npm:0.20.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpay-stub-miniapp%2F-%2F%40walmart%2Fpay-stub-miniapp-0.20.11.tgz"
+"@walmart/pay-stub-miniapp@npm:0.20.15":
+ version: 0.20.15
+ resolution: "@walmart/pay-stub-miniapp@npm:0.20.15::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpay-stub-miniapp%2F-%2F%40walmart%2Fpay-stub-miniapp-0.20.15.tgz"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/04f9772f8af0b16fa6ef910620c600e02baa3980fb7721a40bcfeea1d116ee061753aea6d34f2c7c008842da524f563b4056ea6a306c0139085785a4f0150ecb
+ checksum: 10c0/372899a6a613459fd0be606c0ce38553a67626b7599e26fd2daa540969471a0759ecc14be0d80bffc9158df3bd7d0c23afe0b8572abad16ac3329646c5c9dabf
languageName: node
linkType: hard
-"@walmart/payrollsolution_miniapp@npm:0.145.33":
- version: 0.145.33
- resolution: "@walmart/payrollsolution_miniapp@npm:0.145.33::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.145.33.tgz"
+"@walmart/payrollsolution_miniapp@npm:0.145.35":
+ version: 0.145.35
+ resolution: "@walmart/payrollsolution_miniapp@npm:0.145.35::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.145.35.tgz"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/06bb2a6955013667b6b1642ed656a27cd0c320a26c2ccd5d51275c72491397a090cf3c4023aa7a9f87fb53b8a615f05542bac84009bad1de60e9462c70c36fa0
+ checksum: 10c0/dfa8988734a4147cfdaaeb09fbc13143220e05eb83ba0e3af65b3e288f755a0e25d5522c35dfa91cf82ff68ed00579f6893b3e5dda5fc014e1fffdfc316dca9b
languageName: node
linkType: hard
| feat(ui): PAYROLL-28223 bump version to RN74 (#4071) | feat(ui): PAYROLL-28223 bump version to RN74 (#4071)
* feat: bump version
* feat(update rn74): OPIF-176734 upgrade to rn74
* feat: OPIF-176734 bump version
---------
Co-authored-by: xiaojie zhang - x0z06uf <Xiaojie.Zhang1@walmart.com> |
36be06e5ad16753db1db63615d78569b4ce32df1 | --- package.json
@@ -93,7 +93,7 @@
"@walmart/ask-sam-mini-app": "1.35.21",
"@walmart/associate-exp-hub-hub": "2.21.2",
"@walmart/associate-exp-hub-team-switcher": "2.23.2",
- "@walmart/associate-listening-mini-app": "2.0.11",
+ "@walmart/associate-listening-mini-app": "2.0.32",
"@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch",
"@walmart/avp-feature-app": "0.28.47",
"@walmart/avp-shared-library": "0.27.24",
--- yarn.lock
@@ -7823,9 +7823,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/associate-listening-mini-app@npm:2.0.11":
- version: 2.0.11
- resolution: "@walmart/associate-listening-mini-app@npm:2.0.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2F%40walmart%2Fassociate-listening-mini-app-2.0.11.tgz"
+"@walmart/associate-listening-mini-app@npm:2.0.32":
+ version: 2.0.32
+ resolution: "@walmart/associate-listening-mini-app@npm:2.0.32::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2F%40walmart%2Fassociate-listening-mini-app-2.0.32.tgz"
dependencies:
"@walmart/associate-listening-utils": "npm:6.4.3"
peerDependencies:
@@ -7836,7 +7836,7 @@ __metadata:
"@walmart/gtp-shared-components-3": "*"
react: ^18.3.1
react-native: 0.79.5
- checksum: 10c0/c5ea63806083459021ed1ea839d4ea7066ee10161a74d5d6e139dc26bde513b1d4d88d3649bc51a7bcecfe61a19926b4fafbc911c3f8617d849a6b897e6e75a3
+ checksum: 10c0/5c7322398287d9a9d3ba25c5686c5a9dfe1ad4809044c796510c0766bfae533bac8821afe79e370820c170a64d253cd38a225dd285338c8a971ceaae9ad36035
languageName: node
linkType: hard
@@ -8855,7 +8855,7 @@ __metadata:
"@walmart/ask-sam-mini-app": "npm:1.35.21"
"@walmart/associate-exp-hub-hub": "npm:2.21.2"
"@walmart/associate-exp-hub-team-switcher": "npm:2.23.2"
- "@walmart/associate-listening-mini-app": "npm:2.0.11"
+ "@walmart/associate-listening-mini-app": "npm:2.0.32"
"@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch"
"@walmart/avp-feature-app": "npm:0.28.47"
"@walmart/avp-shared-library": "npm:0.27.24"
| fix(engage-1623): associate-listening-mini-app - drop35 homecard (#5260) | fix(engage-1623): associate-listening-mini-app - drop35 homecard (#5260)
Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com>
Co-authored-by: Daniel Mustafa - damusta <Daniel.Mustafa@walmart.com>
Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com>
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com> |
52c8353483c28b0388aa66cfbef547e16cd489d8 | --- targets/US/package.json
@@ -107,7 +107,7 @@
"@walmart/functional-components": "~6.3.28",
"@walmart/global-vpi-mini-app": "1.1.1",
"@walmart/gta-react-native-calendars": "0.7.0",
- "@walmart/gtp-shared-components": "2.2.6-rc.1",
+ "@walmart/gtp-shared-components": "2.2.6",
"@walmart/ims-print-services-ui": "2.16.4",
"@walmart/inbox-mini-app": "0.97.13",
"@walmart/iteminfo-mini-app": "8.0.4",
--- yarn.lock
@@ -6837,9 +6837,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/gtp-shared-components@npm:2.2.6-rc.1":
- version: 2.2.6-rc.1
- resolution: "@walmart/gtp-shared-components@npm:2.2.6-rc.1"
+"@walmart/gtp-shared-components@npm:2.2.6":
+ version: 2.2.6
+ resolution: "@walmart/gtp-shared-components@npm:2.2.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fgtp-shared-components%2F-%2Fgtp-shared-components-2.2.6.tgz"
dependencies:
"@livingdesign/tokens": "npm:0.74.0"
"@walmart/gtp-shared-icons": "npm:1.0.10"
@@ -6857,7 +6857,7 @@ __metadata:
bin:
installFonts: scripts/installFonts
runCodemods: scripts/runCodemods
- checksum: 10c0/4cd644778b2b57118ddab0044f9b90a83b6b9c1f6de8060f4e9d624ec71b92781196439a7f3497693caca57b5f067197c1b4d6476ab3519ee2db0b599da4e559
+ checksum: 10c0/9fe03d2d0c6ea0f0b8612e3f336e03cd85e2594144c85d8dc01370c31f832833e53c67e49c0e9179be3c0ff211d032dbc274026965c852b26afef96680dd9721
languageName: node
linkType: hard
@@ -7404,7 +7404,7 @@ __metadata:
"@walmart/functional-components": "npm:~6.3.28"
"@walmart/global-vpi-mini-app": "npm:1.1.1"
"@walmart/gta-react-native-calendars": "npm:0.7.0"
- "@walmart/gtp-shared-components": "npm:2.2.6-rc.1"
+ "@walmart/gtp-shared-components": "npm:2.2.6"
"@walmart/ims-print-services-ui": "npm:2.16.4"
"@walmart/inbox-mini-app": "npm:0.97.13"
"@walmart/iteminfo-mini-app": "npm:8.0.4"
| update gtp version and remove RC version | update gtp version and remove RC version
|
70a0a678f3496cf595b3dc6ecc889f26ed1e260c | --- __tests__/navigation/USHallway/AssociateHallwayNav/Tabs/__snapshots__/MeStackNavTest.tsx.snap
@@ -13,17 +13,56 @@ exports[`MeStackNav headerLeft of initial screen match snapshot 1`] = `
<MenuIcon />
</IconButton>,
<View
+ accessibilityState={
+ {
+ "busy": undefined,
+ "checked": undefined,
+ "disabled": false,
+ "expanded": undefined,
+ "selected": undefined,
+ }
+ }
+ accessibilityValue={
+ {
+ "max": undefined,
+ "min": undefined,
+ "now": undefined,
+ "text": undefined,
+ }
+ }
+ accessible={false}
+ collapsable={false}
+ focusable={true}
+ onClick={[Function]}
+ onResponderGrant={[Function]}
+ onResponderMove={[Function]}
+ onResponderRelease={[Function]}
+ onResponderTerminate={[Function]}
+ onResponderTerminationRequest={[Function]}
+ onStartShouldSetResponder={[Function]}
style={
- [
- {
- "position": "absolute",
- "right": 0,
- "top": 10,
- },
- undefined,
- ]
+ {
+ "opacity": 1,
+ "position": "absolute",
+ "right": 0,
+ "top": 0,
+ }
}
- />,
+ testID="drawerBadgeTouchable"
+ >
+ <View
+ style={
+ [
+ {
+ "position": "absolute",
+ "right": 0,
+ "top": 10,
+ },
+ undefined,
+ ]
+ }
+ />
+ </View>,
]
`;
--- package.json
@@ -82,7 +82,7 @@
"@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch",
"@walmart/allspark-authentication": "7.1.4",
"@walmart/allspark-cope-key-listener": "0.0.18",
- "@walmart/allspark-foundation": "7.16.9",
+ "@walmart/allspark-foundation": "7.16.16",
"@walmart/allspark-foundation-hub": "1.25.9",
"@walmart/allspark-graphql-client": "~6.3.28",
"@walmart/allspark-http-client": "~6.3.28",
@@ -444,7 +444,7 @@
"react-native-svg": "15.11.2",
"@react-navigation/elements": "^2.2.6",
"@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch",
- "@walmart/allspark-foundation": "7.16.9",
+ "@walmart/allspark-foundation": "7.16.16",
"@walmart/allspark-utils": "7.3.0",
"@walmart/compass-sdk-rn": "6.4.16",
"@walmart/config-components": "patch:@walmart/config-components@npm%3A4.12.1#~/.yarn/patches/@walmart-config-components-npm-4.12.1-935618cf47.patch",
--- yarn.lock
@@ -7161,14 +7161,14 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation@npm:7.16.9":
- version: 7.16.9
- resolution: "@walmart/allspark-foundation@npm:7.16.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-7.16.9.tgz"
+"@walmart/allspark-foundation@npm:7.16.16":
+ version: 7.16.16
+ resolution: "@walmart/allspark-foundation@npm:7.16.16::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-7.16.16.tgz"
dependencies:
"@apollo/client": "npm:^3.8.6"
"@reduxjs/toolkit": "npm:^1.9.7"
"@walmart/allspark-cli": "npm:^1.7.3"
- "@walmart/allspark-utils": "npm:^7.2.1"
+ "@walmart/allspark-utils": "npm:^7.3.0"
axios: "npm:1.11.0"
axios-cache-interceptor: "npm:^1.3.2"
crypto-js: "npm:~4.2.0"
@@ -7248,7 +7248,7 @@ __metadata:
optional: true
react-native-permissions:
optional: true
- checksum: 10c0/3c26b3bb5a3077675e8e5c9836b031a50eb36bf13b05b92097963c0d031fbb2807ab1428e34b00a490206558f5a05246d17c6d7267f8e97af5d12975cc7b54b3
+ checksum: 10c0/3131b6943630c579f6d776770b68d7ec3ddb0d25d4e8acb5c80668dd4d598b0d2c13400851f3fd657d861d1c563c1a2a4003e4d376ce2e2d33efe9d70513c66b
languageName: node
linkType: hard
@@ -8480,7 +8480,7 @@ __metadata:
"@types/react-native-vector-icons": "npm:6.4.18"
"@walmart/allspark-authentication": "npm:7.1.4"
"@walmart/allspark-cope-key-listener": "npm:0.0.18"
- "@walmart/allspark-foundation": "npm:7.16.9"
+ "@walmart/allspark-foundation": "npm:7.16.16"
"@walmart/allspark-foundation-hub": "npm:1.25.9"
"@walmart/allspark-graphql-client": "npm:~6.3.28"
"@walmart/allspark-http-client": "npm:~6.3.28"
| chore: foundation version bump (#5204) | chore: foundation version bump (#5204)
|
25e7f22125698a1988e4565102118da5b95d9fe1 | --- package.json
@@ -73,7 +73,6 @@
"@react-navigation/stack": "^6.1.0",
"@sharcoux/slider": "^6.1.1",
"@terrylinla/react-native-sketch-canvas": "0.8.0",
- "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/allspark-graphql-client": "^0.1.0",
"@walmart/allspark-home-mini-app": "0.6.14",
"@walmart/allspark-neon-core": "0.1.31",
@@ -104,6 +103,7 @@
"@walmart/metrics-mini-app": "0.9.38",
"@walmart/mod-flex-mini-app": "1.3.15",
"@walmart/moment-walmart": "1.0.4",
+ "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/pay-stub-miniapp": "0.9.21",
"@walmart/payrollsolution_miniapp": "0.130.23",
"@walmart/price-changes-mini-app": "1.6.10",
| reverting minor change to package.json | reverting minor change to package.json
|
ab729f2fdbae17ed1509c32f66f8379398ea8930 | --- packages/me-at-walmart-container/__tests__/services/config.test.ts
@@ -26,32 +26,23 @@ import {
AppConfig,
} from '@walmart/config-components';
-
-
-
describe('actualListener', () => {
afterEach(() => {
jest.clearAllMocks();
});
-
it('should not call ChangeEventManager.runEvent when result is undefined', () => {
-
-
const runEventSpy = jest.spyOn(ChangeEventManager, 'runEvent');
actualListener(undefined);
expect( runEventSpy ).not.toHaveBeenCalled();
});
-
-
it('should call ChangeEventManager.runEvent when result is defined', () => {
const result = {
configs: ['config1', 'config2'],
};
const runEventSpy = jest.spyOn(ChangeEventManager, 'runEvent');
actualListener(result);
-
- expect(runEventSpy).toHaveBeenCalledWith('config_change', result.configs);
+ expect(runEventSpy).toHaveBeenCalledWith('config_change', result.configs);
});
});
@@ -68,9 +59,7 @@ describe('initialize', () => {
it('should call AppConfig.initialize with the provided config and return true', async () => {
const mockConfig = { key: 'value' }; // Replace with actual AppConfigInitParams structure if needed
(AppConfig.initialize as jest.Mock).mockResolvedValueOnce(undefined);
-
const result = await initialize(mockConfig);
-
expect(AppConfig.initialize).toHaveBeenCalledTimes(1);
expect(AppConfig.initialize).toHaveBeenCalledWith(mockConfig);
expect(result).toBe(true);
@@ -80,9 +69,7 @@ describe('initialize', () => {
const mockConfig = { key: 'value' };
const mockError = new Error('Initialization failed');
(AppConfig.initialize as jest.Mock).mockRejectedValueOnce(mockError);
-
await expect(initialize(mockConfig)).rejects.toThrow('Initialization failed');
-
expect(AppConfig.initialize).toHaveBeenCalledTimes(1);
expect(AppConfig.initialize).toHaveBeenCalledWith(mockConfig);
});
@@ -98,9 +85,7 @@ describe('fetch', () => {
const mockConfig = { key: 'value', forceRefresh: true }; // Replace with actual AppConfigFetchParams
const mockData = { some: 'data' }; // Mocked return data
(AppConfig.fetchAppConfig as jest.Mock).mockResolvedValueOnce(mockData);
-
const result = await fetch(mockConfig);
-
// Assertions for fetchAppConfig
expect(AppConfig.fetchAppConfig).toHaveBeenCalledTimes(1);
expect(AppConfig.fetchAppConfig).toHaveBeenCalledWith(mockConfig, true);
| removed white spaces | removed white spaces
|
fb8a5f9e42778b7f01a3d67f965b8dd153a59fa6 | --- package.json
@@ -104,7 +104,7 @@
"@walmart/iteminfo-mini-app": "7.4.0",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "13.0.3",
- "@walmart/metrics-mini-app": "0.15.10",
+ "@walmart/metrics-mini-app": "0.15.12",
"@walmart/mod-flex-mini-app": "1.10.4",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
| metrics version bump | metrics version bump
|
391e5cd234350a021cd1a7a185c995a75e1f4973 | --- package-lock.json
@@ -40,7 +40,7 @@
"@walmart/amp-mini-app": "1.1.48",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.13.4",
- "@walmart/attendance-mini-app": "1.49.0",
+ "@walmart/attendance-mini-app": "1.52.0",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.1",
"@walmart/copilot-mini-app": "1.77.9",
@@ -7991,9 +7991,9 @@
}
},
"node_modules/@walmart/attendance-mini-app": {
- "version": "1.49.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.49.0.tgz",
- "integrity": "sha512-9zWM2/G4zvrdBQ88b/n+0p1bFHvcfwhSA7HO2IdaMMabxaVbyAaiicfcYCYiCpUPStyUcMGI3aseUBPiIebWmQ==",
+ "version": "1.52.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.52.0.tgz",
+ "integrity": "sha512-jscspXrFV3tM5wcVMmCVvHrrUGMzgaNxtHsf2JlUbSrFsALpsRdILsgCswF6b/b4CFfu15tXoexsM0xOdxoEkQ==",
"dependencies": {
"@walmart/gta-react-native-calendars": "^0.0.16",
"@walmart/wfm-ui": "^0.2.26",
@@ -33515,9 +33515,9 @@
}
},
"@walmart/attendance-mini-app": {
- "version": "1.49.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.49.0.tgz",
- "integrity": "sha512-9zWM2/G4zvrdBQ88b/n+0p1bFHvcfwhSA7HO2IdaMMabxaVbyAaiicfcYCYiCpUPStyUcMGI3aseUBPiIebWmQ==",
+ "version": "1.52.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.52.0.tgz",
+ "integrity": "sha512-jscspXrFV3tM5wcVMmCVvHrrUGMzgaNxtHsf2JlUbSrFsALpsRdILsgCswF6b/b4CFfu15tXoexsM0xOdxoEkQ==",
"requires": {
"@walmart/gta-react-native-calendars": "^0.0.16",
"@walmart/wfm-ui": "^0.2.26",
--- package.json
@@ -81,7 +81,7 @@
"@walmart/amp-mini-app": "1.1.48",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.13.4",
- "@walmart/attendance-mini-app": "1.49.0",
+ "@walmart/attendance-mini-app": "1.52.0",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.1",
"@walmart/copilot-mini-app": "1.77.9",
| ama v1.52.0 | ama v1.52.0
|
30ac6bfc77f6b6a89b7d0b3fbcb8a55342a780b1 | --- src/home/containers/HomeScreen/index.tsx
@@ -21,7 +21,7 @@ import {GreetingRow} from '../../components/GreetingRow';
import {CovidBanner} from '../../components/CovidBanner';
import {CelebrationCard} from '../../components/CelebrationCard';
import {TaskCard} from '../../components/TaskCard';
-import { CopilotCard } from '../../components/CopilotCard';
+import {CopilotCard} from '../../components/CopilotCard';
import defaultLayout from './defaultLayout';
import styles from './styles';
import {useHomeAppConfig} from '../../../hooks/useAppConfig';
@@ -123,8 +123,6 @@ export const HomeScreen: React.FC<Props> = () => {
}, [currentSiteId]);
// ---------------- //
-
-
const DynamicLayout = useMemo(
() => ({
MetricsHomeScreen: () => (
| chore: fix lint | chore: fix lint
|
16b72901788d23416669e3ab82fa4f4e1149b2d9 | --- package-lock.json
@@ -3094,9 +3094,9 @@
"integrity": "sha512-6mn+6g+DjmNh3C26iI+gVE0XZQpnUVIIJJIKr+UX6eYhBmjSxI89C4/8VEr3+slxjAxKdQehgkqYnj5tuJHgxw=="
},
"@walmart/exception-mini-app": {
- "version": "0.16.0",
- "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.16.0.tgz",
- "integrity": "sha512-Fn6hikE6K6qelzzzC+YOHY+ODCCrAw5Aauhbq1a07Lt3ATxOu1XK8Q6zeWG2J4o8GBIZmdD5gdjxBVICFTIsQA=="
+ "version": "0.17.0",
+ "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.17.0.tgz",
+ "integrity": "sha512-gbZPAZa4+Wzv+dSGUv/u16rzBJPtHY6Yo+LCdnumv1vHQAZpEiBu6cV3L+mCRUzAaxZyvVyrB5gTBebQvg3xSg=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.0.50",
--- package.json
@@ -69,7 +69,7 @@
"@walmart/ask-sam-mini-app": "0.29.8",
"@walmart/config-components": "^1.0.26",
"@walmart/counts-component-miniapp": "0.0.11",
- "@walmart/exception-mini-app": "0.16.0",
+ "@walmart/exception-mini-app": "0.17.0",
"@walmart/feedback-all-spark-miniapp": "0.0.50",
"@walmart/functional-components": "1.0.27",
"@walmart/gtp-shared-components": "^1.1.5",
| pinpoint version bump | pinpoint version bump
|
2cf1388c6cdcb5595a6fa1bc1cfe3869b19a5042 | --- package-lock.json
@@ -3292,9 +3292,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.30.15",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.15.tgz",
- "integrity": "sha512-BSvU5ngRszN8SzHC8frg3inldPftXQlElKLROUEoFfOglAM/fsPSMRg7jnQzIbzb0EGE8kLHEuAVflM2iPXjUQ==",
+ "version": "0.30.29",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.29.tgz",
+ "integrity": "sha512-OjfbNT8QGcmeo6aUTrSFiTPwwuM+FKspyidbRO34+dkkaN1BtVzCxqTeCNPUR2L9JQLHNiUBEY0pRHab+NZYQQ==",
"requires": {
"apisauce": "^1.1.2",
"axios-cache-adapter": "^2.7.3",
@@ -12725,9 +12725,9 @@
"integrity": "sha512-vneDkHGDuTvLQjUBztqb2YI8QoH1zxdJonPGTS+g57lfJZff9fAjoLSSb6NgMBebpXFcK3I3sEresGyL+3AArw=="
},
"react-native-error-boundary": {
- "version": "1.1.11",
- "resolved": "https://npme.walmart.com/react-native-error-boundary/-/react-native-error-boundary-1.1.11.tgz",
- "integrity": "sha512-aSrFwM0ow4yKNDWOCGPqpC0FBQ+km3ntlMU+0k7MB5RxhSvHo6itnXKRQuU9wPN0j4uM6sZ1bdKK5tnvlT/YQA=="
+ "version": "1.1.12",
+ "resolved": "https://npme.walmart.com/react-native-error-boundary/-/react-native-error-boundary-1.1.12.tgz",
+ "integrity": "sha512-YVM7DOY6TbCrtYc87CqABGntnxQRMWSkzcF6+tB9QBUs4sWOWIfeeN4yJGF2eYJAGVnaym5ys9GqcYDu8mjE2g=="
},
"react-native-fast-image": {
"version": "8.3.4",
--- package.json
@@ -73,7 +73,7 @@
"@walmart/allspark-health-survey-mini-app": "0.0.43",
"@walmart/allspark-home-mini-app": "0.5.2",
"@walmart/allspark-me-mini-app": "0.2.4",
- "@walmart/ask-sam-mini-app": "0.30.15",
+ "@walmart/ask-sam-mini-app": "^0.30.29",
"@walmart/config-components": "^1.0.33",
"@walmart/counts-component-miniapp": "0.0.22",
"@walmart/exception-mini-app": "0.36.0-rc.0",
@@ -96,9 +96,9 @@
"@walmart/redux-store": "^1.0.15",
"@walmart/schedule-mini-app": "0.4.4",
"@walmart/settings-mini-app": "1.3.8",
- "@walmart/ui-components": "1.1.68",
"@walmart/shelfavailability-mini-app": "0.5.0",
"@walmart/time-clock-mini-app": "0.4.23",
+ "@walmart/ui-components": "1.1.68",
"@walmart/welcomeme-mini-app": "0.30.4",
"@walmart/wfm-ui": "^0.1.50",
"axios-cache-adapter": "2.7.3",
| Incrementing ask sam for navigation gesture change | Incrementing ask sam for navigation gesture change
|
33e8daa13de58646dfa3710f46c8100a75e726f6 | --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MeStackNavTest.tsx.snap
@@ -38,6 +38,11 @@ exports[`MeStackNav matches snapshot 1`] = `
/>
<Screen
name="timeClockTabs"
+ options={
+ Object {
+ "headerShown": true,
+ }
+ }
/>
</Navigator>
`;
--- src/navigation/AssociateHallwayNav/Tabs/MeStackNav.tsx
@@ -43,7 +43,13 @@ export const MeStackNav = () => {
name='paymentselection'
component={PaymentSelectionMiniApp}
/>
- <MeStack.Screen name='timeClockTabs' component={TimeClockTabs} />
+ <MeStack.Screen
+ name='timeClockTabs'
+ component={TimeClockTabs}
+ options={{
+ headerShown: true,
+ }}
+ />
</MeStack.Navigator>
);
};
| add header shown true back for time clock tabs | add header shown true back for time clock tabs
|
52c39f3aaeda87930dc777a4be398dd3e371597c | --- package.json
@@ -97,9 +97,9 @@
"@walmart/react-native-shared-navigation": "6.1.4",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
- "@walmart/roster-mini-app": "2.7.0",
+ "@walmart/roster-mini-app": "2.8.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "2.4.1",
+ "@walmart/wmconnect-mini-app": "2.5.0",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
--- yarn.lock
@@ -6276,9 +6276,9 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-sumo-sdk": "npm:2.6.0"
"@walmart/redux-store": "npm:3.7.0"
- "@walmart/roster-mini-app": "npm:2.7.0"
+ "@walmart/roster-mini-app": "npm:2.8.0"
"@walmart/ui-components": "npm:1.15.1"
- "@walmart/wmconnect-mini-app": "npm:2.4.1"
+ "@walmart/wmconnect-mini-app": "npm:2.5.0"
babel-jest: "npm:^29.2.1"
chance: "npm:^1.1.11"
eslint: "npm:8.22.0"
@@ -6458,9 +6458,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:2.7.0":
- version: 2.7.0
- resolution: "@walmart/roster-mini-app@npm:2.7.0"
+"@walmart/roster-mini-app@npm:2.8.0":
+ version: 2.8.0
+ resolution: "@walmart/roster-mini-app@npm:2.8.0"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6502,7 +6502,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/3168ad188ef389e2f57ddcdd5a52b73199af36454be9ed7fc1fa3ea468cbf0d3d05e9973f89853259b8d01ca5a5b06c4be2febd1113736df898209bb486a8dcd
+ checksum: 10c0/c7d1b184f555f7df640ccc1fbb324c39ce6c3c4ee4ffb435ee0cbbebc2b4db717d9849b52625a4384ea77978bf6233eca4a9a7bbf015fc7a87e5886ea6732e3f
languageName: node
linkType: hard
@@ -6526,9 +6526,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:2.4.1":
- version: 2.4.1
- resolution: "@walmart/wmconnect-mini-app@npm:2.4.1"
+"@walmart/wmconnect-mini-app@npm:2.5.0":
+ version: 2.5.0
+ resolution: "@walmart/wmconnect-mini-app@npm:2.5.0"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6568,7 +6568,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/97a9b527b354b61bd532f03ef8868cca3043d45d921823954027d60194af53943dee3b65fa812fd2a4c9c6b3f48ec7532037e925ace48063ff299ed75296b56b
+ checksum: 10c0/11b2ced5fcf7f9e1c0e0506013a682ce9df92e42fad73b1ed606cb173200e83609e2e6b3dbce6a6e875bf8823b0b0434380953c65461c2b40a5ce07c12022fd8
languageName: node
linkType: hard
| feat(ui): update version SMDV-5955 | feat(ui): update version SMDV-5955
|
829156427506459cd1209b1978ea3976220fa8a1 | --- package.json
@@ -52,7 +52,7 @@
"@react-native-community/async-storage": "^1.11.0",
"@react-native-community/cameraroll": "4.1.2",
"@react-native-community/clipboard": "^1.5.0",
- "@react-native-community/datetimepicker": "^3.0.9",
+ "@react-native-community/datetimepicker": "^3.5.0",
"@react-native-community/hooks": "^2.6.0",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/netinfo": "5.9.9",
| package.json | package.json
|
73b0129191010272c97da98746a22cefd5a5b960 | --- packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.ts
@@ -342,6 +342,7 @@ export const BusinessUnitByCountryAndNumberDocument = gql`
number
type
}
+ faxNumber
type
}
controllingCountry {
@@ -452,6 +453,9 @@ export const BusinessUnitByCountryAndNumberDocument = gql`
}
sizeClassNumber
}
+ description
+ departmentNumber
+ effectiveDate
type {
__typename
code
--- packages/me-at-walmart-athena-queries/src/schema.graphql
@@ -2806,6 +2806,7 @@ type CourseProgress {
instructorLedTrainings(
page: Int
pageSize: Int
+ version: Int
"""
Role of associate
@@ -2862,6 +2863,11 @@ type CourseProgress {
"""
status(userId: String!): [LearningStatus!]
+ """
+ Fetches details from third party learning content providers. For example Coursera, Harvard etc
+ """
+ status(userId: String!): [LearningStatus!]
+
"""
Fetches details from third party learning content providers. For example Coursera, Harvard etc
"""
@@ -2886,6 +2892,11 @@ enum CourseTypeFilter {
MICRO_LEARNING
}
+enum CourseTypeFilter {
+ COMPLIANCE
+ MICRO_LEARNING
+}
+
input CreateSection1UrlInput {
DOB: String!
dateHired: String!
@@ -4664,6 +4675,11 @@ type LearningCourseAdditionalInfo {
"""
imageUrl: String
+ """
+ The url of the course image
+ """
+ imageUrl: String
+
"""
A blueprint configuration identifies an existing website that you want to use as the source for one or more live copy pages.
Blueprint configurations enable you to push content changes to live copies
| feat: adding more required fields to businessunitbycountryandnumber | feat: adding more required fields to businessunitbycountryandnumber
|
078b80b4ca58fc5e47cc81dc1a1aff921ffdfd99 | --- packages/allspark-foundation-hub/src/Shared/Common/constant.ts
@@ -17,6 +17,7 @@ export const PLATFORM_NAME = 'manager-experience';
export const HOME_OFFICE_DOMAIN = 'homeoffice';
export const SUPPLY_CHAIN_DOMAIN = 'distribution center';
export const TOTAL_SITE_TEAM_ID = 'total';
+// Const
/**Supply Chain Constants */
export const TOTAL_SITE_TEAM_LABEL = 'Total site';
| dummy commit | dummy commit
|
57552677ce2d5441d16d555ecd2e961fef5b13e2 | --- packages/allspark-authentication/__tests__/allspark-foundation.test.js
@@ -0,0 +1,5 @@
+describe('allspark-redux-store', () => {
+ it('works', () => {
+ expect(true).toEqual(true);
+ });
+});
--- packages/allspark-utils/__tests__/hooks/useAppStateTest.ts
@@ -3,7 +3,7 @@ import { AppState } from 'react-native';
import {
useAppState,
useAppStateEffect,
-} from '../../../allspark-foundation/Hooks/useAppState';
+} from '../../src/hooks/useAppState';
const mockAppStateListeners = {};
const mockSubscription = { remove: jest.fn() };
--- packages/allspark-utils/__tests__/hooks/useBackButtonTest.ts
@@ -1,6 +1,6 @@
import { BackHandler } from 'react-native';
import { renderHook } from '@testing-library/react-hooks';
-import { useBackButton } from '../../Hooks/useBackButton';
+import { useBackButton } from '../../src/hooks/useBackButton';
const listeners: any = {};
--- packages/allspark-utils/__tests__/hooks/useDeviceOrientationTest.ts
@@ -1,6 +1,6 @@
import { renderHook } from '@testing-library/react-hooks';
import { Dimensions, ScaledSize } from 'react-native';
-import { useDeviceOrientation } from '../../Hooks/useDeviceOrientation';
+import { useDeviceOrientation } from '../../src/hooks/useDeviceOrientation';
const mockSub = { remove: jest.fn() } as any;
jest.spyOn(Dimensions, 'addEventListener').mockReturnValue(mockSub);
--- packages/allspark-utils/__tests__/hooks/usePaginateListTest.ts
@@ -1,6 +1,6 @@
import { renderHook } from '@testing-library/react-hooks';
import { act } from 'react-test-renderer';
-import { usePaginateList } from '../../Hooks/usePaginateList';
+import { usePaginateList } from '../../src/hooks/usePaginateList';
// const mockUseState = useState as jest.Mock;
--- packages/allspark-utils/__tests__/hooks/usePreviousTest.ts
@@ -1,5 +1,5 @@
import { renderHook } from '@testing-library/react-hooks';
-import { usePrevious } from '../../Hooks/usePrevious';
+import { usePrevious } from '../../src/hooks/usePrevious';
describe('usePrevious', () => {
it('behaves as expected', async () => {
--- packages/allspark-utils/__tests__/hooks/useTimeout.ts
@@ -1,5 +1,5 @@
import { renderHook } from '@testing-library/react-hooks/native';
-import { useTimeout } from '../../Hooks/useTimeout';
+import { useTimeout } from '../../src/hooks/useTimeout';
let onTimeout;
const timerId = '1234';
--- packages/me-at-walmart-common/__tests__/allspark-foundation.test.js
@@ -0,0 +1,5 @@
+describe('allspark-redux-store', () => {
+ it('works', () => {
+ expect(true).toEqual(true);
+ });
+});
--- packages/me-at-walmart-container/__tests__/allspark-foundation.test.js
@@ -0,0 +1,5 @@
+describe('allspark-redux-store', () => {
+ it('works', () => {
+ expect(true).toEqual(true);
+ });
+});
| fix: fix import | fix: fix import
|
c5fdd6e2f3fa82c7b83ffeb230e74a3c43587f42 | --- core/__tests__/home/components/TaskCard/TaskClockStatusStoreCardTest.tsx
@@ -25,8 +25,8 @@ jest
// eslint-disable-next-line react-hooks/rules-of-hooks
const mockNavigation = useNavigation();
-const mockQuery = useGetDailyRosterHomeQuery as jest.Mock;
-const mockLoadQuery = jest.fn();
+const mockGetDailyRosterQuery = useGetDailyRosterHomeQuery as jest.Mock;
+const mockRefreshQuery = jest.fn();
const mockUseSelector = useSelector as jest.Mock;
const baseProps = {
@@ -40,12 +40,12 @@ describe('TaskClockStatusStoreCard', () => {
mockUseSelector.mockReturnValueOnce('100'); // siteId
mockUseSelector.mockReturnValueOnce('US'); // country code
mockUseSelector.mockReturnValueOnce(true); // is store
- mockQuery.mockReturnValueOnce({loading: true, refetch: mockLoadQuery});
+ mockGetDailyRosterQuery.mockReturnValueOnce({loading: true, refetch: mockRefreshQuery});
const component = create(<TaskClockStatusStoreCard {...baseProps} />);
it('matches snapshot while fetching', () => {
expect(component.toJSON()).toMatchSnapshot();
- expect(mockQuery).toHaveBeenCalledWith(
+ expect(mockGetDailyRosterQuery).toHaveBeenCalledWith(
expect.objectContaining({
variables: {
storeId: '100',
@@ -60,11 +60,11 @@ describe('TaskClockStatusStoreCard', () => {
mockUseSelector.mockReturnValueOnce('100'); // siteId
mockUseSelector.mockReturnValueOnce('US'); // country code
mockUseSelector.mockReturnValueOnce(true); // is store
- mockQuery.mockReturnValueOnce({
+ mockGetDailyRosterQuery.mockReturnValueOnce({
loading: false,
error: false,
data: storeClockStatusResponse,
- refetch: mockLoadQuery,
+ refetch: mockRefreshQuery,
});
component.update(<TaskClockStatusStoreCard {...baseProps} />);
@@ -85,11 +85,11 @@ describe('TaskClockStatusStoreCard', () => {
mockUseSelector.mockReturnValueOnce('100'); // siteId
mockUseSelector.mockReturnValueOnce('US'); // country code
mockUseSelector.mockReturnValueOnce(false); // is store
- mockQuery.mockReturnValueOnce({
+ mockGetDailyRosterQuery.mockReturnValueOnce({
loading: false,
error: false,
data: storeClockStatusResponse,
- refetch: mockLoadQuery,
+ refetch: mockRefreshQuery,
});
component.update(<TaskClockStatusStoreCard {...baseProps} />);
@@ -100,11 +100,11 @@ describe('TaskClockStatusStoreCard', () => {
mockUseSelector.mockReturnValueOnce('100'); // siteId
mockUseSelector.mockReturnValueOnce('US'); // country code
mockUseSelector.mockReturnValueOnce(true); // is store
- mockQuery.mockReturnValueOnce({
+ mockGetDailyRosterQuery.mockReturnValueOnce({
loading: true,
error: false,
data: storeClockStatusResponse,
- refetch: mockLoadQuery,
+ refetch: mockRefreshQuery,
});
component.update(<TaskClockStatusStoreCard {...baseProps} />);
@@ -115,11 +115,11 @@ describe('TaskClockStatusStoreCard', () => {
mockUseSelector.mockReturnValueOnce('100'); // siteId
mockUseSelector.mockReturnValueOnce('US'); // country code
mockUseSelector.mockReturnValueOnce(true); // is store
- mockQuery.mockReturnValueOnce({
+ mockGetDailyRosterQuery.mockReturnValueOnce({
loading: false,
error: false,
data: storeClockStatusNoDataResponse,
- refetch: mockLoadQuery,
+ refetch: mockRefreshQuery,
});
component.update(<TaskClockStatusStoreCard {...baseProps} />);
@@ -130,10 +130,10 @@ describe('TaskClockStatusStoreCard', () => {
mockUseSelector.mockReturnValueOnce('100'); // siteId
mockUseSelector.mockReturnValueOnce('US'); // country code
mockUseSelector.mockReturnValueOnce(true); // is store
- mockQuery.mockReturnValueOnce({
+ mockGetDailyRosterQuery.mockReturnValueOnce({
loading: false,
error: true,
- refetch: mockLoadQuery,
+ refetch: mockRefreshQuery,
});
component.update(<TaskClockStatusStoreCard {...baseProps} />);
@@ -144,10 +144,10 @@ describe('TaskClockStatusStoreCard', () => {
mockUseSelector.mockReturnValueOnce('100'); // siteId
mockUseSelector.mockReturnValueOnce('US'); // country code
mockUseSelector.mockReturnValueOnce(true); // is store
- mockLoadQuery.mockResolvedValueOnce(storeClockStatusResponse);
- mockQuery.mockReturnValueOnce({
+ mockRefreshQuery.mockResolvedValueOnce(storeClockStatusResponse);
+ mockGetDailyRosterQuery.mockReturnValueOnce({
loading: false,
- refetch: mockLoadQuery,
+ refetch: mockRefreshQuery,
});
await act(async () =>
@@ -156,7 +156,7 @@ describe('TaskClockStatusStoreCard', () => {
),
);
expect(baseProps.onRefreshStart).toHaveBeenCalled();
- await expect(mockLoadQuery).toHaveBeenCalled();
+ await expect(mockRefreshQuery).toHaveBeenCalled();
expect(baseProps.onRefreshEnd).toHaveBeenCalled();
});
});
| ALLSPARK-4959: rename mock variables | ALLSPARK-4959: rename mock variables
|
9a238b83c39b828bdfec0a213def1e95261332ac | --- packages/allspark-foundation-hub/package.json
@@ -41,7 +41,7 @@
"react-native": "~0.73.7",
"react-native-device-info": "~10.13.1",
"react-native-drop-shadow": "^1.0.0",
- "react-native-safe-area-context": "~4.7.4",
+ "react-native-safe-area-context": "~4.14.1",
"react-redux": "^8.1.3"
},
"peerDependencies": {
--- yarn.lock
@@ -7460,7 +7460,7 @@ __metadata:
react-native: "npm:~0.73.7"
react-native-device-info: "npm:~10.13.1"
react-native-drop-shadow: "npm:^1.0.0"
- react-native-safe-area-context: "npm:~4.7.4"
+ react-native-safe-area-context: "npm:~4.14.1"
react-redux: "npm:^8.1.3"
peerDependencies:
"@react-navigation/native": 7.x
| chore: update some more dependencies | chore: update some more dependencies
|
2fd72a4dcdb788487b4418ebf6a99bffb956ff78 | --- src/auth/AuthenticatorView.tsx
@@ -14,16 +14,13 @@ import {
import {getScaledImageHeight} from '@walmart/allspark-utils';
import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation';
import {useEnvironment} from '@walmart/allspark-foundation/Environment';
-import {AuthSelectors, AuthService} from '@walmart/allspark-foundation/Auth';
-import {SiteSelectors} from '@walmart/allspark-foundation/Site';
-import {ConfigSelectors} from '@walmart/allspark-foundation/Config';
-import {UserSelectors} from '@walmart/allspark-foundation/User';
+import {AuthService} from '@walmart/allspark-foundation/Auth';
import {IMeAtWalmartEnvironment} from '@walmart/me-at-walmart-common';
import {ALLSPARK_SIGN_IN} from '../core/constants';
import {SSOTelemetry} from '../core/Telemetry';
import {LocalStorage} from '../core/LocalStorage';
-import {SIGN_IN_PAGE_LOADED} from '../core/redux';
+import {SIGN_IN_PAGE_LOADED, getSignInLoading} from '../core/redux';
import {Logger, createImageErrorHandler} from '../core/Logger';
import {Images, i5Images} from '../images';
import {RootStackScreenProps} from '../navigation/types';
@@ -40,11 +37,7 @@ export const AuthenticatorView = (
const [translate, i18n] = useAllsparkTranslation();
const env = useEnvironment<IMeAtWalmartEnvironment>();
- const signingIn = useSelector(AuthSelectors.getSigningIn);
- const signingOut = useSelector(AuthSelectors.getSigningOut);
- const fetchingUser = useSelector(UserSelectors.getLoading);
- const fetchingSite = useSelector(SiteSelectors.getWorkingSiteLoading);
- const fetchingAppConfig = useSelector(ConfigSelectors.getLoading);
+ const loading = useSelector(getSignInLoading);
const [associatePressed, setAssociatePressed] = useState(false);
const [candidatePressed, setCandidatePressed] = useState(false);
@@ -56,14 +49,6 @@ export const AuthenticatorView = (
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
- // All loadings that can delay entering app
- const loading =
- signingIn ||
- fetchingUser ||
- fetchingSite ||
- fetchingAppConfig ||
- signingOut;
-
// Main sign in spinner will run while any of the initial loadings are true
// which can happen automatically on startup or, like candidate, the correct
// sign in button is pressed and loading is true.
--- src/core/redux.ts
@@ -1,4 +1,8 @@
-import {createAction} from '@reduxjs/toolkit';
+import {createAction, createSelector} from '@reduxjs/toolkit';
+import {AuthSelectors} from '@walmart/allspark-foundation/Auth';
+import {ConfigSelectors} from '@walmart/allspark-foundation/Config';
+import {SiteSelectors} from '@walmart/allspark-foundation/Site';
+import {UserSelectors} from '@walmart/allspark-foundation/User';
export const SIGN_OUT_REQUEST_ACKNOWLEDGED = createAction(
'auth/SIGN_OUT_REQUEST_ACKNOWLEDGED',
@@ -21,3 +25,26 @@ export function UPDATE_NETWORK_TYPE(networkType: string) {
}
UPDATE_NETWORK_TYPE.type = 'core/network/UPDATE_NETWORK_TYPE';
+
+/**
+ * Determines if sign in/out process is loading overall. This is used to show
+ * the spinner on the sign in page and disable the buttons.
+ */
+export const getSignInLoading = createSelector(
+ [
+ AuthSelectors.getSigningIn,
+ UserSelectors.getLoading,
+ SiteSelectors.getWorkingSiteLoading,
+ ConfigSelectors.getLoading,
+ AuthSelectors.getSigningOut,
+ ],
+ (signingIn, fetchingUser, fetchingSite, fetchingAppConfig, signingOut) => {
+ return (
+ signingIn ||
+ fetchingUser ||
+ fetchingSite ||
+ fetchingAppConfig ||
+ signingOut
+ );
+ },
+);
| refactor: move sign in loading to its own combined selector | refactor: move sign in loading to its own combined selector
|
39d75a76307c4caea4f0bc7a4595f5f23e799d73 | --- package-lock.json
@@ -3090,9 +3090,9 @@
"integrity": "sha512-xScS3+/bnwlSFENS31yokqgl9pN0G1DcY8/amLstP2BeBk/kx6DxNq5BmMWg1o1J+K3rWZubcv8LZA2arqIVpQ=="
},
"@walmart/feedback-all-spark-miniapp": {
- "version": "0.0.50",
- "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.50.tgz",
- "integrity": "sha512-1c2ojj3Lt4ruq6DJsvnHZvQ8+3YSfxU0YnkHDZEgIGPbvv7aBku7F+IGl0/2br2zxIGN0gzDUSQBdd6QA6kw3A=="
+ "version": "0.0.51",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.51.tgz",
+ "integrity": "sha512-VEjj3qOMoFN+M6oQPZ0hqFJUdTJOra69c5i10QaJ1CiaypFJicslZTCHN9Lrna2j1XODufSFbOnnLBGTHwoBIA=="
},
"@walmart/functional-components": {
"version": "1.0.27",
--- package.json
@@ -68,7 +68,7 @@
"@walmart/allspark-me-mini-app": "0.1.0",
"@walmart/ask-sam-mini-app": "0.29.43",
"@walmart/config-components": "1.0.21",
- "@walmart/feedback-all-spark-miniapp": "0.0.50",
+ "@walmart/feedback-all-spark-miniapp": "0.0.51",
"@walmart/functional-components": "1.0.27",
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/impersonation-mini-app": "1.0.15",
| Bumping feedback library version | Bumping feedback library version
|
6067f77a36cbe579db817d390ad95a2deb401ab7 | --- docs/CHANGELOG.md
@@ -1,3 +1,11 @@
+# [2.35.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.34.0...v2.35.0) (2025-05-05)
+
+
+### Features
+
+* **ui:** update lint fixes ([b5373ce](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b5373ce51425e7ff773a86802cba80b7533daa21))
+* **ui:** update the coverage changes ([786fe2e](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/786fe2e78e30b85144c11664e2623bbef2e9d685))
+
# [2.34.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.33.0...v2.34.0) (2025-05-01)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.34.0",
+ "version": "2.35.0",
"main": "dist/index.js",
"files": [
"dist/"
| chore(release): 2.35.0 [skip ci] | chore(release): 2.35.0 [skip ci]
# [2.35.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.34.0...v2.35.0) (2025-05-05)
### Features
* **ui:** update lint fixes ([b5373ce](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b5373ce51425e7ff773a86802cba80b7533daa21))
* **ui:** update the coverage changes ([786fe2e](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/786fe2e78e30b85144c11664e2623bbef2e9d685))
|
5277a742c6bdfe82fe4d0778ee23b0a6773da1bc | --- packages/allspark-foundation/__tests__/Components/ComponentContainers.test.tsx
@@ -150,7 +150,7 @@ describe('AllsparkComponentContainers', () => {
const { getAllByText } = render(
<AllsparkComponentContainers.List container="test" props={{ greeting: 'Hello 2' }} />
);
- expect(getAllByText('Hello 2').length).toBe(1);
+ expect(getAllByText('Hello 2').length).toBe(3);
expect(getAllByText('Hello 2')[0]).toBeTruthy();
});
| component containers unit test fix | component containers unit test fix
|
8512b43726fdfffd45d5835b0bdd34e1f16ca374 | --- src/navigation/AssociateHallwayNav/MainStackNav.tsx
@@ -20,7 +20,7 @@ import {
} from '@walmart/feedback-all-spark-miniapp';
import {FeedbackDialogScreen} from '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/FeedbackDialogScreen';
import {SurveySaysDialogScreen} from '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/SurveySaysDialogScreen';
-import {InboxScreen} from '@walmart/inbox-mini-app';
+import InboxScreen from '@walmart/inbox-mini-app';
import {ItemInfoMiniApp} from '@walmart/iteminfo-mini-app';
import {ApprovalsMiniApp} from '@walmart/manager-approvals-miniapp';
| inbox screen import fix | inbox screen import fix
|
0d8a4679e6416c8b63f88e063793bc7ff995a0f9 | --- src/managerExperience/components/TeamSearchInput/types.ts
@@ -7,3 +7,4 @@ export interface TeamSearchInputProps {
export interface TeamSearchInputLoadingProps {
rightIcon: boolean | undefined;
}
+console.log('hi');
| feat: dummy commit | feat: dummy commit
|
b24939d9953dbc7284c763fb5a0ade03c48028c1 | --- package-lock.json
@@ -68,7 +68,7 @@
"@walmart/learning-mini-app": "18.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.18.6",
- "@walmart/mod-flex-mini-app": "1.15.0",
+ "@walmart/mod-flex-mini-app": "1.15.1",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.14",
"@walmart/onewalmart-miniapp": "1.0.16",
@@ -9385,11 +9385,12 @@
}
},
"node_modules/@walmart/mod-flex-mini-app": {
- "version": "1.15.0",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.15.0.tgz",
- "integrity": "sha512-cSwLDegKJ5Va4u3AeCYcHfMMaqg3F6g0hZ8PFbS8NHCFNYgda3toJO56AlKQArx4xS7QGp1qA7ps8XOLDwWdUw==",
+ "version": "1.15.1",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.15.1.tgz",
+ "integrity": "sha512-ZDHauMaoEtVYTv4+ifgd+sobSiVejBdlEohnwI7/Lmcjmr6rl2PnDfww3DpID5PtqglWSJT431E4rKo0ORy1bQ==",
"hasInstallScript": true,
"peerDependencies": {
+ "@apollo/client": "^3.7.3",
"@react-native-async-storage/async-storage": "^1.19.0",
"@react-native-picker/picker": "^2.4.8",
"@react-navigation/drawer": "^6.3.0",
@@ -33501,9 +33502,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.15.0",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.15.0.tgz",
- "integrity": "sha512-cSwLDegKJ5Va4u3AeCYcHfMMaqg3F6g0hZ8PFbS8NHCFNYgda3toJO56AlKQArx4xS7QGp1qA7ps8XOLDwWdUw=="
+ "version": "1.15.1",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.15.1.tgz",
+ "integrity": "sha512-ZDHauMaoEtVYTv4+ifgd+sobSiVejBdlEohnwI7/Lmcjmr6rl2PnDfww3DpID5PtqglWSJT431E4rKo0ORy1bQ=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
--- package.json
@@ -109,7 +109,7 @@
"@walmart/learning-mini-app": "18.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.18.6",
- "@walmart/mod-flex-mini-app": "1.15.0",
+ "@walmart/mod-flex-mini-app": "1.15.1",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.14",
"@walmart/onewalmart-miniapp": "1.0.16",
| update modflex | update modflex
|
e327ca1f7499b0fc5506a07324b7dfd36bdbee4f | --- packages/allspark-foundation-hub/__tests__/HubFeature/TeamOnboarding/TeamOnboardingScreen.test.tsx
@@ -24,7 +24,7 @@ jest.mock('@walmart/allspark-foundation/Navigation', () => ({
},
}));
-describe('TeamSelectionList Component Tests', () => {
+describe('TeamOnboarding Screen Component Tests', () => {
beforeEach(() => {
(useAllsparkTranslation as jest.Mock).mockReturnValue({
t: (key: string, options?: any) => options?.defaultValue || key,
| Adding teamonboarding coverage | Adding teamonboarding coverage
|
28ecf253697cc6b812c30e11cfb91290709618c7 | --- src/components/TeamList.tsx
@@ -1,4 +1,4 @@
-import React, {useMemo, useState} from 'react';
+import React, {useEffect, useMemo, useState} from 'react';
import {useSelector} from 'react-redux';
import {
StyleProp,
@@ -365,10 +365,18 @@ export const TeamChatCard = (props: {
}, [primaryTeam, data?.getTeamsByStore]);
const primaryWorkGroup = useGetViewersPrimaryWorkGroup();
- const sortedWorkgroupKeys = sortWorkgroupKeysForTeamList(
- Object.keys(teamsByWorkgroup),
- primaryWorkGroup,
- );
+
+ const [sortedWorkgroupKeys, setSortedWorkgroupKeys] = useState<string[]>([]);
+
+ useEffect(() => {
+ const sortedKeys = sortWorkgroupKeysForTeamList(
+ Object.keys(teamsByWorkgroup),
+ primaryWorkGroup,
+ );
+ if (sortedKeys && sortedKeys.length > 0) {
+ setSortedWorkgroupKeys(sortedKeys);
+ }
+ }, [primaryWorkGroup]);
const renderWorkgroups = () => {
return sortedWorkgroupKeys.map((workgroupKey, workgroupNdx) => {
--- src/components/TeamList.tsx
@@ -1,4 +1,4 @@
-import React, {useMemo, useState} from 'react';
+import React, {useEffect, useMemo, useState} from 'react';
import {useSelector} from 'react-redux';
import {
StyleProp,
@@ -365,10 +365,18 @@ export const TeamChatCard = (props: {
}, [primaryTeam, data?.getTeamsByStore]);
const primaryWorkGroup = useGetViewersPrimaryWorkGroup();
- const sortedWorkgroupKeys = sortWorkgroupKeysForTeamList(
- Object.keys(teamsByWorkgroup),
- primaryWorkGroup,
- );
+
+ const [sortedWorkgroupKeys, setSortedWorkgroupKeys] = useState<string[]>([]);
+
+ useEffect(() => {
+ const sortedKeys = sortWorkgroupKeysForTeamList(
+ Object.keys(teamsByWorkgroup),
+ primaryWorkGroup,
+ );
+ if (sortedKeys && sortedKeys.length > 0) {
+ setSortedWorkgroupKeys(sortedKeys);
+ }
+ }, [primaryWorkGroup]);
const renderWorkgroups = () => {
return sortedWorkgroupKeys.map((workgroupKey, workgroupNdx) => {
| adding use effect to re-render sort logic | adding use effect to re-render sort logic
|
74a1207fc7449a48ec9d187ccac3230c52f64051 | --- __tests__/components/ListEmptyComponentTest.tsx
@@ -22,6 +22,7 @@ describe('ListEmptyComponent', () => {
const props = {
isLoading: false,
hasError: true,
+ error: 'error',
} as ListEmptyComponentProps;
const component = renderWithProviders(<ListEmptyComponent {...props} />);
const alertComponent = component.getByText('Error fetching daily roster');
@@ -32,11 +33,22 @@ describe('ListEmptyComponent', () => {
const props = {
isLoading: false,
hasError: false,
- selectedFilter: 'tardy',
+ selectedFilter: {current: 'tardy'},
} as ListEmptyComponentProps;
const component = renderWithProviders(<ListEmptyComponent {...props} />);
const selectedFilterComponent = component.getByTestId('selectedFilter');
expect(selectedFilterComponent).toBeDefined();
- expect(component.toJSON()).toMatchSnapshot();
+ });
+ it('renders text with No users found', () => {
+ const props = {
+ isLoading: false,
+ hasError: false,
+ selectedFilter: {current: 'all'},
+ } as ListEmptyComponentProps;
+ const component = renderWithProviders(<ListEmptyComponent {...props} />);
+ const selectedFilterCurrentValue = component.getByText('No users found');
+ const selectedFilterCurrentText = selectedFilterCurrentValue.props.children;
+ expect(selectedFilterCurrentValue).toBeDefined();
+ expect(selectedFilterCurrentText).toEqual('No users found');
});
});
--- __tests__/components/__snapshots__/ListEmptyComponentTest.tsx.snap
@@ -227,35 +227,3 @@ exports[`ListEmptyComponent renders all components correctly 1`] = `
/>
</View>
`;
-
-exports[`ListEmptyComponent renders all components selected Filter 1`] = `
-<View
- style={
- {
- "alignItems": "center",
- "marginTop": 24,
- }
- }
- testID="selectedFilter"
->
- <Text
- accessibilityRole="text"
- style={
- [
- {
- "color": "#2e2f32",
- "fontFamily": "Bogle",
- "fontSize": 16,
- "fontStyle": "normal",
- "fontWeight": "400",
- "lineHeight": 24,
- },
- {},
- ]
- }
- testID="Body"
- >
- No undefined users found
- </Text>
-</View>
-`;
--- src/components/Roster/ListEmptyComponent.tsx
@@ -30,7 +30,7 @@ export const ListEmptyComponent: React.FC<ListEmptyComponentProps> = ({
}
if (hasError) {
- logger.error('error fetching daily roster', {message: error});
+ logger.error('error fetching daily roster', {message: error.toString()});
return (
<Alert
variant='warning'
@@ -44,7 +44,7 @@ export const ListEmptyComponent: React.FC<ListEmptyComponentProps> = ({
return (
<View style={styles.emptyState} testID='selectedFilter'>
{selectedFilter.current !== FilterValue.all ? (
- <Body>{`No ${selectedFilter.current} users found`}</Body>
+ <Body testID='selectedValue'>{`No ${selectedFilter.current} users found`}</Body>
) : (
<Body>No users found</Body>
)}
| Adding remaining coverage for listEmptyComponent | Adding remaining coverage for listEmptyComponent
|
3dbb2eeb57e7bc552634295c7e961e451b1dbd10 | --- targets/US/package.json
@@ -102,7 +102,6 @@
"@walmart/emergency-mini-app": "1.29.8",
"@walmart/exception-mini-app": "1.8.11",
"@walmart/facilities-management-miniapp": "0.15.7",
- "@walmart/facilities-management-miniapp": "patch:@walmart/facilities-management-miniapp@npm%3A0.14.6#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.14.6-2a58bc097a.patch",
"@walmart/feedback-all-spark-miniapp": "0.9.66",
"@walmart/financial-wellbeing-feature-app": "1.26.0",
"@walmart/functional-components": "~6.3.28",
--- yarn.lock
@@ -6363,21 +6363,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/facilities-management-miniapp@npm:0.14.6":
- version: 0.14.6
- resolution: "@walmart/facilities-management-miniapp@npm:0.14.6"
+"@walmart/facilities-management-miniapp@npm:0.15.7":
+ version: 0.15.7
+ resolution: "@walmart/facilities-management-miniapp@npm:0.15.7"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/c7d728a946a8593d3db3aad00eef1138358a3cb2a73b979059b48995e86537e2689c43460d3be6b69694a942baec985152dd870be4c74b8ef8caa7203cd72ffa
- languageName: node
- linkType: hard
-
-"@walmart/facilities-management-miniapp@patch:@walmart/facilities-management-miniapp@npm%3A0.14.6#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.14.6-2a58bc097a.patch":
- version: 0.14.6
- resolution: "@walmart/facilities-management-miniapp@patch:@walmart/facilities-management-miniapp@npm%3A0.14.6#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.14.6-2a58bc097a.patch::version=0.14.6&hash=60f49f"
- peerDependencies:
- "@walmart/allspark-foundation": "*"
- checksum: 10c0/05b4b840bd73f68f1fcba40c23fc42b18512c40473e7b2e26eb589de208124a66749135babe55c9c5ccf03a89bdab2acd1f10203cf716ba2be3049144540f897
+ checksum: 10c0/f5f9d07ea84607c7a539f5ace8ce217eddcac50500baa6be3928718d8edf5f6ce4595ab661c41494a2d80766a39f218f4c7748d82482dd1de9ac7b86ba6a16cb
languageName: node
linkType: hard
@@ -7018,7 +7009,6 @@ __metadata:
"@walmart/emergency-mini-app": "npm:1.29.8"
"@walmart/exception-mini-app": "npm:1.8.11"
"@walmart/facilities-management-miniapp": "npm:0.15.7"
- "@walmart/facilities-management-miniapp": "patch:@walmart/facilities-management-miniapp@npm%3A0.14.6#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.14.6-2a58bc097a.patch"
"@walmart/feedback-all-spark-miniapp": "npm:0.9.66"
"@walmart/financial-wellbeing-feature-app": "npm:1.26.0"
"@walmart/functional-components": "npm:~6.3.28"
| Updating the patch | Updating the patch
|
9f0fc72b19cf3f3825186b03c6497c863de121f3 | --- __tests__/PinAccess/PinCodeSagasTest.ts
@@ -52,7 +52,7 @@ describe('pinCreationFlow', () => {
const iterator = pinCreationFlow();
expect(iterator.next().value).toEqual(take(PinAccessTypes.CREATE_PIN));
expect(iterator.next().value).toEqual(
- call(navigate, 'Core.PinAccessScreen', {flow: CREATE}),
+ call(navigate, 'PinAccessScreen', {flow: CREATE}),
);
expect(iterator.next().value).toEqual(take(PinAccessTypes.CREATE_PIN));
});
@@ -121,7 +121,7 @@ describe('handlePinPrompt', () => {
}),
);
expect(iterator.next().value).toEqual(
- call(resetTo, 'Core.PinAccessScreen', {flow: ENTRY}),
+ call(resetTo, 'PinAccessScreen', {flow: ENTRY}),
);
expect(iterator.next().value).toEqual(fork(handleBiometricSetup));
expect(iterator.next(biometricTask).value).toEqual(
--- __tests__/navigation/__snapshots__/indexTest.tsx.snap
@@ -72,7 +72,7 @@ exports[`RootNav matches snapshot when app accessible 1`] = `
<Screen
component="PinAccess"
listeners={[MockFunction]}
- name="Core.PinAccessScreen"
+ name="PinAccessScreen"
options={
Object {
"animationTypeForReplace": "push",
--- src/PinAccess/PinCodeSagas.ts
@@ -27,7 +27,7 @@ export const PIN_REQUIRED_KEY = 'pin_required';
export function* pinCreationFlow() {
while (true) {
yield take(PinAccessTypes.CREATE_PIN);
- yield call(navigate, 'Core.PinAccessScreen', {flow: CREATE});
+ yield call(navigate, 'PinAccessScreen', {flow: CREATE});
}
}
@@ -70,7 +70,7 @@ export function* handlePinPrompt(reason: string, resetNav: boolean): any {
});
const navMethod = resetNav ? resetTo : navigate;
- const pinScreen = resetNav ? 'Core.PinAccessScreen' : 'Core.PinAccessModal';
+ const pinScreen = resetNav ? 'PinAccessScreen' : 'Core.PinAccessModal';
yield call(navMethod, pinScreen, {flow: ENTRY});
--- src/navigation/index.tsx
@@ -83,7 +83,7 @@ export const RootNav = () => {
listeners={hideSplashScreenListeners}
/>
<RootStack.Screen
- name='Core.PinAccessScreen'
+ name='PinAccessScreen'
component={PinAccess}
options={{headerShown: false, animationTypeForReplace: 'push'}}
listeners={hideSplashScreenListeners}
| Reverting pin screen name change back to match settings reference | Reverting pin screen name change back to match settings reference
|
a1e3f904ff47f7208fe1b710b3b10f66eac6f342 | --- __tests__/harness/redux/mockState/index.ts
@@ -19,8 +19,5 @@ export const initialStateMock: GlobalState = {
versions: versionsState,
deviceInfo: deviceInfoState,
appConfig: appConfigState,
- network: {
- isConnected: true,
- }
//texting: textingState, //TODO: redux-store library needs mod to combineReducers to support this type
};
--- __tests__/screens/ChannelsScreen/ChannelsScreenTest.tsx
@@ -44,10 +44,6 @@ describe('ChannelsScreen', () => {
},
);
- const textingDisabledScreen = channelsScreen.getByTestId(
- 'textingDisabledScreenContainer',
- );
-
- expect(textingDisabledScreen).toBeTruthy();
+ channelsScreen.getByTestId('textingDisabledScreenContainer');
});
});
--- __tests__/screens/RosterScreen/RosterScreenTest.tsx
@@ -16,10 +16,7 @@ describe('RosterScreen', () => {
const rosterScreenLoading = renderWithProviders(
<RosterScreen navigation={mockNavigation} />,
);
- const spinner = rosterScreenLoading.getByTestId(
- 'rosterScreenLoadingSpinner',
- );
- expect(spinner).toBeTruthy;
+ rosterScreenLoading.getByTestId('rosterScreenLoadingSpinner');
});
//TODO: This test case is incomplete
--- __tests__/utils/user-test.ts
@@ -23,10 +23,12 @@ describe('formatSchedule', () => {
expect(formatSchedule(scheduleInfo)).toEqual('8:00am - 5:00pm');
});
it('should return empty string if start and end time are invalid timestamps', () => {
- const startTime = '07-11-2023 08:00:00';
- const endTime = '2023-07-11T17:00:00';
- const scheduleInfo = [{startTime, endTime}];
- const convertedStartAndEndTime = getScheduleStartAndEndTime(scheduleInfo) ? getScheduleStartAndEndTime(scheduleInfo):'' ;
- expect(formatSchedule(convertedStartAndEndTime)).toEqual('');
+ const invalidStartTime = 'invalid time';
+ const endTime = '2023-07-11T17:00:00';
+ const scheduleInfo = [{invalidStartTime, endTime}];
+ const convertedStartAndEndTime = getScheduleStartAndEndTime(scheduleInfo)
+ ? getScheduleStartAndEndTime(scheduleInfo)
+ : '';
+ expect(formatSchedule(convertedStartAndEndTime)).toEqual('');
});
});
--- __tests__/harness/redux/mockState/index.ts
@@ -19,8 +19,5 @@ export const initialStateMock: GlobalState = {
versions: versionsState,
deviceInfo: deviceInfoState,
appConfig: appConfigState,
- network: {
- isConnected: true,
- }
//texting: textingState, //TODO: redux-store library needs mod to combineReducers to support this type
};
--- __tests__/screens/ChannelsScreen/ChannelsScreenTest.tsx
@@ -44,10 +44,6 @@ describe('ChannelsScreen', () => {
},
);
- const textingDisabledScreen = channelsScreen.getByTestId(
- 'textingDisabledScreenContainer',
- );
-
- expect(textingDisabledScreen).toBeTruthy();
+ channelsScreen.getByTestId('textingDisabledScreenContainer');
});
});
--- __tests__/screens/RosterScreen/RosterScreenTest.tsx
@@ -16,10 +16,7 @@ describe('RosterScreen', () => {
const rosterScreenLoading = renderWithProviders(
<RosterScreen navigation={mockNavigation} />,
);
- const spinner = rosterScreenLoading.getByTestId(
- 'rosterScreenLoadingSpinner',
- );
- expect(spinner).toBeTruthy;
+ rosterScreenLoading.getByTestId('rosterScreenLoadingSpinner');
});
//TODO: This test case is incomplete
--- __tests__/utils/user-test.ts
@@ -23,10 +23,12 @@ describe('formatSchedule', () => {
expect(formatSchedule(scheduleInfo)).toEqual('8:00am - 5:00pm');
});
it('should return empty string if start and end time are invalid timestamps', () => {
- const startTime = '07-11-2023 08:00:00';
- const endTime = '2023-07-11T17:00:00';
- const scheduleInfo = [{startTime, endTime}];
- const convertedStartAndEndTime = getScheduleStartAndEndTime(scheduleInfo) ? getScheduleStartAndEndTime(scheduleInfo):'' ;
- expect(formatSchedule(convertedStartAndEndTime)).toEqual('');
+ const invalidStartTime = 'invalid time';
+ const endTime = '2023-07-11T17:00:00';
+ const scheduleInfo = [{invalidStartTime, endTime}];
+ const convertedStartAndEndTime = getScheduleStartAndEndTime(scheduleInfo)
+ ? getScheduleStartAndEndTime(scheduleInfo)
+ : '';
+ expect(formatSchedule(convertedStartAndEndTime)).toEqual('');
});
});
| updating from online review | updating from online review
|
7942573e798ffff179d2d48c29c3e03e951546b3 | --- package-lock.json
@@ -2986,9 +2986,9 @@
"integrity": "sha512-Pe55V+hzs8Z1aqVW3BNuHKpC92fViArzNHp754Y2ZKINFPv6pXTlxkEDNw5x4qQ1m9qBsQyS8LpBPGOllAlnEg=="
},
"@walmart/feedback-all-spark-miniapp": {
- "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=="
+ "version": "0.0.31",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.31.tgz",
+ "integrity": "sha512-/EZQm9Y9Ilytb3ILA11aUJtXK3P4ojanJKdEwzXYZOR4hnrmhAb+ywYqF6cToYMw4crAY1EROoDLzY6MogC5Lw=="
},
"@walmart/functional-components": {
"version": "1.0.22",
--- package.json
@@ -50,7 +50,7 @@
"@walmart/allspark-me-mini-app": "0.0.14",
"@walmart/ask-sam-mini-app": "0.7.6",
"@walmart/config-components": "1.0.8",
- "@walmart/feedback-all-spark-miniapp": "0.0.30",
+ "@walmart/feedback-all-spark-miniapp": "0.0.31",
"@walmart/functional-components": "^1.0.22",
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/inbox-mini-app": "0.0.24",
| Bump feedback mini app version for small layout issue and add splunk logging (#195) | Bump feedback mini app version for small layout issue and add splunk logging (#195)
Co-authored-by: Lochy <Hy.Loc@walmartlabs.com>
Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
5a5d760619eda94bc5976fa00eebfe51aef1f2e6 | --- src/components/TeamChatCard.tsx
@@ -14,7 +14,7 @@ import {
import {teamsMock} from '../hooks/tempTeamMock';
import {Images} from '../images';
import {noop} from 'lodash';
-import {useStartStoreText} from '../hooks';
+import {useStartStoreText, useStartTeamText} from '../hooks';
import firestore from '@react-native-firebase/firestore';
const teams = teamsMock;
@@ -62,6 +62,7 @@ export const TeamChatCard = (props: {
const {style, onViewTeamButtonPress} = props;
const [expanded, setExpanded] = useState(false);
const startStoreText = useStartStoreText();
+ const startTeamText = useStartTeamText();
const toggle = () => {
setExpanded(!expanded);
@@ -107,7 +108,7 @@ export const TeamChatCard = (props: {
<ButtonGroup>
<Button
variant='secondary'
- onPress={startStoreText}
+ onPress={() => startTeamText(primaryTeam.teamId)}
size='small'
disabled={false}>
<Text>Text</Text>
--- src/components/TeamChatCard.tsx
@@ -14,7 +14,7 @@ import {
import {teamsMock} from '../hooks/tempTeamMock';
import {Images} from '../images';
import {noop} from 'lodash';
-import {useStartStoreText} from '../hooks';
+import {useStartStoreText, useStartTeamText} from '../hooks';
import firestore from '@react-native-firebase/firestore';
const teams = teamsMock;
@@ -62,6 +62,7 @@ export const TeamChatCard = (props: {
const {style, onViewTeamButtonPress} = props;
const [expanded, setExpanded] = useState(false);
const startStoreText = useStartStoreText();
+ const startTeamText = useStartTeamText();
const toggle = () => {
setExpanded(!expanded);
@@ -107,7 +108,7 @@ export const TeamChatCard = (props: {
<ButtonGroup>
<Button
variant='secondary'
- onPress={startStoreText}
+ onPress={() => startTeamText(primaryTeam.teamId)}
size='small'
disabled={false}>
<Text>Text</Text>
| adding team text behavior | adding team text behavior
|
538801aff973630c4165da91427ae34e3417ebdc | --- ios/Podfile.lock
@@ -139,7 +139,7 @@ PODS:
- GoogleUtilities/Network (~> 7.7)
- "GoogleUtilities/NSData+zlib (~> 7.7)"
- nanopb (~> 2.30908.0)
- - GoogleDataTransport (9.2.0):
+ - GoogleDataTransport (9.1.4):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
@@ -164,15 +164,15 @@ PODS:
- GoogleUtilities/UserDefaults (7.7.0):
- GoogleUtilities/Logger
- leveldb-library (1.22.1)
- - libwebp (1.2.3):
- - libwebp/demux (= 1.2.3)
- - libwebp/mux (= 1.2.3)
- - libwebp/webp (= 1.2.3)
- - libwebp/demux (1.2.3):
+ - libwebp (1.2.1):
+ - libwebp/demux (= 1.2.1)
+ - libwebp/mux (= 1.2.1)
+ - libwebp/webp (= 1.2.1)
+ - libwebp/demux (1.2.1):
- libwebp/webp
- - libwebp/mux (1.2.3):
+ - libwebp/mux (1.2.1):
- libwebp/demux
- - libwebp/webp (1.2.3)
+ - libwebp/webp (1.2.1)
- nanopb (2.30908.0):
- nanopb/decode (= 2.30908.0)
- nanopb/encode (= 2.30908.0)
@@ -184,7 +184,7 @@ PODS:
- RNPermissions
- Permission-Notifications (3.0.0):
- RNPermissions
- - PromisesObjC (2.1.1)
+ - PromisesObjC (2.1.0)
- PTT (0.7.17-rc.2):
- BinaryCodable (~> 0.2.1)
- CocoaAsyncSocket (~> 7.6.3)
@@ -594,7 +594,7 @@ PODS:
- Apollo/SQLite (= 0.42.0)
- Firebase/Messaging (~> 8.4)
- StructuredLogAssistantIOS (= 0.0.7)
- - SwiftProtobuf (1.19.1)
+ - SwiftProtobuf (1.19.0)
- TextServiceProto (0.0.12):
- SwiftProtobuf
- VisionCamera (1.0.10):
@@ -942,15 +942,15 @@ SPEC CHECKSUMS:
GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4
glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85
GoogleAppMeasurement: 4c19f031220c72464d460c9daa1fb5d1acce958e
- GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f
+ GoogleDataTransport: 5fffe35792f8b96ec8d6775f5eccd83c998d5a3b
GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1
leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729
- libwebp: 60305b2e989864154bd9be3d772730f08fc6a59c
+ libwebp: 98a37e597e40bfdb4c911fc98f2c53d0b12d05fc
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
Permission-Camera: 358081c7b8210849958af181ce9ddeb11932aa82
Permission-LocationWhenInUse: e09ae67e8db2b1eeefb35f18ca59848d0785de5b
Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef
- PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
+ PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72
PTT: ad0e445a1953114d2f5dd57b13de6fe1ed070fc5
RCT-Folly: 803a9cfd78114b2ec0f140cfa6fa2a6bafb2d685
RCTRequired: 0aa6c1c27e1d65920df35ceea5341a5fe76bdb79
@@ -1033,7 +1033,7 @@ SPEC CHECKSUMS:
Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5
StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1
SumoSDK: 2fa93ab09e028a4acd80d97914687d23fa1405b6
- SwiftProtobuf: 59d9ea2eb5f84b509f32d170a65f3348ae758f1e
+ SwiftProtobuf: 6ef3f0e422ef90d6605ca20b21a94f6c1324d6b3
TextServiceProto: 07782a63b28a91b30d9a008ffd925768f6da6a2d
VisionCamera: 60b74823ece943da919e2eb6dde62a676c486382
walmart-react-native-sumo-sdk: 591bc10e53b61d64285a694248e8f652585bfcb9
| Fixed Podfile.lock | Fixed Podfile.lock
|
b6b750eb5cdfdd81e087bd612e4d5c02985ffad2 | --- android/package-lock.json
@@ -1,6 +0,0 @@
-{
- "name": "android",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {}
-}
| Delete unwanted package-lock | Delete unwanted package-lock |
4cf996909246bc66f893700a1dad10a098d37bc5 | --- packages/celebration-mini-app/src/components/Widget/HubCelebrationWidget.tsx
@@ -458,25 +458,30 @@ const HubCelebrationWidgetCore: React.FC<
additionalProps.onHeaderPress = () => {
if (enableWidgetNavigation) {
- AccessibilityInfo.isScreenReaderEnabled().then(enabled => {
- if (enabled) {
- const message = 'Navigating to celebration detail screen';
- AccessibilityInfo.announceForAccessibility(message);
+ // Navigate immediately for best UX
+ NavigationModule.manager.navigate(
+ 'myTeam.celebrationDetailScreen',
+ {
+ selectedTeamIds: effectiveTeamIds,
+ teamData,
+ isSiteDC,
}
+ );
+
+ // Defer accessibility and telemetry to not block navigation
+ requestAnimationFrame(() => {
+ AccessibilityInfo.isScreenReaderEnabled().then(enabled => {
+ if (enabled) {
+ const message = 'Navigating to celebration detail screen';
+ AccessibilityInfo.announceForAccessibility(message);
+ }
+ });
+
CelebrationTelemetryHelpers.logNavigation({
from: 'hub_widget',
to: 'celebration_details',
teamId: effectiveTeamIds?.[0],
});
-
- NavigationModule.manager.navigate(
- 'myTeam.celebrationDetailScreen',
- {
- selectedTeamIds: effectiveTeamIds,
- teamData,
- isSiteDC,
- }
- );
});
}
};
| feat(ui): update celebration peformance | feat(ui): update celebration peformance
|
c28dce07fab80967084001bac29f564f48b8e147 | --- package.json
@@ -1,7 +1,7 @@
{
"name": "@walmart/wmconnect-mini-app",
"version": "2.36.0",
- "main": "main.js",
+ "main": "dist/index.js",
"files": [
"dist",
"main.js"
| fix(ui): update package | fix(ui): update package
|
a723e70765b84ab8e8b9be8c472a37816a9712f4 | --- .looper.multibranch.yml
@@ -52,6 +52,18 @@ flows:
- call: build-npm
- (name Build JS Bundle for ${market}) npm run bundle-js
+ app-build-init:
+ - call: initialize
+ - (name Set NPM Env) yarn run env:${ENV}
+ # - call: initialize-fastlane
+ - withcache('yarn-cache'):
+ - call: yarn-steps
+ - if: ${MULTI_BUILD}
+ then:
+ - call: set-build-number
+ else:
+ - call: incremental-build-number
+
build-android:
- node(label = docker-daemon, ws = exclusive):
- dockerAgent(mdc-agent):
@@ -88,3 +100,19 @@ flows:
- var(errorMessage = ${flowErrorMessage})
- call: build-notification(failure)
- fail("${flowErrorMessage}")
+
+ native-common:
+ - call: build-app
+ # - call: app-size-operations
+ - exposeVars(package.json)
+ - declare(version)
+ - var(version = ${package.version})
+ - if: |
+ %{ BUILD_TYPE == "SNAPSHOT" }
+ then:
+ - var(version = "${version}-${ENV}-SNAPSHOT")
+ - call: upload-app
+ - if: |
+ %{ ENV != "prod" }
+ then:
+ - call: build-notification(success)
| chore: looper fix | chore: looper fix
|
af593fd1b032958a80b9b173066a425eee6b577a | --- targets/US/package.json
@@ -119,7 +119,7 @@
"@walmart/metrics-mini-app": "1.24.4",
"@walmart/mod-flex-mini-app": "1.22.0",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/money-auth-shared-components": "0.1.22",
+ "@walmart/money-auth-shared-components": "2.0.14",
"@walmart/myteam-mini-app": "1.12.0",
"@walmart/native-rfid-scanner": "3.12.1",
"@walmart/onewalmart-miniapp": "1.0.24",
--- yarn.lock
@@ -7034,7 +7034,7 @@ __metadata:
"@walmart/metrics-mini-app": "npm:1.24.4"
"@walmart/mod-flex-mini-app": "npm:1.22.0"
"@walmart/moment-walmart": "npm:1.0.4"
- "@walmart/money-auth-shared-components": "npm:0.1.22"
+ "@walmart/money-auth-shared-components": "npm:2.0.14"
"@walmart/myteam-mini-app": "npm:1.12.0"
"@walmart/native-rfid-scanner": "npm:3.12.1"
"@walmart/onewalmart-miniapp": "npm:1.0.24"
@@ -7357,10 +7357,24 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/money-auth-shared-components@npm:0.1.22":
- version: 0.1.22
- resolution: "@walmart/money-auth-shared-components@npm:0.1.22"
- checksum: 10c0/e060b6021c3861fb26dc9e8cca5163c1f0d1467aa050053ca62b6a36416ef5dc6cb8813a4aff628907292568ced77f405415d5814938c0105ae9ca5e41fd64c5
+"@walmart/money-auth-shared-components@npm:2.0.14":
+ version: 2.0.14
+ resolution: "@walmart/money-auth-shared-components@npm:2.0.14"
+ peerDependencies:
+ "@react-navigation/native": ^6.0.0
+ "@react-navigation/stack": ^6.1.0
+ "@walmart/functional-components": ^1.0.34
+ "@walmart/gtp-shared-components": ^2.0.6
+ "@walmart/react-native-logger": ^1.9.0
+ "@walmart/react-native-shared-navigation": ^0.2.0
+ "@walmart/redux-store": ^1.0.12
+ react: ^17.0.2
+ react-native: ^0.66.4
+ react-native-connect-sso-redux: ^1.0.1
+ react-native-wm-telemetry: ^0.3.0
+ react-redux: ^7.2.1
+ redux: ^4.0.5
+ checksum: 10c0/338bf8275f52fa37f49dc9bfb24f4cdfcafdb250c86a44faa2f61214540e84e41943a84455d8340f4e727fa3c14368bc06304ac03e3a44db8f1ce0d5831f508d
languageName: node
linkType: hard
| feat: bump version | feat: bump version
|
66b678c4073e0f6d570fff563f755fa6f98148d6 | --- package.json
@@ -153,7 +153,7 @@
"@walmart/taskit-mini-app": "5.31.6",
"@walmart/time-clock-mini-app": "2.462.1",
"@walmart/time-clock-mini-app-next": "2.812.1",
- "@walmart/topstock-mini-app": "1.22.2",
+ "@walmart/topstock-mini-app": "1.22.3",
"@walmart/translator-mini-app": "1.4.2",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch",
"@walmart/walmart-fiscal-week": "^0.3.6",
--- yarn.lock
@@ -8386,7 +8386,7 @@ __metadata:
"@walmart/taskit-mini-app": "npm:5.31.6"
"@walmart/time-clock-mini-app": "npm:2.462.1"
"@walmart/time-clock-mini-app-next": "npm:2.812.1"
- "@walmart/topstock-mini-app": "npm:1.22.2"
+ "@walmart/topstock-mini-app": "npm:1.22.3"
"@walmart/translator-mini-app": "npm:1.4.2"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch"
"@walmart/walmart-fiscal-week": "npm:^0.3.6"
@@ -9408,9 +9408,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/topstock-mini-app@npm:1.22.2":
- version: 1.22.2
- resolution: "@walmart/topstock-mini-app@npm:1.22.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftopstock-mini-app%2F-%2F%40walmart%2Ftopstock-mini-app-1.22.2.tgz"
+"@walmart/topstock-mini-app@npm:1.22.3":
+ version: 1.22.3
+ resolution: "@walmart/topstock-mini-app@npm:1.22.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftopstock-mini-app%2F-%2F%40walmart%2Ftopstock-mini-app-1.22.3.tgz"
peerDependencies:
"@react-navigation/native": ">=5.8.10"
"@react-navigation/stack": ">=5.12.8"
@@ -9423,7 +9423,7 @@ __metadata:
react-native-haptic-feedback: ">=1.13.0"
react-native-vector-icons: ">=6.6.0"
react-redux: ">=7.2.0"
- checksum: 10c0/472781f5b05aa762974235bd114ccc2550c7fa07c73e19d00f0a3ac26d8897486b4ff880f35efce02b472e8a4b34736ccdbb070c60f9779040e7b27461c2553e
+ checksum: 10c0/b30ceae702b6a85d0c047eb6bfe59e2762e6e01001c57031ec8a61cd849c8de277a15d5899bc4847dc7702e7b0323b957c01e4379b17bce1d648e67306ed4299
languageName: node
linkType: hard
| fix: VS-8972 fixed the crash in topstock for db migration | fix: VS-8972 fixed the crash in topstock for db migration
|
44c7cb8389f4d45decb92a10a87705388e3e18fd | --- src/navigation/utils.ts
@@ -6,6 +6,7 @@ import {
TransitionPresets,
} from '@react-navigation/stack';
import {TextingNavParamsMap} from './types';
+import {navigate} from '@walmart/react-native-shared-navigation';
let comingFrom: keyof TextingNavParamsMap | null = null;
const REPLACE_SCREEN = 'texting.newMessage';
@@ -79,3 +80,14 @@ export const buildMessageScreenOptions = (
cardStyleInterpolator: MessageStyleInterpolator.bind(props),
});
};
+
+export const goToWeeklySchedule = (WINNumbers: string[], teamName?: string) => {
+ navigate('scheduleScreen', {
+ // @ts-ignore
+ screen: 'scheduleNav.roster',
+ params: {
+ wins: WINNumbers,
+ teamName: teamName,
+ },
+ });
+};
--- src/screens/RosterScreen.tsx
@@ -17,10 +17,15 @@ import {Associate} from '../types';
import {AssociateRosterItem, TeamChatCard} from '../components';
import {RosterFilters} from '../containers/RosterFilters';
import {StoreChatCard} from '../containers/StoreChatCard';
-import {useStartAssociateText, useGetTeamsInfo} from '../hooks';
+import {
+ useStartAssociateText,
+ useGetTeamsInfo,
+ useGetStoreRoster,
+} from '../hooks';
import {useGetDailyRosterLazyQuery} from '../queries/getDailyRoster';
import {tempAssociatesMock} from '../hooks/tempAssociatesMock';
import firestore from '@react-native-firebase/firestore';
+import {goToWeeklySchedule} from '../navigation/utils';
const styles = StyleSheet.create({
screen: {
@@ -68,16 +73,31 @@ export interface TeamInfo {
}[];
}
-export const RosterHeader: React.FC = () => {
+export const RosterHeader: React.FC<{teamInfo?: TeamInfo}> = ({teamInfo}) => {
+ const associates = useGetStoreRoster();
+
+ //TODO: Move this computation to setState on mount, externalize this method so it can be unit tested
+ const associateWINs = associates
+ .map((associate) => associate?.win?.toString())
+ .filter((WIN) => {
+ if (!teamInfo) {
+ return true;
+ } else {
+ return (
+ WIN && teamInfo.membership.map((member) => member.win).includes(WIN)
+ );
+ }
+ }) as string[]; //TODO: should we force this typecast?
+
return (
<View style={styles.rosterHeader}>
<Body weight='700' size='large'>
- Today’s schedule
+ Today’s Total Store roster
</Body>
<Button
variant='tertiary'
size='small'
- onPress={noop}
+ onPress={() => goToWeeklySchedule(associateWINs, teamInfo?.teamName)}
disabled={true}
UNSAFE_style={styles.weeklyScheduleButton}>
Weekly schedule
--- src/screens/ViewTeamScreen.tsx
@@ -48,7 +48,7 @@ export const ViewTeamScreen: React.FC<ViewTeamScreenProps> = ({route}) => {
ListHeaderComponent={
<>
<RosterFilters />
- <RosterHeader />
+ <RosterHeader teamInfo={teamInfo} />
</>
}
renderItem={renderAssociate}
--- src/navigation/utils.ts
@@ -6,6 +6,7 @@ import {
TransitionPresets,
} from '@react-navigation/stack';
import {TextingNavParamsMap} from './types';
+import {navigate} from '@walmart/react-native-shared-navigation';
let comingFrom: keyof TextingNavParamsMap | null = null;
const REPLACE_SCREEN = 'texting.newMessage';
@@ -79,3 +80,14 @@ export const buildMessageScreenOptions = (
cardStyleInterpolator: MessageStyleInterpolator.bind(props),
});
};
+
+export const goToWeeklySchedule = (WINNumbers: string[], teamName?: string) => {
+ navigate('scheduleScreen', {
+ // @ts-ignore
+ screen: 'scheduleNav.roster',
+ params: {
+ wins: WINNumbers,
+ teamName: teamName,
+ },
+ });
+};
--- src/screens/RosterScreen.tsx
@@ -17,10 +17,15 @@ import {Associate} from '../types';
import {AssociateRosterItem, TeamChatCard} from '../components';
import {RosterFilters} from '../containers/RosterFilters';
import {StoreChatCard} from '../containers/StoreChatCard';
-import {useStartAssociateText, useGetTeamsInfo} from '../hooks';
+import {
+ useStartAssociateText,
+ useGetTeamsInfo,
+ useGetStoreRoster,
+} from '../hooks';
import {useGetDailyRosterLazyQuery} from '../queries/getDailyRoster';
import {tempAssociatesMock} from '../hooks/tempAssociatesMock';
import firestore from '@react-native-firebase/firestore';
+import {goToWeeklySchedule} from '../navigation/utils';
const styles = StyleSheet.create({
screen: {
@@ -68,16 +73,31 @@ export interface TeamInfo {
}[];
}
-export const RosterHeader: React.FC = () => {
+export const RosterHeader: React.FC<{teamInfo?: TeamInfo}> = ({teamInfo}) => {
+ const associates = useGetStoreRoster();
+
+ //TODO: Move this computation to setState on mount, externalize this method so it can be unit tested
+ const associateWINs = associates
+ .map((associate) => associate?.win?.toString())
+ .filter((WIN) => {
+ if (!teamInfo) {
+ return true;
+ } else {
+ return (
+ WIN && teamInfo.membership.map((member) => member.win).includes(WIN)
+ );
+ }
+ }) as string[]; //TODO: should we force this typecast?
+
return (
<View style={styles.rosterHeader}>
<Body weight='700' size='large'>
- Today’s schedule
+ Today’s Total Store roster
</Body>
<Button
variant='tertiary'
size='small'
- onPress={noop}
+ onPress={() => goToWeeklySchedule(associateWINs, teamInfo?.teamName)}
disabled={true}
UNSAFE_style={styles.weeklyScheduleButton}>
Weekly schedule
--- src/screens/ViewTeamScreen.tsx
@@ -48,7 +48,7 @@ export const ViewTeamScreen: React.FC<ViewTeamScreenProps> = ({route}) => {
ListHeaderComponent={
<>
<RosterFilters />
- <RosterHeader />
+ <RosterHeader teamInfo={teamInfo} />
</>
}
renderItem={renderAssociate}
| adding weekly schedule link | adding weekly schedule link
|
2233a3d437fc7df258437afc2a5694bfee601d19 | --- packages/allspark-graphql-client/codegen/generate.js
@@ -94,7 +94,7 @@ cli
// Merge apollo codegen config with allspark config
...(config.apollo || {}),
...(config.typescriptOperations || {}),
- gqlImport: '@walmart/allspark-graphql-client',
+ gqlImport: '@walmart/allspark-graphql-client#gql',
apolloReactCommonImportFrom: '@walmart/allspark-graphql-client',
apolloReactHooksImportFrom: '@walmart/allspark-graphql-client',
},
--- packages/allspark-graphql-client/src/apollo/provider.tsx
@@ -14,14 +14,13 @@ import {
PersistedQueryLink,
} from '@apollo/client/link/persisted-queries';
import { buildAxiosFetch } from '@lifeomic/axios-fetch';
-// Eventually we can remove the reliance on this type and instead
-// have a dependency on allspark-http-client
-import { AxiosInstance } from '@lifeomic/axios-fetch/src/axios-types';
+import { IHttpClient } from '@walmart/allspark-http-client';
+
import { generateQueryHash } from '../utils/generateQueryHash';
export const AllsparkGraphQLProvider = (
props: PropsWithChildren<{
- httpClient: AxiosInstance;
+ httpClient: IHttpClient;
httpConfig?: Omit<HttpOptions, 'fetch'>;
cache: ApolloCache<NormalizedCacheObject>;
persistedQueryConfig?: Omit<
--- packages/allspark-graphql-client/src/apollo/types.ts
@@ -2,4 +2,8 @@ import { ApolloClient } from '@apollo/client';
// Re-exposing common types. Renaming to match format of other services.
export type GraphQLClient<TCacheShape> = ApolloClient<TCacheShape>;
-export type { QueryResult } from '@apollo/client';
+export type {
+ QueryResult,
+ QueryHookOptions,
+ LazyQueryHookOptions,
+} from '@apollo/client';
| fix: add missing type exports. fix type reference. fix codegen reference | fix: add missing type exports. fix type reference. fix codegen reference
|
a9830560100878cf073608febd4890cd6cd32e2e | --- packages/me-at-walmart-athena-queries/src/index.ts
@@ -2,6 +2,7 @@ export * from './businessUnitByCountryAndNumber';
export * from './getAssociateById';
export * from './getDailyRosterHome';
export * from './getLoggedInUser';
+export * from './getLoggedInUserV2';
export * from './getTeamByIdHome';
export * from './getTeamsbyStore';
export * from './getAssociatePreference';
| chore(ui): expose getLoggedInUserV2 (#298) | chore(ui): expose getLoggedInUserV2 (#298)
Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com> |
fa466048aca1ba7ca8c1408dd911af3682fd9576 | --- src/home/Home.tsx
@@ -1,29 +0,0 @@
-import React, {useEffect} from 'react';
-import {View} from 'react-native';
-import {useSelector} from 'react-redux';
-
-import {Body} from '@walmart/gtp-shared-components';
-import {GlobalState} from '@walmart/redux-store';
-
-import {callApi} from './testApiCall';
-
-export const Home = () => {
- const {data: user} = useSelector((state: GlobalState) => state.user);
- const consumerId = useSelector((state: any) => state.envConfig?.consumerId);
-
- useEffect(() => {
- if (consumerId) {
- callApi(consumerId);
- }
- }, [consumerId]);
-
- if (user) {
- return (
- <View>
- <Body>Welcome {user.displayName}</Body>
- </View>
- );
- }
-
- return null;
-};
--- src/home/index.ts
@@ -1 +0,0 @@
-export {Home} from './Home';
--- src/home/testApiCall.ts
@@ -1,18 +0,0 @@
-import {defaultHttpClient} from '@walmart/functional-components';
-
-export const callApi = async (consumerId: string) => {
- try {
- const resp = await defaultHttpClient.get(
- 'https://api-proxy.stg.soa-api-proxy.platform.glb.prod.walmart.com/api-proxy/service/allspark/api/v1/assistant/stt-credentials',
- {
- headers: {
- ping_token_idp: 'yes',
- 'wm_consumer.id': consumerId,
- },
- },
- );
- console.log('data is', resp.data);
- } catch (err) {
- console.warn('caught err from api', err);
- }
-};
| Removing home, no longer used | Removing home, no longer used
|
ae1a48b03eba48e06759d5aa33187209164c9a93 | --- ios/AllSpark.xcodeproj/project.pbxproj
@@ -497,7 +497,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 212ACBF9F6EA1B3866D5D388 /* Pods-AllSpark.debug.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev";
+ ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
@@ -537,7 +537,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 18C7AF990A657BA8B527E5F6 /* Pods-AllSpark.release.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev";
+ ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements;
CODE_SIGN_IDENTITY = "iPhone Distribution";
--- ios/AllSpark/Info.plist
@@ -105,7 +105,7 @@
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key>
- <string>LaunchScreen-Dev</string>
+ <string>LaunchScreen-Beta</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
--- package.json
@@ -76,7 +76,7 @@
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/ims-print-services-ui": "0.0.16",
"@walmart/inbox-mini-app": "0.0.94",
- "@walmart/manager-approvals-miniapp": "0.0.20",
+ "@walmart/manager-approvals-miniapp": "0.0.25",
"@walmart/moment-walmart": "1.0.4",
"@walmart/push-to-talk-mini-app": "0.5.12",
"@walmart/react-native-env": "^0.1.0",
| updating manager approvals version with vqa changes. | updating manager approvals version with vqa changes.
|
eb9c8fc4f96d6cd4aaa6957bc898eb77f47ea601 | --- package.json
@@ -90,7 +90,7 @@
"@walmart/exception-mini-app": "0.43.1",
"@walmart/facilities-management-miniapp": "0.3.26",
"@walmart/feedback-all-spark-miniapp": "0.9.0",
- "@walmart/financial-wellbeing-feature-app": "1.0.60",
+ "@walmart/financial-wellbeing-feature-app": "1.0.61",
"@walmart/functional-components": "2.0.6",
"@walmart/gta-react-native-calendars": "0.0.15",
"@walmart/gtp-shared-components": "1.8.17",
| bumped financial-wellbeing-feature-app to 1.0.61 | bumped financial-wellbeing-feature-app to 1.0.61
|
7bfe6fd0be6f5737ed08a2bfc4c657345da872d2 | --- packages/allspark-foundation-hub/__tests__/TeamOnboarding/TeamSelectionList.test.tsx
@@ -205,22 +205,6 @@ describe('TeamSelectionList Component Tests', () => {
expect(mockOnComplete).toHaveBeenCalledTimes(1);
});
- test('handles upsertManagerExperiencePreferenceMutation error', async () => {
- const mockOnError = jest.fn();
- useUpsertManagerExperiencePreferenceMutation.mockReturnValue([
- jest.fn(),
- { loading: false, onError: mockOnError },
- ]);
-
- const { getByTestId } = render(<TeamSelectionList {...props} />);
- const saveButton = getByTestId('saveTeam-button');
- fireEvent.press(saveButton);
- mockOnError();
- expect(mockOnError).toHaveBeenCalledWith(
-
- )
- })
-
test('should handle save button when site or win is not available', () => {
(useSelector as jest.Mock).mockImplementation((selector) => {
switch (selector) {
--- packages/allspark-foundation-hub/__tests__/container/utils.test.ts
@@ -123,7 +123,7 @@ describe('validateWidgets', () => {
});
});
- it('should handle erroe when there is erro while conevrting to JSON', () => {
+ it('should handle error when there is error while conevrting to JSON', () => {
const data = {
registeredWidgets: ['Widget1'],
teamWidgetMapping: {
| test(ui): update with pr comments | test(ui): update with pr comments
|
ff5bd68d567b7894e185e53d250b0b4136811150 | --- package-lock.json
@@ -36171,4 +36171,4 @@
}
}
}
-}
\ No newline at end of file
+}
--- package.json
@@ -336,4 +336,4 @@
"pre-push": "run-p solidarity coverage"
}
}
-}
\ No newline at end of file
+}
| update package-lock | update package-lock
|
f28cbcaf3edab3e0f12bbe6d48ed8878576fae5d | --- src/components/AssociateRosterItem/style.ts
@@ -30,8 +30,8 @@ export const styles = StyleSheet.create({
},
badge: {
marginRight: 8,
- marginBottom: 20, // for alignment with name, not within the same view
- alignSelf: 'center',
+ marginTop: 8,
+ alignSelf: 'flex-start',
},
tag: {
alignSelf: 'flex-end',
--- src/components/Avatar.tsx
@@ -37,6 +37,9 @@ const styles = StyleSheet.create({
position: 'absolute',
top: 0,
right: 0,
+ backgroundColor: 'white',
+ padding: 2,
+ borderRadius: 20,
},
});
@@ -84,10 +87,9 @@ export const Avatar = (props: AvatarProps) => {
<Body UNSAFE_style={styles.avatarText}>{initials}</Body>
)}
- <PresenceIndicator
- userId={userId}
- style={styles.avatarClockedInIndicator}
- />
+ <View style={styles.avatarClockedInIndicator}>
+ <PresenceIndicator userId={userId} />
+ </View>
</View>
);
};
--- src/components/StatusChip.tsx
@@ -3,7 +3,6 @@ import {Tag, TagColor} from '@walmart/gtp-shared-components';
import {Associate} from '../types';
import {
associateIsAbsent,
- associateIsClockedIn,
associateIsOnMeal,
associateIsOnPPTO,
associateIsTardy,
@@ -13,11 +12,6 @@ import {StyleProp, ViewStyle} from 'react-native';
const deriveAssociateStatus = (
associate: Associate,
): {text: string; color: TagColor} | null => {
- const clockedIn = associateIsClockedIn(associate);
- if (clockedIn) {
- return null;
- }
-
if (associateIsAbsent(associate)) {
return {
text: 'Absent',
--- src/components/AssociateRosterItem/style.ts
@@ -30,8 +30,8 @@ export const styles = StyleSheet.create({
},
badge: {
marginRight: 8,
- marginBottom: 20, // for alignment with name, not within the same view
- alignSelf: 'center',
+ marginTop: 8,
+ alignSelf: 'flex-start',
},
tag: {
alignSelf: 'flex-end',
--- src/components/Avatar.tsx
@@ -37,6 +37,9 @@ const styles = StyleSheet.create({
position: 'absolute',
top: 0,
right: 0,
+ backgroundColor: 'white',
+ padding: 2,
+ borderRadius: 20,
},
});
@@ -84,10 +87,9 @@ export const Avatar = (props: AvatarProps) => {
<Body UNSAFE_style={styles.avatarText}>{initials}</Body>
)}
- <PresenceIndicator
- userId={userId}
- style={styles.avatarClockedInIndicator}
- />
+ <View style={styles.avatarClockedInIndicator}>
+ <PresenceIndicator userId={userId} />
+ </View>
</View>
);
};
--- src/components/StatusChip.tsx
@@ -3,7 +3,6 @@ import {Tag, TagColor} from '@walmart/gtp-shared-components';
import {Associate} from '../types';
import {
associateIsAbsent,
- associateIsClockedIn,
associateIsOnMeal,
associateIsOnPPTO,
associateIsTardy,
@@ -13,11 +12,6 @@ import {StyleProp, ViewStyle} from 'react-native';
const deriveAssociateStatus = (
associate: Associate,
): {text: string; color: TagColor} | null => {
- const clockedIn = associateIsClockedIn(associate);
- if (clockedIn) {
- return null;
- }
-
if (associateIsAbsent(associate)) {
return {
text: 'Absent',
| chore: style fixes | chore: style fixes
|
e8f2d29d50a2cd0d742be4dd3e724a8c496f4280 | --- package.json
@@ -80,7 +80,7 @@
"@types/redux-mock-store": "^1.0.2",
"@walmart/allspark-authentication": "6.4.1",
"@walmart/allspark-foundation": "^6.32.0",
- "@walmart/allspark-foundation-hub": "1.10.0-beta.4777+338560dd",
+ "@walmart/allspark-foundation-hub": "1.10.0-beta.4778+f34e932b",
"@walmart/allspark-graphql-client": "6.3.29",
"@walmart/allspark-http-client": "6.3.29",
"@walmart/allspark-utils": "6.5.1",
@@ -93,13 +93,13 @@
"@walmart/me-at-walmart-athena-queries": "6.26.1",
"@walmart/me-at-walmart-common": "6.29.0-alpha.0",
"@walmart/me-at-walmart-container": "6.29.0-alpha.0",
- "@walmart/myteam-mini-app": "3.0.2-alpha.3",
+ "@walmart/myteam-mini-app": "3.0.2-alpha.4",
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-logger": "1.35.0",
"@walmart/react-native-scanner-3.0": "0.10.7",
"@walmart/react-native-sumo-sdk": "2.8.0",
"@walmart/redux-store": "6.3.29",
- "@walmart/roster-mini-app": "3.2.0-alpha.4",
+ "@walmart/roster-mini-app": "3.2.0-alpha.5",
"@walmart/wmconnect-mini-app": "3.1.1-alpha.0",
"babel-jest": "^29.6.3",
"eslint": "8.56.0",
--- src/store/selectors/selectors.ts
@@ -263,11 +263,24 @@ export const createSafeTeamDataSelector = () => {
(state: any) => state?.associateExpHub?.allTeams,
(state: any) => state?.associateExpHub?.selectedTeamData,
(state: any) => state?.associateExpHub?.currentTeamContext,
- (allTeams: any, selectedTeam: any, teamContext: any) => {
+ (state: any) => state?.associateExpHub?.selectedTeamIDs,
+ (state: any) => state?.associateExpHub?.selectedTeamPreference,
+ (state: any) => state?.associateExpHub?.selectedShifts,
+ (state: any) => state?.associateExpHub?.savedSiteShifts,
+ (allTeams: any, selectedTeam: any, teamContext: any, selectedTeamIds: any, selectedTeamPreference: any, selectedShifts: any, savedSiteShifts: any) => {
return {
selectedTeams: allTeams || [],
currentTeam: selectedTeam || undefined,
teamContext: teamContext || undefined,
+ selectedTeamIds: selectedTeamIds || [],
+ selectedTeamPreference: selectedTeamPreference || '',
+ selectedShifts: selectedShifts || [],
+ savedSiteShifts: savedSiteShifts || [],
+ // Additional shift-related data for widgets
+ shiftData: {
+ selectedShifts: selectedShifts || [],
+ availableShifts: savedSiteShifts || [],
+ },
};
}
);
--- yarn.lock
@@ -6009,9 +6009,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4777+338560dd":
- version: 1.10.0-beta.4777
- resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4777::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4777.tgz"
+"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4778+f34e932b":
+ version: 1.10.0-beta.4778
+ resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4778::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4778.tgz"
peerDependencies:
"@react-navigation/native": 6.x
"@walmart/allspark-foundation": ">=6.27"
@@ -6021,7 +6021,7 @@ __metadata:
react: "*"
react-native: "*"
react-native-safe-area-context: 4.x
- checksum: 10c0/6a735e5a8edb5fd91f1ff32b87c91f0ef5a38e5bccfe9fcd7f191544d0a3cb00eddbf36dd7b667ea370076a238ac757a42da1c930aa926fe7b2292d20e2b484e
+ checksum: 10c0/f1f1a9124936932a4b5e508c3d0e5151a7dd7306663c6f03c4f6c22745825fd2a819bba63849777d8d15897e2a78c5b8eba28413fac986a78d298f9dfdeb1825
languageName: node
linkType: hard
@@ -6200,7 +6200,7 @@ __metadata:
"@types/redux-mock-store": "npm:^1.0.2"
"@walmart/allspark-authentication": "npm:6.4.1"
"@walmart/allspark-foundation": "npm:^6.32.0"
- "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4777+338560dd"
+ "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4778+f34e932b"
"@walmart/allspark-graphql-client": "npm:6.3.29"
"@walmart/allspark-http-client": "npm:6.3.29"
"@walmart/allspark-utils": "npm:6.5.1"
@@ -6213,13 +6213,13 @@ __metadata:
"@walmart/me-at-walmart-athena-queries": "npm:6.26.1"
"@walmart/me-at-walmart-common": "npm:6.29.0-alpha.0"
"@walmart/me-at-walmart-container": "npm:6.29.0-alpha.0"
- "@walmart/myteam-mini-app": "npm:3.0.2-alpha.3"
+ "@walmart/myteam-mini-app": "npm:3.0.2-alpha.4"
"@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.7"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
"@walmart/redux-store": "npm:6.3.29"
- "@walmart/roster-mini-app": "npm:3.2.0-alpha.4"
+ "@walmart/roster-mini-app": "npm:3.2.0-alpha.5"
"@walmart/wmconnect-mini-app": "npm:3.1.1-alpha.0"
babel-jest: "npm:^29.6.3"
eslint: "npm:8.56.0"
@@ -6438,9 +6438,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/myteam-mini-app@npm:3.0.2-alpha.3":
- version: 3.0.2-alpha.3
- resolution: "@walmart/myteam-mini-app@npm:3.0.2-alpha.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmyteam-mini-app%2F-%2F%40walmart%2Fmyteam-mini-app-3.0.2-alpha.3.tgz"
+"@walmart/myteam-mini-app@npm:3.0.2-alpha.4":
+ version: 3.0.2-alpha.4
+ resolution: "@walmart/myteam-mini-app@npm:3.0.2-alpha.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmyteam-mini-app%2F-%2F%40walmart%2Fmyteam-mini-app-3.0.2-alpha.4.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.32.0"
expo: ~52.0.46
@@ -6451,7 +6451,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/df3a409d4fb6bc970f4bd1ce7ff84c5072b5dbadac0e67583e651d865419bfc159ae5561da94c77351c44940f8149cae6c399fe4408eb60856bd2b2ab02760a5
+ checksum: 10c0/97a01d0675b9cf521c747877471daf6115d42aeeb11b0bba6dfc1e0aa935546f06d1af7dc52c866b5bbb7f3218afc14d5131fc6b2e76a6d418d163b0659429e1
languageName: node
linkType: hard
@@ -6507,9 +6507,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:3.2.0-alpha.4":
- version: 3.2.0-alpha.4
- resolution: "@walmart/roster-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%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.2.0-alpha.4.tgz"
+"@walmart/roster-mini-app@npm:3.2.0-alpha.5":
+ version: 3.2.0-alpha.5
+ resolution: "@walmart/roster-mini-app@npm:3.2.0-alpha.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.2.0-alpha.5.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.32.0"
expo: ~52.0.46
@@ -6520,7 +6520,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/3b520b565615ad8e235aa6aefb09dc38039fa96744a732268ffc980177b0cd9a71658fc115b1d12aa9afda9d751395831bd47a1abdf2778141ab54f46095c2af
+ checksum: 10c0/a5babbc48675ef107cd9a2edaefeed3f3acebeb1712830ff80c6c4352c7bd82eea50de2831ac3b46d854070da0f10a4f0cd6a72ee47de6ce6f495532dc683912
languageName: node
linkType: hard
| chore(ui): update roster and myteam mini app | chore(ui): update roster and myteam mini app
|
b377436bbe8629bb6ac287ec7669b96b6c8432a9 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.27",
+ "version": "2.0.28",
"private": false,
"main": "bundle/dist/index.js",
"files": [
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.27",
+ "version": "2.0.28",
"private": false,
"main": "bundle/dist/index.js",
"files": [
| Update package.json | Update package.json |
888dc5fa370cac119fcf839798c0c1ac6c9e745b | --- package.json
@@ -102,7 +102,7 @@
"@walmart/counts-component-miniapp": "0.1.11",
"@walmart/emergency-mini-app": "1.27.1",
"@walmart/exception-mini-app": "1.7.10",
- "@walmart/facilities-management-miniapp": "0.10.1-build-14",
+ "@walmart/facilities-management-miniapp": "0.11.1",
"@walmart/feedback-all-spark-miniapp": "0.9.60",
"@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "6.1.4",
--- yarn.lock
@@ -6022,9 +6022,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/facilities-management-miniapp@npm:0.10.1-build-14":
- version: 0.10.1-build-14
- resolution: "@walmart/facilities-management-miniapp@npm:0.10.1-build-14"
+"@walmart/facilities-management-miniapp@npm:0.11.1":
+ version: 0.11.1
+ resolution: "@walmart/facilities-management-miniapp@npm:0.11.1"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-camera-roll/camera-roll": 5.6.0
@@ -6052,7 +6052,7 @@ __metadata:
"@walmart/impersonation-mini-app": 1.20.8
"@walmart/moment-walmart": 1.0.4
"@walmart/react-native-encrypted-storage": 1.1.3
- "@walmart/react-native-scanner-3.0": ">=0.5.1"
+ "@walmart/react-native-scanner-3.0": ">=0.6.3"
"@walmart/react-native-shared-navigation": 1.0.2
"@walmart/react-native-sumo-sdk": ">=2.7.0"
"@walmart/redux-store": 3.5.0
@@ -6107,7 +6107,7 @@ __metadata:
uuid: ^3.3.2
wifi-store-locator: 1.4.1
xdate: ^0.8.2
- checksum: 10c0/e932cfc006c6ac99e3b64f3717fb20db74946318053fc70f01bb9d4bf7a17b914455f7495016b123492e831a5e1c4ad10334ac761015f282a516e09f0cc359be
+ checksum: 10c0/1b17af4cd13d44dc403cfd8fe3ab94a97b03aaabd8deb12aa8ba11b1376499e451f12faaec3b829183540090e869b7f0b60eb906d731e451482f731220f2abad
languageName: node
linkType: hard
@@ -7725,7 +7725,7 @@ __metadata:
"@walmart/counts-component-miniapp": "npm:0.1.11"
"@walmart/emergency-mini-app": "npm:1.27.1"
"@walmart/exception-mini-app": "npm:1.7.10"
- "@walmart/facilities-management-miniapp": "npm:0.10.1-build-14"
+ "@walmart/facilities-management-miniapp": "npm:0.11.1"
"@walmart/feedback-all-spark-miniapp": "npm:0.9.60"
"@walmart/financial-wellbeing-feature-app": "npm:1.23.2"
"@walmart/functional-components": "npm:6.1.4"
| Version bump | Version bump
|
cb58f08706d684f6316e3f3e11a8c13d1090a398 | --- package-lock.json
@@ -54,7 +54,7 @@
"@walmart/impersonation-mini-app": "1.4.0",
"@walmart/ims-print-services-ui": "1.2.0",
"@walmart/inbox-mini-app": "0.73.0",
- "@walmart/iteminfo-mini-app": "6.0.1",
+ "@walmart/iteminfo-mini-app": "5.3.1",
"@walmart/manager-approvals-miniapp": "0.1.2",
"@walmart/me-field-mini-app": "1.1.35",
"@walmart/metrics-mini-app": "0.9.33",
@@ -5206,73 +5206,70 @@
}
},
"node_modules/@walmart/iteminfo-mini-app": {
- "version": "6.0.1",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-6.0.1.tgz",
- "integrity": "sha512-wrAW+K8/Amo3YmLmCnTbFVUutWAkii4Neh23pKFwOKMWbQXqirmBneTAGr574r7qcuorFF+I8jZvvEB6Di3uyQ==",
+ "version": "5.3.1",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.1.tgz",
+ "integrity": "sha512-JaNP+yZdWCW9uw+oUZB3rJzctl8iyEEu/Wkpt9O5rv1ohj2IggTpldLV+HTKMUgDFG4/93ib+TNmBR4jDITHLg==",
"peerDependencies": {
"@react-native-community/async-storage": ">=1.12.1",
- "@react-native-community/masked-view": ">=0.1.10",
- "@react-native-community/netinfo": ">=5.9.6",
- "@react-native-community/picker": ">=1.8.1",
- "@react-native-community/toolbar-android": ">=0.2.0",
- "@react-native-firebase/analytics": ">=10.5.1",
- "@react-native-firebase/app": ">=10.5.0",
- "@react-native-firebase/crashlytics": ">=10.5.1",
- "@react-native-firebase/firestore": ">=10.5.1",
- "@react-native-firebase/perf": ">=10.5.1",
- "@react-navigation/bottom-tabs": ">=5.4.5",
- "@react-navigation/drawer": ">=5.8.4",
- "@react-navigation/native": ">=5.7.3",
- "@react-navigation/stack": ">=5.9.0",
- "@walmart/allspark-neon-core": ">=0.1.29",
+ "@react-native-community/netinfo": ">=9.3.6",
+ "@react-native-firebase/analytics": ">=15.1.1",
+ "@react-native-firebase/app": ">=15.1.1",
+ "@react-native-firebase/crashlytics": ">=15.1.1",
+ "@react-native-firebase/firestore": ">=15.1.1",
+ "@react-native-firebase/perf": ">=15.1.1",
+ "@react-native-picker/picker": ">=2.4.8",
+ "@react-navigation/bottom-tabs": ">=6.2.0",
+ "@react-navigation/drawer": ">=6.3.0",
+ "@react-navigation/native": ">=6.0.0",
+ "@react-navigation/stack": ">=6.1.0",
+ "@walmart/allspark-neon-core": ">=0.1.31",
"@walmart/ask-sam-mini-app": ">=0.30.27",
"@walmart/config-components": ">=1.0.8",
"@walmart/counts-component-miniapp": ">=0.0.21",
- "@walmart/functional-components": ">=1.0.27",
- "@walmart/gtp-shared-components": ">=1.8.9",
- "@walmart/ims-print-services-ui": ">=1.1.1",
+ "@walmart/functional-components": ">=2.0.6",
+ "@walmart/gtp-shared-components": ">=1.8.17",
+ "@walmart/ims-print-services-ui": ">=1.1.10",
"@walmart/price-changes-mini-app": ">=1.4.5",
- "@walmart/react-native-env": ">=0.1.0",
- "@walmart/react-native-logger": ">=1.17.0",
- "@walmart/react-native-scanner-3.0": ">=0.1.12",
- "@walmart/react-native-store-map": ">=0.3.5",
- "@walmart/redux-store": ">=1.0.15",
- "@walmart/ui-components": ">=1.4.0-rc.0",
- "dayjs": ">=1.8.29",
- "javascript-time-ago": ">=2.3.4",
+ "@walmart/react-native-env": ">=0.2.0",
+ "@walmart/react-native-logger": ">=1.29.0",
+ "@walmart/react-native-scanner-3.0": ">=0.1.26",
+ "@walmart/react-native-store-map": ">=0.3.7",
+ "@walmart/redux-store": ">=3.1.2",
+ "@walmart/ui-components": ">=1.6.0",
+ "dayjs": ">=1.11.5",
+ "javascript-time-ago": ">=2.5.7",
"lodash": ">=4.17.21",
- "react": ">=16.11.0",
- "react-native": ">=0.67.4",
+ "react": ">=18.2.0",
+ "react-native": ">=0.70.5",
"react-native-background-timer": ">=2.4.1",
"react-native-barcode-builder": ">=2.0.0",
- "react-native-device-info": ">=7.3.1",
- "react-native-gesture-handler": ">=1.6.1",
- "react-native-hyperlink": ">=0.0.19",
- "react-native-linear-gradient": ">=2.5.6",
- "react-native-modal": ">=11.6.1",
- "react-native-permissions": ">=3.0.0",
- "react-native-qrcode-svg": ">=6.0.6",
- "react-native-reanimated": ">=1.9.0",
- "react-native-safe-area-context": ">=1.0.2",
- "react-native-screens": ">=2.9.0",
+ "react-native-device-info": ">=10.3.0",
+ "react-native-gesture-handler": ">=2.8.0",
+ "react-native-hyperlink": ">=0.0.22",
+ "react-native-linear-gradient": ">=2.6.2",
+ "react-native-modal": ">=13.0.1",
+ "react-native-permissions": ">=3.6.1",
+ "react-native-qrcode-svg": ">=6.1.2",
+ "react-native-reanimated": ">=2.12.0",
+ "react-native-safe-area-context": ">=4.3.1",
+ "react-native-screens": ">=3.15.0",
"react-native-segmented-control-tab": ">=3.4.1",
- "react-native-sound-player": ">=0.10.9",
- "react-native-svg": ">=12.1.0",
- "react-native-table-component": ">=1.2.1",
- "react-native-vector-icons": ">=6.7.0",
- "react-native-webview": ">=11.22.7",
- "react-native-wm-barcode": ">=2.36.0-alpha",
- "react-native-wm-network": ">=0.1.0",
- "react-native-wm-telemetry": ">=0.2.0",
- "react-redux": ">=7.2.1",
- "redux": ">=4.0.5",
- "redux-saga": ">=1.1.3",
- "redux-thunk": ">=2.3.0",
+ "react-native-sound-player": ">=0.13.2",
+ "react-native-svg": ">=13.4.0",
+ "react-native-vector-icons": ">=9.2.0",
+ "react-native-view-shot": ">=3.4.0",
+ "react-native-webview": ">=11.23.1",
+ "react-native-wm-network": ">=0.2.0",
+ "react-native-wm-telemetry": ">=0.3.0",
+ "react-redux": ">=8.0.4",
+ "redux": ">=4.1.2",
+ "redux-saga": ">=1.2.0",
+ "redux-thunk": ">=2.4.0",
"reduxsauce": ">=1.2.0",
- "reselect": ">=4.0.0",
+ "reselect": ">=4.1.0",
"seamless-immutable": ">=7.1.4",
"uuid": ">=3.3.2",
- "victory-native": ">=35.0.1"
+ "victory-native": ">=36.5.0"
}
},
"node_modules/@walmart/manager-approvals-miniapp": {
@@ -24927,9 +24924,9 @@
}
},
"@walmart/iteminfo-mini-app": {
- "version": "6.0.1",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-6.0.1.tgz",
- "integrity": "sha512-wrAW+K8/Amo3YmLmCnTbFVUutWAkii4Neh23pKFwOKMWbQXqirmBneTAGr574r7qcuorFF+I8jZvvEB6Di3uyQ=="
+ "version": "5.3.1",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.1.tgz",
+ "integrity": "sha512-JaNP+yZdWCW9uw+oUZB3rJzctl8iyEEu/Wkpt9O5rv1ohj2IggTpldLV+HTKMUgDFG4/93ib+TNmBR4jDITHLg=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.1.2",
--- package.json
@@ -97,7 +97,7 @@
"@walmart/impersonation-mini-app": "1.4.0",
"@walmart/ims-print-services-ui": "1.2.0",
"@walmart/inbox-mini-app": "0.73.0",
- "@walmart/iteminfo-mini-app": "6.0.1",
+ "@walmart/iteminfo-mini-app": "5.3.1",
"@walmart/manager-approvals-miniapp": "0.1.2",
"@walmart/me-field-mini-app": "1.1.35",
"@walmart/metrics-mini-app": "0.9.33",
| fix: downgrade iteminfo mini app | fix: downgrade iteminfo mini app
|
965e01c6ede108f901b5640a54c9530b3b3101f8 | --- scripts/updateAndroidProjectConfig.sh
@@ -46,23 +46,29 @@ fi
## Find and replace package name ########
echo "Updating package name to ${PACKAGE} in ${APP_GRADLE}"
-sed -i.bak "s/${BETA_PACKAGE}|${PROD_PACKAGE}/${PACKAGE}/" ${APP_GRADLE} && rm ${APP_GRADLE}.bak
+# sed -i.bak "s/${BETA_PACKAGE}|${PROD_PACKAGE}/${PACKAGE}/" ${APP_GRADLE} && rm ${APP_GRADLE}.bak
+sed -i.bak -e "s/${BETA_PACKAGE}/${PACKAGE}/g" -e "s/${PROD_PACKAGE}/${PACKAGE}/g" ${APP_GRADLE} && rm ${APP_GRADLE}.bak
echo "Updating android scheme name to ${PACKAGE} in ${APP_MANIFEST}"
-sed -i.bak "s/scheme=\"${BETA_PACKAGE}\"|scheme=\"${PROD_PACKAGE}\"/scheme=\"${PACKAGE}\"/" ${APP_MANIFEST} && rm ${APP_MANIFEST}.bak
+# sed -i.bak "s/scheme=\"${BETA_PACKAGE}\"|scheme=\"${PROD_PACKAGE}\"/scheme=\"${PACKAGE}\"/" ${APP_MANIFEST} && rm ${APP_MANIFEST}.bak
+sed -i.bak -e "s/scheme=\"${BETA_PACKAGE}\"/scheme=\"${PACKAGE}\"/g" -e "s/scheme=\"${PROD_PACKAGE}\"/scheme=\"${PACKAGE}\"/g" ${APP_MANIFEST} && rm ${APP_MANIFEST}.bak
BUILD_CONFIG="${PACKAGE}.BuildConfig"
echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_APPLICATION}"
-sed -i.bak "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_APPLICATION} && rm ${MAIN_APPLICATION}.bak
+# sed -i.bak "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_APPLICATION} && rm ${MAIN_APPLICATION}.bak
+sed -i.bak -e "s/import ${BETA_BUILD_CONFIG};/import ${BUILD_CONFIG};/g" -e "s/import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/g" ${MAIN_APPLICATION} && rm ${MAIN_APPLICATION}.bak
echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_ACTIVITY}"
-sed -i.bak "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_ACTIVITY} && rm ${MAIN_ACTIVITY}.bak
+# sed -i.bak "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_ACTIVITY} && rm ${MAIN_ACTIVITY}.bak
+sed -i.bak -e "s/import ${BETA_BUILD_CONFIG};/import ${BUILD_CONFIG};/g" -e "s/import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/g" ${MAIN_ACTIVITY} && rm ${MAIN_ACTIVITY}.bak
echo "Updating CodePushDeploymentKey to ${CODE_PUSH_KEY} in ${STRINGS_XML}"
-sed -i.bak "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/" ${STRINGS_XML} && rm ${STRINGS_XML}.bak
+# sed -i.bak "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/" ${STRINGS_XML} && rm ${STRINGS_XML}.bak
+sed -i.bak -e "s/${DEV_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/g" -e "s/${BETA_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/g" -e "s/${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/g" ${STRINGS_XML} && rm ${STRINGS_XML}.bak
echo "Updating Manifest path in react-native.config.js to ${RN_CONFIG_MANIFEST_PATH} in ${RN_CONFIG_JS}"
-sed -i.bak "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/" ${RN_CONFIG_JS} && rm ${RN_CONFIG_JS}
+# sed -i.bak "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/" ${RN_CONFIG_JS} && rm ${RN_CONFIG_JS}
+sed -i.bak -e "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/g" -e "s/android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/g" ${RN_CONFIG_JS} && rm ${RN_CONFIG_JS}.bak
echo "Printing ${APP_MANIFEST}"
cat ${APP_MANIFEST}
\ No newline at end of file
| Updated sed command to test | Updated sed command to test
|
5a410aae47f9f131379f09def50ff316ae8ee07c | --- packages/allspark-foundation/src/Auth/AuthManager.ts
@@ -24,16 +24,16 @@ export type AuthManagerOptions = {
* ecosystem. It delegates actual authentication operations to an injected service
* implementation while handling state management through Redux.
*
- * **New Architecture**: Services are injected via constructor and cannot be changed
- * after instantiation, eliminating race conditions and timing issues.
- *
* @example
* // Basic usage with Redux and service injection:
* import { AuthManager } from '@allspark/foundation/Auth';
* import store from './store';
* import { MyAuthService } from './my-auth-service';
*
- * const authManager = new AuthManager(store.dispatch, new MyAuthService());
+ * const authManager = new AuthManager({
+ * dispatch: store.dispatch,
+ * service: new MyAuthService()
+ * });
*
* // Then use the manager for authentication operations
* const result = await authManager.signIn(authConfig);
--- packages/allspark-foundation/src/Auth/AuthModule.ts
@@ -8,11 +8,11 @@ import { authSlice, AuthState, IAuthAction } from './redux';
* AuthModule
* Singleton module for authentication capability in Allspark.
* Maintains an AuthManager instance created with an AuthServiceFacade and Redux dispatch.
- * Provides inject method for container-driven setup, setting the actual implementation on the facade.
+ * Provides injectService method for container-driven setup, setting the actual implementation on the facade.
*
* @example
* // Inject the real service
- * AuthModule.inject({service: myAuthService, redux: myReduxManager});
+ * AuthModule.injectService(myAuthService);
* // Access the manager
* const manager = AuthModule.manager;
*/
--- packages/allspark-foundation/src/Auth/AuthServiceFacade.ts
@@ -12,7 +12,7 @@ import { IAuthService, AuthConfiguration, AuthResult } from './types';
* - One-time warning system to help identify missing service binding
* - Automatic delegation to real service once bound via setService()
*
- * **Integration**: Updated by ServiceContainer when real service is registered.
+ * **Integration**: Updated by Container when real service is registered.
* All existing references automatically use the real service transparently.
*/
@@ -41,7 +41,7 @@ export class AuthServiceFacade implements ServiceFacade<IAuthService> {
if (!this._fallbackWarningShown) {
console.warn(
`AuthServiceFacade.${method}: No service bound yet, using fallback behavior. ` +
- 'This may indicate that the container has not been properly initialized.'
+ 'This may indicate that the container has not been properly initialized.'
);
this._fallbackWarningShown = true;
}
@@ -61,7 +61,7 @@ export class AuthServiceFacade implements ServiceFacade<IAuthService> {
this._showFallbackWarning('signIn');
throw new Error(
'AuthServiceFacade.signIn: No auth service implementation bound. ' +
- 'Please ensure the container is properly initialized with an auth service.'
+ 'Please ensure the container is properly initialized with an auth service.'
);
}
@@ -78,7 +78,7 @@ export class AuthServiceFacade implements ServiceFacade<IAuthService> {
this._showFallbackWarning('signOut');
throw new Error(
'AuthServiceFacade.signOut: No auth service implementation bound. ' +
- 'Please ensure the container is properly initialized with an auth service.'
+ 'Please ensure the container is properly initialized with an auth service.'
);
}
@@ -95,7 +95,7 @@ export class AuthServiceFacade implements ServiceFacade<IAuthService> {
this._showFallbackWarning('getUser');
throw new Error(
'AuthServiceFacade.getUser: No auth service implementation bound. ' +
- 'Please ensure the container is properly initialized with an auth service.'
+ 'Please ensure the container is properly initialized with an auth service.'
);
}
@@ -112,7 +112,7 @@ export class AuthServiceFacade implements ServiceFacade<IAuthService> {
this._showFallbackWarning('refreshToken');
throw new Error(
'AuthServiceFacade.refreshToken: No auth service implementation bound. ' +
- 'Please ensure the container is properly initialized with an auth service.'
+ 'Please ensure the container is properly initialized with an auth service.'
);
}
}
--- packages/allspark-foundation/src/Auth/deprecated.ts
@@ -6,7 +6,7 @@ import { IAuthManager } from './types';
* @deprecated Use `AuthModule.manager` instead.
*
* @deprecated All Auth interaction should be done through the `AuthModule`.
- * The legacy `AuthService` maps to the module's factory instance so maintaining that for legacy support.
+ * The legacy `AuthService` maps to the module's manager instance so maintaining that for legacy support.
*/
export const AuthService = AuthModule.manager;
| chore: update auth comments | chore: update auth comments
|
d0d192748147d8b7916af6bc6fc2bd4436026c91 | --- src/components/ActionButton/index.tsx
@@ -1,11 +1,5 @@
-import React, {createElement, ReactNode} from 'react';
-import {
- StyleProp,
- StyleSheet,
- TouchableOpacity,
- TouchableOpacityProps,
- ViewStyle,
-} from 'react-native';
+import React, {createElement} from 'react';
+import {TouchableOpacity} from 'react-native';
import Animated, {
interpolateColor,
useAnimatedStyle,
@@ -13,27 +7,15 @@ import Animated, {
withTiming,
} from 'react-native-reanimated';
import {colors, Icons, Spinner} from '@walmart/gtp-shared-components';
+import {styles} from './style';
+import {ActionButtonProps} from './types';
-const styles = StyleSheet.create({
- button: {
- height: 30,
- width: 30,
- borderRadius: 40,
- backgroundColor: colors.blue[100],
- justifyContent: 'center',
- alignItems: 'center',
- },
-});
-
-export const ActionButton = (
- props: {
- loading?: boolean;
- icon: keyof typeof Icons | ReactNode;
- style?: StyleProp<ViewStyle>;
- } & TouchableOpacityProps,
-) => {
- const {icon, loading, disabled, ...buttonProps} = props;
-
+export const ActionButton = ({
+ icon,
+ loading,
+ disabled,
+ ...buttonProps
+}: ActionButtonProps) => {
const disabledProgress = useDerivedValue(() => {
return withTiming(disabled ? 0 : 1, {duration: 150});
}, [disabled]);
--- src/components/ActionButton/style.ts
@@ -0,0 +1,13 @@
+import {StyleSheet} from 'react-native';
+import {colors} from '@walmart/gtp-shared-components';
+
+export const styles = StyleSheet.create({
+ button: {
+ height: 30,
+ width: 30,
+ borderRadius: 40,
+ backgroundColor: colors.blue[100],
+ justifyContent: 'center',
+ alignItems: 'center',
+ },
+});
--- src/components/ActionButton/types.ts
@@ -0,0 +1,9 @@
+import {ReactNode} from 'react';
+import {StyleProp, TouchableOpacityProps, ViewStyle} from 'react-native';
+import {Icons} from '@walmart/gtp-shared-components';
+
+export type ActionButtonProps = {
+ loading?: boolean;
+ icon: keyof typeof Icons | ReactNode;
+ style?: StyleProp<ViewStyle>;
+} & TouchableOpacityProps;
--- src/containers/ChatInput/MeteringVisualization.tsx
@@ -20,6 +20,7 @@ const styles = StyleSheet.create({
},
});
+//TODO: Should these values be configured from CCM?
// "Supposedly"
// Min (quietest): -160
// Max (loudest): 0
@@ -63,7 +64,6 @@ export const MeteringAnimation = (props: {
return (
<ScrollView
horizontal
- // @ts-ignore
ref={scrollViewRef}
scrollEnabled={false}
style={[styles.meterScrollView, style]}
--- src/components/ActionButton/index.tsx
@@ -1,11 +1,5 @@
-import React, {createElement, ReactNode} from 'react';
-import {
- StyleProp,
- StyleSheet,
- TouchableOpacity,
- TouchableOpacityProps,
- ViewStyle,
-} from 'react-native';
+import React, {createElement} from 'react';
+import {TouchableOpacity} from 'react-native';
import Animated, {
interpolateColor,
useAnimatedStyle,
@@ -13,27 +7,15 @@ import Animated, {
withTiming,
} from 'react-native-reanimated';
import {colors, Icons, Spinner} from '@walmart/gtp-shared-components';
+import {styles} from './style';
+import {ActionButtonProps} from './types';
-const styles = StyleSheet.create({
- button: {
- height: 30,
- width: 30,
- borderRadius: 40,
- backgroundColor: colors.blue[100],
- justifyContent: 'center',
- alignItems: 'center',
- },
-});
-
-export const ActionButton = (
- props: {
- loading?: boolean;
- icon: keyof typeof Icons | ReactNode;
- style?: StyleProp<ViewStyle>;
- } & TouchableOpacityProps,
-) => {
- const {icon, loading, disabled, ...buttonProps} = props;
-
+export const ActionButton = ({
+ icon,
+ loading,
+ disabled,
+ ...buttonProps
+}: ActionButtonProps) => {
const disabledProgress = useDerivedValue(() => {
return withTiming(disabled ? 0 : 1, {duration: 150});
}, [disabled]);
--- src/components/ActionButton/style.ts
@@ -0,0 +1,13 @@
+import {StyleSheet} from 'react-native';
+import {colors} from '@walmart/gtp-shared-components';
+
+export const styles = StyleSheet.create({
+ button: {
+ height: 30,
+ width: 30,
+ borderRadius: 40,
+ backgroundColor: colors.blue[100],
+ justifyContent: 'center',
+ alignItems: 'center',
+ },
+});
--- src/components/ActionButton/types.ts
@@ -0,0 +1,9 @@
+import {ReactNode} from 'react';
+import {StyleProp, TouchableOpacityProps, ViewStyle} from 'react-native';
+import {Icons} from '@walmart/gtp-shared-components';
+
+export type ActionButtonProps = {
+ loading?: boolean;
+ icon: keyof typeof Icons | ReactNode;
+ style?: StyleProp<ViewStyle>;
+} & TouchableOpacityProps;
--- src/containers/ChatInput/MeteringVisualization.tsx
@@ -20,6 +20,7 @@ const styles = StyleSheet.create({
},
});
+//TODO: Should these values be configured from CCM?
// "Supposedly"
// Min (quietest): -160
// Max (loudest): 0
@@ -63,7 +64,6 @@ export const MeteringAnimation = (props: {
return (
<ScrollView
horizontal
- // @ts-ignore
ref={scrollViewRef}
scrollEnabled={false}
style={[styles.meterScrollView, style]}
| refactors | refactors
|
780dbbcd7e627504a78b914007f2a1ba6b8ab107 | --- targets/US/package.json
@@ -143,7 +143,7 @@
"@walmart/roster-mini-app": "2.8.2",
"@walmart/schedule-mini-app": "0.118.0",
"@walmart/shelfavailability-mini-app": "1.5.33",
- "@walmart/sidekick-mini-app": "4.83.0",
+ "@walmart/sidekick-mini-app": "4.83.3",
"@walmart/store-feature-orders": "1.26.12",
"@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch",
"@walmart/time-clock-mini-app": "2.400.0",
--- yarn.lock
@@ -7103,7 +7103,7 @@ __metadata:
"@walmart/roster-mini-app": "npm:2.8.2"
"@walmart/schedule-mini-app": "npm:0.118.0"
"@walmart/shelfavailability-mini-app": "npm:1.5.33"
- "@walmart/sidekick-mini-app": "npm:4.83.0"
+ "@walmart/sidekick-mini-app": "npm:4.83.3"
"@walmart/store-feature-orders": "npm:1.26.12"
"@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch"
"@walmart/time-clock-mini-app": "npm:2.400.0"
@@ -7974,9 +7974,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/sidekick-mini-app@npm:4.83.0":
- version: 4.83.0
- resolution: "@walmart/sidekick-mini-app@npm:4.83.0"
+"@walmart/sidekick-mini-app@npm:4.83.3":
+ version: 4.83.3
+ resolution: "@walmart/sidekick-mini-app@npm:4.83.3"
peerDependencies:
"@apollo/client": "*"
"@react-navigation/native": ^6.0.0
@@ -7989,7 +7989,7 @@ __metadata:
expo-linear-gradient: ~12.3.0
react: ^18.2.0
react-native: ^0.73.7
- checksum: 10c0/99c6c87d9d1ca7d5a98e90e759859b789b559b9a1f4f4e76b4ff550025b3426e75173c21e6496136b823985c7ad3b93012ced39f93aad140e699ca98ef518180
+ checksum: 10c0/a935e6587645324e804b9e5fba6443ca4f72ef0f52e9c722285f3237034b966cb090f30326f1d4f1a5f8c84aed0cfd02a6709d6ddc1a3bf8aaa638ddd80c1fae
languageName: node
linkType: hard
| chore: bump sidekick@4.83.3 | chore: bump sidekick@4.83.3
|
e7ca25a02b978b1a6d3b0d89dc09eadc6dc95fa9 | --- .looper.multibranch.yml
@@ -608,15 +608,15 @@ branches:
flows:
native-ios:
- - exposeVars(${market}-market)
+ - exposeVars("${market}-market")
- node(label=${NODES}):
- call: build-ios(ios)
native-android:
- - exposeVars(${market}-market)
+ - exposeVars("${market}-market")
- call: build-android(android)
native-both:
- - exposeVars(${market}-market)
+ - exposeVars("${market}-market")
- node(label=${NODES}):
- call: initialize
- call: metadata
| Update .looper.multibranch.yml | Update .looper.multibranch.yml |
79601621d589924f5610f96c34db2cda8e1080bb | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.12.11",
+ "version": "2.12.12",
"main": "dist/index.js",
"files": [
"dist"
--- yarn.lock
@@ -5870,8 +5870,8 @@ __metadata:
linkType: hard
"@walmart/allspark-foundation-hub@npm:latest":
- version: 1.0.1-beta.10
- resolution: "@walmart/allspark-foundation-hub@npm:1.0.1-beta.10"
+ version: 1.0.1-beta.11
+ resolution: "@walmart/allspark-foundation-hub@npm:1.0.1-beta.11"
dependencies:
"@apollo/client": "npm:^3.8.6"
"@graphql-codegen/cli": "npm:^5.0.0"
@@ -5967,7 +5967,7 @@ __metadata:
allspark-generate-graphql: cli/generate.js
allspark-link: cli/link.js
allspark-setup: cli/setup.js
- checksum: 10c0/d5f77f09b426cd9ca40b6a1e17b238427fc0992f05a9d97e55a9c825ec0900c37784ef511f030bda6f5ab3eef08086be5046a75d4f31492140d1d03f4c6dbbe5
+ checksum: 10c0/f19f3afccb7353aa81c943ced04ab5b3221e0afdd1e107501cbbc819b1747217dea64b8fc2ef6095e1c968a668c97247ac586024b5b89628448082bbd4589f35
languageName: node
linkType: hard
| Update the roster imports | Update the roster imports
|
21eba2d4755ba7e1fd59ccf96fa6f4f230bab612 | --- android/app/build.gradle
@@ -158,8 +158,8 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 906
- versionName "1.9.10"
+ versionCode 907
+ versionName "1.10.0"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
if (isNewArchitectureEnabled()) {
// We configure the CMake build only if you decide to opt-in for the New Architecture.
--- ios/AllSpark/Info.plist
@@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.9.10</string>
+ <string>1.10.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>906</string>
+ <string>907</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
--- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "allspark-main",
- "version": "1.9.10",
+ "version": "1.10.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "allspark-main",
- "version": "1.9.10",
+ "version": "1.10.0",
"hasInstallScript": true,
"dependencies": {
"@react-native-community/art": "^1.2.0",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "allspark-main",
- "version": "1.9.10",
+ "version": "1.10.0",
"private": true,
"scripts": {
"android": "react-native run-android",
| version bump to 1.10.0 | version bump to 1.10.0
|
8dc1155f38690e92d92841a537c5338cc20bf3e0 | --- targets/US/package.json
@@ -146,7 +146,7 @@
"@walmart/shelfavailability-mini-app": "1.5.33",
"@walmart/sidekick-mini-app": "4.80.1",
"@walmart/store-feature-orders": "1.26.12",
- "@walmart/taskit-mini-app": "4.17.12-1121-decec7b",
+ "@walmart/taskit-mini-app": "4.17.13",
"@walmart/time-clock-mini-app": "2.400.0",
"@walmart/topstock-mini-app": "1.15.20",
"@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch",
--- yarn.lock
@@ -7124,7 +7124,7 @@ __metadata:
"@walmart/shelfavailability-mini-app": "npm:1.5.33"
"@walmart/sidekick-mini-app": "npm:4.80.1"
"@walmart/store-feature-orders": "npm:1.26.12"
- "@walmart/taskit-mini-app": "npm:4.17.12-1121-decec7b"
+ "@walmart/taskit-mini-app": "npm:4.17.13"
"@walmart/time-clock-mini-app": "npm:2.400.0"
"@walmart/topstock-mini-app": "npm:1.15.20"
"@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch"
@@ -8030,12 +8030,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/taskit-mini-app@npm:4.17.12-1121-decec7b":
- version: 4.17.12-1121-decec7b
- resolution: "@walmart/taskit-mini-app@npm:4.17.12-1121-decec7b"
+"@walmart/taskit-mini-app@npm:4.17.13":
+ version: 4.17.13
+ resolution: "@walmart/taskit-mini-app@npm:4.17.13"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/8bbc474c844ff63b1bc98b3e28a3c842c4d3bf66265e192bbd0a3f5a16d36ec3441196e4a1a4f2c147249dddb034462db37f63d754486288b11cf29b74f69b2c
+ checksum: 10c0/75c19e9214c3a3fbb7b3a9d122372a3cf143aaba6dde8e8378b63f5f9918cfda855dbc16f98d995cca708b70e6504ca64643436a8d546a906a3fdd7ab8d0d1d4
languageName: node
linkType: hard
| chore: bump taskit version | chore: bump taskit version
|
a3022af5261d9b9be82d69dd77a6182487a613bb | --- ios/Podfile.lock
@@ -166,6 +166,8 @@ PODS:
- nanopb/encode (= 2.30908.0)
- nanopb/decode (2.30908.0)
- nanopb/encode (2.30908.0)
+ - Permission-Camera (3.0.0):
+ - RNPermissions
- Permission-LocationWhenInUse (3.0.0):
- RNPermissions
- Permission-Notifications (3.0.0):
@@ -583,6 +585,7 @@ DEPENDENCIES:
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
- FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
+ - Permission-Camera (from `../node_modules/react-native-permissions/ios/Camera`)
- Permission-LocationWhenInUse (from `../node_modules/react-native-permissions/ios/LocationWhenInUse`)
- Permission-Notifications (from `../node_modules/react-native-permissions/ios/Notifications`)
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
@@ -711,6 +714,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/React/FBReactNativeSpec"
glog:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
+ Permission-Camera:
+ :path: "../node_modules/react-native-permissions/ios/Camera"
Permission-LocationWhenInUse:
:path: "../node_modules/react-native-permissions/ios/LocationWhenInUse"
Permission-Notifications:
@@ -891,6 +896,7 @@ SPEC CHECKSUMS:
leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729
libwebp: e90b9c01d99205d03b6bb8f2c8c415e5a4ef66f0
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
+ Permission-Camera: 358081c7b8210849958af181ce9ddeb11932aa82
Permission-LocationWhenInUse: e09ae67e8db2b1eeefb35f18ca59848d0785de5b
Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef
PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
| pod update | pod update
|
cbb047b4b8cea963e45f8b17291c18f1ad40cd76 | --- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.4.0-alpha.21](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.20...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.21) (2025-09-09)
+
+### Features
+
+- **ui:** initial selection of primary team ([2b71b57](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/2b71b57860642983ef3e73daf9ff2068bd7d0061))
+
# [1.4.0-alpha.20](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.19...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.20) (2025-09-04)
### 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.20",
+ "version": "1.4.0-alpha.21",
"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.21
|
49864df2b2bc5feb14fd79dfc7c1c59bfaa53f35 | --- __tests__/__mocks__/@walmart/my-walmart-hub.js
@@ -0,0 +1,5 @@
+
+module.exports = {
+ ...jest.mock("@walmart/my-walmart-hub"),
+ TOTAL_STORE_TEAM_ID: "9999999", // Updated to canonical value, supports legacy 'total' for backward compatibility
+};
| feat(ui): added mock | feat(ui): added mock
|
e8e6391964c8f5a6f8ddeb281458b89f3b509f84 | --- __tests__/screens/SearchScreen/SearchScreenTest.tsx
@@ -116,14 +116,12 @@ describe('SearchScreen', () => {
expect(flashListComponent.props.data.length).toEqual(0);
});
- it('should show recent search history if recent search exists', () => {
- jest
- .spyOn(React, 'useState')
- .mockReturnValueOnce([[], jest.fn()])
- .mockReturnValueOnce([['Walton'], jest.fn()]);
+ it('should show recent search history if recent search exists', async () => {
+ const mockGetDailyRosterQuery =
+ createMockDailyRosterResponse(hourlyUserData);
AsyncStorage.getItem.mockResolvedValueOnce(
- JSON.stringify('texting-_recent_search_history'),
+ JSON.stringify(["John Doe"]),
);
const searchScreen = renderWithProviders(
@@ -131,9 +129,13 @@ describe('SearchScreen', () => {
navigation={mockNavigation}
route={mockRouteWithEmptyInput}
/>,
+ {
+ mockQueries: [mockGetDailyRosterQuery],
+ },
);
+ await finishPendingRequests();
- const recentSearchHistoryComponent = searchScreen.getByTestId(
+ const recentSearchHistoryComponent = await searchScreen.getByTestId(
'recentSearchHistory',
);
@@ -141,35 +143,29 @@ describe('SearchScreen', () => {
const recentHistoryElementData = recentHistoryElement.data;
expect(recentHistoryElement).toBeDefined();
- expect(recentHistoryElementData).toEqual(['Walton']);
+ expect(recentHistoryElementData).toEqual(['John Doe']);
});
- it('should not show recent search history if there are no recent searches', () => {
- jest
- .spyOn(React, 'useState')
- .mockReturnValueOnce([[], jest.fn()])
- .mockReturnValueOnce([[''], jest.fn()]);
-
+ it('should not show recent search history if there are no recent searches', async () => {
+ const mockGetDailyRosterQuery =
+ createMockDailyRosterResponse(hourlyUserData);
AsyncStorage.getItem.mockResolvedValueOnce(
- JSON.stringify('texting-_recent_search_history'),
+ JSON.stringify([]),
);
-
const searchScreen = renderWithProviders(
<SearchScreen
navigation={mockNavigation}
route={mockRouteWithEmptyInput}
/>,
+ {
+ mockQueries: [mockGetDailyRosterQuery],
+ },
);
-
- const recentSearchHistoryComponent = searchScreen.getByTestId(
+ await finishPendingRequests();
+ const recentSearchHistoryComponent = await searchScreen.queryByTestId(
'recentSearchHistory',
);
-
- const recentHistoryElement = recentSearchHistoryComponent.props;
- const recentHistoryElementData = recentHistoryElement.data;
-
- expect(recentHistoryElement).toBeDefined();
- expect(recentHistoryElementData).toEqual(['']);
+ expect(recentSearchHistoryComponent).toEqual(null);
});
it('should call action and should have Message text', async () => {
@@ -226,20 +222,25 @@ describe('SearchScreen', () => {
expect(associateListItem.toJSON()).toBe(null);
});
- it('should call associateRemoveHandler', () => {
- jest
- .spyOn(React, 'useState')
- .mockReturnValueOnce([[], jest.fn()])
- .mockReturnValueOnce([['Walton'], jest.fn()]);
+ it('should call associateRemoveHandler', async () => {
+ const mockGetDailyRosterQuery =
+ createMockDailyRosterResponse(hourlyUserData);
+
+ AsyncStorage.getItem.mockResolvedValueOnce(
+ JSON.stringify(["John Doe"]),
+ );
const searchScreen = renderWithProviders(
<SearchScreen
navigation={mockNavigation}
route={mockRouteWithEmptyInput}
/>,
+ {
+ mockQueries: [mockGetDailyRosterQuery],
+ },
);
-
- const recentSearchHistoryComponent = searchScreen.getByTestId(
+ await finishPendingRequests();
+ const recentSearchHistoryComponent = await searchScreen.getByTestId(
'recentSearchHistory',
);
const mocktssociateRemoveHandler = jest.fn();
@@ -260,10 +261,12 @@ describe('SearchScreen', () => {
});
it('should test getRecentSearchHistoryData catch block', async () => {
- jest
- .spyOn(React, 'useState')
- .mockReturnValueOnce([[], jest.fn()])
- .mockReturnValueOnce([['ali', 'sam'], jest.fn()]);
+ const mockGetDailyRosterQuery =
+ createMockDailyRosterResponse(hourlyUserData);
+
+ AsyncStorage.getItem.mockResolvedValueOnce(
+ JSON.stringify(["John Doe"]),
+ );
const mockLogger = jest.fn();
jest.spyOn(logger, 'error').mockImplementation(mockLogger);
const message = 'Error message';
@@ -273,7 +276,11 @@ describe('SearchScreen', () => {
navigation={mockNavigation}
route={mockRouteWithEmptyInput}
/>,
+ {
+ mockQueries: [mockGetDailyRosterQuery],
+ },
);
+ await finishPendingRequests();
await act(async () => {
const recentSearchHistoryComponent = searchScreen.getByTestId(
'recentSearchHistory',
| fixing more tests | fixing more tests
|
c4a18f30a7251628f3ff81fb3a5842c9725e9441 | --- packages/me-at-walmart-container/src/services/telemetry.ts
@@ -46,7 +46,7 @@ export class TelemetryClient {
`AllsparkTelemetry: event cannot exceed length of ${MAX_EVENT_LENGTH}. Event: ${fullEvent}`,
);
} else {
- fullEvent = event.slice(0, MAX_EVENT_LENGTH);
+ fullEvent = fullEvent.slice(0, MAX_EVENT_LENGTH);
}
}
| fix: update event to count for 40 chars | fix: update event to count for 40 chars
|
aab1748b0aaf3d12682a892186f3f0e321ec9be7 | --- targets/US/package.json
@@ -84,7 +84,7 @@
"@walmart/allspark-utils": "6.5.0",
"@walmart/amp-mini-app": "1.1.89",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.24.7",
+ "@walmart/ask-sam-mini-app": "1.27.4",
"@walmart/associate-listening-mini-app": "1.2.7",
"@walmart/attendance-mini-app": "3.44.0",
"@walmart/avp-feature-app": "0.10.7",
--- yarn.lock
@@ -5893,12 +5893,11 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/ask-sam-mini-app@npm:1.24.7":
- version: 1.24.7
- resolution: "@walmart/ask-sam-mini-app@npm:1.24.7"
+"@walmart/ask-sam-mini-app@npm:1.27.4":
+ version: 1.27.4
+ resolution: "@walmart/ask-sam-mini-app@npm:1.27.4"
dependencies:
apisauce: "npm:^1.1.2"
- axios-cache-adapter: "npm:>=2.7.3"
numeral: "npm:^2.0.6"
reduxsauce: "npm:^1.2.0"
peerDependencies:
@@ -5942,7 +5941,7 @@ __metadata:
react-native-wm-voice-text: ">=0.3"
reselect: ">=4"
victory-native: ">=36.5"
- checksum: 10c0/1c985416ec8b4414507dc3b4a29e3bf2c0ec2abe6845971fe5eee7a521160dba64731f14ff60059b0d2ae0c6d19c6109d100930d2c79caf725683a251ab52869
+ checksum: 10c0/ad6baa639ddbd8b2fe02260f5f45b62854fbe0f0fb654322eee288a6e15cd4ccc9a25d03363a994738159b02ce608e7652664d7048773aeeac090e71019e364a
languageName: node
linkType: hard
@@ -7000,7 +6999,7 @@ __metadata:
"@walmart/allspark-utils": "npm:6.5.0"
"@walmart/amp-mini-app": "npm:1.1.89"
"@walmart/ask-sam-chat-components": "npm:^0.2.7"
- "@walmart/ask-sam-mini-app": "npm:1.24.7"
+ "@walmart/ask-sam-mini-app": "npm:1.27.4"
"@walmart/associate-listening-mini-app": "npm:1.2.7"
"@walmart/attendance-mini-app": "npm:3.44.0"
"@walmart/avp-feature-app": "npm:0.10.7"
| feature ask sam branch drop27 version | feature ask sam branch drop27 version
|
9047920dd4b611c8ed5395319b2bceea8c3b5446 | --- .looper.yml
@@ -65,6 +65,7 @@ flows:
- (name Yarn Set Version) yarn set version 4.6.0
- (name Yarn Version) yarn --version
- (name Install Dependencies) yarn install
+ - (name Commit Lockfile Changes) ./scripts/commit-lockfile-changes.sh
buildPackages:
- (name Build Packages) yarn run build
--- .yarnrc.yml
@@ -1,3 +1,5 @@
+enableImmutableInstalls: false
+
nodeLinker: node-modules
npmRegistryServer: '${REPOSOLNS_NPM_REPO}'
--- scripts/commit-lockfile-changes.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+# Script to commit lockfile changes if they exist
+
+if ! git diff --quiet yarn.lock .yarnrc.yml; then
+ echo "Lockfile changes detected, committing..."
+ git config user.email "svc-looper@walmart.com"
+ git config user.name "svc-looper"
+ git add yarn.lock .yarnrc.yml
+ git commit -m "chore: update lockfile from CI [skip ci]"
+ echo "Lockfile changes committed"
+else
+ echo "No lockfile changes detected"
+fi
| fix: re-add lockfile commit workaround for persistent ci drift | fix: re-add lockfile commit workaround for persistent ci drift
|
3491d4e7c46da2b7712296a9fbff770b3ee36e7c | --- scripts/mini-app-scan/package-deprecation/scheduled-library-deprecation.json
@@ -2,49 +2,49 @@
{
"legacyLibrary": "@walmart/core-services",
"replacement": "@walmart/allspark-foundation",
- "enforcementDate": "2025-09-15",
+ "enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development."
},
{
"legacyLibrary": "@walmart/core-utils",
"replacement": "@walmart/allspark-utils",
- "enforcementDate": "2025-09-15",
+ "enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development."
},
{
"legacyLibrary": "@walmart/react-native-env",
"replacement": "@walmart/allspark-foundation/Environment",
- "enforcementDate": "2025-09-15",
+ "enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development."
},
{
"legacyLibrary": "@walmart/react-native-shared-navigation",
"replacement": "@walmart/allspark-foundation/Navigation",
- "enforcementDate": "2025-09-15",
+ "enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development."
},
{
"legacyLibrary": "@walmart/react-native-wm-network",
"replacement": "@walmart/allspark-foundation/Network",
- "enforcementDate": "2025-09-15",
+ "enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development."
},
{
"legacyLibrary": "@walmart/react-native-wm-notification",
"replacement": "@walmart/allspark-foundation/Notification",
- "enforcementDate": "2025-09-15",
+ "enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development."
},
{
"legacyLibrary": "@walmart/redux-store",
"replacement": "@walmart/allspark-foundation/Redux",
- "enforcementDate": "2025-09-15",
+ "enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development."
},
{
"legacyLibrary": "@walmart/functional-components",
"replacement": "@walmart/allspark-foundation/HTTP",
- "enforcementDate": "2025-09-15",
+ "enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development."
}
]
| fix(drop33): enforcement date change | fix(drop33): enforcement date change
|
617dc0b0d0c6d85a87d8e56596a9d8738eaf5892 | --- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/EditSavedTeamSection.tsx
@@ -72,6 +72,13 @@ export const EditSavedTeamSection: React.FC<EditSavedTeamSectionProps> = ({
toggleSelection={() => handleSelection(item.teamId)}
/>
)}
+ ListEmptyComponent={
+ <View style={styles.emptyStateContainer}>
+ <Body UNSAFE_style={styles.emptyStateText}>
+ {t('editSavedTeamsModal.noTeamsFound')}
+ </Body>
+ </View>
+ }
ListFooterComponent={<View style={styles.footerContainer} />}
/>
)}
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/styles.ts
@@ -28,6 +28,16 @@ export const editSavedTeamModalStyles = StyleSheet.create({
paddingHorizontal: 16,
paddingTop: 16,
},
+ emptyStateContainer: {
+ flex: 1,
+ alignItems: 'center',
+ justifyContent: 'center',
+ padding: 24,
+ },
+ emptyStateText: {
+ textAlign: 'center',
+ color: '#757575',
+ },
});
export const modalStyles = StyleSheet.create({
--- packages/allspark-foundation-hub/src/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx
@@ -68,11 +68,6 @@ export const OnboardingScreen = () => {
);
const showUpsertAlertBanner = isTeamPreferenceError || isShiftUpsertError;
const scrollViewRef = useRef<ScrollView>(null);
- useEffect(() => {
- if (!sections.length) {
- setSearchedsections(allSiteTeamsSections);
- }
- }, [sections, allSiteTeamsSections]);
const showHubHeader = useSelector(scHubHeaderEnabled);
const division = useSelector(SiteSelectors.getWorkingSiteDivision);
@@ -81,10 +76,10 @@ export const OnboardingScreen = () => {
const handleSearchInput = useCallback(
(input: string) => {
const searched = filterTeamsBySearchInput(allSiteTeamsSections, input);
- if (searched) {
- setSearchedsections(searched);
- } else {
+ if (input === '') {
setSearchedsections(allSiteTeamsSections);
+ } else {
+ setSearchedsections(searched);
}
},
[allSiteTeamsSections]
@@ -103,6 +98,7 @@ export const OnboardingScreen = () => {
},
[selectedTeams, setSelectedTeams]
);
+
const handleSelectShift = useCallback(
(item: string) => {
const shiftIsSelected = Boolean(
@@ -210,6 +206,7 @@ export const OnboardingScreen = () => {
);
}
+ // Hello this is a new changeasdf
return (
<>
<ScrollView
--- packages/allspark-foundation-hub/src/SupplyChain/translation.ts
@@ -22,6 +22,7 @@ export const enUS = {
editSavedTeamsModal: {
title: 'Edit my saved teams',
subTitle: "Tap the star to save teams you're interested in.",
+ noTeamsFound: 'No teams found',
},
footerButtons: {
saveButton: 'Save',
@@ -132,6 +133,7 @@ export const esMX: typeof enUS = {
editSavedTeamsModal: {
title: 'Editar mis equipos guardados',
subTitle: 'Toca la estrella para guardar los equipos que te interesan.',
+ noTeamsFound: 'No se encontraron equipos',
},
footerButtons: {
saveButton: 'Salvar',
| fix(bug): add no teams found search result state | fix(bug): add no teams found search result state
|
ecb9e2216874fe97ac7f44475f84262f0ba19c7f | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.1.6",
+ "version": "1.1.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/myteam-mini-app",
- "version": "1.1.6",
+ "version": "1.1.7",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.20.0",
@@ -66,9 +66,9 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
- "@walmart/roster-mini-app": "1.1.6",
+ "@walmart/roster-mini-app": "1.1.7",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "1.1.5",
+ "@walmart/wmconnect-mini-app": "1.1.6",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
@@ -11818,9 +11818,9 @@
}
},
"node_modules/@walmart/roster-mini-app": {
- "version": "1.1.6",
- "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.1.6.tgz",
- "integrity": "sha512-Eq6SuPYcGEQVav2nilmZCMA1T/+0S2GfdgzoSlCGB638HsLYljonsXcVXUkeh3i8rshljV9Q5qwVJDgy3o28Sg==",
+ "version": "1.1.7",
+ "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.1.7.tgz",
+ "integrity": "sha512-OSNWWHo8vuDM9Iux/pMcdMcMVG+VHhE1fP38wRpwIYbqkwBl0mGsa2Qyn8MiQPLcqGpGOhyp8Hs8a55CThw2dA==",
"dev": true,
"hasInstallScript": true
},
@@ -11847,9 +11847,9 @@
}
},
"node_modules/@walmart/wmconnect-mini-app": {
- "version": "1.1.5",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.1.5.tgz",
- "integrity": "sha512-xfDsIC9jYhQLMkuTSIPZfwijcYok88Blp2y+gIBMNCWVqytKErEKxD4nMexDjlCYxcu1g72xYGKvhPQdWsZpog==",
+ "version": "1.1.6",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.1.6.tgz",
+ "integrity": "sha512-sBIJdwgroQvgXxFfeZDWPj/RBc72Ps5As/w14/s3oqH8K1ZV7WaeI4WtKBWoTpWATTKI/y5l3a2KAISRoJUGFA==",
"dev": true,
"hasInstallScript": true
},
@@ -40909,9 +40909,9 @@
}
},
"@walmart/roster-mini-app": {
- "version": "1.1.6",
- "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.1.6.tgz",
- "integrity": "sha512-Eq6SuPYcGEQVav2nilmZCMA1T/+0S2GfdgzoSlCGB638HsLYljonsXcVXUkeh3i8rshljV9Q5qwVJDgy3o28Sg==",
+ "version": "1.1.7",
+ "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.1.7.tgz",
+ "integrity": "sha512-OSNWWHo8vuDM9Iux/pMcdMcMVG+VHhE1fP38wRpwIYbqkwBl0mGsa2Qyn8MiQPLcqGpGOhyp8Hs8a55CThw2dA==",
"dev": true
},
"@walmart/ui-components": {
@@ -40926,9 +40926,9 @@
}
},
"@walmart/wmconnect-mini-app": {
- "version": "1.1.5",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.1.5.tgz",
- "integrity": "sha512-xfDsIC9jYhQLMkuTSIPZfwijcYok88Blp2y+gIBMNCWVqytKErEKxD4nMexDjlCYxcu1g72xYGKvhPQdWsZpog==",
+ "version": "1.1.6",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.1.6.tgz",
+ "integrity": "sha512-sBIJdwgroQvgXxFfeZDWPj/RBc72Ps5As/w14/s3oqH8K1ZV7WaeI4WtKBWoTpWATTKI/y5l3a2KAISRoJUGFA==",
"dev": true
},
"@whatwg-node/events": {
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.1.6",
+ "version": "1.1.7",
"private": false,
"main": "dist/index.js",
"files": [
@@ -89,8 +89,8 @@
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "1.1.5",
- "@walmart/roster-mini-app": "1.1.6",
+ "@walmart/wmconnect-mini-app": "1.1.6",
+ "@walmart/roster-mini-app": "1.1.7",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
| Update version | Update version
|
ddc8425bb305290b755493c86902a35712e2e31b | --- .npmrc
@@ -4,4 +4,4 @@ proxy=http://sysproxy.wal-mart.com:8080
https-proxy=http://sysproxy.wal-mart.com:8080
strict-ssl=false
# legacy-peer-deps=true
-no_proxy=walmart.api.crowdin.com,.wal-mart.com,.walmart.net,.walmart.com,localhost,127.0.0.1
+no_proxy=walmart.api.crowdin.com,.wal-mart.com,.walmart.net,.walmart.com,localhost,127.0.0.1
\ No newline at end of file
| Update mini app versions | Update mini app versions
|
30800fa448c5b26c57fa2165a896fae6d092cf45 | --- packages/me-at-walmart-container/__tests__/services/user/getCandidateInfo.test.ts
@@ -1,4 +1,4 @@
-import {getCandidateInfo, getLoggedInCandidate} from '../../../src/services/user/getCandidateInfo';
+import {getLoggedInCandidate} from '../../../src/services/user/getCandidateInfo';
import {AllsparkHttpClient} from '@walmart/allspark-foundation/HTTP';
import {MeAtWalmartEnvironment} from '@walmart/allspark-foundation/Environment';
import {retry} from '@walmart/allspark-utils';
@@ -68,8 +68,6 @@ describe('getCandidateInfo', () => {
);
});
-
-
it('should handle errors from AllsparkHttpClient.get', async () => {
const mockEnv = {
auth: {
--- packages/me-at-walmart-container/__tests__/services/user/transforms.test.ts
@@ -1,4 +1,3 @@
-
import {UserDomain} from '@walmart/me-at-walmart-common';
import {
determineTeams,
| removed unused code and whitespaces in getCandidateInfo.test.ts | removed unused code and whitespaces in getCandidateInfo.test.ts
|
d4bbdbe6b6e6691c4a0633f758a9eae144a3a1dd | --- package-lock.json
@@ -40,7 +40,7 @@
"@walmart/amp-mini-app": "1.1.59",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.15.4",
- "@walmart/attendance-mini-app": "1.62.10",
+ "@walmart/attendance-mini-app": "1.62.11",
"@walmart/compass-sdk-rn": "5.7.0",
"@walmart/config-components": "4.2.7",
"@walmart/copilot-mini-app": "2.3.19",
@@ -8002,9 +8002,9 @@
}
},
"node_modules/@walmart/attendance-mini-app": {
- "version": "1.62.10",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.10.tgz",
- "integrity": "sha512-4ZpqNylMik1ZmbsAZIkwiSicpf0pBy8FtjxYYHyjgMypQVVFSZGcIxvhQOZ+qf/uWN8KHO/uZjBlv+YiPqEwaA==",
+ "version": "1.62.11",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.11.tgz",
+ "integrity": "sha512-bmmkUL6YmYePnouncMnhKjAUGaATuSc9AYRc4+9wJ/PBjMTDHDQ0RlQapJOc6jGLzONDqMhCNAURPpwSKCCBTA==",
"dependencies": {
"@walmart/gta-react-native-calendars": "^0.0.16",
"@walmart/wfm-ui": "^0.2.26",
@@ -34162,9 +34162,9 @@
}
},
"@walmart/attendance-mini-app": {
- "version": "1.62.10",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.10.tgz",
- "integrity": "sha512-4ZpqNylMik1ZmbsAZIkwiSicpf0pBy8FtjxYYHyjgMypQVVFSZGcIxvhQOZ+qf/uWN8KHO/uZjBlv+YiPqEwaA==",
+ "version": "1.62.11",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.11.tgz",
+ "integrity": "sha512-bmmkUL6YmYePnouncMnhKjAUGaATuSc9AYRc4+9wJ/PBjMTDHDQ0RlQapJOc6jGLzONDqMhCNAURPpwSKCCBTA==",
"requires": {
"@walmart/gta-react-native-calendars": "^0.0.16",
"@walmart/wfm-ui": "^0.2.26",
--- package.json
@@ -81,7 +81,7 @@
"@walmart/amp-mini-app": "1.1.59",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.15.4",
- "@walmart/attendance-mini-app": "1.62.10",
+ "@walmart/attendance-mini-app": "1.62.11",
"@walmart/compass-sdk-rn": "5.7.0",
"@walmart/config-components": "4.2.7",
"@walmart/copilot-mini-app": "2.3.19",
| ama v1.62.11 fix for GTA-136185 | ama v1.62.11 fix for GTA-136185
|
99881c9566e5b18608d69b7fcf806a152beb3f8f | --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx
@@ -189,7 +189,12 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => {
onRefresh();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
- }, [userOnboardingComplete, userTeamSelectionComplete]);
+ }, [
+ userOnboardingComplete,
+ userTeamSelectionComplete,
+ userTeamOnboardingError,
+ userTeamSelectionError,
+ ]);
useEffect(() => {
const allowedWidgets = Object.keys(widgets).includes(teamId)
| feat(ui): error screen dependencies | feat(ui): error screen dependencies
|
e4db66deae537380f8f286e08b8e5ce492df13a2 | --- packages/allspark-foundation-hub/__tests__/TeamOnboarding/TeamSelectionUtils.test.tsx
@@ -161,6 +161,7 @@ describe('useGetViewersPrimaryTeamName', () => {
if (selector === UserSelectors.getTitle) {
return 'Senior Manager';
}
+ return null;
});
const result = useGetViewersPrimaryTeam();
expect(result).toEqual([{ teamId: 'total', teamName: 'Total store' }]);
@@ -179,6 +180,7 @@ describe('useGetViewersPrimaryTeamName', () => {
if (selector === UserSelectors.getTitle) {
return 'Developer';
}
+ return null;
});
const result = useGetViewersPrimaryTeam();
@@ -196,6 +198,7 @@ describe('useGetViewersPrimaryTeamName', () => {
if (selector === UserSelectors.getTitle) {
return 'Developer';
}
+ return null;
});
const result = useGetViewersPrimaryTeam();
@@ -219,18 +222,18 @@ describe('createSections', () => {
areaTeamMap = {
Area1: [
{ teamName: 'Team1', teamId: '111111' },
- { teamName: 'Team2', teamId: '111111' },
+ { teamName: 'Team2', teamId: '100001' },
] as Team[],
- Area2: [{ teamName: 'Team3', teamId: '111111' }] as Team[],
+ Area2: [{ teamName: 'Team3', teamId: '100002' }] as Team[],
Area3: [
- { teamName: 'Team4', teamId: '111111' },
- { teamName: 'Team5', teamId: '111111' },
+ { teamName: 'Team4', teamId: '100003' },
+ { teamName: 'Team5', teamId: '100004' },
] as Team[],
};
});
it('should include primary area when myArea is provided', () => {
- const sections = createSections(myArea, areas, areaTeamMap);
+ const sections = createSections(mineArea, areas, areaTeamMap);
expect(sections).toEqual([
{
title: 'Area1',
@@ -256,7 +259,7 @@ describe('createSections', () => {
]);
});
it('should handle empty areas array', () => {
- const sections = createSections(myArea, [], areaTeamMap);
+ const sections = createSections(mineArea, [], areaTeamMap);
expect(sections).toEqual([
{
title: 'Area1',
| test(ui): resolved test failures | test(ui): resolved test failures
|
b0d5d308b6f7fd1c674ab83bd48a68a3a885dbd2 | --- .github/pull_request_template.md
@@ -8,11 +8,6 @@ PR/Template Process for Allspark-core: [Link](https://confluence.walmart.com/pag
## Links to JIRA tickets:
<br/>
-| Yes | No |
-| :--- | :--- |
-| - [ ] | - [ ] |
-| - [ ] | - [ ] |
-
## Please describe the changes, problems and solutions this PR is addressing:
<br/>
| twicking changes | twicking changes
|
328473a60c4ed1d8f9b96a39e6d52276d8190ad3 | --- __tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap
@@ -469,15 +469,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
}
/>
- <Screen
- component={[Function]}
- name="DigitalLocksMiniApp"
- options={
- {
- "headerShown": false,
- }
- }
- />
<Screen
component={[Function]}
name="Core.ChangeStoreModal"
@@ -1102,15 +1093,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
}
/>
- <Screen
- component={[Function]}
- name="DigitalLocksMiniApp"
- options={
- {
- "headerShown": false,
- }
- }
- />
<Screen
component={[Function]}
name="Core.ChangeStoreModal"
| chore: fix snapshot test | chore: fix snapshot test
|
034fe95821015bbf8c43652b22de0c35df43ac45 | --- android/settings.gradle
@@ -19,4 +19,4 @@ useExpoModules()
This flag is not advisable if you need to download new dependencies of your Andriod SDK with each run.
(Like testing new compass SDK version each time you run the app)
*/
-gradle.startParameter.offline=true
+gradle.startParameter.offline=false
| Update settings.gradle | Update settings.gradle |
4273c80de40a5301f8aaf556229a08a1269c06ab | --- core/__tests__/__mocks__/@walmart/returns-mini-app.js
@@ -1,3 +1,6 @@
module.exports = {
- ReturnsMiniApp: 'ReturnsMiniApp',
+ __esModule: true,
+ default: {
+ buildAllScreens: () => 'ReturnsMiniApp',
+ },
};
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap
@@ -83,15 +83,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
}
/>
- <Screen
- component={[Function]}
- name="Returns"
- options={
- {
- "headerShown": false,
- }
- }
- />
<Screen
component={[Function]}
name="Backroom"
@@ -651,6 +642,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
name="managerExperience.teamOnboarding"
/>
RfidScanScreens
+ ReturnsMiniApp
</Navigator>
`;
@@ -737,15 +729,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
}
/>
- <Screen
- component={[Function]}
- name="Returns"
- options={
- {
- "headerShown": false,
- }
- }
- />
<Screen
component={[Function]}
name="Backroom"
@@ -1305,5 +1288,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
name="managerExperience.teamOnboarding"
/>
RfidScanScreens
+ ReturnsMiniApp
</Navigator>
`;
| chore(ui) : updated testcases | chore(ui) : updated testcases
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.