commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
e408d5d1a8ff88395579d776a55fedbd9f64f6f4 | --- __tests__/__snapshots__/AppTest.tsx.snap
@@ -2,14 +2,14 @@
exports[`RootContainer renders and fires startup event 1`] = `
<Provider
- env="teflon"
+ env="beta"
environmentOverrides={{}}
/>
`;
exports[`RootContainer renders with no linking config on undefined userid 1`] = `
<Provider
- env="teflon"
+ env="beta"
environmentOverrides={{}}
/>
`;
| Updated test | Updated test
|
efde7e84338ee83a10beba5f11d64bee2b27bf4e | --- package-lock.json
@@ -54,7 +54,7 @@
"@walmart/checkout-mini-app": "3.9.310",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.8",
+ "@walmart/copilot-mini-app": "3.92.9",
"@walmart/core-services": "6.0.16",
"@walmart/core-services-allspark": "6.0.16",
"@walmart/core-utils": "6.0.16",
@@ -11193,9 +11193,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "3.92.8",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.8.tgz",
- "integrity": "sha512-NbCNY4HtEfvdasKgPwYIj2vO3BUxuRnot6/iMAs4x4+kggmhnO7HwykD1Pk3/LKaA8eccpKInhCWiWi5wc2M7g==",
+ "version": "3.92.9",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.9.tgz",
+ "integrity": "sha512-LUkvkb+rSyWDw1xd1zfbUAKmj2c5JLQp8ZG/AkyUxwDrWgitOjWxkZadmMzCp2B7NZbGcuHbwJ3AkDyaNlJhWA==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
--- package.json
@@ -95,7 +95,7 @@
"@walmart/checkout-mini-app": "3.9.310",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.8",
+ "@walmart/copilot-mini-app": "3.92.9",
"@walmart/core-services": "6.0.16",
"@walmart/core-services-allspark": "6.0.16",
"@walmart/core-utils": "6.0.16",
@@ -360,7 +360,7 @@
"@walmart/calling-mini-app": "0.1.24",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.8",
+ "@walmart/copilot-mini-app": "3.92.9",
"@walmart/core-services": "6.0.16",
"@walmart/core-services-allspark": "6.0.16",
"@walmart/core-utils": "6.0.16",
| chore: bump copilot@3.92.9 | chore: bump copilot@3.92.9
|
89a36f0ef4d54e1d01b59a3ff55f7e19fc40ad95 | --- src/managerExperience/screens/AllTeamsScreen/AllTeamsScreen.tsx
@@ -8,6 +8,7 @@ import {
useGetTeamById,
useGetTeamsByStore,
useGetViewersPrimaryTeamId,
+ useTotalSiteOrTotalStore,
} from '../../../hooks';
import {createAllTeamsSections} from '../../utils/allTeams';
import {Team} from '../../../types';
@@ -19,11 +20,10 @@ import {
TOTAL_STORE_TEAM_ID,
TOTAL_STORE_TEAM_LABEL,
} from '@walmart/allspark-foundation-hub/HubFeature/constant';
-import {useSelector} from 'react-redux';
-import {SiteSelectors} from '@walmart/allspark-foundation/Site';
export const AllTeamsScreen = () => {
const {t} = translationClient.useTranslation();
+ const siteTranslationContext = useTotalSiteOrTotalStore();
const navigation = useNavigation<NavigationProp<TextingNavParamsMap>>();
const primaryTeamId = useGetViewersPrimaryTeamId();
const primaryTeamData = useGetTeamById(primaryTeamId as string);
@@ -31,7 +31,6 @@ export const AllTeamsScreen = () => {
const primaryTeamArea = primaryTeamDetails?.workgroup ?? '';
const {loading, data, refetch, error} = useGetTeamsByStore();
const allTeams = data?.getTeamsByStore;
- const isDCStore = useSelector(SiteSelectors.getWorkingSiteIsDC);
const isErrorFetchingTeams =
(!allTeams || !allTeams.every((team) => team !== null)) && error;
@@ -78,11 +77,7 @@ export const AllTeamsScreen = () => {
subText={t('rosterScreen.teamListItem.clockedIn', {
count: totalClockedInAssociates,
})}
- teamName={
- isDCStore
- ? t('rosterScreen.storeChatCard.title_site')
- : t('rosterScreen.storeChatCard.title')
- }
+ teamName={siteTranslationContext}
handlePress={() => {
analytics('view_team', {
message: 'View total store roster',
--- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx
@@ -14,6 +14,7 @@ import {
useGetTeamsByStore,
useGetViewersPrimaryTeamId,
useGetViewersPrimaryTeamName,
+ useTotalSiteOrTotalStore,
} from '../../../hooks';
import {useSelector} from 'react-redux';
import {teamLeadJobDescriptions} from '../../../redux/selectors';
@@ -54,7 +55,6 @@ import {filterValues} from '../../../constants';
import {Associate, Team} from '../../../types';
import {AllsparkSharedComponents} from '@walmart/allspark-foundation/Components';
import {RosterDetailScreenProps} from './types';
-import {SiteSelectors} from '@walmart/allspark-foundation/Site';
//Todo: Refactor some functionalities in this component
export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
@@ -67,6 +67,7 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
const navigation = useNavigation<StackNavigationProp<TextingNavParamsMap>>();
const teamLeads = useSelector(teamLeadJobDescriptions) as string[];
const storeId = useSelector(UserSelectors.getSiteId);
+ const siteTranslationContext = useTotalSiteOrTotalStore();
const countryCode: string | undefined = useSelector(
UserSelectors.getCountryCode,
);
@@ -93,7 +94,6 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
const currentSiteId = useSelector(UserSelectors.getSiteId);
const parentSiteID = useRef(currentSiteId);
- const isDCStore = useSelector(SiteSelectors.getWorkingSiteIsDC);
useEffect(() => {
setTeamState({
@@ -138,9 +138,7 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
const getHeaderAndSubtext = useCallback(() => {
if (teamState.teamLabel === TOTAL_STORE_TEAM_LABEL) {
return {
- header: isDCStore
- ? t('rosterScreen.storeChatCard.title_site')
- : t('rosterScreen.storeChatCard.title'),
+ header: siteTranslationContext,
subText: '',
};
} else if (isPrimaryTeam) {
@@ -161,9 +159,7 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
return currentTeam?.teamName;
} else {
if (teamState.teamIds.includes(TOTAL_STORE_TEAM_ID)) {
- return isDCStore
- ? t('rosterScreen.storeChatCard.title_site')
- : t('rosterScreen.storeChatCard.title');
+ return siteTranslationContext;
} else {
return t('rosterScreen.teamWorkgroup.myTeam');
}
| fix: useTotalSiteOrTotalStore hook use - [SMDV-6515] | fix: useTotalSiteOrTotalStore hook use - [SMDV-6515]
|
c7854fd039b26ebbe92462d2ef3d878a5db37ed8 | --- package-lock.json
@@ -84,7 +84,7 @@
"@walmart/time-clock-mini-app": "2.98.0",
"@walmart/topstock-mini-app": "1.0.6",
"@walmart/ui-components": "1.15.0",
- "@walmart/welcomeme-mini-app": "0.81.0",
+ "@walmart/welcomeme-mini-app": "0.81.2",
"@walmart/wfm-ui": "0.2.26",
"axios": "~1.2.6",
"axios-cache-adapter": "2.7.3",
@@ -6164,9 +6164,9 @@
}
},
"node_modules/@walmart/welcomeme-mini-app": {
- "version": "0.81.0",
- "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.81.0.tgz",
- "integrity": "sha512-XtjAkWjKxU44I9uc3ObGBYa34J/aRoWKJOq4Poo2m77mA7VoJ3iDnd97zi5LR+QCpKawcTwG3wwY4lzAjKH1qQ==",
+ "version": "0.81.2",
+ "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.81.2.tgz",
+ "integrity": "sha512-QbTKGhvB9BqqzPgWcWfhaauhE4iUmzCddsl5ytqQWgwby23Ef5hOQGP+56pLwbFqV51I0JheJ25M0Pc1j7j+2w==",
"hasInstallScript": true,
"dependencies": {
"apisauce": "^1.1.2"
@@ -25456,9 +25456,9 @@
}
},
"@walmart/welcomeme-mini-app": {
- "version": "0.81.0",
- "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.81.0.tgz",
- "integrity": "sha512-XtjAkWjKxU44I9uc3ObGBYa34J/aRoWKJOq4Poo2m77mA7VoJ3iDnd97zi5LR+QCpKawcTwG3wwY4lzAjKH1qQ==",
+ "version": "0.81.2",
+ "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.81.2.tgz",
+ "integrity": "sha512-QbTKGhvB9BqqzPgWcWfhaauhE4iUmzCddsl5ytqQWgwby23Ef5hOQGP+56pLwbFqV51I0JheJ25M0Pc1j7j+2w==",
"requires": {
"apisauce": "^1.1.2"
}
--- package.json
@@ -126,7 +126,7 @@
"@walmart/time-clock-mini-app": "2.98.0",
"@walmart/topstock-mini-app": "1.0.6",
"@walmart/ui-components": "1.15.0",
- "@walmart/welcomeme-mini-app": "0.81.0",
+ "@walmart/welcomeme-mini-app": "0.81.2",
"@walmart/wfm-ui": "0.2.26",
"axios": "~1.2.6",
"axios-cache-adapter": "2.7.3",
| chore: welcomeme-mini-app version bump | chore: welcomeme-mini-app version bump
|
b4b1072a36f8e4926f2c9bdea9ff2081f84fa42d | --- packages/allspark-foundation-hub/package.json
@@ -22,29 +22,27 @@
"engines": {
"node": ">=18.0.0"
},
- "dependencies": {
- "@reduxjs/toolkit": "^1.9.7",
- "@shopify/flash-list": "~1.6.4",
- "lodash": "~4.17.21",
- "namecase": "^1.1.2",
- "react-redux": "^8.1.3"
- },
"devDependencies": {
"@babel/runtime": "^7.20.0",
"@react-native-community/datetimepicker": "^7.6.2",
"@react-native-picker/picker": "2.4.8",
"@react-navigation/native": "^6.1.6",
+ "@reduxjs/toolkit": "^1.9.7",
+ "@shopify/flash-list": "~1.6.4",
"@types/lodash": "~4.14.178",
"@types/react-redux": "^7.1.9",
"@walmart/allspark-foundation": "workspace:^",
"@walmart/allspark-utils": "workspace:^",
"@walmart/gtp-shared-components": "^2.2.2",
"@walmart/me-at-walmart-athena-queries": "workspace:^",
+ "lodash": "~4.17.21",
+ "namecase": "^1.1.2",
"react": "^18.2.0",
"react-native": "~0.73.7",
"react-native-device-info": "~10.13.1",
"react-native-drop-shadow": "^1.0.0",
- "react-native-safe-area-context": "~4.7.4"
+ "react-native-safe-area-context": "~4.7.4",
+ "react-redux": "^8.1.3"
},
"peerDependencies": {
"@react-navigation/native": "6.x",
| fix(ui): update the package for foundation hub to move the dependency (#187) | fix(ui): update the package for foundation hub to move the dependency (#187)
|
949bc5925fab0e6ca093bff3e1c41a3e720bf919 | --- packages/celebration-mini-app-graphql/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.28.3](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.28.2...@walmart/celebration-mini-app-graphql@1.28.3) (2025-12-19)
+
+**Note:** Version bump only for package @walmart/celebration-mini-app-graphql
+
## [1.28.2](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.28.1...@walmart/celebration-mini-app-graphql@1.28.2) (2025-12-19)
**Note:** Version bump only for package @walmart/celebration-mini-app-graphql
--- packages/celebration-mini-app-graphql/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/celebration-mini-app-graphql",
- "version": "1.28.2",
+ "version": "1.28.3",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- 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.39.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.38.1...@walmart/celebration-mini-app@1.39.0) (2025-12-19)
+
+### Features
+
+- **ui:** update lint fixes ([925e516](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/925e516aba16cb708196335934216c837706daf5))
+
## [1.38.1](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.38.0...@walmart/celebration-mini-app@1.38.1) (2025-12-19)
**Note:** Version bump only for package @walmart/celebration-mini-app
--- packages/celebration-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/celebration-mini-app",
- "version": "1.38.1",
+ "version": "1.39.0",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
| chore(version): updating package version | chore(version): updating package version
- @walmart/celebration-mini-app@1.39.0
- @walmart/celebration-mini-app-graphql@1.28.3
|
4f494598345fc75463be992483592c72466a0da1 | --- .github/pull_request_template.md
@@ -1,37 +1,39 @@
## Links to JIRA tickets:
+## Please describe the problem this PR is addressing:
-## Types of changes
+
+## Please describe your solution for this problem:
+
+## Core App
+Fill in the below sections if this PR has changes to the core app.
+
+#### Types of changes
What types of changes does your code introduce to AskSam?
_Put an `x` in the boxes that apply_
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
+- [ ] Build scripts (Changes to looper files or other scripts supporting the build)
- [ ] Documentation Update (if none of the other choices apply)
-## Checklist
+#### Checklist
- [ ] Have you written unit tests for this?
- [ ] Does it cover analytics events? If yes, please list them.
- [ ] Does it cover Splunk Logger events? If yes, please list them.
- [ ] Are there any changes to shared Redux?
-#### For Mini-Apps
+## For Mini-Apps
If this PR is integrating a new mini-app ***or*** updating an existing one (via version bump), fill out the following:
- [ ] Are all peer dependencies for your mini app included in allspark-core package.json?
- [ ] Please provide a link below to the Hygieia dashboard for the mini app node module.
+- [ ] Have you updated the [Firebase events list](https://confluence.walmart.com/display/ALLSPARK/All+Spark+Custom+Firebase+Events+by+Feature+App) with your mini-app's events?
-
-### Please describe the problem this PR is addressing:
-
-
-### Please describe your solution for this problem:
-
-
-### Risk level:
+#### Risk level:
To help with review, estimate the risk level of the changes in this PR?
- [ ] Low
- [ ] Medium
| updating pr template (#245) | updating pr template (#245)
|
4054b5f8b8bd6de4638c7e54cf023e7d35a35cf1 | --- packages/allspark-foundation/src/Components/DynamicComponents.md
@@ -117,42 +117,6 @@ A `Template` renders the component directly. It requires props be provided. This
The example is simple, but imagine the component being a smart component that handles its own data fetching, navigation, etc. The consuming feature or container would only need to know the component name and props.
-### Typing a DynamicComponent
-
-Due to their shared nature a `DynamicComponent` type should be defined on the global `Allspark` namespace. This allows for other features to more easily discover your components name and typing.
-
-Refer to the [Allspark Types Doc](../Core/docs/GlobalTypes.md) for more information on the global Allspark namespace.
-
-Add your component name and props type under `Allspark.DynamicComponents.Config`. This would be in your `global.d.ts` file:
-
-```ts
-declare global {
- namespace Allspark {
- namespace DynamicComponents {
- interface Config {
- 'Me@Walmart.Messages': {
- value: string;
- };
- }
- }
- }
-}
-```
-
-If your component has a defined set of record IDs then that can be typed too under the IDs interface:
-
-```ts
-declare global {
- namespace Allspark {
- namespace DynamicComponents {
- interface Records {
- 'Me@Walmart.Messages': 'message-1' | 'message-2';
- }
- }
- }
-}
-```
-
### Examples
#### Record Example
| chore: remove deprecated docs | chore: remove deprecated docs |
d549ae9d68bc86f643b9e08589cffd695c6f29eb | --- package-lock.json
@@ -63,7 +63,7 @@
"@walmart/emergency-mini-app": "1.27.0",
"@walmart/exception-mini-app": "1.7.9",
"@walmart/facilities-management-miniapp": "0.9.1",
- "@walmart/feedback-all-spark-miniapp": "0.9.59",
+ "@walmart/feedback-all-spark-miniapp": "0.9.60",
"@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "6.0.12",
"@walmart/gta-react-native-calendars": "0.6.0",
@@ -11464,9 +11464,9 @@
}
},
"node_modules/@walmart/feedback-all-spark-miniapp": {
- "version": "0.9.59",
- "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.59.tgz",
- "integrity": "sha512-Oyo3yPh0iPr8lm2z2/RbSMIPmRce1F6400gg1VGO2qauIl0VsoZjvEm2Gnj2vLF2OAb9REabcEIUSVFa9siCEw==",
+ "version": "0.9.60",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.60.tgz",
+ "integrity": "sha512-/e+JIX7l8LdQ9Gqbtyv9jYR1P/rtr93Vbp3qy15di6+mkJ81qoKoQ/CfBhgAsPTcYXlyMhk+ChZNarP2hgGVeQ==",
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.19.0",
"@react-native-community/datetimepicker": "^6.1.3",
--- package.json
@@ -104,7 +104,7 @@
"@walmart/emergency-mini-app": "1.27.0",
"@walmart/exception-mini-app": "1.7.9",
"@walmart/facilities-management-miniapp": "0.9.1",
- "@walmart/feedback-all-spark-miniapp": "0.9.59",
+ "@walmart/feedback-all-spark-miniapp": "0.9.60",
"@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "6.0.12",
"@walmart/gta-react-native-calendars": "0.6.0",
@@ -369,7 +369,7 @@
"@walmart/emergency-mini-app": "1.27.0",
"@walmart/exception-mini-app": "1.7.9",
"@walmart/facilities-management-miniapp": "0.9.1",
- "@walmart/feedback-all-spark-miniapp": "0.9.59",
+ "@walmart/feedback-all-spark-miniapp": "0.9.60",
"@walmart/financial-wellbeing-feature-app": "1.23.2",
"@walmart/functional-components": "6.0.12",
"@walmart/gta-react-native-calendars": "0.6.0",
| GDVCVR-16386 Init feedback Drop 20 | GDVCVR-16386 Init feedback Drop 20
|
9f4a2cbc5a22c4657bc28371278303b6d94daf0f | --- package-lock.json
@@ -3062,9 +3062,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.29.3",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.3.tgz",
- "integrity": "sha512-o7bb0TkVF926zc062zoJVD57eZmPHYBiVBUFxCk+IbCFrErvkajSHX4B7vYNylnWt6EWM9wZxki8R6JS7s5+1g==",
+ "version": "0.29.4",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.4.tgz",
+ "integrity": "sha512-qmVnpr2i4FoQWXSDhWO5p7vwSjPTDN+rYAIMJq007X/Of61wLyxbDk4UW42kcBWvH+fMhYOBHYo0rOZkwxWRDg==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
--- package.json
@@ -66,7 +66,7 @@
"@walmart/allspark-health-survey-mini-app": "0.0.38",
"@walmart/allspark-home-mini-app": "0.4.0",
"@walmart/allspark-me-mini-app": "0.1.0",
- "@walmart/ask-sam-mini-app": "0.29.3",
+ "@walmart/ask-sam-mini-app": "0.29.4",
"@walmart/config-components": "1.0.21",
"@walmart/counts-component-miniapp": "0.0.9",
"@walmart/exception-mini-app": "0.8.0",
| Version bump | Version bump
|
8d16ac22a466037b2ce0c330524c50a42307850c | --- packages/allspark-authentication/src/Authentication.ts
@@ -341,6 +341,8 @@ export class AllsparkAuthentication {
this._runInfoEvent('SIGN_OUT_SUCCESS');
}
} catch (e) {
+ await this._cachedResult.remove();
+ this._cachedConfig.remove();
this._runErrorEvent('SIGN_OUT_ERROR', e as AppAuthError);
throw e;
}
| fix: adding additional removes inside catch | fix: adding additional removes inside catch
|
e93ae4aaaa87c3c45506245737caca41f505c0ae | --- src/screens/RosterDetailScreen/StoreRosterDetailScreen.tsx
@@ -35,7 +35,7 @@ import {UserSelectors} from '@walmart/allspark-foundation/User';
import {
generateTeamRoster,
handleViewAssociateSchedule,
- filterAssociatesByStatusAndSearchInputAndShift,
+ filterAssociatesByStatusAndSearchInput,
} from '../../utils/rosterDetail';
import {FilterValue, FilterChipProps} from '../../components/FilterChip/types';
import {useNavigation} from '@react-navigation/native';
@@ -416,14 +416,19 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => {
};
useEffect(() => {
- const associatesFiltered = filterAssociatesByStatusAndSearchInputAndShift(
+ const associatesFiltered = filterAssociatesByStatusAndSearchInput(
teamRoster,
selectedFilter,
searchInput,
- undefined,
);
setFilteredAssociates(sortedAssociateList(associatesFiltered, teamLeads));
- }, [searchInput, selectedFilter, teamState, rosterData?.getDailyRoster, dataLoading]);
+ }, [
+ searchInput,
+ selectedFilter,
+ teamState,
+ rosterData?.getDailyRoster,
+ dataLoading,
+ ]);
if (!showRoster) {
return (
--- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx
@@ -440,7 +440,7 @@ export const SupplyChainRosterDetailScreen = ({
shiftSelected,
teamState,
rosterData?.getDailyRoster,
- dataLoading
+ dataLoading,
]);
useEffect(() => {
--- src/utils/rosterDetail.tsx
@@ -101,6 +101,40 @@ export const handleViewAssociateSchedule = (
countryCode,
);
+export const filterAssociatesByStatusAndSearchInput = (
+ associates: Associate[],
+ selectedFilter: FilterValue,
+ searchInput: string,
+) => {
+ const filteredAssociatesByStatusChip = associates.filter((associate) => {
+ if (selectedFilter === FilterValue.clockedIn) {
+ return associateIsClockedIn(associate);
+ }
+ if (selectedFilter === FilterValue.tardy) {
+ return associateIsTardy(associate);
+ }
+ if (selectedFilter === FilterValue.absent) {
+ return associateIsAbsent(associate);
+ }
+ return associate;
+ });
+
+ const filteredAssociatesBySearchInput = filteredAssociatesByStatusChip.filter(
+ (associate) => {
+ return (
+ associateDisplayName(associate)
+ .toLowerCase()
+ .includes(searchInput.toLowerCase()) ||
+ associate?.jobCategoryCodeDesc
+ ?.toLowerCase()
+ .includes(searchInput.toLowerCase())
+ );
+ },
+ );
+
+ return filteredAssociatesBySearchInput;
+};
+
export const filterAssociatesByStatusAndSearchInputAndShift = (
associates: Associate[],
selectedFilter: FilterValue,
| seperate filter function | seperate filter function
|
9456a3b3c2252c3a84318ef7070d207dc480c735 | --- package-lock.json
@@ -74,7 +74,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.14.4",
+ "@walmart/receipt-check-miniapp": "1.14.5",
"@walmart/redux-store": "3.3.1",
"@walmart/returns-mini-app": "1.5.0",
"@walmart/schedule-mini-app": "0.37.0",
@@ -5818,9 +5818,9 @@
}
},
"node_modules/@walmart/receipt-check-miniapp": {
- "version": "1.14.4",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.4.tgz",
- "integrity": "sha512-/AwktQ4mOm5uD9c7ZZg+ku29K82AcKbxJOAP7wmyBLwsWT7BaKoWFLKI/MYc8NVDcaLqB0cWG1b05XYN8ct1ng==",
+ "version": "1.14.5",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.5.tgz",
+ "integrity": "sha512-3mD0fm5+2XeLLLV2uI8Wbeqz0akk0ObHquaVvhihsxK0eknJfAPWdKi4MSUkuGoIVAFs9C5jCHjuGgKC6CT82Q==",
"dependencies": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
@@ -25336,9 +25336,9 @@
"version": "2.5.1"
},
"@walmart/receipt-check-miniapp": {
- "version": "1.14.4",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.4.tgz",
- "integrity": "sha512-/AwktQ4mOm5uD9c7ZZg+ku29K82AcKbxJOAP7wmyBLwsWT7BaKoWFLKI/MYc8NVDcaLqB0cWG1b05XYN8ct1ng==",
+ "version": "1.14.5",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.5.tgz",
+ "integrity": "sha512-3mD0fm5+2XeLLLV2uI8Wbeqz0akk0ObHquaVvhihsxK0eknJfAPWdKi4MSUkuGoIVAFs9C5jCHjuGgKC6CT82Q==",
"requires": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
--- package.json
@@ -116,7 +116,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.14.4",
+ "@walmart/receipt-check-miniapp": "1.14.5",
"@walmart/redux-store": "3.3.1",
"@walmart/returns-mini-app": "1.5.0",
"@walmart/schedule-mini-app": "0.37.0",
| version bump | version bump
|
b11bfaca4d3d4405ed75388818454b3741720bff | --- targets/US/package.json
@@ -123,12 +123,12 @@
"@walmart/metrics-mini-app": "1.27.3",
"@walmart/mod-flex-mini-app": "1.23.2",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/money-auth-shared-components": "2.3.2",
+ "@walmart/money-auth-shared-components": "2.3.4",
"@walmart/myteam-mini-app": "1.12.0",
"@walmart/native-rfid-scanner": "3.12.1",
"@walmart/onewalmart-miniapp": "1.0.24",
- "@walmart/pay-stub-miniapp": "0.20.8",
- "@walmart/payrollsolution_miniapp": "0.145.23",
+ "@walmart/pay-stub-miniapp": "0.20.9",
+ "@walmart/payrollsolution_miniapp": "0.145.24",
"@walmart/price-changes-mini-app": "1.10.25",
"@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",
--- yarn.lock
@@ -7360,12 +7360,12 @@ __metadata:
"@walmart/metrics-mini-app": "npm:1.27.3"
"@walmart/mod-flex-mini-app": "npm:1.23.2"
"@walmart/moment-walmart": "npm:1.0.4"
- "@walmart/money-auth-shared-components": "npm:2.3.2"
+ "@walmart/money-auth-shared-components": "npm:2.3.4"
"@walmart/myteam-mini-app": "npm:1.12.0"
"@walmart/native-rfid-scanner": "npm:3.12.1"
"@walmart/onewalmart-miniapp": "npm:1.0.24"
- "@walmart/pay-stub-miniapp": "npm:0.20.8"
- "@walmart/payrollsolution_miniapp": "npm:0.145.23"
+ "@walmart/pay-stub-miniapp": "npm:0.20.9"
+ "@walmart/payrollsolution_miniapp": "npm:0.145.24"
"@walmart/price-changes-mini-app": "npm:1.10.25"
"@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"
@@ -7689,9 +7689,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/money-auth-shared-components@npm:2.3.2":
- version: 2.3.2
- resolution: "@walmart/money-auth-shared-components@npm:2.3.2"
+"@walmart/money-auth-shared-components@npm:2.3.4":
+ version: 2.3.4
+ resolution: "@walmart/money-auth-shared-components@npm:2.3.4"
peerDependencies:
"@react-navigation/drawer": ^6.6.4
"@react-navigation/native": ^6.0.0
@@ -7699,7 +7699,7 @@ __metadata:
"@walmart/allspark-foundation": "*"
"@walmart/core-services": ~2.0.11
"@walmart/gtp-shared-components": ^2.0.6
- checksum: 10c0/567f34de8d104f8fcd7d0f730199bc2a22232c06874cb83c4075606a38c47cfc421840e90dcea9bec461bf4aad115ba6118db1d459769194b07eacb86d4f0f35
+ checksum: 10c0/2665ef575f34b0807d253b589ce41c6856b3602245ff8b4be66cd0ea02609a662e549fb939781568baff2933b6373171dd784c6f06cfff3bd01bc3164646c184
languageName: node
linkType: hard
@@ -7781,27 +7781,27 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/pay-stub-miniapp@npm:0.20.8":
- version: 0.20.8
- resolution: "@walmart/pay-stub-miniapp@npm:0.20.8"
+"@walmart/pay-stub-miniapp@npm:0.20.9":
+ version: 0.20.9
+ resolution: "@walmart/pay-stub-miniapp@npm:0.20.9"
dependencies:
expo: "npm:^50.0.0"
expo-sharing: "npm:~11.7.0"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/5ca2dc8e94e5af2663b2233811e1caa1cbce8302e478a382f056eb9929088cf1a0e72638e8a602e9dc9163d95c19043f7b07fdbef61a57fe90ce48fb29f71be2
+ checksum: 10c0/56777cd8db027ad310c5ee15d2936c396e0f8df5aab7acbd23d0a3ff71e5939d1166cd8b890e7ee700bb17df71c15b6cd2908fcc93f3319bfb202e22bb98582b
languageName: node
linkType: hard
-"@walmart/payrollsolution_miniapp@npm:0.145.23":
- version: 0.145.23
- resolution: "@walmart/payrollsolution_miniapp@npm:0.145.23"
+"@walmart/payrollsolution_miniapp@npm:0.145.24":
+ version: 0.145.24
+ resolution: "@walmart/payrollsolution_miniapp@npm:0.145.24"
dependencies:
crypto-js: "npm:^3.3.0"
expo: "npm:^50.0.0"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/048b1d2d2aa401e389ac9e5080a8b4bda184df40331bb053c2d0fa3d9ef1e07581b2e75c0b5e3e560ad8c63c4d59fe39313afb1600f25a7be4775f097cfa952a
+ checksum: 10c0/0a98568af4b469ce02f5e9fab2fb1faadee395a46b5cf6a451c95a663d7bead1e1666388eccd052887bfbe000bbd90db25928b454253459d7b2727f5f7f97282
languageName: node
linkType: hard
| bump version | bump version
|
e1db17a7411a226ce5a57a1464d3529a906a5eb8 | --- src/managerExperience/components/AssociateList/styles.ts
@@ -84,13 +84,13 @@ export const associateListItemStyles = (hasBorder: boolean) =>
fontFamily: 'Bogle Regular',
fontSize: 14,
lineHeight: 20,
- marginBottom: 4,
},
associateSchedule: {
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
gap: 6,
+ marginTop: 4,
},
tagAndButtonContainer: {
display: 'flex',
--- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx
@@ -259,7 +259,7 @@ export const RosterDetailScreen = () => {
searchInput,
);
setFilteredAssociates(sortedAssociateList(associatesFiltered, teamLeads));
- }, [searchInput, selectedFilter, teamState.teamIds[0]]);
+ }, [searchInput, selectedFilter, teamState]);
return (
<>
| fix: fixed associate list styling | fix: fixed associate list styling
|
59d39b8fe478dce819d54bf5699c8f7fded6ca86 | --- targets/US/ios/Podfile.lock
@@ -2955,9 +2955,9 @@ SPEC CHECKSUMS:
walmart-react-native-sumo-sdk: 49d6a1873b29b2279433bd4346755206ac60e1fd
WebexSDK: 8a46648ec5992f1a10de5375e91df35750275445
wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3
- Yoga: c716aea2ee01df6258550c7505fa61b248145ced
+ Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee
zxing-cpp: c597ce11887c1f17576a71b449fae721900bc46b
-PODFILE CHECKSUM: 96fcbf887e54fdbf547dc0509e6a6ad17d8b9b74
+PODFILE CHECKSUM: e45caceff59820fc357600d6b2277634c8242734
-COCOAPODS: 1.14.3
+COCOAPODS: 1.15.2
| Run pod install | Run pod install
|
cff934076b3f3df665d08bca9fd2d1bbc28e41e6 | --- .looper.yml
@@ -15,4 +15,5 @@ flows:
pr:
- npm install
- npm run lint
- - npm run coverage
+ # Temporarily disable coverage check until tests are written
+ #- npm run coverage
--- .looper.yml
@@ -15,4 +15,5 @@ flows:
pr:
- npm install
- npm run lint
- - npm run coverage
+ # Temporarily disable coverage check until tests are written
+ #- npm run coverage
| disabling coverage check | disabling coverage check
|
1df39c31e517af74e89759569b5b93f640d9deaa | --- src/components/hub/HubFactory.tsx
@@ -84,10 +84,30 @@ export const HubFactory: React.FC<HubFactoryProps> = ({
// Import HubConfig only when widget management is enabled
const {HubConfig} = require('../../config/HubConfig');
+ const enhancedConfig = {
+ ...HubConfig,
+ accessibility: {
+ accessible: false,
+ importantForAccessibility: 'no-hide-descendants',
+ widgetProps: {
+ accessible: false,
+ importantForAccessibility: 'yes',
+ accessibilityRole: 'button',
+ 'data-widget': 'true',
+ },
+ containerProps: {
+ accessible: false,
+ importantForAccessibility: 'no',
+ },
+ },
+ };
+
return (
<EnhancedManagedLayoutHub
- hubConfig={HubConfig}
+ hubConfig={enhancedConfig}
widgetManagementConfig={widgetManagementConfig}
+ accessible={false}
+ importantForAccessibility='no'
/>
);
};
--- src/components/modals/smartModal/ModalContent.tsx
@@ -278,6 +278,7 @@ export const ModalContent: React.FC<ExtendedModalContentProps> = ({
return (
<ModalWrapper
+ //@ts-ignore
ref={headerRef}
testID='associate-modal-container'
header={modalHeaderTitle}
--- src/screens/HomeScreen.tsx
@@ -92,7 +92,7 @@ export const HomeScreen = AssociateExpHubFeature.createScreen(
return (
<>
- <View ref={containerRef} style={styles.container}>
+ <View accessible={false} ref={containerRef} style={styles.container}>
<LocalHeader>
<MyWalmartTeamSwitcher
onTeamChange={handleTeamChange}
@@ -103,7 +103,7 @@ export const HomeScreen = AssociateExpHubFeature.createScreen(
<View
style={styles.hubContainer}
- accessible
+ accessible={false}
accessibilityLabel='Hub content area with widgets'
>
<HubFactory useWidgetManagement={false} isSiteDC={isSiteDC} />
| feat(ui): added accessibility config to hubconfig object | feat(ui): added accessibility config to hubconfig object
|
ce1a1ad6f1fe96870a3516db0916172d7b0155b0 | --- packages/allspark-foundation-hub/__tests__/store/redux/reducer.test.ts
@@ -129,6 +129,7 @@ describe('storeManagerExperienceSlice', () => {
expect(newState.userOnboardingComplete).toEqual(true);
expect(newState.userOnboardingInProgress).toEqual(false);
expect(newState.userOnboardingError).toEqual(null);
+ expect(newState.userIsAlreadyOnboarded).toEqual(true);
});
it('should complete team selection', () => {
--- packages/allspark-foundation-hub/src/Store/Modals/OnboardingBottomSheet.tsx
@@ -11,6 +11,7 @@ import {
} from '../../Shared';
import { TelemetryModule } from '@walmart/allspark-foundation/Telemetry';
import { LoggerModule } from '@walmart/allspark-foundation/Logger';
+import { NavigationModule } from '@walmart/allspark-foundation/Navigation';
import { useUserPersonaType } from '../../Shared/Hooks/useUserPersonaType';
import { useSelector } from 'react-redux';
import { hubOnboardingSuccessBottomSheetEnabled } from '../Redux';
@@ -57,6 +58,9 @@ export const OnboardingBottomSheet = ({
message: 'Onboarding banner triggered',
});
closeModal();
+
+ NavigationModule.manager.goBack();
+
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [personaType]);
--- packages/allspark-foundation-hub/src/Store/Modules/Onboarding/TeamOnboarding/OnboardingContext.tsx
@@ -13,7 +13,7 @@ import {
} from '@walmart/allspark-foundation';
import { UserSelectors } from '@walmart/allspark-foundation/User';
import { useDispatch, useSelector } from 'react-redux';
-import { StoreManagerExperienceCreators } from '../../../Redux';
+import { StoreManagerExperienceCreators, StoreManagerExperienceSelectors } from '../../../Redux';
import { useUserPersonaType, EMP_TYPE_SALARIED, LOGGER_IDS, TELEMETRY_IDS } from '../../../../Shared';
// Update the context type to include getMyTeamData function
@@ -50,6 +50,10 @@ export const OnboardingProvider = ({ children }: any) => {
const onboardingTelemetryRef = useRef(onboardingTelemetry);
const dispatch = useDispatch();
+ const userOnboardingComplete = useSelector(
+ StoreManagerExperienceSelectors.getUserOnboardingComplete
+ );
+
const getMyTeamData = useCallback(async () => {
try {
const myTeams =
@@ -72,17 +76,23 @@ export const OnboardingProvider = ({ children }: any) => {
]);
useEffect(() => {
+ // Early return optimization: Skip eligibility checks and team data fetching when onboarding is already complete.
+ // This prevents unnecessary API calls and redundant state updates.
+ if (userOnboardingComplete) {
+ hideOnboardingFlow();
+ return;
+ }
+
if (eligibleForOnboarding) {
getMyTeamData()
.then((myTeamData) => {
if (myTeamData !== undefined) {
- const userOnboarded = myTeamData && myTeamData.length >= 0;
- if (!userOnboarded || userOnboarded === null) {
- loggerRef.current.info('Starting onboarding process...');
+ const userOnboarded = Array.isArray(myTeamData) && myTeamData.length > 0;
+
+ if (!userOnboarded) {
dispatch(StoreManagerExperienceCreators.startUserOnboarding());
showOnboardingFlow();
} else {
- loggerRef.current.info('User is already onboarded.');
dispatch(
StoreManagerExperienceCreators.setUserIsAlreadyOnboarded(
userOnboarded
@@ -97,6 +107,7 @@ export const OnboardingProvider = ({ children }: any) => {
});
}
}, [
+ userOnboardingComplete,
data?.associatePreferences?.meAtWalmartPreferences
?.managerExperiencePreferences?.myTeams,
dispatch,
@@ -106,10 +117,20 @@ export const OnboardingProvider = ({ children }: any) => {
getMyTeamData,
]);
+ useEffect(() => {
+ // Only hide if onboarding is complete AND currently showing
+ // This prevents double execution when the main eligibility check also calls hideOnboardingFlow
+ if (userOnboardingComplete && showOnboarding) {
+ hideOnboardingFlow();
+ }
+ }, [userOnboardingComplete, hideOnboardingFlow, showOnboarding]);
+
+ const derivedShowOnboarding = showOnboarding && !userOnboardingComplete;
+
return (
<OnboardingContext.Provider
value={{
- showOnboarding,
+ showOnboarding: derivedShowOnboarding,
showOnboardingFlow,
hideOnboardingFlow,
getMyTeamData, // Expose getMyTeamData in the context
--- packages/allspark-foundation-hub/src/Store/Modules/TeamSelection/Component/TeamSelectionList.tsx
@@ -27,7 +27,6 @@ import {
import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment';
import { RenderTeamSelectionListItems } from './RenderTeamSelectionListItems';
import { useUserPersonaType } from '../../../../Shared/Hooks/useUserPersonaType';
-import { ManagerExperienceSelectors } from '../../../../Container/Redux';
export const TeamSelectionList = ({
userType,
@@ -64,8 +63,6 @@ export const TeamSelectionList = ({
const showTeamSelectionHeader = useSelector(teamSelectionHeaderEnabled);
- const hubScreeName = useSelector(ManagerExperienceSelectors.getHubScreenName);
-
const appVersion = useSelector(DeviceSelectors.getAppVersion);
const showMyAreaText = useSelector(myAreaTextEnabled);
@@ -101,13 +98,9 @@ export const TeamSelectionList = ({
);
} else {
dispatch(StoreManagerExperienceCreators.completeUserOnboarding());
- if (hubScreeName) {
- NavigationModule.manager.navigate(hubScreeName, {
- teamOnboardingComplete: true,
- });
- } else {
- NavigationModule.manager.goBack();
- }
+
+ // Show success modal immediately (while component is still mounted)
+ // Navigation will happen when user clicks "Got It" (handled in OnboardingBottomSheet)
NavigationModule.manager.openModal(
'managerExperience.onboardingBottomSheet' as any
);
@@ -135,13 +128,8 @@ export const TeamSelectionList = ({
dispatch(
StoreManagerExperienceCreators.userOnboardingFailed(err.message)
);
- if (hubScreeName) {
- NavigationModule.manager.navigate(hubScreeName, {
- teamOnboardingError: true,
- });
- } else {
- NavigationModule.manager.goBack();
- }
+ // Pop the TeamSelection screen; underlying HubDashboard is already on the Work tab
+ NavigationModule.manager.goBack();
NavigationModule.manager.openModal(
'managerExperience.errorBottomSheet' as any
);
--- packages/allspark-foundation-hub/src/Store/Redux/reducer.ts
@@ -62,6 +62,7 @@ export const storeManagerExperienceSlice = createSlice({
state.userOnboardingComplete = true;
state.userOnboardingInProgress = false;
state.userOnboardingError = null;
+ state.userIsAlreadyOnboarded = true;
},
completeTeamSelection: (state, action: PayloadAction<string>) => {
state.userTeamSelectionComplete = true;
| fix(onboarding): add user already onboarded to context SMDV-8929 (#534) | fix(onboarding): add user already onboarded to context SMDV-8929 (#534)
* fix(onboarding): add user already onboarded to context SMDV-8929
* fix(onboarding): remove fix specific comments SMDV-8929
* fix(onboarding): show Got It bottom sheet
* fix(onboarding): remove excessive logging
* fix(onboarding): remove excessive logging
* fix(onboarding): remove excessive logging
* fix(onboarding): remove excessive logging
* fix(onboarding): revert change to HubDashboard
* fix(onboarding): remove InteractionManager code
* fix(onboarding): remove InteractionManager code
---------
Co-authored-by: Prasan Suresh Dhareshwar - p0d02sx <Prasansuresh.Dharesh@walmart.com> |
5fd5d373df5f1e94d8cbb61f787883d928a39795 | --- src/channels/components/ChannelRow.tsx
@@ -237,7 +237,7 @@ export const ChannelRow = (props: ChannelRowProps) => {
<View style={styles.itemLeading}>
<Avatar
style={styles.avatar}
- associate={channelAvatarAssociate ?? {} as Associate}
+ associate={channelAvatarAssociate}
loading={loading ?? false}
showPresence={
!group && recipients.length === 1 && firstRecipientClockedIn
--- src/containers/Message/index.tsx
@@ -188,7 +188,7 @@ export const Message = ({
isClockedIn={false}
handleNameFetch={setAvatarName}
loading={isLoading}
- associate={sentFromAssociate ?? {} as Associate}
+ associate={sentFromAssociate}
/>
)}
</View>
| chore: remove default value | chore: remove default value
|
698c70b7422877e3c6005b492d4ec1a0bd4c2df9 | --- package-lock.json
@@ -54,7 +54,7 @@
"@walmart/checkout-mini-app": "3.9.310",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.4",
+ "@walmart/copilot-mini-app": "3.92.5",
"@walmart/core-services": "6.0.12",
"@walmart/core-services-allspark": "6.0.12",
"@walmart/core-utils": "6.0.12",
@@ -11193,9 +11193,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "3.92.4",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.4.tgz",
- "integrity": "sha512-acGEdHP4L2EwGBN178a2CwD0az9p57w5XVeIYeIx5eaha5rYB615EDQnelYyDJr/zvneHWNlBp2Xste53QaMmw==",
+ "version": "3.92.5",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.5.tgz",
+ "integrity": "sha512-P1JUwSWUS/SXE3oElznhuk80kXsE8Igm8qEOGYvpSfqHBfxbylrayTBKo//ljNWagUmMaznkjKGGO02n9OG5Nw==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
--- package.json
@@ -95,7 +95,7 @@
"@walmart/checkout-mini-app": "3.9.310",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.4",
+ "@walmart/copilot-mini-app": "3.92.5",
"@walmart/core-services": "6.0.12",
"@walmart/core-services-allspark": "6.0.12",
"@walmart/core-utils": "6.0.12",
@@ -360,7 +360,7 @@
"@walmart/calling-mini-app": "0.1.24",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.4",
+ "@walmart/copilot-mini-app": "3.92.5",
"@walmart/core-services": "6.0.12",
"@walmart/core-services-allspark": "6.0.12",
"@walmart/core-utils": "6.0.12",
| chore: bump copilot@3.92.5 | chore: bump copilot@3.92.5
|
826d8d28517f1fe34ae60478cb81afb25fb6b86d | --- packages/components-library/components/AssociateListItem/index.tsx
@@ -1,2 +1,2 @@
export * from './AssociateListItem';
-export * from './types';
\ No newline at end of file
+export * from './types';
| fix(lint): allspark-5979 lint fix | fix(lint): allspark-5979 lint fix
|
49e7cd4890a681c0f97e1c2e6993ecb2334850e2 | --- packages/expo-config-plugins/src/withReactNativeScanner.ts
@@ -0,0 +1,13 @@
+import { ConfigPlugin } from '@expo/config-plugins';
+import withGradleExtVars from './withGradleExtVars';
+
+const withReactNativeScanner: ConfigPlugin = (config) => {
+ return withGradleExtVars(config, {
+ tag: 'react-native-scanner-3.0',
+ ext: {
+ jacoco_version: '0.8.12',
+ },
+ });
+};
+
+export default withReactNativeScanner;
| chore(sync): ALLSPARK-5806 sync plugins from drop/30 (#200) | chore(sync): ALLSPARK-5806 sync plugins from drop/30 (#200)
|
eeeee5c0b4666b8d49be46bd2d0844a1db92da1c | --- core/src/navigation/USHallway/AssociateHallwayNav/Tabs/MeStackNav.tsx
@@ -10,7 +10,6 @@ import {withSensitiveView} from '../../withSensitiveView';
import {MeStackMap} from '../types';
import {withScreenGuards} from '../../../../core/CreateGuardedScreens';
import {MINI_APPS} from '../../../../oneClick/MiniApps';
-import {View} from 'react-native';
import {HomeHeaderRightContainer} from '@walmart/me-at-walmart-common';
// Add guards to me mini app
@@ -19,13 +18,8 @@ const ProtectedMeMiniApp = withScreenGuards(withSensitiveView(MeMiniApp), {
clockCheckEnabled: false,
});
-export const renderHeaderRight = () => {
- return (
- <View>
- <HomeHeaderRightContainer.Component id='inbox' />
- </View>
- );
-};
+export const renderHeaderRight = () => () =>
+ <HomeHeaderRightContainer.Component id='inbox' />;
// --- Me Stack Navigator --- //
// TODO: Determine why this stack is needed? Can we just use the MeMiniApp directly in the tab navigator?
| Update inbox icon on the Profile screen | Update inbox icon on the Profile screen
|
5e1f8de0f42717fdbf53e0418440bafa1594c791 | --- src/channels/components/ChannelRow.tsx
@@ -112,6 +112,9 @@ export const ChannelRow = (props: ChannelRowProps) => {
screen: MESSAGES_SCREEN_NAME,
params: {
channelPath,
+ details: {
+ channelName: channelName,
+ },
},
},
});
--- src/screens/MessagesScreen.tsx
@@ -160,7 +160,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
});
}
} else {
- if (channelData !== undefined) {
+ if (channelData !== undefined || !details.channelName) {
await channelDocument.set(
{
group: details.group,
--- src/channels/components/ChannelRow.tsx
@@ -112,6 +112,9 @@ export const ChannelRow = (props: ChannelRowProps) => {
screen: MESSAGES_SCREEN_NAME,
params: {
channelPath,
+ details: {
+ channelName: channelName,
+ },
},
},
});
--- src/screens/MessagesScreen.tsx
@@ -160,7 +160,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
});
}
} else {
- if (channelData !== undefined) {
+ if (channelData !== undefined || !details.channelName) {
await channelDocument.set(
{
group: details.group,
| update channel data for mega nav screen channel navigation | update channel data for mega nav screen channel navigation
|
9b901eb8af12ecb0fa79d550d151c5e922797002 | --- packages/allspark-foundation/src/Container/ActiveContainerManager.tsx
@@ -143,7 +143,7 @@ export class ActiveContainerManager {
* Can be accessed using `ActiveAllsparkContainer.features.Screens`, but this is provided for simplicity.
*/
public get Screens() {
- return this._activeContainer?.Screens;
+ return this.features.Screens;
}
}
| chore: revert active container manager screens reference to ensure no undefined | chore: revert active container manager screens reference to ensure no undefined
|
3a60d72b7b15419ce92f67757cd0b7335186e0a6 | --- .looper.multibranch.yml
@@ -1,5 +1,10 @@
inherit: job:///allspark/allspark-core/allspark-template:allspark-template.yml
+tools:
+ jdk:
+ flavor: azul
+ version: 17
+
flows:
prepare-npm-project:
- (name Yarn Install) corepack enable
--- package.json
@@ -176,7 +176,7 @@
"react-i18next": "^13.3.1",
"react-native": "^0.73.0",
"react-native-app-auth": "^6.4.3",
- "react-native-audio-recorder-player": "3.5.3",
+ "react-native-audio-recorder-player": "^3.6.7",
"react-native-background-timer": "^2.4.1",
"react-native-barcode-builder": "^2.0.0",
"react-native-biometrics": "^3.0.0",
@@ -432,7 +432,7 @@
"react-i18next": "^13.3.1",
"react-native": "0.73.7",
"react-native-app-auth": "^6.4.3",
- "react-native-audio-recorder-player": "3.5.3",
+ "react-native-audio-recorder-player": "^3.6.7",
"react-native-background-timer": "^2.4.1",
"react-native-barcode-builder": "^2.0.0",
"react-native-biometrics": "^3.0.0",
--- yarn.lock
@@ -7807,7 +7807,7 @@ __metadata:
react-native: "npm:^0.73.0"
react-native-apollo-devtools-client: "npm:^1.0.4"
react-native-app-auth: "npm:^6.4.3"
- react-native-audio-recorder-player: "npm:3.5.3"
+ react-native-audio-recorder-player: "npm:^3.6.7"
react-native-background-timer: "npm:^2.4.1"
react-native-barcode-builder: "npm:^2.0.0"
react-native-biometrics: "npm:^3.0.0"
@@ -17802,16 +17802,15 @@ __metadata:
languageName: node
linkType: hard
-"react-native-audio-recorder-player@npm:3.5.3":
- version: 3.5.3
- resolution: "react-native-audio-recorder-player@npm:3.5.3"
+"react-native-audio-recorder-player@npm:^3.6.7":
+ version: 3.6.7
+ resolution: "react-native-audio-recorder-player@npm:3.6.7"
dependencies:
dooboolab-welcome: "npm:^1.3.2"
- react-native-audio-recorder-player: "npm:^3.5.1"
peerDependencies:
react: "*"
react-native: "*"
- checksum: 10c0/0bf6dfdf564385c65582eef5a4a53f132170ba999f1ac78ee465057c5fc14034a751492ffd6c7aa6cf56d89b89cc08a1e8cf1c33f3cf4104bc88a22b731202cd
+ checksum: 10c0/7f4c4b781269fce5d5bf037cef6212eb393c73967b62a0a8839efdd3e02358afcf1368830e9627a3075ddd5cea5dcef00ebc93ad795ff4b1e8a1492f9b3f6702
languageName: node
linkType: hard
| fix: update audio recorder player library | fix: update audio recorder player library
|
72cdbfafc1979402a2eb06742226849995cb3260 | --- src/containers/RosterFilters.tsx
@@ -36,7 +36,7 @@ export enum FilterValue {
// ChipGroup emits index of selected chip rather than id, so mapping
// index to string value here.
// IMPORTANT! Render order of chips matters!
-const FilterMap = {
+const FilterMapSalaried = {
'0': FilterValue.all,
'1': FilterValue.absent,
'2': FilterValue.tardy,
@@ -44,6 +44,11 @@ const FilterMap = {
'4': FilterValue.online,
};
+const FilterMapHourly = {
+ '0': FilterValue.all,
+ '1': FilterValue.clockedIn,
+};
+
//TODO: Roster data should use the Associate type
export const RosterFilters = (props: {
associates: Associate[];
@@ -137,6 +142,9 @@ export const RosterFilters = (props: {
*/
const onFilterPress = (selectedIds: ChipId[]) => {
const filterId = selectedIds[0]?.toString();
+ const FilterMap = isSalariedOrTeamLead
+ ? FilterMapSalaried
+ : FilterMapHourly;
const filterValue = FilterMap[filterId as keyof typeof FilterMap];
selectedFilter.current = filterValue;
--- src/containers/RosterFilters.tsx
@@ -36,7 +36,7 @@ export enum FilterValue {
// ChipGroup emits index of selected chip rather than id, so mapping
// index to string value here.
// IMPORTANT! Render order of chips matters!
-const FilterMap = {
+const FilterMapSalaried = {
'0': FilterValue.all,
'1': FilterValue.absent,
'2': FilterValue.tardy,
@@ -44,6 +44,11 @@ const FilterMap = {
'4': FilterValue.online,
};
+const FilterMapHourly = {
+ '0': FilterValue.all,
+ '1': FilterValue.clockedIn,
+};
+
//TODO: Roster data should use the Associate type
export const RosterFilters = (props: {
associates: Associate[];
@@ -137,6 +142,9 @@ export const RosterFilters = (props: {
*/
const onFilterPress = (selectedIds: ChipId[]) => {
const filterId = selectedIds[0]?.toString();
+ const FilterMap = isSalariedOrTeamLead
+ ? FilterMapSalaried
+ : FilterMapHourly;
const filterValue = FilterMap[filterId as keyof typeof FilterMap];
selectedFilter.current = filterValue;
| add filter for hourly associate | add filter for hourly associate
|
6b71205f7eab263134a78849d44103cd6ff8a4da | --- packages/allspark-foundation-hub/src/Store/translation.ts
@@ -91,7 +91,7 @@ export const enUS = {
},
},
warningAlert: {
- warningMessage: 'Something went wrong',
+ warningMessage: 'Unable to load. Please refresh.',
buttonLabel: 'Try again.',
},
};
@@ -191,7 +191,7 @@ export const esMX = {
},
},
warningAlert: {
- warningMessage: 'Algo salió mal',
+ warningMessage: 'No se puede cargar. Actualice.',
buttonLabel: 'Vuelve a intentarlo.',
},
};
--- packages/allspark-foundation-hub/src/SupplyChain/translation.ts
@@ -111,7 +111,7 @@ export const enUS = {
subtitle: 'There are no results matching your search.',
},
warningAlert: {
- warningMessage: 'Something went wrong',
+ warningMessage: 'Unable to load. Please refresh.',
buttonLabel: 'Try again.',
},
};
@@ -230,7 +230,7 @@ export const esMX: typeof enUS = {
subtitle: 'No hay resultados que coincidan con su búsqueda.',
},
warningAlert: {
- warningMessage: 'Algo salió mal',
+ warningMessage: 'No se puede cargar. Actualice.',
buttonLabel: 'Vuelve a intentarlo.',
},
};
| feat(ui): updated error message | feat(ui): updated error message
|
da8106087e01c4ecc418d93f3e0e16d44928b0ac | --- ios/Podfile.lock
@@ -985,7 +985,7 @@ PODS:
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- - native-rfid-scanner (3.9.9):
+ - native-rfid-scanner (3.9.10):
- React-Core
- OpenSSL-Universal (1.1.1100)
- PromisesObjC (2.3.1)
@@ -2111,7 +2111,7 @@ SPEC CHECKSUMS:
libvmaf: 27f523f1e63c694d14d534cd0fddd2fab0ae8711
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
- native-rfid-scanner: 9ea975aafa627489a99a92a009d9cf0dda05a34a
+ native-rfid-scanner: 4c8fe5964b8d4f2179e8d63903ddf5c21da54db4
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
PromisesSwift: 28dca69a9c40779916ac2d6985a0192a5cb4a265
--- package-lock.json
@@ -80,7 +80,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.1.4",
"@walmart/myteam-mini-app": "1.1.7",
- "@walmart/native-rfid-scanner": "3.9.9",
+ "@walmart/native-rfid-scanner": "3.9.10",
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.140.4",
@@ -12116,9 +12116,10 @@
"hasInstallScript": true
},
"node_modules/@walmart/native-rfid-scanner": {
- "version": "3.9.9",
- "resolved": "https://npme.walmart.com/@walmart/native-rfid-scanner/-/native-rfid-scanner-3.9.9.tgz",
- "integrity": "sha512-h8WrnIn/H0dGvM7Qje+w83u5NnzkKUw6JC6LZJA5g0Eu6d1vET/cxqa/UfqZyeuA2wIEM8QW2RMFlNoKwq4K3Q==",
+ "version": "3.9.10",
+ "resolved": "https://npme.walmart.com/@walmart/native-rfid-scanner/-/native-rfid-scanner-3.9.10.tgz",
+ "integrity": "sha512-Drh42/2U9FS69X/tCG9rHUe1cEAm9YnpLn0AT9u79T1oljgUeeLDnjZ/O8B54KuWsE3m66vLpNY0vkwPsUYC0g==",
+ "license": "MIT",
"peerDependencies": {
"react": "*",
"react-native": "*"
--- package.json
@@ -122,7 +122,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.1.4",
"@walmart/myteam-mini-app": "1.1.7",
- "@walmart/native-rfid-scanner": "3.9.9",
+ "@walmart/native-rfid-scanner": "3.9.10",
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.140.4",
@@ -385,7 +385,7 @@
"@walmart/mod-flex-mini-app": "1.17.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.1.4",
- "@walmart/native-rfid-scanner": "3.9.9",
+ "@walmart/native-rfid-scanner": "3.9.10",
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.140.4",
| Update native-rfid-scanner@3.9.10 | Update native-rfid-scanner@3.9.10
|
f3239c31205a2735bdf106729406db92e6356ef3 | --- __tests__/screens/MessagesScreen/DeleteMessageTest.tsx
@@ -225,8 +225,17 @@ describe('MessageOptionsModal', () => {
// image: null,
// message: 'Message was deleted by Darlene M Jones',
// });
- expect(mockUpdate).toHaveBeenNthCalledWith(2, {
+ expect(mockUpdate).toHaveBeenNthCalledWith(1, {
+ audio: null,
deleted: true,
+ deletedBy: 'dmj00b5',
+ deletedByPreferredName: 'Darlene M Jones',
+ deletedReason: 'Mention of self harm',
+ deletedTimestamp: 'mock-firestore-server-timestamp',
+ image: null,
+ message: 'Message was deleted by Darlene M Jones',
+ });
+ expect(mockUpdate).toHaveBeenNthCalledWith(2, {
lastMessageTime: 'mock-firestore-server-timestamp',
});
});
--- __tests__/screens/MessagesScreen/DeleteMessageTest.tsx
@@ -225,8 +225,17 @@ describe('MessageOptionsModal', () => {
// image: null,
// message: 'Message was deleted by Darlene M Jones',
// });
- expect(mockUpdate).toHaveBeenNthCalledWith(2, {
+ expect(mockUpdate).toHaveBeenNthCalledWith(1, {
+ audio: null,
deleted: true,
+ deletedBy: 'dmj00b5',
+ deletedByPreferredName: 'Darlene M Jones',
+ deletedReason: 'Mention of self harm',
+ deletedTimestamp: 'mock-firestore-server-timestamp',
+ image: null,
+ message: 'Message was deleted by Darlene M Jones',
+ });
+ expect(mockUpdate).toHaveBeenNthCalledWith(2, {
lastMessageTime: 'mock-firestore-server-timestamp',
});
});
| updating updates | updating updates
|
746f66e105dc187dd42e242f59b746fc429e3a09 | --- package-lock.json
@@ -51,7 +51,7 @@
"@walmart/avp-shared-library": "0.2.12",
"@walmart/backroom-mini-app": "1.0.6",
"@walmart/calling-mini-app": "0.1.24",
- "@walmart/checkout-mini-app": "3.11.0",
+ "@walmart/checkout-mini-app": "3.12.0",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
"@walmart/copilot-mini-app": "3.70.5",
@@ -11109,9 +11109,9 @@
}
},
"node_modules/@walmart/checkout-mini-app": {
- "version": "3.11.0",
- "resolved": "https://npme.walmart.com/@walmart/checkout-mini-app/-/checkout-mini-app-3.11.0.tgz",
- "integrity": "sha512-Wsw5lMv4z3j/ZI5Fk+VoT1eKsAKbZJd45RuNpMoVxRMv3EArgFixbWwfMLn9+fCanAZ+bm7Gvd0sWeK/GiC0Qw==",
+ "version": "3.12.0",
+ "resolved": "https://npme.walmart.com/@walmart/checkout-mini-app/-/checkout-mini-app-3.12.0.tgz",
+ "integrity": "sha512-HDVLDtAHZx9w7c/Cl07uBWrWUn6o0hsSt+A4fs2+bkMH0acg1gTrpWf2MCPfnWuUj5n8nT95vZTDh3wrAWp48A==",
"dependencies": {
"@stomp/stompjs": "^7.0.0",
"cpc-input": "^1.7.28",
--- package.json
@@ -92,7 +92,7 @@
"@walmart/avp-shared-library": "0.2.12",
"@walmart/backroom-mini-app": "1.0.6",
"@walmart/calling-mini-app": "0.1.24",
- "@walmart/checkout-mini-app": "3.11.0",
+ "@walmart/checkout-mini-app": "3.12.0",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
"@walmart/copilot-mini-app": "3.70.5",
| Checkout 3.12.0 | Checkout 3.12.0
|
b3c0c750273300ac75d3b9a45a5edd0780c3e80f | --- .looper-pr.yml
@@ -10,7 +10,7 @@ flows:
- (name Enable Corepack) corepack enable
- (name Yarn Set Version) yarn set version 4.6.0
- (name Yarn Version) yarn --version
- - (name Yarn Install) yarn install --mode=update-lockfile
+ - (name Yarn Install) yarn install --immutable false
envs:
global:
--- .looper.yml
@@ -64,7 +64,7 @@ flows:
- (name Yarn Install) corepack enable
- (name Yarn Set Version) yarn set version 4.6.0
- (name Yarn Version) yarn --version
- - (name Install Dependencies) yarn install --mode=update-lockfile
+ - (name Install Dependencies) yarn install --immutable false
buildPackages:
- (name Build Packages) yarn run build
| fix: allow lockfile updates in looper ci to prevent installation errors | fix: allow lockfile updates in looper ci to prevent installation errors
|
5fa7e74c39c2557ff4102df6fd9be021b395655f | --- src/screens/RosterScreen.tsx
@@ -19,6 +19,7 @@ import {TEXTING_I18N_NAMESPACE} from '../translations';
import {useTranslation} from 'react-i18next';
import {teamLeadJobDescriptions} from '../redux/selectors';
import {sortedAssociateList} from '../utils';
+import {analytics} from '../logger/Analytics';
const styles = StyleSheet.create({
screen: {
@@ -63,9 +64,21 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => {
const onPullToRefresh = useCallback(() => {
setPullToRefresh(true);
- refetch().then(() => {
- setPullToRefresh(false);
- });
+ refetch()
+ .then(() => {
+ setPullToRefresh(false);
+ analytics(
+ 'rosterPullDown',
+ {message: 'Pull down to refresh successful'},
+ 10,
+ );
+ })
+ .catch((err: any) => {
+ logger.error('Error in pull down to refresh on Roster screen: ', {
+ message: err.toString(),
+ });
+ setPullToRefresh(false);
+ });
}, [pullToRefresh]);
useEffect(() => {
--- src/screens/RosterScreen.tsx
@@ -19,6 +19,7 @@ import {TEXTING_I18N_NAMESPACE} from '../translations';
import {useTranslation} from 'react-i18next';
import {teamLeadJobDescriptions} from '../redux/selectors';
import {sortedAssociateList} from '../utils';
+import {analytics} from '../logger/Analytics';
const styles = StyleSheet.create({
screen: {
@@ -63,9 +64,21 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => {
const onPullToRefresh = useCallback(() => {
setPullToRefresh(true);
- refetch().then(() => {
- setPullToRefresh(false);
- });
+ refetch()
+ .then(() => {
+ setPullToRefresh(false);
+ analytics(
+ 'rosterPullDown',
+ {message: 'Pull down to refresh successful'},
+ 10,
+ );
+ })
+ .catch((err: any) => {
+ logger.error('Error in pull down to refresh on Roster screen: ', {
+ message: err.toString(),
+ });
+ setPullToRefresh(false);
+ });
}, [pullToRefresh]);
useEffect(() => {
| Pull down to refresh error case fix | Pull down to refresh error case fix
|
fae38670cbf7210cc5057366dd27324ef4cb52b1 | --- packages/allspark-foundation/__tests__/Components/__snapshots__/AllsparkBanner.test.tsx.snap
@@ -1,10 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`AllsparkBanner renders banner correctly 1`] = `
-<View
- entering={BaseAnimationMock {}}
- exiting={BaseAnimationMock {}}
->
+<View>
<View
style={
[
| fix(test): fix failing test | fix(test): fix failing test
|
263655043932a4c327822944a0137de3132a0095 | --- package-lock.json
@@ -24907,9 +24907,9 @@
"integrity": "sha512-31gtF8rVekdlx443qIZY7uGrD1ctzINt0C/Y+QP4VsRfZC2/n0J50syLxJqD2rP5S4+e0TYtdT1MLmGNtTteTQ=="
},
"@walmart/feedback-all-spark-miniapp": {
- "version": "0.9.7",
- "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.7.tgz",
- "integrity": "sha512-BAL6FN9sf7IvMFn4cuJTM90SjpUu34YI/ZQ3WXLkG7ByFAnBPL8nptHsqP5/woWgmy+kk00VmOCS6oDRmM+btQ=="
+ "version": "0.9.9",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.9.tgz",
+ "integrity": "sha512-zflnSCCc2yaDFeasMBtEuH74oGEZg1E2auhNUZ05C6zzO9yZ+oHun9+0jhnt+ag6zqZDCG1/AbgUJjfzAgY2dA=="
},
"@walmart/financial-wellbeing-feature-app": {
"version": "1.0.64",
--- package.json
@@ -89,7 +89,7 @@
"@walmart/emergency-mini-app": "1.9.0",
"@walmart/exception-mini-app": "1.0.3",
"@walmart/facilities-management-miniapp": "0.4.2",
- "@walmart/feedback-all-spark-miniapp": "0.9.7",
+ "@walmart/feedback-all-spark-miniapp": "0.9.9",
"@walmart/financial-wellbeing-feature-app": "1.0.64",
"@walmart/functional-components": "2.0.6",
"@walmart/gta-react-native-calendars": "0.0.15",
| Feedback bump version for drop-9 | Feedback bump version for drop-9
|
e7d7d3910f9948ca9a9416c2d5b9115d86f22597 | --- package.json
@@ -113,7 +113,7 @@
"@walmart/ims-print-services-ui": "2.12.0",
"@walmart/inbox-mini-app": "0.95.3",
"@walmart/iteminfo-mini-app": "7.15.11",
- "@walmart/learning-mini-app": "20.0.34",
+ "@walmart/learning-mini-app": "20.0.35",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-at-walmart-athena-queries": "6.1.4",
"@walmart/me-at-walmart-common": "6.1.4",
--- yarn.lock
@@ -6320,9 +6320,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/learning-mini-app@npm:20.0.34":
- version: 20.0.34
- resolution: "@walmart/learning-mini-app@npm:20.0.34"
+"@walmart/learning-mini-app@npm:20.0.35":
+ version: 20.0.35
+ resolution: "@walmart/learning-mini-app@npm:20.0.35"
peerDependencies:
"@atmt/feedback-component-native": ^8.0.0
"@react-native-firebase/analytics": 17.4.2
@@ -6396,7 +6396,7 @@ __metadata:
reduxsauce: ^1.2.0
reselect: ^4.0.0
wifi-store-locator: ^1.0.0-alpha2
- checksum: 10c0/e7293e61290ef54c22af2a067281d81735b1c7eb693c21b5b6a34613fe7e77f22f8c1776cc1241172221232da80777346f991f0b730ee033a2f4345f578c2923
+ checksum: 10c0/bdd628becd3b89e7074a92f52dd7d98e7befcbb2b484af66ec5a43646efbce77fd4cb05143aba294ea9d85fda594e4dbb50faee236271122611dd398442fd112
languageName: node
linkType: hard
@@ -7910,7 +7910,7 @@ __metadata:
"@walmart/ims-print-services-ui": "npm:2.12.0"
"@walmart/inbox-mini-app": "npm:0.95.3"
"@walmart/iteminfo-mini-app": "npm:7.15.11"
- "@walmart/learning-mini-app": "npm:20.0.34"
+ "@walmart/learning-mini-app": "npm:20.0.35"
"@walmart/manager-approvals-miniapp": "npm:0.2.4"
"@walmart/me-at-walmart-athena-queries": "npm:6.1.4"
"@walmart/me-at-walmart-common": "npm:6.1.4"
| feat: :sparkles: Bump learning mini app version to 20.0.35 | feat: :sparkles: Bump learning mini app version to 20.0.35
|
48fa699a9c8cf6cbeaa3228de4ec6f556900ade3 | --- fastlane/Fastfile
@@ -59,13 +59,14 @@ lane :submit_to_appcenter do |options|
if options[:BUILD_OUTPUT]
appcenter_upload(
file: options[:BUILD_OUTPUT],
+ destinations: "allsparktestershotfix"
release_notes: release_notes.join("\n\n"), # renders each line in a <p/> in App Center
upload_build_only: true)
end
session[:download_link] = Actions.lane_context[SharedValues::APPCENTER_DOWNLOAD_LINK]
release_number = Actions.lane_context[SharedValues::APPCENTER_BUILD_INFORMATION]["id"]
release_url = "https://install.appcenter.ms/orgs/#{ENV['APPCENTER_OWNER_NAME']}/apps/#{ENV['APPCENTER_APP_NAME']}/distribution_groups/#{ENV["APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT"]}/releases/#{release_number}"
- session[:release_url] = release_url
+ session[:release_url] = release_url
save_session
end
@@ -89,4 +90,4 @@ def save_session
File.open(SESSION_FILE, "w") {|f| f.write(session.to_json)}
end
-SESSION_FILE="fastlane-session.json"
\ No newline at end of file
+SESSION_FILE="fastlane-session.json"
| new group1 | new group1
|
a7c1c072faf52946b2885c376a6ef49d18aaab7f | --- package-lock.json
@@ -3446,9 +3446,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.30",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.30.tgz",
- "integrity": "sha512-DuJmoeaS7L3QoZ59kYDbqoCqvVjHL3gWs1KbqUIs6Wr3pP+NpaE9131KCdZZghh/ml3J32k/yg0F7feialybWg=="
+ "version": "0.5.31",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.31.tgz",
+ "integrity": "sha512-rl2ttsZFuXUNxcY7v2rTAna7aCmFjAWcqJsUePv9qjDzG5dsL1Ir6c1CAKovkLQ4kdpt6S7oLWOii7RpwkM2DA=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -80,7 +80,7 @@
"@walmart/manager-approvals-miniapp": "0.0.40",
"@walmart/metrics-mini-app": "0.4.6",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.5.30",
+ "@walmart/push-to-talk-mini-app": "0.5.31",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.27.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| updating PTT version | updating PTT version
|
4474dac773c96a683c5ff1ed5d3095472172a828 | --- graphql.yml
@@ -60,33 +60,27 @@ applications:
- name: 'prod'
persistedQueries:
- name: 'GetAssociateClockStatus'
- hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214'
queryTemplate: 'src/queries/getAssociateClockStatus.graphql'
tags:
- 'v1'
- name: 'GetAssociateName'
- hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f'
queryTemplate: 'src/queries/getAssociateName.graphql'
tags:
- 'v1'
- name: 'GetDailyRoster'
- hash: '3c6a1553234da438299662b03db04cc613b52ca997efb511ac76d5eff118a4bf'
queryTemplate: 'src/queries/getDailyRoster.graphql'
tags:
- - 'v2'
+ - 'v3'
- 'Drop13'
- name: 'GetTeamById'
- hash: '5a1baf2e68d6b2c9ddec825296731ccd2137a9e7f12d1f7210ca797814bb3e3f'
queryTemplate: 'src/queries/getTeamById.graphql'
tags:
- - 'v1'
+ - 'v3'
- name: 'GetTeamsByStore'
- hash: '0d9bcce8cdce8831861e22bd66c43d0891aef2304b2bab61e449c5570aa564d2'
queryTemplate: 'src/queries/getTeamsbyStore.graphql'
tags:
- - 'v1'
+ - 'v3'
- name: 'upsertAssociateTextPreferences'
- hash: 'c32767303508d355e17b8489f8ecd28ec16a22ea3c454f9347ae96c9aefbec3b'
queryTemplate: 'src/queries/upsertAssociateTextPreference.graphql'
tags:
- 'v1'
| remove hash, update spacing, sync versioning | remove hash, update spacing, sync versioning
|
0402e5c767951ddad9329119124af40dd017d6b4 | --- targets/US/package.json
@@ -150,7 +150,7 @@
"@walmart/taskit-mini-app": "4.25.8",
"@walmart/time-clock-mini-app": "2.419.0",
"@walmart/topstock-mini-app": "1.17.11",
- "@walmart/translator-mini-app": "1.2.0",
+ "@walmart/translator-mini-app": "1.3.0",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch",
"@walmart/walmart-fiscal-week": "^0.3.6",
"@walmart/welcomeme-mini-app": "0.96.0",
--- yarn.lock
@@ -7066,7 +7066,7 @@ __metadata:
"@walmart/taskit-mini-app": "npm:4.25.8"
"@walmart/time-clock-mini-app": "npm:2.419.0"
"@walmart/topstock-mini-app": "npm:1.17.11"
- "@walmart/translator-mini-app": "npm:1.2.0"
+ "@walmart/translator-mini-app": "npm:1.3.0"
"@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"
"@walmart/welcomeme-mini-app": "npm:0.96.0"
@@ -8090,9 +8090,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/translator-mini-app@npm:1.2.0":
- version: 1.2.0
- resolution: "@walmart/translator-mini-app@npm:1.2.0"
+"@walmart/translator-mini-app@npm:1.3.0":
+ version: 1.3.0
+ resolution: "@walmart/translator-mini-app@npm:1.3.0"
peerDependencies:
"@react-native-async-storage/async-storage": ^2.0.0
"@react-native-clipboard/clipboard": ^1.14.2
@@ -8102,11 +8102,12 @@ __metadata:
lodash: ">=4.17"
react: "*"
react-native: "*"
+ react-native-inappbrowser-reborn: ^3.7.0
react-native-render-html: ^6.1.1
react-native-svg: ">=14.0.0"
react-native-wm-voice-text: ^1.0.4
uuid: ">=3.0.0"
- checksum: 10c0/9fedb49ac2278e31617e9ffa164ac3965021106df16f5da47b3be152ff18444bf2eabcc23e047380d7beb4f8aba868e95581d20474871d17034b3983c6655e34
+ checksum: 10c0/73236d460471f2255415f8d8b8fc53e30b833a9a2ae2c5ddf7ab5769e482593228566edfb1894158675ffd9a0d309fcd43249d1544c25758021686acf44795f7
languageName: node
linkType: hard
| version bump | version bump
|
2b55fa0fd0cc1c261599159f81b9ed17f3f378c3 | --- src/shared/index.tsx
@@ -1,4 +1,3 @@
export {RosterDetailScreen} from '../screens/RosterDetailScreen';
export {AllTeamsScreen} from '../screens/AllTeamsScreen';
export {RosterWidget} from '../components/RosterWidget';
-export {RosterMiniApp} from '../screens';
| Update the roster mini app version | Update the roster mini app version
|
48fdcaa901a4d1e0365567f016f92ec0eed1b678 | --- graphql.yml
@@ -41,6 +41,11 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql'
tags:
- 'v1'
+ - name: 'GetSupplyChainTeamsByStore'
+ hash: '628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql'
+ tags:
+ - 'v1'
- name: 'getTeamByIdHome'
hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql'
@@ -98,6 +103,11 @@ applications:
# queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql"
# tags:
# - "v1"
+ # - name: "GetSupplyChainTeamsByStore"
+ # hash: "628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1"
+ # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql"
+ # tags:
+ # - "v1"
- name: 'getTeamByIdHome'
hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql'
| feat(ui): resolved conflicts | feat(ui): resolved conflicts
|
226d1ed443df39c3cc3e29ab8eb4a2952a84b14d | --- packages/allspark-foundation-hub/src/Store/Modules/Hub/HubDashboard.tsx
@@ -25,7 +25,7 @@ import {
telemetryEventsHandler,
createDefaultWidgetPlaceholder,
} from '../../../Shared';
-import styles from './styles';
+import { styles } from './styles';
import { Body } from '@walmart/gtp-shared-components';
import { AllsparkComponentContainers } from '@walmart/allspark-foundation/Components';
import { HubDashboardProps } from './types';
--- packages/allspark-foundation-hub/src/Store/Modules/Hub/styles.ts
@@ -1,34 +1,33 @@
import { StyleSheet } from 'react-native';
import { colors } from '@walmart/gtp-shared-components';
-export const styles = (isSiteSwitcher?: boolean) =>
- StyleSheet.create({
- switcherContainer: {
- backgroundColor: colors.blue[100],
- minHeight: 70,
- paddingBottom: !isSiteSwitcher ? 20 : 0,
- },
- switcherHeader: { justifyContent: 'center', margin: 20 },
- headerTitle: { fontSize: 24 },
- scrollView: {
- paddingHorizontal: 0,
- },
- scrollContainerView: {
- paddingBottom: 0,
- },
- refreshControl: {
- backgroundColor: 'transparent',
- },
- lastUpdatedText: {
- fontSize: 12,
- lineHeight: 16,
- color: colors.gray[160],
- textAlign: 'center',
- marginTop: 12,
- },
- cardStyle: {
- marginBottom: 8,
- width: 'auto',
- },
- floatingButtonStyle: { position: 'absolute', bottom: 16, right: 4 },
- });
+export const styles = StyleSheet.create({
+ switcherContainer: {
+ backgroundColor: colors.blue[100],
+ minHeight: 70,
+ paddingBottom: 0,
+ },
+ switcherHeader: { justifyContent: 'center', margin: 20 },
+ headerTitle: { fontSize: 24 },
+ scrollView: {
+ paddingHorizontal: 0,
+ },
+ scrollContainerView: {
+ paddingBottom: 0,
+ },
+ refreshControl: {
+ backgroundColor: 'transparent',
+ },
+ lastUpdatedText: {
+ fontSize: 12,
+ lineHeight: 16,
+ color: colors.gray[160],
+ textAlign: 'center',
+ marginTop: 12,
+ },
+ cardStyle: {
+ marginBottom: 8,
+ width: 'auto',
+ },
+ floatingButtonStyle: { position: 'absolute', bottom: 16, right: 4 },
+});
--- packages/allspark-foundation-hub/src/SupplyChain/Hub/SiteHubDashboard.tsx
@@ -17,7 +17,6 @@ import {
useNavigation,
useRoute,
} from '@react-navigation/native';
-import { styles } from '../../Store/Modules/Hub/styles';
import { useSelector } from 'react-redux';
import { useSupplyChainOnboardingContext } from '../../SupplyChain/Screens/OnboardingScreen/OnboardingContext';
import { UserSelectors } from '@walmart/allspark-foundation/User';
@@ -43,6 +42,7 @@ import {
import { OnboardingScreenLoading } from '../Screens/OnboardingScreen/OnboardingScreenLoader';
import { ShiftMapping, ShiftMappingList } from './types';
import { ManagerExperienceSelectors } from '../../Container';
+import { styles } from './styles';
export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
const {
@@ -83,10 +83,6 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
const defaultShift = useSelector(defaultShiftId) as string;
- //Update below to use switcher styles from SC
- const isSiteSwitcher = true;
- const style = styles(isSiteSwitcher);
-
const isCalloutEnabled = useSelector(calloutEnabled);
/**Refresh props */
@@ -193,7 +189,7 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
const containerComponentProps = useMemo(
() => ({
refresh: state.refreshTime,
- widgetStyle: style.cardStyle,
+ widgetStyle: styles.cardStyle,
}),
[state.refreshTime]
);
@@ -304,10 +300,10 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
return (
<>
{showHubTeamSwitcher ? (
- <View style={style.switcherContainer}>
- <View style={style.switcherHeader}>
+ <View style={styles.switcherContainer}>
+ <View style={styles.switcherHeader}>
<Body
- UNSAFE_style={style.headerTitle}
+ UNSAFE_style={styles.headerTitle}
weight='700'
size='large'
color='white'
@@ -342,8 +338,8 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
testID='HubDashboard.View'
stickyHeaderIndices={[1]}
showsVerticalScrollIndicator={false}
- style={style.scrollView}
- contentContainerStyle={style.scrollContainerView}
+ style={styles.scrollView}
+ contentContainerStyle={styles.scrollContainerView}
onScroll={onScroll}
scrollEventThrottle={16}
refreshControl={
@@ -351,13 +347,13 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
refreshing={state.refreshing}
onRefresh={onRefresh}
colors={['transparent']}
- style={style.refreshControl}
+ style={styles.refreshControl}
/>
}
>
{state.refreshing && (
<View testID='Hub.LastUpdatedText'>
- <Body weight='regular' UNSAFE_style={[style.lastUpdatedText]}>
+ <Body weight='regular' UNSAFE_style={[styles.lastUpdatedText]}>
Last updated, {state.lastRefresh}
</Body>
</View>
--- packages/allspark-foundation-hub/src/SupplyChain/Hub/styles.ts
@@ -0,0 +1,32 @@
+import { StyleSheet } from 'react-native';
+import { colors } from '@walmart/gtp-shared-components';
+
+export const styles = StyleSheet.create({
+ switcherContainer: {
+ minHeight: 70,
+ paddingBottom: 20,
+ },
+ switcherHeader: { justifyContent: 'center', margin: 20 },
+ headerTitle: { fontSize: 24 },
+ scrollView: {
+ paddingHorizontal: 0,
+ },
+ scrollContainerView: {
+ paddingBottom: 0,
+ },
+ refreshControl: {
+ backgroundColor: 'transparent',
+ },
+ lastUpdatedText: {
+ fontSize: 12,
+ lineHeight: 16,
+ color: colors.gray[160],
+ textAlign: 'center',
+ marginTop: 12,
+ },
+ cardStyle: {
+ marginBottom: 8,
+ width: 'auto',
+ },
+ floatingButtonStyle: { position: 'absolute', bottom: 16, right: 4 },
+});
| Update foundation version | Update foundation version
|
e1c2e60b180f04d6b820bc23765b48daa8c569c8 | --- src/components/TeamList.tsx
@@ -20,7 +20,6 @@ import {
ListItem,
SkeletonText,
} from '@walmart/gtp-shared-components';
-import {UserSelectors} from '@walmart/redux-store';
import {Images} from '../images';
import {
useDailyRoster,
--- src/components/TeamList.tsx
@@ -20,7 +20,6 @@ import {
ListItem,
SkeletonText,
} from '@walmart/gtp-shared-components';
-import {UserSelectors} from '@walmart/redux-store';
import {Images} from '../images';
import {
useDailyRoster,
| fix lint issue | fix lint issue
|
b7553cc75b8e121b4712be06ac3dd22c683d41d1 | --- src/components/TeamList.tsx
@@ -486,6 +486,13 @@ export const TeamChatCard = (props: {
{
i18nLabel: t('rosterScreen.associateRosterItem.messageBtn'),
action(team) {
+ analytics('team_messagebtn', {
+ message: 'navigate to messaging screen for a team',
+ teamName: team?.teamName,
+ teamID: team?.teamId,
+ workgroupID: team?.workgroupId,
+ workgroup: team?.workgroup,
+ });
startTeamText(team.teamId, team?.teamName || team.teamId);
},
},
@@ -499,6 +506,11 @@ export const TeamChatCard = (props: {
{
i18nLabel: t('rosterScreen.associateRosterItem.messageBtn'),
action() {
+ analytics('team_messagebtn', {
+ message: 'navigate to messaging screen for a team',
+ teamName: 'TOTAL STORE',
+ teamID: 'TOTAL_STORE',
+ });
startStoreText();
},
},
| Addressing PR comments | Addressing PR comments
|
ee59cb222e9a53222c11911eb5eb772a0c3900b7 | --- __tests__/startup/SsoSagaTest.ts
@@ -526,13 +526,13 @@ describe('isSilentSignInError', () => {
});
describe('handleSignInFailure', () => {
- it('handles feedbackWidgetEnabled feature flagging', () => {
+ it('handles ssoFeedbackWidgetEnabled feature flagging', () => {
const configValue = {asBoolean: () => false};
const error = new Error('Oh boy...Get user failed. Thats not good!');
const iterator = handleSignInFailure(error);
(WmConfig.getValue as jest.Mock).mockReturnValueOnce(configValue);
expect(iterator.next().value).toEqual(
- call(WmConfig.getValue, 'core', 'feedbackWidgetEnabled'),
+ call(WmConfig.getValue, 'core', 'ssoFeedbackWidgetEnabled'),
);
expect(iterator.next(configValue).done).toEqual(true);
});
@@ -544,7 +544,7 @@ describe('handleSignInFailure', () => {
const error = new Error('Oh boy...Get user failed. Thats not good!');
const iterator = handleSignInFailure(error);
expect(iterator.next().value).toEqual(
- call(WmConfig.getValue, 'core', 'feedbackWidgetEnabled'),
+ call(WmConfig.getValue, 'core', 'ssoFeedbackWidgetEnabled'),
);
expect(iterator.next(configValue).value).toEqual(
call(isSilentSignInError, error),
@@ -557,7 +557,7 @@ describe('handleSignInFailure', () => {
const iterator = handleSignInFailure(error);
(WmConfig.getValue as jest.Mock).mockReturnValueOnce(configValue);
expect(iterator.next().value).toEqual(
- call(WmConfig.getValue, 'core', 'feedbackWidgetEnabled'),
+ call(WmConfig.getValue, 'core', 'ssoFeedbackWidgetEnabled'),
);
expect(iterator.next(configValue).value).toEqual(
call(isSilentSignInError, error),
@@ -571,7 +571,7 @@ describe('handleSignInFailure', () => {
const iterator = handleSignInFailure(error);
(WmConfig.getValue as jest.Mock).mockReturnValueOnce(configValue);
expect(iterator.next().value).toEqual(
- call(WmConfig.getValue, 'core', 'feedbackWidgetEnabled'),
+ call(WmConfig.getValue, 'core', 'ssoFeedbackWidgetEnabled'),
);
expect(iterator.next(configValue).value).toEqual(
call(isSilentSignInError, error),
--- src/startup/SsoSagas.ts
@@ -222,12 +222,12 @@ export const isSilentSignInError = (error?: Error) =>
);
export function* handleSignInFailure(error: Error): any {
- const feedbackWidgetEnabled: FirebaseRemoteConfigTypes.ConfigValue = yield call(
+ const ssoFeedbackWidgetEnabled: FirebaseRemoteConfigTypes.ConfigValue = yield call(
WmConfig.getValue,
'core',
- 'feedbackWidgetEnabled',
+ 'ssoFeedbackWidgetEnabled',
);
- if (!feedbackWidgetEnabled.asBoolean()) return;
+ if (!ssoFeedbackWidgetEnabled.asBoolean()) return;
const isSilentError = yield call(isSilentSignInError, error);
| changing property name | changing property name
|
03bbc9612b1e3ec86eaeadab3402427f10103539 | --- packages/allspark-foundation-hub/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.19.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.1...@walmart/allspark-foundation-hub@1.19.2) (2025-10-20)
+
+**Note:** Version bump only for package @walmart/allspark-foundation-hub
+
## [1.19.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.0...@walmart/allspark-foundation-hub@1.19.1) (2025-10-17)
**Note:** Version bump only for package @walmart/allspark-foundation-hub
--- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.19.1",
+ "version": "1.19.2",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/allspark-foundation/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [7.2.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.1.1...@walmart/allspark-foundation@7.2.0) (2025-10-20)
+
+### Features
+
+- **upgrade:** foundation and plugin changes for RN/Expo upgrade ([#432](https://gecgithub01.walmart.com/allspark/allspark/issues/432)) ([b37b09d](https://gecgithub01.walmart.com/allspark/allspark/commit/b37b09d20fcf4d1f63e20a813be5f33b58f6b88f)), closes [#424](https://gecgithub01.walmart.com/allspark/allspark/issues/424)
+
## [7.1.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.1.0...@walmart/allspark-foundation@7.1.1) (2025-10-17)
**Note:** Version bump only for package @walmart/allspark-foundation
--- packages/allspark-foundation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation",
- "version": "7.1.1",
+ "version": "7.2.0",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
--- packages/expo-config-plugins/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.
+# [0.7.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.6.0...@walmart/expo-config-plugins@0.7.0) (2025-10-20)
+
+### Features
+
+- **upgrade:** foundation and plugin changes for RN/Expo upgrade ([#432](https://gecgithub01.walmart.com/allspark/allspark/issues/432)) ([b37b09d](https://gecgithub01.walmart.com/allspark/allspark/commit/b37b09d20fcf4d1f63e20a813be5f33b58f6b88f)), closes [#424](https://gecgithub01.walmart.com/allspark/allspark/issues/424)
+
# [0.6.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.5.4...@walmart/expo-config-plugins@0.6.0) (2025-10-16)
### Features
--- packages/expo-config-plugins/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/expo-config-plugins",
- "version": "0.6.0",
+ "version": "0.7.0",
"description": "Expo config plugins for me@apps",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/me-at-walmart-geolocation/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.3.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.1...@walmart/me-at-walmart-geolocation@1.3.2) (2025-10-20)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-geolocation
+
## [1.3.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.0...@walmart/me-at-walmart-geolocation@1.3.1) (2025-10-17)
**Note:** Version bump only for package @walmart/me-at-walmart-geolocation
--- packages/me-at-walmart-geolocation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-geolocation",
- "version": "1.3.1",
+ "version": "1.3.2",
"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/allspark-foundation@7.2.0
- @walmart/allspark-foundation-hub@1.19.2
- @walmart/expo-config-plugins@0.7.0
- @walmart/me-at-walmart-geolocation@1.3.2
|
9b7d688e088005404247de909b25044a7199940e | --- package-lock.json
@@ -44,7 +44,7 @@
"@walmart/core-utils": "~1.3.0",
"@walmart/core-widget-registry": "~0.7.2",
"@walmart/counts-component-miniapp": "0.0.42",
- "@walmart/emergency-mini-app": "1.17.0-LoggerFix.2",
+ "@walmart/emergency-mini-app": "1.18.0",
"@walmart/exception-mini-app": "1.0.14",
"@walmart/facilities-management-miniapp": "0.4.2",
"@walmart/feedback-all-spark-miniapp": "0.9.9",
@@ -54,7 +54,7 @@
"@walmart/gtp-shared-components": "^2.0.0",
"@walmart/impersonation-mini-app": "1.10.0",
"@walmart/ims-print-services-ui": "1.2.0",
- "@walmart/inbox-mini-app": "0.81.3-383-3abc3d7",
+ "@walmart/inbox-mini-app": "0.81.3",
"@walmart/iteminfo-mini-app": "5.3.2",
"@walmart/manager-approvals-miniapp": "0.1.2",
"@walmart/me-field-mini-app": "1.1.36",
@@ -5042,9 +5042,9 @@
}
},
"node_modules/@walmart/emergency-mini-app": {
- "version": "1.17.0-LoggerFix.2",
- "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.17.0-LoggerFix.2.tgz",
- "integrity": "sha512-5AYZDc1jDg5QMDq3Zz4JZ8Qw8YKbW+21TDx3AEMq4luProcERTIMYHZ6nHHvaQZz4h7PuDf4wzdQ+CzsF4p47g==",
+ "version": "1.18.0",
+ "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.18.0.tgz",
+ "integrity": "sha512-pwsIvLY3cvP7FtBKu6jB2f0q72rmKam2a/kCHqZ1TbZFefGnivXzLY7hrTTsCvAVTrjCkIxmPpsWiRtC7xDidQ==",
"dependencies": {
"@walmart/core-widget-registry": "^0.6.6"
},
@@ -5322,9 +5322,9 @@
}
},
"node_modules/@walmart/inbox-mini-app": {
- "version": "0.81.3-383-3abc3d7",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.3-383-3abc3d7.tgz",
- "integrity": "sha512-jMWsl1bD4xJz+D5r9tKQkfQpBfumGIowudmRIy4zXWKBrimJ22nyzX3BF/eKIXPABgK1FB8IdjsJT5bR9WGvSg==",
+ "version": "0.81.3",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.3.tgz",
+ "integrity": "sha512-TEp/oIF7aULPlEUHAJhS0FrYGsfLPyrv1KDYmTeEQ6H9q65A1Z1OP1fdIEN6aAzHR9IJy7kD9WtPqiKJPk9+7w==",
"dependencies": {
"@walmart/walmart-fiscal-week": "^0.3.6"
},
@@ -25143,9 +25143,9 @@
"integrity": "sha512-tk3UvKAl/VM29GwO/5uNURHnJkR/M1kq42Hn/2Xob+Ww7rY3gOHKhCTL3NytAPrZxyQco0ZyfGOGPbpy2aDnRw=="
},
"@walmart/emergency-mini-app": {
- "version": "1.17.0-LoggerFix.2",
- "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.17.0-LoggerFix.2.tgz",
- "integrity": "sha512-5AYZDc1jDg5QMDq3Zz4JZ8Qw8YKbW+21TDx3AEMq4luProcERTIMYHZ6nHHvaQZz4h7PuDf4wzdQ+CzsF4p47g==",
+ "version": "1.18.0",
+ "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.18.0.tgz",
+ "integrity": "sha512-pwsIvLY3cvP7FtBKu6jB2f0q72rmKam2a/kCHqZ1TbZFefGnivXzLY7hrTTsCvAVTrjCkIxmPpsWiRtC7xDidQ==",
"requires": {
"@walmart/core-widget-registry": "~0.7.2"
}
@@ -25232,9 +25232,9 @@
"integrity": "sha512-ruI1vqy+0peD+BHi32DvhPSV8lmeoG/iLOeFYGekj40YwIKexXFepkYDiMTOr9tk5rzDg8d+FjRyzVAfKClhOw=="
},
"@walmart/inbox-mini-app": {
- "version": "0.81.3-383-3abc3d7",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.3-383-3abc3d7.tgz",
- "integrity": "sha512-jMWsl1bD4xJz+D5r9tKQkfQpBfumGIowudmRIy4zXWKBrimJ22nyzX3BF/eKIXPABgK1FB8IdjsJT5bR9WGvSg==",
+ "version": "0.81.3",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.3.tgz",
+ "integrity": "sha512-TEp/oIF7aULPlEUHAJhS0FrYGsfLPyrv1KDYmTeEQ6H9q65A1Z1OP1fdIEN6aAzHR9IJy7kD9WtPqiKJPk9+7w==",
"requires": {
"@walmart/walmart-fiscal-week": "^0.3.6"
}
--- package.json
@@ -87,7 +87,7 @@
"@walmart/core-utils": "~1.3.0",
"@walmart/core-widget-registry": "~0.7.2",
"@walmart/counts-component-miniapp": "0.0.42",
- "@walmart/emergency-mini-app": "1.17.0-LoggerFix.2",
+ "@walmart/emergency-mini-app": "1.18.0",
"@walmart/exception-mini-app": "1.0.14",
"@walmart/facilities-management-miniapp": "0.4.2",
"@walmart/feedback-all-spark-miniapp": "0.9.9",
@@ -97,7 +97,7 @@
"@walmart/gtp-shared-components": "^2.0.0",
"@walmart/impersonation-mini-app": "1.10.0",
"@walmart/ims-print-services-ui": "1.2.0",
- "@walmart/inbox-mini-app": "0.81.3-383-3abc3d7",
+ "@walmart/inbox-mini-app": "0.81.3",
"@walmart/iteminfo-mini-app": "5.3.2",
"@walmart/manager-approvals-miniapp": "0.1.2",
"@walmart/me-field-mini-app": "1.1.36",
| Emergency Mini App Logger issue Fix | Emergency Mini App Logger issue Fix
|
7a6cbdafad37f3625d24d739e34e93afbbaad3bb | --- packages/allspark-foundation/package.json
@@ -163,4 +163,4 @@
"optional": true
}
}
-}
\ No newline at end of file
+}
| chore: lint fix | chore: lint fix
|
8ccbe085d1242b2f4eafb900441eeb73c64cef9b | --- packages/allspark-foundation/__tests__/Config/sagas.test.ts
@@ -1,82 +0,0 @@
-import { select, take, takeLatest } from 'redux-saga/effects';
-import { ConfigActionTypes, ConfigActionCreators } from '../../src/Config/redux';
-import { ConfigSelectors } from '../../src/Config/selectors';
-import { onInit, onFetch, waitForConfigInit, waitForConfigFetch, ConfigActionSagas } from '../../src/Config/sagas';
-import {ConfigService} from '../../src/Config/service'
-
-jest.mock('../../src/Config/service', () => ({
- ConfigService: {
- fetch: jest.fn(),
- initialize: jest.fn(),
- },
-}));
-describe('Config Sagas', () => {
- afterEach(() => {
- jest.clearAllMocks();
- });
- const mockInitialize = ConfigService.initialize as jest.Mock;
- const mockFetch = ConfigService.fetch as jest.Mock;
-
- it('should handle onInit saga correctly', () => {
- const generator = onInit(ConfigActionCreators.INIT({ test: 'data' }));
- expect(generator.next().value).toEqual(undefined);
- expect(generator.next().done).toBe(true);
- expect(mockInitialize).toHaveBeenCalled();
- });
-
- it('should handle onFetch saga correctly', () => {
- const generator = onFetch(ConfigActionCreators.FETCH({ test: 'data' }));
- expect(generator.next().value).toEqual(undefined);
- expect(generator.next().done).toBe(true);
- expect(mockFetch).toHaveBeenCalled();
- });
-
- it('should handle ConfigActionSagas correctly', () => {
- const generator = ConfigActionSagas;
- expect(generator[0]).toEqual(takeLatest(ConfigActionTypes.INIT, onInit));
- expect(generator[1]).toEqual(takeLatest(ConfigActionTypes.FETCH, onFetch));
- });
-
- it('should handle waitForConfigInit saga immediately if already initialized', () => {
- const generator = waitForConfigInit();
- expect(generator.next().value).toEqual(select(ConfigSelectors.getInitializing));
- expect(generator.next(false).value).toEqual(select(ConfigSelectors.getInitialized));
- expect(generator.next(true).done).toBe(false);
- expect(generator.next().value).toEqual(undefined);
- });
-
- it('should handle waitForConfigInit saga correctly', () => {
- const generator = waitForConfigInit();
- expect(generator.next().value).toEqual(select(ConfigSelectors.getInitializing));
- expect(generator.next(true).value).toEqual(select(ConfigSelectors.getInitialized));
- expect(generator.next(false).value).toEqual(take([ConfigActionTypes.INIT_SUCCESS, ConfigActionTypes.INIT_ERROR]));
- expect(generator.next({ type: ConfigActionTypes.INIT_ERROR }).value).toEqual(
- select(ConfigSelectors.getInitialized)
- );
- expect(generator.next(false).done).toBe(true);
- expect(generator.next().value).toEqual(undefined);
- });
-
- it('should handle waitForConfigInit saga immediately if already initialized', () => {
- const generator = waitForConfigInit();
- expect(generator.next().value).toEqual(select(ConfigSelectors.getInitializing));
- expect(generator.next(false).value).toEqual(select(ConfigSelectors.getInitialized));
- expect(generator.next(true).done).toBe(false);
- expect(generator.next().value).toEqual(undefined);
- });
-
- it('should handle waitForConfigFetch saga immediately if already fetched', () => {
- const generator = waitForConfigFetch();
- expect(generator.next().value).toEqual(select(ConfigSelectors.getLoading));
- expect(generator.next(true).value).toEqual(select(ConfigSelectors.getLoaded));
- expect(generator.next(false).value).toEqual(select(ConfigSelectors.getError));
- expect(generator.next(false).value).toEqual(
- take([ConfigActionTypes.FETCH_SUCCESS, ConfigActionTypes.FETCH_ERROR])
- );
- expect(generator.next({ type: ConfigActionTypes.FETCH_SUCCESS }).value).toEqual(
- select(ConfigSelectors.getData)
- );
- expect(generator.next().done).toBe(true);
- expect(generator.next().value).toEqual(undefined);
- });
-});
\ No newline at end of file
| config sagas build fails fix | config sagas build fails fix
|
98aca8f785ad33ba26f15d43f0efd3b6d4904fe5 | --- packages/allspark-foundation/__tests__/Location/sagas.test.ts
@@ -1,31 +1,35 @@
import { onInit, onFetch } from '../../src/Location/sagas';
import { LocationActionCreators } from '../../src/Location/redux';
+import { LocationService } from '../../src/Location/service';
-beforeEach(() => {
- jest.clearAllMocks();
-});
-
+jest.mock('../../src/Location/service')
describe('onInit and onFetch tests', () => {
- it('should call onInit', ()=>{
- const payload = 'test'
- const getInit = onInit(LocationActionCreators.INIT(payload));
- const nextInit = getInit.next();
- expect(nextInit.value).toEqual(undefined);
- expect(getInit.next().done).toBe(true)
- })
- it('should call onFetch', ()=>{
- const payload = {
- latitude: 30,
- longitude: 40,
- accuracy: 20,
- altitude: 23,
- heading: 2,
- speed: null,
- timestamp: null
- }
- const getFetch = onFetch(LocationActionCreators.FETCH(payload));
- const nextFetch = getFetch.next();
- expect(nextFetch.value).toEqual(undefined);
- expect(getFetch.next().done).toBe(true)
- })
- });
\ No newline at end of file
+ beforeEach(() => {
+ jest.clearAllMocks();
+ });
+ const mockInitialize = LocationService.initialize as jest.Mock;
+ const mockFetch = LocationService.fetch as jest.Mock;
+
+ it('should call onInit', () => {
+ const payload = 'test';
+ const results = onInit(LocationActionCreators.INIT(payload));
+ expect(results).toBe({})
+ expect(mockInitialize).toHaveBeenCalledWith(payload);
+ });
+
+ it('should call onFetch', () => {
+ const payload = {
+ latitude: 30,
+ longitude: 40,
+ accuracy: 20,
+ altitude: 23,
+ heading: 2,
+ speed: null,
+ timestamp: null,
+ };
+ const action = LocationActionCreators.FETCH(payload);
+ const results = onFetch(action);
+ expect(results).toBe({})
+ expect(mockFetch).toHaveBeenCalledWith(payload);
+ });
+});
| fix build issue location sagas | fix build issue location sagas
|
62caee87720e96a86cf6dddfc55173eef4f652b9 | --- core/__tests__/home/components/CelebrationCard/__snapshots__/indexTest.tsx.snap
@@ -1,5 +1,68 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
+exports[`CelebrationCard does render the card when associate is clocked in 1`] = `
+<View
+ style={
+ [
+ {},
+ undefined,
+ ]
+ }
+ testID="anniversaryCard"
+>
+ <Headline
+ style={
+ {
+ "color": "#2e2f32",
+ "fontSize": 18,
+ "lineHeight": 24,
+ "paddingBottom": 16,
+ "width": "75%",
+ }
+ }
+ >
+ anniversaryHeaderLabel
+ </Headline>
+ <SolidCard
+ color="white"
+ elevation={1}
+ style={
+ {
+ "borderRadius": 8,
+ }
+ }
+ >
+ <Image
+ resizeMode="contain"
+ source={
+ {
+ "testUri": "../../../core/src/images/assets/balloons.png",
+ }
+ }
+ style={
+ {
+ "height": 82,
+ "position": "absolute",
+ "right": 16,
+ "top": -41,
+ "width": 82,
+ "zIndex": 1,
+ }
+ }
+ />
+ <Spinner
+ color="#74767c"
+ small={false}
+ style={
+ {
+ "marginVertical": 16,
+ }
+ }
+ />
+ </SolidCard>
+</View>
+`;
+
exports[`CelebrationCard matches snapshot when loaded but without data 1`] = `
<View
style={
--- core/__tests__/home/components/CelebrationCard/indexTest.tsx
@@ -53,12 +53,17 @@ const baseProps = {
const reload = jest.fn();
describe('CelebrationCard', () => {
+ /*
+ The tests are written in a way that the selectors are mocked in order.
+ New selectors need to be added in the same order as they are mocked here.
+ */
mockUseSelector.mockReturnValueOnce('100'); // siteId
mockUseSelector.mockReturnValueOnce('Store/Club'); // domain
mockUseSelector.mockReturnValueOnce('jdoe.s00100'); // fullUserId
mockUseSelector.mockReturnValueOnce({timeZoneId: 'America/New_York'}); // site Timezone
mockUseSelector.mockReturnValueOnce(true); // isStore
mockUseAsync.mockReturnValueOnce({loading: true});
+ mockUseSelector.mockReturnValueOnce(true) // clocked in
const component = create(<CelebrationCard {...baseProps} />);
it('matches snapshot while fetching', () => {
@@ -160,4 +165,29 @@ describe('CelebrationCard', () => {
await expect(reload).toHaveBeenCalled();
expect(baseProps.onRefreshEnd).toHaveBeenCalled();
});
+
+ it('does not render the card when associate is clocked out', () => {
+ jest.clearAllMocks();
+ mockUseSelector.mockReturnValueOnce('100'); // siteId
+ mockUseSelector.mockReturnValueOnce('Store/Club'); // domain
+ mockUseSelector.mockReturnValueOnce('jdoe.s00100'); // fullUserId
+ mockUseSelector.mockReturnValueOnce({timeZoneId: 'America/New_York'}); // site Timezone
+ mockUseSelector.mockReturnValueOnce(true); // isStore
+ mockUseAsync.mockReturnValueOnce({loading: true});
+ mockUseSelector.mockReturnValueOnce(false) // clocked out
+ component.update(<CelebrationCard {...baseProps} />);
+ expect(component.toJSON()).toBe(null);
+ });
+ it('does render the card when associate is clocked in', () => {
+ jest.clearAllMocks();
+ mockUseSelector.mockReturnValueOnce('100'); // siteId
+ mockUseSelector.mockReturnValueOnce('Store/Club'); // domain
+ mockUseSelector.mockReturnValueOnce('jdoe.s00100'); // fullUserId
+ mockUseSelector.mockReturnValueOnce({timeZoneId: 'America/New_York'}); // site Timezone
+ mockUseSelector.mockReturnValueOnce(true); // isStore
+ mockUseAsync.mockReturnValueOnce({loading: true});
+ mockUseSelector.mockReturnValueOnce(true) // clocked in
+ component.update(<CelebrationCard {...baseProps} />);
+ expect(component.toJSON()).toMatchSnapshot();
+ });
});
--- core/src/home/components/CelebrationCard/index.tsx
@@ -11,6 +11,7 @@ import {
colors,
} from '@walmart/gtp-shared-components';
import {UserSelectors} from '@walmart/allspark-foundation/User';
+import {ClockSelectors} from '@walmart/allspark-foundation/Clock';
import {SiteSelectors} from '@walmart/allspark-foundation/Site';
import {useAsync} from '@walmart/allspark-utils';
@@ -34,6 +35,7 @@ export const CelebrationCard = (props: CelebrationCardProps) => {
const userId = useSelector(UserSelectors.getFullyQualifiedUserID) || '';
const timeZone = useSelector(SiteSelectors.getWorkingSiteTimeZone);
const isStore = useSelector(SiteSelectors.getWorkingSiteIsStore);
+ const isUserClockedIn = useSelector(ClockSelectors.getIsClockedIn);
const context = isStore ? 'store' : 'site';
const {loading, data, error, reload} = useAsync(fetchCelebrationData, {
@@ -86,6 +88,11 @@ export const CelebrationCard = (props: CelebrationCardProps) => {
});
};
+ // Compensable feature, do not show if user is not clocked in
+ if (!isUserClockedIn) {
+ return null;
+ }
+
return (
<View style={[styles.container, style]} testID='anniversaryCard'>
<Headline style={styles.titleText}>
--- targets/US/ios/Podfile.lock
@@ -2925,12 +2925,12 @@ SPEC CHECKSUMS:
StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1
SumoSDK: 58664bf3b83e2f4bcdfc52704235ab4bca519ceb
TOCropViewController: 80b8985ad794298fb69d3341de183f33d1853654
- topstock-mini-app: 698dcd5a265b1166eb94338659805c2df2249410
+ topstock-mini-app: ed9a902bb8e744cebbc87052dae11073125b66e3
VisionCamera: ef56ac9d3e0fef4b94c7cf75735aaccc2326e35a
walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c
WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b
wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3
- Yoga: c716aea2ee01df6258550c7505fa61b248145ced
+ Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee
PODFILE CHECKSUM: 31fb4c0013ab60f6237bdb7e5793344753be6afe
| fix: celebration card shoudnt be shown when clocked out | fix: celebration card shoudnt be shown when clocked out
|
31eef9a21ee9bd9344fab48d933f5b4f3c60318c | --- packages/allspark-foundation/__tests__/Device/sagas.test.ts
@@ -0,0 +1,31 @@
+import { select, take } from 'redux-saga/effects';
+import { waitForDeviceFetch } from '../../src/Device/sagas';
+import { DeviceActionTypes } from '../../src/Device/redux';
+import { DeviceSelectors } from '../../src/Device/selectors';
+
+describe('waitForDeviceFetch Saga', () => {
+ it('should wait for device fetch success or error and return device info', () => {
+ const generator = waitForDeviceFetch();
+ expect(generator.next().value).toEqual(select(DeviceSelectors.getLoading));
+ expect(generator.next(false).value).toEqual(select(DeviceSelectors.getLoaded));
+ expect(generator.next(false).value).toEqual(select(DeviceSelectors.getError));
+ expect(generator.next(false).value).toEqual(
+ take([DeviceActionTypes.FETCH_SUCCESS, DeviceActionTypes.FETCH_ERROR])
+ );
+ const mockDeviceInfo = { id: '123', name: 'Test Device' };
+ expect(generator.next().value).toEqual(select(DeviceSelectors.getState));
+ expect(generator.next(mockDeviceInfo).value).toEqual(mockDeviceInfo);
+ expect(generator.next().done).toBe(true);
+ });
+
+ it('should return device info immediately if already loaded', () => {
+ const generator = waitForDeviceFetch();
+ expect(generator.next().value).toEqual(select(DeviceSelectors.getLoading));
+ expect(generator.next(false).value).toEqual(select(DeviceSelectors.getLoaded));
+ expect(generator.next(true).value).toEqual(select(DeviceSelectors.getError));
+ const mockDeviceInfo = { id: '123', name: 'Test Device' };
+ expect(generator.next(mockDeviceInfo).value).toEqual(select(DeviceSelectors.getState));
+ expect(generator.next(mockDeviceInfo).value).toEqual(mockDeviceInfo);
+ expect(generator.next().done).toBe(true);
+ });
+});
| sagas device test | sagas device test
|
371d040e52d6e2d7d43154545d7422b86aa80dd7 | --- src/index.tsx
@@ -4,7 +4,7 @@ import {useSelector, useDispatch} from 'react-redux';
import {ThunkDispatch} from '@reduxjs/toolkit';
import {firebase} from '@react-native-firebase/app-check';
-import {SiteSelectors, reducerManager, addSagas} from '@walmart/redux-store';
+import {SiteSelectors, reducerManager} from '@walmart/redux-store';
import {useEnvironment} from '@walmart/core-services/Environment';
import {LoggerCloneProvider} from '@walmart/core-services/Logger';
import {HttpClientCloneProvider} from '@walmart/allspark-http-client';
@@ -71,7 +71,6 @@ export const initTextingPushNotificationListeners = initNotificationListeners;
initi18n();
reducerManager.addReducer(textingSlice.name, textingSlice.reducer);
-addSagas(DoNotDisturbAutoResetSaga);
initNotificationListeners();
export const MeganavTextingScreen = MeganavScreen;
--- src/index.tsx
@@ -4,7 +4,7 @@ import {useSelector, useDispatch} from 'react-redux';
import {ThunkDispatch} from '@reduxjs/toolkit';
import {firebase} from '@react-native-firebase/app-check';
-import {SiteSelectors, reducerManager, addSagas} from '@walmart/redux-store';
+import {SiteSelectors, reducerManager} from '@walmart/redux-store';
import {useEnvironment} from '@walmart/core-services/Environment';
import {LoggerCloneProvider} from '@walmart/core-services/Logger';
import {HttpClientCloneProvider} from '@walmart/allspark-http-client';
@@ -71,7 +71,6 @@ export const initTextingPushNotificationListeners = initNotificationListeners;
initi18n();
reducerManager.addReducer(textingSlice.name, textingSlice.reducer);
-addSagas(DoNotDisturbAutoResetSaga);
initNotificationListeners();
export const MeganavTextingScreen = MeganavScreen;
| remove runSagas | remove runSagas
|
bbdfede12418112b41cb31d51b0a47aa61f16964 | --- package.json
@@ -19,7 +19,7 @@
"build": "yarn workspaces foreach --all --topological-dev run build",
"check-expo-libs": "expo install --check",
"certify-booted-sim": "scripts/certifyBootedSim.sh",
- "coverage": "jest --coverage",
+ "coverage": "echo 'Skipping tests to test native builds' || jest --coverage",
"env:beta": "cp .env.beta .env && echo 'Use process variable NODE_ENV=beta instead'",
"env:dev": "cp .env.development .env && echo 'Use process variable NODE_ENV=development instead'",
"env:prod": "cp .env.production .env && echo 'Use process variable NODE_ENV=production instead'",
| chore: skipping coverage to test native builds | chore: skipping coverage to test native builds
|
c805a2e413f2224f855fbc020cc87ec802a5169b | --- __tests__/communications/oneToOneChatTest.tsx
@@ -3,6 +3,7 @@ import {renderWithProviders} from '../harness';
import {ChannelsProvider} from '../../src/channels';
import {TestFirestoreComponent} from '../../src/components/TestFirestoreComponent';
+import {render} from "@testing-library/react-native";
describe('One to One Chat', () => {
beforeEach(() => {
@@ -111,9 +112,7 @@ describe('One to One Chat', () => {
});
it('temporary test component', () => {
- const messageScreenForUserA = renderWithProviders(
- <TestFirestoreComponent />,
- );
+ const messageScreenForUserA = render(<TestFirestoreComponent />);
expect(messageScreenForUserA.toJSON()).toMatchSnapshot();
});
});
--- __tests__/harness/firestore/data/channels.ts
@@ -1,4 +1,4 @@
-import {createAssociateChannelId} from '../../../../src/channels';
+import {createAssociateChannelId} from '../../../../src/channels/utils';
import {encUserList, rawUserList} from './users';
import {
createAudioMessage,
--- __tests__/harness/firestore/data/index.ts
@@ -1,4 +0,0 @@
-// @ts-ignore
-import {store100Collection} from './stores';
-
-export const store100CollectionMock = store100Collection;
--- __tests__/harness/firestore/mockDatabase.ts
@@ -1,11 +1,11 @@
import {mockReactNativeFirestore} from 'firestore-jest-mock';
+import {store100Collection} from './data/stores';
// @ts-ignore
-import {store100CollectionMock} from './data';
mockReactNativeFirestore({
database: {
text_channels: [
- store100CollectionMock,
+ store100Collection,
{
id: 'STORE_1513',
_collections: {
--- __tests__/communications/oneToOneChatTest.tsx
@@ -3,6 +3,7 @@ import {renderWithProviders} from '../harness';
import {ChannelsProvider} from '../../src/channels';
import {TestFirestoreComponent} from '../../src/components/TestFirestoreComponent';
+import {render} from "@testing-library/react-native";
describe('One to One Chat', () => {
beforeEach(() => {
@@ -111,9 +112,7 @@ describe('One to One Chat', () => {
});
it('temporary test component', () => {
- const messageScreenForUserA = renderWithProviders(
- <TestFirestoreComponent />,
- );
+ const messageScreenForUserA = render(<TestFirestoreComponent />);
expect(messageScreenForUserA.toJSON()).toMatchSnapshot();
});
});
--- __tests__/harness/firestore/data/channels.ts
@@ -1,4 +1,4 @@
-import {createAssociateChannelId} from '../../../../src/channels';
+import {createAssociateChannelId} from '../../../../src/channels/utils';
import {encUserList, rawUserList} from './users';
import {
createAudioMessage,
--- __tests__/harness/firestore/data/index.ts
@@ -1,4 +0,0 @@
-// @ts-ignore
-import {store100Collection} from './stores';
-
-export const store100CollectionMock = store100Collection;
--- __tests__/harness/firestore/mockDatabase.ts
@@ -1,11 +1,11 @@
import {mockReactNativeFirestore} from 'firestore-jest-mock';
+import {store100Collection} from './data/stores';
// @ts-ignore
-import {store100CollectionMock} from './data';
mockReactNativeFirestore({
database: {
text_channels: [
- store100CollectionMock,
+ store100Collection,
{
id: 'STORE_1513',
_collections: {
| fixing harness import issues | fixing harness import issues
|
232c671d0f48a776933abc333e1ae33bac805708 | --- src/managerExperience/screens/RosterDetailScreen/ListEmptyComponent.tsx
@@ -0,0 +1,33 @@
+import React from 'react';
+import {useTranslation} from 'react-i18next';
+import {AssociateListLoading} from '../../components/AssociateList/AssociateListLoading';
+import {ListEmptyComponentProps} from './types';
+import {ErrorScreen} from '@walmart/allspark-foundation/HubFeature/Onboarding/TeamSelection/Component/ErrorScreen';
+import {ROSTER_I18N_NAMESPACE} from '../../../translations';
+import {logger} from '../../../common';
+
+export const ListEmptyComponent = ({
+ isLoading,
+ hasError,
+ errorMessage,
+ refetch,
+}: ListEmptyComponentProps) => {
+ const {t} = useTranslation([ROSTER_I18N_NAMESPACE]);
+
+ if (isLoading) {
+ return <AssociateListLoading />;
+ }
+ if (hasError) {
+ logger.error('error fetching daily roster', {message: errorMessage});
+ return (
+ <ErrorScreen
+ errorTitle={t('rosterScreen.allTeamsScreen.somethingWentWrong')}
+ errorMessage={t('rosterScreen.allTeamsScreen.refreshThisPage')}
+ buttonText={t('rosterScreen.allTeamsScreen.refreshPage')}
+ handleButtonPress={() => {
+ refetch();
+ }}
+ />
+ );
+ }
+};
--- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx
@@ -2,7 +2,6 @@ import React, {useEffect, useMemo, useState} from 'react';
import {useTranslation} from 'react-i18next';
import {ROSTER_I18N_NAMESPACE} from '../../../translations';
import {View} from 'react-native';
-import {ErrorScreen} from '@walmart/allspark-foundation/HubFeature/Onboarding/TeamSelection/Component/ErrorScreen';
import {TeamSwitcher} from '@walmart/allspark-foundation/HubFeature/Hub/TeamSwitcher';
import {RosterDetailPageHeader} from '../../components/RosterDetailPageHeader';
import {RosterFiltersAndInfo} from '../../components/RosterFiltersAndInfo';
@@ -39,8 +38,8 @@ import {StackNavigationProp} from '@react-navigation/stack';
import {TextingNavParamsMap} from '../../../navigation';
import {FlashList} from '@shopify/flash-list';
import {useSafeAreaInsets} from 'react-native-safe-area-context';
-import {AssociateListLoading} from '../../components/AssociateList/AssociateListLoading';
import {AssociateListItem} from '../../components/AssociateList/AssociateListItem';
+import {ListEmptyComponent} from './ListEmptyComponent';
export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
const {t} = useTranslation([ROSTER_I18N_NAMESPACE]);
@@ -197,18 +196,12 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
</>
}
ListEmptyComponent={
- dataLoading ? (
- <AssociateListLoading />
- ) : dataError ? (
- <ErrorScreen
- errorTitle={t('rosterScreen.allTeamsScreen.somethingWentWrong')}
- errorMessage={t('rosterScreen.allTeamsScreen.refreshThisPage')}
- buttonText={t('rosterScreen.allTeamsScreen.refreshPage')}
- handleButtonPress={() => {
- refetchRoster();
- }}
- />
- ) : null
+ <ListEmptyComponent
+ isLoading={dataLoading}
+ hasError={Boolean(dataError)}
+ errorMessage={rosterError?.message ?? ''}
+ refetch={refetchRoster}
+ />
}
renderItem={({item, index}) => (
<View style={styles.associateListContainer}>
--- src/managerExperience/screens/RosterDetailScreen/types.tsx
@@ -4,3 +4,10 @@ import {TextingNavParamsMap} from '../../../navigation';
export interface RosterDetailScreenProps {
route: RouteProp<TextingNavParamsMap, 'myTeam.rosterDetail'>;
}
+
+export interface ListEmptyComponentProps {
+ isLoading: boolean;
+ hasError: boolean;
+ errorMessage: string;
+ refetch: () => void;
+}
| feat: added logging to error and loading screen | feat: added logging to error and loading screen
|
fab13f05c0ddea32c2d0d41e9419da9d10aeaf97 | --- .looper.yml
@@ -86,15 +86,15 @@ flows:
publishMajor:
- call: preparePublish
- - (name Publish From Changes) HUSKY=0 npx lerna publish major --yes --force-publish
+ - (name Publish From Changes) HUSKY=0 npx lerna publish major -registry ${REPOSOLNS_NPM_REPO} --yes --force-publish
publishFromChanges:
- call: preparePublish
- - (name Publish From Changes) HUSKY=0 npx lerna publish --yes
+ - (name Publish From Changes) HUSKY=0 npx lerna publish -registry ${REPOSOLNS_NPM_REPO} --yes
publishAll:
- call: preparePublish
- - (name Publish All) HUSKY=0 npx lerna publish --yes --force-publish
+ - (name Publish All) HUSKY=0 npx lerna publish -registry ${REPOSOLNS_NPM_REPO} --yes --force-publish
publishFromPackage:
- call: preparePublish
@@ -106,7 +106,7 @@ flows:
publishGraduate:
- call: preparePublish
- - (name Publish From Changes) HUSKY_SKIP_HOOKS=1 npx lerna publish --yes --conventional-graduate
+ - (name Publish From Changes) HUSKY_SKIP_HOOKS=1 npx lerna publish -registry ${REPOSOLNS_NPM_REPO} --yes --conventional-graduate
sonar:
- call: coverage
| Chore: update looper.yml for registry changes | Chore: update looper.yml for registry changes
|
607a7512ba6e4676d741a74664a2ae5a449fa869 | --- __tests__/hooks/useGetSupplyChainAssociateTeamPreference.test.ts
@@ -44,11 +44,11 @@ jest.mock('@walmart/allspark-foundation', () => {
getWin: mockWin,
getSiteId: mockSiteId,
};
-
+
const mockSiteSelectors = {
getWorkingSiteIsDC: mockWorkingSiteIsDC,
};
-
+
const mockDeviceSelectors = {
getAppVersion: mockAppVersion,
};
@@ -131,20 +131,19 @@ describe('useGetSupplyChainAssociateTeamPreference', () => {
expect(mockUseGetSupplyChainAssociateTeamPreferenceQuery).toHaveBeenCalled();
const callArgs = mockUseGetSupplyChainAssociateTeamPreferenceQuery.mock.calls[0][0];
-
+
// Check structure without exact value matching
expect(callArgs).toHaveProperty('variables');
expect(callArgs).toHaveProperty('errorPolicy');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
-
+
const variables = callArgs.variables;
expect(variables).toHaveProperty('businessUnitNumber');
expect(variables).toHaveProperty('walmartIdentificationNumber');
-
+
const context = callArgs.context;
expect(context).toHaveProperty('headers');
-
+
const headers = context.headers;
expect(headers).toBeDefined();
expect(headers['wm_consumer.id']).toBeDefined();
@@ -254,20 +253,19 @@ describe('useGetSupplyChainAssociateTeamPreference', () => {
expect(mockUseGetSupplyChainAssociateTeamPreferenceQuery).toHaveBeenCalled();
const callArgs = mockUseGetSupplyChainAssociateTeamPreferenceQuery.mock.calls[0][0];
-
+
// Check structure without exact value matching
expect(callArgs).toHaveProperty('variables');
expect(callArgs).toHaveProperty('errorPolicy');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
-
+
const variables = callArgs.variables;
expect(variables).toHaveProperty('businessUnitNumber');
expect(variables).toHaveProperty('walmartIdentificationNumber');
-
+
const context = callArgs.context;
expect(context).toHaveProperty('headers');
-
+
const headers = context.headers;
expect(headers).toBeDefined();
expect(headers['wm_consumer.id']).toBeDefined();
@@ -284,7 +282,7 @@ describe('useGetSupplyChainAssociateTeamPreference', () => {
environment: 'test',
env: 'test',
});
-
+
// Update the constants mock to return the different consumerId
const constantsMock = require('../../packages/associate-exp-hub-mini-app/src/constants/constants');
constantsMock.getConsumerId.mockReturnValue('different-consumer-id');
@@ -303,20 +301,19 @@ describe('useGetSupplyChainAssociateTeamPreference', () => {
expect(mockUseGetSupplyChainAssociateTeamPreferenceQuery).toHaveBeenCalled();
const callArgs = mockUseGetSupplyChainAssociateTeamPreferenceQuery.mock.calls[0][0];
-
+
// Check structure without exact value matching
expect(callArgs).toHaveProperty('variables');
expect(callArgs).toHaveProperty('errorPolicy');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
-
+
const variables = callArgs.variables;
expect(variables).toHaveProperty('businessUnitNumber');
expect(variables).toHaveProperty('walmartIdentificationNumber');
-
+
const context = callArgs.context;
expect(context).toHaveProperty('headers');
-
+
const headers = context.headers;
expect(headers).toBeDefined();
expect(headers['wm_consumer.id']).toBe('different-consumer-id');
--- __tests__/hooks/useGetSupplyChainShifts.test.ts
@@ -151,9 +151,6 @@ describe('useGetSupplyChainShifts', () => {
expect(callArgs).toHaveProperty('skip');
expect(callArgs.skip).toBe(true);
- expect(callArgs).toHaveProperty('fetchPolicy');
- expect(callArgs.fetchPolicy).toBe('cache-first');
-
expect(callArgs).toHaveProperty('context');
expect(callArgs.context).toHaveProperty('headers');
expect(Object.keys(callArgs.context.headers)).toContain('wm_consumer.id');
@@ -233,7 +230,6 @@ describe('useGetSupplyChainShifts', () => {
expect(callArgs.variables).toHaveProperty('countryCode');
expect(callArgs).toHaveProperty('skip');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
expect(callArgs.context).toHaveProperty('headers');
@@ -270,7 +266,6 @@ describe('useGetSupplyChainShifts', () => {
// Check structure without exact value matching
expect(callArgs).toHaveProperty('variables');
expect(callArgs).toHaveProperty('skip');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
const context = callArgs.context;
@@ -301,7 +296,6 @@ describe('useGetSupplyChainShifts', () => {
// Check structure without exact value matching
expect(callArgs).toHaveProperty('variables');
expect(callArgs).toHaveProperty('skip');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
const variables = callArgs.variables;
--- __tests__/hooks/useGetTeamsByStore.test.ts
@@ -116,7 +116,6 @@ describe('useGetTeamsByStore - Enhanced Tests with Centralized Mock Data', () =>
// Check structure without exact value matching
expect(callArgs).toHaveProperty('variables');
expect(callArgs).toHaveProperty('errorPolicy');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
const variables = callArgs.variables;
@@ -234,7 +233,6 @@ describe('useGetTeamsByStore - Enhanced Tests with Centralized Mock Data', () =>
// Check structure without exact value matching
expect(callArgs).toHaveProperty('variables');
expect(callArgs).toHaveProperty('errorPolicy');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
const variables = callArgs.variables;
@@ -285,7 +283,6 @@ describe('useGetTeamsByStore - Enhanced Tests with Centralized Mock Data', () =>
// Check structure without exact value matching
expect(callArgs).toHaveProperty('variables');
expect(callArgs).toHaveProperty('errorPolicy');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
const variables = callArgs.variables;
@@ -333,7 +330,6 @@ describe('useGetTeamsByStore - Enhanced Tests with Centralized Mock Data', () =>
// Check structure without exact value matching
expect(callArgs).toHaveProperty('variables');
expect(callArgs).toHaveProperty('errorPolicy');
- expect(callArgs).toHaveProperty('fetchPolicy');
expect(callArgs).toHaveProperty('context');
const variables = callArgs.variables;
| feat(ui): update fetch and error policy for all the queries unit tests | feat(ui): update fetch and error policy for all the queries unit tests
|
9c72bf1d45d983cdd2a0191f9320525bb9f535af | --- packages/allspark-foundation-hub/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.25.21](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.20...@walmart/allspark-foundation-hub@1.25.21) (2025-12-16)
+
+### Bug Fixes
+
+- **onboarding:** add user already onboarded to context SMDV-8929 ([#534](https://gecgithub01.walmart.com/allspark/allspark/issues/534)) ([ce1a1ad](https://gecgithub01.walmart.com/allspark/allspark/commit/ce1a1ad6f1fe96870a3516db0916172d7b0155b0))
+
## [1.25.20](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.19...@walmart/allspark-foundation-hub@1.25.20) (2025-12-16)
**Note:** Version bump only for package @walmart/allspark-foundation-hub
--- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.25.20",
+ "version": "1.25.21",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/allspark-foundation-hub@1.25.21
|
8789b314d73d0ade5ecd5588d1771e8af3eb869a | --- src/presence/provider.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable react-hooks/exhaustive-deps,no-spaced-func */
+/* eslint-disable react-hooks/exhaustive-deps */
import React, {PropsWithChildren, useMemo, useRef, useState} from 'react';
import firestore from '@react-native-firebase/firestore';
@@ -22,8 +22,8 @@ export const PresenceProvider = (props: PropsWithChildren<{}>) => {
const watchersById = useRef<Record<string, number>>({});
- // eslint-disable-next-line no-spaced-func
- const unsubscribeById = useRef<Record<string, (() => void) | undefined>>({});
+ type NoOpFunc = () => void;
+ const unsubscribeById = useRef<Record<string, NoOpFunc | undefined>>({});
const subscriptionOn = (id: string) => {
watchersById.current[id] = (watchersById.current[id] || 0) + 1;
--- src/presence/provider.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable react-hooks/exhaustive-deps,no-spaced-func */
+/* eslint-disable react-hooks/exhaustive-deps */
import React, {PropsWithChildren, useMemo, useRef, useState} from 'react';
import firestore from '@react-native-firebase/firestore';
@@ -22,8 +22,8 @@ export const PresenceProvider = (props: PropsWithChildren<{}>) => {
const watchersById = useRef<Record<string, number>>({});
- // eslint-disable-next-line no-spaced-func
- const unsubscribeById = useRef<Record<string, (() => void) | undefined>>({});
+ type NoOpFunc = () => void;
+ const unsubscribeById = useRef<Record<string, NoOpFunc | undefined>>({});
const subscriptionOn = (id: string) => {
watchersById.current[id] = (watchersById.current[id] || 0) + 1;
| fix lint warning | fix lint warning
|
bf400feed27a3d466a63dc6d82a11404aa5abda4 | --- packages/me-at-walmart-common/src/components/Metrics.ts
@@ -4,8 +4,28 @@ import { AllsparkComponentContainers } from '@walmart/allspark-foundation/Compon
export type PayloadStatusType = 'ok' | 'stale' | 'failed';
export interface MetricsWidgetProps {
+ /**
+ * Used to report the status of your data/network request to the metrics-mini-app, since we handle each scenario differently.
+ * - If the network request was successful you will call onNetworkCallback('ok' ).
+ * - If the network failed but you have stale cache to show, you will call onNetworkCallback('stale').
+ * - Note that it is a business requirement to keep the cache even when stale, since it is better to show old data than no data at all.
+ * - If the request failed and there is no cache to fallback to, you will use onNetworkCallback('failed').
+ */
onNetworkCallback: (payloadStatus: PayloadStatusType) => void;
+ /**
+ * Store departments. This is an optional prop only if your metric is not broken down by departments, for example store safety.
+ * - Sometimes we may only want to show the data of a specific team, we will send the department numbers that are part of that team, so that you can query the data based on those.
+ */
teamDepartments?: number[];
+ /**
+ * Whether or not the parent component is refreshing.
+ */
+ refresh: boolean;
+ /**
+ * Call this function when the parent component is refreshing.
+ * @param refreshPromise - Use this if an async action needs to be performed related to reloading the widget. It helps the parent to track the loading progress of each widget.
+ */
+ onRefresh: (refreshPromise?: () => Promise<void>) => void;
style?: StyleProp<ViewStyle>;
}
| chore: update metrics widget props | chore: update metrics widget props
|
9be8f254b4982873c1ce05d711969d164bbff4bd | --- .looper-pr.yml
@@ -0,0 +1,11 @@
+inherit: "job:///metropolis/metroloop/metroloop-parent"
+
+tools:
+ nodejs: 12.4.0
+
+flows:
+ pr:
+ - npm install
+ - npm run env:dev
+ - npm run lint
+ - npm run coverage
| adding pr checks looper file | adding pr checks looper file
|
803bbaf2217ef189e9477fdac8094ba6dc31e959 | --- __tests__/utils/teams-test.ts
@@ -20,6 +20,22 @@ describe('groupTeamsByWorkgroupTransform', () => {
expect(Object.keys(transformedTeams)).toEqual(expectedWorkGroups);
});
+ it('should have expected teams under the stocking category', () => {
+ const transformedTeams = groupTeamsByWorkgroupTransform(
+ getTeamsByStoreData as Team[],
+ );
+ const actualTeamNames = transformedTeams.Stocking.map((team) => {
+ return team.teamName;
+ });
+ const expectedTeamNames = [
+ 'Stocking ON',
+ 'Stocking Day 1',
+ 'Stocking Day 2',
+ 'Remodel',
+ ];
+ expect(actualTeamNames).toEqual(expectedTeamNames);
+ });
+
it('should have expected teams under the GM category', () => {
const transformedTeams = groupTeamsByWorkgroupTransform(
getTeamsByStoreData as Team[],
@@ -56,19 +72,37 @@ describe('groupTeamsByWorkgroupTransform', () => {
expect(actualTeamNames).toEqual(expectedTeamNames);
});
- it('should have expected teams under the stocking category', () => {
+ it('should exclude users own team from their workgroup if primaryTeamId is included ', () => {
+ const deliBakeryTeamId = '1000329';
const transformedTeams = groupTeamsByWorkgroupTransform(
getTeamsByStoreData as Team[],
+ deliBakeryTeamId,
);
- const actualTeamNames = transformedTeams.Stocking.map((team) => {
+ const actualTeamNames = transformedTeams['Food & Consumables'].map(
+ (team) => {
+ return team.teamName;
+ },
+ );
+ const expectedTeamNames = ['Meat/Produce', 'Food/Consumables'];
+ expect(actualTeamNames).toEqual(expectedTeamNames);
+ });
+
+ it('should create workgroup for users own team if primaryTeamId is included', () => {
+ const deliBakeryTeamId = '1000329';
+ const transformedTeams = groupTeamsByWorkgroupTransform(
+ getTeamsByStoreData as Team[],
+ deliBakeryTeamId,
+ );
+
+ const actualTeamNames = transformedTeams.myTeamWorkGroup.map((team) => {
return team.teamName;
});
- const expectedTeamNames = [
- 'Stocking ON',
- 'Stocking Day 1',
- 'Stocking Day 2',
- 'Remodel',
- ];
- expect(actualTeamNames).toEqual(expectedTeamNames);
+
+ const expectedTeamName = ['Deli/Bakery'];
+
+ expect(actualTeamNames.length).toEqual(1);
+ expect(actualTeamNames).toEqual(expectedTeamName);
});
+
+ it('teams without a workgroup or with an "other" workgroup category show in the "other" workgroup', () => {});
});
--- src/utils/teams.ts
@@ -4,16 +4,23 @@ import {isNil} from 'lodash';
type GroupedTeamData = {
[key: string]: Team[];
};
+const OTHER_WORKGROUP = 'other';
-//TODO: Unit test this method
-export const groupTeamsByWorkgroupTransform = (teams: Team[]) => {
+export const groupTeamsByWorkgroupTransform = (
+ teams: Team[],
+ primaryTeamId?: string,
+) => {
return teams.reduce((groupedTeamData: GroupedTeamData, teamDataEntry) => {
- const workgroup = teamDataEntry?.workgroup || 'Other';
-
- if (isNil(groupedTeamData[workgroup])) {
- groupedTeamData[workgroup] = [];
+ if (!isNil(primaryTeamId) && teamDataEntry?.teamId === primaryTeamId) {
+ groupedTeamData.myTeamWorkGroup = [teamDataEntry];
+ return groupedTeamData;
+ } else {
+ const workgroup = teamDataEntry?.workgroup || OTHER_WORKGROUP;
+ if (isNil(groupedTeamData[workgroup])) {
+ groupedTeamData[workgroup] = [];
+ }
+ groupedTeamData[workgroup].push(teamDataEntry);
+ return groupedTeamData;
}
- groupedTeamData[workgroup].push(teamDataEntry);
- return groupedTeamData;
}, {});
};
--- __tests__/utils/teams-test.ts
@@ -20,6 +20,22 @@ describe('groupTeamsByWorkgroupTransform', () => {
expect(Object.keys(transformedTeams)).toEqual(expectedWorkGroups);
});
+ it('should have expected teams under the stocking category', () => {
+ const transformedTeams = groupTeamsByWorkgroupTransform(
+ getTeamsByStoreData as Team[],
+ );
+ const actualTeamNames = transformedTeams.Stocking.map((team) => {
+ return team.teamName;
+ });
+ const expectedTeamNames = [
+ 'Stocking ON',
+ 'Stocking Day 1',
+ 'Stocking Day 2',
+ 'Remodel',
+ ];
+ expect(actualTeamNames).toEqual(expectedTeamNames);
+ });
+
it('should have expected teams under the GM category', () => {
const transformedTeams = groupTeamsByWorkgroupTransform(
getTeamsByStoreData as Team[],
@@ -56,19 +72,37 @@ describe('groupTeamsByWorkgroupTransform', () => {
expect(actualTeamNames).toEqual(expectedTeamNames);
});
- it('should have expected teams under the stocking category', () => {
+ it('should exclude users own team from their workgroup if primaryTeamId is included ', () => {
+ const deliBakeryTeamId = '1000329';
const transformedTeams = groupTeamsByWorkgroupTransform(
getTeamsByStoreData as Team[],
+ deliBakeryTeamId,
);
- const actualTeamNames = transformedTeams.Stocking.map((team) => {
+ const actualTeamNames = transformedTeams['Food & Consumables'].map(
+ (team) => {
+ return team.teamName;
+ },
+ );
+ const expectedTeamNames = ['Meat/Produce', 'Food/Consumables'];
+ expect(actualTeamNames).toEqual(expectedTeamNames);
+ });
+
+ it('should create workgroup for users own team if primaryTeamId is included', () => {
+ const deliBakeryTeamId = '1000329';
+ const transformedTeams = groupTeamsByWorkgroupTransform(
+ getTeamsByStoreData as Team[],
+ deliBakeryTeamId,
+ );
+
+ const actualTeamNames = transformedTeams.myTeamWorkGroup.map((team) => {
return team.teamName;
});
- const expectedTeamNames = [
- 'Stocking ON',
- 'Stocking Day 1',
- 'Stocking Day 2',
- 'Remodel',
- ];
- expect(actualTeamNames).toEqual(expectedTeamNames);
+
+ const expectedTeamName = ['Deli/Bakery'];
+
+ expect(actualTeamNames.length).toEqual(1);
+ expect(actualTeamNames).toEqual(expectedTeamName);
});
+
+ it('teams without a workgroup or with an "other" workgroup category show in the "other" workgroup', () => {});
});
--- src/utils/teams.ts
@@ -4,16 +4,23 @@ import {isNil} from 'lodash';
type GroupedTeamData = {
[key: string]: Team[];
};
+const OTHER_WORKGROUP = 'other';
-//TODO: Unit test this method
-export const groupTeamsByWorkgroupTransform = (teams: Team[]) => {
+export const groupTeamsByWorkgroupTransform = (
+ teams: Team[],
+ primaryTeamId?: string,
+) => {
return teams.reduce((groupedTeamData: GroupedTeamData, teamDataEntry) => {
- const workgroup = teamDataEntry?.workgroup || 'Other';
-
- if (isNil(groupedTeamData[workgroup])) {
- groupedTeamData[workgroup] = [];
+ if (!isNil(primaryTeamId) && teamDataEntry?.teamId === primaryTeamId) {
+ groupedTeamData.myTeamWorkGroup = [teamDataEntry];
+ return groupedTeamData;
+ } else {
+ const workgroup = teamDataEntry?.workgroup || OTHER_WORKGROUP;
+ if (isNil(groupedTeamData[workgroup])) {
+ groupedTeamData[workgroup] = [];
+ }
+ groupedTeamData[workgroup].push(teamDataEntry);
+ return groupedTeamData;
}
- groupedTeamData[workgroup].push(teamDataEntry);
- return groupedTeamData;
}, {});
};
| adding unit tests | adding unit tests
|
604ceb1c45600e9f252b1a0da3b72470510d760a | --- env.beta.js
@@ -25,5 +25,5 @@ export default {
allsparkService:
'https://developer.api.walmart.com/api-proxy/service/allspark/api/v1',
rbacAppId: '55fa784a-f748-4fe3-91a8-4019e102772c',
- RMA_MEGA_NAV_ID: '01d285d7-6ec4-45e1-96a5-74365d3b8a6d',
+ RMA_MEGA_NAV_ID: '12068058-e50c-4714-80f2-577ed0b33018',
};
--- env.prod.js
@@ -25,5 +25,5 @@ export default {
allsparkService:
'https://developer.api.walmart.com/api-proxy/service/allspark/api/v1',
rbacAppId: '55fa784a-f748-4fe3-91a8-4019e102772c',
- RMA_MEGA_NAV_ID: '01d285d7-6ec4-45e1-96a5-74365d3b8a6d',
+ RMA_MEGA_NAV_ID: '12068058-e50c-4714-80f2-577ed0b33018',
};
--- package-lock.json
@@ -4263,7 +4263,7 @@
"@walmart/gtp-shared-components": {
"version": "1.2.0",
"resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-1.2.0.tgz",
- "integrity": "sha512-OxDrYdXQeR22V+aTBNqQHRJFyIOlOkp2erG4KS+0lEWWve1EApNHNyPgIbFQbydtWn1rybwFossRsVszkr2XKQ==",
+ "integrity": "sha1-uZ6zL5R12W20AFyA5eFskWpu0Iw=",
"requires": {
"@react-native-community/datetimepicker": "^3.0.8",
"@react-native-community/picker": "^1.6.5",
| RMA Meganav PROD AppID added | RMA Meganav PROD AppID added
|
dc3c0d6a471143a4c6f866380746f573c8425978 | --- package-lock.json
@@ -62,7 +62,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/pay-stub-miniapp": "0.9.7",
- "@walmart/payrollsolution_miniapp": "0.130.6",
+ "@walmart/payrollsolution_miniapp": "^0.130.11",
"@walmart/price-changes-mini-app": "1.6.10",
"@walmart/profile-feature-app": "0.76.0",
"@walmart/push-to-talk-mini-app": "1.8.38",
@@ -5497,9 +5497,9 @@
}
},
"node_modules/@walmart/payrollsolution_miniapp": {
- "version": "0.130.6",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.6.tgz",
- "integrity": "sha512-nFw7oliKByS+TccYSwdj+9vXXwwA/eZUK2zpWrfkicyxwlolVmDmXcmVvUYg3Fenp2F+oYb2jn/hNZ6ljCjjJg==",
+ "version": "0.130.11",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.11.tgz",
+ "integrity": "sha512-BHppu7Zn62nWzkqXh3CnQsYtz0QwZNTrP4MVkCYKatRUuLLRZfIzWroUJSCUo1LUsY3ZOTg0qEPuUKZRvPgkBQ==",
"dependencies": {
"crypto-js": "^3.3.0"
},
@@ -24963,9 +24963,9 @@
}
},
"@walmart/payrollsolution_miniapp": {
- "version": "0.130.6",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.6.tgz",
- "integrity": "sha512-nFw7oliKByS+TccYSwdj+9vXXwwA/eZUK2zpWrfkicyxwlolVmDmXcmVvUYg3Fenp2F+oYb2jn/hNZ6ljCjjJg==",
+ "version": "0.130.11",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.11.tgz",
+ "integrity": "sha512-BHppu7Zn62nWzkqXh3CnQsYtz0QwZNTrP4MVkCYKatRUuLLRZfIzWroUJSCUo1LUsY3ZOTg0qEPuUKZRvPgkBQ==",
"requires": {
"crypto-js": "^3.3.0"
}
--- package.json
@@ -73,7 +73,6 @@
"@react-navigation/stack": "^6.1.0",
"@sharcoux/slider": "^6.1.1",
"@terrylinla/react-native-sketch-canvas": "0.8.0",
- "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/allspark-home-mini-app": "0.6.14",
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "0.2.13",
@@ -103,8 +102,9 @@
"@walmart/metrics-mini-app": "0.9.34",
"@walmart/mod-flex-mini-app": "1.3.14",
"@walmart/moment-walmart": "1.0.4",
+ "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/pay-stub-miniapp": "0.9.7",
- "@walmart/payrollsolution_miniapp": "0.130.6",
+ "@walmart/payrollsolution_miniapp": "0.130.11",
"@walmart/price-changes-mini-app": "1.6.10",
"@walmart/profile-feature-app": "0.76.0",
"@walmart/push-to-talk-mini-app": "1.8.38",
| bump version | bump version
|
4b7169f4de53015f2cd49dcdbed4c1c037410607 | --- .looper.multibranch.yml
@@ -607,11 +607,11 @@ flows:
- var(END_TIME):
date +%s
- var(TIME_ELAPSED):
- $(($END_TIME-$START_TIME))
+ echo $(($START_TIME - $END_TIME))
- var(MINUTES):
- $((($TIME_ELAPSED%3600)/60))
+ echo $((($TIME_ELAPSED%3600)/60))
- var(SECONDS):
- $(((($TIME_ELAPSED%3600)/60)%60))
+ echo $(((($TIME_ELAPSED%3600)/60)%60))
- slack.postMessage:
message: $MESSAGE_TITLE
channelId: ${slackChannel}
| Update .looper.multibranch.yml | Update .looper.multibranch.yml
|
628fcdfbcb9681e00b38467ca05e7cdcf073749a | --- sr.yaml
@@ -25,6 +25,8 @@ applications:
consumerIdInfos:
- consumerId: 6513bb4d-28f3-46c1-8640-2e40d2f8f789
publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTiCdaphHXOphTEkN61zyYWfT1lzPaU848s/7cYyAUzF3lStLxgbXC7G03ga9v+W9xG3tJ4D+dwsyaxYZEsAYPgHiuE5zhC169I9w/NwOSlfgawcm7HWA/rYFdSmcbFoIOFMqMLl8joK8ki5Ouh8wwwnYmivfiXx2KjhZBoAqJoec/9Xpfy+EAwhSz5IksjiIvGanmfa2eXQH95oYQIf3WypwfwPRsFeblCH3OWIkLxs8l11Udu91VC07kKIlzWHTCElJoEnHJK9nd6vYhNzh1Xd5Zp97CYdwnMavLx6KoDIBQk/J9dT+usna/T3myOCIowzRpv4ix2rhDt0r/AC2QIDAQAB
+ - name: dev
+ type: DEVELOPMENT
consumerIdInfos:
- consumerId: 5d6a7e07-36ab-43e3-b378-30fa908abe9d
- publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTiCdaphHXOphTEkN61zyYWfT1lzPaU848s/7cYyAUzF3lStLxgbXC7G03ga9v+W9xG3tJ4D+dwsyaxYZEsAYPgHiuE5zhC169I9w/NwOSlfgawcm7HWA/rYFdSmcbFoIOFMqMLl8joK8ki5Ouh8wwwnYmivfiXx2KjhZBoAqJoec/9Xpfy+EAwhSz5IksjiIvGanmfa2eXQH95oYQIf3WypwfwPRsFeblCH3OWIkLxs8l11Udu91VC07kKIlzWHTCElJoEnHJK9nd6vYhNzh1Xd5Zp97CYdwnMavLx6KoDIBQk/J9dT+usna/T3myOCIowzRpv4ix2rhDt0r/AC2QIDAQAB
\ No newline at end of file
+ publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTiCdaphHXOphTEkN61zyYWfT1lzPaU848s/7cYyAUzF3lStLxgbXC7G03ga9v+W9xG3tJ4D+dwsyaxYZEsAYPgHiuE5zhC169I9w/NwOSlfgawcm7HWA/rYFdSmcbFoIOFMqMLl8joK8ki5Ouh8wwwnYmivfiXx2KjhZBoAqJoec/9Xpfy+EAwhSz5IksjiIvGanmfa2eXQH95oYQIf3WypwfwPRsFeblCH3OWIkLxs8l11Udu91VC07kKIlzWHTCElJoEnHJK9nd6vYhNzh1Xd5Zp97CYdwnMavLx6KoDIBQk/J9dT+usna/T3myOCIowzRpv4ix2rhDt0r/AC2QIDAQAB
| Adding name and type for dev | Adding name and type for dev
|
ecfa3f14c3090188ced59f11464473a61d5a8caf | --- packages/allspark-foundation/src/Components/ComponentContainers.tsx
@@ -344,7 +344,7 @@ class ComponentContainerManager<ParamList extends Record<string, any>> {
// @ts-ignore
this.register(containerId, container);
- return container;
+ return container as ComponentContainer<ParamList[string]>;
};
/**
| chore: type fix for component containers create method | chore: type fix for component containers create method
|
bb1f29e0d9e438419a1a826973088a8f62735749 | --- package-lock.json
@@ -74,7 +74,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.13.5",
+ "@walmart/receipt-check-miniapp": "1.14.2",
"@walmart/redux-store": "3.3.1",
"@walmart/returns-mini-app": "1.5.0",
"@walmart/schedule-mini-app": "0.37.0",
@@ -5818,7 +5818,9 @@
}
},
"node_modules/@walmart/receipt-check-miniapp": {
- "version": "1.13.5",
+ "version": "1.14.2",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.2.tgz",
+ "integrity": "sha512-ab6mAvocwcRoFzTSFlxfdgQAAj9tfmirbcJUM0hvg8oKWMxzoWWsPfGI7OI38/oGuwhuvsRCn++fZzOB0b+CrA==",
"dependencies": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
@@ -25334,7 +25336,9 @@
"version": "2.5.1"
},
"@walmart/receipt-check-miniapp": {
- "version": "1.13.5",
+ "version": "1.14.2",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.2.tgz",
+ "integrity": "sha512-ab6mAvocwcRoFzTSFlxfdgQAAj9tfmirbcJUM0hvg8oKWMxzoWWsPfGI7OI38/oGuwhuvsRCn++fZzOB0b+CrA==",
"requires": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
--- package.json
@@ -116,7 +116,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.13.5",
+ "@walmart/receipt-check-miniapp": "1.14.2",
"@walmart/redux-store": "3.3.1",
"@walmart/returns-mini-app": "1.5.0",
"@walmart/schedule-mini-app": "0.37.0",
| update version | update version
|
6f6548a880d427e64a9baaf21bdf4a4526a8e2b4 | --- package-lock.json
@@ -3283,9 +3283,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.30.6",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.6.tgz",
- "integrity": "sha512-qKNH6cLQWeeqGS3RS8I/s2xzCZdXNBfoHIQFLynNbOG+ob2FjQSKEmlF/8UeJ6K7gXRmgmV1gMJUOdv5wku6JQ==",
+ "version": "0.30.7",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.7.tgz",
+ "integrity": "sha512-mccXtxnNMRk1LgksLO3fUyHMZRVpJ0Xx2yoVEa7h5bL5166A7lRCCEHyU0nxzd+cev6rc3uwdMFHPdcf+JV77w==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
--- package.json
@@ -67,7 +67,7 @@
"@walmart/allspark-home-mini-app": "0.4.21",
"@walmart/metrics-mini-app": "0.0.27",
"@walmart/allspark-me-mini-app": "0.1.0",
- "@walmart/ask-sam-mini-app": "0.30.6",
+ "@walmart/ask-sam-mini-app": "0.30.7",
"@walmart/config-components": "^1.0.26",
"@walmart/counts-component-miniapp": "0.0.14",
"@walmart/exception-mini-app": "0.28.0",
| Incrementing ask sam version | Incrementing ask sam version
|
d1d84fe7f6e8a07a7440d32f60c102cdb0fef7c0 | --- package.json
@@ -99,7 +99,7 @@
"@walmart/iteminfo-mini-app": "5.3.5",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.1.45",
- "@walmart/metrics-mini-app": "0.9.45",
+ "@walmart/metrics-mini-app": "0.9.46",
"@walmart/mod-flex-mini-app": "1.4.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.14",
| metrics version bump for supply chain requirements | metrics version bump for supply chain requirements
|
b8561aa6c4c3cb6d522392ed58384ae2b05baf43 | --- jest.config.js
@@ -25,4 +25,5 @@ module.exports = {
'<rootDir>/__tests__/__mocks__/',
'<rootDir>/__tests__/harness/',
],
+ // silent: true, //Uncomment to suppress error and warnings in test output
};
--- jest.config.js
@@ -25,4 +25,5 @@ module.exports = {
'<rootDir>/__tests__/__mocks__/',
'<rootDir>/__tests__/harness/',
],
+ // silent: true, //Uncomment to suppress error and warnings in test output
};
| comment out the silent by default config | comment out the silent by default config
|
acb1e8e6ef806698a7be83e12246024cef67b61f | --- targets/US/package.json
@@ -91,7 +91,7 @@
"@walmart/avp-shared-library": "0.10.1",
"@walmart/backroom-mini-app": "1.7.5",
"@walmart/calling-mini-app": "0.5.17",
- "@walmart/checkout-mini-app": "4.0.17",
+ "@walmart/checkout-mini-app": "4.0.18",
"@walmart/compass-sdk-rn": "5.19.15",
"@walmart/config-components": "4.5.2",
"@walmart/core-services": "~6.5.2",
--- yarn.lock
@@ -6152,9 +6152,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/checkout-mini-app@npm:4.0.17":
- version: 4.0.17
- resolution: "@walmart/checkout-mini-app@npm:4.0.17"
+"@walmart/checkout-mini-app@npm:4.0.18":
+ version: 4.0.18
+ resolution: "@walmart/checkout-mini-app@npm:4.0.18"
dependencies:
"@stomp/stompjs": "npm:^7.0.0"
cpc-input: "npm:^1.7.28"
@@ -6192,7 +6192,7 @@ __metadata:
react-native-safe-area-context: "*"
react-redux: ^8.1.3
redux: ^4.0.5
- checksum: 10c0/fc9296b1c5ed552e42b5533441d1721ee22723e2e2c6e750fc5e75ad0f040e824e756c10442a97de43495c83e87ba7406063b5aeeda97d64a49796b92084af9e
+ checksum: 10c0/f6e5a8de9e2e04659021d44636c7b02ee9914075470a5d79885cbfd48aa5282dc090e237be234bd5d0cce1cfa1e3197a52d4404a2fc523c124feb8806778d620
languageName: node
linkType: hard
@@ -7002,7 +7002,7 @@ __metadata:
"@walmart/avp-shared-library": "npm:0.10.1"
"@walmart/backroom-mini-app": "npm:1.7.5"
"@walmart/calling-mini-app": "npm:0.5.17"
- "@walmart/checkout-mini-app": "npm:4.0.17"
+ "@walmart/checkout-mini-app": "npm:4.0.18"
"@walmart/compass-sdk-rn": "npm:5.19.15"
"@walmart/config-components": "npm:4.5.2"
"@walmart/core-services": "npm:~6.5.2"
| CO : 4.0.18 | CO : 4.0.18
|
f38f0f0c3fbde05bf3a9a95d410dfa63bdc8e7b7 | --- graphql.yml
@@ -1,6 +1,9 @@
schemaVersion: "1.0.0"
enableGating: true
teamRostersProductId: 1824
+notify:
+ slack:
+ channelName: "smdv-miniapp"
applications:
- name: "ROSTER-MINIAPP"
applicationKey: "ROSTER-MINIAPP"
| fix: revert yml config | fix: revert yml config
|
3fd901f3a8ac062c7c80ad195f3fd87a6c190dac | --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx
@@ -50,7 +50,7 @@ import {
SelfIdNav,
} from '@walmart/profile-feature-app';
import {App as ReceiptCheckMiniApp} from '@walmart/receipt-check-miniapp';
-import {ReturnsMiniApp} from '@walmart/returns-mini-app';
+import ReturnsMiniApp from '@walmart/returns-mini-app';
import RfidScanFeature from '@walmart/rfid-scan-mini-app';
import ReceivingRootApp from '@walmart/rn-receiving-mini-app';
import ShelfAvailabilityFeature from '@walmart/shelfavailability-mini-app';
@@ -154,15 +154,6 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [
},
clockCheckEnabled: true,
},
- {
- featureId: MINI_APPS.CHECKOUT_RETURN,
- name: 'Returns',
- component: ReturnsMiniApp,
- options: {
- headerShown: false,
- },
- clockCheckEnabled: true,
- },
{
featureId: 'backroom',
name: 'Backroom',
@@ -620,6 +611,9 @@ export const MainStackNav = () => {
{RfidScanFeature.buildAllScreens({
Navigator: MainStack as any,
})}
+ {ReturnsMiniApp.buildAllScreens({
+ Navigator: MainStack as any,
+ })}
</MainStack.Navigator>
</>
);
--- targets/US/package.json
@@ -142,7 +142,7 @@
"@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.4.3#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.4.3-2621d9f1df.patch",
"@walmart/receipt-check-miniapp": "1.27.3",
"@walmart/redux-store": "~6.3.28",
- "@walmart/returns-mini-app": "4.16.3",
+ "@walmart/returns-mini-app": "4.16.4",
"@walmart/rfid-scan-mini-app": "2.7.1",
"@walmart/rn-mobile-sdk-pairing": "2.0.4",
"@walmart/rn-receiving-mini-app": "2.4.45",
--- yarn.lock
@@ -7379,7 +7379,7 @@ __metadata:
"@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.4.3#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.4.3-2621d9f1df.patch"
"@walmart/receipt-check-miniapp": "npm:1.27.3"
"@walmart/redux-store": "npm:~6.3.28"
- "@walmart/returns-mini-app": "npm:4.16.3"
+ "@walmart/returns-mini-app": "npm:4.16.4"
"@walmart/rfid-scan-mini-app": "npm:2.7.1"
"@walmart/rn-mobile-sdk-pairing": "npm:2.0.4"
"@walmart/rn-receiving-mini-app": "npm:2.4.45"
@@ -8056,9 +8056,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/returns-mini-app@npm:4.16.3":
- version: 4.16.3
- resolution: "@walmart/returns-mini-app@npm:4.16.3"
+"@walmart/returns-mini-app@npm:4.16.4":
+ version: 4.16.4
+ resolution: "@walmart/returns-mini-app@npm:4.16.4"
dependencies:
"@walmart/common-utilities-js": "npm:^1.2.10"
"@walmart/virtual-zpl-printer-model": "npm:^0.2.11"
@@ -8084,7 +8084,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/aaf23fb863498e5e4565840b953c04fd91c00e99cda3d8fcc20f6250346a2fe15b2e538c778c52be7ba574c32d0d316c72110c078f27b79ab53051ffe3fb661b
+ checksum: 10c0/6c4e8f89f0fde4f5f8e2f72ac9edbd4363e8477899b66b5e978c3929d130332da9cf3ef735e7b555f05e17fc05375db3ef6b527cb9b0a96793a0238b35eb3562
languageName: node
linkType: hard
| chore(ui): fix returns crahsing issue | chore(ui): fix returns crahsing issue
|
75562011754ddc9a601299aa113c468aca9fd9a6 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "3.8.7",
+ "version": "3.8.8",
"main": "dist/index.js",
"files": [
"dist",
@@ -91,7 +91,7 @@
"@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.15.8#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.15.8-6fb92a01bb.patch",
"@walmart/react-native-sumo-sdk": "patch:@walmart/react-native-sumo-sdk@npm%3A2.8.0#~/.yarn/patches/@walmart-react-native-sumo-sdk-npm-2.8.0-31dfe1d845.patch",
"@walmart/ui-components": "1.26.3-423-05e66f8",
- "@walmart/wmconnect-mini-app": "3.7.7",
+ "@walmart/wmconnect-mini-app": "3.7.8",
"babel-jest": "^29.6.3",
"chance": "^1.1.11",
"crypto-js": "~4.2.0",
--- yarn.lock
@@ -8387,7 +8387,7 @@ __metadata:
"@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.15.8#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.15.8-6fb92a01bb.patch"
"@walmart/react-native-sumo-sdk": "patch:@walmart/react-native-sumo-sdk@npm%3A2.8.0#~/.yarn/patches/@walmart-react-native-sumo-sdk-npm-2.8.0-31dfe1d845.patch"
"@walmart/ui-components": "npm:1.26.3-423-05e66f8"
- "@walmart/wmconnect-mini-app": "npm:3.7.7"
+ "@walmart/wmconnect-mini-app": "npm:3.7.8"
babel-jest: "npm:^29.6.3"
chance: "npm:^1.1.11"
crypto-js: "npm:~4.2.0"
@@ -8478,12 +8478,11 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:3.7.7":
- version: 3.7.7
- resolution: "@walmart/wmconnect-mini-app@npm:3.7.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.7.7.tgz"
+"@walmart/wmconnect-mini-app@npm:3.7.8":
+ version: 3.7.8
+ resolution: "@walmart/wmconnect-mini-app@npm:3.7.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.7.8.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=7.12.0"
- "@walmart/gtp-shared-components": ^2.3.0-rc.0
expo: ~53.0.20
expo-image: ~2.1.3
react: "*"
@@ -8492,7 +8491,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/1aca286af0816b7e5dfe0fad8b6370d6cafeb6cf26216c6ab4e185d82f737b8e8220cdb51e28f04b9f6356bc1f7d1cfd0993e7a9b3a43196f188f00dca777767
+ checksum: 10c0/b48757a9f2d614f98ea65aa2fd9baf57dd6fc3bf6492e64cf1b477089c659c0311bb0cad4c7e78a4a435c5f93c7e786f83c69df174bdee2abe7706a28e44d780
languageName: node
linkType: hard
| feat(ui): update package version | feat(ui): update package version
|
f2d496c72db2d5b3c7dee72d79a7aff31db44b8d | --- package.json
@@ -93,7 +93,7 @@
"@walmart/me-field-mini-app": "^1.1.9",
"@walmart/metrics-mini-app": "0.9.5",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/payrollsolution_miniapp": "^0.125.3",
+ "@walmart/payrollsolution_miniapp": "0.125.3",
"@walmart/price-changes-mini-app": "^1.4.6",
"@walmart/profile-feature-app": "0.0.39",
"@walmart/push-to-talk-mini-app": "1.7.14",
| fix issue | fix issue
|
9a7e51ec63651f24ffcc2701a6081ace910056fb | --- .solidarity
@@ -5,14 +5,14 @@
{
"rule": "cli",
"binary": "node",
- "semver": "^20.10"
+ "semver": "^20"
}
],
"NPM": [
{
"rule": "cli",
"binary": "npm",
- "semver": "^10.2"
+ "semver": "^9"
}
],
"CocoaPods": [
@@ -20,7 +20,7 @@
"rule": "cli",
"binary": "pod",
"platform": "darwin",
- "semver": "1.12.0"
+ "semver": ">=1.13 <1.15"
}
]
}
| chore: update solidary checks | chore: update solidary checks
|
b91c68c4abfc2808cfd9fcaca2fcf5050f5e2900 | --- package-lock.json
@@ -8362,18 +8362,20 @@
}
},
"node_modules/@walmart/allspark-utils": {
- "version": "1.5.2",
+ "version": "1.6.6",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-utils/-/allspark-utils-1.6.6.tgz",
+ "integrity": "sha512-kTUKnXfCi2HejcXf5kyYoSxKOqfXcEdP8vyEBOVlNWD2B2tBjF5T+FTjcRzDuCCUhDQwTGGewwC3iShubhhO7g==",
"license": "ISC",
"dependencies": {
- "crypto-js": "~4.1.1",
+ "crypto-js": "~4.2.0",
"lodash": "~4.17.21",
"redux": "^4.2.0",
"redux-saga": "^1.2.2",
"uuid": "~9.0.0"
},
"peerDependencies": {
- "react": "^18.2.0",
- "react-native": "~0.70.5"
+ "react": "*",
+ "react-native": "*"
}
},
"node_modules/@walmart/amp-mini-app": {
@@ -9195,6 +9197,31 @@
"wifi-store-locator": "^1.0.0-alpha2"
}
},
+ "node_modules/@walmart/manager-approvals-miniapp": {
+ "version": "0.2.4",
+ "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.2.4.tgz",
+ "integrity": "sha512-IjgpoS1xzZAm8jtEI5fpTqpwRHQXC8FORd2OpRD5vCpJ2QIKVUzhH3iCEhyjZSOWQ5rmc9miUxt5HGtLABYhTg==",
+ "hasInstallScript": true,
+ "peerDependencies": {
+ "@react-navigation/native": "^6.0.0",
+ "@react-navigation/stack": "^6.1.0",
+ "@walmart/core-services-allspark": "~1.10.11",
+ "@walmart/core-utils": "~1.3.0",
+ "@walmart/gtp-shared-components": "2.0.2",
+ "@walmart/react-native-logger": "1.31.0-rc.1",
+ "@walmart/react-native-shared-navigation": "1.0.2",
+ "i18next": "^22.0.1",
+ "jwt-decode": "^3.1.2",
+ "react": "^18.2.0",
+ "react-i18next": "^12.0.0",
+ "react-native": "0.70.5",
+ "react-native-app-auth": "^6.4.3",
+ "react-native-device-info": "^10.3.0",
+ "react-native-wm-telemetry": "0.3.0",
+ "react-redux": "^8.0.4",
+ "reselect": "^4.1.0"
+ }
+ },
"node_modules/@walmart/me-at-homeoffice-ui-components": {
"version": "1.2.140",
"resolved": "https://npme.walmart.com/@walmart/me-at-homeoffice-ui-components/-/me-at-homeoffice-ui-components-1.2.140.tgz",
@@ -9215,6 +9242,15 @@
"react-native-webview": "^11.23.1"
}
},
+ "node_modules/@walmart/me-at-walmart-athena-queries": {
+ "version": "1.7.3",
+ "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.7.3.tgz",
+ "integrity": "sha512-3ioO6FPcVDOxb609WaxlpeaOn4ojiV/htuzzTPKM5ygQb0R58LwdpypVj0oAx7OVHiKidERYWN/952+YGXlqtg==",
+ "license": "ISC",
+ "dependencies": {
+ "@walmart/allspark-graphql-client": "^1.4.12"
+ }
+ },
"node_modules/@walmart/metrics-mini-app": {
"version": "0.17.9",
"resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.9.tgz",
@@ -33070,7 +33106,7 @@
"resolved": "https://npme.walmart.com/@walmart/allspark-http-client/-/allspark-http-client-2.4.19.tgz",
"integrity": "sha512-HIAURPDWeJotV62Dixpco1Gu+ovaCdrOLJASQQCVA3NtD3M5rDQZ/Ojuz82tE7MND/4Hq7YiDoKJK66BsOz92Q==",
"requires": {
- "@walmart/allspark-utils": "^1.5.2",
+ "@walmart/allspark-utils": "^1.6.6",
"axios": "~1.2.6"
}
},
@@ -33078,7 +33114,9 @@
"version": "0.1.31"
},
"@walmart/allspark-utils": {
- "version": "1.5.2",
+ "version": "1.6.6",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-utils/-/allspark-utils-1.6.6.tgz",
+ "integrity": "sha512-kTUKnXfCi2HejcXf5kyYoSxKOqfXcEdP8vyEBOVlNWD2B2tBjF5T+FTjcRzDuCCUhDQwTGGewwC3iShubhhO7g==",
"requires": {
"crypto-js": "^3.3.0",
"lodash": "~4.17.21",
@@ -33199,7 +33237,7 @@
"integrity": "sha512-rsp3fueuoa0Ii65iaxZy4UJRoeDuryB3gsA8h5py4+g1wyWGID9O/RXCTEI6ItS/W3eBvxr9/Y5nVkYLLPpGig==",
"requires": {
"@walmart/allspark-http-client": "^2.4.18",
- "@walmart/allspark-utils": "^1.5.2",
+ "@walmart/allspark-utils": "^1.6.6",
"reduxsauce": "^1.2.1",
"reselect": "^4.1.5",
"seamless-immutable": "^7.1.4",
@@ -33213,7 +33251,7 @@
"requires": {
"@walmart/allspark-graphql-client": "^1.4.5",
"@walmart/allspark-http-client": "^2.4.18",
- "@walmart/allspark-utils": "^1.5.2",
+ "@walmart/allspark-utils": "^1.6.6",
"@walmart/core-services": "~2.3.0",
"@walmart/me-at-walmart-athena-queries": "^1.7.3",
"crypto-js": "^3.3.0",
@@ -33231,7 +33269,7 @@
"@walmart/core-widget-registry": {
"version": "1.2.6",
"requires": {
- "@walmart/allspark-utils": "^1.5.2"
+ "@walmart/allspark-utils": "^1.6.6"
}
},
"@walmart/counts-component-miniapp": {
@@ -33346,7 +33384,9 @@
}
},
"@walmart/manager-approvals-miniapp": {
- "version": "0.2.4"
+ "version": "0.2.4",
+ "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.2.4.tgz",
+ "integrity": "sha512-IjgpoS1xzZAm8jtEI5fpTqpwRHQXC8FORd2OpRD5vCpJ2QIKVUzhH3iCEhyjZSOWQ5rmc9miUxt5HGtLABYhTg=="
},
"@walmart/me-at-homeoffice-ui-components": {
"version": "1.2.140",
--- package.json
@@ -237,7 +237,7 @@
},
"overrides": {
"@react-native-community/datetimepicker": "$@react-native-community/datetimepicker",
- "@walmart/allspark-utils": "^1.5.2",
+ "@walmart/allspark-utils": "^1.6.6",
"@walmart/allspark-graphql-client": "$@walmart/allspark-graphql-client",
"@walmart/allspark-http-client": "^2.4.18",
"@walmart/core-services": "$@walmart/core-services",
| Update allspark-utils to include appStateChange optimization | Update allspark-utils to include appStateChange optimization
|
8997941570918ce89dd0e7669176343df362c875 | --- __tests__/navigation/AssociateHallwayNav/SideMenuContentTest.tsx
@@ -86,7 +86,6 @@ const navConfig = [
];
const setShowDialog = jest.fn();
-const setNavConfig = jest.fn();
const baseProps = {
navigation: {
navigate: jest.fn(),
@@ -104,9 +103,8 @@ describe('SideMenuContent', () => {
mockUseCanImpersonate.mockReturnValue(false);
mockUseSelector.mockReturnValueOnce({data: null}); // user state
mockUseSelector.mockReturnValueOnce({data: null}); // clock state
- mockUseSelector.mockReturnValueOnce(navConfig); // nav config
+ mockUseSelector.mockReturnValueOnce(undefined); // nav config
mockUseState.mockReturnValueOnce([false, setShowDialog]);
- mockUseState.mockReturnValueOnce([undefined, setNavConfig]);
const component = create(<SideMenuContent {...baseProps} />);
it('matches snapshot with not user/clockstatus data; sets bar style for closed', () => {
@@ -119,7 +117,6 @@ describe('SideMenuContent', () => {
composite_app: appJson.displayName,
},
);
- expect(setNavConfig).toHaveBeenCalledWith(navConfig);
});
it('matches snapshot with user/clockstatus data; sets bar style for open', () => {
@@ -127,9 +124,8 @@ describe('SideMenuContent', () => {
mockUseCanImpersonate.mockReturnValue(false);
mockUseSelector.mockReturnValueOnce({data: user}); // user state
mockUseSelector.mockReturnValueOnce(clockState); // clock state
- mockUseSelector.mockReturnValueOnce(navConfig); // nav config
+ mockUseSelector.mockReturnValueOnce(undefined); // nav config
mockUseState.mockReturnValueOnce([false, setShowDialog]);
- mockUseState.mockReturnValueOnce([undefined, setNavConfig]);
component.update(<SideMenuContent {...baseProps} />);
expect(component.toJSON()).toMatchSnapshot();
@@ -141,7 +137,6 @@ describe('SideMenuContent', () => {
composite_app: appJson.displayName,
},
);
- expect(setNavConfig).not.toHaveBeenCalled();
});
describe('GlobalNavigation events', () => {
@@ -222,7 +217,6 @@ describe('SideMenuContent', () => {
mockUseSelector.mockReturnValueOnce(clockState);
mockUseSelector.mockReturnValueOnce(navConfig);
mockUseState.mockReturnValueOnce([false, setShowDialog]);
- mockUseState.mockReturnValueOnce([navConfig, setNavConfig]);
component.update(<SideMenuContent {...baseProps} />);
expect(component.toJSON()).toMatchSnapshot();
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx
@@ -47,7 +47,6 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
const deviceType = useSelector(getDeviceType);
const [showDialog, setShowDialog] = useState(false);
- const [navConfig, setNavConfig] = useState(undefined);
const defaultConfig = [
{
menuType: 'MAINMENU',
@@ -139,11 +138,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
WmTelemetry.logEvent('global_navigation', 'closed', {
composite_app: appJson.displayName,
});
- if (remoteNavConfig?.length && !navConfig) {
- setNavConfig(remoteNavConfig);
- }
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isDrawerOpen]);
const onDrawerClose = useCallback(() => {
@@ -182,7 +177,6 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
() => navigation.navigate('Impersonation'),
[navigation],
);
-
return (
<SafeAreaView style={styles.globalNavContainer}>
<GlobalNavigation
@@ -190,7 +184,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
showDefaultNav
clockIn={clockStatus?.clockStatus !== ClockStatus.clockedOut}
onDrawerClose={onDrawerClose}
- globalNavConfig={navConfig || defaultConfig}
+ globalNavConfig={remoteNavConfig || defaultConfig}
user={user || {displayName: ''}}
siteId={user?.siteId || 0}
onSignOut={showSignOutDialog}
| fixed global nav menu update issue | fixed global nav menu update issue
|
b4ee1c493d883fd892c7b9bccf82b97e6479a5d5 | --- targets/US/package.json
@@ -119,7 +119,7 @@
"@walmart/me-at-walmart-container": "workspace:^",
"@walmart/me-at-walmart-core": "workspace:^",
"@walmart/metrics-mini-app": "1.27.3",
- "@walmart/mod-flex-mini-app": "1.23.2",
+ "@walmart/mod-flex-mini-app": "1.24.1",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "2.2.1",
"@walmart/myteam-mini-app": "1.12.0",
--- yarn.lock
@@ -7322,7 +7322,7 @@ __metadata:
"@walmart/me-at-walmart-container": "workspace:^"
"@walmart/me-at-walmart-core": "workspace:^"
"@walmart/metrics-mini-app": "npm:1.27.3"
- "@walmart/mod-flex-mini-app": "npm:1.23.2"
+ "@walmart/mod-flex-mini-app": "npm:1.24.1"
"@walmart/moment-walmart": "npm:1.0.4"
"@walmart/money-auth-shared-components": "npm:2.2.1"
"@walmart/myteam-mini-app": "npm:1.12.0"
@@ -7600,9 +7600,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/mod-flex-mini-app@npm:1.23.2":
- version: 1.23.2
- resolution: "@walmart/mod-flex-mini-app@npm:1.23.2"
+"@walmart/mod-flex-mini-app@npm:1.24.1":
+ version: 1.24.1
+ resolution: "@walmart/mod-flex-mini-app@npm:1.24.1"
peerDependencies:
"@react-navigation/drawer": ">=6"
"@react-navigation/material-top-tabs": ">=6"
@@ -7612,7 +7612,7 @@ __metadata:
"@walmart/allspark-utils": ">=6"
"@walmart/core-services-allspark": ">=6"
"@walmart/functional-components": ">=6"
- "@walmart/gtp-shared-components": ^2.2.4
+ "@walmart/gtp-shared-components": ^2.2.5
"@walmart/ims-print-services-ui": ^2.12.0
"@walmart/ui-components": ^1.7.0
crypto-js: ~4.2.0
@@ -7637,7 +7637,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
uuid: ^3.3.2
- checksum: 10c0/ba6b69475f79a7e0f92564853bd88de42600f92a8bf40a39390fe801d032d0b88bf54165d86c7f592c7a62d30d4dc12256b557ed7c75253daf0dba48f4e510a7
+ checksum: 10c0/65542cd5df6575b292e6b5b3dc2c47b1cc80205287d378a3e58b6a17e43bf8ccfab9253cd770116cc1870490f5ec43fd7303c59a01a3049e2a16914278835fcb
languageName: node
linkType: hard
| Modflex - Drop 28 | Modflex - Drop 28
|
563d2c0c56d1840578182554cbdfc9b55204e276 | --- src/index.tsx
@@ -23,7 +23,6 @@ import {initNotificationListeners} from './notification';
import {initi18n} from './translations';
import {MeganavScreen} from './screens/MeganavScreen';
import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard';
-import {useChannelIds} from './channels';
export {PushToTalkProvider} from './channels/pushToTalkProvider';
export const LOGGER_FIELDS = {id: 'texting-mini-app'};
@@ -60,14 +59,6 @@ initi18n();
export const MeganavTextingScreen = MeganavScreen;
-export const Hooks = {
- useChannelIds,
-};
-
-export const Providers = {
- ChannelsProvider,
-};
-
export const TextingMiniApp = () => {
const envConfig = useEnvironment();
const dispatch = useDispatch<ThunkDispatch<any, any, any>>();
--- src/index.tsx
@@ -23,7 +23,6 @@ import {initNotificationListeners} from './notification';
import {initi18n} from './translations';
import {MeganavScreen} from './screens/MeganavScreen';
import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard';
-import {useChannelIds} from './channels';
export {PushToTalkProvider} from './channels/pushToTalkProvider';
export const LOGGER_FIELDS = {id: 'texting-mini-app'};
@@ -60,14 +59,6 @@ initi18n();
export const MeganavTextingScreen = MeganavScreen;
-export const Hooks = {
- useChannelIds,
-};
-
-export const Providers = {
- ChannelsProvider,
-};
-
export const TextingMiniApp = () => {
const envConfig = useEnvironment();
const dispatch = useDispatch<ThunkDispatch<any, any, any>>();
| revert file change | revert file change
|
cb27ec946b6ce6fa6e1d059d5657286d2d40b441 | --- src/translations/en-US.ts
@@ -72,13 +72,17 @@ export const enUS = {
},
ssoError: {
errorMsg:
- 'Sorry – something went wrong. Please share your user ID, site ID and provide as much detail as possible to help our team fix the issue.',
- reportIssueTitle: 'Report issue',
+ 'Sorry – something went wrong. Please share your User ID, Site ID and provide as much detail as possible to help our team fix the issue.',
+ reportIssueTitle: 'Report sign-in issue',
required: 'Required',
userId: 'User ID',
siteId: 'Site ID',
- optional: 'Optional',
- details: 'Please describe the issue',
+ issueCategory: 'Sign-in issue category',
+ optional: 'Additional information (Optional)',
+ enterUserId: 'Enter User ID',
+ enterSiteId: 'Enter Site ID',
+ details: 'Describe the issue',
+ selectIssue: 'Please make a selection',
cancel: 'Cancel',
send: 'Send',
requiredError: 'Please enter all requred fields',
| update msgs in en-US | update msgs in en-US
|
c20fb4fc870c41f6265b917577a8dbf50cfd52b2 | --- package-lock.json
@@ -70,7 +70,7 @@
"@walmart/gtp-shared-components": "2.1.10",
"@walmart/impersonation-mini-app": "1.20.8",
"@walmart/ims-print-services-ui": "2.10.3",
- "@walmart/inbox-mini-app": "0.92.9-549-78a92c4",
+ "@walmart/inbox-mini-app": "0.92.9-549-3f80804",
"@walmart/iteminfo-mini-app": "7.10.5",
"@walmart/learning-mini-app": "20.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
@@ -11665,9 +11665,9 @@
}
},
"node_modules/@walmart/inbox-mini-app": {
- "version": "0.92.9-549-78a92c4",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.92.9-549-78a92c4.tgz",
- "integrity": "sha512-4gYWc3E+EZM4pVsSYNe/GbuN7c6DIwpu5avLHK65zt1xxV1y36YVRWTAwwa9hqp8TVwdkccQ6EWNdZD6Q04jcQ==",
+ "version": "0.92.9-549-3f80804",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.92.9-549-3f80804.tgz",
+ "integrity": "sha512-oD62kAv9mqvoF4aanaXB1VY6yPvIUVYYwA/I5EE5QYRXcSpYegH9+c+sEGMpH4+3Q3Cv0oMep2i5frcegYy3jg==",
"dependencies": {
"@walmart/moment-walmart": "^1.0.4",
"@walmart/walmart-fiscal-week": "^0.3.6",
--- package.json
@@ -111,7 +111,7 @@
"@walmart/gtp-shared-components": "2.1.10",
"@walmart/impersonation-mini-app": "1.20.8",
"@walmart/ims-print-services-ui": "2.10.3",
- "@walmart/inbox-mini-app": "0.92.9-549-78a92c4",
+ "@walmart/inbox-mini-app": "0.92.9-549-3f80804",
"@walmart/iteminfo-mini-app": "7.10.5",
"@walmart/learning-mini-app": "20.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
@@ -376,7 +376,7 @@
"@walmart/gtp-shared-components": "2.1.10",
"@walmart/impersonation-mini-app": "1.20.8",
"@walmart/ims-print-services-ui": "2.10.3",
- "@walmart/inbox-mini-app": "0.92.9-549-78a92c4",
+ "@walmart/inbox-mini-app": "0.92.9-549-3f80804",
"@walmart/iteminfo-mini-app": "7.10.5",
"@walmart/learning-mini-app": "20.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
| inbox update | inbox update
|
c0c4a6f76baf1f739917c8d6a7ad583834917eae | --- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.14.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.13.5...@walmart/associate-exp-hub-mini-app@1.14.0) (2025-12-22)
+
+### Features
+
+- **ui:** fix the loader issue ([2281be1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/2281be1920fb3bd4d854114acee6f2ca360ccb82))
+- **ui:** fix the loader issue ([391a2c6](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/391a2c6d6bdfef06641e97e2d35c29f6730b8e9f))
+- **ui:** fix the loader issue ([8755831](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/87558315cedadd960f562ca7b813fec7354bcf52))
+
## [1.13.5](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.13.4...@walmart/associate-exp-hub-mini-app@1.13.5) (2025-12-19)
**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.13.5",
+ "version": "1.14.0",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/associate-exp-hub-team-switcher/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.
+# [2.24.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.23.2...@walmart/associate-exp-hub-team-switcher@2.24.0) (2025-12-22)
+
+### Features
+
+- **ui:** fix the loader issue ([391a2c6](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/391a2c6d6bdfef06641e97e2d35c29f6730b8e9f))
+- **ui:** fix the loader issue ([0c1e547](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/0c1e54772e1d987fdf30312fd76b494cb1fc8ab8))
+- **ui:** fix the loader issue ([8755831](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/87558315cedadd960f562ca7b813fec7354bcf52))
+
## [2.23.2](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.23.1...@walmart/associate-exp-hub-team-switcher@2.23.2) (2025-12-19)
**Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher
--- packages/associate-exp-hub-team-switcher/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-team-switcher",
- "version": "2.23.2",
+ "version": "2.24.0",
"description": "Team Switcher module for Associate Experience Hub",
"packageManager": "yarn@4.6.0",
"engines": {
| chore(version): updating package version | chore(version): updating package version
- @walmart/associate-exp-hub-mini-app@1.14.0
- @walmart/associate-exp-hub-team-switcher@2.24.0
|
5c67cabff764824e3bd8290d534c7a2504e92933 | --- __tests__/sumo/SumoReduxTest.ts
@@ -56,18 +56,9 @@ describe('selectors', () => {
expect(optIn).toEqual(INITIAL_STATE.optIn);
});
- describe('getSumoProfile', () => {
- it('handles defined profile', () => {
- const profile = getSumoProfile(mockState);
- expect(profile).toEqual(mockProfile);
- });
-
- it('handles undefined profile', () => {
- const profile = getSumoProfile(({
- sumo: INITIAL_STATE,
- } as unknown) as GlobalState);
- expect(profile).toEqual({});
- });
+ test('getSumoProfile', () => {
+ const profile = getSumoProfile(mockState);
+ expect(profile).toEqual(mockProfile);
});
});
--- __tests__/sumo/SumoSagasTest.ts
@@ -6,7 +6,7 @@ import {
call,
take,
put,
- debounce,
+ takeLeading,
fork,
retry,
} from 'redux-saga/effects';
@@ -577,10 +577,10 @@ describe('sumoSagas', () => {
const iterator = sumoSagas();
expect(iterator.next().value).toEqual(
all([
- takeLatest(USER_CHANGED_ACTIONS, onUserChange),
+ takeLeading(500, USER_CHANGED_ACTIONS, onUserChange),
+ takeLeading(500, SIGN_OUT_SUCCESS, onSignOut),
takeLatest(SumoTypes.OPT_IN_REQUEST, onOptInRequest),
takeLatest(SumoTypes.PROFILE_SUCCESS, persistOptInSetting),
- debounce(500, SIGN_OUT_SUCCESS, onSignOut),
takeLatest(TOKEN_CHANGED_ACTION, onTokenChanged),
takeLatest(StartupTypes.MINI_APP_NAV_STACK_LOADED, onMiniAppReplay),
]),
--- src/sumo/SumoRedux.ts
@@ -84,7 +84,7 @@ export const getSumoOptIn = createSelector(
);
export const getSumoProfile = createSelector(
[getSumoState],
- (state) => state.profile || {},
+ (state) => state.profile,
);
/* ------------- Reducers ------------- */
--- src/sumo/SumoSagas.ts
@@ -8,9 +8,9 @@ import {
call,
take,
put,
- debounce,
fork,
retry,
+ takeLeading,
} from 'redux-saga/effects';
import {User} from '@walmart/redux-store';
import WmNotification, {
@@ -256,6 +256,7 @@ export function* onOptInRequest({optIn}: AnyAction) {
// before callign register. Opt in at this time is unknown so will either
// pull default from redux or read from async storage
export function* onUserChange() {
+ console.log('calling user change');
yield call(waitForSumoCharge);
const optIn: boolean = yield call(getOptInStatus);
yield call(registerSumoUser, optIn);
@@ -284,10 +285,11 @@ export function* onMiniAppReplay() {
// Clearing all but charge state, since it is the same between users
export function* onSignOut() {
+ console.log('calling sign out');
try {
const profile: SumoProfile = yield select(getSumoProfile);
// @ts-ignore - profileId is missing on SumoProfile definition
- if (profile && profile.profileId) {
+ if (profile?.profileId) {
yield call(WmNotification.unregister);
}
} catch (error) {
@@ -301,10 +303,10 @@ export function* onSignOut() {
export function* sumoSagas() {
yield all(
createRestartableSagas([
- takeLatest(USER_CHANGED_ACTIONS, onUserChange),
+ takeLeading(USER_CHANGED_ACTIONS, onUserChange),
+ takeLeading(SIGN_OUT_SUCCESS, onSignOut),
takeLatest(SumoTypes.OPT_IN_REQUEST, onOptInRequest),
takeLatest(SumoTypes.PROFILE_SUCCESS, persistOptInSetting),
- debounce(500, SIGN_OUT_SUCCESS, onSignOut),
takeLatest(TOKEN_CHANGED_ACTION, onTokenChanged),
takeLatest(StartupTypes.MINI_APP_NAV_STACK_LOADED, onMiniAppReplay),
]),
| Updating sumo registration saga to avoid rapid requests | Updating sumo registration saga to avoid rapid requests
|
3dfe61cc6d2150ce924c3b80350d9c07e57814ce | --- src/components/RosterWidget/RosterWidget.tsx
@@ -23,6 +23,11 @@ export const RosterWidget = (props: TeamHubWidgetProps) => {
isPartialGetTeamsByStoreError,
isPartialSupplyChainTeamsError,
} = useRosterWidget(props, isSiteDC);
+ const isPartialDataError =
+ isPartialSupplyChainShiftsError ||
+ isPartialRosterError ||
+ isPartialGetTeamsByStoreError ||
+ isPartialSupplyChainTeamsError;
return (
<>
<HubWidget
@@ -31,10 +36,7 @@ export const RosterWidget = (props: TeamHubWidgetProps) => {
moduleTitle={t('hubWidget.roster.title')}
content={
<View style={styles.contentContainer}>
- {(isPartialSupplyChainShiftsError ||
- isPartialRosterError ||
- isPartialGetTeamsByStoreError ||
- isPartialSupplyChainTeamsError) && (
+ {isPartialDataError && (
<View style={styles.warningAlert}>
<WarningAlert
alertMessage={t('warningAlert.warningMessage', {
--- src/screens/AllTeamsScreen/StoreAllTeamsScreen.tsx
@@ -177,10 +177,12 @@ export const StoreAllTeamsScreen = () => {
primaryTeamArea,
);
+ const isPartialDataError = isPrimaryTeamError || isGetTeamsByStoreError;
+
return (
<>
<WarningBanner />
- {(isPrimaryTeamError || isGetTeamsByStoreError) && (
+ {isPartialDataError && (
<WarningAlert
alertMessage={t('warningAlert.warningMessage', {
default: 'Something went wrong',
--- src/screens/AllTeamsScreen/SupplyChainAllTeamsScreen.tsx
@@ -174,10 +174,12 @@ export const SupplyChainAllTeamsScreen = () => {
const sections = createTeamsSectionsByOpsArea(allTeams as SupplyChainTeam[]);
+ const isPartialDataError =
+ partialRosterError || isPartialSupplyChainTeamsError;
return (
<>
<WarningBanner />
- {(partialRosterError || isPartialSupplyChainTeamsError) && (
+ {isPartialDataError && (
<WarningAlert
alertMessage={t('warningAlert.warningMessage', {
default: 'Something went wrong',
--- src/screens/RosterDetailScreen/StoreRosterDetailScreen.tsx
@@ -264,6 +264,9 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => {
FilterValue.all,
);
+ const isPartialDataError =
+ isPartialTeamError || isPartialRosterError || isPartialGetTeamsByStoreError;
+
const handleFilterPress = useCallback(
(filterId: FilterValue) => {
// Create a new filter value based on whether it's already selected
@@ -543,23 +546,20 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => {
}}
/>
)}
- {(isPartialTeamError ||
- isPartialRosterError ||
- isPartialGetTeamsByStoreError) &&
- !dataLoading && (
- <View style={styles.warningAlert}>
- <WarningAlert
- alertMessage={t('warningAlert.warningMessage', {
- default: 'Something went wrong',
- fallbackLng: 'en-US',
- })}
- buttonLabel={t('warningAlert.buttonLabel', {
- default: 'Try Again',
- fallbackLng: 'en-US',
- })}
- />
- </View>
- )}
+ {isPartialDataError && !dataLoading && (
+ <View style={styles.warningAlert}>
+ <WarningAlert
+ alertMessage={t('warningAlert.warningMessage', {
+ default: 'Something went wrong',
+ fallbackLng: 'en-US',
+ })}
+ buttonLabel={t('warningAlert.buttonLabel', {
+ default: 'Try Again',
+ fallbackLng: 'en-US',
+ })}
+ />
+ </View>
+ )}
</>
}
ListEmptyComponent={
--- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx
@@ -557,6 +557,11 @@ export const SupplyChainRosterDetailScreen = ({
isSalariedOrLead ? switcherTeamState : teamState,
);
+ const isPartialDataError =
+ partialSupplyChainShiftsError ||
+ partialRosterError ||
+ isPartialSupplyChainTeamsError ||
+ isPartialSupplyChainTeamsByIdError;
// Filter chips based on site type
const filterChips: FilterChipProps[] = useMemo(() => {
return [
@@ -872,24 +877,20 @@ export const SupplyChainRosterDetailScreen = ({
}}
/>
)}
- {(partialSupplyChainShiftsError ||
- partialRosterError ||
- isPartialSupplyChainTeamsError ||
- isPartialSupplyChainTeamsByIdError) &&
- !dataLoading && (
- <View style={styles.warningAlert}>
- <WarningAlert
- alertMessage={t('warningAlert.warningMessage', {
- default: 'Something went wrong',
- fallbackLng: 'en-US',
- })}
- buttonLabel={t('warningAlert.buttonLabel', {
- default: 'Try Again',
- fallbackLng: 'en-US',
- })}
- />
- </View>
- )}
+ {isPartialDataError && !dataLoading && (
+ <View style={styles.warningAlert}>
+ <WarningAlert
+ alertMessage={t('warningAlert.warningMessage', {
+ default: 'Something went wrong',
+ fallbackLng: 'en-US',
+ })}
+ buttonLabel={t('warningAlert.buttonLabel', {
+ default: 'Try Again',
+ fallbackLng: 'en-US',
+ })}
+ />
+ </View>
+ )}
</>
}
ListEmptyComponent={renderListEmptyComponent()}
| feat(ui): updated variables | feat(ui): updated variables
|
fbbae68f0c8d8554f72392b3250a2db8db355c1e | --- package.json
@@ -117,7 +117,7 @@
"@walmart/digital-locks-mini-app": "2.0.12",
"@walmart/emergency-mini-app": "1.32.7",
"@walmart/exception-mini-app": "1.10.3",
- "@walmart/expo-config-plugins": "0.11.0",
+ "@walmart/expo-config-plugins": "0.11.3",
"@walmart/facilities-management-miniapp": "0.18.41",
"@walmart/feedback-all-spark-miniapp": "0.9.82",
"@walmart/financial-wellbeing-feature-app": "1.31.6",
--- yarn.lock
@@ -8361,14 +8361,14 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/expo-config-plugins@npm:0.11.0":
- version: 0.11.0
- resolution: "@walmart/expo-config-plugins@npm:0.11.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fexpo-config-plugins%2F-%2F%40walmart%2Fexpo-config-plugins-0.11.0.tgz"
+"@walmart/expo-config-plugins@npm:0.11.3":
+ version: 0.11.3
+ resolution: "@walmart/expo-config-plugins@npm:0.11.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fexpo-config-plugins%2F-%2F%40walmart%2Fexpo-config-plugins-0.11.3.tgz"
dependencies:
fs-extra: "npm:^11.3.0"
peerDependencies:
"@expo/config-plugins": ~9.0.0
- checksum: 10c0/6d5aca0ae2b98118c0348d5c72f51d80e21fd3100a3cc558f9f969c67af882dcf416ad35a597dc3202973f29671931c1b05463c721c98636a2fb6e69d23ef5c9
+ checksum: 10c0/177112011411cdfc28676ad23e37aa7b6168aa4fa722080bfb01d939833017be9c0c25fcbcb26c13e9750b6ab1bb5d4a2ceb849eef8355dc8311237450a07c80
languageName: node
linkType: hard
@@ -8889,7 +8889,7 @@ __metadata:
"@walmart/digital-locks-mini-app": "npm:2.0.12"
"@walmart/emergency-mini-app": "npm:1.32.7"
"@walmart/exception-mini-app": "npm:1.10.3"
- "@walmart/expo-config-plugins": "npm:0.11.0"
+ "@walmart/expo-config-plugins": "npm:0.11.3"
"@walmart/facilities-management-miniapp": "npm:0.18.41"
"@walmart/feedback-all-spark-miniapp": "npm:0.9.82"
"@walmart/financial-wellbeing-feature-app": "npm:1.31.6"
| fix(bux): bump expo-config-plugins (#5302) | fix(bux): bump expo-config-plugins (#5302)
Co-authored-by: Savan Akbari <Savankumar.akbari@walmart.com> |
90d7dfc5a0826a4c207fbb8f591be8f4ce82bff9 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.12.0-alpha.10",
+ "version": "2.12.0-alpha.11",
"main": "dist/index.js",
"files": [
"dist"
--- yarn.lock
@@ -5841,8 +5841,8 @@ __metadata:
linkType: hard
"@walmart/allspark-foundation-hub@npm:latest":
- version: 1.0.0-beta.2
- resolution: "@walmart/allspark-foundation-hub@npm:1.0.0-beta.2"
+ version: 1.0.0-beta.3
+ resolution: "@walmart/allspark-foundation-hub@npm:1.0.0-beta.3"
dependencies:
"@apollo/client": "npm:^3.8.6"
"@graphql-codegen/cli": "npm:^5.0.0"
@@ -5938,7 +5938,7 @@ __metadata:
allspark-generate-graphql: cli/generate.js
allspark-link: cli/link.js
allspark-setup: cli/setup.js
- checksum: 10c0/8d9ffb33860a5a9326f6786c5fbb81cedf56b43db900fac8b75dd79ddff0dde35e73ed4e673ad48c6946a099ee0d86e34069ccf0da7999d2b75e833f9c74baca
+ checksum: 10c0/ce26bdbb3539f7c34e127a371cafe1c64c3c396b2e15cabcf8c1b8fe99366fcf940638141ceb26c6840c4bbded76e2b1e7cec6a84de466f7a9c7a1022daf9f81
languageName: node
linkType: hard
@@ -11221,11 +11221,11 @@ __metadata:
linkType: hard
"i18next@npm:^23.6.0":
- version: 23.15.1
- resolution: "i18next@npm:23.15.1"
+ version: 23.15.2
+ resolution: "i18next@npm:23.15.2"
dependencies:
"@babel/runtime": "npm:^7.23.2"
- checksum: 10c0/06bf6c45c70ebe8cc1181ce5f367f6a60acc798abb1926329e67e092a25762cabbfed64ac149745d515f724d2a6fef3bf809bd4fd8f505a7966e9e4dd2e3fd69
+ checksum: 10c0/6e079bf486ac24440c2e01f1852b518c3c7f2cf9754ab98c25c78e4bc50f5af936b7cbb3c566f60fbbc093ec14d7432d5320016376038bc23fc1167a03cdb6bc
languageName: node
linkType: hard
@@ -14508,11 +14508,11 @@ __metadata:
linkType: hard
"moment-timezone@npm:~0.5.43":
- version: 0.5.45
- resolution: "moment-timezone@npm:0.5.45"
+ version: 0.5.46
+ resolution: "moment-timezone@npm:0.5.46"
dependencies:
moment: "npm:^2.29.4"
- checksum: 10c0/7497f23c4b8c875dbf07c03f9a1253f79edaeedc29d5732e36bfd3c5577e25aed1924fbd84cbb713ce1920dbe822be0e21bd487851a7d13907226f289a5e568b
+ checksum: 10c0/003fd278d1aa3e63afff340a318735db80157b7a343e3f807cac10e026def214f0e71b52d582b89a11ee0a19f5d9f0da2752b7959d855429f2b715d4859d3722
languageName: node
linkType: hard
@@ -16739,13 +16739,13 @@ __metadata:
linkType: hard
"regjsparser@npm:^0.11.0":
- version: 0.11.0
- resolution: "regjsparser@npm:0.11.0"
+ version: 0.11.1
+ resolution: "regjsparser@npm:0.11.1"
dependencies:
jsesc: "npm:~3.0.2"
bin:
regjsparser: bin/parser
- checksum: 10c0/155143a8f2c95e3170df4fff10ddf3f16a351b5d2b8cbb257e9f4a50abb9a980a28af0936b5bf850fee767537ffa8eb77c6b211fe8be19834dbe584dfd950c62
+ checksum: 10c0/be4b40981a596b31eacd84ee12cfa474f1d33a6c05f7e995e8ec9d5ad8f1c3fbf7a5b690a05c443e1f312a1c0b16d4ea0b3384596a61d4fda97aa322879bb3cd
languageName: node
linkType: hard
| feat(ui): add roster widget | feat(ui): add roster widget
|
a6f188b82830d3f970c8f6e7ad0556e589966307 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.12.7",
+ "version": "2.12.8",
"main": "dist/index.js",
"files": [
"dist"
--- src/screens/index.tsx
@@ -14,7 +14,7 @@ const rosterDetailsScreen = RosterFeature.createScreen<
clockCheckRequired: true,
options: {
title: 'Roster',
- headerShown: true,
+ headerShown: false,
header: Header,
},
});
@@ -27,7 +27,7 @@ const allTeamsScreen = RosterFeature.createScreen<
clockCheckRequired: true,
options: {
title: 'All teams',
- headerShown: true,
+ headerShown: false,
header: Header,
},
});
| Update roster mini app version | Update roster mini app version
|
fe881bbea69ac7bfc1c2a1d329802845cecd09eb | --- android/app/src/main/AndroidManifest.xml
@@ -31,6 +31,7 @@
<application
android:name="com.walmart.stores.allspark.beta.MainApplication"
+ android:requestLegacyExternalStorage="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
| Update AndroidManifest.xml | Update AndroidManifest.xml |
855a315fecb8107b6b57c9882bc214c13010a2d7 | --- package-lock.json
@@ -70,7 +70,7 @@
"@walmart/pay-stub-miniapp": "0.10.15",
"@walmart/payrollsolution_miniapp": "0.131.15",
"@walmart/price-changes-mini-app": "1.10.1",
- "@walmart/profile-feature-app": "0.334.0",
+ "@walmart/profile-feature-app": "0.334.2",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
"@walmart/react-native-logger": "1.34.7",
@@ -8903,9 +8903,9 @@
}
},
"node_modules/@walmart/profile-feature-app": {
- "version": "0.334.0",
- "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.334.0.tgz",
- "integrity": "sha512-/Zt765ncVOFdpjlBZuE59gMTA959RKDC7kp82KbS6U76wUlgMkoCd/Z4dck/THsP6lNHgAjT7iEktWn2a4HVZA==",
+ "version": "0.334.2",
+ "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.334.2.tgz",
+ "integrity": "sha512-s3mQc6bzm7Q+tLlUjIj6CAeZjTOX+Ddf5hkKFjdJDxuL8MErjwdfo5NiVgwqDAoaS3NzPizEDyAiENsOZWNLsg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/bottom-tabs": "^6.0.0",
@@ -34449,9 +34449,9 @@
"integrity": "sha512-Jht/q+XDGe4mTqsjUQNNudNxeNF+N6/3dCJZ12IqIvL4ynY1sfOafLCCJ53VoEQwjlJUatSvS1toU5Yh/MYD+g=="
},
"@walmart/profile-feature-app": {
- "version": "0.334.0",
- "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.334.0.tgz",
- "integrity": "sha512-/Zt765ncVOFdpjlBZuE59gMTA959RKDC7kp82KbS6U76wUlgMkoCd/Z4dck/THsP6lNHgAjT7iEktWn2a4HVZA=="
+ "version": "0.334.2",
+ "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.334.2.tgz",
+ "integrity": "sha512-s3mQc6bzm7Q+tLlUjIj6CAeZjTOX+Ddf5hkKFjdJDxuL8MErjwdfo5NiVgwqDAoaS3NzPizEDyAiENsOZWNLsg=="
},
"@walmart/react-native-encrypted-storage": {
"version": "1.1.3"
--- package.json
@@ -111,7 +111,7 @@
"@walmart/pay-stub-miniapp": "0.10.15",
"@walmart/payrollsolution_miniapp": "0.131.15",
"@walmart/price-changes-mini-app": "1.10.1",
- "@walmart/profile-feature-app": "0.334.0",
+ "@walmart/profile-feature-app": "0.334.2",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
"@walmart/react-native-logger": "1.34.7",
| feat: bump profile-feature-app to 0.334.2 | feat: bump profile-feature-app to 0.334.2
|
66c962ca2bb85ca44f5aabd40b3f438dcf684bdb | --- package.json
@@ -79,7 +79,7 @@
"@walmart/allspark-neon-core": "0.1.29",
"@walmart/amp-mini-app": "0.2.13",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "^1.2.8",
+ "@walmart/ask-sam-mini-app": "1.2.8",
"@walmart/config-components": "3.0.3",
"@walmart/core-services": "~1.2.11",
"@walmart/core-services-allspark": "~1.7.18",
| Update package.json | Update package.json |
22b949b5f59edaf4591b142a895e5a799ac26565 | --- package-lock.json
@@ -3310,9 +3310,9 @@
"integrity": "sha512-PaVy13mQ/ehDdi+UiSK0Z4DG1iuL4PId2bYlccy1uHj5FEGW/S2tPrPJL/xIEjv3P6XLQnw/C05OObgyq9RY7A=="
},
"@walmart/counts-component-miniapp": {
- "version": "0.0.13",
- "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.13.tgz",
- "integrity": "sha512-+25H67LTPtrwp3AAmNm4E3hzqIJy5G8zhJ804cEj/DsyHH/Kb1HbyehtJ3KWqE2lj/2PlXc0LmGdYGWt+NcWWA=="
+ "version": "0.0.14",
+ "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.14.tgz",
+ "integrity": "sha512-y2FCYWn5O/goXpXKnFTe6ACgSHR28/G7w+xBYt/0oEQJNxrXFKcyjr+s6tM2DEfwcfkF+6qh+vjfkXOSPGlESQ=="
},
"@walmart/exception-mini-app": {
"version": "0.28.0",
--- package.json
@@ -69,7 +69,7 @@
"@walmart/allspark-me-mini-app": "0.1.0",
"@walmart/ask-sam-mini-app": "0.30.6",
"@walmart/config-components": "^1.0.26",
- "@walmart/counts-component-miniapp": "0.0.13",
+ "@walmart/counts-component-miniapp": "0.0.14",
"@walmart/exception-mini-app": "0.28.0",
"@walmart/feedback-all-spark-miniapp": "0.0.55",
"@walmart/functional-components": "1.0.28",
| Update Counts component version | Update Counts component version
|
1e6c273be4eab6c0dacb6ef5bf9a7311e9df9ec8 | --- package-lock.json
@@ -3577,6 +3577,11 @@
"resolved": "https://npme.walmart.com/@react-native-firebase/remote-config/-/remote-config-14.11.0.tgz",
"integrity": "sha512-yZ9fu3ckZ55t3nrtDnZ5ju60dzMuu24+xhrFHMnYBfc2jeUekwB6R3qXt9rurguT89XHCUOXWUtHvzZf+T14hA=="
},
+ "@react-native-picker/picker": {
+ "version": "1.16.8",
+ "resolved": "https://npme.walmart.com/@react-native-picker/picker/-/picker-1.16.8.tgz",
+ "integrity": "sha512-pacdQDX6V6EmjF+HoiIh6u++qx4mTK0WnhgUHRc01B+Qt5eoeUwseBqmqfTSXTx/aHDEd6PiIw7UGvKgFoqgFQ=="
+ },
"@react-native/assets": {
"version": "1.0.0",
"resolved": "https://npme.walmart.com/@react-native/assets/-/assets-1.0.0.tgz",
@@ -4956,9 +4961,9 @@
"integrity": "sha512-usmI56rCuMnGXw4M4cxP4BdpIiXVq3xWO/OyZeM2hl+qJ4YjQ+g96P3GF2rgMxWFfAHb/gvmWz6lfo/jN2hPwQ=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.5.7",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.5.7.tgz",
- "integrity": "sha512-o78BBewlgb7ex+jy9zJEvTnKOXH1Jw+HMArTJEEHWtYLBhgmbFbskdqPsT8nArtH/W+7uiClAYvP5bIOEh7SGg==",
+ "version": "0.5.8",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.5.8.tgz",
+ "integrity": "sha512-NfXKogJdaMCps4HqF/XVkD+wGXhi+4SwJyXm478fyN9qRjKeFi48Vb86xpa/ZjxY78qPuqfFs3zWtjPljunfxg==",
"requires": {
"@react-native-community/datetimepicker": "3.0.9",
"@react-native-picker/picker": "^1.16.1",
@@ -4973,11 +4978,6 @@
"wfm-allspark-data-library": "^0.0.19"
},
"dependencies": {
- "@react-native-picker/picker": {
- "version": "1.16.8",
- "resolved": "https://npme.walmart.com/@react-native-picker/picker/-/picker-1.16.8.tgz",
- "integrity": "sha512-pacdQDX6V6EmjF+HoiIh6u++qx4mTK0WnhgUHRc01B+Qt5eoeUwseBqmqfTSXTx/aHDEd6PiIw7UGvKgFoqgFQ=="
- },
"@walmart/gta-react-native-calendars": {
"version": "0.0.16",
"resolved": "https://npme.walmart.com/@walmart/gta-react-native-calendars/-/gta-react-native-calendars-0.0.16.tgz",
@@ -16625,7 +16625,7 @@
"nano-time": {
"version": "1.0.0",
"resolved": "https://npme.walmart.com/nano-time/-/nano-time-1.0.0.tgz",
- "integrity": "sha1-sFVPaa2J4i0JB/ehKwmTpdlhN+8=",
+ "integrity": "sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA==",
"requires": {
"big-integer": "^1.6.16"
}
@@ -18936,9 +18936,9 @@
"integrity": "sha512-5XwA0/NyFTqF2QqPeSs89LrK2337a2pfoLX44HlRCXLeHOVbZjC+CFkCuMW6k1u+RnSbDv3ROR44jdV6Dul+9A=="
},
"react-query": {
- "version": "3.39.1",
- "resolved": "https://npme.walmart.com/react-query/-/react-query-3.39.1.tgz",
- "integrity": "sha512-qYKT1bavdDiQZbngWZyPotlBVzcBjDYEJg5RQLBa++5Ix5jjfbEYJmHSZRZD+USVHUSvl/ey9Hu+QfF1QAK80A==",
+ "version": "3.39.2",
+ "resolved": "https://npme.walmart.com/react-query/-/react-query-3.39.2.tgz",
+ "integrity": "sha512-F6hYDKyNgDQfQOuR1Rsp3VRzJnWHx6aRnnIZHMNGGgbL3SBgpZTDg8MQwmxOgpCAoqZJA+JSNCydF1xGJqKOCA==",
"requires": {
"@babel/runtime": "^7.5.5",
"broadcast-channel": "^3.4.1",
@@ -19366,7 +19366,7 @@
"remove-accents": {
"version": "0.4.2",
"resolved": "https://npme.walmart.com/remove-accents/-/remove-accents-0.4.2.tgz",
- "integrity": "sha1-CkPTqq4egNuRngeuJUsoXZ4ce7U="
+ "integrity": "sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA=="
},
"remove-trailing-separator": {
"version": "1.1.0",
--- package.json
@@ -105,7 +105,7 @@
"@walmart/settings-mini-app": "1.6.0",
"@walmart/shelfavailability-mini-app": "1.0.0",
"@walmart/taskit-mini-app": "0.32.0",
- "@walmart/time-clock-mini-app": "0.5.7",
+ "@walmart/time-clock-mini-app": "0.5.8",
"@walmart/ui-components": "1.4.0-rc.0",
"@walmart/welcomeme-mini-app": "0.69.0",
"@walmart/wfm-ui": "0.2.14",
| Updated time clock mini app to version 0.5.8 | Updated time clock mini app to version 0.5.8
|
876e3da48e7e796fe790a388c8047deb480694d8 | --- __tests__/__mocks__/@walmart/taskit-mini-app.js
@@ -1,5 +1,6 @@
module.exports = {
__esModule: true,
default: 'TaskItMiniApp',
+ TaskItQuickActions: 'TaskItQuickActions',
getTaskBadge: jest.fn(),
};
--- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MainTabsNavTest.tsx.snap
@@ -71,7 +71,7 @@ exports[`MainTabsNav matches snapshot with badges 1`] = `
}
/>
<Screen
- component="TaskItMiniApp"
+ component={[Function]}
name="taskit"
options={
Object {
@@ -197,7 +197,7 @@ exports[`MainTabsNav matches snapshot with no badges 1`] = `
}
/>
<Screen
- component="TaskItMiniApp"
+ component={[Function]}
name="taskit"
options={
Object {
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap
@@ -126,6 +126,7 @@ Array [
}
/>
<Screen
+ component="GuardedTaskItQuickActions"
name="taskItQuickActions"
options={
Object {
| updated test case | updated test case
|
ec249d8a3b3ee951b22d5900b5c3fb6428a31a8d | --- yarn.lock
@@ -19564,4 +19564,5 @@ __metadata:
resolution: "zen-observable@npm:0.8.15"
checksum: 10c0/71cc2f2bbb537300c3f569e25693d37b3bc91f225cefce251a71c30bc6bb3e7f8e9420ca0eb57f2ac9e492b085b8dfa075fd1e8195c40b83c951dd59c6e4fbf8
languageName: node
- linkType: hard
\ No newline at end of file
+ linkType: hard
+
\ No newline at end of file
| feat: add back space in yarn.lock | feat: add back space in yarn.lock
|
0d0917e905d701d9f2d9bb7cc47460befa681ad6 | --- packages/me-at-walmart-container/src/services/logger.ts
@@ -19,27 +19,28 @@ import { SESSION_ID } from '../session';
export type { TLogLevelOverride };
+// @todo - re-enable app config log level once mini apps move to foundation
const OVERRIDES = [
- {
- key: 'appConfigLogLevel',
- value: 'debug',
- level: LoggerLevel.DEBUG,
- },
- {
- key: 'appConfigLogLevel',
- value: 'info',
- level: LoggerLevel.INFO,
- },
- {
- key: 'appConfigLogLevel',
- value: 'warn',
- level: LoggerLevel.WARN,
- },
- {
- key: 'appConfigLogLevel',
- value: 'error',
- level: LoggerLevel.ERROR,
- },
+ // {
+ // key: 'appConfigLogLevel',
+ // value: 'debug',
+ // level: LoggerLevel.DEBUG,
+ // },
+ // {
+ // key: 'appConfigLogLevel',
+ // value: 'info',
+ // level: LoggerLevel.INFO,
+ // },
+ // {
+ // key: 'appConfigLogLevel',
+ // value: 'warn',
+ // level: LoggerLevel.WARN,
+ // },
+ // {
+ // key: 'appConfigLogLevel',
+ // value: 'error',
+ // level: LoggerLevel.ERROR,
+ // },
{
key: 'impersonating',
value: 'true',
@@ -52,6 +53,7 @@ class LoggerClient {
private _logger: ILogger;
constructor(id: string, config?: FoundationLoggerConfig) {
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
const { fields = {}, logLevel, ...restConfig } = config || {};
this._id = id;
this._logger = DefaultLogger.clone(restConfig, {
@@ -59,10 +61,9 @@ class LoggerClient {
...fields,
});
- // Set log level if provided
- if (logLevel) {
- this.setLogLevel(logLevel, OVERRIDES);
- }
+ // Ignoring log level from config for now, defaulting to info
+ // @todo - replace with log level from config once mini apps move to foundation
+ this.setLogLevel('info', OVERRIDES);
/**
* Session Info is not maintained across logger instances by react-native-logger.
| fix: default log level to info | fix: default log level to info
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.