commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
0151033a40baf10d79694ac5fce69fe3c85c941c | --- packages/allspark-foundation/src/Components/ComponentContainers.tsx
@@ -42,6 +42,7 @@ export type ComponentContainerConfig = {
export class ComponentContainer<Props = {}> {
private _config = {} as ComponentContainerConfig;
private _components = new Map<string, ComponentType<Props>>();
+ private _disabled = new Map<string, ComponentType<Props>>();
private _eventManager = new EventManager<{
change: string;
}>(['change']);
@@ -123,6 +124,47 @@ export class ComponentContainer<Props = {}> {
}
};
+ /**
+ * Replaces a component in the container.
+ * @param id - The ID of the component to replace.
+ * @param Component - The component to replace it with.
+ */
+ public replace = (id: string, Component: ComponentType<Props>) => {
+ if (this._components.get(id)) {
+ this._components.set(id, Component);
+ this._eventManager.runEvent('change', id);
+ }
+ };
+
+ /**
+ * Disables a component in the container, optionally replacing it with another component.
+ * Disabled components are not removed from the container, but rather hidden and not rendered.
+ * @param id - The ID of the component to disable.
+ * @param Component - The component to replace it with.
+ */
+ public disable = (id: string, Component?: ComponentType<Props>) => {
+ const current = this._components.get(id);
+ if (current) {
+ this._disabled.set(id, current);
+
+ if (Component) {
+ this.replace(id, Component);
+ }
+ }
+ };
+
+ /**
+ * Enables a previously disabled component in the container.
+ * @param id - The ID of the component to enable.
+ */
+ public enable = (id: string) => {
+ const current = this._disabled.get(id);
+ if (current) {
+ this.replace(id, current);
+ this._disabled.delete(id);
+ }
+ };
+
/**
* Renders a specific component added to the container with the given props
* @param props.id - The ID of the component to render.
| feat: add replace, enable, and disable options to component container class | feat: add replace, enable, and disable options to component container class
|
78e1d21204636d0b5138b10167fe4d0b105d5b53 | --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx
@@ -17,6 +17,10 @@ import { useHubConfig } from '../../Hooks/useHubConfig';
import { ClockOutGuard } from '../../ClockOut';
import { BottomSheetProvider } from '../../BottomSheet/BottomSheetContext';
import { TeamSelection } from '../../TeamSelection';
+import {
+ ComponentOverrideKeys,
+ ComponentOverrideValues,
+} from './Screens/types';
export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, {
name: FEATURE_NAME,
@@ -45,12 +49,15 @@ export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, {
},
});
+export type ComponentOverrides = Record<
+ ComponentOverrideKeys,
+ ComponentOverrideValues
+>;
export class AllsparkHubContainer {
private AllsparkWidgetContainer = {} as ComponentContainer;
+ private componentOverrides = {} as ComponentOverrides;
private containerName = '';
- private headerId: string = '';
private widgetCCMConfigs = {};
- private componentId: string | undefined = undefined;
private validWidgets: ValidatedTeamWidgetMapping = {};
constructor() {
managerExperienceFeature.connect();
@@ -61,13 +68,11 @@ export class AllsparkHubContainer {
ccmNamespace: string,
screeName: string | { screen: string; params: any },
defaultWidgets: string[],
- headerId: string,
- componentId?: string
+ componentOverrides: ComponentOverrides
): this => {
const dispatch = useDispatch();
this.containerName = name;
- this.headerId = headerId;
- this.componentId = componentId;
+ this.componentOverrides = componentOverrides;
const defaultWidgetConfig = createDefaultWidgetsConfig(defaultWidgets);
this.widgetCCMConfigs = useHubConfig(ccmNamespace, defaultWidgetConfig);
const screenName =
@@ -94,8 +99,7 @@ export class AllsparkHubContainer {
<HubDashboard
name={this.containerName}
widgets={this.validWidgets}
- headerId={this.headerId}
- componentId={this.componentId}
+ componentOverrides={this.componentOverrides}
/>
</BottomSheetProvider>
</ClockOutGuard>
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx
@@ -36,8 +36,7 @@ import { useBottomSheetContext } from '../../../BottomSheet/BottomSheetContext';
export const HubDashboard = ({
name,
widgets,
- headerId, // pass in id from parent
- componentId, // just 1 component
+ componentOverrides,
}: HubDashboardProps) => {
const [teamState, setTeamState] = useState<{
teamLabel: string;
@@ -383,8 +382,8 @@ export const HubDashboard = ({
)}
<AllsparkComponentContainers.Component
container={name}
- id={headerId}
- props={{}}
+ id={componentOverrides.Header.id}
+ props={componentOverrides.Header?.props || {}}
/>
<TeamSwitcher
onTeamChange={(teamLabel, teamIds) =>
@@ -405,12 +404,12 @@ export const HubDashboard = ({
}}
/>
</ScrollView>
- {!!componentId && (
+ {!!componentOverrides?.FloatingButton?.id && (
<View style={{ position: 'absolute', bottom: 20, right: 10 }}>
<AllsparkComponentContainers.Component
container={name}
- id={componentId}
- props={{}}
+ id={componentOverrides.FloatingButton.id}
+ props={componentOverrides.FloatingButton?.props || {}}
/>
</View>
)}
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/types.ts
@@ -1,8 +1,14 @@
import { ValidatedTeamWidgetMapping } from '../types';
+export type ComponentOverrideValues = {
+ id: string;
+ props?: any;
+};
+
+export type ComponentOverrideKeys = 'Header' | 'FloatingButton';
+
export type HubDashboardProps = {
name: string;
widgets: ValidatedTeamWidgetMapping;
- headerId: string; // this is required, we dont have fallback for default header
- componentId?: string;
+ componentOverrides: Record<ComponentOverrideKeys, ComponentOverrideValues>;
};
| feat(ui): cleanup, added single object for all component overrides | feat(ui): cleanup, added single object for all component overrides
|
2df9151506a075dea1a42f873859faca720749c0 | --- src/components/AssociateRosterItem/index.tsx
@@ -15,7 +15,7 @@ import {useSelector} from 'react-redux';
import {SiteSelectors} from '@walmart/redux-store';
import {PresenceIndicator} from '../../presence/components/PresenceIndicator';
-import {encryptUserId} from '../../utils';
+import {associateDisplayName, encryptUserId} from '../../utils';
import {useStartAssociateText} from '../../hooks';
import {Associate} from '../../types';
import {StatusChip} from '../StatusChip';
@@ -40,7 +40,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
const encryptedId = encryptUserId(associate?.win?.toString() ?? '');
const isClockedIn = associate?.punch?.clockStatus === '1' ?? false;
const {height} = StyleSheet.flatten(style || {});
- const name = `${associate?.firstName} ${associate?.lastName}`;
+ const name = associateDisplayName(associate);
const onText = () => startAssociateText([associate.associateId!]);
--- src/screens/SearchScreen.tsx
@@ -35,6 +35,7 @@ import {useDailyRoster} from '../hooks';
import {TextingNavParamsMap} from '../navigation';
import {useTranslation} from 'react-i18next';
import {TEXTING_I18N_NAMESPACE} from '../translations';
+import {associateDisplayName} from "../utils";
const styles = StyleSheet.create({
header: {
@@ -164,7 +165,7 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => {
} else {
const filteredAssociates = allAssociates.filter((associate) => {
return (
- associate?.fullName
+ associateDisplayName(associate)
?.toLowerCase()
.includes(searchInput.toLowerCase()) ||
associate?.jobCategoryCodeDesc
--- src/utils/user.ts
@@ -32,3 +32,11 @@ export const associateIsOnMeal = (associate?: Associate) =>
// @todo - add correct logic, ptt has said this is correct but...doubt
export const associateIsOnPPTO = (associate?: Associate) =>
associate?.punch?.clockStatus === '4';
+
+export const associateDisplayName = (associate: Associate) => {
+ return (
+ (associate.preferredFirstName || associate.firstName) +
+ ' ' +
+ (associate.preferredLastName || associate.lastName)
+ );
+};
--- src/components/AssociateRosterItem/index.tsx
@@ -15,7 +15,7 @@ import {useSelector} from 'react-redux';
import {SiteSelectors} from '@walmart/redux-store';
import {PresenceIndicator} from '../../presence/components/PresenceIndicator';
-import {encryptUserId} from '../../utils';
+import {associateDisplayName, encryptUserId} from '../../utils';
import {useStartAssociateText} from '../../hooks';
import {Associate} from '../../types';
import {StatusChip} from '../StatusChip';
@@ -40,7 +40,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
const encryptedId = encryptUserId(associate?.win?.toString() ?? '');
const isClockedIn = associate?.punch?.clockStatus === '1' ?? false;
const {height} = StyleSheet.flatten(style || {});
- const name = `${associate?.firstName} ${associate?.lastName}`;
+ const name = associateDisplayName(associate);
const onText = () => startAssociateText([associate.associateId!]);
--- src/screens/SearchScreen.tsx
@@ -35,6 +35,7 @@ import {useDailyRoster} from '../hooks';
import {TextingNavParamsMap} from '../navigation';
import {useTranslation} from 'react-i18next';
import {TEXTING_I18N_NAMESPACE} from '../translations';
+import {associateDisplayName} from "../utils";
const styles = StyleSheet.create({
header: {
@@ -164,7 +165,7 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => {
} else {
const filteredAssociates = allAssociates.filter((associate) => {
return (
- associate?.fullName
+ associateDisplayName(associate)
?.toLowerCase()
.includes(searchInput.toLowerCase()) ||
associate?.jobCategoryCodeDesc
--- src/utils/user.ts
@@ -32,3 +32,11 @@ export const associateIsOnMeal = (associate?: Associate) =>
// @todo - add correct logic, ptt has said this is correct but...doubt
export const associateIsOnPPTO = (associate?: Associate) =>
associate?.punch?.clockStatus === '4';
+
+export const associateDisplayName = (associate: Associate) => {
+ return (
+ (associate.preferredFirstName || associate.firstName) +
+ ' ' +
+ (associate.preferredLastName || associate.lastName)
+ );
+};
| fix associate display name | fix associate display name
|
2c419b37eca0afb205e2e055f96eb2d7769b4792 | --- package-lock.json
@@ -63,7 +63,7 @@
"@walmart/onewalmart-miniapp": "1.0.14",
"@walmart/pay-stub-miniapp": "0.9.28",
"@walmart/payrollsolution_miniapp": "0.130.28",
- "@walmart/price-changes-mini-app": "1.8.5",
+ "@walmart/price-changes-mini-app": "1.8.6",
"@walmart/profile-feature-app": "0.143.0",
"@walmart/push-to-talk-mini-app": "1.9.22",
"@walmart/react-native-encrypted-storage": "1.1.3",
--- package.json
@@ -105,7 +105,7 @@
"@walmart/onewalmart-miniapp": "1.0.14",
"@walmart/pay-stub-miniapp": "0.9.28",
"@walmart/payrollsolution_miniapp": "0.130.28",
- "@walmart/price-changes-mini-app": "1.8.5",
+ "@walmart/price-changes-mini-app": "1.8.6",
"@walmart/profile-feature-app": "0.143.0",
"@walmart/push-to-talk-mini-app": "1.9.22",
"@walmart/react-native-encrypted-storage": "1.1.3",
| Bump price changes v1.8.6 | Bump price changes v1.8.6
|
4404d9bf5066a5542ec382651bd8df0aef066ab1 | --- package-lock.json
@@ -3388,9 +3388,9 @@
"integrity": "sha512-obMi22nJz2FN8CWuJ/0ekV9pKMRQJz0u4qiX5lQTAv6yOVUmtJtksvErLAlZtc+ACiLUakj2EiRyw1bUcN+YNQ=="
},
"@walmart/ims-print-services-ui": {
- "version": "0.0.35",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.0.35.tgz",
- "integrity": "sha512-L9Ig27eukaRF9mCTo7bJjv0SL84iDLlmM8FNb0882XTBFeeQT7PuBVWDnQSNjhmxmrWHXOH/cC05G/wBHjgCHA=="
+ "version": "0.0.36",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.0.36.tgz",
+ "integrity": "sha512-DMXzHrlFBvd5qOHxju7irJ+4UkclgpwJVlEKzPqmL4oQPYXkjCydvbJR0O5FmZtDDyBrKxKtofD2vD4nyBeHPA=="
},
"@walmart/inbox-mini-app": {
"version": "0.0.105",
@@ -3398,9 +3398,9 @@
"integrity": "sha512-cKvZIhfn+NPDhdwFONeRyOmj81FOh7Qmne00KJ4gah40L3T2cWvNR1lXRmC0ORLQ/cK0orrDvXfVpVTIa06CKQ=="
},
"@walmart/iteminfo-mini-app": {
- "version": "2.0.6",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.6.tgz",
- "integrity": "sha512-mhSZtomxwBPgpTvIAA/96k34s5mchJYZ/cuDDqpH5GX8V2StsbsNhn6aPcUryeX1AVEBipFtjfC9Sv4C4xjXbA==",
+ "version": "2.0.7",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.7.tgz",
+ "integrity": "sha512-6iRSAkzC1xK8UGq+kkoiDKLP5nUdbaiRw4zWgwtIpzxZtFPSxcUTq4BRcwCmB4JVPniTYamkZpvJBr55zFmIYw==",
"requires": {
"react-native-chart-kit": "6.6.1"
}
--- package.json
@@ -82,9 +82,9 @@
"@walmart/gta-react-native-calendars": "0.0.15",
"@walmart/gtp-shared-components": "^1.2.0",
"@walmart/impersonation-mini-app": "1.0.18",
- "@walmart/ims-print-services-ui": "0.0.35",
+ "@walmart/ims-print-services-ui": "0.0.36",
"@walmart/inbox-mini-app": "0.0.105",
- "@walmart/iteminfo-mini-app": "2.0.6",
+ "@walmart/iteminfo-mini-app": "2.0.7",
"@walmart/manager-approvals-miniapp": "0.0.49",
"@walmart/metrics-mini-app": "0.4.11",
"@walmart/moment-walmart": "1.0.4",
| ItemInfo 2.0.7 | ItemInfo 2.0.7
|
0dc6cffb0243ed76f4dcfcd07954e03124a2ab61 | --- package-lock.json
@@ -5243,9 +5243,9 @@
"integrity": "sha512-qLdsZzlG4t1os8wJH9fi8JYPIZh8P3GBehf2bq2anQIZ9N1U+QlW8SA2t5S4NnNemhI3bhjMGXbhvcv1M0mhYg=="
},
"@walmart/facilities-management-miniapp": {
- "version": "0.2.3-2",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.2.3-2.tgz",
- "integrity": "sha512-ZGtcXFmHimerj/G4ugEAC0VTr734UF09ihxdbjIduxzsLPhyIexyZdRm51FbAghw8XOuODB7X9uJHaCuhuigKw=="
+ "version": "0.3.0",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.3.0.tgz",
+ "integrity": "sha512-c6MkWtt8HYO8YZMXLcVIR1VGmLoCmqN8buzpKfwzzj50Xfb3L/JchBu91S9G+iLXXle4A/jxdvm2twVUwdGPXg=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.8.0",
| Updated package-lock.json | Updated package-lock.json
|
e450d62fc654b0caddb876dc35a926f9b83c983e | --- packages/allspark-foundation-hub/src/HubFeature/BottomSheet/HubOnboardingImage/OnboardingImage.tsx
@@ -4,6 +4,8 @@ import { Text, View } from 'react-native';
import { HubOnboardingImageProps } from './types';
import styles from './styles';
import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context';
+import { LoggerService } from '@walmart/allspark-foundation/Logger';
+import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry';
const HubOnboardingImage = ({
description,
@@ -11,6 +13,8 @@ const HubOnboardingImage = ({
title,
}: HubOnboardingImageProps) => {
const TeamImage = useAllsparkImage();
+ const logger = LoggerService.getContainerInstance();
+ const telemetryService = useTelemetryService();
return (
<>
<TeamImage
@@ -20,6 +24,14 @@ const HubOnboardingImage = ({
placeholder={source.placeholder}
style={styles.imageContainer}
resizeMode='contain'
+ onError={(error) => {
+ logger.info('ImageFailure', {
+ message: `Image failure ${error}`,
+ });
+ telemetryService.logEvent('image_uri_failure', {
+ message: 'Onboarding image failure ',
+ });
+ }}
/>
<View style={styles.titleContainer}>
<Text style={styles.title}>{title}</Text>
| Adding logs for onboarding image | Adding logs for onboarding image
|
93f8e4b2fe9e136022e375709d1cd4fc2b9f2232 | --- __tests__/harness/redux/mockState/appConfigState.ts
@@ -7,29 +7,27 @@ export const appConfigState: AppConfigState = {
initializing: false,
initialized: true,
data: {
- container: {
- wmconnect: {
- rmaPath: '/texting/weekly_schedule_link',
- rmaAppId: '6b00c730-69d8-440f-86f7-2bc396dbc874',
- rmaTeamPermissionsPath: '/texting/delete_team_message',
- rmaTotalStorePermissionsPath: '/texting/delete_total_store_message',
- codeOfConduct: true,
- codeOfConductLink:
- 'https://www.walmartethics.com/content/walmartethics/en_us/code-of-conduct.html',
- enableTexting: true,
- enableDeleteMessage: true,
- enableReadReceipt: 'true',
- enableViewMessageDetails: true,
- enableImageMessage: true,
- uploadingBlob: false,
- showTextingInput: true,
- enableOneOnOnePushNotifications: true,
- enableTeamPushNotifications: 'true',
- enableStorePushNotifications: true,
- shouldDisplayWarningBanner: false,
- warningMessageContent:
- 'All users must be on the most recent version of Me@ to send and receive messages.',
- },
+ wmconnect: {
+ rmaPath: '/texting/weekly_schedule_link',
+ rmaAppId: '6b00c730-69d8-440f-86f7-2bc396dbc874',
+ rmaTeamPermissionsPath: '/texting/delete_team_message',
+ rmaTotalStorePermissionsPath: '/texting/delete_total_store_message',
+ codeOfConduct: true,
+ codeOfConductLink:
+ 'https://www.walmartethics.com/content/walmartethics/en_us/code-of-conduct.html',
+ enableTexting: true,
+ enableDeleteMessage: true,
+ enableReadReceipt: 'true',
+ enableViewMessageDetails: true,
+ enableImageMessage: true,
+ uploadingBlob: false,
+ showTextingInput: true,
+ enableOneOnOnePushNotifications: true,
+ enableTeamPushNotifications: 'true',
+ enableStorePushNotifications: true,
+ shouldDisplayWarningBanner: false,
+ warningMessageContent:
+ 'All users must be on the most recent version of Me@ to send and receive messages.',
},
},
};
--- __tests__/hooks/user.test.ts
@@ -16,6 +16,7 @@ import {
import {siteState} from '../harness/redux/mockState/siteState';
import {UserSelectors} from '@walmart/allspark-foundation/User';
import {SiteSelectors} from '@walmart/allspark-foundation/Site';
+import {useEnvironment} from '@walmart/allspark-foundation/Environment';
describe('useIsSalariedOrTeamlead', () => {
it('should return false for the default mocked user (H)', () => {
@@ -116,6 +117,14 @@ describe('useIsImpersonatedOnDev', () => {
});
describe('useTextingFeatureEnabled', () => {
+ beforeEach(() => {
+ (useEnvironment as jest.Mock).mockReturnValue({env: 'dev'});
+ });
+
+ afterEach(() => {
+ jest.clearAllMocks();
+ });
+
it('should return true for the default mocked user', () => {
(UserSelectors.getWorkingSite as jest.Mock).mockReturnValue('100');
(UserSelectors.getHomeSite as jest.Mock).mockReturnValue('100');
| chore(ci): fix tests | chore(ci): fix tests
|
2fb3131fe290b855d2d35446ebe9ef16de06ddfe | --- src/screens/AllTeamsScreen/SupplyChainAllTeamsScreen.tsx
@@ -77,7 +77,7 @@ export const SupplyChainAllTeamsScreen = () => {
{showTotalStore ? (
<>
<TeamListItem
- teamId='Totalsite'
+ teamId='total'
domain={supplyChainDomain}
iconType='navArrow'
isLastListItem
| fix: fix totalsite all teams image | fix: fix totalsite all teams image
|
8b23ebd9c9dae0eb32b0b517e4333689fc816ee5 | --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx
@@ -180,7 +180,7 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [
clockCheckEnabled: true,
},
{
- featureId: 'checkoutReturn',
+ featureId: MINI_APPS.CHECKOUT_RETURN,
name: 'Returns',
component: ReturnsMiniApp,
options: {
@@ -189,7 +189,7 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [
clockCheckEnabled: true,
},
{
- featureId: 'checkoutReturn',
+ featureId: MINI_APPS.CHECKOUT,
name: 'Checkout',
component: CheckoutMiniApp,
options: {
--- core/src/oneClick/MiniApps.ts
@@ -44,7 +44,7 @@ export enum MINI_APPS {
CHECKOUT_CONCERN = 'checkout-concern',
SETTINGS_CHECKOUT = 'settings-checkout',
WHATSNEW_CHECKOUT = 'whatsNew-checkout',
- FACILITY_MANAGEMENT = 'facilityManagement',
+ FACILITY_MANAGEMENT = 'fcm',
OVERVIEW = 'overview',
REPORT_AN_ISSUE = 'report-an-issue',
NEEDS_ATTENTION = 'needs-attention',
@@ -63,6 +63,7 @@ export enum MINI_APPS {
TEXTING = 'texting',
AMP = 'amp',
PAYROLL = 'payroll',
+ CHECKOUT = 'checkout',
}
// Mapping of other possible identifiers to their correct feature identifier
| ALLSPARK-4320: Updated checkout and fcm | ALLSPARK-4320: Updated checkout and fcm
|
6eb3e0f8402f3d36ef8aa6cf7b2197edb851abce | --- .looper-native-common.yml
@@ -26,7 +26,6 @@ envs:
BETACRASH_APP_ID: "889"
SLACK_WEBHOOK: "https://hooks.slack.com/services/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"
-
tools:
maven: 3.5.4
nodejs: 9.11.2
| removed spaces | removed spaces
|
ebbf34381b1564a2e9067db8baad6ddbfd1a4c0f | --- src/navigation/components.tsx
@@ -59,7 +59,7 @@ export const LivingDesignTabBar = (props: MaterialTopTabBarProps) => {
color: tintColor || '',
})}
trailing={options.tabBarBadge?.()}>
- {label as string}
+ {label}
</TabNavigationItem>
);
});
--- src/navigation/components.tsx
@@ -59,7 +59,7 @@ export const LivingDesignTabBar = (props: MaterialTopTabBarProps) => {
color: tintColor || '',
})}
trailing={options.tabBarBadge?.()}>
- {label as string}
+ {label}
</TabNavigationItem>
);
});
| remove tsc bandaid | remove tsc bandaid
|
31fe4ddd116ba39df41140f16be0cff2ac593dfe | --- packages/me-at-walmart-location/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.1.0 (2025-11-03)
+
+### Features
+
+- **lib:** ALLSPARK-7058 refactor location ([#468](https://gecgithub01.walmart.com/allspark/allspark/issues/468)) ([0992a91](https://gecgithub01.walmart.com/allspark/allspark/commit/0992a91c1207700976f5f9f9f997898def72d535))
+
## [1.3.19](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.18...@walmart/me-at-walmart-geolocation@1.3.19) (2025-10-30)
**Note:** Version bump only for package @walmart/me-at-walmart-geolocation
--- packages/me-at-walmart-location/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-location",
- "version": "1.0.0",
+ "version": "1.1.0",
"description": "Geofencing, location tracking and location services for me@ apps",
"author": "m0n09mr <maksym.novakh@walmart.com>",
"main": "./lib/cjs/index.js",
| chore(version): updating package version | chore(version): updating package version
- @walmart/me-at-walmart-location@1.1.0
|
2476b97ebeefffa5ef3c629c77a2f3ab6492a0e0 | --- src/navigation/utils.ts
@@ -3,7 +3,6 @@ import {View} from 'react-native';
import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
import {analytics} from '../logger/Analytics';
import {createAssociateChannelId, createChannelPath} from '../channels';
-import '../types/global.d'; // Import global type declarations
let _parentScreenRef: React.RefObject<View> | null = null;
export const setParentScreenRef = (ref: React.RefObject<View> | null) => {
| fix(build-fix): SMDV-7807 fix global import | fix(build-fix): SMDV-7807 fix global import
|
a8034eea9b0a7b71edb0693f766a38a699eb5f75 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart",
- "version": "1.35.2",
+ "version": "1.35.3",
"main": "index.js",
"private": true,
"workspaces": [
| Update package.json | Update package.json |
57bd50818468f4af27dfbe39d87aeedddce8f3ab | --- package-lock.json
@@ -3218,9 +3218,9 @@
"integrity": "sha512-4VL2h7BKEZNP+QtIaYbQXJ6kpxZdeeCqTA3PvP1L933vlNsilF3y5RO9lCyMsTjWQ+AJ3Ww6gqC/oNDxjTvtGw=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.3.4",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.3.4.tgz",
- "integrity": "sha512-YJaN3vCLLgfyavuvYE7ctf4XHmJBmVAlS6LtZ665CCPsrz5AUwO0/oqpTVaJs2RaRHIu0S7p4vp5UD/+rlI9qQ==",
+ "version": "0.3.5",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.3.5.tgz",
+ "integrity": "sha512-6EJKfxqdLElCzmVxhRNlzl4Hbn78di3qdR+RxElTeazcptrU80C9FsW2X4CAtvWwCrMTY45rhC3X6ai93KnWxw==",
"requires": {
"@react-native-community/datetimepicker": "3.0.9",
"moment-timezone": "^0.5.31",
--- package.json
@@ -81,7 +81,7 @@
"@walmart/redux-store": "^1.0.12",
"@walmart/schedule-mini-app": "0.2.76",
"@walmart/settings-mini-app": "1.2.3",
- "@walmart/time-clock-mini-app": "0.3.4",
+ "@walmart/time-clock-mini-app": "0.3.5",
"@walmart/ui-components": "1.1.14",
"@walmart/welcomeme-mini-app": "0.24.2",
"@walmart/wfm-ui": "^0.1.50",
| Fixed missing punches bug Drop 2.5 | Fixed missing punches bug Drop 2.5
|
638e4bc9baf5c6bda5380ce7d846b49b5bf51fcc | --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap
@@ -203,7 +203,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
name="emergency.banner"
options={
Object {
- "gestureDirection": "vertical",
"gestureEnabled": false,
"headerShown": true,
"title": "navigation.emergency",
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx
@@ -269,7 +269,6 @@ export const MainStackNav = () => {
name='emergency.banner'
component={EmergencyBannerScreen}
options={{
- gestureDirection: 'vertical',
gestureEnabled: false,
headerShown: true,
title: translate('navigation.emergency'),
| gestureDirection removed | gestureDirection removed
|
b90f766798dc9d48f8b8ca5a664c94e8a4fe1ade | --- package-lock.json
@@ -4137,9 +4137,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.5.16",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.16.tgz",
- "integrity": "sha512-4I9oqcQn8dmtIWBMEmHb3cOQC16VNruKVlTtaJH9n44WP6oAyb0TsScQVIxzoZFy6nFhpRpZPuG1Lt9frtpNpg==",
+ "version": "0.5.19",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.19.tgz",
+ "integrity": "sha512-f2P4lXGm/8LlNyRRqRnLZ9sVhJa/IFmDOCRDSN1vPt4DpHfMy+fNbWNvrmwoqJofPCo63ZZ8lZnm04inCxb90w==",
"requires": {
"moment": "^2.29.0",
"uuid": "^8.3.1"
--- package.json
@@ -71,7 +71,7 @@
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/allspark-health-survey-mini-app": "0.0.43",
- "@walmart/allspark-home-mini-app": "0.5.16",
+ "@walmart/allspark-home-mini-app": "0.5.19",
"@walmart/allspark-me-mini-app": "0.31.2",
"@walmart/allspark-neon-core": "0.1.25",
"@walmart/ask-sam-mini-app": "0.40.4",
| Home bump | Home bump
|
9b0e92c71c4144faccd0ea17c6a9ed9c1afef23b | --- package-lock.json
@@ -3611,9 +3611,9 @@
}
},
"@walmart/time-clock-mini-app": {
- "version": "0.4.20",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.20.tgz",
- "integrity": "sha512-CnkZLcvHuJ7jRefxpRGCHguXsk9svreC6wpdnFWH7XxcTTF99PQA+atyW38U88/7Knmv8fHtQH9pVLoPoynhrQ==",
+ "version": "0.4.21",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.21.tgz",
+ "integrity": "sha512-nxchtjmd0QDeCp+XE2GP1319/wwi53Cd2NhcCkL9WvDIcmyqkZTUb5dmAaF3yTC0QBew3Ydjz4g/+j04hRXWOg==",
"requires": {
"@react-native-community/datetimepicker": "3.0.9",
"@react-native-picker/picker": "^1.16.1",
@@ -13207,9 +13207,9 @@
"integrity": "sha512-PKaL0MFy+VjTT4wcx/v90BlvlRXgdWGUU8Sz/760A2Esj175A8w/vFQCtZhUer5FVxmpYVKk7nHzoewii4ygRw=="
},
"react-query": {
- "version": "3.28.0",
- "resolved": "https://npme.walmart.com/react-query/-/react-query-3.28.0.tgz",
- "integrity": "sha512-OeX+nRqs7Zi0MvvtaKxKWE4N966UGtqSVuedOsz8cJh9eW195fgtYZ9nW3hZjIPPmeDY1PkArLUiV4wZvNRDPw==",
+ "version": "3.29.1",
+ "resolved": "https://npme.walmart.com/react-query/-/react-query-3.29.1.tgz",
+ "integrity": "sha512-EKhI4YokmB1Ccnv1vu8w5L9VpKUnznzLLpaMgaJx1xEnBvGTdUrpNFFxuGiDuiQOg3hi6TvSHVTfo/Nws3kTpg==",
"requires": {
"@babel/runtime": "^7.5.5",
"broadcast-channel": "^3.4.1",
--- package.json
@@ -97,7 +97,7 @@
"@walmart/schedule-mini-app": "0.3.1",
"@walmart/settings-mini-app": "1.3.7",
"@walmart/shelfavailability-mini-app": "0.3.90",
- "@walmart/time-clock-mini-app": "0.4.20",
+ "@walmart/time-clock-mini-app": "0.4.21",
"@walmart/ui-components": "1.1.57",
"@walmart/welcomeme-mini-app": "0.30.4",
"@walmart/wfm-ui": "^0.1.50",
| Timeclock update | Timeclock update
|
74b3276cdc17132f3984c95954f7e8cdc31f5590 | --- targets/US/package.json
@@ -125,7 +125,7 @@
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.3",
"@walmart/payrollsolution_miniapp": "0.141.17",
- "@walmart/price-changes-mini-app": "1.10.20",
+ "@walmart/price-changes-mini-app": "1.10.21",
"@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch",
"@walmart/react-native-cookies": "1.0.1",
"@walmart/react-native-encrypted-storage": "~1.1.3",
--- yarn.lock
@@ -7041,7 +7041,7 @@ __metadata:
"@walmart/onewalmart-miniapp": "npm:1.0.24"
"@walmart/pay-stub-miniapp": "npm:0.15.3"
"@walmart/payrollsolution_miniapp": "npm:0.141.17"
- "@walmart/price-changes-mini-app": "npm:1.10.20"
+ "@walmart/price-changes-mini-app": "npm:1.10.21"
"@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch"
"@walmart/react-native-cookies": "npm:1.0.1"
"@walmart/react-native-encrypted-storage": "npm:~1.1.3"
@@ -7464,9 +7464,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/price-changes-mini-app@npm:1.10.20":
- version: 1.10.20
- resolution: "@walmart/price-changes-mini-app@npm:1.10.20"
+"@walmart/price-changes-mini-app@npm:1.10.21":
+ version: 1.10.21
+ resolution: "@walmart/price-changes-mini-app@npm:1.10.21"
peerDependencies:
"@react-navigation/native": ^6.0.8
"@react-navigation/stack": ^6.2.0
@@ -7493,7 +7493,7 @@ __metadata:
redux-saga: ^1.1.3
reduxsauce: ^1.2.0
uuid: ^3.3.2
- checksum: 10c0/8dc5aa51f6d535cb946960f56155932aeeece4120046e7d549159646332024c179d2a4585f5d17f28cd49acef6158347645e1fa07547821cd890c13c6a2690c9
+ checksum: 10c0/8b77464012d3a28e8d3b7c1ba6673bfc43e2470c59b6c77e99b2b8318eab148f77492a29105dcab536d524bfb5df27948a0248da1e0a3d98e797dc723b4f6de1
languageName: node
linkType: hard
| chore: updating pc version | chore: updating pc version
|
75e85959dee1c6e54ead478a32fed31eb02e246d | --- .looper-native-common-saucelabs.yml
@@ -18,9 +18,14 @@ envs:
XC_TARGET: 'AllSpark'
PRODUCT_NAME: 'Me@Walmart'
NO_PROXY: "*.walmart.com,chromium.googlesource.com,apps.betacrash.com"
+ APP_TITLE: "AllSpark-Core"
#Sauce labs
SAUCE_ACCESS_KEY: ENC[9Wm+fkPlZ074+OsM/ZWXGZ7p1+QKOfPDRs8LiaWCaTHVTEmoiZLtdk+oAGXbrAHv]
SAUCE_USERNAME: ENC[fD1cTMTvCeuayrzb/z7OQ35s0JeqFfJEhoVESlrWBgg=]
+ saucelabs:
+ user: "%{credentials.username('ss-saucelabs')}"
+ pass: "%{credentials.password('ss-saucelabs')}"
+ endpoint: "https://api.us-west-1.saucelabs.com/v1/storage/upload"
tools:
@@ -53,11 +58,13 @@ flows:
- echo "starting building ios saucelabs prod build"
- (name setting environment) npm run env:${env}
- call: build-saucelabs-ios(os = ${os})
+ - call: upload-saucelabs(os = ${os},buildOutput="./ios/build/Artifacts/simulator-me-wm.zip", artifact_name=${APP_TITLE}.zip)
+ - (name looper postbuild clean) ./ios/BuildSupport/looper-clean.sh
else:
- var(buildOutput = "./android/app/build/outputs/apk/release/app-release-signed.apk")
- echo "starting building Android saucelabs prod build"
- call: build-android(env = ${env})
- - call: upload-android-saucelabs(os = ${os})
+ - call: upload-saucelabs(buildOutput = ${buildOutput}, artifact_name=${APP_TITLE}.apk)
setup-ios:
- dir(ios):
@@ -81,8 +88,8 @@ flows:
- dir(ios):
- echo "Saucelab simulator steps for prod build"
- (name start simulator) $WORKSPACE/scripts/start-simulator.sh 2>&1
- - call: upload-ios-saucelabs(os = "${os}")
- - (name looper postbuild clean) ./BuildSupport/looper-clean.sh
+ - (name build ipa for simulator) ./BuildSupport/build-archive-simulator.sh
+ - (name move ipa for simulator) ./BuildSupport/save_simulator_build.rb
build-android:
- dir(android):
@@ -93,17 +100,11 @@ flows:
echo "about to run build"
./gradlew assembleRelease --info --stacktrace
- upload-ios-saucelabs:
+ #Flow to upload artifacts to saucelabs and trigger automation testing
+ upload-saucelabs:
- try:
- - (name build ipa for simulator) ./BuildSupport/build-archive-simulator.sh
- - (name move ipa for simulator) ./BuildSupport/save_simulator_build.rb
- - (name upload ipa to saucelabs) ../scripts/upload_build_saucelabs.sh "${os}"
+ - echo "uploading artifact to saucelabs"
+ - curl --retry 3 -F payload=@${buildOutput} -F name=${artifact_name} -u ${saucelabs.user}:${saucelabs.pass} ${saucelabs.endpoint} --output output.txt
+ - python3 saucelabs/call-electrode.py
catch:
- - warn('Failed to upload zip to sauce labs')
-
- upload-android-saucelabs:
- - try:
- - echo "SauceLabs step for Android prod"
- - (name upload apk to saucelabs) ./scripts/upload_build_saucelabs.sh "${os}"
- catch:
- - warn('Failed to upload apk to sauce labs')
+ - warn(' Failed to upload artifact to saucelabs')
--- saucelabs/call-electrode.py
@@ -0,0 +1,106 @@
+import requests
+import json
+from config import config
+from time import sleep
+from requests.packages.urllib3.exceptions import InsecureRequestWarning
+requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
+
+
+
+tag_temp = config['app_tag'].lower()
+looper_user = config['ci_electrode_user']
+looper_token = config['ci_electrode_token']
+automation_job_endpoint = config['automation_job_endpoint']
+response = {}
+default_version = "Null"
+retry_count = 0
+
+
+# logic to add standalone checks
+if "allspark" in tag_temp:
+ test_tag = tag_temp
+else:
+ test_tag = tag_temp + "_standalone"
+print(" passing tag "+ test_tag)
+
+# function to check looper job status
+def check_job_status(job_url):
+ max_retry = 50
+ delay = 60
+ global retry_count
+ retry_count += 1
+ if retry_count < max_retry:
+ pass
+ else:
+ print("max retries exceeded. ")
+ return("failed")
+ headers = {
+ 'Accept': 'application/json'
+ }
+ try:
+ build_status = requests.get(job_url,headers=headers,auth=(looper_user,looper_token),verify=False)
+ job_status = json.loads(build_status.text)['status']
+ if job_status in ['NEW','BUILDING']:
+ print(job_status + ' job, retrying in ' + str(delay) + ' seconds')
+ sleep(delay)
+ check_job_status(job_url)
+ else:
+ try:
+ if job_status == "SUCCESS":
+ print ("Automation job is success, proceeding to upload...")
+ return("success")
+ elif job_status == "FAILED":
+ print ("Automation job failed not uploading")
+ return("failed")
+ except:
+ print ("Automation job didn't complete successfully. Check the build status below")
+ print(build_status.text)
+ return ("failed")
+
+ except:
+ print("Exception while checking build status, retrying in " + str(delay) + " seconds.")
+ check_job_status(job_url)
+
+
+
+
+#open output file and read response
+with open('output.txt','r') as data:
+ temp = data.read()
+ response = json.loads(temp)
+
+
+app_id = response['item']['id']
+try:
+ app_version = response['item']['metadata']['version']
+except:
+ app_version = default_version
+
+headers = {
+ 'Content-Type': 'application/json',
+}
+params = (
+ ('delay', '0sec'),
+ ('call', 'ci_flow'),
+ ('APP_ID', app_id),
+ ('APP_VERSION',app_version),
+ ('TAG',test_tag)
+)
+try:
+ request_response = requests.post(automation_job_endpoint, headers=headers, auth=(looper_user,looper_token),params=params,verify=False)
+ print(request_response)
+ print("triggered automation job sucessfully")
+except:
+ print("exception while trying to trigger automation job")
+
+
+# CODE TO CHECK IF AUTOMATION JOB IS SUCCESS OR FAILURE
+#response_headers = request_response.headers
+#job_queue_id = response_headers['Location'].split('/')[-2]
+#queue_url = "https://ci.electrode.walmart.com/rest/queue/" + job_queue_id
+#job_status = check_job_status(queue_url)
+#if job_status == "success":
+# exit(0)
+#else:
+# exit(1)
+
--- saucelabs/config.py
@@ -0,0 +1,6 @@
+config = {
+'app_tag': 'allspark',
+'ci_electrode_user': 'a0v0401',
+'ci_electrode_token':'11de4e75d3d6490841f19813bb4a4f923d',
+'automation_job_endpoint' : 'https://ci.electrode.walmart.com/job/All%20Spark/job/all-spark-android-automation/buildWithParameters'
+}
| allspark saucelabs test automamtion looper job (#257) | allspark saucelabs test automamtion looper job (#257)
* automation job integration
* avoiding npm coverage
* adding back npm coverage
* added cron expression
* changing inherit flow
* ios automation changes
* skip npm coverage
* changing inherit job
* printing working directory
* ios automation changes
* adding npm coverage
* Update .looper-native-common-saucelabs-automated.yml
* removing npm coverage check
* fixing cleanup script
* fixing cleanup script
* adding npm coverage check
* merging looper files
* merging looper files
* skip npm coverage
* skip npm coverage
* android saucelabs
* ios saucelabs
* removing unwanted files
* changing inheritance
* suggested changes in review
* changes suggested in review
* changes suggested in review
Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com> |
c72e14e347589149c3cfb5b70dbaaa64f9fddc7a | --- src/components/AssociateRosterItem/style.ts
@@ -40,4 +40,5 @@ export const styles = StyleSheet.create({
textDecorationLine: 'underline',
},
buttonsStyle: {flexDirection: 'row', alignItems: 'center'},
+ pushToTalkBtn: {marginRight: 8},
});
--- src/screens/SearchScreen.tsx
@@ -41,7 +41,7 @@ import {useDispatch} from 'react-redux';
import {rosterSlice} from '../redux/reducer';
import {filterAssociatesBySearchInput} from '../components/Roster/search';
import {AssociateRosterItem} from '../components/Roster/types';
-import { Associate } from "../types";
+import {Associate} from '../types';
const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`;
| refactor | refactor
|
1cfbeb0a2180af04efb315831dc7bc882e4857f0 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/wmconnect-mini-app",
- "version": "3.7.7",
+ "version": "3.7.8",
"main": "dist/index.js",
"files": [
"dist",
| feat(ui): update package version | feat(ui): update package version
|
4784b3caf4403afc7425f821323f57539199b24e | --- packages/allspark-foundation/src/Navigation/types.ts
@@ -9,6 +9,7 @@ import type {
EventMapBase,
PathConfigMap,
LinkingOptions,
+ NavigationProp,
} from '@react-navigation/native';
import {
StackNavigationOptions,
@@ -133,7 +134,14 @@ export type AllsparkScreenConfig<
NavigationState,
StackNavigationOptions,
EventMapBase,
- any
+ NavigationProp<
+ ParamList,
+ keyof ParamList,
+ string | undefined,
+ NavigationState,
+ {},
+ EventMapBase
+ >
>,
'children' | 'component' | 'name' | 'getComponent'
> & {
| chore: improve type definition | chore: improve type definition
|
890d2b98d112e9059da8619afe2d1f0053edeaa4 | --- .looper.yml
@@ -22,9 +22,9 @@ triggers:
- manual:
name: Publish From Package
call: publishFromPackage
- # - manual:
- # name: Publish All
- # call: publishAll
+ - manual:
+ name: Publish All
+ call: publishAll
# - manual:
# name: Publish Patch
# call: publishPatch
| Chore: update looper.yml for publishAll | Chore: update looper.yml for publishAll
|
c0352d87bbee39e8114b6b959f6a7b05d9298644 | --- packages/allspark-foundation-hub/src/Shared/Components/ErrorScreen/ErrorScreen.tsx
@@ -22,6 +22,7 @@ export interface ErrorScreenProps {
handlePrimaryButtonPress: () => void;
handleSecondaryButtonPress?: () => void;
HeaderOverrides?: React.JSX.Element;
+ showFooterButtonGroups?: boolean;
}
export const ErrorScreen = ({
@@ -32,6 +33,7 @@ export const ErrorScreen = ({
handlePrimaryButtonPress = () => {},
handleSecondaryButtonPress = () => {},
HeaderOverrides = <></>,
+ showFooterButtonGroups = false,
}: ErrorScreenProps) => {
const TeamImage = useAllsparkImage();
const logger = LoggerService.getContainerInstance();
@@ -74,15 +76,27 @@ export const ErrorScreen = ({
/>
}
title={errorTitle}
+ actions={
+ !showFooterButtonGroups && (
+ <ActionButtonGroup
+ secondaryButtonLabel={secondaryButtonText}
+ primaryButtonLabel={primaryButtonText}
+ onPrimaryButtonPress={handlePrimaryButtonPress}
+ onSecondaryButtonPress={handleSecondaryButtonPress}
+ />
+ )
+ }
>
{errorMessage}
</ErrorMessage>
- <ActionButtonGroup
- secondaryButtonLabel={secondaryButtonText}
- primaryButtonLabel={primaryButtonText}
- onPrimaryButtonPress={handlePrimaryButtonPress}
- onSecondaryButtonPress={handleSecondaryButtonPress}
- />
+ {showFooterButtonGroups && (
+ <ActionButtonGroup
+ secondaryButtonLabel={secondaryButtonText}
+ primaryButtonLabel={primaryButtonText}
+ onPrimaryButtonPress={handlePrimaryButtonPress}
+ onSecondaryButtonPress={handleSecondaryButtonPress}
+ />
+ )}
</View>
);
};
--- packages/allspark-foundation-hub/src/Store/Modules/TeamSelection/Screens/TeamSelection.tsx
@@ -109,6 +109,7 @@ export const TeamSelection = () => {
}
}}
handleSecondaryButtonPress={navigateBack}
+ showFooterButtonGroups={true}
/>
);
}
--- packages/allspark-foundation-hub/src/SupplyChain/Components/Modal/ModalErrorScreen.tsx
@@ -1,3 +1,4 @@
+import React from 'react';
import { View, Dimensions } from 'react-native';
import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation';
import {
@@ -34,6 +35,7 @@ export const ModalErrorScreen = ({
secondaryButtonText={t('errorScreen.secondaryButtonText')}
handlePrimaryButtonPress={handlePrimaryButtonPress}
handleSecondaryButtonPress={handleCloseModal}
+ showFooterButtonGroups={true}
/>
</View>
);
--- packages/allspark-foundation-hub/src/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx
@@ -201,6 +201,7 @@ export const OnboardingScreen = () => {
handlePrimaryButtonPress={handleRefreshPage}
secondaryButtonText={t('errorScreen.secondaryButtonText')}
handleSecondaryButtonPress={handleSkip}
+ showFooterButtonGroups={true}
/>
);
}
| Update error screen buttons | Update error screen buttons
|
978bea9afee8405482fb6094c776610b633d0e73 | --- packages/me-at-walmart-container/src/services/user/transforms.ts
@@ -8,7 +8,13 @@ import {
GetLoggedInUserFallbackQuery,
GetLoggedInUserQuery,
} from '../../queries';
-import { BU_TYPE_DOMAIN, TokenData, UserDomain, UserType } from './types';
+import {
+ BU_TYPE_DOMAIN,
+ DOMAIN,
+ TokenData,
+ UserDomain,
+ UserType,
+} from './types';
import {
generateImpersonationToken,
inferDomain,
@@ -64,6 +70,7 @@ export const tokenDataToUser = (tokenData: TokenData) => {
const { upn, win, c } = tokenData;
const siteId = inferSiteId(upn);
const fullyQualifiedUserID = inferUserIdfromUpn(upn);
+ const domain = inferDomainFromUpn(upn);
return {
win,
@@ -74,10 +81,11 @@ export const tokenDataToUser = (tokenData: TokenData) => {
homeSite: siteId,
workingSite: siteId,
derivedFromToken: true,
- // ASSUMPTIONS!
+ // ASSUMPTIONS! Are these safe?
countryCode: c || DEFAULT_COUNTRY_CODE,
domain: inferDomainFromUpn(upn),
userType: UserType.associate,
+ employeeType: domain === DOMAIN.homeoffice ? 'S' : 'H',
//??
// employeeType: 'H',
// fullTimePartTime: 'PT',
--- packages/me-at-walmart-container/src/services/user/utils.ts
@@ -31,7 +31,7 @@ export const inferDomainFromBusinessUnit = (
// @ts-ignore
return BU_TYPE_DOMAIN[
businessUnitType as keyof typeof BU_TYPE_DOMAIN
- ] as string;
+ ] as DOMAIN;
};
export const inferDomainFromUpn = (upn: string) => {
@@ -39,7 +39,7 @@ export const inferDomainFromUpn = (upn: string) => {
emailDomainMatches[domainToCheck](upn)
);
- return domain;
+ return domain as DOMAIN | undefined;
};
export const inferDomain = (
| fix: add employeeType to user info derived from token data. update infer domain methods to return better types | fix: add employeeType to user info derived from token data. update infer domain methods to return better types
|
9db6ed916f315253c937a4fea7a8576c1bb87a38 | --- packages/celebration-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.14.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.13.0...@walmart/celebration-mini-app@1.14.0) (2025-10-29)
+
+### Features
+
+- **ui:** update activity aware widget ([e717f4b](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/e717f4b02c9d332930ffa622b4343f13ab37e409))
+
# [1.13.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.12.0...@walmart/celebration-mini-app@1.13.0) (2025-10-29)
### Features
--- packages/celebration-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/celebration-mini-app",
- "version": "1.13.0",
+ "version": "1.14.0",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
| chore(version): updating package version | chore(version): updating package version
- @walmart/celebration-mini-app@1.14.0
|
094a043bfdcea4768771ddb38f79f5783699502c | --- targets/US/package.json
@@ -76,8 +76,8 @@
"@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch",
"@walmart/allspark-authentication": "~6.4.7",
"@walmart/allspark-cope-key-listener": "0.0.18",
- "@walmart/allspark-foundation-hub": "1.4.1",
"@walmart/allspark-foundation": "6.30.3",
+ "@walmart/allspark-foundation-hub": "1.4.1",
"@walmart/allspark-graphql-client": "~6.3.28",
"@walmart/allspark-http-client": "~6.3.28",
"@walmart/allspark-neon-core": "0.1.31",
| feat(ui): Merge develop branch | feat(ui): Merge develop branch
|
9a74b9bfd786ab700dbcf2b905137b1ce11b30bf | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Hub/SiteHubDashboard.tsx
@@ -30,7 +30,7 @@ import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation
import { createDefaultWidgetPlaceholder } from '../../../HubFeature/utils';
import { OnboardingScreen } from '../Screens/OnboardingScreen/OnboardingScreen';
import { Popover } from '../../Shared/Components/Popover';
-import { useGetSupplyChainTeamsPreferenceQuery } from '../../SupplyChain/Hooks/upsertSupplyChainAssociatePreferenceMutation';
+import { useGetSupplyChainTeamsPreferenceQuery } from '../../SupplyChain/Hooks/useGetSupplyChainTeamPreference';
import {
AllsparkNavigationClient,
AllsparkLocalStorage,
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/EditSavedTeamModal/EditSavedTeamsModal.tsx
@@ -19,18 +19,19 @@ import { useGetSupplyChainAllTeamsBySite } from '../../Hooks/useGetSupplyChainTe
import { AllTeamsSections } from './types';
import { useFocusEffect } from '@react-navigation/native';
import { UserSelectors } from '@walmart/allspark-foundation/User';
-import { useGetSupplyChainTeamsPreferenceQuery } from '../../Hooks/upsertSupplyChainAssociatePreferenceMutation';
+import { useGetSupplyChainTeamsPreferenceQuery } from '../../Hooks/useGetSupplyChainTeamPreference';
export interface ModalProps {
modal: {
closeModal: () => void;
- getParam: any;
+ // getParam: any;
};
}
-export const EditSavedTeamsModal = ({ modal }: ModalProps) => {
+export const EditSavedTeamsModal = ({ modal: { closeModal } }: any) => {
const { t } = useAllsparkTranslation(FEATURE_ID);
- const { closeModal } = modal;
+ // const onUpdate = getParam('onUpdate', () => {});
+ // const { closeModal } = modal;
const dispatch = useDispatch();
const site = useSelector(UserSelectors.getWorkingSite);
const win = useSelector(UserSelectors.getWin);
@@ -48,7 +49,9 @@ export const EditSavedTeamsModal = ({ modal }: ModalProps) => {
'x-o-platform-version': getVersion(),
},
},
- onCompleted: () => {},
+ onCompleted: () => {
+ refetch();
+ },
onError: () => {},
});
@@ -128,7 +131,10 @@ export const EditSavedTeamsModal = ({ modal }: ModalProps) => {
businessUnitNumber: Number(site),
},
onCompleted: () => {
+ // console.log('Mutation onCompleted called');
refetch();
+ // console.log('Calling onUpdate with selectedTeams:', selectedTeams);
+ // onUpdate(selectedTeams);
},
});
closeModal();
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/UpdateTeamsModal/UpdateTeamsModal.tsx
@@ -27,7 +27,7 @@ import {
} from '../../../Store/Redux';
import isEqual from 'lodash/isEqual';
import { useGetSupplyChainAllTeamsBySite } from '../../Hooks/useGetSupplyChainTeamsByStore';
-import { useGetSupplyChainTeamsPreferenceQuery } from '../../Hooks/upsertSupplyChainAssociatePreferenceMutation';
+import { useGetSupplyChainTeamsPreferenceQuery } from '../../Hooks/useGetSupplyChainTeamPreference';
import { useFocusEffect } from '@react-navigation/native';
import { useUpsertSupplyChainAssociatePreferenceMutation } from '@walmart/me-at-walmart-athena-queries';
import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment';
| Updating query path | Updating query path
|
7c7072c49bec9dd489b0168864a77373c9ad2b50 | --- yarn.lock
@@ -7062,9 +7062,9 @@ __metadata:
"@walmart/shop-gnfr-mini-app": "npm:1.0.137"
"@walmart/sidekick-mini-app": "npm:4.84.14"
"@walmart/store-feature-orders": "npm:1.27.1"
- "@walmart/topstock-mini-app": "npm:1.19.2"
"@walmart/taskit-mini-app": "npm:4.25.8"
"@walmart/time-clock-mini-app": "npm:2.448.1"
+ "@walmart/topstock-mini-app": "npm:1.19.4"
"@walmart/translator-mini-app": "npm:1.3.7"
"@walmart/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"
@@ -8067,9 +8067,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/topstock-mini-app@npm:1.19.2":
- version: 1.19.2
- resolution: "@walmart/topstock-mini-app@npm:1.19.2"
+"@walmart/topstock-mini-app@npm:1.19.4":
+ version: 1.19.4
+ resolution: "@walmart/topstock-mini-app@npm:1.19.4"
peerDependencies:
"@react-native-firebase/app": ^15.1.1
"@react-native-firebase/crashlytics": ^15.1.1
@@ -8086,7 +8086,7 @@ __metadata:
react-native-haptic-feedback: ^1.13.0
react-native-vector-icons: ">=6.6.0"
react-redux: ">=7.2.0"
- checksum: 10c0/43c49a58246ebf11d2a4f11ec164a8e789c6067a9d4d60b90a9c3cbe78750033fd7b9f1130b32e22465a2e0f2b46b7d520532a3c90548081d33df9ff47d50907
+ checksum: 10c0/4f7516a602f2a7d6775ce26301fa106a1eb7433cfb8601303f5a3a3dee57f4d5dd5cf43034e66a6cba4b1640b4976bb181c5544d6c171039be2d665260cc33b0
languageName: node
linkType: hard
| fix():bumped up topstock version | fix():bumped up topstock version
|
5b67f598adc14d530bee295c0a0c603a74d6bbe8 | --- android/app/src/main/res/values/colors.xml
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="blue">#041e42</color>
+ <color name="black">#000000</color>
</resources>
--- android/app/src/main/res/values/styles.xml
@@ -6,11 +6,11 @@
<item name="android:statusBarColor">@color/blue</item>
<!-- Refer to https://github.com/facebook/react-native/pull/29452 -->
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
- <item name="android:textColor">#000000</item>
+ <item name="android:textColorPrimary">@color/black</item>
</style>
<style name="SplashTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
- <item name="android:textColor">#000000</item>
+ <item name="android:textColor">@color/black</item>
<item name="android:windowBackground">@drawable/background_splash</item>
<item name="android:statusBarColor">@color/blue</item>
</style>
| fix: 💄 Added text color for app theme to fix dark mode text input issue | fix: 💄 Added text color for app theme to fix dark mode text input issue
|
319d828be4956226c5a952d0325b73b1cd6640d5 | --- package-lock.json
@@ -57,7 +57,7 @@
"@walmart/inbox-mini-app": "0.83.3",
"@walmart/iteminfo-mini-app": "7.2.2",
"@walmart/manager-approvals-miniapp": "0.2.2",
- "@walmart/me-field-mini-app": "12.0.23",
+ "@walmart/me-field-mini-app": "12.0.24",
"@walmart/metrics-mini-app": "0.11.5",
"@walmart/mod-flex-mini-app": "1.8.6",
"@walmart/moment-walmart": "1.0.4",
@@ -5453,9 +5453,9 @@
}
},
"node_modules/@walmart/me-field-mini-app": {
- "version": "12.0.23",
- "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.23.tgz",
- "integrity": "sha512-iMPvDT/RDqhYlpCiL+xM3EZsQlUeS11/EIYW4D0s+p8GqIzUUrIgI9PUmsFC82MK865sgBxxLS5G4n2rQypsFQ==",
+ "version": "12.0.24",
+ "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.24.tgz",
+ "integrity": "sha512-op+Wp2RXsGxU93b5oGs/cKTj5cXPbiyOOGspby4CcYIff+5a39mLGAKUd2fYJLkw/m70qc0aIgO03wyEX15hRA==",
"hasInstallScript": true,
"peerDependencies": {
"@atmt/feedback-component-native": "^8.0.0",
@@ -25348,9 +25348,9 @@
}
},
"@walmart/me-field-mini-app": {
- "version": "12.0.23",
- "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.23.tgz",
- "integrity": "sha512-iMPvDT/RDqhYlpCiL+xM3EZsQlUeS11/EIYW4D0s+p8GqIzUUrIgI9PUmsFC82MK865sgBxxLS5G4n2rQypsFQ=="
+ "version": "12.0.24",
+ "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.24.tgz",
+ "integrity": "sha512-op+Wp2RXsGxU93b5oGs/cKTj5cXPbiyOOGspby4CcYIff+5a39mLGAKUd2fYJLkw/m70qc0aIgO03wyEX15hRA=="
},
"@walmart/metrics-mini-app": {
"version": "0.11.5",
--- package.json
@@ -99,7 +99,7 @@
"@walmart/inbox-mini-app": "0.83.3",
"@walmart/iteminfo-mini-app": "7.2.2",
"@walmart/manager-approvals-miniapp": "0.2.2",
- "@walmart/me-field-mini-app": "12.0.23",
+ "@walmart/me-field-mini-app": "12.0.24",
"@walmart/metrics-mini-app": "0.11.5",
"@walmart/mod-flex-mini-app": "1.8.6",
"@walmart/moment-walmart": "1.0.4",
| ⬆️ Bump Learning mini app | ⬆️ Bump Learning mini app
|
3f20f841595f5e47948d489460cf15e6a5e15037 | --- packages/core-services-allspark/src/httpClient/interceptors/unauthorized.ts
@@ -32,7 +32,9 @@ async function unauthorizedErrorResponseInterceptor(
statusList.push(response?.status);
const limit = await this.getAllowed401Errors();
if (statusList.length > limit) {
- this.logger.info('Signing user out due to repeated 401 errors');
+ this.logger.error('Signing user out due to repeated 401 errors', {
+ limit,
+ });
authActions.signOutRequest();
}
} else {
| chore(httpClient): update logger from info to error | chore(httpClient): update logger from info to error
|
e0f2974dbed6083fd8e152c1c2368fbdf4910cd2 | --- package-lock.json
@@ -5448,9 +5448,9 @@
}
},
"@walmart/price-changes-mini-app": {
- "version": "1.5.3",
- "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.5.3.tgz",
- "integrity": "sha512-+qRUaM9tMKyqvLtXFm59meijj2mxG3+/6Ql39p6zkecyDi83ke+hu4qqFb59sZXHd/Y9S5gF0O/lotNn74uglQ=="
+ "version": "1.5.4",
+ "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.5.4.tgz",
+ "integrity": "sha512-JM5F79SxIgq0cE/oqeZg7jWAaByTcIClkOWOPqRJ8nHH361keqSng3e5GiqXUYrpRHjKs4g87D1EImYvYfF8jw=="
},
"@walmart/profile-feature-app": {
"version": "0.0.63",
--- package.json
@@ -104,7 +104,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/pay-stub-miniapp": "0.8.1",
"@walmart/payrollsolution_miniapp": "0.126.9",
- "@walmart/price-changes-mini-app": "1.5.3",
+ "@walmart/price-changes-mini-app": "1.5.4",
"@walmart/profile-feature-app": "0.0.63",
"@walmart/push-to-talk-mini-app": "1.8.14",
"@walmart/react-native-encrypted-storage": "1.1.3",
| Bump price-changes-miniapp to 1.5.4 | Bump price-changes-miniapp to 1.5.4
|
169f7c2e5578f0b4e9caabfe1a9a987ca86b3ba1 | --- package.json
@@ -123,7 +123,7 @@
"@walmart/global-vpi-mini-app": "1.1.63",
"@walmart/gta-react-native-calendars": "0.7.0",
"@walmart/gtp-shared-components": "2.3.0-rc.0",
- "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.14",
+ "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.15",
"@walmart/ims-print-services-ui": "2.24.3",
"@walmart/inbox-mini-app": "0.105.3",
"@walmart/invue-react-native-sdk": "0.1.26-alpha.14",
--- src/navigation/USHallway/AssociateHallwayNav/SideMenuContent.tsx
@@ -113,6 +113,7 @@ export const SideMenuContent = () => {
setImmediate(() =>
// Look to rename mapping for new route name, if none found, use route name
navigation.navigateDeprecated('tabs', {
+ screen: 'for-you',
...(params || {}),
}),
);
--- yarn.lock
@@ -8094,9 +8094,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/gtp-shared-components-3@npm:@walmart/gtp-shared-components@3.0.0-beta.14":
- version: 3.0.0-beta.14
- resolution: "@walmart/gtp-shared-components@npm:3.0.0-beta.14::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fgtp-shared-components%2F-%2F%40walmart%2Fgtp-shared-components-3.0.0-beta.14.tgz"
+"@walmart/gtp-shared-components-3@npm:@walmart/gtp-shared-components@3.0.0-beta.15":
+ version: 3.0.0-beta.15
+ resolution: "@walmart/gtp-shared-components@npm:3.0.0-beta.15::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fgtp-shared-components%2F-%2F%40walmart%2Fgtp-shared-components-3.0.0-beta.15.tgz"
dependencies:
"@livingdesign/tokens-next": "npm:@livingdesign/tokens@1.16.0"
"@walmart/gtp-shared-mega-icons": "npm:1.0.5"
@@ -8115,7 +8115,7 @@ __metadata:
bin:
installFonts: ./scripts/installFonts
runCodemods: ./scripts/runCodemods
- checksum: 10c0/6bbfdadd322a9aa75c454d99e46dc41aabfebeb9b7527fd9ae6a6ace45db190954aa02e0554841b982f86cd8bdeb1c18b4f68facef01cb66586a633b5ac0624e
+ checksum: 10c0/d4dc6d8100229d0228780186449b69808264d3d30b18d8b4c18af921d7256443beaed90cf186a28b961eb98d093b18d3c56828d01e3f5f3ef3569afc3271f013
languageName: node
linkType: hard
@@ -8521,7 +8521,7 @@ __metadata:
"@walmart/global-vpi-mini-app": "npm:1.1.63"
"@walmart/gta-react-native-calendars": "npm:0.7.0"
"@walmart/gtp-shared-components": "npm:2.3.0-rc.0"
- "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.14"
+ "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.15"
"@walmart/ims-print-services-ui": "npm:2.24.3"
"@walmart/inbox-mini-app": "npm:0.105.3"
"@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.14"
| fix(nav): ALLSPARK-7413 fixed home navigation (#5189) | fix(nav): ALLSPARK-7413 fixed home navigation (#5189)
Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com>
Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com> |
b1d124f4ad8471fff8054ea2c4af3dd9e3d6c60d | --- __tests__/sumo/SumoSagasTest.ts
@@ -8,6 +8,7 @@ import {
put,
debounce,
fork,
+ retry,
} from 'redux-saga/effects';
import WmNotification, {
Domain,
@@ -33,7 +34,6 @@ import {
TOKEN_CHANGED_ACTION,
USER_CHANGED_ACTIONS,
waitForToken,
- retry,
} from '../../src/redux';
import {
getSumoCharged,
@@ -375,13 +375,12 @@ test('persistOptInSetting', () => {
});
describe('shouldRetryRegisterError', () => {
- it('returns true for network errors', () => {
+ it('returns true for errors', () => {
const error = new Error('Something went wrong');
expect(shouldRetryRegisterError(error)).toEqual(true);
});
- it('returns false for non network errors', () => {
- // const error = new Error('Something went wrong');
+ it('returns false for no error', () => {
expect(shouldRetryRegisterError()).toEqual(false);
});
});
@@ -411,14 +410,7 @@ describe('registerSumoUser', () => {
put(SumoActionCreators.profileStarted()),
);
expect(iterator.next().value).toEqual(
- retry(
- 3,
- 1000,
- shouldRetryRegisterError,
- WmNotification.register,
- profile,
- optIn,
- ),
+ retry(3, 1000, WmNotification.register, profile, optIn),
);
expect(iterator.next(profile).value).toEqual(
put(SumoActionCreators.profileSuccess(profile, optIn)),
@@ -435,14 +427,7 @@ describe('registerSumoUser', () => {
put(SumoActionCreators.profileStarted()),
);
expect(iterator.next().value).toEqual(
- retry(
- 3,
- 1000,
- shouldRetryRegisterError,
- WmNotification.register,
- profile,
- optIn,
- ),
+ retry(3, 1000, WmNotification.register, profile, optIn),
);
expect(iterator.throw(error).value).toEqual(
put(SumoActionCreators.profileFailure(error)),
--- src/sumo/SumoSagas.ts
@@ -10,6 +10,7 @@ import {
put,
debounce,
fork,
+ retry,
} from 'redux-saga/effects';
import {User} from '@walmart/redux-store';
import WmNotification, {
@@ -29,7 +30,6 @@ import {
PermissionTypes,
} from '../permissions/PermissionsRedux';
import {logger} from '../services/Logger';
-import {retry} from '../redux/SharedSagas';
import {StartupTypes} from '../startup';
import {
createRestartableSagas,
@@ -203,7 +203,10 @@ export function* persistOptInSetting({optIn}: any) {
yield call(AsyncStorage.setItem, key, String(optIn));
}
-export const shouldRetryRegisterError = (err?: Error) => !!err;
+// For a given sumo registration error, should we retry registration.
+// Not yet used. Will be used with custom retry saga once Sumo registration
+// errors are standardized.
+export const shouldRetryRegisterError = (error?: Error) => !!error;
// Registers a sumo user with a given opt in status
// Registering handles opt in and register state values as these
@@ -217,7 +220,6 @@ export function* registerSumoUser(optIn: boolean) {
const profileResult: SumoProfile = yield retry(
3,
1000,
- shouldRetryRegisterError,
WmNotification.register,
profile as SumoUser,
optIn,
| Updating register retry method | Updating register retry method
|
127c5d1e00b161c048fca6649c3601af57d05ab7 | --- CHANGELOG.md
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [6.29.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v1.31.0...v6.29.0) (2025-07-23)
+
+
+### Features
+
+* **template:** ALLSPARK-6366 PR template update ([#4456](https://gecgithub01.walmart.com/allspark/allspark-core/issues/4456)) ([860b5c3](https://gecgithub01.walmart.com/allspark/allspark-core/commit/860b5c35bb250e26ad637bd2461b0d153ac6e503))
+
+
+
+
+
# [6.29.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.28.1-alpha.0...v6.29.0-alpha.0) (2025-02-20)
--- lerna.json
@@ -1,5 +1,5 @@
{
- "version": "6.29.0-alpha.0",
+ "version": "6.29.0",
"npmClient": "yarn",
"changelogPreset": "angular",
"command": {
@@ -27,4 +27,4 @@
"packages": [
"packages/*"
]
-}
+}
\ No newline at end of file
--- packages/core-services-allspark/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.
+# [6.29.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v1.31.0...v6.29.0) (2025-07-23)
+
+**Note:** Version bump only for package @walmart/core-services-allspark
+
+
+
+
+
# [6.29.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.28.1-alpha.0...v6.29.0-alpha.0) (2025-02-20)
--- packages/core-services-allspark/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "6.29.0-alpha.0",
+ "version": "6.29.0",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- 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.
+# [6.29.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v1.31.0...v6.29.0) (2025-07-23)
+
+**Note:** Version bump only for package @walmart/core-widget-registry
+
+
+
+
+
# [6.29.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.28.1-alpha.0...v6.29.0-alpha.0) (2025-02-20)
**Note:** Version bump only for package @walmart/core-widget-registry
--- packages/core-widget-registry/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-widget-registry",
- "version": "6.29.0-alpha.0",
+ "version": "6.29.0",
"description": "Repo for Me@Walmart related widget registries",
"author": "rlane1 <russell.lane@walmart.com>",
"license": "ISC",
--- packages/me-at-walmart-common/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.
+# [6.29.0](https://gecgithub01.walmart.com/allspark/allspark/compare/v1.31.0...v6.29.0) (2025-07-23)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-common
+
+
+
+
+
# [6.29.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.28.1-alpha.0...v6.29.0-alpha.0) (2025-02-20)
--- packages/me-at-walmart-common/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-common",
- "version": "6.29.0-alpha.0",
+ "version": "6.29.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/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.
+# [6.29.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v1.31.0...v6.29.0) (2025-07-23)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-container
+
+
+
+
+
# [6.29.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.28.1-alpha.0...v6.29.0-alpha.0) (2025-02-20)
--- packages/me-at-walmart-container/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-container",
- "version": "6.29.0-alpha.0",
+ "version": "6.29.0",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
|
e76c3a2dd1d7e67116ed59ecf8335a7baed22f0c | --- __tests__/biometrics/BiometricModalTest.tsx
@@ -34,7 +34,7 @@ describe('BiometricModal', () => {
NotNowBtn.props.onPress();
expect(WmTelemetry.logEvent).toHaveBeenCalledWith(
'biometrics',
- 'do_not_open_settings',
+ 'do_not_go_to_settings',
{},
);
expect(mockNavigation.goBack).toHaveBeenCalled();
--- src/biometrics/BiometricModal.tsx
@@ -20,7 +20,7 @@ export const BiometricModal: FC<any> = (props) => {
dispatch(BiometricActionCreators.skipBiometricSetup());
const onClose = () => {
- WmTelemetry.logEvent('biometrics', 'do_not_open_settings', {});
+ WmTelemetry.logEvent('biometrics', 'do_not_go_to_settings', {});
navigation.goBack();
InteractionManager.runAfterInteractions(skipBiometricSetup);
};
| corrected log message | corrected log message
|
f62e3c0aa13b083423d822c598d01e36e22f024c | --- package-lock.json
@@ -61,7 +61,7 @@
"@walmart/exception-mini-app": "1.7.3",
"@walmart/facilities-management-miniapp": "0.8.0",
"@walmart/feedback-all-spark-miniapp": "0.9.58",
- "@walmart/financial-wellbeing-feature-app": "1.23.1",
+ "@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "5.0.0-beta.50",
"@walmart/gta-react-native-calendars": "0.6.0",
"@walmart/gtp-shared-components": "2.1.10",
@@ -11393,9 +11393,9 @@
}
},
"node_modules/@walmart/financial-wellbeing-feature-app": {
- "version": "1.23.1",
- "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.23.1.tgz",
- "integrity": "sha512-268jMaTS0F0DAm3PNkf2QG6os11Vk4+ttbdk+IlQiRv599/ddL2Je0kPS3F3uwR79bsHui0RBhaVErZc+oEk5w==",
+ "version": "1.23.2",
+ "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.23.2.tgz",
+ "integrity": "sha512-xJozvb5nmMH+DuQtVrQKo5vfHEkdKECrT1ezvLkefJznwKXkxGYC0MCV5JTLYfJ53Uswzf1qtuh5kMzaRBMw7Q==",
"hasInstallScript": true,
"engines": {
"node": ">=16"
--- package.json
@@ -102,7 +102,7 @@
"@walmart/exception-mini-app": "1.7.3",
"@walmart/facilities-management-miniapp": "0.8.0",
"@walmart/feedback-all-spark-miniapp": "0.9.58",
- "@walmart/financial-wellbeing-feature-app": "1.23.1",
+ "@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "5.0.0-beta.50",
"@walmart/gta-react-native-calendars": "0.6.0",
"@walmart/gtp-shared-components": "2.1.10",
@@ -363,7 +363,7 @@
"@walmart/exception-mini-app": "1.7.3",
"@walmart/facilities-management-miniapp": "0.8.0",
"@walmart/feedback-all-spark-miniapp": "0.9.58",
- "@walmart/financial-wellbeing-feature-app": "1.23.1",
+ "@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "5.0.0-beta.50",
"@walmart/gta-react-native-calendars": "0.6.0",
"@walmart/gtp-shared-components": "2.1.10",
| bumped fwb version to 1.23.2 | bumped fwb version to 1.23.2
|
d0f5c1573ccf3abe126d9491eddd397e5006ce25 | --- src/common/ccmFallbacks.ts
@@ -35,7 +35,7 @@ export const CCMFallbacks = {
chatWidgetEnabled: true,
chatWidgetQuickAction: 'myTeam.wmConnect',
// Azure Blob Storage URLs
- azureBlobStorageUrlProd: 'https://de1e692705prod.blob.core.windows.net',
+ azureBlobStorageUrlProd: 'https://ef752ec6d7stg.blob.core.windows.net',
azureBlobStorageUrlStg: 'https://de1e692705stg.blob.core.windows.net',
azureBlobStorageUrlDev: 'https://de1e692705stg.blob.core.windows.net',
enableDirectAzureBlobUpload: true,
| feat(ui): updated prod fallback url | feat(ui): updated prod fallback url
|
28db433fe2e4c9a762e1363f35d954f609b851fc | --- ios/Podfile.lock
@@ -2223,4 +2223,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: c8030f644caf1ba753cc67911289be5cfac8c732
-COCOAPODS: 1.14.0
+COCOAPODS: 1.14.3
--- package.json
@@ -54,7 +54,7 @@
"@react-native-camera-roll/camera-roll": "5.6.0",
"@react-native-clipboard/clipboard": "^1.10.0",
"@react-native-community/art": "^1.2.0",
- "@react-native-community/datetimepicker": "^7.6.2",
+ "@react-native-community/datetimepicker": "^6.7.5",
"@react-native-community/hooks": "^2.8.0",
"@react-native-community/netinfo": "^9.0.0",
"@react-native-firebase/analytics": "~17.4.2",
@@ -209,14 +209,14 @@
"react-native-loudness": "patch:react-native-loudness@npm%3A2.0.0#~/.yarn/patches/react-native-loudness-npm-2.0.0-79e221dbd2.patch",
"react-native-maps": "~1.10.4",
"react-native-mask-input": "^1.2.3",
- "react-native-modal": "^13.0.0",
+ "react-native-modal": "^13.0.1",
"react-native-new-snap-carousel": "^3.9.3",
"react-native-pager-view": "~6.3.0",
"react-native-pdf": "^6.6.2",
"react-native-permissions": "^3.10.1",
"react-native-popup-menu": "^0.16.0",
"react-native-qrcode-svg": "^6.1.2",
- "react-native-reanimated": "^3.3.0",
+ "react-native-reanimated": "~3.8.1",
"react-native-render-html": "^6.1.0",
"react-native-safe-area-context": ">=4.5.3 <4.8",
"react-native-screens": ">=3.21.0 <3.28.0",
--- yarn.lock
@@ -7579,7 +7579,7 @@ __metadata:
"@react-native-community/cli": "npm:^11.3.2"
"@react-native-community/cli-platform-android": "npm:^11.3.2"
"@react-native-community/cli-platform-ios": "npm:^11.3.2"
- "@react-native-community/datetimepicker": "npm:^7.6.2"
+ "@react-native-community/datetimepicker": "npm:^6.7.5"
"@react-native-community/hooks": "npm:^2.8.0"
"@react-native-community/netinfo": "npm:^9.0.0"
"@react-native-firebase/analytics": "npm:~17.4.2"
@@ -7778,14 +7778,14 @@ __metadata:
react-native-loudness: "patch:react-native-loudness@npm%3A2.0.0#~/.yarn/patches/react-native-loudness-npm-2.0.0-79e221dbd2.patch"
react-native-maps: "npm:~1.10.4"
react-native-mask-input: "npm:^1.2.3"
- react-native-modal: "npm:^13.0.0"
+ react-native-modal: "npm:^13.0.1"
react-native-new-snap-carousel: "npm:^3.9.3"
react-native-pager-view: "npm:~6.3.0"
react-native-pdf: "npm:^6.6.2"
react-native-permissions: "npm:^3.10.1"
react-native-popup-menu: "npm:^0.16.0"
react-native-qrcode-svg: "npm:^6.1.2"
- react-native-reanimated: "npm:^3.3.0"
+ react-native-reanimated: "npm:~3.8.1"
react-native-render-html: "npm:^6.1.0"
react-native-safe-area-context: "npm:>=4.5.3 <4.8"
react-native-screens: "npm:>=3.21.0 <3.28.0"
| chore: version fix | chore: version fix
|
f9b846023834e3b112c591a2fb4a0e95f8f4eea2 | --- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/TeamSelectionListItem.tsx
@@ -8,6 +8,8 @@ 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';
+import { LoggerService } from '@walmart/allspark-foundation/Logger';
+import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry';
export const TeamSelectionListItem = ({
teamName,
@@ -24,6 +26,8 @@ export const TeamSelectionListItem = ({
);
const { t } = useAllsparkTranslation(FEATURE_ID);
+ const logger = LoggerService.getContainerInstance();
+ const telemetryService = useTelemetryService();
const TeamImage = useAllsparkImage();
return (
@@ -48,6 +52,17 @@ export const TeamSelectionListItem = ({
placeholder={Images[teamName]?.blurhash}
style={styles.teamImage}
resizeMode='contain'
+ onError={(error) => {
+ logger.info('ImageFailure', {
+ message: `Image failure for ${teamId}`,
+ error,
+ });
+ telemetryService.logEvent('image_uri_failure', {
+ message: 'Image failure',
+ teamId: teamId,
+ teamName: teamName,
+ });
+ }}
/>
<Text style={styles.teamName}>{teamName}</Text>
</View>
| Adding logs and event for image uri failure | Adding logs and event for image uri failure
|
7951f85f3e7726ed122d675367524943d3c1983e | --- src/components/Roster/types.ts
@@ -20,8 +20,6 @@ export interface RosterProps {
dataOverride?: RosterData;
}
-//TODO: Refine type to only include fields needed to render an AssociateItem
-
export type AssociateRosterItem = Pick<
Associate,
| 'userId'
| fixing types | fixing types
|
c69bf8431639b7989622d26ace8bd331bcc3e40c | --- package.json
@@ -34,7 +34,7 @@
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@commitlint/config-conventional": "^16.2.1",
- "@react-native/babel-preset": "^0.73.0",
+ "@react-native/babel-preset": "^0.74.5",
"@react-native/eslint-config": "0.73.2",
"@redux-saga/testing-utils": "^1.1.3",
"@testing-library/jest-native": "5.4.3",
--- yarn.lock
@@ -5729,6 +5729,15 @@ __metadata:
languageName: node
linkType: hard
+"@react-native/babel-plugin-codegen@npm:0.74.89":
+ version: 0.74.89
+ resolution: "@react-native/babel-plugin-codegen@npm:0.74.89::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-native%2Fbabel-plugin-codegen%2F-%2Fbabel-plugin-codegen-0.74.89.tgz"
+ dependencies:
+ "@react-native/codegen": "npm:0.74.89"
+ checksum: 10c0/adb328ac870ce5b6c8a0d6dc865293f8fa369a4ebee5db8a14c032b30aa8fdea697ee39ea06bd23e6c9458969ebb6be33b20dc36d183a501bde30d6a9d7996a0
+ languageName: node
+ linkType: hard
+
"@react-native/babel-preset@npm:0.74.87":
version: 0.74.87
resolution: "@react-native/babel-preset@npm:0.74.87::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-native%2Fbabel-preset%2F-%2Fbabel-preset-0.74.87.tgz"
@@ -5834,6 +5843,59 @@ __metadata:
languageName: node
linkType: hard
+"@react-native/babel-preset@npm:^0.74.5":
+ version: 0.74.89
+ resolution: "@react-native/babel-preset@npm:0.74.89::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-native%2Fbabel-preset%2F-%2Fbabel-preset-0.74.89.tgz"
+ dependencies:
+ "@babel/core": "npm:^7.20.0"
+ "@babel/plugin-proposal-async-generator-functions": "npm:^7.0.0"
+ "@babel/plugin-proposal-class-properties": "npm:^7.18.0"
+ "@babel/plugin-proposal-export-default-from": "npm:^7.0.0"
+ "@babel/plugin-proposal-logical-assignment-operators": "npm:^7.18.0"
+ "@babel/plugin-proposal-nullish-coalescing-operator": "npm:^7.18.0"
+ "@babel/plugin-proposal-numeric-separator": "npm:^7.0.0"
+ "@babel/plugin-proposal-object-rest-spread": "npm:^7.20.0"
+ "@babel/plugin-proposal-optional-catch-binding": "npm:^7.0.0"
+ "@babel/plugin-proposal-optional-chaining": "npm:^7.20.0"
+ "@babel/plugin-syntax-dynamic-import": "npm:^7.8.0"
+ "@babel/plugin-syntax-export-default-from": "npm:^7.0.0"
+ "@babel/plugin-syntax-flow": "npm:^7.18.0"
+ "@babel/plugin-syntax-nullish-coalescing-operator": "npm:^7.0.0"
+ "@babel/plugin-syntax-optional-chaining": "npm:^7.0.0"
+ "@babel/plugin-transform-arrow-functions": "npm:^7.0.0"
+ "@babel/plugin-transform-async-to-generator": "npm:^7.20.0"
+ "@babel/plugin-transform-block-scoping": "npm:^7.0.0"
+ "@babel/plugin-transform-classes": "npm:^7.0.0"
+ "@babel/plugin-transform-computed-properties": "npm:^7.0.0"
+ "@babel/plugin-transform-destructuring": "npm:^7.20.0"
+ "@babel/plugin-transform-flow-strip-types": "npm:^7.20.0"
+ "@babel/plugin-transform-function-name": "npm:^7.0.0"
+ "@babel/plugin-transform-literals": "npm:^7.0.0"
+ "@babel/plugin-transform-modules-commonjs": "npm:^7.0.0"
+ "@babel/plugin-transform-named-capturing-groups-regex": "npm:^7.0.0"
+ "@babel/plugin-transform-parameters": "npm:^7.0.0"
+ "@babel/plugin-transform-private-methods": "npm:^7.22.5"
+ "@babel/plugin-transform-private-property-in-object": "npm:^7.22.11"
+ "@babel/plugin-transform-react-display-name": "npm:^7.0.0"
+ "@babel/plugin-transform-react-jsx": "npm:^7.0.0"
+ "@babel/plugin-transform-react-jsx-self": "npm:^7.0.0"
+ "@babel/plugin-transform-react-jsx-source": "npm:^7.0.0"
+ "@babel/plugin-transform-runtime": "npm:^7.0.0"
+ "@babel/plugin-transform-shorthand-properties": "npm:^7.0.0"
+ "@babel/plugin-transform-spread": "npm:^7.0.0"
+ "@babel/plugin-transform-sticky-regex": "npm:^7.0.0"
+ "@babel/plugin-transform-typescript": "npm:^7.5.0"
+ "@babel/plugin-transform-unicode-regex": "npm:^7.0.0"
+ "@babel/template": "npm:^7.0.0"
+ "@react-native/babel-plugin-codegen": "npm:0.74.89"
+ babel-plugin-transform-flow-enums: "npm:^0.0.2"
+ react-refresh: "npm:^0.14.0"
+ peerDependencies:
+ "@babel/core": "*"
+ checksum: 10c0/89aae7db7bf4f428c728da805614de8df3b079d562963ca7e8f6d559a3371b7db2603a1c8067c99842edf4cf4346b7e2e97ba28914658d0acdcf627ad2f712da
+ languageName: node
+ linkType: hard
+
"@react-native/codegen@npm:0.73.3":
version: 0.73.3
resolution: "@react-native/codegen@npm:0.73.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-native%2Fcodegen%2F-%2Fcodegen-0.73.3.tgz"
@@ -5868,6 +5930,24 @@ __metadata:
languageName: node
linkType: hard
+"@react-native/codegen@npm:0.74.89":
+ version: 0.74.89
+ resolution: "@react-native/codegen@npm:0.74.89::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-native%2Fcodegen%2F-%2Fcodegen-0.74.89.tgz"
+ dependencies:
+ "@babel/parser": "npm:^7.20.0"
+ glob: "npm:^7.1.1"
+ hermes-parser: "npm:0.19.1"
+ invariant: "npm:^2.2.4"
+ jscodeshift: "npm:^0.14.0"
+ mkdirp: "npm:^0.5.1"
+ nullthrows: "npm:^1.1.1"
+ yargs: "npm:^17.6.2"
+ peerDependencies:
+ "@babel/preset-env": ^7.1.6
+ checksum: 10c0/d062c6239f111f2f83e767b512108b08c3ddd6b00dbd0f34d32f6b539d1ad5d393ee1a919a0a4f4f9f264b1b3b45750911f38fe5c7d1d8f9d650b74bffe84a29
+ languageName: node
+ linkType: hard
+
"@react-native/community-cli-plugin@npm:0.74.87":
version: 0.74.87
resolution: "@react-native/community-cli-plugin@npm:0.74.87::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-native%2Fcommunity-cli-plugin%2F-%2Fcommunity-cli-plugin-0.74.87.tgz"
@@ -8469,7 +8549,7 @@ __metadata:
"@babel/preset-env": "npm:^7.20.0"
"@babel/runtime": "npm:^7.20.0"
"@commitlint/config-conventional": "npm:^16.2.1"
- "@react-native/babel-preset": "npm:^0.73.0"
+ "@react-native/babel-preset": "npm:^0.74.5"
"@react-native/eslint-config": "npm:0.73.2"
"@redux-saga/testing-utils": "npm:^1.1.3"
"@testing-library/jest-native": "npm:5.4.3"
| fix: breaking test cases after RN version upgrade | fix: breaking test cases after RN version upgrade
|
4af1ee3a0f3ab0d920e54d09abc63a0ae7705da2 | --- package-lock.json
@@ -5026,7 +5026,7 @@
}
},
"@walmart/OneWalmart-MiniApp": {
- "version": "1.0.11",
+ "version": "1.0.12",
"resolved": "https://npme.walmart.com/@walmart/OneWalmart-MiniApp/-/OneWalmart-MiniApp-1.0.11.tgz",
"integrity": "sha512-+4z1KqCaKdstCSQNd5SVWz/7gWU7IZHSgboWHf8WFJxGM7habDHtGV322q+4HwEdnNwBbp/F8+Jp2+bXFz0ijg==",
"requires": {
| ECT-1733 Updated app version in package-lock | ECT-1733 Updated app version in package-lock
|
df75e5572b6c6f0a539ddfa1fed80991b8f7043b | --- package-lock.json
@@ -4246,9 +4246,9 @@
"integrity": "sha512-JuNzcUSGo2OI5/P7dhyI6wnJvrQhIra/t22pLyUUMx/kuUvXKxGuwxFN4FlpeWe05R9S3DVPiFiHPgu+4KVEVg=="
},
"@walmart/feedback-all-spark-miniapp": {
- "version": "0.3.7",
- "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.3.7.tgz",
- "integrity": "sha512-D9xqSfM/IiafgMjb9m26hOV0VCXuPQGZaY0IH5r5M7AjaknSLt052CXuUx82eCM+6fpqMPuHZ1sM9g8wb7/W3Q=="
+ "version": "0.3.8",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.3.8.tgz",
+ "integrity": "sha512-x0n2tEbTwVe6Xn7KxnslCa8y2I+f6KG6hkhQiNAcZu17Bitwf/Kddoz/9h8Pn5guehnqYVB2oXHoMwMvmr0u0A=="
},
"@walmart/functional-components": {
"version": "1.0.34",
--- package.json
@@ -78,7 +78,7 @@
"@walmart/config-components": "3.0.2",
"@walmart/counts-component-miniapp": "0.0.34",
"@walmart/exception-mini-app": "0.40.4",
- "@walmart/feedback-all-spark-miniapp": "0.3.7",
+ "@walmart/feedback-all-spark-miniapp": "0.3.8",
"@walmart/functional-components": "1.0.34",
"@walmart/gta-react-native-calendars": "0.0.15",
"@walmart/gtp-shared-components": "1.2.0",
| feedback mini app version bump | feedback mini app version bump
|
dcb7d78793412a6a4db10ee4788a7cfd861b79b8 | --- yarn.lock
@@ -6739,7 +6739,7 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/global-vpi-mini-app@npm:^1.1.3":
+"@walmart/global-vpi-mini-app@npm:1.1.3":
version: 1.1.3
resolution: "@walmart/global-vpi-mini-app@npm:1.1.3"
checksum: 10c0/b58a6b6a93cba0a65441dcdbb6deff15a0366a99af55422930dbd9b49585fd3971ca729e65743be6f1ffbbaba7740e14eb15aea06035b928362db06253d2a1d7
@@ -7344,7 +7344,7 @@ __metadata:
"@walmart/feedback-all-spark-miniapp": "npm:0.9.72"
"@walmart/financial-wellbeing-feature-app": "npm:1.29.2"
"@walmart/functional-components": "npm:~6.3.28"
- "@walmart/global-vpi-mini-app": "npm:^1.1.3"
+ "@walmart/global-vpi-mini-app": "npm:1.1.3"
"@walmart/gta-react-native-calendars": "npm:0.7.0"
"@walmart/gtp-shared-components": "npm:2.2.4"
"@walmart/ims-print-services-ui": "npm:2.16.4"
| chore: correct vpi version | chore: correct vpi version
|
125d87f563915ae5ca665d18411d37ee94d7e7f2 | --- __tests__/changeStore/ChangeStoreInputTest.tsx
@@ -68,7 +68,8 @@ describe('ChangeStoreInput', () => {
Input.props.onChangeText('100');
expect(setSiteId).toHaveBeenCalledWith('100');
+ setSiteId.mockClear();
Input.props.onChangeText('abc');
- expect(setSiteId).toHaveBeenCalledWith('');
+ expect(setSiteId).not.toHaveBeenCalled();
});
});
--- src/changeStore/ChangeStoreInput.tsx
@@ -97,8 +97,13 @@ export const ChangeStoreInput = (props: ChangeStoreSectionProps) => {
const [siteId, setSiteId] = useState('');
const [error] = useState(false);
- const onChangeText = (rawValue: string) =>
- setSiteId?.(Number(rawValue.replace(/[^0-9]/g, '')).toString());
+ const onChangeText = (rawValue: string) => {
+ const numberText = rawValue.replace(/[^0-9]/g, '');
+
+ if (numberText) {
+ setSiteId?.(Number(numberText).toString());
+ }
+ };
const onSubmitEditing = () => {
if (siteId) {
| fix: fix logic to pass test | fix: fix logic to pass test
|
5cdbd5ec6d9cf663a5bf60ff71e4f2e6343fe6ab | --- __tests__/screens/MessagesScreen/OneToOneChat.tsx
@@ -47,11 +47,11 @@ describe('1-1 chat', () => {
expect(mockAdd).toHaveBeenNthCalledWith(1, {
createdAt: 'mock-firestore-server-timestamp',
message: 'Test message send on the messages screen',
- sentFrom: 'hqBM7TCaSyCO4Fs\\9npxtA==',
+ sentFrom: 'lcpLdrhX0msnK30DJh+fFw==',
});
expect(mockUpdate).toHaveBeenNthCalledWith(2, {
lastMessageTime: 'mock-firestore-server-timestamp',
- 'recentRead.hqBM7TCaSyCO4Fs\\9npxtA==': 'mock-firestore-server-timestamp',
+ 'recentRead.lcpLdrhX0msnK30DJh+fFw==': 'mock-firestore-server-timestamp',
});
});
it('should show receivers display name in header', () => {});
--- __tests__/screens/MessagesScreen/OneToOneChat.tsx
@@ -47,11 +47,11 @@ describe('1-1 chat', () => {
expect(mockAdd).toHaveBeenNthCalledWith(1, {
createdAt: 'mock-firestore-server-timestamp',
message: 'Test message send on the messages screen',
- sentFrom: 'hqBM7TCaSyCO4Fs\\9npxtA==',
+ sentFrom: 'lcpLdrhX0msnK30DJh+fFw==',
});
expect(mockUpdate).toHaveBeenNthCalledWith(2, {
lastMessageTime: 'mock-firestore-server-timestamp',
- 'recentRead.hqBM7TCaSyCO4Fs\\9npxtA==': 'mock-firestore-server-timestamp',
+ 'recentRead.lcpLdrhX0msnK30DJh+fFw==': 'mock-firestore-server-timestamp',
});
});
it('should show receivers display name in header', () => {});
| fix failing test | fix failing test
|
5d91569f5af20574dee17c28b421a13a4df3e115 | --- package.json
@@ -110,7 +110,7 @@
"@walmart/gtp-shared-components": "2.2.1",
"@walmart/impersonation-mini-app": "1.20.8",
"@walmart/ims-print-services-ui": "2.11.1",
- "@walmart/inbox-mini-app": "0.94.4",
+ "@walmart/inbox-mini-app": "0.94.7",
"@walmart/iteminfo-mini-app": "7.12.1",
"@walmart/learning-mini-app": "20.0.21",
"@walmart/manager-approvals-miniapp": "0.2.4",
--- yarn.lock
@@ -6290,9 +6290,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/inbox-mini-app@npm:0.94.4":
- version: 0.94.4
- resolution: "@walmart/inbox-mini-app@npm:0.94.4"
+"@walmart/inbox-mini-app@npm:0.94.7":
+ version: 0.94.7
+ resolution: "@walmart/inbox-mini-app@npm:0.94.7"
dependencies:
"@walmart/moment-walmart": "npm:^1.0.4"
"@walmart/walmart-fiscal-week": "npm:^0.3.6"
@@ -6305,7 +6305,7 @@ __metadata:
lodash: ">=4.17.20"
prop-types: 15.7.2
typescript: ^4.0.2
- checksum: 10c0/a3c43d2f144e5cf4b3fffeea0160c441d3f4428ebd26af86a99615bce44c40bcba25989c82a6b663b0d0323c33b0b1c4cf9fc42449a506a632bcf094e0773a19
+ checksum: 10c0/dbabb9694c64a9a62db0accf871e7d98c1894c741c8a33a27d5b61c557094f1d76a1a0cc788ee668a0eb41998337ee9f1b4b22e97f7176d7bc6ecaaab62e9d80
languageName: node
linkType: hard
@@ -7752,7 +7752,7 @@ __metadata:
"@walmart/gtp-shared-components": "npm:2.2.1"
"@walmart/impersonation-mini-app": "npm:1.20.8"
"@walmart/ims-print-services-ui": "npm:2.11.1"
- "@walmart/inbox-mini-app": "npm:0.94.4"
+ "@walmart/inbox-mini-app": "npm:0.94.7"
"@walmart/iteminfo-mini-app": "npm:7.12.1"
"@walmart/learning-mini-app": "npm:20.0.21"
"@walmart/manager-approvals-miniapp": "npm:0.2.4"
| inbox version increased | inbox version increased
|
11201e63ed6bacf26fc5beb3def4d8cef62f4179 | --- .looper.codepush.yml
@@ -1,5 +1,5 @@
node: ((osx||stable_osx)&&!dualcore)
-
+# Revoke below key once done with testing.
envs:
global:
variables:
@@ -14,14 +14,19 @@ branches:
- spec: feature/*
triggers:
- manual:
- name: release staging - Click only once
- call: release
+ name: dev/beta codepush - Click only once
+ call: dev
+ - spec: main
+ triggers:
+ - manual:
+ name: main branch prod - Click only once
+ call: prod
flows:
default:
- call: pr
- release:
+ dev:
- npm install
- npm -v
- echo $APPCENTER_API_TOKEN_ANDROID
@@ -42,14 +47,44 @@ flows:
echo 'git setup done, moving to node part now'
- npm install -g appcenter-cli
- echo 'doing listing'
- - appcenter apps list --token $APPCENTER_API_TOKEN_ANDROID
+ - appcenter login --token $APPCENTER_API_TOKEN_ANDROID
+ - appcenter apps list
- npm run env:dev
- - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d dev --description "update from looper for dev " --token $APPCENTER_API_TOKEN_ANDROID
- - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d dev --description 'looper update' --token $APPCENTER_API_TOKEN_ANDROID
+ - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d dev --description "update from looper for dev"
+ - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d dev --description 'looper update'
- npm run env:beta
- - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d beta --description "looper update beta" --token $APPCENTER_API_TOKEN_ANDROID
- - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d beta --description 'looper update beta' --token $APPCENTER_API_TOKEN_ANDROID
+ - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d beta --description "looper update beta"
+ - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d beta --description 'looper update beta'
+ - appcenter logout
+
+ prod:
+ - npm install
+ - echo $APPCENTER_API_TOKEN_ANDROID
+ - shell: |
+ #!/bin/bash
+ CURRENT_BRANCH=$(git branch --show-current)
+ echo ${CURRENT_BRANCH}
+ git config --get remote.origin.fetch
+ echo 'current branch echoed earlier'
+ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
+ git config --get remote.origin.fetch
+ git branch --set-upstream-to=origin/${CURRENT_BRANCH} ${CURRENT_BRANCH}
+ echo 'Upstream set, doing pull'
+ git fetch --all
+ git pull --all
+ echo 'Branch names:'
+ git branch -a
+ echo 'switching to main branch'
+ git switch main
+ - npm install -g appcenter-cli
+ - appcenter login --token $APPCENTER_API_TOKEN_ANDROID
+ - npm run env:prod
+ - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d prod --description "Prod release" --rollout 1%
+ - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d prod --description 'Prod Release' --rollout 1%
- appcenter logout
+# TODO make below version dynamic.
+ - git tag v0.0.2
+ - git push origin v0.0.2
pr:
- npm install
--- src/index.tsx
@@ -68,13 +68,8 @@ export const BaseApp = () => (
</SafeAreaProvider>
);
-// Customize this options based on final discussion.
let codePushOptions = {
checkFrequency: codePush.CheckFrequency.ON_APP_START,
- updateDialog: {
- title: 'Update is available',
- appendReleaseDescription: true,
- }, //Remove this
- installMode: codePush.InstallMode.IMMEDIATE, // Change this to ON_NEXT_RESTART
+ installMode: codePush.InstallMode.ON_NEXT_RESTART,
};
export const App = codePush(codePushOptions)(BaseApp);
--- src/translations/en-US.ts
@@ -349,7 +349,7 @@ export const enUS_home = {
teamTaskTitle_store: 'My team',
viewRoster: 'View roster',
},
- todayDateLabel: 'Today is looper day',
+ todayDateLabel: 'Today is',
userGreeting: 'Hey there',
walmartWeek: 'Week {{week}}',
};
| update codepush config. | update codepush config.
|
c2d5d823e998a9739e6794d82d50e09e484afb75 | --- yarn.lock
@@ -1540,17 +1540,7 @@ __metadata:
languageName: node
linkType: hard
-"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.13, @babel/types@npm:^7.20.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.25.2, @babel/types@npm:^7.26.10, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.27.6, @babel/types@npm:^7.28.0, @babel/types@npm:^7.3.3":
- version: 7.28.0
- resolution: "@babel/types@npm:7.28.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Ftypes%2F-%2Ftypes-7.28.0.tgz"
- dependencies:
- "@babel/helper-string-parser": "npm:^7.27.1"
- "@babel/helper-validator-identifier": "npm:^7.27.1"
- checksum: 10c0/7ca8521bf5e2d2ed4db31176efaaf94463a6b7a4d16dcc60e34e963b3596c2ecadb85457bebed13a9ee9a5829ef5f515d05b55a991b6a8f3b835451843482e39
- languageName: node
- linkType: hard
-
-"@babel/types@npm:^7.19.0, @babel/types@npm:^7.2.0, @babel/types@npm:^7.24.7":
+"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.13, @babel/types@npm:^7.19.0, @babel/types@npm:^7.2.0, @babel/types@npm:^7.20.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.24.7, @babel/types@npm:^7.25.2, @babel/types@npm:^7.26.10, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.27.6, @babel/types@npm:^7.28.0, @babel/types@npm:^7.3.3":
version: 7.28.2
resolution: "@babel/types@npm:7.28.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Ftypes%2F-%2Ftypes-7.28.2.tgz"
dependencies:
@@ -11713,7 +11703,7 @@ __metadata:
languageName: node
linkType: hard
-"compression@npm:^1.7.1":
+"compression@npm:^1.7.1, compression@npm:^1.7.4":
version: 1.8.1
resolution: "compression@npm:1.8.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fcompression%2F-%2Fcompression-1.8.1.tgz"
dependencies:
@@ -11728,21 +11718,6 @@ __metadata:
languageName: node
linkType: hard
-"compression@npm:^1.7.4":
- version: 1.8.0
- resolution: "compression@npm:1.8.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fcompression%2F-%2Fcompression-1.8.0.tgz"
- dependencies:
- bytes: "npm:3.1.2"
- compressible: "npm:~2.0.18"
- debug: "npm:2.6.9"
- negotiator: "npm:~0.6.4"
- on-headers: "npm:~1.0.2"
- safe-buffer: "npm:5.2.1"
- vary: "npm:~1.1.2"
- checksum: 10c0/804d3c8430939f4fd88e5128333f311b4035f6425a7f2959d74cfb5c98ef3a3e3e18143208f3f9d0fcae4cd3bcf3d2fbe525e0fcb955e6e146e070936f025a24
- languageName: node
- linkType: hard
-
"concat-map@npm:0.0.1":
version: 0.0.1
resolution: "concat-map@npm:0.0.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fconcat-map%2F-%2Fconcat-map-0.0.1.tgz"
@@ -25933,7 +25908,7 @@ __metadata:
languageName: node
linkType: hard
-"yaml@npm:^2.2.1":
+"yaml@npm:^2.2.1, yaml@npm:^2.3.1":
version: 2.8.1
resolution: "yaml@npm:2.8.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fyaml%2F-%2Fyaml-2.8.1.tgz"
bin:
@@ -25942,15 +25917,6 @@ __metadata:
languageName: node
linkType: hard
-"yaml@npm:^2.3.1":
- version: 2.8.0
- resolution: "yaml@npm:2.8.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fyaml%2F-%2Fyaml-2.8.0.tgz"
- bin:
- yaml: bin.mjs
- checksum: 10c0/f6f7310cf7264a8107e72c1376f4de37389945d2fb4656f8060eca83f01d2d703f9d1b925dd8f39852a57034fafefde6225409ddd9f22aebfda16c6141b71858
- languageName: node
- linkType: hard
-
"yargs-parser@npm:^18.1.2":
version: 18.1.3
resolution: "yargs-parser@npm:18.1.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fyargs-parser%2F-%2Fyargs-parser-18.1.3.tgz"
| fix: yarn dedupe | fix: yarn dedupe
|
583901069e945ef4be2930583b4edfc5c397cb45 | --- graphql.yml
@@ -56,6 +56,11 @@ applications:
queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql"
tags:
- "v1"
+ - name: "upsertSupplyChainAssociatePreference"
+ hash: "571873ffcf9d8923e4951fa75addb46f876c949046518f0c302707deadab878a"
+ queryTemplate: "packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql"
+ tags:
+ - "v1"
- name: "prod"
persistedQueries:
- name: "businessUnitByCountryAndNumber"
| Update graphql.yml | Update graphql.yml |
1b75550461c6dfe4f036edcc577c76167c048e6c | --- src/containers/ChatInput/AudioPlayback.tsx
@@ -1,4 +1,5 @@
-import React, {useEffect, useRef, useState} from 'react';
+/* eslint-disable react-hooks/exhaustive-deps */
+import React, {useCallback, useEffect, useRef, useState} from 'react';
import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native';
import {
Audio,
@@ -59,7 +60,7 @@ export const AudioPlayback = (props: {
try {
const Sound = await Audio.Sound.createAsync(
audio,
- undefined,
+ {shouldPlay: true},
(status) => {
if (status.isLoaded) {
const {positionMillis, durationMillis = 0, didJustFinish} = status;
@@ -87,34 +88,29 @@ export const AudioPlayback = (props: {
}
};
- // Load sound when details change
- useEffect(() => {
- createSound();
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [audio.uri]);
-
// Unload audio once component is unmounted
useEffect(() => {
return () => {
SoundRef.current?.unloadAsync();
+ setPlaybackDetails({
+ isPlaying: false,
+ isBuffering: false,
+ } as any);
};
- }, []);
+ }, [audio.uri]);
// Playback Control
- const onPlay = async () => {
- try {
- await Audio.setAudioModeAsync({
- playsInSilentModeIOS: true,
- interruptionModeAndroid: InterruptionModeAndroid.DuckOthers,
- interruptionModeIOS: InterruptionModeIOS.MixWithOthers,
- });
- SoundRef.current?.playAsync();
- } catch (e) {
- logger.error('audio error', {
- message: `'error while playing audio from uri: ${audio.uri}'`,
- });
+ const onPlay = useCallback(async () => {
+ if (SoundRef.current) {
+ await SoundRef.current?.unloadAsync();
}
- };
+ await Audio.setAudioModeAsync({
+ playsInSilentModeIOS: true,
+ interruptionModeAndroid: InterruptionModeAndroid.DuckOthers,
+ interruptionModeIOS: InterruptionModeIOS.MixWithOthers,
+ });
+ await createSound();
+ }, [audio.uri]);
const onReplay = async () =>
SoundRef.current?.replayAsync().catch((e) => {
@@ -146,8 +142,7 @@ export const AudioPlayback = (props: {
<View style={[styles.container, style]}>
<ActionButton
onPress={onActionButtonPress}
- disabled={playbackDetails.isBuffering}
- loading={playbackDetails.isBuffering}
+ disabled={playbackDetails.isPlaying}
icon={playbackDetails.isPlaying ? 'PauseIcon' : 'PlayIcon'}
/>
--- src/containers/ChatInput/AudioRecording.tsx
@@ -109,9 +109,7 @@ export const AudioRecording = (props: {
);
RecordingRef.current = recording;
await recording.startAsync();
- } catch (err) {
- onRecordingFail(err);
- }
+ } catch (err) {}
}
useEffect(() => {
--- src/containers/ChatInput/AudioPlayback.tsx
@@ -1,4 +1,5 @@
-import React, {useEffect, useRef, useState} from 'react';
+/* eslint-disable react-hooks/exhaustive-deps */
+import React, {useCallback, useEffect, useRef, useState} from 'react';
import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native';
import {
Audio,
@@ -59,7 +60,7 @@ export const AudioPlayback = (props: {
try {
const Sound = await Audio.Sound.createAsync(
audio,
- undefined,
+ {shouldPlay: true},
(status) => {
if (status.isLoaded) {
const {positionMillis, durationMillis = 0, didJustFinish} = status;
@@ -87,34 +88,29 @@ export const AudioPlayback = (props: {
}
};
- // Load sound when details change
- useEffect(() => {
- createSound();
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [audio.uri]);
-
// Unload audio once component is unmounted
useEffect(() => {
return () => {
SoundRef.current?.unloadAsync();
+ setPlaybackDetails({
+ isPlaying: false,
+ isBuffering: false,
+ } as any);
};
- }, []);
+ }, [audio.uri]);
// Playback Control
- const onPlay = async () => {
- try {
- await Audio.setAudioModeAsync({
- playsInSilentModeIOS: true,
- interruptionModeAndroid: InterruptionModeAndroid.DuckOthers,
- interruptionModeIOS: InterruptionModeIOS.MixWithOthers,
- });
- SoundRef.current?.playAsync();
- } catch (e) {
- logger.error('audio error', {
- message: `'error while playing audio from uri: ${audio.uri}'`,
- });
+ const onPlay = useCallback(async () => {
+ if (SoundRef.current) {
+ await SoundRef.current?.unloadAsync();
}
- };
+ await Audio.setAudioModeAsync({
+ playsInSilentModeIOS: true,
+ interruptionModeAndroid: InterruptionModeAndroid.DuckOthers,
+ interruptionModeIOS: InterruptionModeIOS.MixWithOthers,
+ });
+ await createSound();
+ }, [audio.uri]);
const onReplay = async () =>
SoundRef.current?.replayAsync().catch((e) => {
@@ -146,8 +142,7 @@ export const AudioPlayback = (props: {
<View style={[styles.container, style]}>
<ActionButton
onPress={onActionButtonPress}
- disabled={playbackDetails.isBuffering}
- loading={playbackDetails.isBuffering}
+ disabled={playbackDetails.isPlaying}
icon={playbackDetails.isPlaying ? 'PauseIcon' : 'PlayIcon'}
/>
--- src/containers/ChatInput/AudioRecording.tsx
@@ -109,9 +109,7 @@ export const AudioRecording = (props: {
);
RecordingRef.current = recording;
await recording.startAsync();
- } catch (err) {
- onRecordingFail(err);
- }
+ } catch (err) {}
}
useEffect(() => {
| SMBLV-3998: Creating sound when it's initiated to play | SMBLV-3998: Creating sound when it's initiated to play
|
f58638f945baed4f572d8e6914b0ce4a3aa365eb | --- package-lock.json
@@ -60,7 +60,7 @@
"@walmart/impersonation-mini-app": "1.20.6",
"@walmart/ims-print-services-ui": "2.5.1",
"@walmart/inbox-mini-app": "0.88.8",
- "@walmart/iteminfo-mini-app": "7.6.1",
+ "@walmart/iteminfo-mini-app": "7.6.2",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "13.0.3",
"@walmart/metrics-mini-app": "0.15.13",
@@ -8528,9 +8528,9 @@
}
},
"node_modules/@walmart/iteminfo-mini-app": {
- "version": "7.6.1",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.1.tgz",
- "integrity": "sha512-cVDk8hrxmt9ie3ypHL3XxzdN6srSyU3CY+Z0Lzt+iq4/4xheyZ7N/iu84MMHr2CHKgG7rZv+3FwpDdHigW7vvA==",
+ "version": "7.6.2",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.2.tgz",
+ "integrity": "sha512-sf2D3IZfXiGFaeuEy1i2axTD1OudyRKPFjtf7HFYqJ21sr6AYXjdW6jFovrCHBS+kZRugcLQ+dIddVGTPIUStA==",
"peerDependencies": {
"@react-native-community/netinfo": ">=9.3.6",
"@react-native-firebase/analytics": ">=15.1.1",
@@ -33722,9 +33722,9 @@
}
},
"@walmart/iteminfo-mini-app": {
- "version": "7.6.1",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.1.tgz",
- "integrity": "sha512-cVDk8hrxmt9ie3ypHL3XxzdN6srSyU3CY+Z0Lzt+iq4/4xheyZ7N/iu84MMHr2CHKgG7rZv+3FwpDdHigW7vvA=="
+ "version": "7.6.2",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.2.tgz",
+ "integrity": "sha512-sf2D3IZfXiGFaeuEy1i2axTD1OudyRKPFjtf7HFYqJ21sr6AYXjdW6jFovrCHBS+kZRugcLQ+dIddVGTPIUStA=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.2.4"
--- package.json
@@ -101,7 +101,7 @@
"@walmart/impersonation-mini-app": "1.20.6",
"@walmart/ims-print-services-ui": "2.5.1",
"@walmart/inbox-mini-app": "0.88.8",
- "@walmart/iteminfo-mini-app": "7.6.1",
+ "@walmart/iteminfo-mini-app": "7.6.2",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "13.0.3",
"@walmart/metrics-mini-app": "0.15.13",
| bump up ItemInfo for drop 15.x | bump up ItemInfo for drop 15.x
|
3d0ad6ba1f87b0804e40b8a34b50deedca6c3866 | --- package-lock.json
@@ -45,7 +45,7 @@
"@walmart/counts-component-miniapp": "0.1.2",
"@walmart/emergency-mini-app": "1.19.0",
"@walmart/exception-mini-app": "1.1.11",
- "@walmart/facilities-management-miniapp": "0.5.42",
+ "@walmart/facilities-management-miniapp": "0.6.2",
"@walmart/feedback-all-spark-miniapp": "0.9.10",
"@walmart/financial-wellbeing-feature-app": "1.3.1",
"@walmart/functional-components": "~4.0.3",
@@ -5084,7 +5084,9 @@
}
},
"node_modules/@walmart/facilities-management-miniapp": {
- "version": "0.5.42",
+ "version": "0.6.2",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.2.tgz",
+ "integrity": "sha512-B8Cu5fmrPmk8HwMcE4aCTQ2ztik7p7d3svB6X2EWZwKgVE6UNJusB8r9IqhFGajse4qbIE7Xyp7nthQ4BK4PaQ==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-community/async-storage": "^1.12.1",
@@ -5109,13 +5111,13 @@
"@walmart/core-services-allspark": "~1.10.11",
"@walmart/core-utils": "~1.3.0",
"@walmart/functional-components": "2.0.6",
- "@walmart/gtp-shared-components": "2.0.2",
+ "@walmart/gtp-shared-components": "2.0.4",
"@walmart/impersonation-mini-app": "1.2.0",
"@walmart/moment-walmart": "1.0.4",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
"@walmart/react-native-logger": "1.29.0",
- "@walmart/react-native-scanner-3.0": "0.1.27",
+ "@walmart/react-native-scanner-3.0": "0.1.32-rc.1",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-sumo-sdk": "2.4.0-rc.2",
"@walmart/redux-store": "3.1.2",
@@ -25071,7 +25073,9 @@
"version": "1.1.11"
},
"@walmart/facilities-management-miniapp": {
- "version": "0.5.42"
+ "version": "0.6.2",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.2.tgz",
+ "integrity": "sha512-B8Cu5fmrPmk8HwMcE4aCTQ2ztik7p7d3svB6X2EWZwKgVE6UNJusB8r9IqhFGajse4qbIE7Xyp7nthQ4BK4PaQ=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.9.10"
--- package.json
@@ -87,7 +87,7 @@
"@walmart/counts-component-miniapp": "0.1.2",
"@walmart/emergency-mini-app": "1.19.0",
"@walmart/exception-mini-app": "1.1.11",
- "@walmart/facilities-management-miniapp": "0.5.42",
+ "@walmart/facilities-management-miniapp": "0.6.2",
"@walmart/feedback-all-spark-miniapp": "0.9.10",
"@walmart/financial-wellbeing-feature-app": "1.3.1",
"@walmart/functional-components": "~4.0.3",
| Updating package.json - @walmart/facilities-management-miniapp to 0.6.2 | Updating package.json - @walmart/facilities-management-miniapp to 0.6.2
|
40fd65f9567a446f4fcae9566b3adbbe714d44a1 | --- package-lock.json
@@ -1887,9 +1887,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.6.8",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.8.tgz",
- "integrity": "sha512-ooWOkvb0gxS962CG793abMxfv/6DU2DdYs0M/R60Bod1EAaGw1bAQ6AMrofZJ3kq35zIAavJkspLPtjz0yEroQ==",
+ "version": "0.6.6",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.6.tgz",
+ "integrity": "sha512-V4szxf7LoTf8GeL4jfZUVPEOhV3v2fNg+mFNUEqb+Yqqfdh/ZWMAfpQsvOUtmzbm8OeshjAKnb2PZLLGTwnzFA==",
"requires": {
"@babel/preset-typescript": "^7.10.4",
"apisauce": "^1.1.2",
@@ -1988,11 +1988,39 @@
}
},
"@walmart/ui-components": {
- "version": "1.0.70",
- "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.70.tgz",
- "integrity": "sha512-D8bEPfq/vWjUiXkAayago+NxzSzcafs23RL+R1y9uemaCB3wXwbcl0WpoNATcB75XWqR7454etJU3xU9vA8qqA==",
+ "version": "1.0.66",
+ "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.66.tgz",
+ "integrity": "sha512-xZ5+FIXa8ftLTKIbebJIb324VPeJVV91qLuFG2jknZsTdENUcJzQt+ts+0Cw0fdGyu1s97pCScsqhB/SMF82Nw==",
"requires": {
+ "@walmart/functional-components": "1.0.18",
+ "@walmart/gtp-shared-components": "^0.1.5",
"react-native-calendars": "1.299.0"
+ },
+ "dependencies": {
+ "@walmart/functional-components": {
+ "version": "1.0.18",
+ "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-1.0.18.tgz",
+ "integrity": "sha512-X/YEq1QIa2wuxSpIo8WJS/uSalk56VCGPbIBe/8fPR5Mye1c1FDzCPiPykTbwEoaEMep+SL0/i8FGFPuYEDctQ==",
+ "requires": {
+ "axios": "^0.19.2"
+ }
+ },
+ "@walmart/gtp-shared-components": {
+ "version": "0.1.5",
+ "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-0.1.5.tgz",
+ "integrity": "sha512-hhbcAfpdts3qgryK6HVr6ZNgDIlT4P/KHxK5+KGVvmY5FCdoq2rFXUFiW9OSt7HtrFDA0muxHC+6eLM15DGOqw==",
+ "requires": {
+ "@react-native-community/datetimepicker": "^2.6.0",
+ "@react-native-community/picker": "^1.6.5",
+ "lodash": "^4.17.15",
+ "moment": "^2.27.0"
+ }
+ },
+ "moment": {
+ "version": "2.29.0",
+ "resolved": "https://npme.walmart.com/moment/-/moment-2.29.0.tgz",
+ "integrity": "sha512-z6IJ5HXYiuxvFTI6eiQ9dm77uE0gyy1yXNApVHqTcnIKfY9tIwEjlzsZ6u1LQXvVgKeTnv9Xm7NDvJ7lso3MtA=="
+ }
}
},
"@walmart/wfm-ui": {
@@ -9326,9 +9354,9 @@
}
},
"react-native-wm-barcode": {
- "version": "2.1.0",
- "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.1.0.tgz",
- "integrity": "sha512-hSFyGpCsQ1UbHk5lvkcPZQhwiXuJT4E28r9a2JI4PKzGqWmwNJKZA2iGkIin/QruWfORxYTCUDU0rH81HodtpQ=="
+ "version": "1.1.11",
+ "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-1.1.11.tgz",
+ "integrity": "sha512-cA0/GlKkDK/d+0JS6du8SuVA5lTnuXZyHoa8djjPTI3H2De/OSSQ2fCIxtA1vpbucj9LUhHoQhOT4allz4786A=="
},
"react-native-wm-notification": {
"version": "0.1.1",
--- package.json
@@ -39,7 +39,7 @@
"@types/lodash": "^4.14.159",
"@walmart/allspark-home-mini-app": "0.1.1",
"@walmart/allspark-me-mini-app": "0.0.5",
- "@walmart/ask-sam-mini-app": "^0.6.8",
+ "@walmart/ask-sam-mini-app": "^0.6.6",
"@walmart/config-components": "^1.0.4",
"@walmart/functional-components": "^1.0.21",
"@walmart/gtp-shared-components": "^0.2.2",
@@ -50,7 +50,7 @@
"@walmart/redux-store": "^1.0.4",
"@walmart/schedule-mini-app": "0.2.8",
"@walmart/time-clock-mini-app": "0.0.9",
- "@walmart/ui-components": "^1.0.68",
+ "@walmart/ui-components": "^1.0.66",
"@walmart/wfm-ui": "0.1.18",
"i18next": "^19.7.0",
"intl": "^1.2.5",
@@ -83,7 +83,7 @@
"react-native-video": "^5.1.0-alpha8",
"react-native-view-shot": "^3.1.2",
"react-native-webview": "^10.7.0",
- "react-native-wm-barcode": "^2.1.0",
+ "react-native-wm-barcode": "^1.1.6",
"react-native-wm-notification": "^0.1.1",
"react-native-wm-telemetry": "^0.2.0",
"react-native-wm-voice-text": "^0.3.0",
| Revert "Scanner" | Revert "Scanner"
|
ddf1399f49b530c53202e586965ae721211b1ce7 | --- package-lock.json
@@ -1866,9 +1866,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.1.4",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.1.4.tgz",
- "integrity": "sha512-iJfpDsE8E7D/EXeZt8cfdtHHYvCLGdhHag3xfiG3duASXX34uR2dJVA3EZRsE/4UTUNWwxyoBgyfuBCnD2WOvg==",
+ "version": "0.1.6",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.1.6.tgz",
+ "integrity": "sha512-fgRU8Dal+oXSYv9m7Pt1w6CV/h3qp0SPlfczHEl6zlPRIVaJVD/XNBgB2A/5iupX/hIFEHr+JldoWI+DQ/KM4A==",
"requires": {
"moment": "^2.29.0",
"react-native-get-random-values": "^1.5.0",
@@ -1877,9 +1877,9 @@
},
"dependencies": {
"uuid": {
- "version": "8.3.1",
- "resolved": "https://npme.walmart.com/uuid/-/uuid-8.3.1.tgz",
- "integrity": "sha512-FOmRr+FmWEIG8uhZv6C2bTgEVXsHk08kE7mPlrBbEe+c3r9pjceVPgupIfNIhc4yx55H69OXANrUaSuu9eInKg=="
+ "version": "8.3.2",
+ "resolved": "https://npme.walmart.com/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
}
}
},
@@ -1892,9 +1892,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.6.27",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.27.tgz",
- "integrity": "sha512-CjLbww3p5HABITQQxLiZhlBdWbYMnz3+nPBGvPN1/zETOFtP4AaNuRJ/FakGoQEzsYs+YYkpMBlRFPBS0sZQ/Q==",
+ "version": "0.6.28",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.28.tgz",
+ "integrity": "sha512-oOblRG9LWJ707UQcWhdi2RgY0WMkAqo7WlGLBVC19L3wjCBzhbryjx7E0oe2XpGsYOGXEwO4NN4UbtoxzJzmLg==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
--- package.json
@@ -46,9 +46,9 @@
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": "^4.14.159",
"@walmart/allspark-health-survey-mini-app": "0.0.13",
- "@walmart/allspark-home-mini-app": "0.1.4",
+ "@walmart/allspark-home-mini-app": "0.1.6",
"@walmart/allspark-me-mini-app": "0.0.13",
- "@walmart/ask-sam-mini-app": "0.6.27",
+ "@walmart/ask-sam-mini-app": "0.6.28",
"@walmart/config-components": "1.0.8",
"@walmart/feedback-all-spark-miniapp": "0.0.30",
"@walmart/functional-components": "^1.0.22",
--- src/core/AllsparkTheme.ts
@@ -0,0 +1,56 @@
+import buttonTheme from '@walmart/gtp-shared-components/dist/buttons/theme';
+
+// We're overriding the GTP component library theme to fix issue with centering text within their button components.
+// Having a defined height was the issue.
+export const AllsparkTheme = {
+ buttons: {
+ primary: {
+ default: {
+ text: {
+ ...buttonTheme.buttons.primary.default.text,
+ height: undefined,
+ },
+ },
+ },
+ primarySmall: {
+ default: {
+ text: {
+ ...buttonTheme.buttons.primarySmall.default.text,
+ height: undefined,
+ },
+ },
+ },
+ secondary: {
+ default: {
+ text: {
+ ...buttonTheme.buttons.secondary.default.text,
+ height: undefined,
+ },
+ },
+ },
+ secondarySmall: {
+ default: {
+ text: {
+ ...buttonTheme.buttons.secondarySmall.default.text,
+ height: undefined,
+ },
+ },
+ },
+ transparent: {
+ default: {
+ text: {
+ ...buttonTheme.buttons.transparent.default.text,
+ height: undefined,
+ },
+ },
+ },
+ transparentSmall: {
+ default: {
+ text: {
+ ...buttonTheme.buttons.transparentSmall.default.text,
+ height: undefined,
+ },
+ },
+ },
+ },
+};
--- src/core/RootContainer.tsx
@@ -6,6 +6,8 @@ import SplashScreen from 'react-native-splash-screen';
import {Provider} from 'react-redux';
import {getStore} from '@walmart/redux-store';
import {navContainerProps} from '@walmart/react-native-shared-navigation';
+import ThemeProvider from '@walmart/gtp-shared-components/dist/theme/theme-provider';
+
import {AuthenticatorView, connectedSSO} from '../auth';
import './envInit';
import './screenTracker';
@@ -20,6 +22,7 @@ import {initAppVersions} from './versionsInit';
import './networkInit';
import '../updates/UpdateCheckInit';
import UpdateVersionModal from '../updates/UpdateVersionView';
+import {AllsparkTheme} from './AllsparkTheme';
initHttpClientConfig();
@@ -38,17 +41,19 @@ export const RootContainer = () => {
<SafeAreaProvider>
<Provider store={getStore()}>
<StatusBar barStyle='light-content' />
- <NavigationContainer {...navContainerProps}>
- <AuthenticatorView
- activityName='MainActivity'
- env={Config.pingFedEnv}
- redirectUri='com.walmart.stores.allspark.beta://SSOLogin'
- connectedSSO={connectedSSO}>
- <RootNav />
- <Components.NotificationsContainer />
- <UpdateVersionModal />
- </AuthenticatorView>
- </NavigationContainer>
+ <ThemeProvider theme={AllsparkTheme}>
+ <NavigationContainer {...navContainerProps}>
+ <AuthenticatorView
+ activityName='MainActivity'
+ env={Config.pingFedEnv}
+ redirectUri='com.walmart.stores.allspark.beta://SSOLogin'
+ connectedSSO={connectedSSO}>
+ <RootNav />
+ <Components.NotificationsContainer />
+ <UpdateVersionModal />
+ </AuthenticatorView>
+ </NavigationContainer>
+ </ThemeProvider>
</Provider>
</SafeAreaProvider>
);
--- src/navigation/NavigationStyle.ts
@@ -1,4 +1,4 @@
-import {StyleSheet} from 'react-native';
+import {StyleSheet, Platform} from 'react-native';
import Colors from '@walmart/gtp-shared-components/src/theme/colors.json';
@@ -14,7 +14,15 @@ export default StyleSheet.create({
left: 56,
},
headerTitle: {
- fontFamily: 'Bogle-Bold',
+ ...Platform.select({
+ ios: {
+ fontFamily: 'Bogle',
+ fontWeight: 'bold',
+ },
+ android: {
+ fontFamily: 'Bogle-Bold',
+ },
+ }),
fontSize: 18,
},
menuButton: {
| Chore/vqa (#196) | Chore/vqa (#196)
* fixed header font for ios AND android
* update home mini app with vqa fixes
* Adding theme provider to override gtp component styling
* Ask Sam version bump
* bump version of home mini app
* remove caret
Co-authored-by: rlane1 <rlane1@walmart.com> |
5932149af3a9b7325faecc17170dc4ed5f7a8188 | --- android/app/build.gradle
@@ -131,12 +131,11 @@ android {
}
defaultConfig {
- // TODO - change this package name to the proper one
- applicationId "com.walmart.stores.allspark"
+ applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
- versionName "1.0"
+ versionName "1.0.0"
}
splits {
abi {
--- android/app/google-services.json
@@ -10,7 +10,7 @@
"client_info": {
"mobilesdk_app_id": "1:572613464107:android:60d1c24ec43a76d9091a6e",
"android_client_info": {
- "package_name": "com.walmart.stores.allspark"
+ "package_name": "com.walmart.stores.allspark.beta"
}
},
"oauth_client": [
--- android/app/src/main/AndroidManifest.xml
@@ -1,7 +1,7 @@
<!-- TODO change package name to the final one -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
- package="com.walmart.stores.allspark">
+ package="com.walmart.stores.allspark.beta">
<uses-permission android:name="android.permission.INTERNET" />
@@ -13,7 +13,7 @@
<!-- SUMO -->
<application
- android:name=".MainApplication"
+ android:name="com.walmart.stores.allspark.MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
@@ -21,7 +21,7 @@
android:theme="@style/AppTheme"
tools:replace="android:allowBackup">
<activity
- android:name=".MainActivity"
+ android:name="com.walmart.stores.allspark.MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
@@ -42,7 +42,7 @@
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<!-- TODO: Change the package name here -->
- <data android:scheme="com.walmart.stores.allspark"/>
+ <data android:scheme="com.walmart.stores.allspark.beta"/>
</intent-filter>
</activity>
--- android/app/src/main/java/com/walmart/stores/allspark/MainApplication.java
@@ -11,10 +11,10 @@ import com.facebook.soloader.SoLoader;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import com.walmart.sso.react.SSOReactApplication;
+import com.walmart.stores.allspark.beta.BuildConfig;
public class MainApplication extends SSOReactApplication implements ReactApplication {
- // TODO - change to appropriate package name
- private static final String REDIRECT_URI = "com.walmart.stores.allspark://SSOLogin";
+ private static final String REDIRECT_URI = "com.walmart.stores.allspark.beta://SSOLogin";
@Override
public String getSSORedirectUri() {
--- ios/AllSpark.xcodeproj/project.pbxproj
@@ -844,12 +844,13 @@
INFOPLIST_FILE = AllSpark/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ MARKETING_VERSION = 1.0.0;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-lc++",
);
- PRODUCT_BUNDLE_IDENTIFIER = com.walmart.stores.allspark;
+ PRODUCT_BUNDLE_IDENTIFIER = com.walmart.stores.allspark.beta;
PRODUCT_NAME = AllSpark;
PROVISIONING_PROFILE_SPECIFIER = "AllSpark Dev provisioning profile";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -872,12 +873,13 @@
INFOPLIST_FILE = AllSpark/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ MARKETING_VERSION = 1.0.0;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-lc++",
);
- PRODUCT_BUNDLE_IDENTIFIER = com.walmart.stores.allspark;
+ PRODUCT_BUNDLE_IDENTIFIER = com.walmart.stores.allspark.beta;
PRODUCT_NAME = AllSpark;
PROVISIONING_PROFILE_SPECIFIER = "AllSpark Dev provisioning profile";
SWIFT_VERSION = 5.0;
--- ios/AllSpark/Info.plist
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@@ -58,15 +58,15 @@
<string></string>
<key>UIAppFonts</key>
<array>
- <string>Bogle-ThinItalic.otf</string>
- <string>Bogle-Thin.otf</string>
- <string>Bogle-RegularItalic.otf</string>
- <string>Bogle-Regular.otf</string>
- <string>Bogle-MediumItalic.otf</string>
- <string>Bogle-Medium.otf</string>
- <string>Bogle-LightItalic.otf</string>
- <string>Bogle-Light.otf</string>
- <string>Bogle-BoldItalic.otf</string>
+ <string>Bogle-ThinItalic.otf</string>
+ <string>Bogle-Thin.otf</string>
+ <string>Bogle-RegularItalic.otf</string>
+ <string>Bogle-Regular.otf</string>
+ <string>Bogle-MediumItalic.otf</string>
+ <string>Bogle-Medium.otf</string>
+ <string>Bogle-LightItalic.otf</string>
+ <string>Bogle-Light.otf</string>
+ <string>Bogle-BoldItalic.otf</string>
<string>Bogle-Bold.otf</string>
<string>Bogle-BlackItalic.otf</string>
<string>Bogle-Black.otf</string>
--- src/core/RootContainer.tsx
@@ -19,7 +19,7 @@ export const RootContainer = () => {
<AuthenticatorView
activityName='MainActivity'
env='CERT'
- redirectUri='com.walmart.stores.allspark://SSOLogin'
+ redirectUri='com.walmart.stores.allspark.beta://SSOLogin'
connectedSSO={connectedSSO}>
<RootNav />
</AuthenticatorView>
| changing package name and redirect uris | changing package name and redirect uris
|
5ab50bbfb1ee293459e3af9e19591e6c1345b89e | --- .looper.yml
@@ -23,4 +23,4 @@ flows:
- (name Yarn Version) yarn --version
- yarn install
- yarn run lint
- - yarn run coverage
+ # - yarn run coverage
| feat(ui): update the roster mini app | feat(ui): update the roster mini app
|
198960fad8ef6d808f1f41c261f9b42aa2aeccf1 | --- package-lock.json
@@ -43,7 +43,7 @@
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/compass-sdk-rn": "5.18.9",
"@walmart/config-components": "4.2.13",
- "@walmart/copilot-mini-app": "3.33.6",
+ "@walmart/copilot-mini-app": "^3.33.8",
"@walmart/core-services": "~2.3.0",
"@walmart/core-services-allspark": "~2.13.4",
"@walmart/core-utils": "~2.0.5",
@@ -8592,9 +8592,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "3.33.6",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.33.6.tgz",
- "integrity": "sha512-FHcHLEvS0KDI6KdoABGqKPbh4I49/j2ZV3BSX6RADoWWCIFpbVJxbLUXf6YE42q/tF7kWtZJbC7Z2bsFbgSDrw==",
+ "version": "3.33.8",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.33.8.tgz",
+ "integrity": "sha512-HpJuG5cE7YRvklUtN/818xOTzXkHV3A+L6ZM7sD/zbX0a4cLIXwPvRPellZKd9x/3FdMQ/opYZT39NnSK3R63g==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -33223,9 +33223,9 @@
}
},
"@walmart/copilot-mini-app": {
- "version": "3.33.6",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.33.6.tgz",
- "integrity": "sha512-FHcHLEvS0KDI6KdoABGqKPbh4I49/j2ZV3BSX6RADoWWCIFpbVJxbLUXf6YE42q/tF7kWtZJbC7Z2bsFbgSDrw=="
+ "version": "3.33.8",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.33.8.tgz",
+ "integrity": "sha512-HpJuG5cE7YRvklUtN/818xOTzXkHV3A+L6ZM7sD/zbX0a4cLIXwPvRPellZKd9x/3FdMQ/opYZT39NnSK3R63g=="
},
"@walmart/core-services": {
"version": "2.3.2",
--- package.json
@@ -84,7 +84,7 @@
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/compass-sdk-rn": "5.18.9",
"@walmart/config-components": "4.2.13",
- "@walmart/copilot-mini-app": "3.33.6",
+ "@walmart/copilot-mini-app": "^3.33.8",
"@walmart/core-services": "~2.3.0",
"@walmart/core-services-allspark": "~2.13.4",
"@walmart/core-utils": "~2.0.5",
| copilot 3.33.8 version with vqa fixes | copilot 3.33.8 version with vqa fixes
|
6e7032eabad4ecfb85bf6fcc2807e1b6289c8391 | --- __tests__/__mocks__/react-native-fast-image.js
@@ -0,0 +1,4 @@
+module.exports = {
+ __esModule: true,
+ default: 'FastImage',
+};
--- __tests__/auth/AuthenticatorViewTest.tsx
@@ -13,7 +13,7 @@ import {SectionCard} from '../../src/auth/SectionCard';
import {SSO_APP} from '../../src/types/telemetryConstants';
import {LocalStorage} from '../../src/core/LocalStorage';
import env from '../../env.dev';
-import FastImage from "react-native-fast-image";
+import FastImage from 'react-native-fast-image';
jest.mock('../../src/core/LocalStorage', () => ({
LocalStorage: {
@@ -68,7 +68,8 @@ describe('AuthenticatorView', () => {
const fastImageComponent = component.root.findByType(FastImage);
fastImageComponent.props.onError();
expect(logger.error).toHaveBeenCalledWith('Error loading i5 image', {
- message: 'https://i5-me.walmartimages.com/images/core/landing-illustration-2f3f036d4c.png',
+ message:
+ 'https://i5-me.walmartimages.com/images/core/landing-illustration-2f3f036d4c.png',
});
});
--- __tests__/auth/SectionCardTest.tsx
@@ -14,7 +14,7 @@ const baseProps = {
buttonId: 'buttonId',
i5Image: 'i5Image',
};
-
+// eslint-disable-next-line react-hooks/rules-of-hooks
const logger = useLogger();
describe('SectionCard', () => {
--- __tests__/whatsNew/WhatsNewItemTest.tsx
@@ -2,8 +2,8 @@ import React from 'react';
import {create} from 'react-test-renderer';
import {useNavigation} from '@react-navigation/native';
import {WhatsNewItem} from '../../src/whatsNew/WhatsNewItem';
-import FastImage from "react-native-fast-image";
-import { useLogger } from "@walmart/core-services/Logger";
+import FastImage from 'react-native-fast-image';
+import {useLogger} from '@walmart/core-services/Logger';
jest.mock('../../src/transforms/language', () => ({
getValueForCurrentLanguage: (value) => value?.['en-US'],
| lint fix | lint fix
|
37ea6f03c75d0bdca9742cc270b14758f67cb2c3 | --- core/src/features/timeclock.tsx
@@ -173,8 +173,10 @@ const OldTimeClock = OldTimeClockFeature.createModule({
});
export const getUseNewTimeclock = createSelector(
- ConfigSelectors.createFeatureConfigSelector('timeclock'),
- (config) => config?.useNewTimeclock ?? true,
+ ConfigSelectors.createFeatureConfigSelector('timeClock'),
+ (config) => {
+ return config?.useNewTimeclock ?? false;
+ },
);
export const getTimeClockFeature = () => {
@@ -183,7 +185,7 @@ export const getTimeClockFeature = () => {
};
export const useTimeClockFeature = () => {
- const useNewTimeclock = true;
+ const useNewTimeclock = useSelector(getUseNewTimeclock);
useEffect(() => {
if (useNewTimeclock) {
| feat: timeclock switch updated | feat: timeclock switch updated
|
05c78e3912b2b30f5964c561e600b3a1ddb0efe8 | --- ios/Podfile.lock
@@ -623,9 +623,9 @@ PODS:
- JWT (~> 3.0.0-beta.12)
- React-Core
- SSZipArchive (~> 2.2.2)
- - compass-sdk-ios (0.2.18)
- - compass-sdk-rn (5.10.0):
- - compass-sdk-ios (= 0.2.18)
+ - compass-sdk-ios (0.2.19)
+ - compass-sdk-rn (5.7.4):
+ - compass-sdk-ios (= 0.2.19)
- React-Core
- DoubleConversion (1.1.6)
- EXAV (13.2.1):
@@ -1914,8 +1914,8 @@ SPEC CHECKSUMS:
BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
CodePush: dce1b253fde81078249ea9cd4b948e4ac7b761a9
- compass-sdk-ios: 8916c252253c1027bfbdfcf46f67a174e9f04263
- compass-sdk-rn: f3d236708f3298bb86b25cbc96673b26e2f548d6
+ compass-sdk-ios: ea22d56d8e1f534fbd9e26074f824fa85b7dc55a
+ compass-sdk-rn: e842e78a9bf6bc3dac89f9e3f80453efac3854fe
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
EXAV: f1f69397ecdcf44cfacd4ff5d338cd1b96891e87
EXConstants: f348da07e21b23d2b085e270d7b74f282df1a7d9
--- package-lock.json
@@ -41,7 +41,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.15.4",
"@walmart/attendance-mini-app": "1.62.5",
- "@walmart/compass-sdk-rn": "5.10.0",
+ "@walmart/compass-sdk-rn": "5.7.4",
"@walmart/config-components": "4.2.7",
"@walmart/copilot-mini-app": "2.3.19",
"@walmart/core-services": "~2.2.1",
@@ -8084,9 +8084,9 @@
}
},
"node_modules/@walmart/compass-sdk-rn": {
- "version": "5.10.0",
- "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.10.0.tgz",
- "integrity": "sha512-G8QS5o3rhhH6Bf0uSd5Px9JKSXD8mJfNIddUjX+uJI4nQs9BBjB58/WceSivG2X6nV02sQyt5RH6EWJfhFGvow==",
+ "version": "5.7.4",
+ "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.7.4.tgz",
+ "integrity": "sha512-WGJN/dMzvEH8IDK6PLI2CDY3QHyOwA7jMGMxNMnN68RE7jFo7h4BsYttL1VRgmnwxt6UP/ZmlV4vRT7pC7RXUg==",
"license": "MIT",
"peerDependencies": {
"react": "*",
@@ -34207,9 +34207,9 @@
}
},
"@walmart/compass-sdk-rn": {
- "version": "5.10.0",
- "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.10.0.tgz",
- "integrity": "sha512-G8QS5o3rhhH6Bf0uSd5Px9JKSXD8mJfNIddUjX+uJI4nQs9BBjB58/WceSivG2X6nV02sQyt5RH6EWJfhFGvow=="
+ "version": "5.7.4",
+ "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.7.4.tgz",
+ "integrity": "sha512-WGJN/dMzvEH8IDK6PLI2CDY3QHyOwA7jMGMxNMnN68RE7jFo7h4BsYttL1VRgmnwxt6UP/ZmlV4vRT7pC7RXUg=="
},
"@walmart/config-components": {
"version": "4.2.7",
--- package.json
@@ -82,7 +82,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.15.4",
"@walmart/attendance-mini-app": "1.62.5",
- "@walmart/compass-sdk-rn": "5.10.0",
+ "@walmart/compass-sdk-rn": "5.7.4",
"@walmart/config-components": "4.2.7",
"@walmart/copilot-mini-app": "2.3.19",
"@walmart/core-services": "~2.2.1",
| Compass version upgrade to 5.7.4 | Compass version upgrade to 5.7.4
|
1760f703a4ab17a6a87ef6e368eceae57feb14d7 | --- scripts/mini-app-scan/package-deprecation/scheduled-library-deprecation.json
@@ -4,40 +4,56 @@
"replacement": "@walmart/allspark-foundation",
"enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development.",
- "exemption": {
+ "exemptions": [{
"package": "@walmart/welcomeme-mini-app",
"endDate": "2026-01-15"
- }
+ },
+ {
+ "package": "@walmart/time-clock-mini-app",
+ "endDate": "2026-02-03"
+ }]
},
{
"legacyLibrary": "@walmart/core-utils",
"replacement": "@walmart/allspark-utils",
"enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development.",
- "exemption": {
+ "exemptions": [{
"package": "@walmart/welcomeme-mini-app",
"endDate": "2026-01-15"
- }
+ },
+ {
+ "package": "@walmart/time-clock-mini-app",
+ "endDate": "2026-02-03"
+ }]
},
{
"legacyLibrary": "@walmart/react-native-env",
"replacement": "@walmart/allspark-foundation/Environment",
"enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development.",
- "exemption": {
+ "exemptions": [{
"package": "@walmart/welcomeme-mini-app",
"endDate": "2026-01-15"
- }
+ },
+ {
+ "package": "@walmart/time-clock-mini-app",
+ "endDate": "2026-02-03"
+ }]
},
{
"legacyLibrary": "@walmart/react-native-shared-navigation",
"replacement": "@walmart/allspark-foundation/Navigation",
"enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development.",
- "exemption": {
+ "exemptions": [{
"package": "@walmart/welcomeme-mini-app",
"endDate": "2026-01-15"
- }
+ },
+ {
+ "package": "@walmart/time-clock-mini-app",
+ "endDate": "2026-02-03"
+ }]
},
{
"legacyLibrary": "@walmart/react-native-wm-network",
@@ -56,20 +72,28 @@
"replacement": "@walmart/allspark-foundation/Redux",
"enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development.",
- "exemption": {
+ "exemptions": [{
"package": "@walmart/welcomeme-mini-app",
"endDate": "2026-01-15"
- }
+ },
+ {
+ "package": "@walmart/time-clock-mini-app",
+ "endDate": "2026-02-03"
+ }]
},
{
"legacyLibrary": "@walmart/functional-components",
"replacement": "@walmart/allspark-foundation/HTTP",
"enforcementDate": "2025-11-03",
"notes": "Use the foundation replacement for all new development.",
- "exemption": {
+ "exemptions": [{
"package": "@walmart/welcomeme-mini-app",
"endDate": "2026-01-15"
- }
+ },
+ {
+ "package": "@walmart/time-clock-mini-app",
+ "endDate": "2026-02-03"
+ }]
},
{
"legacyLibrary": "react-native-encrypted-storage",
@@ -82,7 +106,7 @@
"replacement": "expo-video",
"enforcementDate": "2025-11-03",
"notes": "Use the Expo replacement for all new development.",
- "exemption": {
+ "exemptions": {
"package": "@walmart/welcomeme-mini-app",
"endDate": "2026-01-15"
}
@@ -97,7 +121,11 @@
"legacyLibrary": "react-native-sound-player",
"replacement": "react-native-audio-api",
"enforcementDate": "2025-11-03",
- "notes": "Use the replacement for all new development."
+ "notes": "Use the replacement for all new development.",
+ "exemptions": [{
+ "package": "@walmart/time-clock-mini-app",
+ "endDate": "2026-02-03"
+ }]
},
{
"legacyLibrary": "react-native-new-snap-carousel",
@@ -158,6 +186,12 @@
"replacement": "@walmart/gtp-shared-components-3",
"enforcementDate": "2026-02-02",
"notes": "Migrate to LD 3.5 for all new development. Please follow this migration guide for more details: https://confluence.walmart.com/display/ALLSPARK/LD+3.5+Migration+Notes"
+ },
+ {
+ "legacyLibrary": "@walmart/time-clock-mini-app",
+ "replacement": "@walmart/time-clock-feature-app and @walmart/timesheet-feature-app",
+ "enforcementDate": "2026-02-03",
+ "notes": "Use the replacements for all new development."
}
]
| chore: add time-clock-mini-app to exemptions and scheduled deprecation (#5061) | chore: add time-clock-mini-app to exemptions and scheduled deprecation (#5061)
|
8c789d6cde69b34f73586f51e3d8eccdb970b1ea | --- src/navigation/utils.ts
@@ -26,7 +26,7 @@ export const goToIndividualSchedule = (
businessUnitNumber: parseInt(siteId || '', 10),
displayName: namecase(displayName),
payType: payType,
- walmartIdentificationNumber: win,
+ walmartIdentificationNumber: win?.toString(),
country: countryCode,
},
},
| casting win to string | casting win to string
|
3338c0df24485758faf2ee67fb211f6a0ca19361 | --- package.json
@@ -137,7 +137,7 @@
"@walmart/react-native-shared-navigation": "~6.3.28",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.7.5",
- "@walmart/react-native-webex-sdk": "0.8.27",
+ "@walmart/react-native-webex-sdk": "0.8.37",
"@walmart/receipt-check-miniapp": "1.29.4",
"@walmart/redux-store": "~6.3.28",
"@walmart/returns-mini-app": "4.16.7",
--- yarn.lock
@@ -8370,7 +8370,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.7.5"
- "@walmart/react-native-webex-sdk": "npm:0.8.27"
+ "@walmart/react-native-webex-sdk": "npm:0.8.37"
"@walmart/receipt-check-miniapp": "npm:1.29.4"
"@walmart/redux-store": "npm:~6.3.28"
"@walmart/returns-mini-app": "npm:4.16.7"
@@ -8948,14 +8948,14 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/react-native-webex-sdk@npm:0.8.27":
- version: 0.8.27
- resolution: "@walmart/react-native-webex-sdk@npm:0.8.27::__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.8.27.tgz"
+"@walmart/react-native-webex-sdk@npm:0.8.37":
+ version: 0.8.37
+ resolution: "@walmart/react-native-webex-sdk@npm:0.8.37::__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.8.37.tgz"
peerDependencies:
react: "*"
react-native: "*"
react-native-logger: "*"
- checksum: 10c0/ade4482508842931451cca5c4fc7688cc5ef1428cec0d3fff9dfca3cfb42f3d8783a16b440e47c74a66864416d48da20445e2f79058fb9c0eb2edfdc1b099eb2
+ checksum: 10c0/5bfb68eb1a1e21ca19c60229867ccf30e45aa2c9b2057ba083861f71436293cfa4a452fd4cc9d89073cb241ffa63d0b2f99e0222382f1b95358aee556431fa8a
languageName: node
linkType: hard
| fix: CONAS-1878 Calling crash fix for NullPointerException | fix: CONAS-1878 Calling crash fix for NullPointerException
|
c922606edeee604014f7a7b1557a1874cc896c89 | --- android/app/src/main/res/raw/beep_confirmation.mp3
Binary files /dev/null and b/android/app/src/main/res/raw/beep_confirmation.mp3 differ
--- ios/AllSpark.xcodeproj/project.pbxproj
@@ -25,6 +25,7 @@
31E1724C255A601A0039C18F /* Bogle-RegularItalic.otf in Resources */ = {isa = PBXBuildFile; fileRef = F013540624ED83A70094D840 /* Bogle-RegularItalic.otf */; };
31E1724D255A601A0039C18F /* Bogle-Thin.otf in Resources */ = {isa = PBXBuildFile; fileRef = F01353FD24ED83A70094D840 /* Bogle-Thin.otf */; };
31E1724E255A601A0039C18F /* Bogle-ThinItalic.otf in Resources */ = {isa = PBXBuildFile; fileRef = F013540724ED83A80094D840 /* Bogle-ThinItalic.otf */; };
+ 65E7F222298D9CDC00DD5680 /* beep_confirmation.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 65E7F221298D9CDC00DD5680 /* beep_confirmation.mp3 */; };
8081353125433D1300844649 /* PTMono-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8081353025433D1300844649 /* PTMono-Regular.ttf */; };
9D01483725F17B3100A8E049 /* LaunchScreen-Prod.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9D01483625F17B3000A8E049 /* LaunchScreen-Prod.storyboard */; };
9DAAFC32260A8C2900AE7889 /* LaunchScreen-Dev.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9DAAFC30260A8C2900AE7889 /* LaunchScreen-Dev.storyboard */; };
@@ -55,6 +56,7 @@
31C9750625D6BD2F00044347 /* icomoon.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = icomoon.ttf; sourceTree = "<group>"; };
31D742EA2556B368004E5CA4 /* MaterialIcons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = MaterialIcons.ttf; path = "../../sample-composite-app/android/app/src/main/assets/fonts/MaterialIcons.ttf"; sourceTree = "<group>"; };
4120FE278C5A4EFEB2622758 /* DIGIMark-custom.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "DIGIMark-custom.ttf"; path = "../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/DIGIMark-custom.ttf"; sourceTree = "<group>"; };
+ 65E7F221298D9CDC00DD5680 /* beep_confirmation.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = beep_confirmation.mp3; sourceTree = "<group>"; };
7E03751FFBC04D1E977A672C /* icomoon.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = icomoon.ttf; path = "../node_modules/@walmart/ui-components/assets/fonts/icomoon.ttf"; sourceTree = "<group>"; };
8081353025433D1300844649 /* PTMono-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "PTMono-Regular.ttf"; sourceTree = "<group>"; };
99D7C873A014A98046591001 /* Pods-AllSpark.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AllSpark.release.xcconfig"; path = "Target Support Files/Pods-AllSpark/Pods-AllSpark.release.xcconfig"; sourceTree = "<group>"; };
@@ -126,6 +128,7 @@
06FF016091624EA0B919BA1E /* Resources */ = {
isa = PBXGroup;
children = (
+ 65E7F221298D9CDC00DD5680 /* beep_confirmation.mp3 */,
F36CF5DF28A591F200C0FB4F /* beep_error.mp3 */,
AABEB98E27F3A824002C5BFB /* walmart_achievement_01.mp3 */,
E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */,
@@ -308,6 +311,7 @@
31E17248255A601A0039C18F /* Bogle-LightItalic.otf in Resources */,
E9AD4B182679309900D8DDD4 /* clockin.mp3 in Resources */,
31E17249255A601A0039C18F /* Bogle-Medium.otf in Resources */,
+ 65E7F222298D9CDC00DD5680 /* beep_confirmation.mp3 in Resources */,
31C9750725D6BD2F00044347 /* icomoon.ttf in Resources */,
31E17243255A601A0039C18F /* Bogle-Black.otf in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
@@ -759,4 +763,4 @@
/* End XCConfigurationList section */
};
rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
-}
+}
\ No newline at end of file
--- ios/beep_confirmation.mp3
Binary files /dev/null and b/ios/beep_confirmation.mp3 differ
--- package-lock.json
@@ -59,7 +59,7 @@
"@walmart/manager-approvals-miniapp": "0.1.2",
"@walmart/me-field-mini-app": "1.1.45",
"@walmart/metrics-mini-app": "0.9.38",
- "@walmart/mod-flex-mini-app": "1.3.15",
+ "@walmart/mod-flex-mini-app": "1.4.4",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.14",
"@walmart/pay-stub-miniapp": "0.9.28",
@@ -5576,9 +5576,9 @@
"license": "MIT"
},
"node_modules/@walmart/mod-flex-mini-app": {
- "version": "1.3.15",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.3.15.tgz",
- "integrity": "sha512-xYHPlzU/mRbZB9E5T0JLBMwnaLoVpyST60hayRXbqp4RdP1S/650gVBz7zlpWcwF5fC1ibest4/II0AUP84RsA==",
+ "version": "1.4.4",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.4.4.tgz",
+ "integrity": "sha512-uKSPrBWdS4Lg4LENwXvfPKrAhDbqYYrJs8zODwNKnllHdvPPvkWduiQzwaCbwt5AheXiodXdFjkhCe1hdinJkg==",
"peerDependencies": {
"@react-native-community/async-storage": "^1.11.0",
"@react-native-picker/picker": "^2.4.2",
--- package.json
@@ -101,7 +101,7 @@
"@walmart/manager-approvals-miniapp": "0.1.2",
"@walmart/me-field-mini-app": "1.1.45",
"@walmart/metrics-mini-app": "0.9.38",
- "@walmart/mod-flex-mini-app": "1.3.15",
+ "@walmart/mod-flex-mini-app": "1.4.4",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.14",
"@walmart/pay-stub-miniapp": "0.9.28",
--- patches/@walmart+mod-flex-mini-app+1.3.15.patch
@@ -1,34 +0,0 @@
-diff --git a/node_modules/@walmart/mod-flex-mini-app/dist/utils/index.d.ts b/node_modules/@walmart/mod-flex-mini-app/dist/utils/index.d.ts
-index 1c5829a..758badb 100644
---- a/node_modules/@walmart/mod-flex-mini-app/dist/utils/index.d.ts
-+++ b/node_modules/@walmart/mod-flex-mini-app/dist/utils/index.d.ts
-@@ -7,10 +7,6 @@ export declare const accessibilityId: (id?: string) => {
- accessibilityLabel?: undefined;
- accessible?: undefined;
- };
--export declare const obtainAnimator: () => {
-- animator: import("react-native").Animated.Value;
-- animation: import("react-native").Animated.CompositeAnimation;
--};
- export declare const getCountryCode: (user: {
- countryCode: string;
- } | null) => string;
-diff --git a/node_modules/@walmart/mod-flex-mini-app/dist/utils/index.js b/node_modules/@walmart/mod-flex-mini-app/dist/utils/index.js
-index 5cf0d68..791b164 100644
---- a/node_modules/@walmart/mod-flex-mini-app/dist/utils/index.js
-+++ b/node_modules/@walmart/mod-flex-mini-app/dist/utils/index.js
-@@ -1,12 +1,12 @@
- import { Platform } from 'react-native';
--import { Skeleton } from '@walmart/gtp-shared-components';
-+// import { Skeleton } from '@walmart/gtp-shared-components';
- import { getStore } from '@walmart/redux-store';
- import { networkingCountryCodeSelector } from '../model/selectors';
- import { enrichmentChunkSizeSelector } from '../model/selectors/configSelectors';
- export const accessibilityId = (id = '') => Platform.OS === 'android'
- ? { accessibilityLabel: id, accessible: true }
- : { testID: id };
--export const obtainAnimator = () => Skeleton.createAnimator();
-+// export const obtainAnimator = () => Skeleton.createAnimator();
- export const getCountryCode = (user) => {
- let countryCode = 'US';
- const userCountryCode = user?.countryCode;
| update modflex to 1.4.4 | update modflex to 1.4.4
|
72a8702d967b6a0830b4fa4b75615ff5a5ecdc0a | --- packages/allspark-foundation-hub/src/HubFeature/Hooks/useHubConfig.ts
@@ -1,7 +1,11 @@
import { ConfigSelectors } from '@walmart/allspark-foundation/Config';
import { useSelector } from 'react-redux';
+import { LayoutConfigType } from '../Hub/Container';
-export const useHubConfig = (ccmNamespace: string, defaultValue: any) => {
+export const useHubConfig = (
+ ccmNamespace: string,
+ defaultValue: LayoutConfigType
+) => {
const getCCMConfig =
ConfigSelectors.createFeatureConfigSelector(ccmNamespace);
const ccmConfigInfo: any = useSelector(getCCMConfig);
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx
@@ -5,7 +5,7 @@ import {
} from '@walmart/allspark-foundation/Components';
import { useDispatch } from 'react-redux';
import { validateWidgets } from './utils';
-import { ValidatedTeamWidgetMapping } from './types';
+import { LayoutConfigType, ValidatedTeamWidgetMapping } from './types';
import { AllsparkFeatureModule } from '@walmart/allspark-foundation/Feature';
import { enUS, esMX } from '../../translation';
import { FEATURE_ID, FEATURE_NAME } from '../../constant';
@@ -13,10 +13,10 @@ import { TeamSelection, TeamOnboardingScreen } from '../../Onboarding';
import { managerExperienceSlice } from '../../Redux/reducer';
import { HubDashboard } from './Screens';
import { ManagerExperienceCreators } from '../../Redux';
-import { defaultLayout } from './defaultLayout';
import { useHubConfig } from '../../Hooks/useHubConfig';
import { ClockOutGuard } from '../../ClockOut';
import { BottomSheetProvider } from '../../BottomSheet/BottomSheetContext';
+import { defaultLayout as hubDefaultLayout } from './defaultLayout';
export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, {
name: FEATURE_NAME,
@@ -57,7 +57,8 @@ export class AllsparkHubContainer {
public create = (
name: string,
ccmNamespace: string,
- screeName: string
+ screeName: string,
+ defaultLayout: LayoutConfigType = hubDefaultLayout
): this => {
const dispatch = useDispatch();
this.containerName = name;
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx
@@ -330,12 +330,15 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => {
}}
/>
</ScrollView>
- {(userOnboarded || userOnboardingOrTeamSelectionError) && (
+ {(userOnboarded ||
+ userOnboardingOrTeamSelectionError ||
+ isBottomSheetVisible) && (
<BottomSheet
ref={bottomSheetRef}
isVisible={
userOnboardingOrTeamSelectionError ||
- (userOnboardingOrTeamSelectionError as boolean)
+ (userOnboardingOrTeamSelectionError as boolean) ||
+ isBottomSheetVisible
}
content={HubOnboardingImage({
title: t('errorBottomsheet.title'),
@@ -353,7 +356,7 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => {
{(userOnboarded || isBottomSheetVisible) && (
<BottomSheet
ref={bottomSheetRef}
- isVisible={isBottomSheetVisible}
+ isVisible={userOnboarded || isBottomSheetVisible}
content={renderContent()}
onPrimaryButtonPress={closeBottomSheet}
primaryButtonText={t('onboardingBottomSheet.buttonText')}
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/defaultLayout.ts
@@ -1,4 +1,6 @@
-export const defaultLayout = {
+import { LayoutConfigType } from './types';
+
+export const defaultLayout: LayoutConfigType = {
['0000000']: {
teamName: 'roster',
widgets: [{ name: 'roster', rank: 1, enable: true }],
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/types.ts
@@ -18,3 +18,16 @@ export interface TeamWidgetMapping {
export interface ValidatedTeamWidgetMapping {
[key: string]: { teamName: string; widgets: string[] };
}
+
+export type LayoutConfigType = {
+ [key: string]: {
+ teamName: string;
+ widgets: [
+ {
+ name: string;
+ rank: number;
+ enable: boolean;
+ },
+ ];
+ };
+};
--- packages/allspark-foundation-hub/src/HubFeature/Onboarding/index.tsx
@@ -1,2 +1 @@
export * from './TeamOnboarding';
-export * from './TeamSelection';
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/ErrorScreen.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/ListHeader.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/RenderTeamSelectionListItem.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/SelectionBanner.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/SelectionBannerFooterButtons.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/TeamSelectionList.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/TeamSelectionListItem.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/TeamSelectionLoader.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Constants/TeamSelectionConstants.ts
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Screens/Hooks/useTeamSelection.ts
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Screens/Hooks/useTeamsByStore.ts
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Screens/TeamSelection.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Screens/index.ts
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Utils/sectionListData.ts
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Utils/teams.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/index.tsx
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/mockData.ts
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/styles.ts
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/types.ts
| feat(ui): update the default layout for hubs | feat(ui): update the default layout for hubs
|
e563270b270dfcfa0965f6923d4da5cec5ad39cb | --- android/app/src/main/AndroidManifest.xml
@@ -10,6 +10,8 @@
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<queries>
<package android:name="com.walmart.sso.app" />
@@ -27,12 +29,15 @@
<application
android:name="com.walmart.stores.allspark.beta.MainApplication"
android:label="@string/app_name"
+ android:requestLegacyExternalStorage="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme"
tools:replace="android:allowBackup"
- android:extractNativeLibs="true">
+ android:extractNativeLibs="true"
+ tools:replace="android:allowBackup"
+ >
<!-- disables automatic screen tracking; removing for now due to an issue: https://github.com/firebase/firebase-android-sdk/issues/3240 -->
<!-- <meta-data
| Android permissions update | Android permissions update |
0fb4886f3beeeb25088f46825869048b857886c5 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 131
+ versionCode 132
versionName "1.0.12"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>131</string>
+ <string>132</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
| Incrementing build number | Incrementing build number
|
05df98fe4776ee7b692c9f5aeeb0f6259873ccff | --- src/translations/en-US.ts
@@ -21,6 +21,7 @@ export const enUS = {
},
rosterScreen: {
rosterName: "Today's roster",
+ primaryTeamRosterName: '{{teamName}} roster',
totalStoreRosterName: "Today's Total Store roster",
totalStoreRosterName_site: "Today's Total Site roster",
totalStoreRosterName_store: "Today's Total Store roster",
--- src/translations/es-MX.ts
@@ -21,6 +21,7 @@ export const esMX = {
},
rosterScreen: {
rosterName: 'Lista de Hoy',
+ primaryTeamRosterName: '{{teamName}} lista',
totalStoreRosterName: 'Lista de la Tienda Completa de Hoy',
totalStoreRosterName_site: 'Lista del Sitio Completo de Hoy',
totalStoreRosterName_store: 'Lista de la Tienda Completa de Hoy',
| feat: added translation | feat: added translation
|
a7ba708d5ffb6dacbbedd49f6310f442a8c1ce52 | --- ios/AllSpark/Info.plist
@@ -10,7 +10,7 @@
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.walmart.stores.allspark.beta</string>
- <key>SumoAppGroupId</key>
+ <key>SumoAppGroupId</key>
<string>group.com.walmart</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
| Removing spce in string | Removing spce in string
|
cc1a01dd8e56d4195ee332167412283a9c62de4a | --- package.json
@@ -63,7 +63,7 @@
"@redux-saga/testing-utils": "^1.1.3",
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
- "@walmart/shelfavailability-mini-app": "0.3.42",
+ "@walmart/shelfavailability-mini-app": "0.3.45",
"@walmart/allspark-health-survey-mini-app": "0.0.41",
"@walmart/allspark-home-mini-app": "0.4.0",
"@walmart/allspark-me-mini-app": "0.1.0",
| 0.3.45 | 0.3.45
|
afcbfe5aaa3bc37e521966bc7bfe050aa1a36c71 | --- package-lock.json
@@ -3338,9 +3338,9 @@
"integrity": "sha512-53F4Ig1Bd7bMzwgmq0OnDa+T3PKdi0wyyTDg67F9mvdRn05Le+EVv6Dji8fft8XE8hGmgK5sjwpTuarBmnDsVQ=="
},
"@walmart/exception-mini-app": {
- "version": "0.33.0",
- "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.33.0.tgz",
- "integrity": "sha512-SdHj4JD8W/fM5WToenYYGps2Zw5RJF6pgBGhTcy0Q0MAsUl6M4j8gngPmm0XxApixNKPrGsQWAeCi/7s6PTQRQ=="
+ "version": "0.34.0",
+ "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.34.0.tgz",
+ "integrity": "sha512-yxs/4U9guQGeQxSnrfIsOpYfpaKsqsUaar/ObVp4V2+U+kLv5w8OMtyRoF95LfWmQKdMl+rhZ5Jg8oXMGEgpJA=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.0.58",
--- package.json
@@ -76,7 +76,7 @@
"@walmart/ask-sam-mini-app": "0.30.15",
"@walmart/config-components": "^1.0.29",
"@walmart/counts-component-miniapp": "0.0.20",
- "@walmart/exception-mini-app": "0.33.0",
+ "@walmart/exception-mini-app": "0.34.0",
"@walmart/feedback-all-spark-miniapp": "0.0.58",
"@walmart/functional-components": "1.0.32",
"@walmart/gta-react-native-calendars": "0.0.15",
| pinpoint bump | pinpoint bump
|
554b12591c923eb69f444ddbf193fc44d771ce3f | --- core/src/core/translations.ts
@@ -95,6 +95,9 @@ export const enUS = {
content: 'You must be clocked in to access this feature.',
title: 'Clock in required',
},
+ drawerButton: {
+ accessiblityLabel: 'Menu',
+ },
featureToggleGuard: {
action: 'Got it',
content: 'You’ll be able to use {{featureId}} when everything is fixed.',
@@ -325,6 +328,9 @@ export const esMX = {
content: 'Debes iniciar sesión para acceder a esta función.',
title: 'Entrada requerida',
},
+ drawerButton: {
+ accessiblityLabel: 'Menú',
+ },
featureToggleGuard: {
action: 'Lo tengo',
content: 'Podrás usar {{featureId}} cuando todo esté arreglado.',
| fix: adding drawer button label translations for ada | fix: adding drawer button label translations for ada
|
b1eda029f048302ed8a0ee28bb14625829da94bf | --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx
@@ -247,7 +247,7 @@ export const HubDashboard = ({
teamSwitcherTelemetryRef.current.logEvent('error_bottomsheet_event', {
message: 'Error bottomsheet triggered',
});
- loggerRef.current.info('Onboarding', {
+ loggerRef.current.info('Onboarding failed', {
message: 'Onboarding failed',
});
} else {
@@ -264,6 +264,9 @@ export const HubDashboard = ({
loggerRef.current.info('Error bottomsheet closed', {
message: 'Onboarding failed',
});
+ loggerRef.current.info('Error bottomsheet triggered', {
+ message: 'Error bottomsheet triggered',
+ });
} else if (isTeamUpdatedBottomSheetVisible) {
teamSwitcherTelemetryRef.current.logEvent(
'Teams_update_bottomsheet_event',
@@ -271,6 +274,9 @@ export const HubDashboard = ({
message: 'Teams updated bottomsheet triggered',
}
);
+ loggerRef.current.info('Teams updated banner', {
+ message: 'Teams updated banner triggered',
+ });
} else {
teamSwitcherTelemetryRef.current.logEvent('onboarding_success_event', {
message: 'Onboarding is successful',
@@ -278,9 +284,12 @@ export const HubDashboard = ({
teamSwitcherTelemetryRef.current.logEvent('success_bottomsheet_event', {
message: 'Success bottomsheet triggered',
});
- loggerRef.current.info('Onboarding', {
+ loggerRef.current.info('Onboarding complete', {
message: 'Onboarding is successful',
});
+ loggerRef.current.info('Onboarding banner', {
+ message: 'Onboarding banner triggered',
+ });
}
}
bottomSheetRef.current?.close();
@@ -421,12 +430,15 @@ export const HubDashboard = ({
props={componentOverrides.Header?.props || {}}
/>
<TeamSwitcher
- onTeamChange={(teamLabel, teamIds) =>
+ onTeamChange={(teamLabel, teamIds) => {
setTeamState({
teamLabel: teamLabel,
teamIds: teamIds,
- })
- }
+ });
+ loggerRef.current.info('Team switch event', {
+ message: 'Teams switch event triggered',
+ });
+ }}
refreshing={state.refreshing}
/>
<AllsparkComponentContainers.Layout
--- packages/allspark-foundation-hub/src/HubFeature/Hub/HubWidget/index.tsx
@@ -14,6 +14,8 @@ import {
import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation';
import { FEATURE_ID } from '../../constant';
import { AllsparkNavigationClient } from '@walmart/allspark-foundation';
+import { LoggerService } from '@walmart/allspark-foundation/Logger';
+import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry';
export const HubWidget = ({
iconName,
@@ -35,6 +37,8 @@ export const HubWidget = ({
const IconComponent = Icons[iconName];
const showShortIntro = shortIntro && !restricted;
const { t } = useAllsparkTranslation(FEATURE_ID);
+ const logger = LoggerService.getContainerInstance();
+ const widgetTelemetry = useTelemetryService();
const renderHubWidgetSkeleton = useCallback(
() => (
@@ -74,9 +78,16 @@ export const HubWidget = ({
<View style={styles.container}>
{/* HEADER */}
<TouchableOpacity
- onPress={() =>
- AllsparkNavigationClient.navigate(routeName, routeParams)
- }
+ onPress={() => {
+ logger.info('Widget navigation', {
+ message: `Navigated to ${routeName}`,
+ });
+ widgetTelemetry.logEvent('widget_navigation_event', {
+ message: 'Widget navigation triggered',
+ routeName: routeName,
+ });
+ AllsparkNavigationClient.navigate(routeName, routeParams);
+ }}
>
<View style={styles.heading}>
<IconComponent
--- packages/allspark-foundation-hub/src/HubFeature/Hub/TeamSwitcher/index.tsx
@@ -1,4 +1,10 @@
-import React, { useCallback, useEffect, useMemo, useState } from 'react';
+import React, {
+ useCallback,
+ useEffect,
+ useMemo,
+ useRef,
+ useState,
+} from 'react';
import { Text, View, TouchableOpacity, FlatList } from 'react-native';
import { TeamSwitcherProps, TeamSwitcherTypes } from './types';
import { TeamSwitcherStyles, scale } from './styles';
@@ -44,6 +50,7 @@ export const TeamSwitcher = ({
const { teamData, error, loading: isLoading, refetch } = useUserPreferences();
const { t } = useAllsparkTranslation(FEATURE_ID);
const logger = LoggerService.getContainerInstance();
+ const loggerRef = useRef(logger);
const userPrefTeams = teamData.length > 0 ? teamData : undefined;
const userSelectedTeamLabel = useSelector(
ManagerExperienceSelectors.getSelectedTeamPreference
@@ -140,6 +147,9 @@ export const TeamSwitcher = ({
useEffect(() => {
refetch();
+ loggerRef.current.info('Team switcher refetch', {
+ message: 'Team switcher refetch triggered',
+ });
}, [refreshing, refetch, userTeamSelectionComplete, userOnboardingComplete]);
const handlePress = (teamId: string, teamLabel: string) => {
@@ -166,7 +176,7 @@ export const TeamSwitcher = ({
};
const handleAddEditPress = () => {
- logger.info('Add/Edit teams triggered');
+ loggerRef.current.info('Add/Edit teams triggered');
teamSwitcherTelemetry.logEvent('add_edit_event', {
message: 'Add edit event triggered',
});
@@ -272,6 +282,10 @@ export const TeamSwitcher = ({
actionButtonProps={{
children: t('hubContainer.selectedTeamsError.actionText'),
onPress: () => {
+ loggerRef.current.info('Preference query refetch called');
+ teamSwitcherTelemetry.logEvent('team_switcher_refetch', {
+ message: 'Team switcher refetch triggered',
+ });
refetch();
},
}}
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/TeamSelectionList.tsx
@@ -133,6 +133,9 @@ export const TeamSelectionList = ({
site: String(site),
message: 'Team selection cancel event triggered',
});
+ logger.info('Teamselectiion cancel button', {
+ message: 'Teamselectiion cancel button pressed',
+ });
};
const handleSaveButton = () => {
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Screens/TeamSelection.tsx
@@ -94,6 +94,7 @@ export const TeamSelection = () => {
teamSelectionTelemetry.logEvent('refetch_event', {
message: 'Refetch teams data triggered',
});
+ logger.info('GetTeamsByStore query refetch triggered');
refetch();
}
}}
| Adding loggers | Adding loggers
|
2fd31bad1b23f068201411642012c505e670c1b4 | --- src/components/MyWalmartv2/Widgets/Hourly/HourlyRosterWidget.tsx
@@ -45,6 +45,14 @@ import {
} from '../../../../hooks/user';
import {MyTeamComponentProps} from '@walmart/me-at-walmart-common';
+// Skeleton styles - defined outside component to avoid re-creation
+const skeletonStyles = {
+ container: {flexDirection: 'row' as const, alignItems: 'center' as const, marginBottom: 12},
+ inner: {flex: 1},
+ margin: {marginRight: 12},
+ spacing: {marginBottom: 4},
+};
+
/**
* @typedef {Object} Punch
* @property {'Punch'} __typename - The type of the object
@@ -665,15 +673,6 @@ export const HourlyRosterWidget = ({
return 'default';
}, [hasError, isLoading, filteredData.length, searchQuery]);
- // Memoize skeleton inline styles to prevent re-creation
- const skeletonContainerStyle = useMemo(
- () => ({flexDirection: 'row' as const, alignItems: 'center' as const, marginBottom: 12}),
- []
- );
- const skeletonInnerStyle = useMemo(() => ({flex: 1}), []);
- const skeletonMarginStyle = useMemo(() => ({marginRight: 12}), []);
- const skeletonSpacingStyle = useMemo(() => ({marginBottom: 4}), []);
-
return (
<ScrollView
testID="hourly-roster-widget-container"
@@ -730,19 +729,19 @@ export const HourlyRosterWidget = ({
{[1, 2, 3, 4].map((_, index) => (
<View
key={index}
- style={skeletonContainerStyle}
+ style={skeletonStyles.container}
>
<Skeleton
height={48}
width={48}
variant="rounded"
- UNSAFE_style={skeletonMarginStyle}
+ UNSAFE_style={skeletonStyles.margin}
/>
- <View style={skeletonInnerStyle}>
+ <View style={skeletonStyles.inner}>
<Skeleton
height={16}
width="60%"
- UNSAFE_style={skeletonSpacingStyle}
+ UNSAFE_style={skeletonStyles.spacing}
/>
<Skeleton height={14} width="40%" />
</View>
| feat(ui): update performance | feat(ui): update performance
|
50033cf6a91c9112d34457069f266dcbdd66fbbb | --- targets/US/package.json
@@ -117,7 +117,7 @@
"@walmart/me-at-walmart-common": "workspace:^",
"@walmart/me-at-walmart-container": "workspace:^",
"@walmart/me-at-walmart-core": "workspace:^",
- "@walmart/metrics-mini-app": "1.24.2",
+ "@walmart/metrics-mini-app": "1.24.3",
"@walmart/mod-flex-mini-app": "1.19.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.1.10",
--- yarn.lock
@@ -6843,7 +6843,7 @@ __metadata:
"@walmart/me-at-walmart-common": "workspace:^"
"@walmart/me-at-walmart-container": "workspace:^"
"@walmart/me-at-walmart-core": "workspace:^"
- "@walmart/metrics-mini-app": "npm:1.24.2"
+ "@walmart/metrics-mini-app": "npm:1.24.3"
"@walmart/mod-flex-mini-app": "npm:1.19.6"
"@walmart/moment-walmart": "npm:1.0.4"
"@walmart/money-auth-shared-components": "npm:0.1.10"
@@ -7067,9 +7067,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@walmart/metrics-mini-app@npm:1.24.2":
- version: 1.24.2
- resolution: "@walmart/metrics-mini-app@npm:1.24.2"
+"@walmart/metrics-mini-app@npm:1.24.3":
+ version: 1.24.3
+ resolution: "@walmart/metrics-mini-app@npm:1.24.3"
dependencies:
base-64: "npm:^1.0.0"
peerDependencies:
@@ -7092,7 +7092,7 @@ __metadata:
react-native: 0.73.7
react-redux: ">=8.0.4"
reduxsauce: ">=1.2.0"
- checksum: 10c0/4faacc78a3628230e1cd4ac5b35100db9b343c631356085565dc7c44609dfedca372175e14dc74354e2560965235ad19e18abfd1e597b386bb28ae49877dccf0
+ checksum: 10c0/157b2b7387f691d8c0e95be70dac6f5929d1fabcdf5c805a7c230cee086bc3f017fd5e7a8aac4d50aa299e93ceb0e93f007ae1bcc2ced70ac4ba18bd0228ab8d
languageName: node
linkType: hard
| metrics version bump | metrics version bump
|
b524befe8ea53dc4b1e2c47babd66444f4289eb3 | --- example/ios/Podfile.lock
@@ -1290,7 +1290,7 @@ PODS:
- RNFBApp (17.4.3):
- Firebase/CoreOnly (= 10.7.0)
- React-Core
- - RNGestureHandler (2.17.1):
+ - RNGestureHandler (2.16.2):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
@@ -1682,7 +1682,7 @@ SPEC CHECKSUMS:
RNDeviceInfo: 42aadf1282ffa0a88dc38a504a7be145eb010dfa
RNFBAnalytics: 3bc4f4f28fad1caf0effaa21555da09f2c0be919
RNFBApp: 922564a99c97a8cab366d5a918f9fecff6b563d5
- RNGestureHandler: 67d3f1f69d4d0c98d6e83f4229e3bbf997d1dc72
+ RNGestureHandler: 96439cf6543defdde87459e48cd1a3f0e45a008e
RNPermissions: 438c75db343dc7cb218befcc63e3b5eb395f6f73
RNReanimated: d8498997f4cfd5561e0170916acffbd1ea4bcb43
RNScreens: e842cdccb23c0a084bd6307f6fa83fd1c1738029
| feat: revert podlock | feat: revert podlock
|
0b81ab206ee6916b9b6070c0259882670841c6eb | --- package-lock.json
@@ -84,7 +84,7 @@
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
"@walmart/taskit-mini-app": "2.34.6",
- "@walmart/texting-mini-app": "2.0.20",
+ "@walmart/texting-mini-app": "2.0.21",
"@walmart/time-clock-mini-app": "2.98.0",
"@walmart/topstock-mini-app": "1.0.6",
"@walmart/ui-components": "1.12.0",
@@ -7940,9 +7940,9 @@
}
},
"node_modules/@walmart/texting-mini-app": {
- "version": "2.0.20",
- "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.20.tgz",
- "integrity": "sha512-mbjGwG1Fi8tPwqgQwDVAjVhoYSG7W0y11COc4T/tlx3XRXrwlJyKfajuWJDB08xuGFGwe0ZN/QnZG+3mRi6rzQ==",
+ "version": "2.0.21",
+ "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.21.tgz",
+ "integrity": "sha512-bB3aWPxAgyQRJXkhd6v4U3mKKnzCsJAQmnLUug1Z14QHBJuJayCcBNA/KHz/lYUXSLLi3IIDHYwqHa9ac6u8IQ==",
"hasInstallScript": true
},
"node_modules/@walmart/time-clock-mini-app": {
@@ -30358,9 +30358,9 @@
}
},
"@walmart/texting-mini-app": {
- "version": "2.0.20",
- "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.20.tgz",
- "integrity": "sha512-mbjGwG1Fi8tPwqgQwDVAjVhoYSG7W0y11COc4T/tlx3XRXrwlJyKfajuWJDB08xuGFGwe0ZN/QnZG+3mRi6rzQ=="
+ "version": "2.0.21",
+ "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.21.tgz",
+ "integrity": "sha512-bB3aWPxAgyQRJXkhd6v4U3mKKnzCsJAQmnLUug1Z14QHBJuJayCcBNA/KHz/lYUXSLLi3IIDHYwqHa9ac6u8IQ=="
},
"@walmart/time-clock-mini-app": {
"version": "2.98.0",
--- package.json
@@ -125,7 +125,7 @@
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
"@walmart/taskit-mini-app": "2.34.6",
- "@walmart/texting-mini-app": "2.0.20",
+ "@walmart/texting-mini-app": "2.0.21",
"@walmart/time-clock-mini-app": "2.98.0",
"@walmart/topstock-mini-app": "1.0.6",
"@walmart/ui-components": "1.12.0",
| texting mini app now 2.0.21 | texting mini app now 2.0.21
|
8c9540e9e40aa50f20135125ffdbbac2b60136e2 | --- package.json
@@ -63,7 +63,7 @@
"@redux-saga/testing-utils": "^1.1.3",
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
- "@walmart/shelfavailability-mini-app": "0.3.47",
+ "@walmart/shelfavailability-mini-app": "0.3.49",
"@walmart/allspark-health-survey-mini-app": "0.0.41",
"@walmart/allspark-home-mini-app": "0.4.0",
"@walmart/allspark-me-mini-app": "0.1.0",
| 0.3.49 dev | 0.3.49 dev
|
84c9b2722d7a6e6c298ff2a916a2e47f2fa4409a | --- __tests__/components/RosterDetailPageHeader.test.tsx
@@ -41,7 +41,7 @@ jest.mock('@walmart/gtp-shared-components', () => {
};
});
-jest.mock('@walmart/allspark-foundation/Components/context', () => {
+jest.mock('@walmart/allspark-foundation/Components', () => {
const ReactModule = require('react');
return {
useAllsparkImage: () => (props) =>
| feat(ui): update test fixes | feat(ui): update test fixes
|
f74d974a384552821c12e8662223d26dcc85e4dc | --- __tests__/screens/MeganavScreen/MeganavScreenTest.tsx
@@ -0,0 +1,10 @@
+import React from 'react';
+import {MeganavScreen} from '../../../src/screens/MeganavScreen';
+
+const {renderWithProviders} = require('../../harness');
+describe('MeganavScreenTest', () => {
+ it('should render meganav screen', () => {
+ const meganavScreen = renderWithProviders(<MeganavScreen />);
+ expect(meganavScreen.toJSON()).toMatchSnapshot();
+ });
+});
--- __tests__/screens/MeganavScreen/__snapshots__/MeganavScreenTest.tsx.snap
@@ -0,0 +1,9 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`MeganavScreenTest should render meganav screen 1`] = `
+<View>
+ <Text>
+ Meganav screen placeholder. This is a combined integration of both the roster and texting app
+ </Text>
+</View>
+`;
| Adding meganav screen test coverage | Adding meganav screen test coverage
|
07a3a48b3e487d58ef2a99e87f6de3833fe005a4 | --- package.json
@@ -80,7 +80,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "1.1.48",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.15.3",
+ "@walmart/ask-sam-mini-app": "1.15.4",
"@walmart/attendance-mini-app": "0.190.6",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.1",
| SMBLV-5374: Android 33 upgrade | SMBLV-5374: Android 33 upgrade
|
539693ba17d0efa91aea9706ab0641b4d0b52d4e | --- packages/core-services-allspark/src/appConfig/sagas.ts
@@ -82,7 +82,7 @@ export function* getAppConfigScope(this: AppConfigSagaScope) {
model,
osVersion,
employmentStatus,
- isDCUser,
+ isDcUser,
]: string[] = yield all([
select(SiteSelectors.getSiteCountry),
select(SiteSelectors.getSiteDivisonCode),
@@ -114,7 +114,7 @@ export function* getAppConfigScope(this: AppConfigSagaScope) {
deviceType,
division: divisionNbr,
employmentStatus: `${employmentStatus}`,
- isDCUser,
+ isDcUser,
},
} as AppConfigFetchParams;
}
| bug fix | bug fix
|
db63aa8387e4422d834f9a3f1a3008493ee4b4d1 | --- package-lock.json
@@ -1411,11 +1411,6 @@
"stacktrace-js": "^2.0.0"
}
},
- "@react-native-firebase/perf": {
- "version": "7.4.3",
- "resolved": "https://npme.walmart.com/@react-native-firebase/perf/-/perf-7.4.3.tgz",
- "integrity": "sha512-uaeBL7vfC8g7OUnwhwBAuiZ4wUbpY51RwfA5qbT+uDZwpSrHgrzNX1XhcRWQ7qkhboS66nDlGG/MpthRqCbdNQ=="
- },
"@react-native-firebase/remote-config": {
"version": "9.0.5",
"resolved": "https://npme.walmart.com/@react-native-firebase/remote-config/-/remote-config-9.0.5.tgz",
--- package.json
@@ -25,7 +25,6 @@
"@react-native-firebase/analytics": "^7.6.2",
"@react-native-firebase/app": "^8.4.2",
"@react-native-firebase/crashlytics": "^8.4.4",
- "@react-native-firebase/perf": "^7.4.3",
"@react-native-firebase/remote-config": "^9.0.5",
"@react-navigation/bottom-tabs": "^5.8.0",
"@react-navigation/drawer": "^5.9.0",
| removing firebase/perf | removing firebase/perf
|
e30e7cda7c25d2e60e77aadef0a310b4c3b5cd40 | --- package-lock.json
@@ -9287,9 +9287,9 @@
}
},
"node_modules/@walmart/mod-flex-mini-app": {
- "version": "1.13.7",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.7.tgz",
- "integrity": "sha512-SQWSQCXyany6Vmws6lApYW9NO/DRPl+kYtltPxmqv7GBYIRCcceEZR9b5dybURXsP2KRZb0AzrnDUiokhPhSrg==",
+ "version": "1.14.4",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.14.4.tgz",
+ "integrity": "sha512-jFYfCEYHnhG39MVtBn9ee+K6mcn+0bPGJf8P+3fr3YwO08inH2n7ww9+KoXGP0kTuujtpUNeLi3g126DrKmAjQ==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.19.0",
@@ -33412,9 +33412,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.13.7",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.7.tgz",
- "integrity": "sha512-SQWSQCXyany6Vmws6lApYW9NO/DRPl+kYtltPxmqv7GBYIRCcceEZR9b5dybURXsP2KRZb0AzrnDUiokhPhSrg=="
+ "version": "1.14.4",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.14.4.tgz",
+ "integrity": "sha512-jFYfCEYHnhG39MVtBn9ee+K6mcn+0bPGJf8P+3fr3YwO08inH2n7ww9+KoXGP0kTuujtpUNeLi3g126DrKmAjQ=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
--- package.json
@@ -105,7 +105,7 @@
"@walmart/learning-mini-app": "17.0.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.17.9",
- "@walmart/mod-flex-mini-app": "1.13.7",
+ "@walmart/mod-flex-mini-app": "1.14.4",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.14",
"@walmart/onewalmart-miniapp": "1.0.16",
| update modflex for drop18 | update modflex for drop18
|
be0a4169205a9eb7d2cde74eb837f918abc2a949 | --- android/app/build.gradle
@@ -231,8 +231,6 @@ dependencies {
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
- implementation 'com.walmart.ssae.sms.sumo:sumosdk:2.5.5'
- implementation 'com.walmart.ssae.sms.sumo:sumofcm:2.5.5'
implementation 'com.google.firebase:firebase-messaging:21.0.1'
implementation "com.google.dagger:hilt-android:2.34.1-beta"
kapt "com.google.dagger:hilt-compiler:2.34.1-beta"
| removing android dependencies on sumo 1 | removing android dependencies on sumo 1
|
1724c2078cc90d1c69b0df34a3e5e4e88b8d57ab | --- __tests__/navigation/ToastModalTest.tsx
@@ -103,6 +103,32 @@ describe('ToastModal', () => {
expect(navigation.goBack).toHaveBeenCalled();
});
+ it('matches default snapshot with custom on press for dismiss', () => {
+ mockUseState.mockReturnValue([1, setToastTimeout]); // toastTimeout
+ mockGetCurrentRoute.mockReturnValue('randomScreen');
+ const customOnPress = jest.fn() as any;
+ const props = {
+ ...baseProps,
+ route: {
+ params: {
+ ...baseProps.route.params,
+ dismissText: 'Got it!',
+ duration: 5000,
+ customOnPress,
+ },
+ },
+ } as ToastModalProps;
+ const component = create(<ToastModal {...props} />);
+
+ expect(component.toJSON()).toMatchSnapshot();
+ const snackBar = component.root.findByProps({testID: 'snackbar'});
+ snackBar.props.button.onPress();
+ expect(setToastTimeout).toHaveBeenCalled();
+ jest.runTimersToTime(5000);
+ expect(navigation.goBack).toHaveBeenCalled();
+ expect(customOnPress).toHaveBeenCalled();
+ });
+
it('handles closing toast on container touch', () => {
mockUseState.mockReturnValue(['1', setToastTimeout]); // toastTimeout
mockGetCurrentRoute.mockReturnValue('homeNav.home');
@@ -120,12 +146,24 @@ describe('ToastModal', () => {
it('handles closing toast without timeout', () => {
mockUseState.mockReturnValue([undefined, setToastTimeout]); // toastTimeout
mockGetCurrentRoute.mockReturnValue('homeNav.home');
- const component = create(<ToastModal {...baseProps} />);
+ const props = {
+ ...baseProps,
+ route: {
+ params: {
+ ...baseProps.route.params,
+ dismissText: 'Got it!',
+ },
+ },
+ } as ToastModalProps;
+ const component = create(<ToastModal {...props} />);
const ToastBackground = component.root.findByProps({
testID: 'toastBackground',
});
ToastBackground.props.onPress();
expect(navigation.goBack).toHaveBeenCalled();
+ const snackBar = component.root.findByProps({testID: 'snackbar'});
+ snackBar.props.button.onPress();
+ expect(navigation.goBack).toHaveBeenCalledTimes(2);
});
});
--- __tests__/navigation/__snapshots__/ToastModalTest.tsx.snap
@@ -76,6 +76,154 @@ exports[`ToastModal matches default snapshot 1`] = `
</View>
`;
+exports[`ToastModal matches default snapshot with custom on press for dismiss 1`] = `
+<View
+ style={
+ Object {
+ "flex": 1,
+ "justifyContent": "flex-end",
+ }
+ }
+>
+ <View
+ accessible={true}
+ collapsable={false}
+ focusable={true}
+ onBlur={[Function]}
+ onClick={[Function]}
+ onFocus={[Function]}
+ onResponderGrant={[Function]}
+ onResponderMove={[Function]}
+ onResponderRelease={[Function]}
+ onResponderTerminate={[Function]}
+ onResponderTerminationRequest={[Function]}
+ onStartShouldSetResponder={[Function]}
+ style={
+ Object {
+ "bottom": 0,
+ "left": 0,
+ "position": "absolute",
+ "right": 0,
+ "top": 0,
+ }
+ }
+ testID="toastBackground"
+ />
+ <View
+ style={
+ Array [
+ Object {
+ "backgroundColor": "#2e2f32",
+ "borderRadius": 4,
+ "flexDirection": "row",
+ "margin": 16,
+ "shadowColor": "#000000",
+ "shadowOffset": Object {
+ "height": 5,
+ "width": 0,
+ },
+ "shadowOpacity": 0.15,
+ "shadowRadius": 10,
+ },
+ Object {
+ "bottom": 20,
+ },
+ ]
+ }
+ testID="snackbar"
+ >
+ <Text
+ style={
+ Object {
+ "color": "#FFFFFF",
+ "flex": 1,
+ "fontFamily": "Bogle",
+ "fontSize": 14,
+ "fontStyle": "normal",
+ "fontWeight": "400",
+ "lineHeight": 20,
+ "padding": 16,
+ }
+ }
+ >
+ toast message!
+ </Text>
+ <View
+ accessibilityRole="button"
+ accessibilityState={
+ Object {
+ "selected": undefined,
+ }
+ }
+ accessible={true}
+ collapsable={false}
+ focusable={true}
+ hitSlop={
+ Object {
+ "bottom": 16,
+ "left": 16,
+ "right": 16,
+ "top": 16,
+ }
+ }
+ nativeID="animatedComponent"
+ onClick={[Function]}
+ onResponderGrant={[Function]}
+ onResponderMove={[Function]}
+ onResponderRelease={[Function]}
+ onResponderTerminate={[Function]}
+ onResponderTerminationRequest={[Function]}
+ onStartShouldSetResponder={[Function]}
+ style={
+ Object {
+ "flexDirection": "row",
+ "flexShrink": 1,
+ "justifyContent": "center",
+ "maxWidth": 120,
+ "opacity": 1,
+ "overflow": "visible",
+ "padding": 16,
+ "paddingLeft": 8,
+ }
+ }
+ >
+ <View
+ collapsable={false}
+ forwardedRef={[Function]}
+ nativeID="animatedComponent"
+ style={
+ Object {
+ "flexDirection": "row",
+ "flexShrink": 1,
+ }
+ }
+ >
+ <Text
+ collapsable={false}
+ forwardedRef={[Function]}
+ nativeID="animatedComponent"
+ numberOfLines={1}
+ style={
+ Object {
+ "color": "rgba(255, 255, 255, 1)",
+ "fontFamily": "Bogle",
+ "fontSize": 14,
+ "fontStyle": "normal",
+ "fontWeight": "400",
+ "lineHeight": 20,
+ "textAlign": "center",
+ "textDecorationLine": "underline",
+ }
+ }
+ >
+ Got it!
+ </Text>
+ </View>
+ </View>
+ </View>
+</View>
+`;
+
exports[`ToastModal matches default snapshot with dismiss text, duration, and not in tabs 1`] = `
<View
style={
--- src/navigation/ToastModal.tsx
@@ -20,6 +20,7 @@ export type ToastModalProps = StackScreenProps<
message: string;
dismissText?: string;
duration?: number;
+ customOnPress?: () => void;
};
},
'ToastModal'
@@ -37,7 +38,7 @@ export const getToastPosition = (bottom: number) => {
export const ToastModal = (props: ToastModalProps) => {
const {navigation, route} = props;
- const {message, dismissText, duration = 3000} = route.params;
+ const {message, dismissText, duration = 3000, customOnPress} = route.params;
const [toastTimeout, setToastTimeout] = useState<NodeJS.Timeout>();
const {bottom} = useSafeAreaInsets();
@@ -53,6 +54,16 @@ export const ToastModal = (props: ToastModalProps) => {
}
};
+ const closeToastOnDismiss = () => {
+ navigation.goBack();
+ if (customOnPress) {
+ customOnPress();
+ }
+ if (toastTimeout) {
+ clearTimeout(toastTimeout);
+ }
+ };
+
return (
<View style={styles.container}>
<Pressable
@@ -69,7 +80,7 @@ export const ToastModal = (props: ToastModalProps) => {
dismissText
? {
caption: dismissText,
- onPress: closeToast,
+ onPress: closeToastOnDismiss,
}
: undefined
}>
| update toast config | update toast config
|
7d1f2bcef77594f076cf6fc1916a38d591e7d8e8 | --- package-lock.json
@@ -99,7 +99,7 @@
"@walmart/returns-mini-app": "4.6.0",
"@walmart/rfid-scan-mini-app": "2.3.10",
"@walmart/roster-mini-app": "1.1.7",
- "@walmart/schedule-mini-app": "0.105.0",
+ "@walmart/schedule-mini-app": "0.108.0",
"@walmart/shelfavailability-mini-app": "1.5.23",
"@walmart/store-feature-orders": "1.26.7",
"@walmart/taskit-mini-app": "2.81.15",
@@ -12421,9 +12421,9 @@
"hasInstallScript": true
},
"node_modules/@walmart/schedule-mini-app": {
- "version": "0.105.0",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.105.0.tgz",
- "integrity": "sha512-qSoNWpZweIpg3Xq1tFMRyuU2CEjDSV5HuO6H86hwsrXceVzU3tuW9YHmr6qhXq/XNhLhAYCBukd1OzNATSms0w==",
+ "version": "0.108.0",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.108.0.tgz",
+ "integrity": "sha512-An4GPn+2hdW9KiGPdovjEKebtwpkNH88c8xqxXoFFEmUEPbEQm6Atpa4cPXeC6BIiDy08MzmTlrn1qA59U7C7Q==",
"dependencies": {
"@walmart/moment-walmart": "^1.0.4",
"@walmart/wfm-ui": "^0.8.7",
--- package.json
@@ -141,7 +141,7 @@
"@walmart/returns-mini-app": "4.6.0",
"@walmart/rfid-scan-mini-app": "2.3.10",
"@walmart/roster-mini-app": "1.1.7",
- "@walmart/schedule-mini-app": "0.105.0",
+ "@walmart/schedule-mini-app": "0.108.0",
"@walmart/shelfavailability-mini-app": "1.5.23",
"@walmart/store-feature-orders": "1.26.7",
"@walmart/taskit-mini-app": "2.81.15",
@@ -402,7 +402,7 @@
"@walmart/redux-store": "6.0.16",
"@walmart/returns-mini-app": "4.6.0",
"@walmart/rfid-scan-mini-app": "2.3.10",
- "@walmart/schedule-mini-app": "0.105.0",
+ "@walmart/schedule-mini-app": "0.108.0",
"@walmart/shelfavailability-mini-app": "1.5.23",
"@walmart/store-feature-orders": "1.26.7",
"@walmart/taskit-mini-app": "2.81.15",
| bug fix version bump for schedule mini app | bug fix version bump for schedule mini app
|
139bb884bf1b35206ea9e3edbc840b66706ce935 | --- patches/@walmart+profile-feature-app+0.334.0.patch
@@ -0,0 +1,12 @@
+diff --git a/node_modules/@walmart/profile-feature-app/dist/components/LearningCard/index.js b/node_modules/@walmart/profile-feature-app/dist/components/LearningCard/index.js
+index 29f010b..725d5b6 100644
+--- a/node_modules/@walmart/profile-feature-app/dist/components/LearningCard/index.js
++++ b/node_modules/@walmart/profile-feature-app/dist/components/LearningCard/index.js
+@@ -1,6 +1,6 @@
+ import React from 'react';
+ import styles from './styles';
+-import { AssociateProfileLearningCard } from '@walmart/me-field-mini-app/dist/components/AssociateProfileLearningCard';
++import { AssociateProfileLearningCard } from '@walmart/learning-mini-app/dist/components/AssociateProfileLearningCard';
+ import { useSelector } from 'react-redux';
+ import { getLearningCardEnabled } from '../../redux/AppConfig/selectors/index';
+ import { useNavigation } from '@react-navigation/native';
| feat: :package: Added a patch for profile feature app | feat: :package: Added a patch for profile feature app
|
124a63dd73daf093468879f32a4d32105d30c93c | --- 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.367.0",
+ "@walmart/time-clock-mini-app": "2.370.0",
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch",
"@walmart/welcomeme-mini-app": "0.90.3",
--- yarn.lock
@@ -7146,9 +7146,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/time-clock-mini-app@npm:2.367.0":
- version: 2.367.0
- resolution: "@walmart/time-clock-mini-app@npm:2.367.0"
+"@walmart/time-clock-mini-app@npm:2.370.0":
+ version: 2.370.0
+ resolution: "@walmart/time-clock-mini-app@npm:2.370.0"
dependencies:
"@react-navigation/elements": "npm:^1.3.1"
moment-timezone: "npm:0.5.33"
@@ -7191,7 +7191,7 @@ __metadata:
uuid: ^3.3.2
wifi-store-locator: ^1.4.0
xdate: ^0.8.2
- checksum: 10c0/75099a20d824643ac7b87c5472e868c4d835d0f45e1a0986c93fa51266354c1ffcf7784bebf85551f3907ea8af7a84b51093c0978cf255f5e0bcc5e5be2d0dbc
+ checksum: 10c0/210fd0dc48d6b983a74020b5f9f0a82a5d2d78970d30f5ddc8998fa4aafe9f371075b0debe65226b2364f2a15a7337bda1e169e4e599aee607ad98886de7fcad
languageName: node
linkType: hard
@@ -7785,7 +7785,7 @@ __metadata:
"@walmart/shelfavailability-mini-app": "npm:1.5.23"
"@walmart/store-feature-orders": "npm:1.26.7"
"@walmart/taskit-mini-app": "npm:2.81.15"
- "@walmart/time-clock-mini-app": "npm:2.367.0"
+ "@walmart/time-clock-mini-app": "npm:2.370.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 - Update to 2.370.0 | TCMA - Update to 2.370.0
|
87f78153d45f8a8016538c48336ed01ee5564d0f | --- __tests__/sumo/SumoReduxTest.ts
@@ -7,6 +7,8 @@ import {
getSumoCharged,
getSumoOptIn,
getSumoProfile,
+ getSumoCharging,
+ getSumoChargeError,
} from '../../src/sumo/SumoRedux';
const mockProfile = {userId: 'swalton3'};
@@ -39,6 +41,16 @@ describe('selectors', () => {
expect(charged).toEqual(INITIAL_STATE.charged);
});
+ test('getSumoCharging', () => {
+ const charged = getSumoCharging(mockState);
+ expect(charged).toEqual(INITIAL_STATE.charging);
+ });
+
+ test('getSumoChargeError', () => {
+ const charged = getSumoChargeError(mockState);
+ expect(charged).toEqual(INITIAL_STATE.chargeError);
+ });
+
test('getSumoOptIn', () => {
const optIn = getSumoOptIn(mockState);
expect(optIn).toEqual(INITIAL_STATE.optIn);
| Adding redux tests | Adding redux tests
|
d1017cf5c6dcbc7c2943acc4df7e61c623c85bcf | --- packages/allspark-foundation-hub/src/Shared/Images/images.tsx
@@ -822,6 +822,10 @@ export const OnboardingImages = {
uri: 'https://i5-me.walmartimages.com/images/managerexperience/team-onboarding-1-mgr-exp-0d52f43161.png',
placeholder: 'KeQTJ?t7~Ut7fRRk-nj[R*',
},
+ teamOnboarding_no_results_found: {
+ uri: 'https://i5-me.walmartimages.com/images/sidekick/no-results-found-f2f3a12773.png',
+ placeholder: 'K$Ma*Jj@~pxofQNf%gj[s9',
+ },
};
export const ErrorScreenImages = {
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/EditSavedTeamSection.tsx
@@ -11,7 +11,9 @@ import { Body, Heading } from '@walmart/gtp-shared-components';
import { EditSavedTeamSectionProps } from './types';
import { editSavedTeamModalStyles as styles } from './styles';
import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation';
+import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context';
import { EditSavedTeamsSectionLoading } from './EditSavedTeamsSectionLoading';
+import { OnboardingImages } from '../../../Shared';
export const EditSavedTeamSection: React.FC<EditSavedTeamSectionProps> = ({
sections,
@@ -26,6 +28,9 @@ export const EditSavedTeamSection: React.FC<EditSavedTeamSectionProps> = ({
const { t } = useAllsparkTranslation(FEATURE_ID);
const showAllTeamsList = useSelector(allTeamsListEnabled);
const showSearchInput = useSelector(teamSearchInputEnabled);
+ const Image = useAllsparkImage();
+
+ const { placeholder, uri } = OnboardingImages.teamOnboarding_no_results_found;
if (loading) {
return <EditSavedTeamsSectionLoading />;
@@ -75,6 +80,11 @@ export const EditSavedTeamSection: React.FC<EditSavedTeamSectionProps> = ({
ListEmptyComponent={
<View style={styles.emptyStateContainer}>
<Body UNSAFE_style={styles.emptyStateText}>
+ <Image
+ testID='no-teams-found-image'
+ source={{ uri }}
+ placeholder={placeholder}
+ />
{t('editSavedTeamsModal.noTeamsFound')}
</Body>
</View>
| fix(bug): add no teams found image | fix(bug): add no teams found image
|
4c6115605b1d6d2942927699ad347a37b8feb1e9 | --- packages/allspark-foundation/package.json
@@ -183,6 +183,9 @@
"@walmart/redux-store": {
"optional": true
},
+ "react-native-apollo-devtools-client": {
+ "optional": true
+ },
"react-native-flipper": {
"optional": true
}
| fix: apollo devtool library was not an optional peer dependency | fix: apollo devtool library was not an optional peer dependency
|
ab69f9ae4d3a5f71a6bb44b31e5b23e1c6b30122 | --- package-lock.json
@@ -4475,9 +4475,9 @@
}
},
"@walmart/taskit-mini-app": {
- "version": "0.159.0-rc.1",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.159.0-rc.1.tgz",
- "integrity": "sha512-YlT+3JBPjfGA2lFmSh6DkSgp/lLzVTRiGzG57Z7O/8ZA2VeRsjOlYmoxPf4WNvgLYSg26XybnLr6dmmIbwn3ZA=="
+ "version": "0.164.0-rc.1",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.164.0-rc.1.tgz",
+ "integrity": "sha512-1jKPRPZ9wrrtd86g6l7PcFtVrwZRrT9fCgfv5OHOX0p7+gLakqFusZhLq6vmLnVuCx5EJUA7jsMw/hQkeF5bwA=="
},
"@walmart/time-clock-mini-app": {
"version": "0.4.27",
@@ -19929,7 +19929,7 @@
"wm-react-native-vector-icons": {
"version": "1.0.33",
"resolved": "https://npme.walmart.com/wm-react-native-vector-icons/-/wm-react-native-vector-icons-1.0.33.tgz",
- "integrity": "sha1-vIAL0WOWBBaAsIuacYHnzsxTQxk=",
+ "integrity": "sha512-pAcEq6iOVxzKM55qucKOkh2ML3kii4yGJ5YdmMEOcRAGH4fQ1lHa7BETIl+jzX5n1ZVKgWkzmAiH3vw0nkuklQ==",
"requires": {
"lodash": "^4.0.0",
"prop-types": "^15.6.2",
--- package.json
@@ -100,7 +100,7 @@
"@walmart/settings-mini-app": "1.5.0",
"@walmart/refrigeration-alarms-mini-app": "1.26.0",
"@walmart/schedule-mini-app": "0.11.0",
- "@walmart/taskit-mini-app": "0.159.0-rc.1",
+ "@walmart/taskit-mini-app": "0.164.0-rc.1",
"@walmart/shelfavailability-mini-app": "0.8.0",
"@walmart/ui-components": "v1.3.0-rc.9",
"@walmart/time-clock-mini-app": "0.4.27",
| upgrade taskit version | upgrade taskit version
|
6001a7de3889075a4c56eeada6044e99e8bce6b8 | --- ios/AllSpark/AppDelegate.m
@@ -52,14 +52,6 @@ - (BOOL)application:(UIApplication *)application
blue:1.0f
alpha:1];
- for (NSString* fontFamily in [UIFont familyNames]) {
- NSLog(@"font family %@", fontFamily);
- for (NSString* name in [UIFont fontNamesForFamilyName:fontFamily
- ]) {
- NSLog(@" font name %@", name);
- }
- }
-
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
| update from self-review | update from self-review
|
d931d09d79c171424e70e312514b1509c063fd58 | --- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx
@@ -323,7 +323,6 @@ describe('MainTabsNav', () => {
myTeam: config,
taskit: {enabled: false},
copilot: config,
-
}); // bottomNavConfig
component.update(<MainTabsNav />);
| fix: lint | fix: lint
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.