commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
46b99cbf14a555e3cbc03e608c23a1b34e1a585e | --- __tests__/harness/utils.ts
@@ -2,3 +2,9 @@ import {waitFor} from '@testing-library/react-native';
export const finishPendingRequests = async () =>
await waitFor(() => new Promise((res) => setTimeout(res, 0)));
+
+//TODO: Strong check will be to parse string to check for ending </Text> tag
+export const queryByTextInSnapshot = (component: any, text: string) => {
+ const snapshot = JSON.stringify(component.toJSON());
+ return snapshot.includes(text);
+}
--- __tests__/screens/MessagesScreen/OneToOneChatTest.tsx
@@ -29,7 +29,7 @@ import {
determineLastMessageText,
} from '../../../src/channels/transforms';
import {unsubscribeChannels} from '../../../src/channels';
-import {finishPendingRequests} from "../../harness/utils";
+import {finishPendingRequests, queryByTextInSnapshot} from "../../harness/utils";
import {createMessageList} from "../../../dist/utils";
import {MessageList} from "../../../src/components/MessageList";
import {AudioMedia, ImageMedia, LocalMessage} from "../../../src/types";
@@ -242,13 +242,13 @@ describe('1-1 chat', () => {
}];
}
+
+
const mockLocalMessages: LocalMessage[] = getLocalMessagesForChannel('STORE_100', textMessageIndexForChannel); //TODO: Include test message as a string for messageTimeSectionHeader display
const messagesList = renderWithProviders(<MessageList messages={mockLocalMessages} channelPath={mockChannelPath} onEndReachedHandler={jest.fn()} />);
await finishPendingRequests();
- messagesList.debug();
- messagesList.getByTestId('audioTemp');
- //expect(messagesList.toJSON()).toMatchSnapshot();
+ expect(queryByTextInSnapshot(messagesList, "Save money, live better")).toEqual(true);
});
it('should display a text message as expected', () => {
--- __tests__/harness/utils.ts
@@ -2,3 +2,9 @@ import {waitFor} from '@testing-library/react-native';
export const finishPendingRequests = async () =>
await waitFor(() => new Promise((res) => setTimeout(res, 0)));
+
+//TODO: Strong check will be to parse string to check for ending </Text> tag
+export const queryByTextInSnapshot = (component: any, text: string) => {
+ const snapshot = JSON.stringify(component.toJSON());
+ return snapshot.includes(text);
+}
--- __tests__/screens/MessagesScreen/OneToOneChatTest.tsx
@@ -29,7 +29,7 @@ import {
determineLastMessageText,
} from '../../../src/channels/transforms';
import {unsubscribeChannels} from '../../../src/channels';
-import {finishPendingRequests} from "../../harness/utils";
+import {finishPendingRequests, queryByTextInSnapshot} from "../../harness/utils";
import {createMessageList} from "../../../dist/utils";
import {MessageList} from "../../../src/components/MessageList";
import {AudioMedia, ImageMedia, LocalMessage} from "../../../src/types";
@@ -242,13 +242,13 @@ describe('1-1 chat', () => {
}];
}
+
+
const mockLocalMessages: LocalMessage[] = getLocalMessagesForChannel('STORE_100', textMessageIndexForChannel); //TODO: Include test message as a string for messageTimeSectionHeader display
const messagesList = renderWithProviders(<MessageList messages={mockLocalMessages} channelPath={mockChannelPath} onEndReachedHandler={jest.fn()} />);
await finishPendingRequests();
- messagesList.debug();
- messagesList.getByTestId('audioTemp');
- //expect(messagesList.toJSON()).toMatchSnapshot();
+ expect(queryByTextInSnapshot(messagesList, "Save money, live better")).toEqual(true);
});
it('should display a text message as expected', () => {
| adding util method for harness - partially done | adding util method for harness - partially done
|
0ec91a20f122135d97f81dd28ab856b87ade3d28 | --- packages/core-widget-registry/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.3.1](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-widget-registry@1.3.0...@walmart/core-widget-registry@1.3.1) (2024-02-05)
+
+**Note:** Version bump only for package @walmart/core-widget-registry
+
+
+
+
+
# [1.3.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-widget-registry@1.2.10...@walmart/core-widget-registry@1.3.0) (2024-01-30)
--- packages/core-widget-registry/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-widget-registry",
- "version": "1.3.0",
+ "version": "1.3.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
--- packages/core-widget-registry/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-widget-registry",
- "version": "1.3.0",
+ "version": "1.3.1",
"description": "Repo for Me@Walmart related widget registries",
"author": "rlane1 <russell.lane@walmart.com>",
"license": "ISC",
| chore(version): updating package version | chore(version): updating package version
- @walmart/core-widget-registry@1.3.1
|
dd9ad2578e624dcd645b11bc6263eb032c20188e | --- package.json
@@ -93,7 +93,7 @@
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
"@walmart/react-native-sumo-sdk": "2.1.0",
- "@walmart/redux-store": "1.1.20",
+ "@walmart/redux-store": "1.1.21",
"@walmart/schedule-mini-app": "0.6.0",
"@walmart/settings-mini-app": "1.3.9",
"@walmart/shelfavailability-mini-app": "0.5.0",
| redux bump to 1.1.21 | redux bump to 1.1.21
|
68d210923de806359863147ac17f8a67028a3f70 | --- package.json
@@ -143,7 +143,7 @@
"@walmart/rfid-scan-mini-app": "2.3.16",
"@walmart/rn-receiving-mini-app": "2.2.165",
"@walmart/roster-mini-app": "2.8.2",
- "@walmart/schedule-mini-app": "0.118.0",
+ "@walmart/schedule-mini-app": "0.118.2",
"@walmart/shelfavailability-mini-app": "1.5.33",
"@walmart/sidekick-mini-app": "4.67.15",
"@walmart/store-feature-orders": "1.26.12",
--- yarn.lock
@@ -7120,9 +7120,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/schedule-mini-app@npm:0.118.0":
- version: 0.118.0
- resolution: "@walmart/schedule-mini-app@npm:0.118.0"
+"@walmart/schedule-mini-app@npm:0.118.2":
+ version: 0.118.2
+ resolution: "@walmart/schedule-mini-app@npm:0.118.2"
dependencies:
"@walmart/moment-walmart": "npm:^1.0.4"
"@walmart/wfm-ui": "npm:1.6.0"
@@ -7151,7 +7151,7 @@ __metadata:
react-redux: ">=7.2.1"
redux: ">=4.0.5"
reselect: ">=4.0.0"
- checksum: 10c0/a3fec53cde6c4f0d059cb2ec5c656f2561242def22e8d3f0aa7f038e2cd914ca77fe35676521de88184593b6a4f2066949d6024dcabfeb29276993f13c5e6cb7
+ checksum: 10c0/455fe9f873347e6b77ef1ba38f9788ffba21e5bfb00979b3f8bdb1992ccdb617f565ed63a4ba9d9c37af1059f321630837fb6e3e7bd8a035b92e999ea958d950
languageName: node
linkType: hard
@@ -7940,7 +7940,7 @@ __metadata:
"@walmart/rfid-scan-mini-app": "npm:2.3.16"
"@walmart/rn-receiving-mini-app": "npm:2.2.165"
"@walmart/roster-mini-app": "npm:2.8.2"
- "@walmart/schedule-mini-app": "npm:0.118.0"
+ "@walmart/schedule-mini-app": "npm:0.118.2"
"@walmart/shelfavailability-mini-app": "npm:1.5.33"
"@walmart/sidekick-mini-app": "npm:4.67.15"
"@walmart/store-feature-orders": "npm:1.26.12"
| bumping schedule mini app with patch bug fix for availability update | bumping schedule mini app with patch bug fix for availability update
|
3b245a32ed8020da7f486e125e683b561387ed5d | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 138
+ versionCode 139
versionName "1.0.14"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>138</string>
+ <string>139</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
| Incrementing build number | Incrementing build number
|
63d7e5a97b53c848c8f9bed97fe47bd4d63d9e6d | --- src/index.tsx
@@ -28,6 +28,7 @@ import {useTeamTextingFeature, useOneOnOneTextWithWin} from './hooks';
import {onNewMessage} from './navigation/utils';
import firestore from '@react-native-firebase/firestore';
import {setFirestorePersistenceEnabled} from './redux/selectors';
+import {SafeAreaProvider} from 'react-native-safe-area-context';
export {PushToTalkProvider} from './channels/pushToTalkProvider';
export const LOGGER_FIELDS = {id: 'texting-mini-app'};
@@ -100,18 +101,20 @@ export const TextingMiniApp = () => {
}, [storeId, countryCode]);
return (
- <LoggerCloneProvider fields={LOGGER_FIELDS}>
- <HttpClientCloneProvider id={HTTP_CLIENT_KEY} config={httpConfig}>
- <ClockedOutScreenGuard>
- <PresenceProvider>
- {/* <PushToTalkProvider> This is to remind that this provider goes to allspark-core container */}
- <ChannelsProvider>
- <TextingNavigation />
- </ChannelsProvider>
- {/* </PushToTalkProvider> This is to remind that this provider goes to allspark-core container*/}
- </PresenceProvider>
- </ClockedOutScreenGuard>
- </HttpClientCloneProvider>
- </LoggerCloneProvider>
+ <SafeAreaProvider>
+ <LoggerCloneProvider fields={LOGGER_FIELDS}>
+ <HttpClientCloneProvider id={HTTP_CLIENT_KEY} config={httpConfig}>
+ <ClockedOutScreenGuard>
+ <PresenceProvider>
+ {/* <PushToTalkProvider> This is to remind that this provider goes to allspark-core container */}
+ <ChannelsProvider>
+ <TextingNavigation />
+ </ChannelsProvider>
+ {/* </PushToTalkProvider> This is to remind that this provider goes to allspark-core container*/}
+ </PresenceProvider>
+ </ClockedOutScreenGuard>
+ </HttpClientCloneProvider>
+ </LoggerCloneProvider>
+ </SafeAreaProvider>
);
};
--- src/screens/MessagesScreen.tsx
@@ -361,6 +361,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
analytics('sendingMsg', {sentFrom: viewerId, store: storeId, message}, 10);
};
+ const iosPadding = top + 25;
return (
<View style={styles.container}>
@@ -369,7 +370,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
<KeyboardAvoidingView
style={styles.keyboardAvoidView}
behavior={Platform.OS === 'android' ? undefined : 'padding'}
- keyboardVerticalOffset={top}>
+ keyboardVerticalOffset={Platform.OS === 'android' ? top : iosPadding}>
{!isLoading && !messages.length && <ListEmptyComponent />}
{isLoading && <Spinner />}
{!isConnected && <ErrorComponent />}
--- src/index.tsx
@@ -28,6 +28,7 @@ import {useTeamTextingFeature, useOneOnOneTextWithWin} from './hooks';
import {onNewMessage} from './navigation/utils';
import firestore from '@react-native-firebase/firestore';
import {setFirestorePersistenceEnabled} from './redux/selectors';
+import {SafeAreaProvider} from 'react-native-safe-area-context';
export {PushToTalkProvider} from './channels/pushToTalkProvider';
export const LOGGER_FIELDS = {id: 'texting-mini-app'};
@@ -100,18 +101,20 @@ export const TextingMiniApp = () => {
}, [storeId, countryCode]);
return (
- <LoggerCloneProvider fields={LOGGER_FIELDS}>
- <HttpClientCloneProvider id={HTTP_CLIENT_KEY} config={httpConfig}>
- <ClockedOutScreenGuard>
- <PresenceProvider>
- {/* <PushToTalkProvider> This is to remind that this provider goes to allspark-core container */}
- <ChannelsProvider>
- <TextingNavigation />
- </ChannelsProvider>
- {/* </PushToTalkProvider> This is to remind that this provider goes to allspark-core container*/}
- </PresenceProvider>
- </ClockedOutScreenGuard>
- </HttpClientCloneProvider>
- </LoggerCloneProvider>
+ <SafeAreaProvider>
+ <LoggerCloneProvider fields={LOGGER_FIELDS}>
+ <HttpClientCloneProvider id={HTTP_CLIENT_KEY} config={httpConfig}>
+ <ClockedOutScreenGuard>
+ <PresenceProvider>
+ {/* <PushToTalkProvider> This is to remind that this provider goes to allspark-core container */}
+ <ChannelsProvider>
+ <TextingNavigation />
+ </ChannelsProvider>
+ {/* </PushToTalkProvider> This is to remind that this provider goes to allspark-core container*/}
+ </PresenceProvider>
+ </ClockedOutScreenGuard>
+ </HttpClientCloneProvider>
+ </LoggerCloneProvider>
+ </SafeAreaProvider>
);
};
--- src/screens/MessagesScreen.tsx
@@ -361,6 +361,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
analytics('sendingMsg', {sentFrom: viewerId, store: storeId, message}, 10);
};
+ const iosPadding = top + 25;
return (
<View style={styles.container}>
@@ -369,7 +370,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
<KeyboardAvoidingView
style={styles.keyboardAvoidView}
behavior={Platform.OS === 'android' ? undefined : 'padding'}
- keyboardVerticalOffset={top}>
+ keyboardVerticalOffset={Platform.OS === 'android' ? top : iosPadding}>
{!isLoading && !messages.length && <ListEmptyComponent />}
{isLoading && <Spinner />}
{!isConnected && <ErrorComponent />}
| Added padding changes for ios | Added padding changes for ios
|
4a98980ade370a1a08fbdc15a310050b1c5f8323 | --- targets/US/package.json
@@ -86,7 +86,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.24.7",
"@walmart/associate-listening-mini-app": "1.2.7",
- "@walmart/attendance-mini-app": "3.94.0",
+ "@walmart/attendance-mini-app": "3.95.0",
"@walmart/avp-feature-app": "0.10.7",
"@walmart/avp-shared-library": "0.10.1",
"@walmart/backroom-mini-app": "1.7.4",
--- yarn.lock
@@ -6001,9 +6001,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/attendance-mini-app@npm:3.94.0":
- version: 3.94.0
- resolution: "@walmart/attendance-mini-app@npm:3.94.0"
+"@walmart/attendance-mini-app@npm:3.95.0":
+ version: 3.95.0
+ resolution: "@walmart/attendance-mini-app@npm:3.95.0"
dependencies:
"@walmart/wfm-ui": "npm:^0.2.26"
moment-timezone: "npm:0.5.40"
@@ -6033,7 +6033,7 @@ __metadata:
redux-saga: ^1.2.0
reselect: ^4.1.0
wfm-allspark-data-library: ^3.3.0
- checksum: 10c0/69b3aa34be9f5708a99a36337f502c80846c05a221a1127dfafc3adeb8f01f642ddc8cd23fa6ab9f4952395a2552c0870cbef475794d5b6c4c1d2842bbcd997f
+ checksum: 10c0/79c12f7c2df5dfcd528b5b72924bf42f4d53bb1290049a9dc46aa5282288b454f8b231f5c63a3e2f190f3c3cbc9274c7986965e9e3d34f3a7833361bf37b7059
languageName: node
linkType: hard
@@ -7002,7 +7002,7 @@ __metadata:
"@walmart/ask-sam-chat-components": "npm:^0.2.7"
"@walmart/ask-sam-mini-app": "npm:1.24.7"
"@walmart/associate-listening-mini-app": "npm:1.2.7"
- "@walmart/attendance-mini-app": "npm:3.94.0"
+ "@walmart/attendance-mini-app": "npm:3.95.0"
"@walmart/avp-feature-app": "npm:0.10.7"
"@walmart/avp-shared-library": "npm:0.10.1"
"@walmart/backroom-mini-app": "npm:1.7.4"
| bump ama verion 3.95.0 | bump ama verion 3.95.0
|
a42ac0c5a805327ed1643e60703979eb4d9fb6c5 | --- src/hooks/messages.ts
@@ -23,10 +23,7 @@ export const useStartAssociateText = (replace: boolean = false) => {
return useCallback(
async (recipientIds: string[]) => {
- const participants = [
- viewerId,
- ...recipientIds.map((id) => encryptUserId(id)),
- ];
+ const participants = [viewerId, ...recipientIds.map(encryptUserId)];
const storeDocumentId = createStoreDocumentId(site!);
const channelId = createAssociateChannelId(participants);
const navigateAction = replace ? navigation.replace : navigation.navigate;
--- src/hooks/messages.ts
@@ -23,10 +23,7 @@ export const useStartAssociateText = (replace: boolean = false) => {
return useCallback(
async (recipientIds: string[]) => {
- const participants = [
- viewerId,
- ...recipientIds.map((id) => encryptUserId(id)),
- ];
+ const participants = [viewerId, ...recipientIds.map(encryptUserId)];
const storeDocumentId = createStoreDocumentId(site!);
const channelId = createAssociateChannelId(participants);
const navigateAction = replace ? navigation.replace : navigation.navigate;
| refactor: remove uneeded arrow function | refactor: remove uneeded arrow function
|
37a12d1317b1d3222669e935c12fba1ad4f6444d | --- targets/US/package.json
@@ -148,7 +148,7 @@
"@walmart/sidekick-mini-app": "4.84.9",
"@walmart/store-feature-orders": "1.27.1",
"@walmart/taskit-mini-app": "4.17.21",
- "@walmart/time-clock-mini-app": "2.433.0",
+ "@walmart/time-clock-mini-app": "2.435.0",
"@walmart/topstock-mini-app": "1.17.11",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch",
"@walmart/walmart-fiscal-week": "^0.3.6",
--- yarn.lock
@@ -7055,7 +7055,7 @@ __metadata:
"@walmart/sidekick-mini-app": "npm:4.84.9"
"@walmart/store-feature-orders": "npm:1.27.1"
"@walmart/taskit-mini-app": "npm:4.17.21"
- "@walmart/time-clock-mini-app": "npm:2.433.0"
+ "@walmart/time-clock-mini-app": "npm:2.435.0"
"@walmart/topstock-mini-app": "npm:1.17.11"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch"
"@walmart/walmart-fiscal-week": "npm:^0.3.6"
@@ -7993,9 +7993,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/time-clock-mini-app@npm:2.433.0":
- version: 2.433.0
- resolution: "@walmart/time-clock-mini-app@npm:2.433.0"
+"@walmart/time-clock-mini-app@npm:2.435.0":
+ version: 2.435.0
+ resolution: "@walmart/time-clock-mini-app@npm:2.435.0"
dependencies:
"@react-navigation/elements": "npm:^1.3.1"
moment-timezone: "npm:0.5.33"
@@ -8038,7 +8038,7 @@ __metadata:
uuid: ^3.3.2
wifi-store-locator: ^1.4.0
xdate: ^0.8.2
- checksum: 10c0/fba468fa8ce889c2d5ba897038c57a2be5044865f3df88a8adb12254f52229642cd1e097240ddbd708b7f3b8853442d13bb154ba7b69f02701470beaf620aba3
+ checksum: 10c0/5d4c74cff0abce363b7123b1a964a6454f22fef59c6158e0aa86b7a135f5f220c0fc14d213bf95277720facf2c77cbcd7fa27a5cd5f1097b52afad5d5aa1e0c6
languageName: node
linkType: hard
| GTA-153821 Updating time clock version | GTA-153821 Updating time clock version
|
c5cd6c0430443bd603e62a5eb0d2ea53ce9eb5b2 | --- src/containers/ChatInput/index.tsx
@@ -1,5 +1,12 @@
import React, {useState} from 'react';
-import {Image, TextInput, View, ScrollView, StyleSheet, Platform} from 'react-native';
+import {
+ Image,
+ TextInput,
+ View,
+ ScrollView,
+ StyleSheet,
+ Platform,
+} from 'react-native';
import {useSafeAreaInsets} from 'react-native-safe-area-context';
import firestore from '@react-native-firebase/firestore';
--- src/containers/ChatInput/index.tsx
@@ -1,5 +1,12 @@
import React, {useState} from 'react';
-import {Image, TextInput, View, ScrollView, StyleSheet, Platform} from 'react-native';
+import {
+ Image,
+ TextInput,
+ View,
+ ScrollView,
+ StyleSheet,
+ Platform,
+} from 'react-native';
import {useSafeAreaInsets} from 'react-native-safe-area-context';
import firestore from '@react-native-firebase/firestore';
| fix formatting and merge main branch | fix formatting and merge main branch
|
71cc22c84ee80267886630da411ec2ce0fb2b27d | --- src/components/TeamList.tsx
@@ -40,7 +40,6 @@ import {Associate, Team} from '../types';
import {useTranslation} from 'react-i18next';
import {TEXTING_I18N_NAMESPACE} from '../translations';
import {messageButtonEnabled, pushToTalkEnabled} from '../redux/selectors';
-import moment from 'moment-timezone';
const styles = StyleSheet.create({
listItem: {
@@ -119,12 +118,7 @@ const TeamItem = (props: {
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
const navigation = useNavigation<NavigationProp<TextingNavParamsMap>>();
- const date = moment().format('YYYY-MM-DD');
- const formattedDate = moment(date, 'YYYY-MM-DD').toDate();
- const {loading, teamData, teamRoster} = useGetRosterByTeam(
- teamId,
- formattedDate,
- );
+ const {loading, teamData, teamRoster} = useGetRosterByTeam(teamId);
const team = teamData?.getTeamById;
const userIsInRoster = useUserIsInRoster();
const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled);
--- src/hooks/teams.ts
@@ -5,9 +5,10 @@ import {useGetTeamsByStoreQuery} from '../queries/getTeamsbyStore';
import {Associate} from '../types';
import {useDailyRoster} from './roster';
import {Team} from '../queries/schema.types';
+import moment from 'moment-timezone';
// import {useGetTeamByIdMock, useGetTeamsByStoreMock} from '../mocks';
-export const useGetTeamById = (teamId: string, date: Date) => {
+export const useGetTeamById = (teamId: string) => {
// return useGetTeamByIdMock(teamId);
const storeNbr: string | undefined = useSelector(
SiteSelectors.getUserWorkingSite,
@@ -23,7 +24,12 @@ export const useGetTeamById = (teamId: string, date: Date) => {
// }; // comment in if needed for testing
return useGetTeamByIdQuery({
- variables: {storeNbr: storeNbr!, teamId, date, countryCode: countryCode!},
+ variables: {
+ storeNbr: storeNbr!,
+ teamId,
+ date: moment().format('YYYY-MM-DD'),
+ countryCode: countryCode!,
+ },
skip: !storeNbr || !countryCode,
});
};
@@ -45,12 +51,12 @@ export const useGetTeamsByStore = () => {
});
};
-export const useGetRosterByTeam = (teamId: string, date: Date) => {
+export const useGetRosterByTeam = (teamId: string) => {
const {
loading: teamLoading,
data: teamData,
error: teamError,
- } = useGetTeamById(teamId, date);
+ } = useGetTeamById(teamId);
const {
loading: rosterLoading,
--- src/components/TeamList.tsx
@@ -40,7 +40,6 @@ import {Associate, Team} from '../types';
import {useTranslation} from 'react-i18next';
import {TEXTING_I18N_NAMESPACE} from '../translations';
import {messageButtonEnabled, pushToTalkEnabled} from '../redux/selectors';
-import moment from 'moment-timezone';
const styles = StyleSheet.create({
listItem: {
@@ -119,12 +118,7 @@ const TeamItem = (props: {
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
const navigation = useNavigation<NavigationProp<TextingNavParamsMap>>();
- const date = moment().format('YYYY-MM-DD');
- const formattedDate = moment(date, 'YYYY-MM-DD').toDate();
- const {loading, teamData, teamRoster} = useGetRosterByTeam(
- teamId,
- formattedDate,
- );
+ const {loading, teamData, teamRoster} = useGetRosterByTeam(teamId);
const team = teamData?.getTeamById;
const userIsInRoster = useUserIsInRoster();
const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled);
--- src/hooks/teams.ts
@@ -5,9 +5,10 @@ import {useGetTeamsByStoreQuery} from '../queries/getTeamsbyStore';
import {Associate} from '../types';
import {useDailyRoster} from './roster';
import {Team} from '../queries/schema.types';
+import moment from 'moment-timezone';
// import {useGetTeamByIdMock, useGetTeamsByStoreMock} from '../mocks';
-export const useGetTeamById = (teamId: string, date: Date) => {
+export const useGetTeamById = (teamId: string) => {
// return useGetTeamByIdMock(teamId);
const storeNbr: string | undefined = useSelector(
SiteSelectors.getUserWorkingSite,
@@ -23,7 +24,12 @@ export const useGetTeamById = (teamId: string, date: Date) => {
// }; // comment in if needed for testing
return useGetTeamByIdQuery({
- variables: {storeNbr: storeNbr!, teamId, date, countryCode: countryCode!},
+ variables: {
+ storeNbr: storeNbr!,
+ teamId,
+ date: moment().format('YYYY-MM-DD'),
+ countryCode: countryCode!,
+ },
skip: !storeNbr || !countryCode,
});
};
@@ -45,12 +51,12 @@ export const useGetTeamsByStore = () => {
});
};
-export const useGetRosterByTeam = (teamId: string, date: Date) => {
+export const useGetRosterByTeam = (teamId: string) => {
const {
loading: teamLoading,
data: teamData,
error: teamError,
- } = useGetTeamById(teamId, date);
+ } = useGetTeamById(teamId);
const {
loading: rosterLoading,
| Added requested PR changes | Added requested PR changes
|
ed58f4d934a2eb6978f7a19c3f0b14becc86b02e | --- __tests__/components/RosterFiltersAndInfo.test.tsx
@@ -24,7 +24,7 @@ jest.mock('@walmart/allspark-foundation/Navigation', () => ({
jest.mock('@walmart/gtp-shared-components-3', () => {
const React = require('react');
const RN = require('react-native');
-
+
return {
Link: ({onPress, testID, children}) => {
return React.createElement(
--- __tests__/screens/AllTeams/AllTeamsScreen.test.tsx
@@ -172,7 +172,7 @@ jest.mock('../../../src/common/translation', () => ({
jest.mock('@walmart/allspark-foundation-hub', () => {
const React = require('react');
const {TouchableOpacity, View, Text} = require('react-native');
-
+
return {
ErrorScreen: jest.fn((props) =>
React.createElement(
--- __tests__/setup.ts
@@ -325,7 +325,7 @@ jest.mock('@walmart/gtp-shared-components-3', () => {
jest.mock('@walmart/gtp-shared-mega-icons', () => {
const React = require('react');
const RN = require('react-native');
-
+
return {
WarningIcon: (props) => React.createElement(RN.View, props),
};
| feat(ui): update lint fix | feat(ui): update lint fix
|
e4ee0740515342b4ba877010d371ef19ccd5fa8f | --- graphql.yml
@@ -36,6 +36,11 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql'
tags:
- 'v1'
+ - name: 'getSupplyChainTeamPreference'
+ hash: '61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql'
+ tags:
+ - 'v1'
- name: 'getTeamByIdHome'
hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql'
@@ -73,11 +78,11 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociateById.graphql'
tags:
- 'v1'
- # - name: "getAssociatePreferences"
- # hash: "38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4"
- # queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql"
- # tags:
- # - "v1"
+ - name: 'getAssociatePreferences'
+ hash: '38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql'
+ tags:
+ - 'v1'
- name: 'getDailyRosterHome'
hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql'
@@ -88,28 +93,28 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql'
tags:
- 'v1'
+ - name: 'getSupplyChainTeamPreference'
+ hash: '61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql'
+ tags:
+ - 'v1'
- name: 'getTeamByIdHome'
hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql'
tags:
- 'v1'
- # - name: "GetTeamsByStore"
- # hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44"
- # queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql"
- # tags:
- # - "v1"
+ - name: 'GetTeamsByStore'
+ hash: 'e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql'
+ tags:
+ - 'v1'
- name: 'upsertAssociatePreference'
hash: '972c522c6ad0675f13587637cff2dd2ed46937a9878a48a66ad2bc2f7d51a036'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateAssociatePrivacyPreference.graphql'
tags:
- 'v1'
- # - name: "upsertManagerExperiencePreference"
- # hash: "bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca"
- # queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql"
- # tags:
- # - "v1"
- - name: 'upsertSupplyChainAssociatePreference'
- hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0'
- queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql'
+ - name: 'upsertManagerExperiencePreference'
+ hash: 'bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql'
tags:
- 'v1'
--- packages/me-at-walmart-athena-queries/src/schema.graphql
@@ -2840,6 +2840,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
"""
@@ -2889,6 +2894,11 @@ enum CourseTypeFilter {
MICRO_LEARNING
}
+enum CourseTypeFilter {
+ COMPLIANCE
+ MICRO_LEARNING
+}
+
input CreateSection1UrlInput {
DOB: String!
dateHired: String!
@@ -7513,6 +7523,12 @@ input MySupplyChainTeamsInput {
supplyChainTeamPreference: [ManagerExperienceTeamInput!]
}
+input MySupplyChainTeamsInput {
+ businessUnitNumber: Int!
+ shiftCodePreference: [String]!
+ supplyChainTeamPreference: [ManagerExperienceTeamInput!]
+}
+
input MyTeamsInput {
businessUnitNumber: Int!
teamPreferenceForBusinessUnit: [ManagerExperienceTeamInput!]
@@ -9914,6 +9930,32 @@ type SchedulingGraphDaily {
startOfWeek: Date
}
+type SchedulingMetric {
+ """Polaris job IDs for Workgroup, Team, Role, etc."""
+ jobIds: [Int]
+
+ """Polaris location ID for Teams"""
+ locationId: Int
+
+ """The Walmart start of week"""
+ startOfWeek: Date
+ totalAggregateData: TotalAggregateData
+ weeklyTeamAggregateData: [WeeklyTeamAggregateData]
+}
+
+type SchedulingGraphDaily {
+ graphData: [DailyGraphData]
+
+ """Polaris job IDs for Team"""
+ jobIds: [Int]
+
+ """Polaris location ID for Teams"""
+ locationId: Int
+
+ """The Walmart start of week"""
+ startOfWeek: Date
+}
+
type SchedulingMetric {
"""Polaris job IDs for Workgroup, Team, Role, etc."""
jobIds: [Int]
| Adding getSupplyChainTeamPreference query | Adding getSupplyChainTeamPreference query
|
ca067f52bee41b2b4b8d25737e79db1a7beddbcb | --- src/hooks/user.ts
@@ -6,5 +6,6 @@ export const useIsSalariedOrTeamLead = () => {
const payType = user.employeeType as 'H' | 'S';
const jobDescription = user.jobDescription;
+ //TODO: Use CCM to configure which strings are valid for team leads? What is standard way to check for team lead?
return payType === 'S' || jobDescription?.toLowerCase() === 'team lead';
};
--- src/hooks/user.ts
@@ -6,5 +6,6 @@ export const useIsSalariedOrTeamLead = () => {
const payType = user.employeeType as 'H' | 'S';
const jobDescription = user.jobDescription;
+ //TODO: Use CCM to configure which strings are valid for team leads? What is standard way to check for team lead?
return payType === 'S' || jobDescription?.toLowerCase() === 'team lead';
};
| updating hook | updating hook
|
786fe2e78e30b85144c11664e2623bbef2e9d685 | --- __tests__/hooks/teams.test.ts
@@ -224,6 +224,7 @@ describe('hooks/teams', () => {
onError: expect.any(Function),
skip: expect.any(Boolean),
variables: {
+ businessUnitNumber: expect.any(Number),
countryCode: expect.any(String),
date: expect.any(String),
siteNbr: expect.any(String),
@@ -268,6 +269,7 @@ describe('hooks/teams', () => {
}),
errorPolicy: 'all',
variables: {
+ businessUnitNumber: expect.any(Number),
includeManagement: true,
siteNbr: expect.any(String),
date: expect.any(String),
| feat(ui): update the coverage changes | feat(ui): update the coverage changes
|
57f52f7920488afc90d68b0db64f6c05407fe413 | --- src/screens/ChannelsScreen.tsx
@@ -142,7 +142,7 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = (
}
extraData={extraData}
estimatedItemSize={100}
- contentInset={{bottom: bottomInset, top: channelTopMargin}}
+ contentInset={{bottom: bottomInset}}
contentContainerStyle={{
paddingTop: channelTopMargin,
paddingBottom: bottomInset,
--- src/screens/ChannelsScreen.tsx
@@ -142,7 +142,7 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = (
}
extraData={extraData}
estimatedItemSize={100}
- contentInset={{bottom: bottomInset, top: channelTopMargin}}
+ contentInset={{bottom: bottomInset}}
contentContainerStyle={{
paddingTop: channelTopMargin,
paddingBottom: bottomInset,
| update top margin for channel screen | update top margin for channel screen
|
3ba9f5280c92aec81155d8a4fa87fb85c9942645 | --- jest.config.js
@@ -5,10 +5,10 @@ module.exports = {
collectCoverageFrom: ['<rootDir>/src/**/*.{js,jsx,ts,tsx}'],
coverageThreshold: {
global: {
- statements: 24.52,
- branches: 7.28,
- functions: 8.74,
- lines: 25.51,
+ statements: 16.44,
+ branches: 7.4,
+ functions: 6.69,
+ lines: 17.24,
},
},
transformIgnorePatterns: [
--- jest.config.js
@@ -5,10 +5,10 @@ module.exports = {
collectCoverageFrom: ['<rootDir>/src/**/*.{js,jsx,ts,tsx}'],
coverageThreshold: {
global: {
- statements: 24.52,
- branches: 7.28,
- functions: 8.74,
- lines: 25.51,
+ statements: 16.44,
+ branches: 7.4,
+ functions: 6.69,
+ lines: 17.24,
},
},
transformIgnorePatterns: [
| updating jest config to match current coverage | updating jest config to match current coverage
|
6b3f02b21b8b4f6b7de6e64aa7167fd4b273cfb5 | --- packages/associate-exp-hub-hub/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.6.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.6.0...@walmart/associate-exp-hub-hub@2.6.1) (2025-11-04)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-hub
+
# [2.6.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.5.0...@walmart/associate-exp-hub-hub@2.6.0) (2025-11-04)
### Features
--- packages/associate-exp-hub-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-hub",
- "version": "2.6.0",
+ "version": "2.6.1",
"description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub",
"packageManager": "yarn@4.6.0",
"engines": {
--- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.4.0-alpha.30](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.29...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.30) (2025-11-04)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app
+
# [1.4.0-alpha.29](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.28...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.29) (2025-11-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.29",
+ "version": "1.4.0-alpha.30",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/associate-exp-hub-team-switcher/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.5.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.5.0...@walmart/associate-exp-hub-team-switcher@2.5.1) (2025-11-04)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher
+
# [2.5.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.4.1...@walmart/associate-exp-hub-team-switcher@2.5.0) (2025-11-04)
### Features
--- packages/associate-exp-hub-team-switcher/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-team-switcher",
- "version": "2.5.0",
+ "version": "2.5.1",
"description": "Team Switcher module for Associate Experience Hub",
"packageManager": "yarn@4.6.0",
"engines": {
| chore(version): updating package version | chore(version): updating package version
- @walmart/associate-exp-hub-hub@2.6.1
- @walmart/associate-exp-hub-mini-app@1.4.0-alpha.30
- @walmart/associate-exp-hub-team-switcher@2.5.1
|
5f02f085bed1d7f9a0a021aa9bfacad5f33a2b78 | --- src/auth/ErrorScreen.tsx
@@ -25,12 +25,7 @@ import {SSO_APP} from '../types/telemetryConstants';
import {logger} from '../services/Logger';
import {encryptUserId} from '../services/MaskUserId';
import styles from './styles';
-import {
- defaultConfig,
- ERROR_CATEGORIES,
- Q1Options,
- Q2Options,
-} from './constants';
+import {defaultConfig} from './constants';
import {Picker} from '@react-native-community/picker';
import WmConfig from 'react-native-wm-config';
@@ -45,8 +40,6 @@ export const ErrorScreen: FC<any> = (props) => {
const [detail, setDetail] = useState('');
const [formDirty, setFormDirty] = useState(false);
const [errorCategory, setErrorCategory] = useState('');
- const [selectedQ1Options, setselectedQ1Options] = useState(['']);
- const [selectedQ2Option, setSelectedQ2Option] = useState('');
const [errorCategoriesFb, setErrorCategoriesFb] = useState(
defaultConfig.issues,
);
@@ -56,20 +49,12 @@ export const ErrorScreen: FC<any> = (props) => {
const userIdValid = !formDirty || !!userId;
const siteIdValid = !formDirty || !!siteId;
const errSelectValid = !formDirty || !!errorCategory;
- const otherOptionValid =
- errorCategory === translate('ssoError.issues.other')
- ? !!selectedQ2Option
- : true;
- const missingFields =
- !userId || !siteId || !errorCategory || !otherOptionValid;
+ const missingFields = !userId || !siteId || !errorCategory;
useEffect(() => {
WmTelemetry.logEvent(SSO_APP, 'feedback_screen_loaded', {});
const fbConfig = () => {
const getConfig = WmConfig.getValue('core', 'ssoFeedbackOptions');
- setDetail(getConfig);
- // todo
- // parse
try {
const parsedConfig = JSON.parse(getConfig);
setErrorCategoriesFb(parsedConfig.issues);
@@ -101,20 +86,11 @@ export const ErrorScreen: FC<any> = (props) => {
userId: encryptUserId(userIdValue.toUpperCase(), siteId),
siteId: siteId,
errorCategory: errorCategory,
- otherQ1: selectedQ1Options,
- otherQ2: selectedQ2Option,
otherOptions: selectedOther,
});
}
};
- const getOptions = (list: Array<string>) => {
- return list.map((opn, index) => ({
- id: index,
- label: translate(`ssoError.otherIssue.${opn}`),
- }));
- };
-
const getOptions2 = (list: Array<string>) => {
return list.map((opn, index) => ({
id: index,
@@ -186,38 +162,6 @@ export const ErrorScreen: FC<any> = (props) => {
<Text style={styles.fieldTitle}>
{translate('ssoError.issueCategory')}
</Text>
- <View
- style={[
- styles.fieldSet,
- styles.userIdInput,
- !errSelectValid && styles.errorBorder,
- ]}>
- <Picker
- testID='pickerTest'
- selectedValue={errorCategory}
- style={!errorCategory && styles.placeholder}
- onValueChange={(itemValue, index) => {
- index === 0
- ? setErrorCategory('')
- : setErrorCategory(itemValue);
- }}>
- {ERROR_CATEGORIES.map((err, index) => {
- const errTranslate =
- index === 0
- ? translate('ssoError.selectIssue')
- : translate(`ssoError.issues.${err}`);
- return (
- <Picker.Item
- key={index}
- testID={'pickerItem' + index}
- label={errTranslate}
- value={errTranslate}
- />
- );
- })}
- </Picker>
- </View>
-
{/* sync with firebase */}
<View
style={[
@@ -241,7 +185,7 @@ export const ErrorScreen: FC<any> = (props) => {
value={''}
/>
{errorCategoriesFb.map((err, index) => {
- const errTranslate = translate(err[i18n.language] || 'test'); // todo lang selection
+ const errTranslate = translate(err[i18n.language]); // todo lang selection
return (
<Picker.Item
key={index}
@@ -298,29 +242,6 @@ export const ErrorScreen: FC<any> = (props) => {
})}
</View>
)}
-
- {errorCategory === translate('ssoError.issues.other') && (
- <View>
- <Text style={styles.otherErr}>
- {translate('ssoError.otherIssue.q1')}
- </Text>
- <CheckboxItemGroup
- items={getOptions(Q1Options)}
- style={styles.otherErr}
- selectedIds={selectedQ1Options}
- onSelect={(id) => setselectedQ1Options(id)}
- />
- <Text style={styles.otherErr}>
- {translate('ssoError.otherIssue.q2')}
- </Text>
- <RadioItemGroup
- items={getOptions(Q2Options)}
- style={styles.otherErr}
- selectedId={selectedQ2Option}
- onSelect={(id) => setSelectedQ2Option(id)}
- />
- </View>
- )}
<Text style={styles.fieldTitle}>
{translate('ssoError.optional')}
</Text>
| remove previous implementation of ui | remove previous implementation of ui
|
85cd91d574622d52e4ce14dbd99f6cd5f9dd8b73 | --- packages/allspark-foundation-hub/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.25.29](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.28...@walmart/allspark-foundation-hub@1.25.29) (2025-12-29)
+
+**Note:** Version bump only for package @walmart/allspark-foundation-hub
+
## [1.25.28](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.27...@walmart/allspark-foundation-hub@1.25.28) (2025-12-22)
**Note:** Version bump only for package @walmart/allspark-foundation-hub
--- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.25.28",
+ "version": "1.25.29",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/allspark-foundation/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [7.17.9](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.17.8...@walmart/allspark-foundation@7.17.9) (2025-12-29)
+
+**Note:** Version bump only for package @walmart/allspark-foundation
+
## [7.17.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.17.7...@walmart/allspark-foundation@7.17.8) (2025-12-22)
**Note:** Version bump only for package @walmart/allspark-foundation
--- packages/allspark-foundation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation",
- "version": "7.17.8",
+ "version": "7.17.9",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
--- packages/components-library/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.3.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/ax-components@1.3.0...@walmart/ax-components@1.3.1) (2025-12-29)
+
+**Note:** Version bump only for package @walmart/ax-components
+
# [1.3.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/ax-components@1.2.10...@walmart/ax-components@1.3.0) (2025-12-22)
### Features
--- packages/components-library/package.json
@@ -52,7 +52,7 @@
"test:coverage": "jest --coverage",
"expo:check": "expo install --check"
},
- "version": "1.3.0",
+ "version": "1.3.1",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"name": "@walmart/ax-components",
--- packages/my-walmart-hub/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.10.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.10.0...@walmart/my-walmart-hub@1.10.1) (2025-12-29)
+
+**Note:** Version bump only for package @walmart/my-walmart-hub
+
# [1.10.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.9.4...@walmart/my-walmart-hub@1.10.0) (2025-12-22)
### Features
--- packages/my-walmart-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/my-walmart-hub",
- "version": "1.10.0",
+ "version": "1.10.1",
"description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/allspark-foundation@7.17.9
- @walmart/allspark-foundation-hub@1.25.29
- @walmart/ax-components@1.3.1
- @walmart/my-walmart-hub@1.10.1
|
c2953ffdc6ff3a24ab0bbd4dfe5fdef8965ff00d | --- package-lock.json
@@ -39,14 +39,14 @@
"@walmart/attendance-mini-app": "0.86.0",
"@walmart/config-components": "4.2.0-rc.1",
"@walmart/core-services": "~2.0.19",
- "@walmart/core-services-allspark": "~2.10.13",
+ "@walmart/core-services-allspark": "~2.10.15",
"@walmart/core-utils": "~2.0.5",
"@walmart/core-widget-registry": "~1.2.4",
"@walmart/counts-component-miniapp": "0.1.4",
"@walmart/emergency-mini-app": "1.24.1",
"@walmart/exception-mini-app": "1.2.30",
"@walmart/facilities-management-miniapp": "0.6.7",
- "@walmart/feedback-all-spark-miniapp": "0.9.25",
+ "@walmart/feedback-all-spark-miniapp": "0.9.32",
"@walmart/financial-wellbeing-feature-app": "1.6.3",
"@walmart/functional-components": "~4.0.3",
"@walmart/gta-react-native-calendars": "0.0.16",
@@ -127,6 +127,7 @@
"react-native-image-pan-zoom": "^2.1.12",
"react-native-image-picker": "4.10.0",
"react-native-image-resizer": "1.4.5",
+ "react-native-inappbrowser-reborn": "^3.7.0",
"react-native-linear-gradient": "2.6.2",
"react-native-loudness": "^2.0.0",
"react-native-maps": "^1.3.2",
@@ -4946,9 +4947,9 @@
}
},
"node_modules/@walmart/core-services-allspark": {
- "version": "2.10.13",
- "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.10.13.tgz",
- "integrity": "sha512-RMh4Nn7YpEZYoxMFlVeOuHX+c+MWFDo1dN8Ivl/wLcCZfDH9nBaZl9ZtF2/g4TfGIMuaIZQ6790CkM4ZZzwPhg==",
+ "version": "2.10.15",
+ "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.10.15.tgz",
+ "integrity": "sha512-TOFuy30el0deE9UVciw4gNnLTjKLhH4eVpvKXwJaL9H+PoggGOFgR8vPvZaXcD6/fnYBYVQf5T1WaJMaxaexIA==",
"license": "ISC",
"dependencies": {
"@walmart/allspark-graphql-client": "^1.4.8",
@@ -5168,7 +5169,9 @@
}
},
"node_modules/@walmart/feedback-all-spark-miniapp": {
- "version": "0.9.25",
+ "version": "0.9.32",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.32.tgz",
+ "integrity": "sha512-rjO+YZ2W5CYKXwYXGZTVt5ztJOy9l5no1wOYmvbUsnZQZ8/U7J6ZYQQ3HOX5zabGEYtSdZadEGV0CBixLgGEGg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-community/async-storage": "^1.12.1",
@@ -17818,6 +17821,20 @@
"react-native": ">=v0.40.0"
}
},
+ "node_modules/react-native-inappbrowser-reborn": {
+ "version": "3.7.0",
+ "resolved": "https://npme.walmart.com/react-native-inappbrowser-reborn/-/react-native-inappbrowser-reborn-3.7.0.tgz",
+ "integrity": "sha512-Ia53jYNtFcbNaX5W3QfOmN25I7bcvuDiQmSY5zABXjy4+WI20bPc9ua09li55F8yDCjv3C99jX6vKms68mBV7g==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "invariant": "^2.2.4",
+ "opencollective-postinstall": "^2.0.3"
+ },
+ "peerDependencies": {
+ "react-native": ">=0.56"
+ }
+ },
"node_modules/react-native-linear-gradient": {
"version": "2.6.2",
"license": "MIT",
@@ -25151,9 +25168,9 @@
}
},
"@walmart/core-services-allspark": {
- "version": "2.10.13",
- "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.10.13.tgz",
- "integrity": "sha512-RMh4Nn7YpEZYoxMFlVeOuHX+c+MWFDo1dN8Ivl/wLcCZfDH9nBaZl9ZtF2/g4TfGIMuaIZQ6790CkM4ZZzwPhg==",
+ "version": "2.10.15",
+ "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.10.15.tgz",
+ "integrity": "sha512-TOFuy30el0deE9UVciw4gNnLTjKLhH4eVpvKXwJaL9H+PoggGOFgR8vPvZaXcD6/fnYBYVQf5T1WaJMaxaexIA==",
"requires": {
"@walmart/allspark-graphql-client": "^1.4.5",
"@walmart/allspark-http-client": "^2.4.13",
@@ -25310,7 +25327,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.6.3"
+ "version": "1.8.6",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.8.6.tgz",
+ "integrity": "sha512-XEi9JkU4vlxFgD/a9E0drNkYlRSefw6UbQTFbACSJy21zeMMB9haz1u6cVWo/Me14JYYZtiPk1A/1kLlc/aUuQ=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
@@ -32951,6 +32970,15 @@
"react-native-image-resizer": {
"version": "1.4.5"
},
+ "react-native-inappbrowser-reborn": {
+ "version": "3.7.0",
+ "resolved": "https://npme.walmart.com/react-native-inappbrowser-reborn/-/react-native-inappbrowser-reborn-3.7.0.tgz",
+ "integrity": "sha512-Ia53jYNtFcbNaX5W3QfOmN25I7bcvuDiQmSY5zABXjy4+WI20bPc9ua09li55F8yDCjv3C99jX6vKms68mBV7g==",
+ "requires": {
+ "invariant": "^2.2.4",
+ "opencollective-postinstall": "^2.0.3"
+ }
+ },
"react-native-linear-gradient": {
"version": "2.6.2"
},
--- package.json
@@ -81,7 +81,7 @@
"@walmart/attendance-mini-app": "0.86.0",
"@walmart/config-components": "4.2.0-rc.1",
"@walmart/core-services": "~2.0.19",
- "@walmart/core-services-allspark": "~2.10.13",
+ "@walmart/core-services-allspark": "~2.10.15",
"@walmart/core-utils": "~2.0.5",
"@walmart/core-widget-registry": "~1.2.4",
"@walmart/counts-component-miniapp": "0.1.4",
| update logger type for http log | update logger type for http log
|
4f1f6425ed03d8246e746d0ff3c20c05c5808f6a | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.12.1-alpha.16",
+ "version": "2.12.1-alpha.17",
"main": "dist/index.js",
"files": [
"dist"
--- src/managerExperience/components/RosterWidget/RosterWidget.tsx
@@ -98,7 +98,6 @@ export const RosterWidget = (props: TeamHubWidgetProps) => {
message: err.toString(),
});
});
- configureRosterInfo();
setTimeout(() => {
setWidgetRefresh(false);
}, 1500);
| Update the roster widget for manager experience | Update the roster widget for manager experience
|
c55c8e030113165d40505ff06f2185aa1fab30ec | --- package-lock.json
@@ -4597,9 +4597,9 @@
}
},
"@walmart/core-services-allspark": {
- "version": "1.4.6",
- "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.4.6.tgz",
- "integrity": "sha512-WA7JUvkQ4KaPnYqYJnKjDWHr2rRKte9n9roGMHxBXLKjQb7tpYDMRB0CnsB1Z3E5gHa59nTXcnkghQLOC5yKsw==",
+ "version": "1.4.8",
+ "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.4.8.tgz",
+ "integrity": "sha512-5is3h7cqc82esSI/gJ+r8eUGAn95l5SywmhwYOfYPhxfNOQ+G+ecnSsmfeRpVLqZq0bTilkHlyCk6pbKk5Jhyw==",
"requires": {
"axios": "^0.26.0",
"crypto-js": "^4.1.1",
--- package.json
@@ -76,7 +76,7 @@
"@walmart/ask-sam-mini-app": "^0.41.8",
"@walmart/config-components": "3.0.2",
"@walmart/core-services": "^1.0.14",
- "@walmart/core-services-allspark": "^1.4.6",
+ "@walmart/core-services-allspark": "^1.4.8",
"@walmart/core-utils": "^1.0.8",
"@walmart/counts-component-miniapp": "0.0.35",
"@walmart/exception-mini-app": "0.41.1",
| version bump for core service to 1.4.8 | version bump for core service to 1.4.8
|
58b06bd73002df912f11a6874190975095cbdb65 | --- .yarn/patches/@walmart-compass-sdk-rn-npm-5.19.3-6aa8f19bab.patch
@@ -0,0 +1,15 @@
+diff --git a/android_submodules/compass_dynamic_module/build.gradle b/android_submodules/compass_dynamic_module/build.gradle
+index 20a96215997c80e32df07a2619cdfd4fe7b02484..8cb64ac7aed98b6c5fd5a75859e892017b570017 100644
+--- a/android_submodules/compass_dynamic_module/build.gradle
++++ b/android_submodules/compass_dynamic_module/build.gradle
+@@ -71,6 +71,10 @@ android {
+ namespace 'com.walmart.compassrnimpl'
+ compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
+
++ buildFeatures {
++ buildConfig true
++ }
++
+ defaultConfig {
+ minSdkVersion getExtOrIntegerDefault('minSdkVersion')
+ targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
--- package.json
@@ -91,7 +91,7 @@
"@walmart/backroom-mini-app": "1.0.6",
"@walmart/calling-mini-app": "0.1.24",
"@walmart/checkout-mini-app": "3.9.310",
- "@walmart/compass-sdk-rn": "5.19.3",
+ "@walmart/compass-sdk-rn": "patch:@walmart/compass-sdk-rn@npm%3A5.19.3#~/.yarn/patches/@walmart-compass-sdk-rn-npm-5.19.3-6aa8f19bab.patch",
"@walmart/config-components": "4.3.2",
"@walmart/copilot-mini-app": "3.70.5",
"@walmart/core-services": "6.1.4",
--- yarn.lock
@@ -5861,6 +5861,16 @@ __metadata:
languageName: node
linkType: hard
+"@walmart/compass-sdk-rn@patch:@walmart/compass-sdk-rn@npm%3A5.19.3#~/.yarn/patches/@walmart-compass-sdk-rn-npm-5.19.3-6aa8f19bab.patch":
+ version: 5.19.3
+ resolution: "@walmart/compass-sdk-rn@patch:@walmart/compass-sdk-rn@npm%3A5.19.3#~/.yarn/patches/@walmart-compass-sdk-rn-npm-5.19.3-6aa8f19bab.patch::version=5.19.3&hash=6d6a37"
+ peerDependencies:
+ react: "*"
+ react-native: "*"
+ checksum: 10c0/48fbe8b513b2c3db293620821c75a384fc0eb1256d237340e7c8c6110edbe39d5dd4f1eb4543a33ad07c6790ff8e50d4bb9d7e3aa69205c3afa5386c890da378
+ languageName: node
+ linkType: hard
+
"@walmart/config-components@npm:4.3.2":
version: 4.3.2
resolution: "@walmart/config-components@npm:4.3.2"
@@ -7685,7 +7695,7 @@ __metadata:
"@walmart/backroom-mini-app": "npm:1.0.6"
"@walmart/calling-mini-app": "npm:0.1.24"
"@walmart/checkout-mini-app": "npm:3.9.310"
- "@walmart/compass-sdk-rn": "npm:5.19.3"
+ "@walmart/compass-sdk-rn": "patch:@walmart/compass-sdk-rn@npm%3A5.19.3#~/.yarn/patches/@walmart-compass-sdk-rn-npm-5.19.3-6aa8f19bab.patch"
"@walmart/config-components": "npm:4.3.2"
"@walmart/copilot-mini-app": "npm:3.70.5"
"@walmart/core-services": "npm:6.1.4"
| fix: add compass sdk patch for java 17 | fix: add compass sdk patch for java 17
|
02b41e902cb355fb2a2c97c833f72bfedebb9213 | --- src/auth/ErrorScreen.tsx
@@ -14,6 +14,7 @@ import WmTelemetry from 'react-native-wm-telemetry';
import {
LinkButton,
PrimaryButton,
+ Dropdown,
Subheader,
Subheader2,
ExclamationCircleFillIcon,
@@ -23,6 +24,7 @@ import {SSO_APP} from '../types/telemetryConstants';
import {logger} from '../services/Logger';
import {encryptUserId} from '../services/MaskUserId';
import styles from './styles';
+import {ERROR_CATEGORIES} from './constants';
export const ErrorScreen: FC<any> = (props) => {
const {navigation} = props;
@@ -34,6 +36,7 @@ export const ErrorScreen: FC<any> = (props) => {
const [siteId, setSiteId] = useState('');
const [detail, setDetail] = useState('');
const [formDirty, setFormDirty] = useState(false);
+ const [selectedValue, setSelectedValue] = useState('');
const userIdValid = !formDirty || !!userId;
const siteIdValid = !formDirty || !!siteId;
@@ -66,6 +69,9 @@ export const ErrorScreen: FC<any> = (props) => {
}
};
+ const getIssueList = () =>
+ ERROR_CATEGORIES.map((err) => translate(`ssoError.issues.${err}`));
+
const onCancel = () => {
WmTelemetry.logEvent(SSO_APP, 'feedback_canceled', {});
navigation.goBack();
@@ -87,12 +93,9 @@ export const ErrorScreen: FC<any> = (props) => {
</Subheader2>
<View style={styles.requiredSection}>
- <Subheader
- testID='required'
- style={[styles.sectionHeader, missingFields && styles.errorText]}>
- {translate('ssoError.required')}
- </Subheader>
-
+ <Text style={styles.fieldTitle}>
+ {translate('ssoError.userId')}
+ </Text>
<View
style={[
styles.fieldSet,
@@ -114,7 +117,16 @@ export const ErrorScreen: FC<any> = (props) => {
placeholder={translate('ssoError.userId')}
/>
</View>
- <View style={[styles.fieldSet, !siteIdValid && styles.errorBorder]}>
+
+ <Text style={styles.fieldTitle}>
+ {translate('ssoError.siteId')}
+ </Text>
+ <View
+ style={[
+ styles.fieldSet,
+ styles.userIdInput,
+ !siteIdValid && styles.errorBorder,
+ ]}>
{!!siteId && (
<Text style={styles.legend}>
{translate('ssoError.siteId')}
@@ -130,6 +142,33 @@ export const ErrorScreen: FC<any> = (props) => {
placeholder={translate('ssoError.siteId')}
/>
</View>
+
+ <Text style={styles.fieldTitle}>
+ {translate('ssoError.issueCategory')}
+ </Text>
+ <View
+ style={[
+ styles.fieldSet,
+ styles.userIdInput,
+ !siteIdValid && styles.errorBorder,
+ ]}>
+ {!!siteId && (
+ <Text style={styles.legend}>
+ {translate('ssoError.selectIssue')}
+ </Text>
+ )}
+ <Dropdown
+ style={styles.input}
+ value={selectedValue}
+ values={getIssueList()} // todo
+ // onValueChange={(itemValue: React.SetStateAction<string>) =>
+ // setSelectedValue(itemValue)
+ // }
+ onSelect={(itemValue: React.SetStateAction<string>) =>
+ setSelectedValue(itemValue)
+ }
+ />
+ </View>
{missingFields && (
<View style={styles.requiredErrorContainer}>
<Subheader testID='error-msg' style={styles.requiredError}>
@@ -142,31 +181,29 @@ export const ErrorScreen: FC<any> = (props) => {
</View>
)}
</View>
- <View style={styles.optionalSection}>
- <Subheader style={styles.sectionHeader}>
- {translate('ssoError.optional')}
- </Subheader>
+ {/* <View style={styles.optionalSection}> */}
+ <Text style={styles.fieldTitle}>
+ {translate('ssoError.optional')}
+ </Text>
- <View style={styles.fieldSet}>
- {!!detail && (
- <Text style={styles.legend}>
- {translate('ssoError.details')}
- </Text>
- )}
- <TextInput
- multiline
- testID='details-text'
- editable
- numberOfLines={4}
- onChangeText={setDetail}
- textAlignVertical='top'
- value={detail}
- maxLength={1000}
- style={styles.multilineTextBox}
- placeholder={translate('ssoError.details')}
- />
- </View>
+ <View style={styles.fieldSet}>
+ {!!detail && (
+ <Text style={styles.legend}>{translate('ssoError.details')}</Text>
+ )}
+ <TextInput
+ multiline
+ testID='details-text'
+ editable
+ numberOfLines={4}
+ onChangeText={setDetail}
+ textAlignVertical='top'
+ value={detail}
+ maxLength={1000}
+ style={styles.multilineTextBox}
+ placeholder={translate('ssoError.details')}
+ />
</View>
+ {/* </View> */}
</KeyboardAvoidingView>
</ScrollView>
--- src/auth/constants.ts
@@ -3,3 +3,14 @@ import {connectPingFedSSO} from 'react-native-connect-sso-redux';
export const connectedSSO = connectPingFedSSO();
export const ALLSPARK_SIGN_IN = 'allspark_sign_in';
+
+export const ERROR_CATEGORIES = [
+ 'clockInOut',
+ 'verification2Step',
+ 'storeTrans',
+ 'newNo',
+ 'noTextReceived',
+ 'noPushReceived',
+ 'wiFi',
+ 'other',
+];
--- src/auth/styles.ts
@@ -123,6 +123,11 @@ export default StyleSheet.create({
fontSize: 16,
lineHeight: 24,
},
+ fieldTitle: {
+ fontSize: 14,
+ lineHeight: 28,
+ fontWeight: '700',
+ },
requiredSection: {
marginTop: 24,
},
| render error categories - select dropdown, update style | render error categories - select dropdown, update style
|
f37cfdf990d878a477935cc3b79345f7e59e0f6a | --- __tests__/scripts/package-deprecation-check/validations/isLibraryExempt.test.ts
@@ -5,6 +5,27 @@ describe('isLibraryExempt', () => {
'package': '@walmart/time-clock-mini-app',
'endDate': '2025-09-01'
}];
+
+ const MOCK_DATE = new Date('2025-08-31T00:00:00Z');
+ const RealDate = Date;
+
+ beforeAll(() => {
+ global.Date = class extends RealDate {
+ // @ts-ignore
+ constructor(...args: any[]) {
+ if (args.length === 0) {
+ return MOCK_DATE;
+ }
+ // @ts-ignore
+ return new RealDate(...args);
+ }
+ } as typeof Date;
+ });
+
+ afterAll(() => {
+ global.Date = RealDate;
+ });
+
it('should return true for exempt libraries', () => {
expect(isLibraryExempt('@walmart/time-clock-mini-app', exemptLibs)).toBe(true);
});
| test: fix isLibraryExempt test | test: fix isLibraryExempt test
|
10511ed15221ab66cf152af7ecbffce0afcfdd52 | --- packages/allspark-foundation/__tests__/cli/envReplacer.test.ts
@@ -1,71 +0,0 @@
-import { envReplacer } from '../../src/cli/envReplacer';
-
-describe('envReplacer', () => {
- afterEach(() => {
- jest.clearAllMocks();
- });
- it('replaces environment variables in config', () => {
- const config = {
- apiKey: '$env.API_KEY',
- databaseUrl: 'https://example.com',
- nested: {
- secretKey: '$env.SECRET_KEY',
- port: 8080,
- },
- };
-
- const env = {
- API_KEY: 'abc123',
- SECRET_KEY: 'xyz456',
- };
-
- envReplacer(config, env);
-
- expect(config.apiKey).toBe(env.API_KEY);
- expect(config.databaseUrl).toBe('https://example.com');
- expect(config.nested.secretKey).toBe(env.SECRET_KEY);
- expect(config.nested.port).toBe(8080);
- });
-
- it('handles missing environment variables', () => {
- const config = {
- apiKey: '$env.API_KEY',
- };
-
- const env = {}; // empty environment
-
- envReplacer(config, env);
-
- expect(config.apiKey).toBeUndefined(); // apiKey should remain unchanged
- });
-
- it('handles nested objects with environment variables', () => {
- const config = {
- nested: {
- apiKey: '$env.API_KEY',
- },
- };
-
- const env = {
- API_KEY: 'abc123',
- };
-
- envReplacer(config, env);
-
- expect(config.nested.apiKey).toBe(env.API_KEY);
- });
-
- it('handles non-string values in config', () => {
- const config = {
- apiKey: 123, // non-string value
- };
-
- const env = {
- API_KEY: 'abc123',
- };
-
- envReplacer(config, env);
-
- expect(config.apiKey).toBe(123); // apiKey should remain unchanged
- });
-});
--- packages/allspark-foundation/src/cli/envReplacer.ts
@@ -1,24 +0,0 @@
-export const envReplacer = (
- config: Record<string, any>,
- env: Record<string, string>
-) => {
- Object.keys(config).forEach((key) => {
- const value = config[key];
-
- if (typeof value === 'string') {
- if (value.includes('$env.')) {
- const envKey = value.split('$env.')[1];
- config[key] = env[envKey];
- return;
- }
- return;
- }
-
- if (typeof value === 'object') {
- envReplacer(config[key], env);
- return;
- }
-
- return;
- });
-};
| chore: remove dead code and tests | chore: remove dead code and tests
|
c65f2423f42a9db281dfb780ced21818c0f547ff | --- src/components/widgets/RosterWidget.tsx
@@ -283,6 +283,7 @@ const RosterWidgetCore: React.FC<RosterWidgetProps> = ({
<Widget
iconName="AssociateIcon"
title="Team Roster"
+ shortIntro={`Selected team ${selectedTeamData.teamId}`}
variant={{
type: 'content-only',
content: renderWidgetContent(),
| feat(ui): update documentations | feat(ui): update documentations
|
006c88851a814c0374344017ded8a189959f14f6 | --- package.json
@@ -147,7 +147,7 @@
"@walmart/react-native-shared-navigation": "~6.3.28",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.8.0",
- "@walmart/react-native-webex-sdk": "0.9.19",
+ "@walmart/react-native-webex-sdk": "0.9.20",
"@walmart/receipt-check-miniapp": "1.34.4",
"@walmart/redux-store": "~6.3.28",
"@walmart/returns-mini-app": "4.17.10",
--- yarn.lock
@@ -8388,7 +8388,7 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:~6.3.28"
"@walmart/react-native-store-map": "npm:0.3.7"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
- "@walmart/react-native-webex-sdk": "npm:0.9.19"
+ "@walmart/react-native-webex-sdk": "npm:0.9.20"
"@walmart/receipt-check-miniapp": "npm:1.34.4"
"@walmart/redux-store": "npm:~6.3.28"
"@walmart/returns-mini-app": "npm:4.17.10"
@@ -8953,14 +8953,14 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/react-native-webex-sdk@npm:0.9.19":
- version: 0.9.19
- resolution: "@walmart/react-native-webex-sdk@npm:0.9.19::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-webex-sdk%2F-%2F%40walmart%2Freact-native-webex-sdk-0.9.19.tgz"
+"@walmart/react-native-webex-sdk@npm:0.9.20":
+ version: 0.9.20
+ resolution: "@walmart/react-native-webex-sdk@npm:0.9.20::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-webex-sdk%2F-%2F%40walmart%2Freact-native-webex-sdk-0.9.20.tgz"
peerDependencies:
react: "*"
react-native: "*"
react-native-logger: "*"
- checksum: 10c0/238bf9356f1e9416ad869056c406a2c02bf1f71ad9a5e6c476c7b1685633438c76f9cc587f1d921a58c87a7f19658ec5e59241e9770b0c1b4e090a80c506c089
+ checksum: 10c0/70b500deb4ccf2e8925786a344be8a5afd49fb43e317575887c53be677d35cb3ecfc5c852caf2f7ff6f40dbc6d8a8e7060ae5dd0103b939125e52d4b3939aa47
languageName: node
linkType: hard
| fix: CONAS-2410 Calling iOS crash fix (#4828) | fix: CONAS-2410 Calling iOS crash fix (#4828)
Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com> |
c6e8f5dc4a7ca256e8f8db38ac15ba9a14a83f0d | --- ios/AllSpark/AllSpark-Beta.entitlements
--- ios/AllSpark/AllSpark-Prod.entitlements
| Fix filename capitalization (ios) | Fix filename capitalization (ios)
|
474606dcdf8b5a91c11a4ba19804e188395b1806 | --- package-lock.json
@@ -7454,7 +7454,7 @@
"console-control-strings": {
"version": "1.1.0",
"resolved": "https://npme.walmart.com/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
+ "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
},
"convert-source-map": {
"version": "1.7.0",
@@ -7873,7 +7873,7 @@
"delegates": {
"version": "1.0.0",
"resolved": "https://npme.walmart.com/delegates/-/delegates-1.0.0.tgz",
- "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
+ "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
},
"denodeify": {
"version": "1.2.1",
@@ -9536,7 +9536,7 @@
"gauge": {
"version": "2.7.4",
"resolved": "https://npme.walmart.com/gauge/-/gauge-2.7.4.tgz",
- "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
+ "integrity": "sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==",
"requires": {
"aproba": "^1.0.3",
"console-control-strings": "^1.0.0",
@@ -9551,12 +9551,12 @@
"ansi-regex": {
"version": "2.1.1",
"resolved": "https://npme.walmart.com/ansi-regex/-/ansi-regex-2.1.1.tgz",
- "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8="
+ "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA=="
},
"is-fullwidth-code-point": {
"version": "1.0.0",
"resolved": "https://npme.walmart.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
- "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
+ "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==",
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -9564,7 +9564,7 @@
"string-width": {
"version": "1.0.2",
"resolved": "https://npme.walmart.com/string-width/-/string-width-1.0.2.tgz",
- "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
+ "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==",
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -9574,7 +9574,7 @@
"strip-ansi": {
"version": "3.0.1",
"resolved": "https://npme.walmart.com/strip-ansi/-/strip-ansi-3.0.1.tgz",
- "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -10117,7 +10117,7 @@
"has-unicode": {
"version": "2.0.1",
"resolved": "https://npme.walmart.com/has-unicode/-/has-unicode-2.0.1.tgz",
- "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="
+ "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
},
"has-value": {
"version": "1.0.0",
@@ -15229,7 +15229,7 @@
"escape-string-regexp": {
"version": "1.0.5",
"resolved": "https://npme.walmart.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg=="
},
"has-flag": {
"version": "3.0.0",
@@ -17385,7 +17385,7 @@
"ms": {
"version": "2.0.0",
"resolved": "https://npme.walmart.com/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
},
"mute-stream": {
"version": "0.0.8",
@@ -20389,7 +20389,7 @@
"resolve-from": {
"version": "3.0.0",
"resolved": "https://npme.walmart.com/resolve-from/-/resolve-from-3.0.0.tgz",
- "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw=="
+ "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g="
},
"resolve-url": {
"version": "0.2.1",
@@ -20469,7 +20469,7 @@
"sax": {
"version": "0.5.8",
"resolved": "https://npme.walmart.com/sax/-/sax-0.5.8.tgz",
- "integrity": "sha1-1HLbIo6zMcJQaw6MFVJK25OdEsE="
+ "integrity": "sha512-c0YL9VcSfcdH3F1Qij9qpYJFpKFKMXNOkLWFssBL3RuF7ZS8oZhllR2rWlCRjDTJsfq3R6wbSsaRU6o0rkEdNw=="
},
"saxes": {
"version": "5.0.1",
@@ -20664,7 +20664,7 @@
"shell-quote": {
"version": "1.6.1",
"resolved": "https://npme.walmart.com/shell-quote/-/shell-quote-1.6.1.tgz",
- "integrity": "sha512-V0iQEZ/uoem3NmD91rD8XiuozJnq9/ZJnbHVXHnWqP1ucAhS3yJ7sLIIzEi57wFFcK3oi3kFUC46uSyWr35mxg==",
+ "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=",
"requires": {
"array-filter": "~0.0.0",
"array-map": "~0.0.0",
@@ -21618,7 +21618,7 @@
"isarray": {
"version": "1.0.0",
"resolved": "https://npme.walmart.com/isarray/-/isarray-1.0.0.tgz",
- "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
+ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
},
"process-nextick-args": {
"version": "2.0.1",
@@ -22587,7 +22587,7 @@
"react-native-ssmp-sso-allspark": {
"version": "0.0.1-rc8",
"resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz",
- "integrity": "sha1-/SHw48C+3muBMp2bynExhYPZl0s="
+ "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg=="
},
"reduxsauce": {
"version": "1.2.1",
@@ -22830,7 +22830,7 @@
"xml2js": {
"version": "0.2.8",
"resolved": "https://npme.walmart.com/xml2js/-/xml2js-0.2.8.tgz",
- "integrity": "sha1-m4FpCTFjH/CdGVdUn69U9PmAs8I=",
+ "integrity": "sha512-ZHZBIAO55GHCn2jBYByVPHvHS+o3j8/a/qmpEe6kxO3cTnTCWC3Htq9RYJ5G4XMwMMClD2QkXA9SNdPadLyn3Q==",
"requires": {
"sax": "0.5.x"
}
@@ -22838,7 +22838,7 @@
"xmlbuilder": {
"version": "9.0.7",
"resolved": "https://npme.walmart.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz",
- "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0="
+ "integrity": "sha512-7YXTQc3P2l9+0rjaUbLwMKRhtmwg1M1eDf6nag7urC7pIPYLD9W/jmzQ4ptRSUbodw5S0jfoGTflLemQibSpeQ=="
},
"xmlchars": {
"version": "2.2.0",
@@ -22885,7 +22885,7 @@
"yallist": {
"version": "2.1.2",
"resolved": "https://npme.walmart.com/yallist/-/yallist-2.1.2.tgz",
- "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI="
+ "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A=="
},
"yaml": {
"version": "1.10.0",
--- package.json
@@ -94,8 +94,8 @@
"@walmart/gtp-shared-components": "1.8.9",
"@walmart/impersonation-mini-app": "1.2.0",
"@walmart/ims-print-services-ui": "1.1.3",
- "@walmart/iteminfo-mini-app": "5.1.3",
"@walmart/inbox-mini-app": "0.56.0",
+ "@walmart/iteminfo-mini-app": "5.1.3",
"@walmart/manager-approvals-miniapp": "0.0.62",
"@walmart/me-field-mini-app": "1.1.22",
"@walmart/metrics-mini-app": "0.9.12",
| fixing alphabetical ordering in package.json | fixing alphabetical ordering in package.json
|
db9660b73af5e0ed61ce320bd468f6f3a0f77065 | --- __tests__/navigation/navigationUtils.test.tsx
@@ -1,6 +1,7 @@
import {
CardStyleInterpolators,
TransitionPresets,
+ createStackNavigator,
} from '@react-navigation/stack';
import {
MessageStyleInterpolator,
@@ -39,6 +40,7 @@ jest.mock('@react-navigation/stack', () => ({
})),
},
},
+ createStackNavigator: jest.fn(),
}));
describe('MessageStyleInterpolator', () => {
| Update roster widget on my Team mini app | Update roster widget on my Team mini app
|
cf8a3c7fe16679f4db6fb2b4b538020c6500c169 | --- __tests__/communicationsTest.tsx
@@ -1,10 +0,0 @@
-// eslint-disable-next-line @typescript-eslint/no-unused-vars
-import React from 'react';
-// @ts-ignore
-import {rawChannelsList} from './harness/firestore/data/channels';
-
-describe('Messaging', () => {
- it('Can send message from user A to user B', () => {
- console.log(rawChannelsList);
- });
-});
--- __tests__/screens/MessagesScreenTest.tsx
@@ -39,15 +39,3 @@ describe('ChatInput', () => {
it('Able to start and stop an audio recording', () => {});
it('Pressing trash can stops audio recording and discards message. User is taken back to default chat input display', () => {});
});
-
-describe('sanity check firestore mock', () => {
- test('testing stuff', () => {
- return mockFirestore
- .collection('text_channels')
- .get()
- .then((userDocs: any) => {
- expect(mockCollection).toHaveBeenCalledWith('text_channels');
- //expect(userDocs.docs[0].data().name).toEqual('Homer Simpson');
- });
- });
-});
--- __tests__/communicationsTest.tsx
@@ -1,10 +0,0 @@
-// eslint-disable-next-line @typescript-eslint/no-unused-vars
-import React from 'react';
-// @ts-ignore
-import {rawChannelsList} from './harness/firestore/data/channels';
-
-describe('Messaging', () => {
- it('Can send message from user A to user B', () => {
- console.log(rawChannelsList);
- });
-});
--- __tests__/screens/MessagesScreenTest.tsx
@@ -39,15 +39,3 @@ describe('ChatInput', () => {
it('Able to start and stop an audio recording', () => {});
it('Pressing trash can stops audio recording and discards message. User is taken back to default chat input display', () => {});
});
-
-describe('sanity check firestore mock', () => {
- test('testing stuff', () => {
- return mockFirestore
- .collection('text_channels')
- .get()
- .then((userDocs: any) => {
- expect(mockCollection).toHaveBeenCalledWith('text_channels');
- //expect(userDocs.docs[0].data().name).toEqual('Homer Simpson');
- });
- });
-});
| removing sanity check test case | removing sanity check test case
|
334cdfd2470c2c073e33f18ea59af3dd24c4ab09 | --- docs/CHANGELOG.md
@@ -1,3 +1,11 @@
+# [1.37.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.36.0...v1.37.0) (2025-06-02)
+
+
+### Features
+
+* **ui:** resolving conflicts ([ab8762a](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/ab8762af24275e618bdb6b5022c2e83baab950fa))
+* **ui:** version update ([6edc6cb](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/6edc6cb27ca27c05119a8616ee74f3c92b430148))
+
# [1.36.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.35.0...v1.36.0) (2025-05-31)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.36.0",
+ "version": "1.37.0",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 1.37.0 [skip ci] | chore(release): 1.37.0 [skip ci]
# [1.37.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.36.0...v1.37.0) (2025-06-02)
### Features
* **ui:** resolving conflicts ([ab8762a](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/ab8762af24275e618bdb6b5022c2e83baab950fa))
* **ui:** version update ([6edc6cb](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/6edc6cb27ca27c05119a8616ee74f3c92b430148))
|
eade9c15c18d0636226661bb222d3e4ed5f272d2 | --- package-lock.json
@@ -4343,9 +4343,9 @@
"integrity": "sha512-qJaaKPSs5rNbukmidrZoqqWylzPX1nos0NwavGpgMjfCIvRuAE83yxNgNMV2KNP8y42YfNhEQlMJ5dCnsg/vWw=="
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.105",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.105.tgz",
- "integrity": "sha512-oWgk2bDnI6dsDaoxLf5wlENOTbPpb3ATV7zRqEzgyChp6473wPavLz3cyyWfu595e6OlnZh5i/aOWt9xEIv7Vg=="
+ "version": "0.5.106",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.106.tgz",
+ "integrity": "sha512-L2I50EDzO5whSohxniEe2ZwOvah2YM5tg4JXAbTs2BXBe3xJdegfwKFbnEOm6KRZGVvKma6IUjtyhT+l0T/dSQ=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -91,7 +91,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.101.0",
"@walmart/price-changes-mini-app": "1.0.6",
- "@walmart/push-to-talk-mini-app": "0.5.105",
+ "@walmart/push-to-talk-mini-app": "0.5.106",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| updating dependencies to latest versions | updating dependencies to latest versions
|
6f991c16dbadd48830d77dc690b876dcfc643290 | --- packages/me-at-walmart-athena-queries/CHANGELOG.md
@@ -3,6 +3,209 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [6.3.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@1.7.6...@walmart/me-at-walmart-athena-queries@6.3.0) (2024-05-16)
+
+# 6.2.0 (2024-05-15)
+
+## 6.1.4 (2024-04-19)
+
+## 6.1.3 (2024-04-18)
+
+## 6.1.2 (2024-04-18)
+
+## 6.1.1 (2024-04-18)
+
+## 6.0.15 (2024-04-16)
+
+## 6.0.14 (2024-04-15)
+
+## 6.0.13 (2024-04-11)
+
+## 6.0.12 (2024-04-10)
+
+## 6.0.11 (2024-04-10)
+
+## 6.0.10 (2024-04-09)
+
+## 6.0.9 (2024-04-05)
+
+## 6.0.8 (2024-04-05)
+
+## 6.0.7 (2024-04-04)
+
+## 6.0.6 (2024-04-04)
+
+## 6.0.5 (2024-04-03)
+
+## 6.0.4 (2024-04-03)
+
+## 6.0.3 (2024-04-02)
+
+## 6.0.2 (2024-04-01)
+
+## 6.0.1 (2024-03-28)
+
+# 6.0.0 (2024-03-27)
+
+# 5.0.0 (2024-03-27)
+
+# 5.0.0-beta.78 (2024-03-26)
+
+# 5.0.0-beta.77 (2024-03-26)
+
+# 5.0.0-beta.76 (2024-03-25)
+
+# 5.0.0-beta.75 (2024-03-21)
+
+# 5.0.0-beta.74 (2024-03-21)
+
+# 5.0.0-beta.73 (2024-03-21)
+
+# 5.0.0-beta.72 (2024-03-20)
+
+# 5.0.0-beta.71 (2024-03-19)
+
+# 5.0.0-beta.70 (2024-03-18)
+
+# 5.0.0-beta.69 (2024-03-18)
+
+# 5.0.0-beta.68 (2024-03-17)
+
+# 5.0.0-beta.67 (2024-03-17)
+
+# 5.0.0-beta.66 (2024-03-16)
+
+# 5.0.0-beta.65 (2024-03-15)
+
+# 5.0.0-beta.64 (2024-03-14)
+
+# 5.0.0-beta.63 (2024-03-14)
+
+# 5.0.0-beta.62 (2024-03-14)
+
+# 5.0.0-beta.61 (2024-03-14)
+
+# 5.0.0-beta.60 (2024-03-14)
+
+# 5.0.0-beta.59 (2024-03-13)
+
+# 5.0.0-beta.58 (2024-03-12)
+
+# 5.0.0-beta.57 (2024-03-12)
+
+# 5.0.0-beta.56 (2024-03-12)
+
+# 5.0.0-beta.55 (2024-03-11)
+
+# 5.0.0-beta.54 (2024-03-08)
+
+# 5.0.0-beta.53 (2024-03-07)
+
+# 5.0.0-beta.52 (2024-03-07)
+
+# 5.0.0-beta.51 (2024-03-07)
+
+# 5.0.0-beta.50 (2024-03-06)
+
+# 5.0.0-beta.49 (2024-02-28)
+
+# 5.0.0-beta.48 (2024-02-28)
+
+# 5.0.0-beta.47 (2024-02-28)
+
+# 5.0.0-beta.46 (2024-02-28)
+
+# 5.0.0-beta.45 (2024-02-26)
+
+# 5.0.0-beta.44 (2024-02-26)
+
+# 5.0.0-beta.43 (2024-02-25)
+
+# 5.0.0-beta.42 (2024-02-23)
+
+# 5.0.0-beta.41 (2024-02-20)
+
+# 5.0.0-beta.40 (2024-02-19)
+
+# 5.0.0-beta.39 (2024-02-19)
+
+# 5.0.0-beta.38 (2024-02-16)
+
+# 5.0.0-beta.37 (2024-02-15)
+
+# 5.0.0-beta.36 (2024-02-12)
+
+# 5.0.0-beta.35 (2024-02-08)
+
+# 5.0.0-beta.34 (2024-02-07)
+
+# 5.0.0-beta.33 (2024-02-01)
+
+### Features
+
+- add me at walmart common package ([7401985](https://gecgithub01.walmart.com/allspark/allspark/commit/7401985a815bea03a8ee70a4c57f2d7d408a6922))
+
+# 5.0.0-beta.32 (2024-01-30)
+
+# 5.0.0-beta.31 (2024-01-30)
+
+# 5.0.0-beta.30 (2024-01-30)
+
+# 5.0.0-beta.29 (2024-01-29)
+
+# 5.0.0-beta.28 (2024-01-25)
+
+# 5.0.0-beta.27 (2024-01-25)
+
+# 5.0.0-beta.26 (2024-01-24)
+
+# 5.0.0-beta.25 (2024-01-24)
+
+# 5.0.0-beta.24 (2024-01-24)
+
+# 5.0.0-beta.23 (2024-01-24)
+
+# 5.0.0-beta.22 (2024-01-24)
+
+# 5.0.0-beta.21 (2024-01-16)
+
+# 5.0.0-beta.18 (2024-01-10)
+
+# 5.0.0-beta.15 (2024-01-09)
+
+### Bug Fixes
+
+- update associate query fix and deprecation in older package ([a1a3c38](https://gecgithub01.walmart.com/allspark/allspark/commit/a1a3c386e3f570c28809827c2f5026742fecee61))
+
+### Features
+
+- accept functions in feature module config. beta version bump ([d08cfdd](https://gecgithub01.walmart.com/allspark/allspark/commit/d08cfdd2ee25b12b11f508076d022cfe73236a5e))
+- update to lerna v7. use npm workspaces ([cda6228](https://gecgithub01.walmart.com/allspark/allspark/commit/cda6228baa44f31ca64592bc537c60cc3cf7b4b8))
+
+# [6.2.0](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.1.4...v6.2.0) (2024-05-15)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
+
+## [6.1.4](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.1.3...v6.1.4) (2024-04-19)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
+
+## [6.1.3](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.1.2...v6.1.3) (2024-04-18)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
+
+## [6.1.2](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.1.1...v6.1.2) (2024-04-18)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
+
+## [6.1.1](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.0.15...v6.1.1) (2024-04-18)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
+
+## [6.0.15](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.0.15-alpha.0...v6.0.15) (2024-04-16)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
+
## [6.0.14](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.0.13...v6.0.14) (2024-04-15)
**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
--- packages/me-at-walmart-athena-queries/README.md
@@ -1,5 +1,5 @@
# DEPRECATED
-This is no longer supported, please use [@walmart/me-at-walmart-container](../me-at-walmart-container/README.md) instead.
+This is no longer supported, please use [@walmart/me-at-walmart-common](../me-at-walmart-common/README.md) instead.
Versions >=5.0.0 will mark all exports as deprecated and either map to `@walmart/me-at-walmart-container` functionality or return stubbed values.
--- packages/me-at-walmart-athena-queries/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-athena-queries",
- "version": "6.0.14",
+ "version": "6.3.0",
"description": "> TODO: description",
"author": "rlane1 <russell.lane@walmart.com>",
"homepage": "",
| Updated me-at-walmart-athena-queries with 6.3.0 | Updated me-at-walmart-athena-queries with 6.3.0
|
56235cb21dbb672ae78f65588f7e21c2ab4f2c0c | --- __tests__/components/TeamHubHeader.test.tsx
@@ -1,8 +1,6 @@
import React from 'react';
-import { renderWithProviders } from '../harness';
import { TeamHubHeader } from '../../src/components/TeamHubHeader';
import { render, screen } from '@testing-library/react-native';
-import { useTranslation } from 'react-i18next';
jest.mock('../../src/common/translation', () => ({
translationClient: {
@@ -25,7 +23,7 @@ jest.mock('@walmart/allspark-foundation-hub', () => ({
}));
describe('Hub header tests', () => {
- it('probably renders the header', () => {
+ it('renders the header', () => {
render(<TeamHubHeader />);
const title = screen.getByLabelText('title');
expect(title).toHaveProperty('_fiber.memoizedProps.children', 'hubHeader.title');
| test(ui) code cleanup in teamhubheader | test(ui) code cleanup in teamhubheader
|
08dd5123817363ad1aab607e1f206d980b71d0c0 | --- src/index.tsx
@@ -9,21 +9,27 @@ import {EnvironmentType} from '@walmart/allspark-foundation/Environment';
import {RootStackNavigation} from './navigation';
import {ENV, ENV_OVERRIDES} from '../env';
-// Override Text scaling
-if ((Text as any).defaultProps == null) {
- (Text as any).defaultProps = {};
-}
-(Text as any).defaultProps.allowFontScaling = false;
+// Set up font scaling for the app to avoid issues with settings overriding the app's font styles.
+export const setFontScaling = () => {
+ // Override Text scaling
+ if ((Text as any).defaultProps == null) {
+ (Text as any).defaultProps = {};
+ }
+ (Text as any).defaultProps.allowFontScaling = false;
+
+ // Override Text scaling in input fields
+ if ((TextInput as any).defaultProps == null) {
+ (TextInput as any).defaultProps = {};
+ }
+ (TextInput as any).defaultProps.allowFontScaling = false;
+};
-// Override Text scaling in input fields
-if ((TextInput as any).defaultProps == null) {
- (TextInput as any).defaultProps = {};
-}
-(TextInput as any).defaultProps.allowFontScaling = false;
/**
* Any setup that needs to happen before the app is registered.
*/
export const preRegister = () => {
+ // Set up font scaling for the app to avoid issues with settings overriding the app's font styles.
+ setFontScaling();
/**
* Pause notifications while the app is starting up.
*/
| Calling autoscaling defaults from preRegister | Calling autoscaling defaults from preRegister
|
0a6c9aba9683496dbc8859402247a77e3a6d245c | --- __tests__/navigation/__snapshots__/indexTest.tsx.snap
@@ -75,10 +75,6 @@ exports[`RootNav matches snapshot when app accessible 1`] = `
options={
Object {
"headerBackImage": undefined,
- "headerTitleStyle": Array [
- Object {},
- Object {},
- ],
"title": "navigation.signInFailed",
}
}
--- src/navigation/NavigationConstants.tsx
@@ -46,9 +46,6 @@ export const NavigationStyles = StyleSheet.create({
android: 4,
}),
},
- headerIconSpace: {
- marginLeft: 12,
- },
});
export const commonHeaderProps = {
--- src/navigation/index.tsx
@@ -26,7 +26,6 @@ import {
pinScreenTransitionOptions,
commonModalHeaderProps,
renderHeaderCloseImage,
- NavigationStyles,
} from './NavigationConstants';
import {ErrorScreen} from '../auth/ErrorScreen';
@@ -94,10 +93,6 @@ export const RootNav = () => {
...commonModalHeaderProps,
title: translate('navigation.signInFailed'),
headerBackImage: renderHeaderCloseImage,
- headerTitleStyle: [
- NavigationStyles.headerTitle,
- NavigationStyles.headerIconSpace,
- ],
}}
/>
<RootStack.Screen
| Removing unneeded style | Removing unneeded style
|
389e1cd7f79351396f7d61faef4339eb05c9a0ce | --- package-lock.json
@@ -3092,6 +3092,11 @@
"resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.94.tgz",
"integrity": "sha512-Nw48GsUKz2HkFr1qjavFld2pryaG9Jzn/QPT9C/xk7UgxTs4UeCmSJEZ99oLeSIV3TA9rgAH8dThkqzwmjP6ew=="
},
+ "@walmart/manager-approvals-miniapp": {
+ "version": "0.0.20",
+ "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.20.tgz",
+ "integrity": "sha512-E120x3njupYAHAhpAOmwe44Nva/eVk+q9HkcUYV0+bdDILyqEhrplyENGq1a2hoNZ7mYhuKdmcoIYFeZjV4pIQ=="
+ },
"@walmart/moment-walmart": {
"version": "1.0.4",
"resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.4.tgz",
--- package.json
@@ -73,6 +73,7 @@
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/inbox-mini-app": "0.0.94",
+ "@walmart/manager-approvals-miniapp": "0.0.20",
"@walmart/moment-walmart": "1.0.4",
"@walmart/push-to-talk-mini-app": "0.5.8",
"@walmart/react-native-env": "^0.1.0",
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx
@@ -55,6 +55,16 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
value: 'Settings',
},
},
+ {
+ menuType: 'SUBMENU',
+ icon: 'inbox-icon-checkmark',
+ title: translate('menu.ManagerApprovals'),
+ enabled: true,
+ action: {
+ type: 'NAVIGATE',
+ value: 'ManagerApprovals',
+ },
+ },
{
menuType: 'SUBMENU',
icon: 'feedback',
--- src/navigation/AssociateHallwayNav/index.tsx
@@ -20,6 +20,7 @@ import {Components, Properties} from '@walmart/push-to-talk-mini-app';
import {FeedbackMiniApp} 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 {ApprovalsMiniApp} from '@walmart/manager-approvals-miniapp';
import {
getInactivityTime,
@@ -165,6 +166,11 @@ const AssociateHallwayNav = () => {
header: Header,
}}
/>
+ <AssociateHallwayStack.Screen
+ name='ManagerApprovals'
+ component={ApprovalsMiniApp}
+ options={{headerShown: false}}
+ />
<AssociateHallwayStack.Screen
name='scheduleScreen'
component={ScheduleMiniApp}
--- src/translations/en-US.ts
@@ -38,6 +38,7 @@ export const enUS = {
feedback: 'Give feedback',
whatsNew: "What's new",
signOutText: 'Sign out',
+ ManagerApprovals: 'Manager Approvals',
},
welcome: {
associateTitle: 'Hello Associates!',
| adding manager approvals miniapp to me@walmart app | adding manager approvals miniapp to me@walmart app
|
f114222b739be6204297a302e74487ea6c59970d | --- lerna.json
@@ -1,5 +1,5 @@
{
- "version": "6.26.0-alpha.1",
+ "version": "6.24.0",
"npmClient": "yarn",
"changelogPreset": "angular",
"command": {
--- packages/core-services-allspark/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "6.26.0-alpha.1",
+ "version": "6.24.0",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/core-widget-registry/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-widget-registry",
- "version": "6.26.0-alpha.1",
+ "version": "6.24.0",
"description": "Repo for Me@Walmart related widget registries",
"author": "rlane1 <russell.lane@walmart.com>",
"license": "ISC",
--- packages/me-at-walmart-common/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-common",
- "version": "6.26.0-alpha.1",
+ "version": "6.24.0",
"description": "Common utilities and components for Me@Walmat mini apps",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/me-at-walmart-container/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-container",
- "version": "6.26.0-alpha.1",
+ "version": "6.24.0",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore: revert package version for publish | chore: revert package version for publish
|
bfc694fb32e9b90c760ea1c2338c85703241e80f | --- .looper.multibranch.yml
@@ -28,7 +28,7 @@ envs:
IOS_BASE_PATH: ./ios
ANDROID_BASE_PATH: ./android
TEMPLATE_REPO_BRANCH: feature/allspark-6443-integrate-ruler
- ANALYZE_PROCESS_ENABLED: true
+ ANDROID_ANALYZE_SIZE_ENABLED: true
us-market:
variables:
@@ -105,8 +105,11 @@ flows:
build-android-app:
- (name Build Android) export EXPO_PUBLIC_APP_VARIANT="${ENV}" && export FASTLANE_DISABLE_COLORS=1 && $RUBY_PATH/bundle exec fastlane build_android # set GRADLE_BUILD_FLAVOUR as Capitalized Env
- - (name Analyze Android App Bundle) export FASTLANE_DISABLE_COLORS=1 && $RUBY_PATH/bundle exec fastlane analyze_android_bundle_size
- - (name Log Android App Size) export FASTLANE_DISABLE_COLORS=1 && $RUBY_PATH/bundle exec fastlane log_android_appsize
+ - if: ${ANDROID_ANALYZE_SIZE_ENABLED}
+ then:
+ - (name Analyze Android App Bundle) export FASTLANE_DISABLE_COLORS=1 && $RUBY_PATH/bundle exec fastlane analyze_android_bundle_size
+ - (name Log Android App Size) export FASTLANE_DISABLE_COLORS=1 && $RUBY_PATH/bundle exec fastlane log_android_appsize
+
build-app: # overridden to remove setting gradle build flavor, no longer needed
--- package.json
@@ -101,7 +101,7 @@
"@walmart/digital-locks-mini-app": "1.4.4",
"@walmart/emergency-mini-app": "1.32.5",
"@walmart/exception-mini-app": "1.8.15",
- "@walmart/expo-config-plugins": "^0.2.0",
+ "@walmart/expo-config-plugins": "^0.4.0",
"@walmart/facilities-management-miniapp": "0.18.28",
"@walmart/feedback-all-spark-miniapp": "0.9.75",
"@walmart/financial-wellbeing-feature-app": "1.29.10",
--- yarn.lock
@@ -6912,12 +6912,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/expo-config-plugins@npm:^0.2.0":
- version: 0.2.1
- resolution: "@walmart/expo-config-plugins@npm:0.2.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fexpo-config-plugins%2F-%2F%40walmart%2Fexpo-config-plugins-0.2.1.tgz"
+"@walmart/expo-config-plugins@npm:^0.4.0":
+ version: 0.4.0
+ resolution: "@walmart/expo-config-plugins@npm:0.4.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fexpo-config-plugins%2F-%2F%40walmart%2Fexpo-config-plugins-0.4.0.tgz"
dependencies:
fs-extra: "npm:^11.2.0"
- checksum: 10c0/fd0dc25123a63f018deda94fe120a36d4777ed23adc2ebdc925899cbb825f5e82d461336be3fe114d12f545b55255cdfc27370d0f23cb9db5dfdd59cb465e56f
+ checksum: 10c0/2d4920cbc24b2ae3c46480345119dbe04fa3cab0d426bcb5c3b016a1bc80d77f21e0e57751b1ace88d0c5293050b1addfd72007526a7ee4d8284b5ef99cd71da
languageName: node
linkType: hard
@@ -7433,7 +7433,7 @@ __metadata:
"@walmart/digital-locks-mini-app": "npm:1.4.4"
"@walmart/emergency-mini-app": "npm:1.32.5"
"@walmart/exception-mini-app": "npm:1.8.15"
- "@walmart/expo-config-plugins": "npm:^0.2.0"
+ "@walmart/expo-config-plugins": "npm:^0.4.0"
"@walmart/facilities-management-miniapp": "npm:0.18.28"
"@walmart/feedback-all-spark-miniapp": "npm:0.9.75"
"@walmart/financial-wellbeing-feature-app": "npm:1.29.10"
| feat(ruler): ALLSPARK-6443 updated plugin package | feat(ruler): ALLSPARK-6443 updated plugin package
|
3b5fe68140a1329d77791e76fcb3bef88effbad9 | --- scripts/slack.sh
@@ -17,9 +17,10 @@ export https_proxy=http://sysproxy.wal-mart.com:8080
export http_proxy=http://sysproxy.wal-mart.com:8080
#GIT COMMIT INFORMATION
-GIT_COMMIT_AUTHOR=$(git log -1 --format="%aN")
-GIT_COMMIT_MESSAGE=$(git log --oneline --format=%B -n 1 HEAD | head -n 1)
-GIT_COMMIT_DATE=$(git log -1 --date=format:"%a %d-%B, %Y - %r" --format="%ad")
+GIT_COMMIT_AUTHOR=$(git log --skip 1 -1 --format="%aN")
+GIT_COMMIT_MESSAGE=$(git log --skip 1 --oneline --format=%B -n 1 HEAD | head -n 1)
+GIT_COMMIT_DATE=$(git log -1 --skip 1 --date=format:"%a %d-%B, %Y - %r" --format="%ad")
+GIT_COMMIT_ID=$(git log -1 --skip 1 --format="%H")
#To keep main Slack channel clean, posting test builds or builds from Forked repo to a different slack channel
if [[ "$GITHUB_BRANCH_URL" != "${ALLSPARK_CORE_GITHUB_URL}" ]] || [[ "$GITHUB_BRANCH_NAME" != "master" ]]; then
@@ -63,10 +64,10 @@ echo "*********************************"
#GIT COMMIT URL
-if [ -z "${GIT_COMMIT}" ]; then
+if [ -z "${GIT_COMMIT_ID}" ]; then
GIT_COMMIT_URL="N/A"
else
- GIT_COMMIT_URL="https://gecgithub01.walmart.com/allspark/allspark-core/commit/${GIT_COMMIT}"
+ GIT_COMMIT_URL="https://gecgithub01.walmart.com/allspark/allspark-core/commit/${GIT_COMMIT_ID}"
fi
#checking for Required ENV Variables
| added code to skip the last one (jenkinspan) (#340) | added code to skip the last one (jenkinspan) (#340)
* added code to skip the last one (jenkinspan)
* small fix
* corrected git commit id
Co-authored-by: Hitesh Arora <> |
311ff08a0fa6a9d78da66481ba2773abf918dc4e | --- packages/allspark-foundation/__tests__/HubFeature/Hub/Header.test.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from '../../utils';
-import { HubHeader } from '../../../src/Components/HubHeader';
+import { HubHeader } from '../../../src/HubFeature/HubHeader';
import { colors } from '@walmart/gtp-shared-components';
//Helper function to find a style object in the styles array
--- packages/allspark-foundation/__tests__/HubFeature/Hub/SelectionBannerFooterButtons.test.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { render, fireEvent } from '@testing-library/react-native';
-import { SelectionBannerFooterButtons } from '../../../src/Components/Onboarding/TeamSelection/Component/SelectionBannerFooterButtons';
+import { SelectionBannerFooterButtons } from '../../../src/HubFeature/Onboarding/TeamSelection/Component/SelectionBannerFooterButtons';
describe('SelectionBannerFooterButtons Tests', () => {
const mockCancelFunction = jest.fn();
--- packages/allspark-foundation/__tests__/HubFeature/Hub/TeamOnboardingCard.test.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from '../../utils';
-import { TeamOnboardingCard } from '../../../src/Components/Onboarding/TeamOnboarding/Component/TeamOnboardingCard';
+import { TeamOnboardingCard } from '../../../src/HubFeature/Onboarding/TeamOnboarding/Component/TeamOnboardingCard';
import { teamOnboardingCardsMockData } from '../../../__mocks__/data/teamOnboardingCards';
const props = teamOnboardingCardsMockData[0];
--- packages/allspark-foundation/__tests__/HubFeature/Hub/TeamOnboardingCards.test.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from '../../utils';
-import { TeamOnboardingCards } from '../../../src/Components/Onboarding/TeamOnboarding/Component/TeamOnboardingCards';
+import { TeamOnboardingCards } from '../../../src/HubFeature/Onboarding/TeamOnboarding/Component/TeamOnboardingCards';
import { teamOnboardingCardsMockData } from '../../../__mocks__/data/teamOnboardingCards';
const props = {
--- packages/allspark-foundation/__tests__/HubFeature/Hub/TeamOnboardingScreen.test.tsx
@@ -3,7 +3,7 @@ import { render, fireEvent, userEvent } from '../../utils';
import {
TeamOnboardingScreen,
TeamOnboardingScreenProps,
-} from '../../../src/Components/Onboarding/TeamOnboarding/Screens/TeamOnboardingScreen';
+} from '../../../src/HubFeature/Onboarding/TeamOnboarding/Screens/TeamOnboardingScreen';
import { teamOnboardingCardsMockData } from '../../../__mocks__/data/teamOnboardingCards';
const props: TeamOnboardingScreenProps = {
--- packages/allspark-foundation/__tests__/HubFeature/TeamOnboarding/SelectionBanner.test.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from '@testing-library/react-native';
-import { SelectionBanner } from '../../../src/Components/Onboarding/TeamSelection/Component/SelectionBanner';
+import { SelectionBanner } from '../../../src/HubFeature/Onboarding/TeamSelection/Component/SelectionBanner';
describe('SelectionBanner Rendering Tests', () => {
test('renders SelectionBanner with one team selected', () => {
--- packages/allspark-foundation/__tests__/HubFeature/TeamOnboarding/SelectionBannerFooterButtons.test.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { render, fireEvent } from '@testing-library/react-native';
-import { SelectionBannerFooterButtons } from '../../../src/Components/Onboarding/TeamSelection/Component/SelectionBannerFooterButtons';
+import { SelectionBannerFooterButtons } from '../../../src/HubFeature/Onboarding/TeamSelection/Component/SelectionBannerFooterButtons';
describe('SelectionBannerFooterButtons Tests', () => {
const mockCancelFunction = jest.fn();
--- packages/allspark-foundation/__tests__/HubFeature/TeamOnboarding/TeamSelection.test.tsx
@@ -1,13 +1,13 @@
import React from 'react';
import { render } from '../../utils';
-import { TeamSelectionList } from '../../../src/Components/Onboarding/TeamSelection/Component/TeamSelectionList';
+import { TeamSelectionList } from '../../../src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList';
describe('TeamSelectionList Component Tests', () => {
let props;
beforeEach(() => {
jest.mock(
- '../../../src/Components/Onboarding/TeamSelection/mockData',
+ '../../../src/HubFeature/Onboarding/TeamSelection/mockData',
() => ({
default: {
'Digital': ['Team A', 'Team B'],
--- packages/allspark-foundation/__tests__/HubFeature/__snapshots__/BottomSheet.test.tsx.snap
--- packages/allspark-foundation/src/HubFeature/HubImages/index.tsx
@@ -3,17 +3,17 @@ import { IHubContext } from './types';
export * from './types';
-const HubContext = createContext<IHubContext>({
+const HubImageContext = createContext<IHubContext>({
TeamImageComponent: () => null,
});
-export const HubProvider = HubContext.Provider;
+export const HubImageProvider = HubImageContext.Provider;
-const useHubContext = () => {
- return useContext(HubContext);
+const useHubImageContext = () => {
+ return useContext(HubImageContext);
};
export const useTeamHubImage = () => {
- const { TeamImageComponent } = useHubContext();
+ const { TeamImageComponent } = useHubImageContext();
return TeamImageComponent;
};
| File structure change for hub feature | File structure change for hub feature
|
7e371e73f326a755fc0731c1b552244075ce202a | --- package-lock.json
@@ -80,7 +80,7 @@
"@walmart/schedule-mini-app": "0.29.0",
"@walmart/settings-mini-app": "1.11.0",
"@walmart/shelfavailability-mini-app": "1.4.0",
- "@walmart/taskit-mini-app": "0.47.0",
+ "@walmart/taskit-mini-app": "0.48.0",
"@walmart/time-clock-mini-app": "0.30.0",
"@walmart/ui-components": "1.6.0",
"@walmart/welcomeme-mini-app": "0.73.0",
@@ -5991,9 +5991,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "0.47.0",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.47.0.tgz",
- "integrity": "sha512-xjTRf4DOGQsHv2kmlRIFq7Tn/4swUujKyE/AA5WAQs3SyLZfW8QGLyVJcklbXBfRmKFULI2I5oMw+2rXJiUl4A==",
+ "version": "0.48.0",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.48.0.tgz",
+ "integrity": "sha512-/erxG0lU0G0AiM+5KBjPRltIInNE7E3SeUC9Jez8Ha6XpZFj5w2KwIVlM23fjatN9mGJ/Ejic9nL1dePKoHdgA==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -25130,9 +25130,9 @@
"integrity": "sha512-RgedUC6dq2H3sFo8TY6tC71l4A4z3CIF6vIwtqM/D6CrCfQvkNZUX+lLUpWmQBfgXnDsAagumiGJmk9akqDDQA=="
},
"@walmart/taskit-mini-app": {
- "version": "0.47.0",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.47.0.tgz",
- "integrity": "sha512-xjTRf4DOGQsHv2kmlRIFq7Tn/4swUujKyE/AA5WAQs3SyLZfW8QGLyVJcklbXBfRmKFULI2I5oMw+2rXJiUl4A=="
+ "version": "0.48.0",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.48.0.tgz",
+ "integrity": "sha512-/erxG0lU0G0AiM+5KBjPRltIInNE7E3SeUC9Jez8Ha6XpZFj5w2KwIVlM23fjatN9mGJ/Ejic9nL1dePKoHdgA=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- package.json
@@ -122,7 +122,7 @@
"@walmart/schedule-mini-app": "0.29.0",
"@walmart/settings-mini-app": "1.11.0",
"@walmart/shelfavailability-mini-app": "1.4.0",
- "@walmart/taskit-mini-app": "0.47.0",
+ "@walmart/taskit-mini-app": "0.48.0",
"@walmart/time-clock-mini-app": "0.30.0",
"@walmart/ui-components": "1.6.0",
"@walmart/welcomeme-mini-app": "0.73.0",
| Updated taskIT versions | Updated taskIT versions
|
54d7da4f70fe2d111028059ea000a353f2cd11e7 | --- .looper.multibranch.yml
@@ -285,7 +285,7 @@ flows:
# Set the version code and build number of the native project
increment-version-code:
- - (name Check Versioning) git clone https://${GITHUB_TOKEN}@gecgithub01.walmart.com/allspark/allspark-core-version.git -b master
+ - (name Check Versioning) git clone https://${GITHUB_TOKEN}@gecgithub01.walmart.com/allspark/allspark-core-version.git -b main
- (set version code) bundle exec fastlane set_build
- exposeVars(./fastlane/fastlane-session.json)
- var(BUILD_NUMBER):
@@ -296,7 +296,7 @@ flows:
(name Set Versioning)
cd ${GIT_DIRECTORY}
git commit -am 'Incrementing build number/version code'
- git push origin master
+ git push origin main
cd ..
rm -rf ${GIT_DIRECTORY}
| updated master to main for core-version | updated master to main for core-version
|
72a07d4455d3edd3ff88bee703ed29c5e96e6ced | --- package.json
@@ -93,7 +93,7 @@
"@walmart/calling-mini-app": "0.7.60",
"@walmart/checkout-mini-app": "4.14.0",
"@walmart/compass-sdk-rn": "6.2.845",
- "@walmart/config-components": "4.9.3",
+ "@walmart/config-components": "4.10.1",
"@walmart/core-services": "~6.5.2",
"@walmart/core-services-allspark": "workspace:^",
"@walmart/core-widget-registry": "workspace:^",
--- yarn.lock
@@ -6949,9 +6949,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/config-components@npm:4.9.3":
- version: 4.9.3
- resolution: "@walmart/config-components@npm:4.9.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fconfig-components%2F-%2F%40walmart%2Fconfig-components-4.9.3.tgz"
+"@walmart/config-components@npm:4.10.1":
+ version: 4.10.1
+ resolution: "@walmart/config-components@npm:4.10.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fconfig-components%2F-%2F%40walmart%2Fconfig-components-4.10.1.tgz"
peerDependencies:
"@react-native-firebase/app": ">=15.1.1"
"@react-native-firebase/database": ">=15.1.1"
@@ -6964,7 +6964,7 @@ __metadata:
redux: ">=4.2.0"
reduxsauce: ">=1"
reselect: ">=4"
- checksum: 10c0/1cf055e284b687345203b4dce5816ec2c445bf6a5cff8e81c4bb5bb4c4e935f8c600d6d8e8bdb85ea5f8e20ce90698df8b8663b04ce364e5c00f9cd660ffbf5e
+ checksum: 10c0/82319a9435a5ce067a759ea67cfcb95dcc97879479d0efe7771387229f474076ab4692e7893a6aaabee06c49cd384bc7a49331038ecf5dbc851c4d660a089b49
languageName: node
linkType: hard
@@ -7598,7 +7598,7 @@ __metadata:
"@walmart/calling-mini-app": "npm:0.7.60"
"@walmart/checkout-mini-app": "npm:4.14.0"
"@walmart/compass-sdk-rn": "npm:6.2.845"
- "@walmart/config-components": "npm:4.9.3"
+ "@walmart/config-components": "npm:4.10.1"
"@walmart/core-services": "npm:~6.5.2"
"@walmart/core-services-allspark": "workspace:^"
"@walmart/core-widget-registry": "workspace:^"
| fix(version): updated the versions for config-component changes SSMP-10872 (#4482) | fix(version): updated the versions for config-component changes SSMP-10872 (#4482)
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
445b7190f0366c35714bbf5b543e44fd59c839e4 | --- src/screens/RosterScreen.tsx
@@ -78,16 +78,16 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => {
const sortByAssociateName = (associateA: Associate, associateB: Associate) =>
associateA?.firstName?.localeCompare(associateB.firstName || '') || NO_SORT;
+ const sortedAssociateList = (associatesList: Associate[]) =>
+ associatesList.sort(
+ (associateA: Associate, associateB: Associate) =>
+ checkUserIsTeamLead(associateB) - checkUserIsTeamLead(associateA) ||
+ checkUserClockedIn(associateB) - checkUserClockedIn(associateA) ||
+ sortByAssociateName(associateA, associateB),
+ );
useEffect(() => {
if (data?.getDailyRoster) {
- setAssociates(
- [...allAssociates].sort(
- (associateA: Associate, associateB: Associate) =>
- checkUserIsTeamLead(associateB) - checkUserIsTeamLead(associateA) ||
- checkUserClockedIn(associateB) - checkUserClockedIn(associateA) ||
- sortByAssociateName(associateA, associateB),
- ),
- );
+ setAssociates(sortedAssociateList(allAssociates));
}
}, [allAssociates]);
@@ -103,14 +103,7 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => {
const onFilter = (filteredAssociates: Associate[], filterId: FilterValue) => {
selectedFilter.current = filterId;
- setAssociates(
- [...filteredAssociates].sort(
- (associateA: Associate, associateB: Associate) =>
- checkUserIsTeamLead(associateB) - checkUserIsTeamLead(associateA) ||
- checkUserClockedIn(associateB) - checkUserClockedIn(associateA) ||
- sortByAssociateName(associateA, associateB),
- ),
- );
+ setAssociates(sortedAssociateList(filteredAssociates));
};
const handleScrollToTop = () => {
--- src/screens/RosterScreen.tsx
@@ -78,16 +78,16 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => {
const sortByAssociateName = (associateA: Associate, associateB: Associate) =>
associateA?.firstName?.localeCompare(associateB.firstName || '') || NO_SORT;
+ const sortedAssociateList = (associatesList: Associate[]) =>
+ associatesList.sort(
+ (associateA: Associate, associateB: Associate) =>
+ checkUserIsTeamLead(associateB) - checkUserIsTeamLead(associateA) ||
+ checkUserClockedIn(associateB) - checkUserClockedIn(associateA) ||
+ sortByAssociateName(associateA, associateB),
+ );
useEffect(() => {
if (data?.getDailyRoster) {
- setAssociates(
- [...allAssociates].sort(
- (associateA: Associate, associateB: Associate) =>
- checkUserIsTeamLead(associateB) - checkUserIsTeamLead(associateA) ||
- checkUserClockedIn(associateB) - checkUserClockedIn(associateA) ||
- sortByAssociateName(associateA, associateB),
- ),
- );
+ setAssociates(sortedAssociateList(allAssociates));
}
}, [allAssociates]);
@@ -103,14 +103,7 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => {
const onFilter = (filteredAssociates: Associate[], filterId: FilterValue) => {
selectedFilter.current = filterId;
- setAssociates(
- [...filteredAssociates].sort(
- (associateA: Associate, associateB: Associate) =>
- checkUserIsTeamLead(associateB) - checkUserIsTeamLead(associateA) ||
- checkUserClockedIn(associateB) - checkUserClockedIn(associateA) ||
- sortByAssociateName(associateA, associateB),
- ),
- );
+ setAssociates(sortedAssociateList(filteredAssociates));
};
const handleScrollToTop = () => {
| update sort logic | update sort logic
|
b9e339bde4f98f10df14640b74b111202a935d4b | --- targets/US/package.json
@@ -91,7 +91,7 @@
"@walmart/avp-shared-library": "0.10.1",
"@walmart/backroom-mini-app": "1.5.20",
"@walmart/calling-mini-app": "0.5.17",
- "@walmart/checkout-mini-app": "4.0.6",
+ "@walmart/checkout-mini-app": "4.0.8",
"@walmart/compass-sdk-rn": "5.19.15",
"@walmart/config-components": "4.4.5",
"@walmart/core-services": "~6.5.2",
--- yarn.lock
@@ -6153,9 +6153,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/checkout-mini-app@npm:4.0.6":
- version: 4.0.6
- resolution: "@walmart/checkout-mini-app@npm:4.0.6"
+"@walmart/checkout-mini-app@npm:4.0.8":
+ version: 4.0.8
+ resolution: "@walmart/checkout-mini-app@npm:4.0.8"
dependencies:
"@stomp/stompjs": "npm:^7.0.0"
cpc-input: "npm:^1.7.28"
@@ -6197,7 +6197,7 @@ __metadata:
react-native-wm-telemetry: ">=6"
react-redux: ^8.1.3
redux: ^4.0.5
- checksum: 10c0/13c7cf25d06dc365704ba0db799da57ce7bfcc2de1c8b12a87666f2f94dcfe3ccd589703ff34aaefb6cd8db5b92cd0faa64277a8675cfc50bfa990cd2ece5831
+ checksum: 10c0/522f2c6d52e574849b0b8b4c9f587a573128066417fb0f80d8ab911cd471ce201d315bb7e42fb9a69852127f6af8d7dfa78380cb4792155b33cd518ea951a78a
languageName: node
linkType: hard
@@ -7007,7 +7007,7 @@ __metadata:
"@walmart/avp-shared-library": "npm:0.10.1"
"@walmart/backroom-mini-app": "npm:1.5.20"
"@walmart/calling-mini-app": "npm:0.5.17"
- "@walmart/checkout-mini-app": "npm:4.0.6"
+ "@walmart/checkout-mini-app": "npm:4.0.8"
"@walmart/compass-sdk-rn": "npm:5.19.15"
"@walmart/config-components": "npm:4.4.5"
"@walmart/core-services": "npm:~6.5.2"
@@ -22060,7 +22060,16 @@ __metadata:
languageName: node
linkType: hard
-"use-sync-external-store@npm:1.2.0, use-sync-external-store@npm:^1.0.0":
+"use-sync-external-store@npm:1.2.2":
+ version: 1.2.2
+ resolution: "use-sync-external-store@npm:1.2.2"
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ checksum: 10c0/23b1597c10adf15b26ade9e8c318d8cc0abc9ec0ab5fc7ca7338da92e89c2536abd150a5891bf076836c352fdfa104fc7231fb48f806fd9960e0cbe03601abaf
+ languageName: node
+ linkType: hard
+
+"use-sync-external-store@npm:^1.0.0":
version: 1.2.0
resolution: "use-sync-external-store@npm:1.2.0"
peerDependencies:
@@ -23227,10 +23236,10 @@ __metadata:
linkType: hard
"zustand@npm:^4.3.9":
- version: 4.5.2
- resolution: "zustand@npm:4.5.2"
+ version: 4.5.5
+ resolution: "zustand@npm:4.5.5"
dependencies:
- use-sync-external-store: "npm:1.2.0"
+ use-sync-external-store: "npm:1.2.2"
peerDependencies:
"@types/react": ">=16.8"
immer: ">=9.0.6"
@@ -23242,6 +23251,6 @@ __metadata:
optional: true
react:
optional: true
- checksum: 10c0/aee26f11facebb39b016e89539f72a72c2c00151208907fc909c3cedd455728240e09e01d98ebd3b63a2a3518a5917eac5de6c853743ca55a1655296d750bb48
+ checksum: 10c0/d04469d76b29c7e4070da269886de4efdadedd3d3824dc2a06ac4ff62e3b5877f925e927afe7382de651829872b99adec48082f1bd69fe486149be666345e626
languageName: node
linkType: hard
| fix: update package version | fix: update package version
|
6ee0cd2cebb92928eb0e21e5b0a3e1bf260cf834 | --- 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.15.1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.15.0...@walmart/associate-exp-hub-mini-app@1.15.1) (2026-01-19)
+
+### Bug Fixes
+
+- **ui:** update lint fixes ([3fcbd84](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/3fcbd845a3f7690e1e6405be8a39ff774e8634da))
+
# [1.15.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.6...@walmart/associate-exp-hub-mini-app@1.15.0) (2026-01-19)
### Features
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.15.0",
+ "version": "1.15.1",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/associate-exp-hub-team-switcher/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.26.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.26.0...@walmart/associate-exp-hub-team-switcher@2.26.1) (2026-01-19)
+
+### Bug Fixes
+
+- **ui:** update lint fixes ([3fcbd84](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/3fcbd845a3f7690e1e6405be8a39ff774e8634da))
+
# [2.26.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.25.4...@walmart/associate-exp-hub-team-switcher@2.26.0) (2026-01-19)
### Features
--- packages/associate-exp-hub-team-switcher/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-team-switcher",
- "version": "2.26.0",
+ "version": "2.26.1",
"description": "Team Switcher module for Associate Experience Hub",
"packageManager": "yarn@4.6.0",
"engines": {
| chore(version): updating package version | chore(version): updating package version
- @walmart/associate-exp-hub-mini-app@1.15.1
- @walmart/associate-exp-hub-team-switcher@2.26.1
|
f62b217cd59deefaba061c49772818df35457c3a | --- package-lock.json
@@ -43,7 +43,7 @@
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/compass-sdk-rn": "5.7.4",
"@walmart/config-components": "4.2.8",
- "@walmart/copilot-mini-app": "^3.26.3",
+ "@walmart/copilot-mini-app": "3.26.3",
"@walmart/core-services": "~2.2.1",
"@walmart/core-services-allspark": "~2.12.8",
"@walmart/core-utils": "~2.0.5",
@@ -63,7 +63,7 @@
"@walmart/iteminfo-mini-app": "7.7.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
- "@walmart/metrics-mini-app": "0.17.8",
+ "@walmart/metrics-mini-app": "0.17.9",
"@walmart/mod-flex-mini-app": "1.13.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.12",
@@ -126,7 +126,6 @@
"react-native-circular-progress": "^1.3.7",
"react-native-code-push": "7.1.0",
"react-native-device-info": "^10.3.0",
- "react-native-drop-shadow": "^0.0.7",
"react-native-error-boundary": "^1.1.6",
"react-native-fast-image": "^8.6.3",
"react-native-flipper": "0.182.0",
@@ -9185,9 +9184,9 @@
}
},
"node_modules/@walmart/metrics-mini-app": {
- "version": "0.17.8",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.8.tgz",
- "integrity": "sha512-l0uo9pHVgwXwNZnhZqiRHxR45tHxzm4hRYZRzjIwOMXHdQEqB59G5IIRb8aN8MomCyrekKCFnReAPsOCAHY7LQ==",
+ "version": "0.17.9",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.9.tgz",
+ "integrity": "sha512-iRUcKgenHMgCohKdcmccUVZ/C1iKrsZRNPSsDx7sBjUw2moiKNdazPwdMnBTRr/63WNXPoS9HP3KCuqq6CQy7A==",
"hasInstallScript": true,
"dependencies": {
"base-64": "^1.0.0"
@@ -33388,9 +33387,9 @@
"integrity": "sha512-JGf97zQqXPczaYyCjbkSHZ/inO1AkewmMqaj9GgdIGQumgRL17lLsviNp2drH2yFLMee2JIMx2zMJ0g62LCuPw=="
},
"@walmart/metrics-mini-app": {
- "version": "0.17.8",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.8.tgz",
- "integrity": "sha512-l0uo9pHVgwXwNZnhZqiRHxR45tHxzm4hRYZRzjIwOMXHdQEqB59G5IIRb8aN8MomCyrekKCFnReAPsOCAHY7LQ==",
+ "version": "0.17.9",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.9.tgz",
+ "integrity": "sha512-iRUcKgenHMgCohKdcmccUVZ/C1iKrsZRNPSsDx7sBjUw2moiKNdazPwdMnBTRr/63WNXPoS9HP3KCuqq6CQy7A==",
"requires": {
"base-64": "^1.0.0"
}
--- package.json
@@ -104,7 +104,7 @@
"@walmart/iteminfo-mini-app": "7.7.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
- "@walmart/metrics-mini-app": "0.17.8",
+ "@walmart/metrics-mini-app": "0.17.9",
"@walmart/mod-flex-mini-app": "1.13.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.12",
| metrics version bump | metrics version bump
|
3d20145f2a3c57459a874ff5601e264c07a1f13e | --- core/src/core/translations.ts
@@ -329,10 +329,10 @@ export const esMX = {
title: 'Entrada requerida',
},
featureToggleGuard: {
- action: 'Got it',
- content: 'You’ll be able to use {{featureId}} when everything is fixed.',
- header: 'Feature Restricted',
- title: 'something isn’t available right now',
+ action: 'Lo tengo',
+ content: 'Podrás usar {{featureId}} cuando todo esté arreglado.',
+ header: 'Función Restringida',
+ title: '{{featureId}} no está disponible en este momento',
},
gotIt: 'Entendido',
language: {changeTitle: 'Elige tu idioma preferido'},
| ALLSPARK-4226: Added spanish translations | ALLSPARK-4226: Added spanish translations
|
e9cd01303f176b06f79768b102b72f3559e678cb | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/roster-mini-app",
- "version": "1.1.6",
+ "version": "1.1.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/roster-mini-app",
- "version": "1.1.6",
+ "version": "1.1.7",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.20.0",
@@ -67,7 +67,7 @@
"@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/wmconnect-mini-app": "1.1.6",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
@@ -12028,9 +12028,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
},
@@ -42017,9 +42017,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/roster-mini-app",
- "version": "1.1.6",
+ "version": "1.1.7",
"private": false,
"main": "dist/index.js",
"files": [
@@ -90,7 +90,7 @@
"@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/wmconnect-mini-app": "1.1.6",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
| Update version | Update version
|
bc2d74eb08b2e117f1ecb634f8ea9d0670cc44b1 | --- src/containers/ChatInput/ImageAttachments.tsx
@@ -52,13 +52,13 @@ export const ImageAttachments = (props: {
<TouchableOpacity
onPress={onRemovePress}
style={styles.imageButton}
- testID={'removeImageAttachment'}>
+ testID='removeImageAttachment'>
<CloseCircleFillIcon color={colors.gray[100]} size={24} />
</TouchableOpacity>
<Image
source={asset}
style={styles.image}
- testID={'imageAttachmentForChatInput'}
+ testID='imageAttachmentForChatInput'
/>
</View>
);
--- src/containers/ChatInput/ImageAttachments.tsx
@@ -52,13 +52,13 @@ export const ImageAttachments = (props: {
<TouchableOpacity
onPress={onRemovePress}
style={styles.imageButton}
- testID={'removeImageAttachment'}>
+ testID='removeImageAttachment'>
<CloseCircleFillIcon color={colors.gray[100]} size={24} />
</TouchableOpacity>
<Image
source={asset}
style={styles.image}
- testID={'imageAttachmentForChatInput'}
+ testID='imageAttachmentForChatInput'
/>
</View>
);
| update testID quotes | update testID quotes
|
8e63423d1af8c134aa2cc91eaa2cd4ec325d41c7 | --- .looper.yml
@@ -64,8 +64,7 @@ flows:
- (name Yarn Install) corepack enable
- (name Yarn Set Version) yarn set version 4.6.0
- (name Yarn Version) yarn --version
- - (name Install Dependencies) YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install
- - (name Commit Lockfile Changes) git add yarn.lock && git diff --staged --quiet || git commit -m "chore: update yarn.lock from CI [skip ci]" || true
+ - (name Install Dependencies) yarn install
buildPackages:
- (name Build Packages) yarn run build
| chore: update looper yml for yarn install | chore: update looper yml for yarn install
|
b0f553f953e27e073398ce5b18a962fa6e6b1f4d | --- package-lock.json
@@ -4988,9 +4988,9 @@
"integrity": "sha512-BKmYmlma1idy+z+xwgQakR7KhzY5MHWeb3Xnlfs3zfgEcUN+/GmYwmUsF1S2FgC0+l9lwZuHuXTiAVyA4eG6cw=="
},
"@walmart/ask-sam-mini-app": {
- "version": "1.0.5",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.0.5.tgz",
- "integrity": "sha512-4Mceq5RmBWFnVjwL50R877MfbL7pz5xgFAdUDrs/FkfYqrCGUTWjTq7VgVa9OsSBCIjsHU94wvQWDmR2pksP0Q==",
+ "version": "1.1.2",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.1.2.tgz",
+ "integrity": "sha512-sz6tIcfidLIq/p7c8GeqINPynO1yxvtVDZ2Ve1AYyzspzv2ydmYWvw+iZVN/bw2L/YFS9uxwGCNNOZsC+jVtJg==",
"requires": {
"@walmart/core-utils": "^1.0.9",
"apisauce": "^1.1.2",
@@ -5046,9 +5046,9 @@
}
},
"@walmart/core-services": {
- "version": "1.1.2",
- "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.1.2.tgz",
- "integrity": "sha512-gow6qUCOQkO2KixNwdNquV3xkAwTyani22nX/F/PSdeznGBoN99CALA5TY0f3lW6VTb3X+XjYnV1hB9ep3OxOg==",
+ "version": "1.2.0",
+ "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.2.0.tgz",
+ "integrity": "sha512-l38s4PZEvSn3MmjdWDUD16OvKJ50UYUU+jMQcRBkrDMK579oWRQMHXNSfiKVZ4AfDq9TPEUqdJI+O1inzfgeyQ==",
"requires": {
"@walmart/core-utils": "^1.0.10",
"axios": "^0.26.0",
--- package.json
@@ -76,9 +76,9 @@
"@walmart/allspark-home-mini-app": "0.5.45",
"@walmart/allspark-neon-core": "0.1.29",
"@walmart/amp-mini-app": "0.2.10",
- "@walmart/ask-sam-mini-app": "1.0.5",
+ "@walmart/ask-sam-mini-app": "1.1.2",
"@walmart/config-components": "3.0.2",
- "@walmart/core-services": "~1.1.2",
+ "@walmart/core-services": "~1.2.0",
"@walmart/core-services-allspark": "~1.7.2",
"@walmart/core-utils": "~1.0.10",
"@walmart/counts-component-miniapp": "0.0.35",
| bumping ask sam and core service versions | bumping ask sam and core service versions
|
03d187e62313f71525f1be30ad4d33e71e483fc6 | --- graphql.yml
@@ -8,17 +8,14 @@ applications:
- name: 'dev'
persistedQueries:
- name: 'GetAssociateClockStatus'
- hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214'
queryTemplate: 'src/queries/getAssociateClockStatus.graphql'
tags:
- 'v1'
- name: 'GetAssociateName'
- hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f'
queryTemplate: 'src/queries/getAssociateName.graphql'
tags:
- 'v1'
- name: 'GetDailyRoster'
- hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3'
queryTemplate: 'src/queries/getDailyRoster.graphql'
tags:
- 'v3'
@@ -33,17 +30,14 @@ applications:
- name: 'stage'
persistedQueries:
- name: 'GetAssociateClockStatus'
- hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214'
queryTemplate: 'src/queries/getAssociateClockStatus.graphql'
tags:
- 'v1'
- name: 'GetAssociateName'
- hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f'
queryTemplate: 'src/queries/getAssociateName.graphql'
tags:
- 'v1'
- name: 'GetDailyRoster'
- hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3'
queryTemplate: 'src/queries/getDailyRoster.graphql'
tags:
- 'v3'
| removed hash values | removed hash values
|
af865eb8c2a498919e552bcd38ac4596b5a0ac61 | --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MainTabsNavTest.tsx.snap
@@ -22,7 +22,22 @@ exports[`MainTabsNav matches snapshot when disabled from config 1`] = `
return t;
},[object Object]",
"tabBarBadge": undefined,
- "tabBarBadgeStyle": undefined,
+ "tabBarBadgeStyle": Object {
+ "alignItems": "center",
+ "borderColor": "#000000",
+ "borderWidth": 1,
+ "fontFamily": "Bogle-Bold",
+ "fontSize": 12,
+ "justifyContent": "center",
+ "left": 0,
+ "textAlign": "center",
+ "top": -8,
+ "transform": Array [
+ Object {
+ "scale": 0.85,
+ },
+ ],
+ },
"tabBarIcon": [Function],
"tabBarTestID": "Work",
}
@@ -68,7 +83,22 @@ exports[`MainTabsNav matches snapshot with badges 1`] = `
options={
{
"tabBarBadge": undefined,
- "tabBarBadgeStyle": undefined,
+ "tabBarBadgeStyle": Object {
+ "alignItems": "center",
+ "borderColor": "#000000",
+ "borderWidth": 1,
+ "fontFamily": "Bogle-Bold",
+ "fontSize": 12,
+ "justifyContent": "center",
+ "left": 0,
+ "textAlign": "center",
+ "top": -8,
+ "transform": Array [
+ Object {
+ "scale": 0.85,
+ },
+ ],
+ },
"tabBarIcon": [Function],
}
}
@@ -82,7 +112,22 @@ exports[`MainTabsNav matches snapshot with badges 1`] = `
return t;
},[object Object]",
"tabBarBadge": undefined,
- "tabBarBadgeStyle": undefined,
+ "tabBarBadgeStyle": Object {
+ "alignItems": "center",
+ "borderColor": "#000000",
+ "borderWidth": 1,
+ "fontFamily": "Bogle-Bold",
+ "fontSize": 12,
+ "justifyContent": "center",
+ "left": 0,
+ "textAlign": "center",
+ "top": -8,
+ "transform": Array [
+ Object {
+ "scale": 0.85,
+ },
+ ],
+ },
"tabBarIcon": [Function],
}
}
@@ -127,7 +172,22 @@ exports[`MainTabsNav matches snapshot with inbox shown and badges 1`] = `
options={
{
"tabBarBadge": undefined,
- "tabBarBadgeStyle": undefined,
+ "tabBarBadgeStyle": Object {
+ "alignItems": "center",
+ "borderColor": "#000000",
+ "borderWidth": 1,
+ "fontFamily": "Bogle-Bold",
+ "fontSize": 12,
+ "justifyContent": "center",
+ "left": 0,
+ "textAlign": "center",
+ "top": -8,
+ "transform": Array [
+ Object {
+ "scale": 0.85,
+ },
+ ],
+ },
"tabBarIcon": [Function],
}
}
@@ -184,7 +244,22 @@ exports[`MainTabsNav matches snapshot with no badges 1`] = `
options={
{
"tabBarBadge": undefined,
- "tabBarBadgeStyle": undefined,
+ "tabBarBadgeStyle": Object {
+ "alignItems": "center",
+ "borderColor": "#000000",
+ "borderWidth": 1,
+ "fontFamily": "Bogle-Bold",
+ "fontSize": 12,
+ "justifyContent": "center",
+ "left": 0,
+ "textAlign": "center",
+ "top": -8,
+ "transform": Array [
+ Object {
+ "scale": 0.85,
+ },
+ ],
+ },
"tabBarIcon": [Function],
}
}
@@ -198,7 +273,22 @@ exports[`MainTabsNav matches snapshot with no badges 1`] = `
return t;
},[object Object]",
"tabBarBadge": undefined,
- "tabBarBadgeStyle": undefined,
+ "tabBarBadgeStyle": Object {
+ "alignItems": "center",
+ "borderColor": "#000000",
+ "borderWidth": 1,
+ "fontFamily": "Bogle-Bold",
+ "fontSize": 12,
+ "justifyContent": "center",
+ "left": 0,
+ "textAlign": "center",
+ "top": -8,
+ "transform": Array [
+ Object {
+ "scale": 0.85,
+ },
+ ],
+ },
"tabBarIcon": [Function],
"tabBarTestID": "Work",
}
--- src/navigation/AssociateHallwayNav/Tabs/index.tsx
@@ -22,11 +22,7 @@ import {getStore} from '@walmart/redux-store';
import {FontIcon} from '@walmart/ui-components';
import {useTranslation} from '@walmart/core-services/Translations';
import {navigate} from '@walmart/react-native-shared-navigation';
-import {
- TaskItMiniApp,
- getTaskTabBarBadge,
- taskTabBarBadgeStyle,
-} from '@walmart/taskit-mini-app';
+import {TaskItMiniApp, getTaskTabBarBadge} from '@walmart/taskit-mini-app';
import CopilotMiniApp, {useWorkBadgeCount} from '@walmart/copilot-mini-app';
import InboxMiniApp, {getInboxBadgeCount} from '@walmart/inbox-mini-app';
import {colors} from '@walmart/gtp-shared-components';
@@ -198,7 +194,7 @@ export const MainTabsNav = () => {
iconSelected: 'task-active',
}),
tabBarBadge: taskTabBadge,
- tabBarBadgeStyle: taskTabBarBadgeStyle,
+ tabBarBadgeStyle: styles.tabBarBadge,
}}
/>
) : (
@@ -246,7 +242,7 @@ export const MainTabsNav = () => {
iconSelected: 'team-filled',
}),
tabBarBadge: myTeamTabBadge,
- tabBarBadgeStyle: taskTabBarBadgeStyle,
+ tabBarBadgeStyle: styles.tabBarBadge,
}}
/>
)}
@@ -264,7 +260,7 @@ export const MainTabsNav = () => {
iconSelected: 'task-active',
}),
tabBarBadge: total || undefined,
- tabBarBadgeStyle: taskTabBarBadgeStyle,
+ tabBarBadgeStyle: styles.tabBarBadge,
}}
/>
) : (
--- src/navigation/AssociateHallwayNav/Tabs/styles.ts
@@ -1,3 +1,4 @@
+import {colors} from '@walmart/gtp-shared-components';
import {Platform, StyleSheet} from 'react-native';
export default StyleSheet.create({
@@ -27,7 +28,10 @@ export default StyleSheet.create({
fontFamily: 'Bogle-Bold',
},
tabBarBadge: {
- top: -5,
+ top: -8,
+ left: 0,
+ borderWidth: 1,
+ borderColor: colors.black,
transform: [{scale: 0.85}],
justifyContent: 'center',
alignItems: 'center',
| fix(DWORK-1744): fixing badge alignment on bottom tab | fix(DWORK-1744): fixing badge alignment on bottom tab
|
49231cc13bfef16fb1d65150faab2cca70a19411 | --- core/src/core/syncDeviceLanguage.ts
@@ -33,6 +33,9 @@ export const syncDeviceLanguage = async () => {
language = await AllsparkTranslationClient.getDeviceLanguage();
}
+ // Device language sometimes comes back with an _. We have a standard of having languages like en-US.
+ language = language.replace('_', '-');
+
// Change language on translation client (i18n)
const currentLanguage = AllsparkTranslationClient.language;
if (language !== currentLanguage) {
| fix: language fix for - and _ | fix: language fix for - and _
|
77f7198b8ba000b3bf1ebb1cffb9c64584a954a5 | --- package-lock.json
@@ -32,7 +32,7 @@
"@sharcoux/slider": "^6.1.1",
"@terrylinla/react-native-sketch-canvas": "0.8.0",
"@walmart/allspark-graphql-client": "^0.1.0",
- "@walmart/allspark-home-mini-app": "0.6.14",
+ "@walmart/allspark-home-mini-app": "0.6.16",
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "0.2.13",
"@walmart/ask-sam-chat-components": "^0.2.7",
@@ -4599,9 +4599,9 @@
}
},
"node_modules/@walmart/allspark-home-mini-app": {
- "version": "0.6.14",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.6.14.tgz",
- "integrity": "sha512-1Jak0EwsCpGx2yYBXPEL4k+Hew8sRVozFVheoSFw/tbE38VLRGeW53M4okA55fLYouos++EzyLxPnvSwvPly0g==",
+ "version": "0.6.16",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.6.16.tgz",
+ "integrity": "sha512-p9xeX5TwdRhALRVDql46s/KQH9msIwl6F5U1UABl2XgrfOjp7cP+j7f5csSMgIVrNa/3pTEzgSeksEwsc+MBBw==",
"peerDependencies": {
"@react-navigation/native": "*",
"@react-navigation/stack": "*",
@@ -24978,9 +24978,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.6.14",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.6.14.tgz",
- "integrity": "sha512-1Jak0EwsCpGx2yYBXPEL4k+Hew8sRVozFVheoSFw/tbE38VLRGeW53M4okA55fLYouos++EzyLxPnvSwvPly0g=="
+ "version": "0.6.16",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.6.16.tgz",
+ "integrity": "sha512-p9xeX5TwdRhALRVDql46s/KQH9msIwl6F5U1UABl2XgrfOjp7cP+j7f5csSMgIVrNa/3pTEzgSeksEwsc+MBBw=="
},
"@walmart/allspark-neon-core": {
"version": "0.1.31",
--- package.json
@@ -75,7 +75,7 @@
"@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-home-mini-app": "0.6.16",
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "0.2.13",
"@walmart/ask-sam-chat-components": "^0.2.7",
| home mini app updated version | home mini app updated version
|
833e005139f3c02be54db9993ef1723c59a1fd05 | --- .looper.multibranch.yml
@@ -4,7 +4,7 @@ inherit: "job:///metropolis/metroloop/metroloop-parent"
## Whenever you update the nodes, please update it at the two-place, below line & the global variable LOOPER_NODES
##
-node: ((osx||stable_osx)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI39&&!MAC-LAB-MINI32&&!MAC-LAB-MINI22)
+node: ((osx||stable_osx)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI39&&!MAC-LAB-MINI32&&!MAC-LAB-MINI22&&!MAC-DRFQLAB-MINI22)
tools:
@@ -47,7 +47,7 @@ cache:
envs:
global:
variables:
- LOOPER_NODES: "((osx||stable_osx)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI39&&!MAC-LAB-MINI32&&!MAC-LAB-MINI22)"
+ LOOPER_NODES: "((osx||stable_osx)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI39&&!MAC-LAB-MINI32&&!MAC-LAB-MINI22&&!MAC-DRFQLAB-MINI22)"
GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}"
TMPDIR: /tmp
| removing bad node | removing bad node
|
d20011b3bfcd91b542945cc942fd462849fcc178 | --- 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(drop34): enforcement date | fix(drop34): enforcement date
|
52ec426556cd6dd7856cd81d480a6d15a4d0b01f | --- packages/associate-exp-hub-mini-app/src/components/shared/EditTeamListItem/EditTeamListItem.tsx
@@ -174,13 +174,15 @@ export const EditTeamSelectionListItem = ({
accessibilityLabel={`${teamName} team image`}
source={{
uri: teamImage.uri,
+ cache: 'force-cache',
}}
+ resizeMethod='resize'
placeholder={teamImage.blurHash}
style={[styles.teamImage]}
resizeMode='contain'
onError={(error: any) => {
AssociateExpHubLogger.error('ImageFailure', {
- message: `Image failure for ${teamId}: ${error}`,
+ message: `Image failure for ${teamId}: ${JSON.stringify(error)}`,
});
const errorEventName = formatTelemetryEventName('img_fail');
AssociateExpHubTelemetry.logEvent(errorEventName, {
--- packages/associate-exp-hub-team-switcher/src/components/shared/EditTeamListItem/EditTeamListItem.tsx
@@ -174,13 +174,15 @@ export const EditTeamSelectionListItem = ({
accessibilityLabel={`${teamName} team image`}
source={{
uri: teamImage.uri,
+ cache: 'force-cache',
}}
+ resizeMethod='resize'
placeholder={teamImage.blurHash}
style={[styles.teamImage]}
resizeMode='contain'
onError={(error: any) => {
logger.error('ImageFailure', {
- message: `Image failure for ${teamId}: ${error}`,
+ message: `Image failure for ${teamId}: ${JSON.stringify(error)}`,
});
const errorEventName = formatTelemetryEventName('img_fail');
TeamSwitcherTelemetry.logEvent(errorEventName, {
| fix(ui): improve team icon loading and error handling | fix(ui): improve team icon loading and error handling
|
feea823f6d5a3031017ecd366cbb5e4f49e3ad8f | --- package-lock.json
@@ -37,7 +37,7 @@
"@walmart/amp-mini-app": "1.0.11",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.3.56",
- "@walmart/attendance-mini-app": "0.55.0",
+ "@walmart/attendance-mini-app": "0.56.0",
"@walmart/config-components": "4.0.2",
"@walmart/core-services": "~1.4.11",
"@walmart/core-services-allspark": "~2.2.2",
@@ -4805,9 +4805,9 @@
}
},
"node_modules/@walmart/attendance-mini-app": {
- "version": "0.55.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.55.0.tgz",
- "integrity": "sha512-t2ZeAWYDRln4YbCzFOJcob6I0iYIOAgRm+1ELFegr2ZezPgl7yAFmnw8kpTIrixmaearKem1sSeJoWAAjWTtfw==",
+ "version": "0.56.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.56.0.tgz",
+ "integrity": "sha512-3h6D75EvhINKYhtAUjTsHJqmjRJEbvKmF3fJy/Cf/cbFKCyb8VhgkgMJu2O85RITID6mrG70IP//4YAlM8ouUw==",
"dependencies": {
"@walmart/gta-react-native-calendars": "0.0.16",
"moment-timezone": "0.5.40",
@@ -25094,9 +25094,9 @@
}
},
"@walmart/attendance-mini-app": {
- "version": "0.55.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.55.0.tgz",
- "integrity": "sha512-t2ZeAWYDRln4YbCzFOJcob6I0iYIOAgRm+1ELFegr2ZezPgl7yAFmnw8kpTIrixmaearKem1sSeJoWAAjWTtfw==",
+ "version": "0.56.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.56.0.tgz",
+ "integrity": "sha512-3h6D75EvhINKYhtAUjTsHJqmjRJEbvKmF3fJy/Cf/cbFKCyb8VhgkgMJu2O85RITID6mrG70IP//4YAlM8ouUw==",
"requires": {
"@walmart/gta-react-native-calendars": "0.0.16",
"moment-timezone": "0.5.40",
--- package.json
@@ -79,7 +79,7 @@
"@walmart/amp-mini-app": "1.0.11",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.3.56",
- "@walmart/attendance-mini-app": "0.55.0",
+ "@walmart/attendance-mini-app": "0.56.0",
"@walmart/config-components": "4.0.2",
"@walmart/core-services": "~1.4.11",
"@walmart/core-services-allspark": "~2.2.2",
| Updated AMA to 0.56.0 | Updated AMA to 0.56.0
|
d2a56c5053193a061a4f8f5a840aebe548263c6e | --- packages/allspark-foundation-hub/src/Store/Hooks/useGetAllTeamsOfStore.ts
@@ -57,7 +57,7 @@ export const useGetAllTeamsOfStore = () => {
date: moment().format('YYYY-MM-DD'),
storeNbr: workingSite as string,
},
- skip: !isOffSite || isSiteDC || !workingSite || !countryCode,
+ skip: isSiteDC || !workingSite || !countryCode,
errorPolicy: 'all',
onCompleted: (response: any) => {
logger.info('useGetTeamsByStoreQuery response', {
--- packages/allspark-foundation-hub/src/SupplyChain/Hooks/useGetSupplyChainTeamsByStore.ts
@@ -83,7 +83,7 @@ export const useGetSupplyChainAllTeamsBySite = () => {
date: moment().format('YYYY-MM-DD'),
},
errorPolicy: 'all',
- skip: !isOffSite || !isSiteDC || !workingSite || !countryCode,
+ skip: !isSiteDC || !workingSite || !countryCode,
fetchPolicy: 'cache-first',
onCompleted: (response) => {
const sections = createTeamsSectionsByOpsArea(
| fix(ui): update query skip config | fix(ui): update query skip config
|
09be829e5cd2378f0de29e5b2a3e52b5b5ab1dae | --- package.json
@@ -67,7 +67,7 @@
"@walmart/allspark-me-mini-app": "0.1.0",
"@walmart/ask-sam-mini-app": "0.17.0",
"@walmart/config-components": "1.0.21",
- "@walmart/feedback-all-spark-miniapp": "0.0.48",
+ "@walmart/feedback-all-spark-miniapp": "0.0.49",
"@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 |
c4ca8929fd522a43ce261dcbc3db4a44b7805043 | --- packages/allspark-foundation/__tests__/Site/connect.test.ts
@@ -0,0 +1,107 @@
+import { AllsparkReduxStore } from '../../src/Redux';
+import {
+ fetchHomeSite,
+ fetchWorkingSite,
+ connectSiteService,
+} from '../../src/Site/connect';
+
+import { AllsparkSiteService, Site } from '../../src/Site/types';
+
+import { SiteSelectors } from '../../src/Site/selectors';
+
+describe('Site/connect.ts', () => {
+ let siteService: AllsparkSiteService;
+
+ beforeEach(() => {
+ siteService = {
+ fetchHomeSite: jest.fn(),
+ fetchWorkingSite: jest.fn(),
+ };
+ });
+
+ afterEach(() => {
+ jest.clearAllMocks();
+ });
+
+ describe('fetchHomeSite', () => {
+ test('should dispatch HOME_SITE_SUCCESS action when fetch is successful', async () => {
+ const mockData = {
+ country: 'USA',
+ siteId: 123,
+ } as Site;
+
+ (siteService.fetchHomeSite as jest.Mock).mockResolvedValue(mockData);
+
+ await fetchHomeSite.call(siteService);
+
+ expect(siteService.fetchHomeSite).toHaveBeenCalled();
+
+ expect(
+ AllsparkReduxStore.select(SiteSelectors.getHomeSiteLoaded)
+ ).toEqual(true);
+
+ expect(AllsparkReduxStore.select(SiteSelectors.getHomeSiteData)).toEqual(
+ mockData
+ );
+ });
+
+ test('should dispatch HOME_SITE_ERROR action when fetch fails', async () => {
+ const error = new Error('Test error');
+
+ (siteService.fetchHomeSite as jest.Mock).mockRejectedValue(error);
+
+ await expect(fetchHomeSite.call(siteService)).rejects.toThrow(error);
+
+ expect(AllsparkReduxStore.select(SiteSelectors.getHomeSiteError)).toEqual(
+ error?.message
+ );
+ });
+ });
+
+ describe('fetchWorkingSite', () => {
+ test('should dispatch WORKING_SITE_SUCCESS action when fetch is successful', async () => {
+ const mockData = {
+ country: 'USA',
+ siteId: 123,
+ } as Site;
+
+ (siteService.fetchWorkingSite as jest.Mock).mockResolvedValue(mockData);
+
+ await fetchWorkingSite.call(siteService);
+
+ expect(siteService.fetchWorkingSite).toHaveBeenCalled();
+
+ expect(
+ AllsparkReduxStore.select(SiteSelectors.getWorkingSiteLoaded)
+ ).toEqual(true);
+
+ expect(
+ AllsparkReduxStore.select(SiteSelectors.getWorkingSiteData)
+ ).toEqual(mockData);
+ });
+
+ test('should dispatch WORKING_SITE_ERROR action when fetch fails', async () => {
+ const error = new Error('Test error');
+
+ (siteService.fetchWorkingSite as jest.Mock).mockRejectedValue(error);
+
+ await expect(fetchWorkingSite.call(siteService)).rejects.toThrow(error);
+
+ expect(
+ AllsparkReduxStore.select(SiteSelectors.getWorkingSiteError)
+ ).toEqual(error?.message);
+ });
+ });
+
+ describe('connectSiteService', () => {
+ let extendedSite: AllsparkSiteService;
+
+ beforeEach(() => {
+ extendedSite = connectSiteService(siteService);
+ });
+
+ test('should return an object with extended methods', () => {
+ expect(extendedSite).toEqual(expect.objectContaining(siteService));
+ });
+ });
+});
| added tests for the site/connect file | added tests for the site/connect file
|
ea959159f297e5cfab395d7ab96f7d7a9478b4dc | --- package.json
@@ -145,7 +145,7 @@
"@walmart/shelfavailability-mini-app": "1.5.23",
"@walmart/store-feature-orders": "1.26.7",
"@walmart/taskit-mini-app": "2.81.15",
- "@walmart/time-clock-mini-app": "2.362.0",
+ "@walmart/time-clock-mini-app": "2.364.0",
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch",
"@walmart/welcomeme-mini-app": "0.90.3",
--- yarn.lock
@@ -7156,9 +7156,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/time-clock-mini-app@npm:2.362.0":
- version: 2.362.0
- resolution: "@walmart/time-clock-mini-app@npm:2.362.0"
+"@walmart/time-clock-mini-app@npm:2.364.0":
+ version: 2.364.0
+ resolution: "@walmart/time-clock-mini-app@npm:2.364.0"
dependencies:
"@react-navigation/elements": "npm:^1.3.1"
moment-timezone: "npm:0.5.33"
@@ -7201,7 +7201,7 @@ __metadata:
uuid: ^3.3.2
wifi-store-locator: ^1.4.0
xdate: ^0.8.2
- checksum: 10c0/65068e135446f89b7847f0f628c3f8c5ccbf03ebc0cedc2e1218a171673ae03ac8a84b7c1627094f32c5ee1ac5e4103a48509061dd4a23710495b6c10805acf6
+ checksum: 10c0/92a13ccd6cae5949bc728b2fca1333d26eb7ea22ee591bdae7eed8fb0be2e7523307646b967d998ce9d7c2707958136ed781f136a7a5ac297629c9582b51159f
languageName: node
linkType: hard
@@ -7795,7 +7795,7 @@ __metadata:
"@walmart/shelfavailability-mini-app": "npm:1.5.23"
"@walmart/store-feature-orders": "npm:1.26.7"
"@walmart/taskit-mini-app": "npm:2.81.15"
- "@walmart/time-clock-mini-app": "npm:2.362.0"
+ "@walmart/time-clock-mini-app": "npm:2.364.0"
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch"
"@walmart/welcomeme-mini-app": "npm:0.90.3"
| tcma v2.364.0 | tcma v2.364.0
|
23553a2470dffbfaad4a810dd52d68bbe56e8d62 | --- package-lock.json
@@ -5429,13 +5429,9 @@
}
},
"@walmart/payrollsolution_miniapp": {
- "version": "0.126.61",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.126.61.tgz",
- "integrity": "sha512-VYMbf5DXM7XVeo3ucIXsoQc6l/K3ZrfPAlmUJXAoT+DPGfy1/L924JpWx6lT4ikDY96OYnq3g/77gehjw7QgAw==",
- "requires": {
- "@walmart/gtp-shared-components": "^1.8.8",
- "crypto-js": "^3.3.0"
- }
+ "version": "0.126.54",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.126.54.tgz",
+ "integrity": "sha512-dZWkGTwqfadSRv7JesZGOVEQp2xGKS9/XIeDkX+Hm58EX/0mj+QVxtT8S4tCwof18a3a77WsYcZye+yGDaTwCw=="
},
"@walmart/price-changes-mini-app": {
"version": "1.4.11",
@@ -5443,9 +5439,9 @@
"integrity": "sha512-uCC2Hk4fRcAC49c4uuIpLpD3geWjG7uAQByH8ygekhQKPrijc5/F1/z+Tkt3zFQ88BlsE+ihQ6z3AWFzAyuNGw=="
},
"@walmart/profile-feature-app": {
- "version": "0.0.54",
- "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.54.tgz",
- "integrity": "sha512-MYgnwCmognyeXlOyT2QvqFR3f62/Ot/VJNgtDD+u4LevnT26HMBKr3s4/XKczfhdU52U2l1SuYFsFV/R/IRmQw=="
+ "version": "0.0.55",
+ "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.55.tgz",
+ "integrity": "sha512-2CE3xLCM4ZIpHL+sZdVEnoFXNW8qjseP1CSLVth9R+miE+tz6jipd1U0JD5ts8ayBZQvMqNTx9mPVA/4IBRxzg=="
},
"@walmart/push-to-talk-mini-app": {
"version": "1.8.9",
--- package.json
@@ -105,7 +105,7 @@
"@walmart/pay-stub-miniapp": "0.7.1",
"@walmart/payrollsolution_miniapp": "0.126.54",
"@walmart/price-changes-mini-app": "1.4.11",
- "@walmart/profile-feature-app": "0.0.54",
+ "@walmart/profile-feature-app": "0.0.55",
"@walmart/push-to-talk-mini-app": "1.8.9",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "^0.2.0",
| Bumped profile app to 0.0.55 | Bumped profile app to 0.0.55
|
508ef7a3f7e63553fb5660062b345b7007d46661 | --- packages/allspark-utils/__tests__/hooks/useAppStateTest.ts
@@ -3,6 +3,7 @@ import { AppState } from 'react-native';
import {
useAppState,
useAppStateEffect,
+ PRIORITY,
} from '../../src/hooks/useAppState';
const mockAppStateListeners = {};
@@ -44,5 +45,20 @@ test('useAppStateEffect', () => {
// Update Effect
act(() => mockAppStateListeners.change('background'));
jest.runAllTimers();
- expect(onAppStateChange).toHaveBeenCalledWith('background');
+ expect(onAppStateChange).toHaveBeenCalledWith('background')
+
+});
+
+test('useAppStateEffectWithHighPriority', () => {
+ const onAppStateChange = jest.fn();
+ AppState.currentState = 'active';
+ renderHook(() => useAppStateEffect(onAppStateChange, PRIORITY.HIGH));
+
+ // Initial Effect
+ expect(onAppStateChange).toHaveBeenCalledWith('active');
+
+ // Update Effect
+ act(() => mockAppStateListeners.change('background'));
+ expect(onAppStateChange).toHaveBeenCalledWith('background')
+
});
| fix: one more hook | fix: one more hook
|
d31eefc9e0017c067db874fab147700b2f431f29 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.20.0",
+ "version": "1.21.0",
"main": "dist/index.js",
"files": [
"dist"
@@ -81,7 +81,7 @@
"@typescript-eslint/parser": "^5.37.0",
"@walmart/allspark-authentication": "6.1.4",
"@walmart/allspark-foundation": "6.20.0",
- "@walmart/allspark-foundation-hub": "1.2.19",
+ "@walmart/allspark-foundation-hub": "1.2.20",
"@walmart/allspark-graphql-client": "^1.4.6",
"@walmart/allspark-http-client": "6.1.4",
"@walmart/config-components": "4.4.0",
@@ -99,7 +99,7 @@
"@walmart/react-native-shared-navigation": "6.1.4",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
- "@walmart/roster-mini-app": "2.16.0",
+ "@walmart/roster-mini-app": "2.17.0",
"@walmart/ui-components": "1.15.1",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
--- yarn.lock
@@ -5992,9 +5992,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation-hub@npm:1.2.19":
- version: 1.2.19
- resolution: "@walmart/allspark-foundation-hub@npm:1.2.19"
+"@walmart/allspark-foundation-hub@npm:1.2.20":
+ version: 1.2.20
+ resolution: "@walmart/allspark-foundation-hub@npm:1.2.20"
dependencies:
"@reduxjs/toolkit": "npm:^1.9.7"
"@shopify/flash-list": "npm:~1.6.4"
@@ -6010,7 +6010,7 @@ __metadata:
react: "*"
react-native: "*"
react-native-safe-area-context: 4.x
- checksum: 10c0/5264b54a010b6c2096d9a17b23c9b2c7e43a89ad8b8b157a31a939b71b9084f70bd2beeabffad6c14ee92eb6ae5165960fd9febaffc9e0347c3e6a25513052ec
+ checksum: 10c0/4939a9fdccde36fa3f96736dec128f6e17ec759ffb920b4b6c7fa1190d05970073f5045846e69fdbcb85d2b46cccea4c0a64eca5385c48fe9c37aae712469a4a
languageName: node
linkType: hard
@@ -6398,7 +6398,7 @@ __metadata:
"@typescript-eslint/parser": "npm:^5.37.0"
"@walmart/allspark-authentication": "npm:6.1.4"
"@walmart/allspark-foundation": "npm:6.20.0"
- "@walmart/allspark-foundation-hub": "npm:1.2.19"
+ "@walmart/allspark-foundation-hub": "npm:1.2.20"
"@walmart/allspark-graphql-client": "npm:^1.4.6"
"@walmart/allspark-http-client": "npm:6.1.4"
"@walmart/config-components": "npm:4.4.0"
@@ -6416,7 +6416,7 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-sumo-sdk": "npm:2.6.0"
"@walmart/redux-store": "npm:3.7.0"
- "@walmart/roster-mini-app": "npm:2.16.0"
+ "@walmart/roster-mini-app": "npm:2.17.0"
"@walmart/ui-components": "npm:1.15.1"
babel-jest: "npm:^29.2.1"
chance: "npm:^1.1.11"
@@ -6597,9 +6597,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:2.16.0":
- version: 2.16.0
- resolution: "@walmart/roster-mini-app@npm:2.16.0"
+"@walmart/roster-mini-app@npm:2.17.0":
+ version: 2.17.0
+ resolution: "@walmart/roster-mini-app@npm:2.17.0"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6641,7 +6641,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/f2b2c442e69c175df15b029f298f928a60d12ea65ef7dc81187df1799c26a3d7175ef61865047442baaf64a6d8814ebbc99a0f019bc63fda3b6baa2d47a9b1af
+ checksum: 10c0/e4a7232b0310be628d9a6108ceb3dca4d24ae534bfae59035444e342c92d16f52eea91e3eb3f51a2f470e7a08fe1b6ef3590f5e8090593f9b63a414ce5bbf366
languageName: node
linkType: hard
| Update my team mini app version | Update my team mini app version
|
e6eff0c79c71d737f9367b58099fde22b1e0732b | --- package-lock.json
@@ -3348,9 +3348,9 @@
"integrity": "sha512-HYOJB0nAi7ygO52kSNtqccXhYvAYZVr4gqQIpXZWGjrAMuwC4qQ2YzE8Yp07R4AYTd6XfpYjBsLesr4JcYXlKA=="
},
"@walmart/functional-components": {
- "version": "1.0.32",
- "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-1.0.32.tgz",
- "integrity": "sha512-m1Gvg2/CqDHcfQZ1nYk6QYZ67m11Vi12x/I+IgrqOi5git5kDXuKZgQn47e/N1MLaZ+TWHPWTuZ2Zc2FI1icAw==",
+ "version": "1.0.33",
+ "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-1.0.33.tgz",
+ "integrity": "sha512-uTot5wLaLCYn+ymzpT2pKLH4xitmyjNVPYam/LtrAMbZRzIDnxFmBCQ0kv9h/vfNGpdvGnQJanG8mVSXDgFc7A==",
"requires": {
"axios": "^0.19.2"
}
@@ -3411,9 +3411,9 @@
"integrity": "sha512-f4KuVr2K+ITDD3vmd1FWWAdHYKUyd+/PGu3s0YpFCAMe97jEm9En9xcDT1iEqM+3+kpcunwzm/E09vexdz8VMQ=="
},
"@walmart/metrics-mini-app": {
- "version": "0.4.11",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.4.11.tgz",
- "integrity": "sha512-GqO2SEWNHFhjDbf9Gy3rEYKubg2TPxdH1KBAxpeAfemQbupsL5EpNXS4xRPGlOBf9Unsv6jqsQwpu+vJynRofA==",
+ "version": "0.4.12",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.4.12.tgz",
+ "integrity": "sha512-LAuiMisSTPFCaaTJ9J1DuaLW0va59dbskY8YiaTY/dziEtojPEkF4Sw4kX24pIQLEuKiipdBrjiWiuetSyR6JA==",
"requires": {
"@types/base-64": "^1.0.0",
"apisauce": "^1.1.2",
--- package.json
@@ -78,7 +78,7 @@
"@walmart/counts-component-miniapp": "0.0.20",
"@walmart/exception-mini-app": "0.36.0",
"@walmart/feedback-all-spark-miniapp": "0.0.58",
- "@walmart/functional-components": "1.0.32",
+ "@walmart/functional-components": "1.0.33",
"@walmart/gta-react-native-calendars": "0.0.15",
"@walmart/gtp-shared-components": "^1.2.0",
"@walmart/impersonation-mini-app": "1.0.19",
| updated functional components. | updated functional components.
|
11c44c70e30482a320322a6a26a0f046962efc93 | --- __tests__/app/tabs/for-you.test.tsx
@@ -74,7 +74,7 @@ describe('ForYouScreen', () => {
});
it('renders the ForYouHeader with correct props', () => {
- const rendered = render(<ForYouScreen />);
+ render(<ForYouScreen />);
expect(ForYouHeader).toHaveBeenCalledWith(
{name: 'Header Placeholder'},
undefined
--- __tests__/navigation/USHallway/AssociateHallwayNav/AssociateHallwayNavTest.tsx
@@ -108,19 +108,6 @@ const mockUseState = useState as jest.Mock;
const mockUseSelector = useSelector as jest.Mock;
const setDrawerLocked = jest.fn();
-// Mock navigation props
-const mockNavigationProps = {
- navigation: {
- navigate: jest.fn(),
- goBack: jest.fn(),
- dispatch: jest.fn(),
- },
- route: {
- key: 'test-key',
- name: 'AssociateHallway',
- params: {},
- },
-} as any;
describe('DrawerNav', () => {
beforeEach(() => {
| fix(lint): lint fix | fix(lint): lint fix
|
71f9a40239864d876536b7e2293ce705331a7767 | --- targets/US/package.json
@@ -86,7 +86,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.24.7",
"@walmart/associate-listening-mini-app": "1.2.7",
- "@walmart/attendance-mini-app": "3.85.0",
+ "@walmart/attendance-mini-app": "3.86.0",
"@walmart/avp-feature-app": "0.10.7",
"@walmart/avp-shared-library": "0.10.1",
"@walmart/backroom-mini-app": "1.5.20",
--- yarn.lock
@@ -6001,9 +6001,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/attendance-mini-app@npm:3.85.0":
- version: 3.85.0
- resolution: "@walmart/attendance-mini-app@npm:3.85.0"
+"@walmart/attendance-mini-app@npm:3.86.0":
+ version: 3.86.0
+ resolution: "@walmart/attendance-mini-app@npm:3.86.0"
dependencies:
"@walmart/wfm-ui": "npm:^0.2.26"
moment-timezone: "npm:0.5.40"
@@ -6033,7 +6033,7 @@ __metadata:
redux-saga: ^1.2.0
reselect: ^4.1.0
wfm-allspark-data-library: ^3.3.0
- checksum: 10c0/e3d2514586b11ca7073dfec86d663c0f10d98331093fb611ca81351f7b4cf95510416a1e484daa5a4b6b0c7cb5c99610aeb47c9307c37629b186c6ab19e437fd
+ checksum: 10c0/4cf9ae307e78266b6c4306b92e645ae89b8f0995a206b68a6397ae72d7f508d31e737ffabf5194719d5946179c8f40b94b4ac95ed24577d9402e2c70eb491c26
languageName: node
linkType: hard
@@ -7002,7 +7002,7 @@ __metadata:
"@walmart/ask-sam-chat-components": "npm:^0.2.7"
"@walmart/ask-sam-mini-app": "npm:1.24.7"
"@walmart/associate-listening-mini-app": "npm:1.2.7"
- "@walmart/attendance-mini-app": "npm:3.85.0"
+ "@walmart/attendance-mini-app": "npm:3.86.0"
"@walmart/avp-feature-app": "npm:0.10.7"
"@walmart/avp-shared-library": "npm:0.10.1"
"@walmart/backroom-mini-app": "npm:1.5.20"
| bump ama verion 3.86.0 | bump ama verion 3.86.0
|
086a7044b91c409456b45d81760debde0de3733f | --- package-lock.json
@@ -39,7 +39,7 @@
"@walmart/attendance-mini-app": "0.86.0",
"@walmart/compass-sdk-rn": "3.16.1",
"@walmart/config-components": "4.1.0-rc.4",
- "@walmart/copilot-mini-app": "^1.14.0",
+ "@walmart/copilot-mini-app": "^1.19.1",
"@walmart/core-services": "~2.0.19",
"@walmart/core-services-allspark": "~2.10.15",
"@walmart/core-utils": "~2.0.5",
@@ -4937,9 +4937,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "1.14.0",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.14.0.tgz",
- "integrity": "sha512-w1UihVd5/rx5XdrUIfFkxzehkHHBFvs3HJyhMw99I+l0YuN+GP3yp/NhFfmUn2s2RU3bFE4uFUajhIrH1/PL4g==",
+ "version": "1.19.1",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.19.1.tgz",
+ "integrity": "sha512-+aPZGHfLPUcFlDgqZ72hAujcRsZEXt69rjeYnFiUb2mcTzoMgLCvuELOm0vkjbRnEJ5AElez4CpaO02YFIbtvA==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -25208,9 +25208,9 @@
}
},
"@walmart/copilot-mini-app": {
- "version": "1.14.0",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.14.0.tgz",
- "integrity": "sha512-w1UihVd5/rx5XdrUIfFkxzehkHHBFvs3HJyhMw99I+l0YuN+GP3yp/NhFfmUn2s2RU3bFE4uFUajhIrH1/PL4g=="
+ "version": "1.19.1",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.19.1.tgz",
+ "integrity": "sha512-+aPZGHfLPUcFlDgqZ72hAujcRsZEXt69rjeYnFiUb2mcTzoMgLCvuELOm0vkjbRnEJ5AElez4CpaO02YFIbtvA=="
},
"@walmart/core-services": {
"version": "2.0.19",
--- package.json
@@ -81,7 +81,7 @@
"@walmart/attendance-mini-app": "0.86.0",
"@walmart/compass-sdk-rn": "3.16.17",
"@walmart/config-components": "4.1.0-rc.4",
- "@walmart/copilot-mini-app": "^1.14.0",
+ "@walmart/copilot-mini-app": "^1.19.1",
"@walmart/core-services": "~2.0.19",
"@walmart/core-services-allspark": "~2.10.15",
"@walmart/core-utils": "~2.0.5",
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx
@@ -66,7 +66,6 @@ import {PayStubMiniApp} from '@walmart/pay-stub-miniapp';
import {ReturnsMiniApp} from '@walmart/returns-mini-app';
import {EmergencyBannerScreen} from '@walmart/emergency-mini-app';
import {TopstockMiniApp} from '@walmart/topstock-mini-app';
-import CopilotMiniApp from '@walmart/copilot-mini-app';
//--- Main Stack --- //
const MainStack = createStackNavigator();
@@ -196,7 +195,6 @@ export const MainStackNav = () => {
<MainStack.Screen name='paystub' component={PayStubMiniApp} />
<MainStack.Screen name={FWB_NAV_SCREEN_NAME} component={FWBNav} />
<MainStack.Screen name='AlarmDetails' component={AlarmDetailNav} />
- <MainStack.Screen name='copilot' component={CopilotMiniApp} />
</MainStack.Group>
{/* These screens do not have a Header defined. We provide one from Core */}
--- src/navigation/AssociateHallwayNav/Tabs/index.tsx
@@ -28,7 +28,7 @@ import {
taskTabBarBadgeStyle,
} from '@walmart/taskit-mini-app';
import {Hooks} from '@walmart/push-to-talk-mini-app';
-import {WorkNav} from '@walmart/copilot-mini-app';
+import CopilotMiniApp from '@walmart/copilot-mini-app';
import InboxMiniApp, {getInboxBadgeCount} from '@walmart/inbox-mini-app';
import {colors} from '@walmart/gtp-shared-components';
@@ -244,8 +244,8 @@ export const MainTabsNav = () => {
)}
{copilot.enabled ? (
<MainTabs.Screen
- name='copilotTab'
- component={WorkNav}
+ name='copilot'
+ component={CopilotMiniApp}
options={{
tabBarIcon: renderTabBarIcon.bind({
icon: 'inactive-task',
--- src/translations/en-US.ts
@@ -110,7 +110,7 @@ export const enUS_common = {
},
navigation: {
askSam: 'Ask Sam',
- copilotTab: 'Work',
+ copilot: 'Work',
emergency: 'Message Details',
featureRestrictions: 'Feature restrictions',
feedback: 'Feedback',
--- src/translations/es-MX.ts
@@ -117,7 +117,7 @@ export const esMX_common = {
},
navigation: {
askSam: 'Ask Sam',
- copilotTab: 'Work',
+ copilot: 'Work',
emergency: 'Message Details',
featureRestrictions: 'Restricciones',
feedback: 'Comentarios',
| feat: update package and update nav | feat: update package and update nav
|
558b00bb28d1b7960d5af2421c740cd42e6a0e6a | --- package-lock.json
@@ -5439,9 +5439,9 @@
"integrity": "sha512-uCC2Hk4fRcAC49c4uuIpLpD3geWjG7uAQByH8ygekhQKPrijc5/F1/z+Tkt3zFQ88BlsE+ihQ6z3AWFzAyuNGw=="
},
"@walmart/profile-feature-app": {
- "version": "0.0.56",
- "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.56.tgz",
- "integrity": "sha512-ObOGgf5AM/WdmHk2flIpgLrfmrkmjSawHEI3cC/pWw69l5t+ZTBuSgk/P/YhDioLnNTVmgpCd+w710v+bGsTYQ=="
+ "version": "0.0.57",
+ "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.57.tgz",
+ "integrity": "sha512-C1CT4TtQXi0VdqkuibNIkxX0CaiQsfJTS0nxpEmibi0gImW3KysRXEYD89kwNd0ieptF7hyKpFTYpY33Wr68Ew=="
},
"@walmart/push-to-talk-mini-app": {
"version": "1.8.9",
--- package.json
@@ -105,7 +105,7 @@
"@walmart/pay-stub-miniapp": "0.7.1",
"@walmart/payrollsolution_miniapp": "0.126.54",
"@walmart/price-changes-mini-app": "1.4.11",
- "@walmart/profile-feature-app": "0.0.56",
+ "@walmart/profile-feature-app": "0.0.57",
"@walmart/push-to-talk-mini-app": "1.8.9",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "^0.2.0",
| Bump version of profile app. | Bump version of profile app.
|
75936b0de764f880639321ec6e7713e435f6d9a8 | --- __tests__/utils/teams-test.ts
@@ -164,26 +164,26 @@ describe('sortWorkgroupKeysForTeamList', () => {
},
];
const expectedSortedWorkGroups = [
- 'food & consumables',
+ 'stocking',
'digital',
+ 'food & consumables',
'front end',
'fuel',
'gm',
'pharmacy',
- 'stocking',
'vision',
'other',
];
- const deliBakeryTeamId = '1000329';
- const deliBakeryWorkGroup = 'food & consumables';
+ const stockingTeamId = '1000333';
+ const stockingWorkgroup = 'stocking';
const teamDataWithOthers = [...getTeamsByStoreData, ...otherTeams];
const transformedTeams = groupTeamsByWorkgroupTransform(
teamDataWithOthers,
- deliBakeryTeamId,
+ stockingTeamId,
);
const sortedWorkgroups = sortWorkgroupKeysForTeamList(
Object.keys(transformedTeams),
- deliBakeryWorkGroup,
+ stockingWorkgroup,
);
expect(sortedWorkgroups).toStrictEqual(expectedSortedWorkGroups);
},
--- src/components/TeamList.tsx
@@ -1,4 +1,4 @@
-import React, {useEffect, useMemo, useState} from 'react';
+import React, {useMemo, useState} from 'react';
import {useSelector} from 'react-redux';
import {
StyleProp,
@@ -353,8 +353,7 @@ export const TeamChatCard = (props: {
const primaryTeamData = useGetTeamById(primaryTeam);
const {loading, data} = useGetTeamsByStore();
const teamDetails = useMemo(() => {
- const primaryTeamInfo = primaryTeamData.data?.getTeamById;
- return primaryTeamInfo;
+ return primaryTeamData.data?.getTeamById;
}, [primaryTeamData.data?.getTeamById]);
const clockedInCount = teamDetails?.mewClockedInCount ?? 0;
const absentCount = teamDetails?.mewAbsentCount ?? 0;
@@ -362,7 +361,7 @@ export const TeamChatCard = (props: {
const allTeams = (data?.getTeamsByStore || []) as Team[];
return groupTeamsByWorkgroupTransform(allTeams, primaryTeam);
}, [primaryTeam, data?.getTeamsByStore]);
- const primaryWorkGroup = teamDetails?.workgroup ?? '';
+ const primaryWorkGroup = teamDetails?.workgroup?.toLowerCase() ?? '';
const sortedWorkgroupKeys = sortWorkgroupKeysForTeamList(
Object.keys(teamsByWorkgroup),
@@ -373,6 +372,7 @@ export const TeamChatCard = (props: {
if (!sortedWorkgroupKeys || sortedWorkgroupKeys.length <= 0) {
return null;
}
+
return sortedWorkgroupKeys.map((workgroupKey, workgroupNdx) => {
const teams = teamsByWorkgroup[workgroupKey].sort(sortTeamsAscComparator);
if (isNil(teams) || teams.length === 0) {
--- src/utils/teams.ts
@@ -43,6 +43,9 @@ export const sortWorkgroupKeysForTeamList = (
if (a === usersOwnWorkgroupKey.toLowerCase()) {
return -1;
}
+ if (b === usersOwnWorkgroupKey.toLowerCase()) {
+ return 1;
+ }
if (a > b) return 1;
else if (a < b) return -1;
else return 0;
--- __tests__/utils/teams-test.ts
@@ -164,26 +164,26 @@ describe('sortWorkgroupKeysForTeamList', () => {
},
];
const expectedSortedWorkGroups = [
- 'food & consumables',
+ 'stocking',
'digital',
+ 'food & consumables',
'front end',
'fuel',
'gm',
'pharmacy',
- 'stocking',
'vision',
'other',
];
- const deliBakeryTeamId = '1000329';
- const deliBakeryWorkGroup = 'food & consumables';
+ const stockingTeamId = '1000333';
+ const stockingWorkgroup = 'stocking';
const teamDataWithOthers = [...getTeamsByStoreData, ...otherTeams];
const transformedTeams = groupTeamsByWorkgroupTransform(
teamDataWithOthers,
- deliBakeryTeamId,
+ stockingTeamId,
);
const sortedWorkgroups = sortWorkgroupKeysForTeamList(
Object.keys(transformedTeams),
- deliBakeryWorkGroup,
+ stockingWorkgroup,
);
expect(sortedWorkgroups).toStrictEqual(expectedSortedWorkGroups);
},
--- src/components/TeamList.tsx
@@ -1,4 +1,4 @@
-import React, {useEffect, useMemo, useState} from 'react';
+import React, {useMemo, useState} from 'react';
import {useSelector} from 'react-redux';
import {
StyleProp,
@@ -353,8 +353,7 @@ export const TeamChatCard = (props: {
const primaryTeamData = useGetTeamById(primaryTeam);
const {loading, data} = useGetTeamsByStore();
const teamDetails = useMemo(() => {
- const primaryTeamInfo = primaryTeamData.data?.getTeamById;
- return primaryTeamInfo;
+ return primaryTeamData.data?.getTeamById;
}, [primaryTeamData.data?.getTeamById]);
const clockedInCount = teamDetails?.mewClockedInCount ?? 0;
const absentCount = teamDetails?.mewAbsentCount ?? 0;
@@ -362,7 +361,7 @@ export const TeamChatCard = (props: {
const allTeams = (data?.getTeamsByStore || []) as Team[];
return groupTeamsByWorkgroupTransform(allTeams, primaryTeam);
}, [primaryTeam, data?.getTeamsByStore]);
- const primaryWorkGroup = teamDetails?.workgroup ?? '';
+ const primaryWorkGroup = teamDetails?.workgroup?.toLowerCase() ?? '';
const sortedWorkgroupKeys = sortWorkgroupKeysForTeamList(
Object.keys(teamsByWorkgroup),
@@ -373,6 +372,7 @@ export const TeamChatCard = (props: {
if (!sortedWorkgroupKeys || sortedWorkgroupKeys.length <= 0) {
return null;
}
+
return sortedWorkgroupKeys.map((workgroupKey, workgroupNdx) => {
const teams = teamsByWorkgroup[workgroupKey].sort(sortTeamsAscComparator);
if (isNil(teams) || teams.length === 0) {
--- src/utils/teams.ts
@@ -43,6 +43,9 @@ export const sortWorkgroupKeysForTeamList = (
if (a === usersOwnWorkgroupKey.toLowerCase()) {
return -1;
}
+ if (b === usersOwnWorkgroupKey.toLowerCase()) {
+ return 1;
+ }
if (a > b) return 1;
else if (a < b) return -1;
else return 0;
| fix bug in sorting logic | fix bug in sorting logic
|
01aae19a9edee344b86b44fa3f024ab8798c45cf | --- src/channels/transforms.ts
@@ -14,7 +14,7 @@ export const normalizeChannelSnapshot = (
snapshot: ChannelQuerySnapshot,
viewerId: string,
) =>
- snapshot.docs.reduce(
+ snapshot?.docs.reduce(
(accm, doc) => {
const data = doc.data();
const id = doc.ref.path;
--- src/screens/MessagesScreen.tsx
@@ -96,7 +96,11 @@ export const MessagesScreen = () => {
}
}
- channelDocument.update(channelUpdates);
+ try {
+ channelDocument.update(channelUpdates);
+ } catch (e) {
+ // firestore/not-found: channel document doesn't exist yet.
+ }
} else {
await channelDocument.set(
{
--- src/utils/messages.ts
@@ -16,7 +16,7 @@ const createReadReceipt = (config: {
return 'Sending';
}
- if (!channel.recentRead) {
+ if (!channel?.recentRead) {
return 'Delivered';
}
--- src/channels/transforms.ts
@@ -14,7 +14,7 @@ export const normalizeChannelSnapshot = (
snapshot: ChannelQuerySnapshot,
viewerId: string,
) =>
- snapshot.docs.reduce(
+ snapshot?.docs.reduce(
(accm, doc) => {
const data = doc.data();
const id = doc.ref.path;
--- src/screens/MessagesScreen.tsx
@@ -96,7 +96,11 @@ export const MessagesScreen = () => {
}
}
- channelDocument.update(channelUpdates);
+ try {
+ channelDocument.update(channelUpdates);
+ } catch (e) {
+ // firestore/not-found: channel document doesn't exist yet.
+ }
} else {
await channelDocument.set(
{
--- src/utils/messages.ts
@@ -16,7 +16,7 @@ const createReadReceipt = (config: {
return 'Sending';
}
- if (!channel.recentRead) {
+ if (!channel?.recentRead) {
return 'Delivered';
}
| Fix minor issues found on prod | Fix minor issues found on prod
|
d21e163eaa0a292d83369c919914b9f8bf22d19e | --- src/navigation/AssociateHallwayNav/index.tsx
@@ -58,6 +58,7 @@ const AssociateHallwayNav = () => {
useEffect(() => {
dispatch(StartupActionCreators.miniAppNavStackLoaded());
+ AskSamMiniApp.init();
}, [dispatch]);
return (
| Adding ask sam init call | Adding ask sam init call
|
4a7e04244ac61dceaa6ab47bea6bb00310d4acbd | --- .looper.multibranch.yml
@@ -1,6 +1,6 @@
# Multi-Target
inherit:
-# - job:///misc-looper-templates/looper-template-exporter:mac-nodes-template.yml
+ - job:///misc-looper-templates/looper-template-exporter:mac-nodes-template.yml
- job:///ssmp-looper-templates:looper-node-auditor.yml
node: linux
@@ -51,7 +51,6 @@ envs:
## Global Variables
global:
variables:
- NODES: (stable_osx||asda||osx_glass||osx)&&!dualcore
PROJECT: allspark-core
PROJECT_GITHUB_URL: https://gecgithub01.walmart.com/allspark/allspark-core
PROJECT_REPO_NAME: allspark/allspark-core
@@ -1076,7 +1075,10 @@ flows:
then:
- var(PACKAGING = "zip")
- (name Proximity Upload - App) $RUBY_PATH/bundle exec fastlane upload_to_proximity ARTIFACT_ID:${artifactId} BUILD_OUTPUT:${buildOutput} VERSION:${version} PACKAGING:${PACKAGING} GENERATE_POM:true
- - (name Proximity Upload - SourceMap) $RUBY_PATH/bundle exec fastlane upload_to_proximity ARTIFACT_ID:${artifactId} BUILD_OUTPUT:${SOURCEMAP} VERSION:${version} PACKAGING:${SOURCEMAP_PACKAGING} GENERATE_POM:false
+ - try:
+ - (name Proximity Upload - SourceMap) $RUBY_PATH/bundle exec fastlane upload_to_proximity ARTIFACT_ID:${artifactId} BUILD_OUTPUT:${SOURCEMAP} VERSION:${version} PACKAGING:${SOURCEMAP_PACKAGING} GENERATE_POM:false
+ catch:
+ - warn()
- if: ${LOG_PARSER}
then:
- (name Proximity Upload - LogParser) $RUBY_PATH/bundle exec fastlane upload_to_proximity ARTIFACT_ID:${artifactId} BUILD_OUTPUT:${LOG_PARSER_REPORT} VERSION:${version} PACKAGING:html GENERATE_POM:false
| Update .looper.multibranch.yml | Update .looper.multibranch.yml |
cd6349f2c5b98ef645eb7103e7fa88e0c21a6978 | --- src/index.tsx
@@ -24,7 +24,6 @@ import {initNotificationListeners} from './notification';
import {CodeOfConductProvider} from './codeOfConduct/provider';
import {initi18n} from './translations';
-
export const LOGGER_FIELDS = {id: 'texting-mini-app'};
// TODO: This needs to be reconsidered when we go production
--- src/index.tsx
@@ -24,7 +24,6 @@ import {initNotificationListeners} from './notification';
import {CodeOfConductProvider} from './codeOfConduct/provider';
import {initi18n} from './translations';
-
export const LOGGER_FIELDS = {id: 'texting-mini-app'};
// TODO: This needs to be reconsidered when we go production
| lint made me delete ONE empty line | lint made me delete ONE empty line
|
5a5d1349efad800d41f3c553460fe9e95f061c39 | --- __tests__/biometrics/BiometricSagasTest.tsx
@@ -88,6 +88,7 @@ describe('handleBiometricPrompt', () => {
expect(iterator.throw(error).value).toEqual(
call(logger.error, 'Error prompting biometric', {
message: error.message,
+ biometric,
}),
);
});
--- src/biometrics/BiometricSagas.ts
@@ -17,8 +17,8 @@ import {
import {getShouldPromptOnCheckError} from './utils';
export function* handleBiometricPrompt(): any {
+ const biometric = yield select(getBiometricType);
try {
- const biometric = yield select(getBiometricType);
const {success} = yield call(Biometrics.simplePrompt, {
promptMessage: i18next.t('biometric.promptMessage'),
});
@@ -36,6 +36,7 @@ export function* handleBiometricPrompt(): any {
} catch (error) {
yield call(logger.error, 'Error prompting biometric', {
message: error.message,
+ biometric,
});
}
}
| Adding biometric type to failed prompt splunk log | Adding biometric type to failed prompt splunk log
|
b485e78bcd2b5155e5e934506feef00dbd7041a7 | --- package-lock.json
@@ -57,7 +57,7 @@
"@walmart/iteminfo-mini-app": "7.1.4",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.3.0",
- "@walmart/metrics-mini-app": "0.9.64",
+ "@walmart/metrics-mini-app": "0.9.65",
"@walmart/mod-flex-mini-app": "1.6.3",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.14",
@@ -5521,9 +5521,9 @@
}
},
"node_modules/@walmart/metrics-mini-app": {
- "version": "0.9.64",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.64.tgz",
- "integrity": "sha512-FPWu5RcSgjHZHSoJ3msxjHFI85lOuFIabSXwW2zpi4dp6uMHxYGMk2Toq3rqtZQLXqtkMVcWt6twM59aSP3wsA==",
+ "version": "0.9.65",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.65.tgz",
+ "integrity": "sha512-ah2pANVfx7iAT5wpg7wXyBdlYuqDbTXUvze6UzHOTpqLLBZLxs/UR9BqcQQWr1gHhFFDQLg3XSNEOnQqmqOI/Q==",
"dependencies": {
"@types/base-64": "^1.0.0",
"apisauce": "1.1.2",
@@ -25307,9 +25307,9 @@
"integrity": "sha512-75CISnPJImPcR33NhMkwonct2dJbHWVVZsL7DaADW28V2K2WEKLd+k0CvSHubjhxD2DAHKQf/gH0YZ3jDjiEtA=="
},
"@walmart/metrics-mini-app": {
- "version": "0.9.64",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.64.tgz",
- "integrity": "sha512-FPWu5RcSgjHZHSoJ3msxjHFI85lOuFIabSXwW2zpi4dp6uMHxYGMk2Toq3rqtZQLXqtkMVcWt6twM59aSP3wsA==",
+ "version": "0.9.65",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.65.tgz",
+ "integrity": "sha512-ah2pANVfx7iAT5wpg7wXyBdlYuqDbTXUvze6UzHOTpqLLBZLxs/UR9BqcQQWr1gHhFFDQLg3XSNEOnQqmqOI/Q==",
"requires": {
"@types/base-64": "^1.0.0",
"apisauce": "1.1.2",
--- package.json
@@ -99,7 +99,7 @@
"@walmart/iteminfo-mini-app": "7.1.4",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.3.0",
- "@walmart/metrics-mini-app": "0.9.64",
+ "@walmart/metrics-mini-app": "0.9.65",
"@walmart/mod-flex-mini-app": "1.6.3",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.14",
| metrics version bump | metrics version bump
|
71b3fc25a19c7b4f33dc68b29e3f102137d3475b | --- core/src/manifest.ts
@@ -54,7 +54,6 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => {
require('./storeInfo').StoreInfoFeature,
require('./features/timeclock').default,
require('./whatsNew').WhatsNewFeature,
- require('@walmart/checkout-mini-app').CheckoutMiniApp,
];
// Me@Walmart US Only Associate Features
@@ -72,6 +71,7 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => {
require('./features/wmConnect').WMConnectFeature,
require('@walmart/manager-approvals-miniapp').default,
require('@walmart/translator-mini-app').default,
+ require('@walmart/checkout-mini-app').CheckoutMiniApp,
);
}
| moved to other array as per PR comments | moved to other array as per PR comments
|
0afcb583a92e22cf0d1f95480a9f8898c3c44e41 | --- src/constants.ts
@@ -10,6 +10,9 @@ export const WHOLE_STORE = 'WHOLESTORE';
export const PUSHTOTALK_SCREEN_NAME = 'myTeam.pushToTalk';
export const LOCAL_STORAGE_KEY_PREFIX = 'texting-';
export const SEVEN_DAYS_AGO_TIMESTAMP = daysAgoTimestamp(7);
+export const ASC_SORT = -1;
+export const DESC_SORT = 1;
+export const NO_SORT = 0;
export enum messageTypes {
AUDIO = 'AUDIO',
--- src/utils/teams.ts
@@ -1,5 +1,6 @@
import {Team} from '../types';
import {isNil} from 'lodash';
+import {ASC_SORT, DESC_SORT, NO_SORT} from '../constants';
type GroupedTeamData = {
[key: string]: Team[];
@@ -35,20 +36,20 @@ export const sortWorkgroupKeysForTeamList = (
.map((workgroupName) => workgroupName.toLowerCase())
.sort((a, b) => {
if (a === OTHER_WORKGROUP.toLowerCase()) {
- return 1;
+ return DESC_SORT;
}
if (b === OTHER_WORKGROUP.toLowerCase()) {
- return -1;
+ return ASC_SORT;
}
if (a === usersOwnWorkgroupKey.toLowerCase()) {
- return -1;
+ return ASC_SORT;
}
if (b === usersOwnWorkgroupKey.toLowerCase()) {
- return 1;
+ return DESC_SORT;
}
- if (a > b) return 1;
- else if (a < b) return -1;
- else return 0;
+ if (a > b) return DESC_SORT;
+ else if (a < b) return ASC_SORT;
+ else return NO_SORT;
});
};
--- src/constants.ts
@@ -10,6 +10,9 @@ export const WHOLE_STORE = 'WHOLESTORE';
export const PUSHTOTALK_SCREEN_NAME = 'myTeam.pushToTalk';
export const LOCAL_STORAGE_KEY_PREFIX = 'texting-';
export const SEVEN_DAYS_AGO_TIMESTAMP = daysAgoTimestamp(7);
+export const ASC_SORT = -1;
+export const DESC_SORT = 1;
+export const NO_SORT = 0;
export enum messageTypes {
AUDIO = 'AUDIO',
--- src/utils/teams.ts
@@ -1,5 +1,6 @@
import {Team} from '../types';
import {isNil} from 'lodash';
+import {ASC_SORT, DESC_SORT, NO_SORT} from '../constants';
type GroupedTeamData = {
[key: string]: Team[];
@@ -35,20 +36,20 @@ export const sortWorkgroupKeysForTeamList = (
.map((workgroupName) => workgroupName.toLowerCase())
.sort((a, b) => {
if (a === OTHER_WORKGROUP.toLowerCase()) {
- return 1;
+ return DESC_SORT;
}
if (b === OTHER_WORKGROUP.toLowerCase()) {
- return -1;
+ return ASC_SORT;
}
if (a === usersOwnWorkgroupKey.toLowerCase()) {
- return -1;
+ return ASC_SORT;
}
if (b === usersOwnWorkgroupKey.toLowerCase()) {
- return 1;
+ return DESC_SORT;
}
- if (a > b) return 1;
- else if (a < b) return -1;
- else return 0;
+ if (a > b) return DESC_SORT;
+ else if (a < b) return ASC_SORT;
+ else return NO_SORT;
});
};
| using const for sort numerics | using const for sort numerics
|
2843de2e599184e9dcc9c7af0a1b6f6860f0f187 | --- __tests__/__mocks__/@walmart/attendance-mini-app.js
@@ -4,7 +4,4 @@ module.exports = {
TorReviewScreen: 'TorReviewScreen',
TorSubmissionScreen: 'TorSubmissionScreen',
AttendanceModalScreen: 'AttendanceModalScreen',
- CcmSelectors: {
- getIsUsingAttendanceMiniApp: jest.fn(),
- },
};
--- __tests__/navigation/AssociateHallwayNav/MainStackNavTest.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import {useSelector} from 'react-redux';
+
import {act, create, ReactTestRenderer} from 'react-test-renderer';
import {MainStackNav} from '../../../src/navigation/AssociateHallwayNav/MainStackNav';
@@ -63,11 +63,8 @@ jest.mock('@walmart/me-field-mini-app', () => {
};
});
-const mockUseSelector = useSelector as jest.Mock;
-
describe('AssociateHallwayNav', () => {
it('matches snapshot; handles mount and unmount effects', () => {
- mockUseSelector.mockReturnValueOnce(true); //isUsingAttendanceMiniApp
let component: ReactTestRenderer;
act(() => {
component = create(<MainStackNav />);
@@ -76,7 +73,6 @@ describe('AssociateHallwayNav', () => {
});
it('matches snapshot; handles mount and unmount effects - attendanceMiniApp false', () => {
- mockUseSelector.mockReturnValueOnce(false); //isUsingAttendanceMiniApp
let component: ReactTestRenderer;
act(() => {
component = create(<MainStackNav />);
--- __tests__/navigation/AssociateHallwayNav/Tabs/HomeStackNavTest.tsx
@@ -48,7 +48,6 @@ describe('HomeStackNav', () => {
it('matches snapshot', () => {
mockUseSelector.mockReturnValueOnce(true); // inbox header enabled
mockUseSelector.mockReturnValueOnce({userId: 'swalton3'}); //user
- mockUseSelector.mockReturnValueOnce(true); //isUsingAttendanceMiniAp
mockUseSelector.mockReturnValueOnce(true); // task badge
const component = create(<HomeStackNav />);
expect(component.toJSON()).toMatchSnapshot();
@@ -68,7 +67,6 @@ describe('HomeStackNav', () => {
it('matches snapshot with inbox disabled', () => {
mockUseSelector.mockReturnValueOnce(false); // inbox header enabled
mockUseSelector.mockReturnValueOnce({userId: 'swalton3'}); //user
- mockUseSelector.mockReturnValueOnce(false); //isUsingAttendanceMiniAp
mockUseSelector.mockReturnValueOnce(true); // task badge
const component = create(<HomeStackNav />);
expect(component.toJSON()).toMatchSnapshot();
--- __tests__/navigation/AssociateHallwayNav/Tabs/MyTeamStackNavTest.tsx
@@ -1,14 +1,9 @@
import React from 'react';
-import {useSelector} from 'react-redux';
import {create} from 'react-test-renderer';
import {MyTeamStackNav} from '../../../../src/navigation/AssociateHallwayNav/Tabs/MyTeamStackNav';
-const mockUseSelector = useSelector as jest.Mock;
-
describe('MyTeamStackNav', () => {
it('matches snapshot', () => {
- mockUseSelector.mockReturnValueOnce(true); //isUsingAttendanceMiniAp
-
const component = create(<MyTeamStackNav />);
expect(component.toJSON()).toMatchSnapshot();
const MyTeamScreen = component.root.findByProps({name: 'myTeam.root'});
@@ -21,8 +16,6 @@ describe('MyTeamStackNav', () => {
});
it('matches snapshot - attendanceminiapp false', () => {
- mockUseSelector.mockReturnValueOnce(false); //isUsingAttendanceMiniAp
-
const component = create(<MyTeamStackNav />);
expect(component.toJSON()).toMatchSnapshot();
const MyTeamScreen = component.root.findByProps({name: 'myTeam.root'});
--- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/HomeStackNavTest.tsx.snap
@@ -173,139 +173,6 @@ exports[`HomeStackNav matches snapshot 3`] = `
`;
exports[`HomeStackNav matches snapshot when user is not present 1`] = `
-<Navigator
- screenOptions={
- Object {
- "header": [Function],
- "headerMode": "float",
- "headerShown": true,
- }
- }
->
- <Screen
- component="HomeScreen"
- name="home.root"
- options={
- Object {
- "headerLeft": [Function],
- "headerRight": [Function],
- "title": "navigation.main",
- }
- }
- />
- <Screen
- component="ScheduleMiniApp"
- name="scheduleScreen"
- options={
- Object {
- "headerShown": false,
- }
- }
- />
- <Screen
- name="timeClockTabs"
- />
- <Screen
- component="TorInboxScreen"
- name="torInbox"
- />
- <Screen
- component="NewTorScreen"
- name="newTor"
- />
- <Screen
- component="TorSubmissionScreen"
- name="torSubmission"
- />
- <Screen
- component="TorReviewScreen"
- name="torReview"
- />
- <Screen
- component="AttendanceModalScreen"
- name="attendanceModalScreen"
- options={
- Object {
- "cardStyle": Object {
- "backgroundColor": "rgba(0, 0, 0, 0.3)",
- "paddingTop": 375,
- },
- "headerShown": false,
- "presentation": "transparentModal",
- }
- }
- />
- <Screen
- component="CelebrationListScreen"
- name="AnniversaryListScreen"
- options={
- Object {
- "headerShown": false,
- }
- }
- />
- <Screen
- component="SalesItemizedScreen"
- name="metrics.salesDrilldown"
- />
- <Screen
- component="PresubItemizedScreen"
- name="metrics.preSubDrilldown"
- />
- <Screen
- component="MetricsFtprTabNavigation"
- name="metrics.ftprDrilldown"
- />
- <Screen
- component="ViewAllFreights"
- name="metrics.viewAllFreights"
- />
- <Screen
- component="TotalShrinkDrilldown"
- name="metrics.shrinkDrilldown"
- options={
- Object {
- "title": "Shrink",
- }
- }
- />
- <Screen
- component="SafetyItemizedScreen"
- name="metrics.safetyDrilldown"
- />
- <Screen
- component="SkuVsBookDrilldown"
- name="metrics.shrinkSkuVsBookDrilldown"
- options={
- Object {
- "title": "SKU vs Book",
- }
- }
- />
- <Screen
- component="InvVsSalesDrilldown"
- name="metrics.shrinkInvVsSalesDrilldown"
- options={
- Object {
- "title": "Inventory vs Sales",
- }
- }
- />
- <Screen
- component="ViewMoreMetrics"
- name="metrics.viewMoreMetrics"
- />
- <Screen
- component="WoshAssociatesScreen"
- name="metrics.woshDrilldown"
- />
- <Screen
- name="metrics.ftprDepartmentScreen"
- />
-</Navigator>
-`;
-
-exports[`HomeStackNav matches snapshot with inbox disabled 1`] = `
<Navigator
screenOptions={
Object {
@@ -447,6 +314,19 @@ exports[`HomeStackNav matches snapshot with inbox disabled 1`] = `
</Navigator>
`;
+exports[`HomeStackNav matches snapshot with inbox disabled 1`] = `
+<View
+ style={
+ Object {
+ "flex": 1,
+ "justifyContent": "center",
+ }
+ }
+>
+ <Spinner />
+</View>
+`;
+
exports[`InboxHeaderRight matches snapshot when disabled 1`] = `null`;
exports[`InboxHeaderRight matches snapshot with count 1`] = `
| Update unit tests. | Update unit tests.
|
bb2ad74bc5362c6d1c857a05c6a2ad4e8db24906 | --- core/src/oneClick/OneClickSagas.tsx
@@ -1,5 +1,4 @@
import {takeLatest, select, put} from 'redux-saga/effects';
-import {useSelector} from 'react-redux';
import {createRestartableSaga} from '@walmart/allspark-utils';
import {Logger} from '../core/Logger';
| ALLSPARK-4175: Removed unuded imports | ALLSPARK-4175: Removed unuded imports
|
145e426ec227817568b48d341845dcd50acc8813 | --- src/components/AssociateRosterItem/index.tsx
@@ -48,7 +48,6 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [associate]);
- const textDisabled = !clockedIn;
const {height} = StyleSheet.flatten(style);
const name = `${associate?.firstName} ${associate?.lastName}`;
@@ -75,11 +74,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
<>
{StatusChip}
{onText && (
- <Button
- variant='secondary'
- onPress={onText}
- size='small'
- disabled={textDisabled}>
+ <Button variant='secondary' onPress={onText} size='small'>
<Text>Message</Text>
</Button>
)}
--- src/components/AssociateRosterItem/index.tsx
@@ -48,7 +48,6 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [associate]);
- const textDisabled = !clockedIn;
const {height} = StyleSheet.flatten(style);
const name = `${associate?.firstName} ${associate?.lastName}`;
@@ -75,11 +74,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
<>
{StatusChip}
{onText && (
- <Button
- variant='secondary'
- onPress={onText}
- size='small'
- disabled={textDisabled}>
+ <Button variant='secondary' onPress={onText} size='small'>
<Text>Message</Text>
</Button>
)}
| Allowing message for clocked out folks | Allowing message for clocked out folks
|
c9c8f945fabc0c95ee4042d11d6497e13718d2ce | --- __tests__/transforms/userTest.ts
@@ -195,7 +195,7 @@ describe('kGraphUserToRedux', () => {
teams: [],
title: 'NOT_FOUND',
userId: 'NOT_FOUND',
- userType: '',
+ userType: 'associate',
win: 'NOT_FOUND',
workingSite: 'NOT_FOUND',
});
@@ -239,7 +239,7 @@ describe('kGraphUserToRedux', () => {
teams: [],
title: 'Founder',
userId: 'swalton3',
- userType: '',
+ userType: 'associate',
win: '937218321',
workingSite: 'NOT_FOUND',
});
| Fixing tests | Fixing tests
|
68d34fabe548d4b4c4f4a90a7b4f5dd8f98c503a | --- example/src/teamHub/screens/onboarding.tsx
@@ -12,7 +12,7 @@ export const OnboardingEntryScreen = TeamHub.createScreen(
const navigation = useNavigation();
const handleNavigation = () => {
- AllsparkNavigationClient.navigate('teamHub.teamSelection');
+ AllsparkNavigationClient.navigate('managerExperience.teamSelection');
};
useEffect(() => {
--- packages/allspark-foundation/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx
@@ -16,6 +16,11 @@ import { enUS, esMX } from '../../translation';
import { useUserPreferences } from '../../Hooks/useUserPreferences';
import { ScrollView } from 'react-native';
import { FEATURE_ID } from '../../constant';
+import { TeamSelection } from '../../Onboarding/TeamSelection';
+
+export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, {
+ name: FEATURE_ID,
+});
export class AllsparkHubContainer {
private AllsparkWidgetContainer = {} as ComponentContainer;
@@ -30,6 +35,14 @@ export class AllsparkHubContainer {
'en-US': enUS,
'es-MX': esMX,
},
+ screens: {
+ 'managerExperience.teamSelection': {
+ getComponent: () => TeamSelection,
+ },
+ 'managerExperience.hubContainer': {
+ getComponent: () => this.render,
+ },
+ },
name: FEATURE_ID,
}).connect();
this.AllsparkWidgetContainer = AllsparkComponentContainers.create(name);
@@ -62,7 +75,9 @@ export class AllsparkHubContainer {
public render = (): JSX.Element => {
const [teamId, setTeamId] = useState('total');
- const [allowedWidgetsList, setAllowedWidgets] = useState<LayoutConfig>([]);
+ const [allowedWidgetsList, setAllowedWidgetsList] = useState<LayoutConfig>(
+ []
+ );
const { teamData, loading } = useUserPreferences([]);
const { t } = useAllsparkTranslation(FEATURE_ID);
@@ -75,7 +90,7 @@ export class AllsparkHubContainer {
return [...layoutConfigList, layoutConfig];
})
: [];
- setAllowedWidgets(this.allowedWidgets);
+ setAllowedWidgetsList(this.allowedWidgets);
}, [teamId]);
return (
<ScrollView
--- packages/allspark-foundation/src/HubFeature/Hub/TeamSwitcher/AddEditButton.tsx
@@ -2,10 +2,15 @@ import React, { useMemo } from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import { Icons, colors } from '@walmart/gtp-shared-components';
import { TeamSwitcherStyles } from './styles';
+import { AllsparkNavigationClient } from '../../../Navigation';
export const AddEditButton = ({ onPress }: { onPress?: () => void }) => {
const styles = useMemo(() => TeamSwitcherStyles(), []);
+ const addOrEditTeams = () => {
+ AllsparkNavigationClient.navigate('managerExperience.teamSelection');
+ };
+
return (
<TouchableOpacity
style={styles.buttonContainer}
@@ -15,7 +20,11 @@ export const AddEditButton = ({ onPress }: { onPress?: () => void }) => {
<View style={styles.button} testID='add-edit-icon'>
<Icons.PlusIcon color={colors.blue['100']} size='medium' />
</View>
- <Text style={styles.buttonLabel} testID='add-edit-label'>
+ <Text
+ style={styles.buttonLabel}
+ testID='add-edit-label'
+ onPress={addOrEditTeams}
+ >
Add/Edit
</Text>
<View />
--- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList.tsx
@@ -69,7 +69,7 @@ export const TeamSelectionList = ({
},
});
//TODO: Add confirmation screen navigation
- AllsparkNavigationClient.navigate('teamHub.container');
+ AllsparkNavigationClient.navigate('managerExperience.hubContainer');
};
return (
--- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Screens/TeamSelection.tsx
@@ -14,6 +14,10 @@ import { useGetTeamsByStoreQuery } from '@walmart/me-at-walmart-athena-queries';
import { Team } from '@walmart/me-at-walmart-athena-queries/src/schema.types';
import moment from 'moment-timezone';
+export type TeamSelectionScreenParams = {
+ 'managerExperience.teamSelection': undefined;
+};
+
export const TeamSelection = () => {
const useGetViewersPrimaryTeamName = () => {
const viewerTeam: Team[] | undefined = useSelector(UserSelectors.getTeams);
| feat(ui): navigation update | feat(ui): navigation update
|
abc785e5a9cc0f6165b0232bc0d0ec05ae380833 | --- packages/me-at-walmart-container/package.json
@@ -4,9 +4,6 @@
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
- "bin": {
- "meat-generate-versions": "./lib/scripts/createDependencyJson.js"
- },
"files": [
"lib/",
"allspark.config.js"
--- packages/me-at-walmart-container/src/scripts/createDependencyJson.js
@@ -1,52 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-const fs = require('fs');
-const { exec } = require('child_process');
-
-exec('npm ls --depth=3 --json', (error, stdout, stderr) => {
- if (error) {
- console.error(`Error: ${error.message}`);
- return;
- }
-
- console.log('Me@Walmart: Generating Depedency JSON');
- const dependencyTree = JSON.parse(stdout);
- const packages = new Map();
-
- // Function to recursively traverse the dependency tree
- function traverseTree(node) {
- for (const [packageName, packageInfo] of Object.entries(
- node.dependencies || {}
- )) {
- if (packageName.includes('@walmart') || packageName.includes('wm-')) {
- packages.set(packageName, {
- name: packageName,
- version: packageInfo.version,
- });
- }
- traverseTree(packageInfo);
- }
- }
-
- const sortByName = ({ name: aName }, { name: bName }) =>
- aName.localeCompare(bName);
-
- traverseTree(dependencyTree);
-
- const file = `${process.cwd()}/node_modules/@walmart/me-at-walmart-container/lib/dependencies.json`;
-
- if (fs.existsSync(file)) {
- fs.writeFile(
- `${process.cwd()}/node_modules/@walmart/me-at-walmart-container/lib/dependencies.json`,
- JSON.stringify(Array.from(packages.values()).sort(sortByName), null, 2),
- (err) => {
- if (err) {
- console.error('Me@Walmart: Error generating Depedency JSON.', err);
- } else {
- console.log('Me@Walmart: Depedency JSON generated');
- }
- }
- );
- }
-});
--- packages/me-at-walmart-container/src/services/index.ts
@@ -9,7 +9,6 @@ import { MeAtWalmartTelemetryService } from './telemetry';
import { MeAtWalmartUserService } from './user';
import { MeAtWalmartLocaleService } from './locale';
import { MeAtWalmartLocationService } from './location';
-import { MeAtWalmartVersionsService } from './versions';
export type { IMeAtWalmartAuthService } from './auth';
export type { IMeAtWalmartConfigService } from './config';
@@ -28,7 +27,6 @@ export const MeAtWalmartServices = {
site: MeAtWalmartSiteService,
telemetry: MeAtWalmartTelemetryService,
user: MeAtWalmartUserService,
- versions: MeAtWalmartVersionsService,
};
export type IMeAtWalmartServices = typeof MeAtWalmartServices;
--- packages/me-at-walmart-container/src/services/versions.ts
@@ -1,6 +0,0 @@
-import { VersionsServiceCreator } from '@walmart/allspark-foundation/Versions';
-import DEPENDENCIES from '../dependencies.json';
-
-export const MeAtWalmartVersionsService = VersionsServiceCreator({
- fetch: async () => DEPENDENCIES,
-});
--- packages/me-at-walmart-container/src/setup.ts
@@ -17,7 +17,6 @@ import {
import { MeAtWalmartLogger } from './services/logger';
import { MeAtWalmartLocaleService } from './services/locale';
import { MeAtWalmartDeviceService } from './services/device';
-import { MeAtWalmartVersionsService } from './services/versions';
import { MeAtWalmartLocationService } from './services/location';
import { MeAtWalmartInitialPermissions } from './permissions';
@@ -38,12 +37,6 @@ export const setupMeAtWalmart = () => {
MeAtWalmartLogger.error('Device.fetch failure', { message: e.message })
);
- MeAtWalmartVersionsService.fetch().catch((e: Error) =>
- MeAtWalmartLogger.error('Versions.fetch failure', {
- message: e.message,
- })
- );
-
MeAtWalmartDeviceService.fetch().catch((e: Error) =>
MeAtWalmartLogger.error('Device.fetch failure', { message: e.message })
);
| feat: remove versions service after removal from foundation | feat: remove versions service after removal from foundation
|
9eedb235836d37d1d0a511bd27b54e85c29b6fb1 | --- packages/me-at-walmart-container/package.json
@@ -39,7 +39,7 @@
"@react-native-firebase/database": "~17.4.2",
"@react-native-firebase/perf": "~17.4.2",
"@types/seamless-immutable": "7.1.16",
- "@walmart/config-components": "4.2.12",
+ "@walmart/config-components": "4.2.13",
"@walmart/react-native-encrypted-storage": "~1.1.13",
"@walmart/react-native-logger": "1.34.7",
"react": "^18.2.0",
--- packages/me-at-walmart-container/src/redux/config.ts
@@ -149,7 +149,7 @@ export function* initAppConfig() {
yield call(MeAtWalmartConfigService.initialize, {
baseURL: `${env.http.externalUrl}${env.http.bffService}`,
headers: { 'WM_CONSUMER.ID': env.http.consumerId },
- logger: { clone: () => ConfigLogger } as any,
+ logger: ConfigLogger,
httpClient: AllsparkHttpClient,
localStorage: MeAtWalmartLocalStorage as any,
forceRefreshInterval: MIN_ALLOWED_FORCE_REFRESH_INTERVAL,
| fix: incorrect logger type passed to config service | fix: incorrect logger type passed to config service
|
349c90151d4c6cd8ff4f6b418cc96e1868fb0ead | --- ios/BuildSupport/install-cocoapods.sh
@@ -8,7 +8,11 @@ echo "Installing CocoaPods"
CCP_VER=1.12.0
POD_VERSION=$(pod --version)
-export GEM_HOME=$HOME/.gem
+if [ "$RUBY_PATH" ];then
+ export GEM_HOME=$RUBY_PATH/gem
+else
+ export GEM_HOME=$HOME/.gem
+fi
export PATH=$GEM_HOME/bin:$PATH
export https_proxy=http://sysproxy.wal-mart.com:8080
| fix looper build | fix looper build
|
02cf2523fe90cafd14b2c2134b08ac56a2dcf217 | --- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/RenderTeamSelectionListItems.tsx
@@ -0,0 +1,25 @@
+import React from 'react';
+import { TeamSelectionListItem } from './TeamSelectionListItem';
+import { RenderTeamSelectionListItemsProps } from '../types';
+
+export const RenderTeamSelectionListItems = ({
+ teams,
+ isLastListItem,
+ isPrimaryArea,
+ selectedTeams,
+ primaryTeam,
+ teamId,
+ handleSelectSingle,
+}: RenderTeamSelectionListItemsProps) =>
+ teams.map((team) => (
+ <TeamSelectionListItem
+ key={`team-${team}`}
+ teamName={team}
+ teamId={teamId}
+ isLastListItem={isLastListItem}
+ isSelected={selectedTeams.includes(team)}
+ isPrimaryTeam={isPrimaryArea && primaryTeam === team}
+ checkboxDisabled={isPrimaryArea && primaryTeam === team}
+ toggleSelection={() => handleSelectSingle(team)}
+ />
+ ));
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/TeamSelectionList.tsx
@@ -25,6 +25,7 @@ import {
import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment';
import { getVersion } from 'react-native-device-info';
import { StackActions } from '@react-navigation/native';
+import { RenderTeamSelectionListItems } from './RenderTeamSelectionListItems';
export const TeamSelectionList = ({
userType,
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/TeamSelectionListItem.tsx
@@ -0,0 +1,75 @@
+import React, { useMemo } from 'react';
+import { View, Text } from 'react-native';
+import { teamSelectionListItemStyles } from '../styles';
+import { Checkbox } from '@walmart/gtp-shared-components';
+import { Images } from '../../Images/images';
+import { TeamSelectionListItemProps } from '../types';
+import { PrimaryTeam } from '../Constants/TeamSelectionConstants';
+import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation';
+import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context';
+import { FEATURE_ID } from '../../constant';
+
+export const TeamSelectionListItem = ({
+ teamName,
+ isLastListItem,
+ isSelected,
+ isPrimaryTeam = false,
+ toggleSelection,
+ checkboxDisabled = false,
+ teamId,
+}: TeamSelectionListItemProps) => {
+ const styles = useMemo(
+ () => teamSelectionListItemStyles(!isLastListItem),
+ [isLastListItem]
+ );
+
+ const { t } = useAllsparkTranslation(FEATURE_ID);
+ const TeamImage = useAllsparkImage();
+
+ return (
+ //TODO: Add translations to constants
+ <View
+ accessible
+ accessibilityLabel={`${teamName} - checkbox container`}
+ accessibilityRole='checkbox'
+ accessibilityState={{
+ disabled: checkboxDisabled,
+ selected: isSelected,
+ }}
+ style={styles.container}
+ >
+ <View
+ accessible={false}
+ accessibilityLabel={teamName}
+ style={styles.teamInfoContainer}
+ >
+ <TeamImage
+ source={{ uri: Images[teamId]?.uri || Images['0000000'].uri }}
+ placeholder={Images[teamName]?.blurhash}
+ style={styles.teamImage}
+ resizeMode='contain'
+ />
+ <Text style={styles.teamName}>{teamName}</Text>
+ </View>
+ <View style={styles.checkboxContainer}>
+ {isPrimaryTeam && (
+ <View
+ accessible
+ accessibilityLabel={`primary team - ${PrimaryTeam}`}
+ style={styles.primaryTeamContainer}
+ >
+ <Text style={styles.primaryTeamText}>
+ {t('teamSelection.primaryTeam')}
+ </Text>
+ </View>
+ )}
+ <Checkbox
+ accessible={false}
+ checked={isSelected}
+ disabled={checkboxDisabled}
+ onPress={toggleSelection}
+ />
+ </View>
+ </View>
+ );
+};
\ No newline at end of file
| Merge changes | Merge changes
|
b61c41f137eedf42ef090148ba66420318bba596 | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.0.1-beta.13",
+ "version": "1.0.1-beta.14",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
--- packages/allspark-foundation-hub/src/HubFeature/AllsparkHubContainer.tsx
@@ -16,7 +16,6 @@ import { ManagerExperienceCreators } from './Store/Redux';
import { useHubConfig } from './Store/Hooks/useHubConfig';
import { TeamSelection } from './Store/TeamSelection';
import { OnboardingProvider } from './Store/Onboarding/TeamOnboarding/OnboardingContext';
-import { ClockGuard } from '@walmart/allspark-foundation/Clock/withClockGuard';
import { OnboardingBottomSheet } from './Store/Components/OnboardingBottomSheet';
import { TeamUpdateBottomSheet } from './Store/Components/TeamUpdateBottomSheet';
import { ErrorBottomSheet } from './Store/Components/ErrorBottomSheet';
@@ -103,15 +102,13 @@ export class AllsparkHubContainer {
public render = (): JSX.Element => {
return (
- <ClockGuard>
- <OnboardingProvider>
- <HubDashboard
- name={this.containerName}
- widgets={this.validWidgets}
- componentOverrides={this.componentOverrides}
- />
- </OnboardingProvider>
- </ClockGuard>
+ <OnboardingProvider>
+ <HubDashboard
+ name={this.containerName}
+ widgets={this.validWidgets}
+ componentOverrides={this.componentOverrides}
+ />
+ </OnboardingProvider>
);
};
}
| Update allspark hub container | Update allspark hub container
|
b4ab956acdfbc02d697a7838db24e4b7bfa4356f | --- package.json
@@ -98,7 +98,7 @@
"@walmart/attendance-mini-app": "3.181.0",
"@walmart/avp-feature-app": "0.28.47",
"@walmart/avp-shared-library": "0.27.26",
- "@walmart/ax-components": "1.3.3",
+ "@walmart/ax-components": "1.4.1",
"@walmart/backroom-mini-app": "1.17.11",
"@walmart/beneficiary-online-mini-app": "0.1.26",
"@walmart/beneficiary-online-shared-library": "1.2.7",
@@ -264,6 +264,7 @@
"react-native-image-resizer": "1.4.5",
"react-native-inappbrowser-reborn": "^3.7.0",
"react-native-maps": "1.20.1",
+ "react-native-markdown-display": "^7.0.2",
"react-native-mask-input": "^1.2.3",
"react-native-network-logger": "patch:react-native-network-logger@npm%3A2.0.1#~/.yarn/patches/react-native-network-logger-npm-2.0.1-a1f08caa90.patch",
"react-native-new-snap-carousel": "^3.9.3",
--- yarn.lock
@@ -7945,9 +7945,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/ax-components@npm:1.3.3":
- version: 1.3.3
- resolution: "@walmart/ax-components@npm:1.3.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.3.3.tgz"
+"@walmart/ax-components@npm:1.4.1":
+ version: 1.4.1
+ resolution: "@walmart/ax-components@npm:1.4.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.4.1.tgz"
peerDependencies:
"@expo/vector-icons": ~14.1.0
"@walmart/gtp-shared-components-3": "*"
@@ -7955,7 +7955,7 @@ __metadata:
react: 19.x
react-dom: 19.x
react-native: 0.79.x
- checksum: 10c0/316da34cad2535bb1ff53801017707eb870c9357c9de11dd8c7aa588758c56b56c3402f5fdf97e34c0a4b1297f270dd05cbd0fa2f829b2951a4a7c10d17fbf59
+ checksum: 10c0/a2c0925ad98a333dd5adda4b16baf53936ac845008fee5bbc05551d60433bc9b358030f1094134ce1d3bb389dd71a8913b0c182cae1a15169338a4a5521b1585
languageName: node
linkType: hard
@@ -8831,7 +8831,7 @@ __metadata:
"@walmart/attendance-mini-app": "npm:3.181.0"
"@walmart/avp-feature-app": "npm:0.28.47"
"@walmart/avp-shared-library": "npm:0.27.26"
- "@walmart/ax-components": "npm:1.3.3"
+ "@walmart/ax-components": "npm:1.4.1"
"@walmart/backroom-mini-app": "npm:1.17.11"
"@walmart/beneficiary-online-mini-app": "npm:0.1.26"
"@walmart/beneficiary-online-shared-library": "npm:1.2.7"
@@ -9014,6 +9014,7 @@ __metadata:
react-native-image-resizer: "npm:1.4.5"
react-native-inappbrowser-reborn: "npm:^3.7.0"
react-native-maps: "npm:1.20.1"
+ react-native-markdown-display: "npm:^7.0.2"
react-native-mask-input: "npm:^1.2.3"
react-native-network-logger: "patch:react-native-network-logger@npm%3A2.0.1#~/.yarn/patches/react-native-network-logger-npm-2.0.1-a1f08caa90.patch"
react-native-new-snap-carousel: "npm:^3.9.3"
@@ -13441,6 +13442,13 @@ __metadata:
languageName: node
linkType: hard
+"entities@npm:~2.0.0":
+ version: 2.0.3
+ resolution: "entities@npm:2.0.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fentities%2F-%2Fentities-2.0.3.tgz"
+ checksum: 10c0/81463fde5f1e4432df6faa65afa00021f3979ac8387f81d3d111beeb08179e626130a4b7488e8c3cc3d74e0d04e99d3033ff7db80e05f4a1e961b5e1efe17731
+ languageName: node
+ linkType: hard
+
"env-editor@npm:^0.4.1":
version: 0.4.2
resolution: "env-editor@npm:0.4.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fenv-editor%2F-%2Fenv-editor-0.4.2.tgz"
@@ -17920,6 +17928,15 @@ __metadata:
languageName: node
linkType: hard
+"linkify-it@npm:^2.0.0":
+ version: 2.2.0
+ resolution: "linkify-it@npm:2.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Flinkify-it%2F-%2Flinkify-it-2.2.0.tgz"
+ dependencies:
+ uc.micro: "npm:^1.0.1"
+ checksum: 10c0/640f926fa71d46f9451b4dc999c94b2dcad920abf5fe174a85f120b420cbb34b8f950e251846ed73db715ec9aaadadf1f2482d27088dddd21b1c84761f6a0b5a
+ languageName: node
+ linkType: hard
+
"linkify-it@npm:^3.0.2":
version: 3.0.3
resolution: "linkify-it@npm:3.0.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Flinkify-it%2F-%2Flinkify-it-3.0.3.tgz"
@@ -18275,6 +18292,21 @@ __metadata:
languageName: node
linkType: hard
+"markdown-it@npm:^10.0.0":
+ version: 10.0.0
+ resolution: "markdown-it@npm:10.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmarkdown-it%2F-%2Fmarkdown-it-10.0.0.tgz"
+ dependencies:
+ argparse: "npm:^1.0.7"
+ entities: "npm:~2.0.0"
+ linkify-it: "npm:^2.0.0"
+ mdurl: "npm:^1.0.1"
+ uc.micro: "npm:^1.0.5"
+ bin:
+ markdown-it: bin/markdown-it.js
+ checksum: 10c0/7b2876599adb4c8bed0b45030db835d6e3e352e20b1c26624975d1b0f6d9ef54bbf6b63d29cb31b0cebb65b5ad7300aad063dc5d586a03c3745345bfc945c8fd
+ languageName: node
+ linkType: hard
+
"marky@npm:^1.2.2":
version: 1.3.0
resolution: "marky@npm:1.3.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmarky%2F-%2Fmarky-1.3.0.tgz"
@@ -20567,6 +20599,15 @@ __metadata:
languageName: node
linkType: hard
+"react-native-fit-image@npm:^1.5.5":
+ version: 1.5.5
+ resolution: "react-native-fit-image@npm:1.5.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-fit-image%2F-%2Freact-native-fit-image-1.5.5.tgz"
+ dependencies:
+ prop-types: "npm:^15.5.10"
+ checksum: 10c0/04d1cb35f2acacda593c80f2d9845f7dc0ed5e0e1fb62043ba5351f914162dcd92f1ae98e80ebf9752f6b4131b1634f6a9ac90e9c649f30b5591f3187d99811f
+ languageName: node
+ linkType: hard
+
"react-native-fs@npm:^2.18.0":
version: 2.20.0
resolution: "react-native-fs@npm:2.20.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-fs%2F-%2Freact-native-fs-2.20.0.tgz"
@@ -20730,6 +20771,21 @@ __metadata:
languageName: node
linkType: hard
+"react-native-markdown-display@npm:^7.0.2":
+ version: 7.0.2
+ resolution: "react-native-markdown-display@npm:7.0.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-markdown-display%2F-%2Freact-native-markdown-display-7.0.2.tgz"
+ dependencies:
+ css-to-react-native: "npm:^3.0.0"
+ markdown-it: "npm:^10.0.0"
+ prop-types: "npm:^15.7.2"
+ react-native-fit-image: "npm:^1.5.5"
+ peerDependencies:
+ react: ">=16.2.0"
+ react-native: ">=0.50.4"
+ checksum: 10c0/b90b75401340cd79c42e07e6e8961551e8b98acfbc53bc0b651174aea2a86b92430be767da7c813e54b08e7bbd8af6c09dbeb4f9369d925984979cc28b6ba8fb
+ languageName: node
+ linkType: hard
+
"react-native-mask-input@npm:^1.2.3":
version: 1.2.3
resolution: "react-native-mask-input@npm:1.2.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-mask-input%2F-%2Freact-native-mask-input-1.2.3.tgz"
@@ -23675,7 +23731,7 @@ __metadata:
languageName: node
linkType: hard
-"uc.micro@npm:^1.0.1":
+"uc.micro@npm:^1.0.1, uc.micro@npm:^1.0.5":
version: 1.0.6
resolution: "uc.micro@npm:1.0.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fuc.micro%2F-%2Fuc.micro-1.0.6.tgz"
checksum: 10c0/9bde2afc6f2e24b899db6caea47dae778b88862ca76688d844ef6e6121dec0679c152893a74a6cfbd2e6fde34654e6bd8424fee8e0166cdfa6c9ae5d42b8a17b
| fix(vqa): update ax-components (#5372) | fix(vqa): update ax-components (#5372)
Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com> |
2122a6e499991bd2980bce32e09707a3ad14abac | --- .looper.yml
@@ -1,5 +1,3 @@
-inherit: 'job:///metropolis/metroloop/metroloop-parent'
-
tools:
nodejs: 16.17.0
sonarscanner: 3.0.3.778
--- .looper.yml
@@ -1,5 +1,3 @@
-inherit: 'job:///metropolis/metroloop/metroloop-parent'
-
tools:
nodejs: 16.17.0
sonarscanner: 3.0.3.778
| Update .looper.yml | Update .looper.yml |
6a04205da801d210e35464aca5204ca135c0b94f | --- packages/allspark-utils/src/cacheValue.ts
@@ -52,8 +52,11 @@ export type CacheValueConfig<T> = {
*/
onError?: (payload: CacheEventMap['error']) => void;
} & (
- | { key: string; getKey?: never; fallbackKey?: never }
- | { getKey: () => string | Promise<string>; fallbackKey: string; key?: never }
+ | { key: string; getKey?: never }
+ | {
+ getKey: () => string | Promise<string>;
+ key?: never;
+ }
);
export const safeJsonParse = (value: string | null | undefined) => {
@@ -111,10 +114,10 @@ export class CacheValue<T> {
} catch (e) {
this._events.runEvent('error', {
event: 'GET_CACHE_KEY_ERROR',
- key: this._config.fallbackKey!,
+ key: 'unset',
originalError: e,
});
- return this._config.fallbackKey!;
+ return '';
}
};
@@ -127,9 +130,11 @@ export class CacheValue<T> {
}): Promise<T | null> => {
if (this._sessionValue) return this._sessionValue;
- let key = 'unset';
+ const key = await this._getKey();
+ // If key is unset, cannot safely determine key. Read nothing.
+ if (!key) return null;
+
try {
- key = await this._getKey();
const value = await this._cache.getItem(key).then(safeJsonParse);
if (!options?.skipValidation) {
@@ -155,11 +160,13 @@ export class CacheValue<T> {
* @description Set cache value
*/
public set = async (value: T) => {
- let key = 'unset';
this._sessionValue = value;
+ const key = await this._getKey();
+ // If key is unset, cannot safely determine key. Write nothing.
+ if (!key) return;
+
try {
- key = await this._getKey();
const serializdValue = await this._serialize(value);
await this._cache.setItem(key, JSON.stringify(serializdValue));
this._events.runEvent('info', { event: 'SET_CACHE_SUCCESS', key });
@@ -178,11 +185,13 @@ export class CacheValue<T> {
* @description Remove cache value
*/
public remove = async () => {
- let key = 'unset';
this._sessionValue = null;
+ const key = await this._getKey();
+ // If key is unset, cannot safely determine key. Remove nothing.
+ if (!key) return;
+
try {
- key = await this._getKey();
await this._cache.removeItem(key);
this._events.runEvent('info', { event: 'CLEAR_CACHE_SUCCESS', key });
} catch (e) {
@@ -195,47 +204,3 @@ export class CacheValue<T> {
}
};
}
-
-// export type TemporaryCacheData<T> = { value: T; expires: string };
-// export type TemporaryCacheValueConfig<T> = CacheValueConfig<T> & {
-// removeOnExpiry?: boolean;
-// } & (
-// | { ttl: number; getTTL?: never; fallbackTTL?: never }
-// | { ttl?: never; getTTL: () => Promise<number>; fallbackTTL: number }
-// );
-
-// /**
-// * @description Create utilities for a temporary key in a given cache. Time
-// * to live defines how long cache value is valid.
-// */
-// export class TemporaryCacheValue<T> extends CacheValue<TemporaryCacheData<T>> {
-// constructor(config: TemporaryCacheValueConfig<T>) {
-// // On Set
-// const serialize = async (value: T) => {
-// const ttl = await (async function () {
-// try {
-// return config.ttl || (await config.getTTL!());
-// } catch {
-// return config.fallbackTTL!;
-// }
-// })();
-// return { value, expires: `${Date.now() + ttl}` };
-// };
-
-// // On get
-// const validate = ({ expires }: TemporaryCacheData<T>) => {
-// return Date.now() > Number(expires);
-// };
-
-// // @ts-ignore
-// super({ ...config, validate, serialize });
-// }
-
-// // @ts-ignore
-// public async get(): Promise<T | null> {
-// const cacheValue = await super.get();
-// if (cacheValue) return cacheValue.value;
-
-// return null;
-// }
-// }
| refactor: remove fallback key option from cache value util | refactor: remove fallback key option from cache value util
|
e3fe0a87fe1f968aec2371f4b89b6597c18f8427 | --- package-lock.json
@@ -4208,9 +4208,9 @@
"integrity": "sha512-7OL7IwfRrGvMB+o6z7pULrc+p+uPmitHutcrN68NZVROrRCvM9BXw01gxaTxCJ19vGWhg2jSP7j8JOaQzWUF3g=="
},
"@walmart/feedback-all-spark-miniapp": {
- "version": "0.1.21",
- "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.1.21.tgz",
- "integrity": "sha512-GYS5aQAN+a1SSzXFRcNFAAvmnWk0FNg/WsUPDiw8bGIJXlJ0qIoef3LgSfrylmGlvwb51GMOOhe9AggOm2CntQ=="
+ "version": "0.1.22",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.1.22.tgz",
+ "integrity": "sha512-Jf86tGe4Z48eP5o2OBO+fJE+AyPm5NjEBk7TcRbA6ezVG/mdIz+5Ovm6lR5AVjpsh0fn1DlsAM3ur1JeGdP7fA=="
},
"@walmart/functional-components": {
"version": "1.0.34",
--- package.json
@@ -78,7 +78,7 @@
"@walmart/config-components": "1.0.35",
"@walmart/counts-component-miniapp": "0.0.32",
"@walmart/exception-mini-app": "0.39.2",
- "@walmart/feedback-all-spark-miniapp": "0.1.21",
+ "@walmart/feedback-all-spark-miniapp": "0.1.22",
"@walmart/functional-components": "1.0.34",
"@walmart/gta-react-native-calendars": "0.0.15",
"@walmart/gtp-shared-components": "1.2.0",
| bumped up feedback miniapp version | bumped up feedback miniapp version
|
6e233ff544c7472a751f6153c506607954eb4b11 | --- packages/components-library/components/Icon/__snapshots__/Icon.test.tsx.snap
@@ -1,38 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`Icon Component (snapshot) matches snapshot with default props 1`] = `
-<Image
- accessibilityLabel="shuffle"
- accessibilityRole="image"
- accessible={true}
- color="black"
- name="shuffle"
- size={24}
-/>
-`;
-
-exports[`Icon Component (snapshot) matches snapshot with size="large" and color="tomato" 1`] = `
-<Image
- accessibilityLabel="shuffle"
- accessibilityRole="image"
- accessible={true}
- color="tomato"
- name="shuffle"
- size={32}
-/>
-`;
-
-exports[`Icon Component (snapshot) matches snapshot with size="small" 1`] = `
-<Image
- accessibilityLabel="shuffle"
- accessibilityRole="image"
- accessible={true}
- color="black"
- name="shuffle"
- size={16}
-/>
-`;
-
exports[`Icon Component matches snapshot with default props 1`] = `
<Image
accessibilityLabel="shuffle"
| fix: update test files | fix: update test files
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.