commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
bf01239311c6ade14a8f1c886a0fa325e3f759bf | --- ios/AllSpark.xcodeproj/project.pbxproj
@@ -12,6 +12,7 @@
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
1AC977DC290CA5AC004F94C9 /* libreact-native-scanner-3.0.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC977DB290CA5AC004F94C9 /* libreact-native-scanner-3.0.a */; };
+ 252A4F0A2BDC5618006404A5 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 252A4F092BDC5618006404A5 /* PrivacyInfo.xcprivacy */; };
31C9750725D6BD2F00044347 /* icomoon.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 31C9750625D6BD2F00044347 /* icomoon.ttf */; };
31E17243255A601A0039C18F /* Bogle-Black.otf in Resources */ = {isa = PBXBuildFile; fileRef = F013540324ED83A70094D840 /* Bogle-Black.otf */; };
31E17244255A601A0039C18F /* Bogle-BlackItalic.otf in Resources */ = {isa = PBXBuildFile; fileRef = F013540224ED83A70094D840 /* Bogle-BlackItalic.otf */; };
@@ -63,6 +64,7 @@
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = AllSpark/Info.plist; sourceTree = "<group>"; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = AllSpark/main.m; sourceTree = "<group>"; };
1AC977DB290CA5AC004F94C9 /* libreact-native-scanner-3.0.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libreact-native-scanner-3.0.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 252A4F092BDC5618006404A5 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
31C9750625D6BD2F00044347 /* icomoon.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = icomoon.ttf; sourceTree = "<group>"; };
31D742EA2556B368004E5CA4 /* MaterialIcons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = MaterialIcons.ttf; path = "../../sample-composite-app/android/app/src/main/assets/fonts/MaterialIcons.ttf"; sourceTree = "<group>"; };
4120FE278C5A4EFEB2622758 /* DIGIMark-custom.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "DIGIMark-custom.ttf"; path = "../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/DIGIMark-custom.ttf"; sourceTree = "<group>"; };
@@ -84,9 +86,9 @@
BAD96B05EA590DEDF555D52B /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-AllSpark/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
CD1FCE7B27B747FE00A993B8 /* realm-js-ios.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "realm-js-ios.xcframework"; path = "../node_modules/realm/react-native/ios/realm-js-ios.xcframework"; sourceTree = "<group>"; };
CD1FCE7D27B747FE00A993B8 /* realm-monorepo.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "realm-monorepo.xcframework"; path = "Pods/Realm/core/realm-monorepo.xcframework"; sourceTree = "<group>"; };
+ D21A295D106240A591C366AE /* version.txt */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = version.txt; path = "../node_modules/@walmart/gtp-shared-components/assets/fonts/version.txt"; sourceTree = "<group>"; };
E40167B22BA2232F0067AA6B /* boosted_walmart_chat_out_high_mono_20lufs.m4a */ = {isa = PBXFileReference; lastKnownFileType = file; path = boosted_walmart_chat_out_high_mono_20lufs.m4a; sourceTree = "<group>"; };
E40167B32BA2232F0067AA6B /* boosted_walmart_achievement_06_high_mono_20lufs.m4a */ = {isa = PBXFileReference; lastKnownFileType = file; path = boosted_walmart_achievement_06_high_mono_20lufs.m4a; sourceTree = "<group>"; };
- D21A295D106240A591C366AE /* version.txt */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = version.txt; path = "../node_modules/@walmart/gtp-shared-components/assets/fonts/version.txt"; sourceTree = "<group>"; };
E9AD4B152679309900D8DDD4 /* clockin.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockin.mp3; sourceTree = "<group>"; };
E9AD4B162679309900D8DDD4 /* clockout.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockout.mp3; sourceTree = "<group>"; };
E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockfailure.mp3; sourceTree = "<group>"; };
@@ -224,6 +226,7 @@
83CBB9F61A601CBA00E9B192 = {
isa = PBXGroup;
children = (
+ 252A4F092BDC5618006404A5 /* PrivacyInfo.xcprivacy */,
31C9750625D6BD2F00044347 /* icomoon.ttf */,
13B07FAE1A68108700A75B9A /* AllSpark */,
832341AE1AAA6A7D00B99B32 /* Libraries */,
@@ -389,6 +392,7 @@
31E1724E255A601A0039C18F /* Bogle-ThinItalic.otf in Resources */,
6DA4A0512B31FF560029B319 /* CallWaiting.wav in Resources */,
6DA4A04E2B31FF560029B319 /* Reconnect.wav in Resources */,
+ 252A4F0A2BDC5618006404A5 /* PrivacyInfo.xcprivacy in Resources */,
E9AD4B192679309900D8DDD4 /* clockout.mp3 in Resources */,
6DA4A04D2B31FF560029B319 /* BusyTone.wav in Resources */,
8081353125433D1300844649 /* PTMono-Regular.ttf in Resources */,
| Added Privacy file to the project | Added Privacy file to the project
|
bf93cbb4cf2f4a5a020413427f5e9aeee1f4951e | --- .github/pull_request_template.md
@@ -13,12 +13,9 @@
Note:
-Please run following commands
+Please run following command to set up and resolve any issue found as a part of coverage or build or commit
In the allspark dir
- - yarn run build
- - yarn run coverage
- - yarn run lint:fix
- - yarn run prepare
+ - yarn run setup
For Telemetry:
--- package.json
@@ -17,7 +17,8 @@
"lint:fix": "yarn workspaces foreach --all -p run lint:fix",
"prepare": "husky",
"test": "jest --no-watchman",
- "verifyBranchName": "sh ./scripts/verifyBranchName.sh"
+ "verifyBranchName": "sh ./scripts/verifyBranchName.sh",
+ "setup": "sh ./scripts/setup.sh"
},
"repository": {
"type": "git",
--- scripts/setup.sh
@@ -0,0 +1,5 @@
+yarn
+yarn run build
+yarn run coverage
+yarn run lint:fix
+yarn run prepare
\ No newline at end of file
| chore(ui): update pr guidelines and husky config | chore(ui): update pr guidelines and husky config
|
742be983398e0b39fdb7f3b9b4e48cb536401050 | --- android/build.gradle
@@ -33,6 +33,8 @@ buildscript {
maven {
url "https://repository.walmart.com/content/groups/public"
}
+ maven { url "https://mvn.ci.artifacts.walmart.com/artifactory/sumo-mvn" }
+ maven { url "https://mvn.ci.artifacts.walmart.com/artifactory/store-mobility-services-mvn" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
@@ -75,6 +77,8 @@ allprojects {
}
}
maven { url 'https://www.jitpack.io' }
+ maven { url "https://mvn.ci.artifacts.walmart.com/artifactory/sumo-mvn" }
+ maven { url "https://mvn.ci.artifacts.walmart.com/artifactory/store-mobility-services-mvn" }
}
}
| Adding sumo mvn repo | Adding sumo mvn repo
|
64e4417aa53aecedb7f3335e84aa196f5bb25f4c | --- package-lock.json
@@ -4343,9 +4343,9 @@
"integrity": "sha512-qJaaKPSs5rNbukmidrZoqqWylzPX1nos0NwavGpgMjfCIvRuAE83yxNgNMV2KNP8y42YfNhEQlMJ5dCnsg/vWw=="
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.110",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.110.tgz",
- "integrity": "sha512-y1p+sSkP9mKS3teKi6z/shLaTruTlr8oXrvuzylPfFWPMl58xOrnmVGZCpNaeHvYgd0/LhvbUI6dPFMR2GL8pw=="
+ "version": "0.5.111",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.111.tgz",
+ "integrity": "sha512-zgOqTqzCaifOerm25RCoCeRikkoqAJiS2ilZPrY/HQAD3J4CjYE5K6Hztvw8Ap8t0WFBRUng7DR6pWAgeDXQuA=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -91,7 +91,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.101.0",
"@walmart/price-changes-mini-app": "1.0.6",
- "@walmart/push-to-talk-mini-app": "0.5.110",
+ "@walmart/push-to-talk-mini-app": "0.5.111",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| package version update ptt | package version update ptt
|
5f4fe349e240b36d8b77724093ad1425b11f7b25 | --- packages/associate-exp-hub-hub/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.21.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.21.0...@walmart/associate-exp-hub-hub@2.21.1) (2025-12-19)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-hub
+
# [2.21.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.20.0...@walmart/associate-exp-hub-hub@2.21.0) (2025-12-19)
### Features
--- packages/associate-exp-hub-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-hub",
- "version": "2.21.0",
+ "version": "2.21.1",
"description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub",
"packageManager": "yarn@4.6.0",
"engines": {
--- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.13.4](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.13.3...@walmart/associate-exp-hub-mini-app@1.13.4) (2025-12-19)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app
+
## [1.13.3](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.13.2...@walmart/associate-exp-hub-mini-app@1.13.3) (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.3",
+ "version": "1.13.4",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/associate-exp-hub-team-switcher/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.23.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.23.0...@walmart/associate-exp-hub-team-switcher@2.23.1) (2025-12-19)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher
+
# [2.23.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.22.2...@walmart/associate-exp-hub-team-switcher@2.23.0) (2025-12-19)
### Features
--- packages/associate-exp-hub-team-switcher/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-team-switcher",
- "version": "2.23.0",
+ "version": "2.23.1",
"description": "Team Switcher module for Associate Experience Hub",
"packageManager": "yarn@4.6.0",
"engines": {
| chore(version): updating package version | chore(version): updating package version
- @walmart/associate-exp-hub-hub@2.21.1
- @walmart/associate-exp-hub-mini-app@1.13.4
- @walmart/associate-exp-hub-team-switcher@2.23.1
|
ee236dabb52b2c75ad7c29209cced2a70ee238f8 | --- sr.yaml
@@ -30,3 +30,8 @@ applications:
consumerIdInfos:
- consumerId: 5d6a7e07-36ab-43e3-b378-30fa908abe9d
publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTiCdaphHXOphTEkN61zyYWfT1lzPaU848s/7cYyAUzF3lStLxgbXC7G03ga9v+W9xG3tJ4D+dwsyaxYZEsAYPgHiuE5zhC169I9w/NwOSlfgawcm7HWA/rYFdSmcbFoIOFMqMLl8joK8ki5Ouh8wwwnYmivfiXx2KjhZBoAqJoec/9Xpfy+EAwhSz5IksjiIvGanmfa2eXQH95oYQIf3WypwfwPRsFeblCH3OWIkLxs8l11Udu91VC07kKIlzWHTCElJoEnHJK9nd6vYhNzh1Xd5Zp97CYdwnMavLx6KoDIBQk/J9dT+usna/T3myOCIowzRpv4ix2rhDt0r/AC2QIDAQAB
+ - name: prod
+ type: PRODUCTION
+ consumerIdInfos:
+ - consumerId: dcf8f8e7-20de-4765-9169-6bbe3f654960
+ publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTiCdaphHXOphTEkN61zyYWfT1lzPaU848s/7cYyAUzF3lStLxgbXC7G03ga9v+W9xG3tJ4D+dwsyaxYZEsAYPgHiuE5zhC169I9w/NwOSlfgawcm7HWA/rYFdSmcbFoIOFMqMLl8joK8ki5Ouh8wwwnYmivfiXx2KjhZBoAqJoec/9Xpfy+EAwhSz5IksjiIvGanmfa2eXQH95oYQIf3WypwfwPRsFeblCH3OWIkLxs8l11Udu91VC07kKIlzWHTCElJoEnHJK9nd6vYhNzh1Xd5Zp97CYdwnMavLx6KoDIBQk/J9dT+usna/T3myOCIowzRpv4ix2rhDt0r/AC2QIDAQAB
| srymal prod | srymal prod
|
18fe3de3f71ffc9d6fc131a435c57bc30a85efca | --- packages/my-walmart-hub/__tests__/shared/ActionButtonGroup.test.tsx
@@ -14,7 +14,7 @@ describe('ActionButtonGroup', () => {
const { getByTestId, toJSON, getByText } = render(
<ActionButtonGroup {...actionButtonGroupProps} />
);
- const secondaryButton = getByTestId('secondary-button');
+ const secondaryButton = getByTestId('LinkButton');
const primaryButton = getByTestId('primary-button');
expect(secondaryButton).toBeDefined();
expect(getByText(actionButtonGroupProps.secondaryButtonLabel)).toBeTruthy();
@@ -27,7 +27,7 @@ describe('ActionButtonGroup', () => {
const { getByTestId } = render(
<ActionButtonGroup {...actionButtonGroupProps} />
);
- const secondaryButton = getByTestId('secondary-button');
+ const secondaryButton = getByTestId('LinkButton');
fireEvent.press(secondaryButton);
expect(actionButtonGroupProps.onSecondaryButtonPress).toHaveBeenCalled();
});
--- packages/my-walmart-hub/__tests__/shared/__snapshots__/ActionButtonGroup.test.tsx.snap
@@ -14,118 +14,83 @@ exports[`ActionButtonGroup renders action button group component with required p
testID="action-button-group"
>
<View
- accessibilityLabel="Cancel"
- accessibilityRole="button"
+ accessibilityRole="link"
accessibilityState={
{
- "busy": false,
- "checked": undefined,
"disabled": false,
- "expanded": undefined,
- "selected": undefined,
}
}
- accessibilityValue={
- {
- "max": undefined,
- "min": undefined,
- "now": undefined,
- "text": undefined,
- }
- }
- accessible={true}
- collapsable={false}
- focusable={true}
- onBlur={[Function]}
- onClick={[Function]}
- onFocus={[Function]}
- onResponderGrant={[Function]}
- onResponderMove={[Function]}
- onResponderRelease={[Function]}
- onResponderTerminate={[Function]}
- onResponderTerminationRequest={[Function]}
- onStartShouldSetResponder={[Function]}
style={
[
{
+ "alignItems": "center",
"flexDirection": "row",
+ "height": 40,
"justifyContent": "center",
- "overflow": "visible",
+ "paddingVertical": 8,
},
- {},
- null,
+ undefined,
]
}
- testID="secondary-button"
+ testID="LinkButton"
>
- <View
+ <Text
+ accessibilityRole="link"
+ accessibilityState={
+ {
+ "disabled": false,
+ }
+ }
+ onPress={[Function]}
+ onPressIn={[Function]}
+ onPressOut={[Function]}
style={
[
{
- "alignItems": "center",
- "borderRadius": 1000,
- "borderWidth": 1,
- "flexDirection": "row",
- "flexShrink": 1,
- "justifyContent": "center",
- "overflow": "hidden",
+ "color": "#2e2f32",
+ "fontFamily": "EverydaySansUI-Regular",
+ "fontSize": 14,
+ "fontWeight": "400",
+ "lineHeight": 20,
},
- {
- "backgroundColor": "#ffffff",
- "borderColor": "#babbbe",
- "borderWidth": 1,
- },
- {
- "paddingHorizontal": 16,
- "paddingVertical": 0,
- },
- {},
- {},
+ [
+ [
+ {
+ "color": "#2e2f32",
+ "textAlign": "center",
+ "textDecorationLine": "underline",
+ },
+ {
+ "color": "#2e2f32",
+ "textAlign": "center",
+ "textDecorationLine": "underline",
+ },
+ ],
+ undefined,
+ ],
]
}
+ testID="Link"
>
<Text
- ellipsizeMode="tail"
- numberOfLines={1}
+ accessibilityRole="text"
style={
[
- {
- "fontFamily": "EverydaySansUI-Bold",
- "textAlign": "center",
- },
{
"color": "#2e2f32",
+ "fontFamily": "EverydaySansUI-Regular",
"fontSize": 16,
+ "fontWeight": "400",
"lineHeight": 24,
- "textAlign": "center",
},
- {
- "fontSize": 14,
- "lineHeight": 32,
- },
- {},
- {},
- {},
+ undefined,
]
}
+ testID="Body"
>
Cancel
</Text>
- <View
- style={
- [
- {
- "alignSelf": "center",
- "position": "absolute",
- "width": "100%",
- },
- {
- "marginVertical": 3,
- },
- ]
- }
- />
- </View>
+ </Text>
</View>
<View
style={
--- packages/my-walmart-hub/src/Shared/Components/ActionButtonGroup/ActionButtonGroup.tsx
@@ -49,7 +49,7 @@
import React from 'react';
import { ButtonGroupProps } from './types';
-import { Button } from '@walmart/gtp-shared-components-3';
+import { Button, LinkButton } from '@walmart/gtp-shared-components-3';
import { buttonGroupStyles as styles } from './style';
import { View } from 'react-native';
@@ -69,16 +69,15 @@ export const ActionButtonGroup = ({
return (
<View testID='action-button-group' style={styles.buttonContainer}>
{secondaryButtonLabel && onSecondaryButtonPress && (
- <Button
- variant='tertiary'
- size='small'
+ <LinkButton
+ size='medium'
onPress={onSecondaryButtonPress}
accessibilityRole='button'
accessibilityLabel={secondaryButtonLabel}
testID='secondary-button'
>
{secondaryButtonLabel}
- </Button>
+ </LinkButton>
)}
<View style={styles.primaryButtonContainer}>
<Button
--- packages/my-walmart-hub/src/TeamSwitcher/Components/ShiftFilter/ShiftFilterList.tsx
@@ -97,6 +97,7 @@ export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({
handleRefetch = () => {},
testID = 'shift-filter-list',
}) => {
+ const shiftText = headerTitle?.slice(0, 5);
return (
<>
{/* Alert banner for mandatory shift errors */}
@@ -130,7 +131,7 @@ export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({
item.number && (
<View testID={testID} key={item.number} style={styles.item}>
<ShiftFilter
- title={headerTitle}
+ title={shiftText}
shiftId={item?.number}
shiftName={item?.name}
selectedShifts={selectedShiftData}
| Feature/minor ux fixes (#516) | Feature/minor ux fixes (#516)
* feat(ui): fixed button and text style
* feat(ui): updated test
---------
Co-authored-by: Prasan Suresh Dhareshwar - p0d02sx <Prasansuresh.Dharesh@walmart.com> |
f2bd496497a605494adedad661b1194881778e6c | --- packages/me-at-walmart-container/src/services/navConfig.ts
@@ -34,10 +34,16 @@ type SideMenuConfig = {
navs?: SideMenuOption[];
};
+type UnknownMenuConfig = {
+ type?: 'default';
+ navs?: unknown[];
+};
+
type GlobaNavConfigData = (
| QuickActionConfig
| BottomTabConfig
| SideMenuConfig
+ | UnknownMenuConfig
)[];
/**
@@ -46,12 +52,21 @@ type GlobaNavConfigData = (
const transformGlobalData = (data: GlobaNavConfigData): NavConfigData => {
return data.reduce(
(config, option) => {
- if (!option.type || !option.navs?.length) {
+ if (!option.navs?.length) {
return config;
}
- // @ts-ignore - option.navs will match that of config[option.type]
- config[option.type].push(...option.navs);
+ if (option.type === NavType.quickAction) {
+ config[NavType.quickAction].push(...option.navs);
+ }
+
+ if (option.type === NavType.bottomNav) {
+ config[NavType.bottomNav].push(...option.navs);
+ }
+
+ if (option.type === NavType.sideNav) {
+ config[NavType.sideNav].push(...option.navs);
+ }
return config;
},
| fix: nav config transform not handling unexpected nav type | fix: nav config transform not handling unexpected nav type
|
2737b9dea65af6aa32217ae89505dc85dac0ae6d | --- packages/allspark-foundation-hub/src/HubFeature/Store/Hub/Container/HubDashboard.tsx
@@ -31,6 +31,7 @@ import {
useFocusEffect,
useNavigation,
useRoute,
+ useScrollToTop,
} from '@react-navigation/native';
import { TeamOnboardingScreen } from '../../Onboarding';
import { useOnboardingContext } from '../../Onboarding/TeamOnboarding/OnboardingContext';
@@ -82,6 +83,8 @@ export const HubDashboard = ({
const originalSiteId = useSelector(UserSelectors.getOriginalUserSiteId);
const parentSiteID = useRef(currentSiteId);
const lastUpdatedTimeout = useRef<any>();
+ const scrollViewRef = useRef(null);
+ useScrollToTop(scrollViewRef);
const scrollPosition = useRef(new Animated.Value(0)).current;
@@ -232,6 +235,7 @@ export const HubDashboard = ({
{showHubContainer ? (
<>
<ScrollView
+ ref={scrollViewRef}
testID='HubDashboard.View'
stickyHeaderIndices={[1]}
showsVerticalScrollIndicator={false}
| Update the scroll to top | Update the scroll to top
|
24a901f0f27d1b2ab56399cdb9cf934d865925fc | --- packages/allspark-foundation-hub/__tests__/HubFeature/__snapshots__/TeamListItem.test.tsx.snap
@@ -45,7 +45,7 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`]
}
/>
<View
- accessibilityLabel="Management 93 Clocked in"
+ accessibilityLabel="Management"
accessibilityRole="header"
accessible={true}
style={
@@ -61,26 +61,13 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`]
"color": "#2e2f32",
"fontFamily": "Bogle-Regular",
"fontSize": 16,
- "fontWeight": "700",
+ "fontWeight": "400",
"lineHeight": 24,
}
}
>
Management
</Text>
- <Text
- style={
- {
- "color": "#2e2f32",
- "fontFamily": "Bogle-Regular",
- "fontSize": 14,
- "fontWeight": "400",
- "lineHeight": 20,
- }
- }
- >
- 93 Clocked in
- </Text>
</View>
</View>
<View
@@ -203,7 +190,7 @@ exports[`TeamListItem renders list item for team selection correctly 1`] = `
}
/>
<View
- accessibilityLabel="Management "
+ accessibilityLabel="Management"
accessibilityRole="header"
accessible={true}
style={
| Update clockout screen | Update clockout screen
|
4e56c1f153b62d2bbb50cd0fffde61362102500f | --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx
@@ -58,6 +58,7 @@ import {
associateIsAbsent,
associateIsClockedIn,
associateIsScheduled,
+ associateIsScheduledWithShifts,
associateIsTardy,
} from '../../utils/user';
import {ListEmptyComponent} from '../../components/EmptyList';
@@ -287,60 +288,68 @@ export const SupplyChainRosterDetailScreen = ({
const [searchInput, setSearchInput] = useState('');
// Filter count for non-DC sites
- const filterCount = useMemo(() => {
- if (
- teamState.teamIds?.[0] === TOTAL_SITE_TEAM_ID ||
- teamState.teamIds?.[0] === ''
- ) {
- return {
- scheduledCount: filteredAssociates?.filter(associateIsScheduled).length,
- clockedInCount:
- filteredAssociates?.filter(associateIsClockedIn)?.length,
- absentCount: filteredAssociates?.filter(associateIsAbsent)?.length,
- tardyCount: filteredAssociates?.filter(associateIsTardy)?.length,
- };
- } else {
- let scheduledCount = 0;
- let clockedInCount = 0;
- let absentCount = 0;
- let tardyCount = 0;
- allTeams?.forEach((teamData: SupplyChainTeam) => {
- if (isSalariedOrLead) {
- if (switcherTeamState.teamIds?.includes(teamData?.teamId as string)) {
- scheduledCount =
- scheduledCount +
- (teamData?.membership?.filter(associateIsScheduled)
- ?.length as number);
- clockedInCount =
- filteredAssociates?.filter(associateIsClockedIn)?.length;
- absentCount = filteredAssociates?.filter(associateIsAbsent)?.length;
- tardyCount = filteredAssociates?.filter(associateIsTardy)?.length;
- }
- } else {
- if (teamState.teamIds?.includes(teamData?.teamId as string)) {
- scheduledCount =
- scheduledCount +
- (teamData.membership?.filter(associateIsScheduled)
- ?.length as number);
- clockedInCount =
- filteredAssociates?.filter(associateIsClockedIn)?.length;
- absentCount = filteredAssociates?.filter(associateIsAbsent)?.length;
- tardyCount = filteredAssociates?.filter(associateIsTardy)?.length;
+ const getFilterCount = useCallback(
+ (state: any) => {
+ if (
+ state.teamIds?.[0] === TOTAL_SITE_TEAM_ID ||
+ state.teamIds?.[0] === ''
+ ) {
+ return {
+ scheduledCount:
+ filteredAssociates?.filter(associateIsScheduled).length,
+ clockedInCount:
+ filteredAssociates?.filter(associateIsClockedIn)?.length,
+ absentCount: filteredAssociates?.filter(associateIsAbsent)?.length,
+ tardyCount: filteredAssociates?.filter(associateIsTardy)?.length,
+ };
+ } else {
+ let scheduledCount = 0;
+ let clockedInCount = 0;
+ let absentCount = 0;
+ let tardyCount = 0;
+ allTeams?.forEach((teamData: SupplyChainTeam) => {
+ if (isSalariedOrLead) {
+ if (state.teamIds?.includes(teamData?.teamId as string)) {
+ scheduledCount =
+ scheduledCount +
+ (teamData?.membership?.filter((associate) =>
+ associateIsScheduledWithShifts(associate, state.shiftIds),
+ )?.length as number);
+ clockedInCount =
+ filteredAssociates?.filter(associateIsClockedIn)?.length;
+ absentCount =
+ filteredAssociates?.filter(associateIsAbsent)?.length;
+ tardyCount = filteredAssociates?.filter(associateIsTardy)?.length;
+ }
+ } else {
+ if (state.teamIds?.includes(teamData?.teamId as string)) {
+ scheduledCount =
+ scheduledCount +
+ (teamData.membership?.filter(associateIsScheduled)
+ ?.length as number);
+ clockedInCount =
+ filteredAssociates?.filter(associateIsClockedIn)?.length;
+ absentCount =
+ filteredAssociates?.filter(associateIsAbsent)?.length;
+ tardyCount = filteredAssociates?.filter(associateIsTardy)?.length;
+ }
}
- }
- });
- return {
- scheduledCount,
- clockedInCount,
- absentCount,
- tardyCount,
- };
- }
- }, [
- teamState,
- allTeamsData?.supplyChainTeamsByBusinessUnit?.teams,
- filteredAssociates,
- ]);
+ });
+ return {
+ scheduledCount,
+ clockedInCount,
+ absentCount,
+ tardyCount,
+ };
+ }
+ },
+ [allTeamsData?.supplyChainTeamsByBusinessUnit?.teams, filteredAssociates],
+ );
+
+ const filterCount = useMemo(
+ () => getFilterCount(isSalariedOrLead ? switcherTeamState : teamState),
+ [isSalariedOrLead, switcherTeamState, teamState],
+ );
// Filter chips based on site type
const filterChips: FilterChipProps[] = useMemo(() => {
--- src/utils/user.ts
@@ -116,6 +116,26 @@ export const associateIsScheduled = (
return associate?.wfmSchedule !== null;
};
+export const associateIsScheduledWithShifts = (
+ associate: Associate | TeamAssociateMembership['associate'] | any,
+ shifts: string[],
+) => {
+ // Remove this once we get shifts in this format
+ const mapShift: Record<string, number> = {
+ ['A1']: 1,
+ ['A2']: 2,
+ ['A3']: 3,
+ ['B1']: 4,
+ ['B2']: 5,
+ ['B3']: 6,
+ };
+ const shiftSiteIds = shifts?.map((shift) => mapShift[shift]);
+ return (
+ associate?.wfmSchedule !== null &&
+ shiftSiteIds?.includes(Number(associate.shiftCode))
+ );
+};
+
export const associateDisplayName = (associate?: Associate) => {
const preferredFullName =
(!isNil(associate?.preferredFirstName) ||
| feat(ui): logic to handle schedule count | feat(ui): logic to handle schedule count
|
7b3b2f07922b7212bdf75e3a48155049fff60407 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.15.8",
+ "version": "1.15.9",
"main": "dist/index.js",
"files": [
"dist"
@@ -99,7 +99,7 @@
"@walmart/react-native-shared-navigation": "6.1.4",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
- "@walmart/roster-mini-app": "2.12.8",
+ "@walmart/roster-mini-app": "2.12.10",
"@walmart/ui-components": "1.15.1",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
--- src/navigation/index.tsx
@@ -8,15 +8,12 @@ import {
TEAM_HUB_SCREEN_NAME,
DEFAULT_WIDGET_IDS,
} from '@walmart/allspark-foundation-hub/HubFeature/Store/Common';
-import rosterFeature from '@walmart/roster-mini-app';
+import {RosterMiniApp} from '@walmart/roster-mini-app';
import {WarningBanner} from '../components/WarningBanner';
import {useUserCanSeeTeamHub} from '../hooks/user';
-import {createStackNavigator} from '@react-navigation/stack';
export * from './types';
-const MyTeamStack = createStackNavigator();
-
export const MyTeamMiniApp = () => {
const showManagerTeamHub = useUserCanSeeTeamHub();
@@ -26,11 +23,7 @@ export const MyTeamMiniApp = () => {
<TeamHub />
</>
) : (
- <MyTeamStack.Navigator>
- {rosterFeature.buildAllScreens({
- Navigator: MyTeamStack as any,
- })}
- </MyTeamStack.Navigator>
+ <RosterMiniApp />
);
};
--- yarn.lock
@@ -6473,7 +6473,7 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-sumo-sdk": "npm:2.6.0"
"@walmart/redux-store": "npm:3.7.0"
- "@walmart/roster-mini-app": "npm:2.12.8"
+ "@walmart/roster-mini-app": "npm:2.12.10"
"@walmart/ui-components": "npm:1.15.1"
babel-jest: "npm:^29.2.1"
chance: "npm:^1.1.11"
@@ -6654,9 +6654,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:2.12.8":
- version: 2.12.8
- resolution: "@walmart/roster-mini-app@npm:2.12.8"
+"@walmart/roster-mini-app@npm:2.12.10":
+ version: 2.12.10
+ resolution: "@walmart/roster-mini-app@npm:2.12.10"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6698,7 +6698,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/a6809e7fc6248ecb5738fb3b8b3eb2e3dcb504d676a5219fc06b0eb96df85232323e84c873a07a8cdb41f3242754ebb692c4159635e4972a7cbfbaaa5c4eb0ea
+ checksum: 10c0/2441e6445b384fea48122d5c39ab497774731801d883400546ff5318df23f7a71af83570d848908418e704ee789c9e3fd2b212a1eed2681e368d8ee88899013f
languageName: node
linkType: hard
| Update the roster navigation for my team | Update the roster navigation for my team
|
40e68fc7e365e67c38a34cedb918e0c1b25a4787 | --- package-lock.json
@@ -4260,9 +4260,9 @@
"integrity": "sha512-7nXe02E/AOFtT1u6/tVerIskwWvSoJcMgYN2DNH7vMgbb0YIFOsqwzX+nbRh/AcaZhC7YX5H2irVCc6/5/HjJw=="
},
"@walmart/metrics-mini-app": {
- "version": "0.5.2",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.2.tgz",
- "integrity": "sha512-7brDEaqD4oDkGHLxYY82+QOBVplAWoPlAvWU63z8hrW6Zl74GA/SR6cXrouHcZum2wSRp/ZkLJ25Sg6dBsHCsQ==",
+ "version": "0.5.4",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.4.tgz",
+ "integrity": "sha512-0NEVactZ5No2uXod7hCuN5wvhkTvo0qmJXyPqgs/z1lYe499cAoOunHHOeJ15P6QRasucqsbBDK8eZV5FSjihw==",
"requires": {
"@types/base-64": "^1.0.0",
"apisauce": "^1.1.2",
--- package.json
@@ -86,7 +86,7 @@
"@walmart/inbox-mini-app": "0.19.0",
"@walmart/iteminfo-mini-app": "2.0.16",
"@walmart/manager-approvals-miniapp": "0.0.58",
- "@walmart/metrics-mini-app": "0.5.2",
+ "@walmart/metrics-mini-app": "0.5.4",
"@walmart/moment-walmart": "1.0.4",
"@walmart/push-to-talk-mini-app": "0.5.39",
"@walmart/react-native-env": "^0.2.0",
| bumping metrics version | bumping metrics version
|
522025534291226fdc5ea61259aac7afdb5ffbf7 | --- package-lock.json
@@ -46,7 +46,7 @@
"@walmart/counts-component-miniapp": "0.0.42",
"@walmart/emergency-mini-app": "1.17.0",
"@walmart/exception-mini-app": "1.0.14",
- "@walmart/facilities-management-miniapp": "0.5.15",
+ "@walmart/facilities-management-miniapp": "0.5.18",
"@walmart/feedback-all-spark-miniapp": "0.9.9",
"@walmart/financial-wellbeing-feature-app": "1.0.64",
"@walmart/functional-components": "2.0.6",
@@ -81,7 +81,7 @@
"@walmart/schedule-mini-app": "0.29.0",
"@walmart/settings-mini-app": "1.12.0",
"@walmart/shelfavailability-mini-app": "1.5.2",
- "@walmart/taskit-mini-app": "0.49.6",
+ "@walmart/taskit-mini-app": "0.49.11",
"@walmart/time-clock-mini-app": "0.30.0",
"@walmart/ui-components": "1.9.0",
"@walmart/welcomeme-mini-app": "0.73.0",
@@ -5082,9 +5082,9 @@
}
},
"node_modules/@walmart/facilities-management-miniapp": {
- "version": "0.5.15",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.15.tgz",
- "integrity": "sha512-NsicPDhDZADmBReb5XFFlwPwC5QCGDhtVF1UckiNPFXuG9Own5EWVnn5j69NmRc5P8AO31/6JgHypN9dJjmybA==",
+ "version": "0.5.18",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.18.tgz",
+ "integrity": "sha512-aIaN85qEtjZn/jv1Q3VzM+gFWAGTywmKPGo7ResuMH5tQOJ0g3zddZp4/uld+9n1WvT1HygtBy3TEAnmUJ7VOg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-community/async-storage": "^1.12.1",
@@ -6098,9 +6098,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "0.49.6",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.6.tgz",
- "integrity": "sha512-uIOdjSxp9dB/x036dC8bnRom0hkr+FqvXT0GdrX69M+dVEV0rrHGARrBOVqQZIN1U2tg/EhyDh3Et1avL+ZJLw==",
+ "version": "0.49.11",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.11.tgz",
+ "integrity": "sha512-D0Oi1XUgIvxIVjQL2wl0nyeTJr0Sqcvtezbag3ZG0tMlwxGJMXNB2PvkQ5n8JBuAV1YRlggsGtIp+yLz+slgCQ==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -25164,9 +25164,9 @@
"integrity": "sha512-SaexB86EUhjf0oQiOc3RbsEMz9TsSM3av62l46CVznEOOVGmdcrm3naA37GxXSX5LeD0Brft2bWJ5xJbRkqwKg=="
},
"@walmart/facilities-management-miniapp": {
- "version": "0.5.15",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.15.tgz",
- "integrity": "sha512-NsicPDhDZADmBReb5XFFlwPwC5QCGDhtVF1UckiNPFXuG9Own5EWVnn5j69NmRc5P8AO31/6JgHypN9dJjmybA=="
+ "version": "0.5.18",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.18.tgz",
+ "integrity": "sha512-aIaN85qEtjZn/jv1Q3VzM+gFWAGTywmKPGo7ResuMH5tQOJ0g3zddZp4/uld+9n1WvT1HygtBy3TEAnmUJ7VOg=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.9.9",
@@ -25454,9 +25454,9 @@
"integrity": "sha512-tDd8OoNfsef38MR5tx5olytV9lphKVT/vGqHegTUGhosR2NjoQZBj0DE8YjGrcIWq/29x7+V/R1Db0iAgnauyQ=="
},
"@walmart/taskit-mini-app": {
- "version": "0.49.6",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.6.tgz",
- "integrity": "sha512-uIOdjSxp9dB/x036dC8bnRom0hkr+FqvXT0GdrX69M+dVEV0rrHGARrBOVqQZIN1U2tg/EhyDh3Et1avL+ZJLw=="
+ "version": "0.49.11",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.11.tgz",
+ "integrity": "sha512-D0Oi1XUgIvxIVjQL2wl0nyeTJr0Sqcvtezbag3ZG0tMlwxGJMXNB2PvkQ5n8JBuAV1YRlggsGtIp+yLz+slgCQ=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- patches/@walmart+facilities-management-miniapp+0.5.15.patch
@@ -1,28 +0,0 @@
-diff --git a/node_modules/@walmart/facilities-management-miniapp/dist/utils/wmNotificationsListener.js b/node_modules/@walmart/facilities-management-miniapp/dist/utils/wmNotificationsListener.js
-index 51e43a3..92e9cd1 100644
---- a/node_modules/@walmart/facilities-management-miniapp/dist/utils/wmNotificationsListener.js
-+++ b/node_modules/@walmart/facilities-management-miniapp/dist/utils/wmNotificationsListener.js
-@@ -5,6 +5,7 @@ import { APP_NAME, EVENT_NAME } from '../logs/logConstans';
- import { navigate } from '@walmart/react-native-shared-navigation';
- import { Routes } from '../NavigationStack/Routes';
- import { NOTIFICATION_TYPE } from '../constants/common';
-+var taskIt = require('@walmart/taskit-mini-app');
- export var initWmNotificationsListener = function () {
- var notificationForegroundHandler = function (event) {
- if (event) {
-@@ -46,6 +47,7 @@ export var initWmNotificationsListener = function () {
- var details = typeof customData_1.task_details === 'string'
- ? JSON.parse(customData_1.task_details)
- : customData_1.task_details;
-+ taskIt === null || taskIt === void 0 ? void 0 : taskIt.taskItNotificationHandler(customData_1);
- typeof navigate === 'function' &&
- navigate('taskit', {
- screen_id: 'refrigerator.details',
-@@ -94,6 +96,7 @@ export var initWmNotificationsListener = function () {
- ? JSON.parse(customData.task_details)
- : customData.task_details;
- if (customData.DM_API_SUCCESS_FLAG === 'true') {
-+ taskIt === null || taskIt === void 0 ? void 0 : taskIt.taskItNotificationHandler(customData);
- typeof navigate === 'function' &&
- navigate('taskit', {
- screen_id: 'refrigerator.details',
\ No newline at end of file
--- patches/@walmart+facilities-management-miniapp+0.5.18.patch
| Update package-lock | Update package-lock
|
1b17b4a942270dbfae010fc6a60ba1a134c110d3 | --- package-lock.json
@@ -77,7 +77,7 @@
"@walmart/receipt-check-miniapp": "1.12.4",
"@walmart/redux-store": "3.1.5",
"@walmart/returns-mini-app": "0.13.3",
- "@walmart/schedule-mini-app": "0.36.0",
+ "@walmart/schedule-mini-app": "0.35.0",
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.13",
"@walmart/taskit-mini-app": "2.28.14",
@@ -3089,15 +3089,6 @@
"@react-native-firebase/app": "15.1.1"
}
},
- "node_modules/@react-native-firebase/messaging": {
- "version": "15.7.0",
- "resolved": "https://npme.walmart.com/@react-native-firebase/messaging/-/messaging-15.7.0.tgz",
- "integrity": "sha512-c2BLLbBm4kMjbkm1fJ465qZ2o24GHylLxeHSjU63SHIUVhnD5j7rWV/XvumNIEkSWtZmy9v+uGpmArLCAjZraw==",
- "license": "Apache-2.0",
- "peerDependencies": {
- "@react-native-firebase/app": "15.7.0"
- }
- },
"node_modules/@react-native-firebase/perf": {
"version": "15.1.1",
"license": "Apache-2.0",
@@ -5931,16 +5922,15 @@
}
},
"node_modules/@walmart/schedule-mini-app": {
- "version": "0.36.0",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.36.0.tgz",
- "integrity": "sha512-0DDJRW0Pksxeh8Tmb3ceTwr7PFNpkxTqcIbLrSs8AWFxJcKk2lezj2qFIUNcL8wKNvezLwD1/GxJBsPBlhkiKA==",
+ "version": "0.35.0",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.35.0.tgz",
+ "integrity": "sha512-V45Z7fH8nNwG5QbgXJRLZgQ46hODVpsu7MO+G+TQbZde2BruW9fN1+D0WrpoHkcBY3GoZgq7qsv/rldocVOahg==",
"dependencies": {
- "@react-native-firebase/messaging": "^15.1.1",
"@walmart/moment-walmart": "^1.0.4",
"@walmart/wfm-ui": "0.2.26",
"crypto-js": "^3.3.0",
"react-native-tab-view": "^2.4.0",
- "wfm-allspark-data-library": "^1.6.0"
+ "wfm-allspark-data-library": "^1.2.0"
},
"peerDependencies": {
"@react-native-firebase/remote-config": ">=10.1.1",
@@ -5948,17 +5938,20 @@
"@react-navigation/native": ">=6.0.0",
"@react-navigation/stack": ">=6.0.0",
"@walmart/attendance-mini-app": ">=0.50.0",
- "@walmart/core-services": "^2.0.19",
+ "@walmart/functional-components": ">=2.0.0",
"@walmart/gtp-shared-components": ">=0.2.2",
+ "@walmart/react-native-env": ">=0.1.0",
+ "@walmart/react-native-logger": "^1.9.0",
"@walmart/react-native-shared-navigation": "^0.2.0",
"@walmart/redux-store": ">=1.0.15",
"@walmart/ui-components": ">=1.0.101",
- "i18next": "*",
+ "i18next": "^19.8.7",
"javascript-time-ago": "^2.3.4",
"react": ">=18.1.0",
"react-i18next": ">=12.0.0",
"react-native": ">=0.70.5",
"react-native-wm-config": "^0.1.1",
+ "react-native-wm-telemetry": "^0.3.0",
"react-redux": ">=7.2.1",
"redux": "^4.0.5",
"reselect": ">=4.0.0"
@@ -24191,11 +24184,6 @@
"resolved": "https://npme.walmart.com/@react-native-firebase/firestore/-/firestore-15.1.1.tgz",
"integrity": "sha512-XU7Zl/IJmL7hUq0syy3jR5AnvExF8j2Crnu7mcaR9aMfbiiEoAUCNtFNVfiA8ff2Owpmwz49qndxNBKEjyftqg=="
},
- "@react-native-firebase/messaging": {
- "version": "15.7.0",
- "resolved": "https://npme.walmart.com/@react-native-firebase/messaging/-/messaging-15.7.0.tgz",
- "integrity": "sha512-c2BLLbBm4kMjbkm1fJ465qZ2o24GHylLxeHSjU63SHIUVhnD5j7rWV/XvumNIEkSWtZmy9v+uGpmArLCAjZraw=="
- },
"@react-native-firebase/perf": {
"version": "15.1.1",
"requires": {
@@ -25478,16 +25466,15 @@
}
},
"@walmart/schedule-mini-app": {
- "version": "0.36.0",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.36.0.tgz",
- "integrity": "sha512-0DDJRW0Pksxeh8Tmb3ceTwr7PFNpkxTqcIbLrSs8AWFxJcKk2lezj2qFIUNcL8wKNvezLwD1/GxJBsPBlhkiKA==",
+ "version": "0.35.0",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.35.0.tgz",
+ "integrity": "sha512-V45Z7fH8nNwG5QbgXJRLZgQ46hODVpsu7MO+G+TQbZde2BruW9fN1+D0WrpoHkcBY3GoZgq7qsv/rldocVOahg==",
"requires": {
- "@react-native-firebase/messaging": "^15.1.1",
"@walmart/moment-walmart": "1.0.4",
"@walmart/wfm-ui": "0.2.26",
"crypto-js": "^3.3.0",
"react-native-tab-view": "^3.3.0",
- "wfm-allspark-data-library": "^1.6.0"
+ "wfm-allspark-data-library": "^1.2.0"
}
},
"@walmart/service-environment-js": {
--- package.json
@@ -119,7 +119,7 @@
"@walmart/receipt-check-miniapp": "1.12.4",
"@walmart/redux-store": "3.1.5",
"@walmart/returns-mini-app": "0.13.3",
- "@walmart/schedule-mini-app": "0.36.0",
+ "@walmart/schedule-mini-app": "0.35.0",
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.13",
"@walmart/taskit-mini-app": "2.28.14",
| revert schedule-mini-app to 0.35.0 | revert schedule-mini-app to 0.35.0
|
c5d0869bb130d862c6f3bd77e816981b09ed4c84 | --- __tests__/components/ClockStatusIndicatorTest.tsx
@@ -0,0 +1,33 @@
+import React from 'react';
+import {renderWithProviders} from '../harness';
+import {ClockStatusIndicator} from '../../src/components/ActionButton/ClockStatusIndicator';
+import {useSelector} from 'react-redux';
+import {PresenceIndicatorProps} from '../../src/components/ActionButton/ClockStatusIndicator';
+
+jest.mock('react-redux', () => ({
+ ...jest.requireActual('react-redux'),
+ useSelector: jest.fn(),
+}));
+
+describe('ClockStatusIndicator tests', () => {
+ it('ErrorComponent snapshot test', () => {
+ const clockStatusIndicatorComponent = renderWithProviders(
+ <ClockStatusIndicator />,
+ );
+ expect(clockStatusIndicatorComponent).toMatchSnapshot();
+ });
+
+ it('should render Clocked in', () => {
+ const props = {
+ isClockedIn: true,
+ showText: true,
+ showIndicator: false,
+ } as PresenceIndicatorProps;
+ (useSelector as jest.Mock).mockReturnValue(true);
+ const clockStatusIndicatorComponent = renderWithProviders(
+ <ClockStatusIndicator {...props} />,
+ );
+ const clockedInText = clockStatusIndicatorComponent.getByText('Clocked in');
+ expect(clockedInText).toBeDefined();
+ });
+});
--- __tests__/components/__snapshots__/ClockStatusIndicatorTest.tsx.snap
@@ -0,0 +1,3 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`ClockStatusIndicator tests ErrorComponent snapshot test 1`] = `null`;
--- src/components/ActionButton/ClockStatusIndicator.tsx
@@ -30,7 +30,7 @@ const styles = StyleSheet.create({
},
});
-type PresenceIndicatorProps = {
+export type PresenceIndicatorProps = {
isClockedIn: boolean | {};
showIndicator?: boolean;
showText?: boolean;
@@ -51,6 +51,7 @@ export const ClockStatusIndicator = ({
<View style={[styles.indicatorRow, style]}>
{showIndicator && (
<View
+ testID='statusIndicator'
style={[
styles.clockStatus,
isClockedIn ? styles.clockedIn : styles.clockedOut,
| Adding tests for ClockStatusIndicator | Adding tests for ClockStatusIndicator
|
3283ed856f863341d1adb89a9aa7189abe6333eb | --- __tests__/navigation/AssociateHallwayNav/ComponentsTest.tsx
@@ -49,6 +49,7 @@ describe('Banners', () => {
mockUseSelector.mockReturnValueOnce(false); // impersonated
mockUseSelector.mockReturnValueOnce(true); // connectivity
mockUseSelector.mockReturnValueOnce(false); // networkSiteMismatch
+ mockUseSelector.mockReturnValueOnce(false); // changeStoreBannerEnabled
mockGetFocusedRouteNameFromRoute.mockReturnValueOnce('home');
const component = create(<Banners {...props} />);
@@ -60,6 +61,7 @@ describe('Banners', () => {
mockUseSelector.mockReturnValueOnce(true); // impersonated
mockUseSelector.mockReturnValueOnce(true); // connectivity
mockUseSelector.mockReturnValueOnce(false); // networkSiteMismatch
+ mockUseSelector.mockReturnValueOnce(false); // changeStoreBannerEnabled
mockGetFocusedRouteNameFromRoute.mockReturnValueOnce('home');
component.update(<Banners {...props} />);
@@ -70,6 +72,7 @@ describe('Banners', () => {
mockUseSelector.mockReturnValueOnce(true); // impersonated
mockUseSelector.mockReturnValueOnce(true); // connectivity
mockUseSelector.mockReturnValueOnce(false); // networkSiteMismatch
+ mockUseSelector.mockReturnValueOnce(false); // changeStoreBannerEnabled
mockGetFocusedRouteNameFromRoute.mockReturnValueOnce('myTeam');
component.update(<Banners {...props} />);
@@ -80,6 +83,7 @@ describe('Banners', () => {
mockUseSelector.mockReturnValueOnce(false); // impersonated
mockUseSelector.mockReturnValueOnce(false); // connectivity
mockUseSelector.mockReturnValueOnce(false); // networkSiteMismatch
+ mockUseSelector.mockReturnValueOnce(false); // changeStoreBannerEnabled
mockGetFocusedRouteNameFromRoute.mockReturnValueOnce('home');
component.update(<Banners {...props} />);
@@ -90,6 +94,7 @@ describe('Banners', () => {
mockUseSelector.mockReturnValueOnce(false); // impersonated
mockUseSelector.mockReturnValueOnce(true); // connectivity
mockUseSelector.mockReturnValueOnce(true); // networkSiteMismatch
+ mockUseSelector.mockReturnValueOnce(true); // changeStoreBannerEnabled
mockGetFocusedRouteNameFromRoute.mockReturnValueOnce('home');
component.update(<Banners {...props} />);
--- src/navigation/AssociateHallwayNav/Components.tsx
@@ -13,7 +13,11 @@ import {IndicatorBar, ConnectivityBanner} from '@walmart/ui-components';
import {WarningIcon, LinkButton} from '@walmart/gtp-shared-components';
import colors from '@walmart/gtp-shared-components/dist/theme/colors.json';
-import {getIsImpersonated, getNetworkSiteMismatch} from '../../redux';
+import {
+ getChangeStoreBannerEnabled,
+ getIsImpersonated,
+ getNetworkSiteMismatch,
+} from '../../redux';
export const styles = StyleSheet.create({
menuIcon: {
@@ -49,7 +53,6 @@ export const styles = StyleSheet.create({
export const ChangeStoreBanner = () => {
const [t] = useTranslation();
const {navigate} = useNavigation();
-
const changeStore = () => navigate('Core.ChangeStoreModal');
return (
@@ -73,6 +76,7 @@ export const Banners = (props: StackHeaderProps) => {
const impersonated = useSelector(getIsImpersonated);
const connectivity = useSelector(getConnectivity);
const networkSiteMismatch = useSelector(getNetworkSiteMismatch);
+ const changeStoreBannerEnabled = useSelector(getChangeStoreBannerEnabled);
const isImpersonated = useMemo(() => {
const routeName = getFocusedRouteNameFromRoute(scene.route);
@@ -83,7 +87,7 @@ export const Banners = (props: StackHeaderProps) => {
<>
{isImpersonated && <IndicatorBar title={t('impersonation.mode')} />}
{!connectivity && <ConnectivityBanner />}
- {networkSiteMismatch && <ChangeStoreBanner />}
+ {changeStoreBannerEnabled && networkSiteMismatch && <ChangeStoreBanner />}
</>
);
};
--- src/redux/SharedSelectors.ts
@@ -42,6 +42,9 @@ export const getCoreAppConfig = createSelector(
export const getCoreAppConfigValue = (key: string) =>
createSelector([getCoreAppConfig], (config) => config?.[key]);
+export const getChangeStoreBannerEnabled = getCoreAppConfigValue(
+ 'changeStoreBannerEnabled',
+);
export const getInactivityTime = getCoreAppConfigValue('inactivityTimeMs');
export const getBackgroundIdleTime = getCoreAppConfigValue(
| Adding ccm flag to control change store banner | Adding ccm flag to control change store banner
|
28fb3ddec70805f2bc70207a465137b68dc03334 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 60
+ versionCode 61
versionName "1.0.4"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>60</string>
+ <string>61</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>invmgmt</string>
--- ios/AllSparkTests/Info.plist
@@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>60</string>
+ <string>61</string>
</dict>
</plist>
| Incrementing build number | Incrementing build number
|
325eb1802e142848787733025ccd0438cd1afcab | --- core/__tests__/__mocks__/@walmart/allspark-foundation/Auth.js
@@ -3,6 +3,10 @@ module.exports = {
AuthService: {
getUser: jest.fn(),
signIn: jest.fn(),
- signOut: jest.fn(),
+ signOut: jest.fn(() => {
+ return {
+ catch: jest.fn(),
+ };
+ }),
},
};
--- core/__tests__/startup/AuthFlowTest.ts
@@ -5,7 +5,7 @@ import {
authFlow,
waitForAuth,
} from '../../src/startup/AuthFlow';
-import {AuthActionTypes} from '@walmart/allspark-foundation/Auth';
+import {AuthActionTypes, AuthService} from '@walmart/allspark-foundation/Auth';
import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
describe('isSilentSignInError', () => {
@@ -78,10 +78,13 @@ describe('authFlow', () => {
);
});
- it('handles silent auth failure', () => {
+ it('handles auth failure with invalid grant', () => {
const signInAction = {
type: AuthActionTypes.SIGN_IN_ERROR,
- payload: new Error('Oh no, get user failed!'),
+ payload: {
+ code: 'invalid_grant',
+ message: 'Invalid grant error',
+ },
};
const iterator = authFlow();
expect(iterator.next().value).toEqual(
| improve auth flow tests | improve auth flow tests
|
ee49d87037abdc030760716b0c54a3f0306e0b8d | --- src/managerExperience/components/TeamSearchInput/style.ts
@@ -19,7 +19,6 @@ export const TeamSearchInputStyles = StyleSheet.create({
marginRight: 8,
paddingLeft: 16,
},
- //TODO: Figure out how to style placeholder color
inputStyle: {
flex: 1,
paddingVertical: 14,
@@ -27,6 +26,6 @@ export const TeamSearchInputStyles = StyleSheet.create({
fontSize: 16,
lineHeight: 24,
paddingRight: 60, //Ensure the text doesn't overlap with the right icon
- color: colors.gray['100'], // Double check this
+ color: colors.gray['100'],
},
});
| fix: remove comments | fix: remove comments
|
c393e0473206a359bce9cfcd8c325e6f5eb3a37a | --- package-lock.json
@@ -4481,9 +4481,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.5.39",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.39.tgz",
- "integrity": "sha512-TJfkWUTSN/3gPzLl6KNv1bXWqsUdNgZA/mDK1nkamZHqYH5JJY3wdeyrpZyq9Te0TxKbFKJuyZOK8GbxVNkLBA==",
+ "version": "0.5.40",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.40.tgz",
+ "integrity": "sha512-AgympTl5gW6jgvDQ45+asagFg7X4DUYkOrgWcdv57O53hxfW7i12ORKKK5LRAuyix6xOraez6QVwTrlVFdUsJA==",
"requires": {
"moment": "^2.29.0",
"uuid": "^8.3.1"
--- package.json
@@ -71,7 +71,7 @@
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/allspark-health-survey-mini-app": "0.0.44",
- "@walmart/allspark-home-mini-app": "0.5.39",
+ "@walmart/allspark-home-mini-app": "0.5.40",
"@walmart/allspark-neon-core": "0.1.26",
"@walmart/ask-sam-mini-app": "^0.41.8",
"@walmart/config-components": "3.0.2",
| home version bump | home version bump
|
b749b2135e492278150ba908775e5e866bc09fa9 | --- packages/allspark-foundation/__tests__/User/components/selector.test.tsx
@@ -2,8 +2,6 @@
import { UserSelectors, fullNameFromFields, getFirstFromFullName, getNameFromUser, getFirstNameFromUser } from '../../../src/User/selectors';
import { User } from '../../../src/User/types';
-jest.mock('namecase', () => jest.fn((name) => name));
-
jest.mock('../../../src//Redux/utils', () => ({
...jest.requireActual('../../../src//Redux/utils'),
stripUserIdFromName: jest.fn((name) => name),
@@ -226,9 +224,7 @@ describe('UserSelectors', () => {
const result = getNameFromUser(null);
expect(result).toBe('');
});
-
-
-
+
getFirstFromFullName
test('should return empty string when user is null', () => {
| pr fix | pr fix
|
2dcf2bdc0bac947b0884dd3a885f6fdbcfa575ff | --- .looper-pr.yml
@@ -30,3 +30,4 @@ envs:
MONO_REPO_BASE_BRANCH: develop
AUTHOR: temp
SLACK_CHANNEL: "smdv-miniapp"
+
| feat(ui): generating tag | feat(ui): generating tag
|
9eca446c48615a4c4ff558cb77053016b83cf6e4 | --- src/components/Roster/index.tsx
@@ -1,227 +0,0 @@
-import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
-import {RefreshControl, StyleSheet, View} from 'react-native';
-import {Alert, Body, Spinner} from '@walmart/gtp-shared-components';
-import {FlashList} from '@shopify/flash-list';
-import {FilterValue, RosterFilters} from '../../containers/RosterFilters';
-import {TeamChatCard} from '../TeamList';
-import {RosterHeader} from '../RosterHeader';
-import {renderAssociateRosterItem} from '../AssociateRosterItem';
-import {useSafeAreaInsets} from 'react-native-safe-area-context';
-import {useTranslation} from 'react-i18next';
-import {TEXTING_I18N_NAMESPACE} from '../../translations';
-import {useSelector} from 'react-redux';
-import {UserSelectors} from '@walmart/redux-store';
-import {
- useDailyRoster,
- useSiteTranslationContext,
- useUserIsInRoster,
-} from '../../hooks';
-import {Associate} from '../../types';
-import {
- associateIsAbsent,
- associateIsClockedIn,
- sortedAssociateList,
-} from '../../utils';
-import {teamLeadJobDescriptions} from '../../redux/selectors';
-import {analytics} from '../../logger/Analytics';
-import {logger} from '../../logger/Logger';
-
-/** --- TYPES --**/
-type FeatureFlagConfig = {
- [key: string]: boolean; //TODO: enumerate all roster elements / behaviors to specify exact elements to be configured
-};
-
-type ActionButton = {
- displayText: string;
- onPress: () => void;
-};
-
-interface RosterProps {
- featureFlagConfig: FeatureFlagConfig;
- associateActions: ActionButton[];
- teamActions: ActionButton[];
-}
-
-/** -- STYLES -- **/
-const styles = StyleSheet.create({
- screen: {
- flex: 1,
- },
- teamCard: {
- marginTop: 16,
- marginHorizontal: 16,
- },
- error: {
- margin: 16,
- },
- spinner: {
- marginTop: 32,
- },
- associateRosterItemContainer: {
- marginHorizontal: 16,
- height: 100,
- },
- emptyState: {
- marginTop: 24,
- alignItems: 'center',
- },
-});
-
-/**
- * Configurable Roster list that displays all associates and teams within a store or site in the case of distribution
- * centers. UI actions may be attached to each row item to be associated with each associate or team entity.
- * @property {FeatureFlagConfig} featureFlagConfig - A boolean map of ui elements and behaviors to show/hide or enable/disable for the
- * roster //TODO: Document default state for this map
- * @property {ActionButton[]} associateActions - A list of pressable buttons that can be used to execute any action in an associate entity
- * @property {ActionButton[]} teamActions - A list of pressable buttons that can be used to execute any action in a team entity
- */
-export const Roster: React.FC<RosterProps> = (props) => {
- const {bottom: bottomInset} = useSafeAreaInsets();
- const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
- const flashListRef: any = useRef(null);
- const currentUserSite: string = useSelector(UserSelectors.getUserSite);
-
- const {loading, data, error, refetch} = useDailyRoster();
- const allAssociates = (data?.getDailyRoster || []) as Associate[];
- const rosterData = useMemo(() => {
- const associateList = (data?.getDailyRoster || []) as Associate[];
- return associateList;
- }, [data?.getDailyRoster]);
- const clockedInCount = rosterData?.filter(associateIsClockedIn)?.length ?? 0;
- const absentCount = rosterData?.filter(associateIsAbsent)?.length ?? 0;
- const [associates, setAssociates] = useState<Associate[]>([]);
- const teamLeads = useSelector(teamLeadJobDescriptions) as string[];
- const [pullToRefresh, setPullToRefresh] = useState(false);
- const loaderOffSet = 10;
- const siteTranslationContext = useSiteTranslationContext();
-
- const onPullToRefresh = useCallback(() => {
- setPullToRefresh(true);
- 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(() => {
- if (data?.getDailyRoster) {
- setAssociates(sortedAssociateList(allAssociates, teamLeads));
- }
- }, [allAssociates]);
-
- // Used for reference, does not need to trigger render
- const selectedFilter = useRef<FilterValue>(FilterValue.all);
-
- const extraData = useMemo(
- () => ({listLength: associates.length}),
- [associates.length],
- );
-
- const userIsInRoster = useUserIsInRoster();
-
- const onFilter = (filteredAssociates: Associate[], filterId: FilterValue) => {
- selectedFilter.current = filterId;
- setAssociates(sortedAssociateList(filteredAssociates, teamLeads));
- };
-
- const handleScrollToTop = () => {
- if (flashListRef.current) {
- flashListRef.current.scrollToIndex({index: 0});
- }
- };
-
- const ListEmptyComponent = () => {
- if (loading) {
- return (
- <Spinner
- color='gray'
- UNSAFE_style={styles.spinner}
- testID={'rosterScreenLoadingSpinner'}
- />
- );
- }
-
- if (error) {
- logger.error('error fetching daily roster', {message: error.toString()});
- return (
- <Alert
- variant='warning'
- children={'Error fetching daily roster'}
- UNSAFE_style={styles.error}
- />
- );
- }
-
- // @todo - improve styling and verbiage of empty state use translations for filter once defined
- return (
- <View style={styles.emptyState}>
- {selectedFilter.current !== FilterValue.all ? (
- <Body>{`No ${selectedFilter.current} users found`}</Body>
- ) : (
- <Body>No users found</Body>
- )}
- </View>
- );
- };
-
- return (
- <View style={styles.screen}>
- <FlashList
- ListHeaderComponent={
- <>
- {/* @todo - determine if this should be shown on empty state */}
-
- <RosterFilters
- associates={allAssociates}
- clockedInCount={clockedInCount}
- absentCount={absentCount}
- onFilter={onFilter}
- />
- {!loading && !userIsInRoster && (
- <Alert variant='warning' UNSAFE_style={styles.error}>
- {t('rosterScreen.notInRoster', {
- siteId: currentUserSite,
- context: siteTranslationContext,
- })}
- </Alert>
- )}
- <TeamChatCard
- style={styles.teamCard}
- scrollToTop={handleScrollToTop}
- />
-
- {/* @todo - determine if this should be shown on empty state */}
- {!!associates.length && <RosterHeader associates={associates} />}
- </>
- }
- ListEmptyComponent={ListEmptyComponent}
- data={associates}
- extraData={extraData}
- refreshing={loading}
- estimatedItemSize={100}
- renderItem={renderAssociateRosterItem}
- contentInset={{bottom: bottomInset}}
- showsVerticalScrollIndicator={false}
- ref={flashListRef}
- refreshControl={
- <RefreshControl
- refreshing={pullToRefresh}
- onRefresh={onPullToRefresh}
- progressViewOffset={loaderOffSet}
- />
- }
- />
- </View>
- );
-};
| fix looper fails | fix looper fails
|
f68f442c3023a2499b5d3d4c9696d02150fb1fd3 | --- .looper.multibranch.yml
@@ -489,6 +489,7 @@ flows:
# @param betacrashPIN - pin for this build
slack-success:
- exposeVars(./betacrash.json)
+ - (get android version code) bundle exec fastlane get_android_version_code
- exposeVars(./fastlane/fastlane-session.json)
- echo "Android version code ${fastlane-session.android_version_code}"
- var(BUILD_NUMBER):
@@ -548,6 +549,7 @@ flows:
# @param releaseType
slack-failure:
- exposeVars(./fastlane/fastlane-session.json)
+ - (get android version code) bundle exec fastlane get_android_version_code
- echo "Android version code ${fastlane-session.android_version_code}"
- var(BUILD_NUMBER):
echo "${fastlane-session.android_version_code}"
--- fastlane/Fastfile
@@ -33,6 +33,17 @@ private_lane :set_android do |values|
)
end
+desc 'Android: Get Version Code'
+lane :get_android_version_code do
+ puts android_get_version_code(
+ gradle_file: "#{ANDROID_PROJECT}"
+ )
+ UI.message("\n\n\n=====================================\n Writing version code to a JSON file\n=====================================")
+ session[:android_version_code]=Actions.lane_context[SharedValues::ANDROID_VERSION_CODE]
+ save_session
+end
+
+
desc 'Evaluate and Set Build Number and Version Code'
lane :set_build do
version_json = read_json(json_path: "#{VERSION_PATH}")
| adding fastlane to get android version code | adding fastlane to get android version code
|
bc2ae7504e47389aa8ede52efcfeb92ce72ce707 | --- package-lock.json
@@ -5443,9 +5443,9 @@
}
},
"@walmart/price-changes-mini-app": {
- "version": "1.5.4",
- "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.5.4.tgz",
- "integrity": "sha512-JM5F79SxIgq0cE/oqeZg7jWAaByTcIClkOWOPqRJ8nHH361keqSng3e5GiqXUYrpRHjKs4g87D1EImYvYfF8jw=="
+ "version": "1.5.4-alpha",
+ "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.5.4-alpha.tgz",
+ "integrity": "sha512-Qvxqr8VYrG4Hcad76gzu86ngkD6C0d3/Iu538r/mcxBDHCt0GS2kisV0mXF+rTlTpKEnW5mYLBqe44bmXFpswA=="
},
"@walmart/profile-feature-app": {
"version": "0.0.63",
--- package.json
@@ -104,7 +104,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/pay-stub-miniapp": "0.8.2",
"@walmart/payrollsolution_miniapp": "0.127.0",
- "@walmart/price-changes-mini-app": "1.5.4",
+ "@walmart/price-changes-mini-app": "1.5.4-alpha",
"@walmart/profile-feature-app": "0.0.63",
"@walmart/push-to-talk-mini-app": "1.8.14",
"@walmart/react-native-encrypted-storage": "1.1.3",
| Bump price changes to 1.5.4-alpha | Bump price changes to 1.5.4-alpha
|
cd9723dae4c788f107cb2bab15b4196f91bbbdec | --- packages/associate-exp-hub-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.
+# [2.3.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.2.0...@walmart/associate-exp-hub-hub@2.3.0) (2025-10-31)
+
+### Features
+
+- **ui:** update shift related information ([72bc9a0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/72bc9a0cc30bc5d9d3c7f76c18d780577a91d234))
+
# [2.2.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.1.0...@walmart/associate-exp-hub-hub@2.2.0) (2025-10-30)
### Features
--- packages/associate-exp-hub-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-hub",
- "version": "2.2.0",
+ "version": "2.3.0",
"description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub",
"packageManager": "yarn@4.6.0",
"engines": {
--- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.4.0-alpha.26](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.25...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.26) (2025-10-31)
+
+### Features
+
+- **ui:** update shift related information ([72bc9a0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/72bc9a0cc30bc5d9d3c7f76c18d780577a91d234))
+
# [1.4.0-alpha.25](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.24...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.25) (2025-10-30)
### Features
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.4.0-alpha.25",
+ "version": "1.4.0-alpha.26",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/associate-exp-hub-team-switcher/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [2.3.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.2.0...@walmart/associate-exp-hub-team-switcher@2.3.0) (2025-10-31)
+
+### Features
+
+- **ui:** update shift related information ([72bc9a0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/72bc9a0cc30bc5d9d3c7f76c18d780577a91d234))
+
# [2.2.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.1.0...@walmart/associate-exp-hub-team-switcher@2.2.0) (2025-10-30)
### Features
--- packages/associate-exp-hub-team-switcher/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-team-switcher",
- "version": "2.2.0",
+ "version": "2.3.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-hub@2.3.0
- @walmart/associate-exp-hub-mini-app@1.4.0-alpha.26
- @walmart/associate-exp-hub-team-switcher@2.3.0
|
3b885a2a6f0fdb57a5b123766ee3b2494d6760b5 | --- ios/Podfile.lock
@@ -615,8 +615,6 @@ PODS:
- BoringSSL-GRPC/Implementation (0.0.24):
- BoringSSL-GRPC/Interface (= 0.0.24)
- BoringSSL-GRPC/Interface (0.0.24)
- - BVLinearGradient (2.6.2):
- - React-Core
- CocoaAsyncSocket (7.6.5)
- CodePush (8.2.2):
- Base64 (~> 1.1)
@@ -997,7 +995,7 @@ PODS:
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- - native-rfid-scanner (3.9.10):
+ - native-rfid-scanner (3.9.9):
- React-Core
- OpenSSL-Universal (1.1.1100)
- PromisesObjC (2.4.0)
@@ -2250,7 +2248,6 @@ PODS:
DEPENDENCIES:
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
- - BVLinearGradient (from `../node_modules/react-native-linear-gradient`)
- CocoaAsyncSocket
- CodePush (from `../node_modules/react-native-code-push`)
- "compass-sdk-rn (from `../node_modules/@walmart/compass-sdk-rn`)"
@@ -2479,8 +2476,6 @@ SPEC REPOS:
EXTERNAL SOURCES:
boost:
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
- BVLinearGradient:
- :path: "../node_modules/react-native-linear-gradient"
CodePush:
:path: "../node_modules/react-native-code-push"
compass-sdk-rn:
@@ -2732,7 +2727,6 @@ SPEC CHECKSUMS:
Base64: cecfb41a004124895a7bcee567a89bae5a89d49b
boost: 26fad476bfa736552bbfa698a06cc530475c1505
BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33
- BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
CodePush: eaa66fc8dd9ff611304ecc48397ce8831ba79ac9
compass-sdk-ios: 8077b7076d749de27c83846bad97ecde13f28657
@@ -2788,7 +2782,7 @@ SPEC CHECKSUMS:
libvmaf: 27f523f1e63c694d14d534cd0fddd2fab0ae8711
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
- native-rfid-scanner: 4c8fe5964b8d4f2179e8d63903ddf5c21da54db4
+ native-rfid-scanner: 9ea975aafa627489a99a92a009d9cf0dda05a34a
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
@@ -2910,7 +2904,7 @@ SPEC CHECKSUMS:
walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c
WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b
wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3
- Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee
+ Yoga: c716aea2ee01df6258550c7505fa61b248145ced
PODFILE CHECKSUM: fc93c11e2096b0f20e15b7c98c1efea2b0908817
| chore: update podfile lock | chore: update podfile lock
|
c42c0ede49fd908c4bc133b49165fdef3ad9c69b | --- package-lock.json
@@ -77,7 +77,7 @@
"@walmart/receipt-check-miniapp": "1.9.4",
"@walmart/redux-store": "3.1.3",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
- "@walmart/returns-mini-app": "0.11.0",
+ "@walmart/returns-mini-app": "0.12.0",
"@walmart/schedule-mini-app": "0.29.0",
"@walmart/settings-mini-app": "1.12.0",
"@walmart/shelfavailability-mini-app": "1.5.2",
@@ -5919,9 +5919,9 @@
}
},
"node_modules/@walmart/returns-mini-app": {
- "version": "0.11.0",
- "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.11.0.tgz",
- "integrity": "sha512-wxg2WIWkD2cGTFDLvFi28zVqZZgoF0u4cmITFPhz6SvkLAY3/D+8QzHHLfwRDu3Y+37L4p/Ab3phKJWI2IWaHA==",
+ "version": "0.12.0",
+ "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.12.0.tgz",
+ "integrity": "sha512-Xh8l+VFhbofMPCZ2GjWLFWbmL5tyIlXJqQEgoC+pr8GdryyWON5enlU11UtNQ8d/vcK2H+LJFBM7K/TYVweZhg==",
"hasInstallScript": true,
"dependencies": {
"@walmart/common-utilities-js": "^1.2.10",
@@ -5934,7 +5934,7 @@
"@react-navigation/stack": "^5.9.0",
"@walmart/core-services": "0.1.34",
"@walmart/functional-components": "^1.0.27",
- "@walmart/gtp-shared-components": "^2.0.0",
+ "@walmart/gtp-shared-components": "^2.0.2",
"@walmart/react-native-logger": "1.29.0",
"@walmart/react-native-scanner-3.0": "0.1.24",
"@walmart/react-native-shared-navigation": "^0.2.0",
@@ -25572,9 +25572,9 @@
"integrity": "sha512-YRNp3VcfzWTyDZt6h5hAUK5XTzUrblOZOWUclor4ht/g4E5Oo2sMF8rV5swXlB3QdSQUZwSsU60b01veuR3o6g=="
},
"@walmart/returns-mini-app": {
- "version": "0.11.0",
- "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.11.0.tgz",
- "integrity": "sha512-wxg2WIWkD2cGTFDLvFi28zVqZZgoF0u4cmITFPhz6SvkLAY3/D+8QzHHLfwRDu3Y+37L4p/Ab3phKJWI2IWaHA==",
+ "version": "0.12.0",
+ "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.12.0.tgz",
+ "integrity": "sha512-Xh8l+VFhbofMPCZ2GjWLFWbmL5tyIlXJqQEgoC+pr8GdryyWON5enlU11UtNQ8d/vcK2H+LJFBM7K/TYVweZhg==",
"requires": {
"@walmart/common-utilities-js": "^1.2.10",
"@walmart/virtual-zpl-printer-model": "^0.2.11",
--- package.json
@@ -119,7 +119,7 @@
"@walmart/receipt-check-miniapp": "1.9.4",
"@walmart/redux-store": "3.1.3",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
- "@walmart/returns-mini-app": "0.11.0",
+ "@walmart/returns-mini-app": "0.12.0",
"@walmart/schedule-mini-app": "0.29.0",
"@walmart/settings-mini-app": "1.12.0",
"@walmart/shelfavailability-mini-app": "1.5.2",
| returns version bump 0.12.0 | returns version bump 0.12.0
|
a7e8c5429a0c8d8efec1e354ab57a57b56c3696c | --- packages/allspark-foundation/src/LocalStorage/client.ts
@@ -72,6 +72,8 @@ export class LocalStorageClient {
if (storedData === null) {
return null;
}
+
+ // Check if the stored data is expired
const parsedStoredData = JSON.parse(storedData);
if (parsedStoredData && parsedStoredData.expiry) {
if (Date.now() >= parsedStoredData.expiry) {
@@ -79,7 +81,10 @@ export class LocalStorageClient {
return null;
}
}
- return parsedStoredData.value ?? parsedStoredData;
+
+ // If not expired, return the value.
+ // If undefined, return stored data
+ return parsedStoredData.value ?? storedData;
} catch (e) {
// possible JSON parse error
return null;
| fix: notification client fallback to parsed value breaks some older integrations | fix: notification client fallback to parsed value breaks some older integrations
|
c63ccb2611097fadc9c48790730e2032cfd971d2 | --- package-lock.json
@@ -4350,7 +4350,7 @@
"@walmart/react-native-collapsible": {
"version": "1.5.3",
"resolved": "https://npme.walmart.com/@walmart/react-native-collapsible/-/react-native-collapsible-1.5.3.tgz",
- "integrity": "sha1-XoOvTwTbUqaib/9Ii//qp9yNBQk=",
+ "integrity": "sha512-A/eHjceqHN2FJVaimSrKO/wIHgP5ymIoiyTMRa10ce8NZ7ejhPelIkCqzwjvQ328HG38y7HPelvu/6xlsiFlUQ==",
"requires": {
"prop-types": "^15.6.2"
}
@@ -4475,10 +4475,9 @@
}
},
"@walmart/taskit-mini-app": {
- "version": "0.167.0-rc.1",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.167.0-rc.1.tgz",
+ "version": "0.164.0-rc.1",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.164.0-rc.1.tgz",
"integrity": "sha512-OYpzZHJaDdNpphiqq1KQmNdnYzkoi/RcDzXBeiZZ9lCNkpRvIDRemdK80Gof0U2u7/IcGivPYYX7k23DvK/wOw=="
-
},
"@walmart/time-clock-mini-app": {
"version": "0.4.27",
@@ -19824,7 +19823,7 @@
"wfm-allspark-data-library": {
"version": "0.0.11",
"resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.11.tgz",
- "integrity": "sha1-E27LsiPO+Sbj5h3p0FQpcH9VU8g=",
+ "integrity": "sha512-o34ej3nNhCcy3uwWkOJcU/3zjXmX+VvbqiZrEgQwrxbO6cbJGxiK1Tz/JQX8j1lwi6cZFJKvDOucJtlduzVQrg==",
"requires": {
"@walmart/functional-components": "^1.0.22",
"@walmart/react-native-env": "^0.1.0",
@@ -19838,7 +19837,7 @@
"@walmart/react-native-env": {
"version": "0.1.0",
"resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.1.0.tgz",
- "integrity": "sha1-ojNwDE5pPTzF1RuQXDc//Fnlpz0="
+ "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ=="
},
"moment": {
"version": "2.24.0",
@@ -19848,7 +19847,7 @@
"react-native-ssmp-sso-allspark": {
"version": "0.0.1-rc8",
"resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz",
- "integrity": "sha1-/SHw48C+3muBMp2bynExhYPZl0s="
+ "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg=="
}
}
},
| Removing unnecesary package-lock changes | Removing unnecesary package-lock changes
|
37ddc4d65ef6bc09b18a3c5e83421739db3e3eb8 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/wmconnect-mini-app",
- "version": "3.7.5",
+ "version": "3.7.6",
"main": "dist/index.js",
"files": [
"dist",
| feat(ui): update wm connect version | feat(ui): update wm connect version
|
d52a325bc5aa0a7f28e37a479e15aa1ee7fc9f30 | --- ios/AllSpark/Info.plist
@@ -109,7 +109,7 @@
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key>
- <string>LaunchScreen-Teflon</string>
+ <string>LaunchScreen-Dev</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
| removed info.plist changes | removed info.plist changes
|
a83300913706e9a497553f77b50beba063b9025a | --- package.json
@@ -139,7 +139,7 @@
"@walmart/receipt-check-miniapp": "1.22.9",
"@walmart/redux-store": "6.1.4",
"@walmart/returns-mini-app": "4.6.0",
- "@walmart/rfid-scan-mini-app": "2.3.10",
+ "@walmart/rfid-scan-mini-app": "2.3.16",
"@walmart/roster-mini-app": "2.4.0",
"@walmart/schedule-mini-app": "0.114.2",
"@walmart/shelfavailability-mini-app": "1.5.26",
--- yarn.lock
@@ -6981,18 +6981,18 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/rfid-scan-mini-app@npm:2.3.10":
- version: 2.3.10
- resolution: "@walmart/rfid-scan-mini-app@npm:2.3.10"
+"@walmart/rfid-scan-mini-app@npm:2.3.16":
+ version: 2.3.16
+ resolution: "@walmart/rfid-scan-mini-app@npm:2.3.16"
peerDependencies:
"@react-navigation/native": ">=6.0.0"
"@react-navigation/stack": ">=6.1.0"
"@walmart/functional-components": ">=4.0.3"
"@walmart/gtp-shared-components": ">=2.1.3"
"@walmart/ims-print-services-ui": ^2.10.3
- "@walmart/native-rfid-scanner": ">=3.9.9"
+ "@walmart/native-rfid-scanner": ">=3.9.15"
"@walmart/react-native-scanner-3.0": ">=0.3.0"
- "@walmart/redux-store": ">=3.1.7"
+ "@walmart/redux-store": ">=3.7.0"
"@walmart/ui-components": ">=1.15.1"
react: "*"
react-native: "*"
@@ -7004,7 +7004,7 @@ __metadata:
redux: ">=4.1.2"
reselect: ">=4.0.0"
uuid: ">=3.3.2"
- checksum: 10c0/e436d7fdd0be280d248901c53618708be3747184701a161342d7f07ddc7fb0bb7b537430f2b1f5a5973a7942cda356d51dbfcf05128a8ae2b6cc76255efd498e
+ checksum: 10c0/a2132ce00926fe792c16439ee8febf18700aed54b312ead924a019e37a26b4be92aa3650d89b7ace7a730c5d0f4f43109a9991c4dba33dd5dcbed682464bb80f
languageName: node
linkType: hard
@@ -7853,7 +7853,7 @@ __metadata:
"@walmart/receipt-check-miniapp": "npm:1.22.9"
"@walmart/redux-store": "npm:6.1.4"
"@walmart/returns-mini-app": "npm:4.6.0"
- "@walmart/rfid-scan-mini-app": "npm:2.3.10"
+ "@walmart/rfid-scan-mini-app": "npm:2.3.16"
"@walmart/roster-mini-app": "npm:2.4.0"
"@walmart/schedule-mini-app": "npm:0.114.2"
"@walmart/shelfavailability-mini-app": "npm:1.5.26"
| Update @walmart/rfid-scan-mini-app to v2.3.16 | Update @walmart/rfid-scan-mini-app to v2.3.16
|
a70df2fb5a87e666ed7850b613714f85bebc4e69 | --- packages/me-at-walmart-container/__mocks__/@walmart/allspark-foundation/Location.js
@@ -1,5 +1,4 @@
module.exports = {
- // ...jest.requireActual('@walmart/allspark-foundation/Location'),
LocationServiceCreator: jest.fn().mockImplementation((config) => ({
initialize: config.initialize,
fetch: config.fetch,
| chore: test coverage | chore: test coverage
|
623bdbd9d7935237b753448f78b61c2790cd7e56 | --- package-lock.json
@@ -108,7 +108,7 @@
"@walmart/time-clock-mini-app": "2.338.1",
"@walmart/topstock-mini-app": "1.8.5",
"@walmart/ui-components": "1.15.11",
- "@walmart/welcomeme-mini-app": "0.88.2",
+ "@walmart/welcomeme-mini-app": "0.89.0",
"@walmart/wfm-ui": "0.8.4",
"@walmart/wm-plus-mini-app": "0.12.20",
"@walmart/wmconnect-mini-app": "1.1.5",
@@ -12640,9 +12640,9 @@
}
},
"node_modules/@walmart/welcomeme-mini-app": {
- "version": "0.88.2",
- "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.88.2.tgz",
- "integrity": "sha512-Z/G1Tv0svqEBBkCrh+VW6rL6h8mMQ38/n4DrXGkfbjlJvHd0DgSKGcA5LnG+JFGZaVLlVmId40bA0MpBXYCzsQ==",
+ "version": "0.89.0",
+ "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.89.0.tgz",
+ "integrity": "sha512-LCJD1J8qQ9QiPwp6P9f8kTuYc38KBzNNJRlrQvJhs8+yGtTVYOeiU5gBzuBAc9aDDmSPWx3ShPixHzh5s/F8vQ==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
--- package.json
@@ -149,7 +149,7 @@
"@walmart/time-clock-mini-app": "2.338.1",
"@walmart/topstock-mini-app": "1.8.5",
"@walmart/ui-components": "1.15.11",
- "@walmart/welcomeme-mini-app": "0.88.2",
+ "@walmart/welcomeme-mini-app": "0.89.0",
"@walmart/wfm-ui": "0.8.4",
"@walmart/wm-plus-mini-app": "0.12.20",
"@walmart/wmconnect-mini-app": "1.1.5",
@@ -410,7 +410,7 @@
"@walmart/time-clock-mini-app": "2.338.1",
"@walmart/topstock-mini-app": "1.8.5",
"@walmart/ui-components": "1.15.11",
- "@walmart/welcomeme-mini-app": "0.88.2",
+ "@walmart/welcomeme-mini-app": "0.89.0",
"@walmart/wfm-ui": "0.8.4",
"@types/react": "^18.0.24",
"@types/react-native": "0.72.6",
| version bump for Welcome Me | version bump for Welcome Me
|
3906bea9267901935a68c1f32a73a678f9f9b430 | --- src/utils/user.ts
@@ -4,6 +4,7 @@ import {Associate} from '../types';
import {GetAssociateNameQuery} from '../queries/getAssociateName';
import {ClockStatusEnum} from './ClockStatusEnum';
import moment from 'moment';
+import {isNil} from 'lodash';
const OBFUSCATION_KEY = 'texting-mini-app';
const OBFUSCATION_PARSE_KEY = OBFUSCATION_KEY.padStart(64, '0');
@@ -51,11 +52,19 @@ export const associateIsNotScheduled = (associate?: Associate) => false;
export const associateDisplayName = (
associate?: Associate | GetAssociateNameQuery['getAssociateById'],
) => {
- return (
- (associate?.preferredFirstName || associate?.firstName || '') +
- ' ' +
- (associate?.preferredLastName || associate?.lastName || '')
- );
+ const preferredFullName =
+ (!isNil(associate?.preferredFirstName) ||
+ !isNil(associate?.preferredLastName)) &&
+ (associate?.preferredFirstName?.toString() || '') +
+ ' ' +
+ (associate?.preferredLastName?.toString() || '');
+ const legalFullName =
+ (!isNil(associate?.firstName) || !isNil(associate?.lastName)) &&
+ (associate?.firstName?.toString() || '') +
+ ' ' +
+ (associate?.lastName?.toString() || '');
+ const associateUserId = associate?.userId;
+ return preferredFullName || legalFullName || associateUserId || '';
};
export const formatSchedule = (scheduleInfo: any): String => {
| Update preferred name | Update preferred name
|
9ed064103d28fb9250e3e5f65508817450d2cb68 | --- package.json
@@ -89,8 +89,8 @@
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "1.1.6",
- "@walmart/roster-mini-app": "1.1.7",
+ "@walmart/wmconnect-mini-app": "1.2.0",
+ "@walmart/roster-mini-app": "2.1.0",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
| updating package versions | updating package versions
|
c5597eceeb1a60d37b8f700500d1f9968a93cd89 | --- __tests__/communicationsTest.tsx
@@ -1,6 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import React from 'react';
-import {encryptedUserList} from './harness/firestore/data/users';
import {rawChannelsList} from "./harness/firestore/data/channels";
describe('Messaging', () => {
--- __tests__/harness/firestore/data/documentIds.ts
@@ -0,0 +1,18 @@
+export const staticFirestoreDocumentIds = [
+ 'EzYKd0CCeGexwEGUZ5Li',
+ 'YMqqV6P6nQeEm4cT3Kxu',
+ 'nmbfH240SwnGw9vtOCXC',
+ 'ppCSGejwyaJ5GNgqzh4o',
+ 'jjkkGejwyaJ5GNgqz4fh',
+ 'KloGejwya4YtNgqztre',
+ 'DrfGejwT6RfDNgqzrEw',
+ 'loiRejwy5RetNgqzYtg',
+ 'p6Ytejwya4YtNgqzkIt',
+ 'jUIGej54J4YtNgqzhGt',
+];
+
+export const generateDocumentId = () => {
+ return Math.round(Math.pow(36, 21) - Math.random() * Math.pow(36, 21))
+ .toString(36)
+ .slice(1);
+};
--- __tests__/harness/firestore/data/timestamps.ts
@@ -0,0 +1,28 @@
+import moment from 'moment';
+
+export const staticDateStrings = [
+ 'July 11, 2023 at 3:25:50 PM UTC-7',
+ 'July 11, 2023 at 3:27:50 PM UTC-7',
+ 'July 12, 2023 at 4:27:50 AM UTC-7',
+ 'July 12, 2023 at 9:31:50 AM UTC-7',
+ 'July 12, 2023 at 1:02:32 PM UTC-7',
+ 'July 13, 2023 at 10:12:14 AM UTC-7',
+ 'July 13, 2023 at 2:00:23 PM UTC-7',
+ 'August 14, 2023 at 4:45:34 PM UTC-7',
+ 'August 16, 2023 at 1:02:32 PM UTC-7',
+ 'August 17, 2023 at 5:13:23 PM UTC-7',
+];
+
+//TODO: Create generator methods for random day, month, year, hour etc...0
+export const generateCreatedAt = () => {
+ const yearRange = {
+ rangeStart: 2020,
+ sequenceLength: 3,
+ };
+ const randomYear =
+ Math.floor(Math.random() * yearRange.rangeStart) + yearRange.sequenceLength;
+
+ return moment([randomYear, 1, 14, 15, 25, 50, 125]).format(
+ 'MMMM D, YYYY [at] h:mm:ss A UTC-7',
+ );
+};
--- __tests__/harness/firestore/data/users.ts
@@ -1,5 +1,3 @@
-import {encryptUserId} from '../../../../src/utils';
-
export const rawUserList = [
'alice',
'bob',
--- __tests__/harness/firestore/mockDatabase.ts
@@ -1,7 +1,12 @@
import {mockReactNativeFirestore} from 'firestore-jest-mock';
import {createAssociateChannelId} from '../../../src/channels';
+// @ts-ignore
import {rawUserList} from './data/users';
import {encryptUserId} from '../../../src/utils';
+// @ts-ignore
+import {staticFirestoreDocumentIds} from './data/documentIds';
+// @ts-ignore
+import {staticDateStrings} from './data/timestamps';
mockReactNativeFirestore({
database: {
@@ -12,17 +17,25 @@ mockReactNativeFirestore({
channels: [
{
id: createAssociateChannelId([rawUserList[0], rawUserList[1]]),
+ _collections: {
+ messages: [
+ {
+ id: staticFirestoreDocumentIds[0],
+ createdAt: staticDateStrings[4],
+ },
+ ],
+ },
channelName: '',
- createdAt: 'August 16, 2023 at 4:38:06 PM UTC-7',
+ createdAt: staticDateStrings[0],
group: false,
- lastMessageTime: 'June 14, 2023 at 8:33:54AM UTC-7',
+ lastMessageTime: staticDateStrings[1],
participants: [
encryptUserId(rawUserList[0]),
encryptUserId(rawUserList[1]),
],
recentRead: {
[encryptUserId(rawUserList[1])]:
- 'June 21, 2023 at 7:31:54AM UTC-7',
+ staticDateStrings[3],
},
},
],
--- __tests__/communicationsTest.tsx
@@ -1,6 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import React from 'react';
-import {encryptedUserList} from './harness/firestore/data/users';
import {rawChannelsList} from "./harness/firestore/data/channels";
describe('Messaging', () => {
--- __tests__/harness/firestore/data/documentIds.ts
@@ -0,0 +1,18 @@
+export const staticFirestoreDocumentIds = [
+ 'EzYKd0CCeGexwEGUZ5Li',
+ 'YMqqV6P6nQeEm4cT3Kxu',
+ 'nmbfH240SwnGw9vtOCXC',
+ 'ppCSGejwyaJ5GNgqzh4o',
+ 'jjkkGejwyaJ5GNgqz4fh',
+ 'KloGejwya4YtNgqztre',
+ 'DrfGejwT6RfDNgqzrEw',
+ 'loiRejwy5RetNgqzYtg',
+ 'p6Ytejwya4YtNgqzkIt',
+ 'jUIGej54J4YtNgqzhGt',
+];
+
+export const generateDocumentId = () => {
+ return Math.round(Math.pow(36, 21) - Math.random() * Math.pow(36, 21))
+ .toString(36)
+ .slice(1);
+};
--- __tests__/harness/firestore/data/timestamps.ts
@@ -0,0 +1,28 @@
+import moment from 'moment';
+
+export const staticDateStrings = [
+ 'July 11, 2023 at 3:25:50 PM UTC-7',
+ 'July 11, 2023 at 3:27:50 PM UTC-7',
+ 'July 12, 2023 at 4:27:50 AM UTC-7',
+ 'July 12, 2023 at 9:31:50 AM UTC-7',
+ 'July 12, 2023 at 1:02:32 PM UTC-7',
+ 'July 13, 2023 at 10:12:14 AM UTC-7',
+ 'July 13, 2023 at 2:00:23 PM UTC-7',
+ 'August 14, 2023 at 4:45:34 PM UTC-7',
+ 'August 16, 2023 at 1:02:32 PM UTC-7',
+ 'August 17, 2023 at 5:13:23 PM UTC-7',
+];
+
+//TODO: Create generator methods for random day, month, year, hour etc...0
+export const generateCreatedAt = () => {
+ const yearRange = {
+ rangeStart: 2020,
+ sequenceLength: 3,
+ };
+ const randomYear =
+ Math.floor(Math.random() * yearRange.rangeStart) + yearRange.sequenceLength;
+
+ return moment([randomYear, 1, 14, 15, 25, 50, 125]).format(
+ 'MMMM D, YYYY [at] h:mm:ss A UTC-7',
+ );
+};
--- __tests__/harness/firestore/data/users.ts
@@ -1,5 +1,3 @@
-import {encryptUserId} from '../../../../src/utils';
-
export const rawUserList = [
'alice',
'bob',
--- __tests__/harness/firestore/mockDatabase.ts
@@ -1,7 +1,12 @@
import {mockReactNativeFirestore} from 'firestore-jest-mock';
import {createAssociateChannelId} from '../../../src/channels';
+// @ts-ignore
import {rawUserList} from './data/users';
import {encryptUserId} from '../../../src/utils';
+// @ts-ignore
+import {staticFirestoreDocumentIds} from './data/documentIds';
+// @ts-ignore
+import {staticDateStrings} from './data/timestamps';
mockReactNativeFirestore({
database: {
@@ -12,17 +17,25 @@ mockReactNativeFirestore({
channels: [
{
id: createAssociateChannelId([rawUserList[0], rawUserList[1]]),
+ _collections: {
+ messages: [
+ {
+ id: staticFirestoreDocumentIds[0],
+ createdAt: staticDateStrings[4],
+ },
+ ],
+ },
channelName: '',
- createdAt: 'August 16, 2023 at 4:38:06 PM UTC-7',
+ createdAt: staticDateStrings[0],
group: false,
- lastMessageTime: 'June 14, 2023 at 8:33:54AM UTC-7',
+ lastMessageTime: staticDateStrings[1],
participants: [
encryptUserId(rawUserList[0]),
encryptUserId(rawUserList[1]),
],
recentRead: {
[encryptUserId(rawUserList[1])]:
- 'June 21, 2023 at 7:31:54AM UTC-7',
+ staticDateStrings[3],
},
},
],
| adding more mock data | adding more mock data
|
8bb83bcefac163635701e72262fddab6e8459382 | --- src/components/modals/config/README.md
@@ -1,144 +0,0 @@
-# Modal Animation Configurations
-
-This directory contains animation configurations for modals in the Associate Experience Hub.
-
-## Available Animations
-
-### `getBottomSlideModalAnimation()`
-
-- **Description**: Slides in from bottom with a semi-transparent overlay
-- **Use Case**: Default for team modals (UpdateModal, EditTeamsModal)
-- **Duration**: 350ms in/out
-- **Easing**: Quadratic in/out
-
-```typescript
-const MyModal = AssociateExpHubFeature.createModal(
- MyComponent,
- getBottomSlideModalAnimation()
-);
-```
-
-### `getFadeModalAnimation()`
-
-- **Description**: Fades in/out with opacity transition
-- **Use Case**: Alert modals, simple confirmations
-- **Duration**: 300ms in, 200ms out
-- **Easing**: Ease in/out
-
-```typescript
-const AlertModal = AssociateExpHubFeature.createModal(
- AlertComponent,
- getFadeModalAnimation()
-);
-```
-
-### `getSlideFromSideAnimation()`
-
-- **Description**: Slides in from right side
-- **Use Case**: Navigation-style modals, settings panels
-- **Duration**: 400ms in/out
-- **Easing**: Cubic in/out
-
-```typescript
-const SettingsModal = AssociateExpHubFeature.createModal(
- SettingsComponent,
- getSlideFromSideAnimation()
-);
-```
-
-### `getTopSlideModalAnimation()`
-
-- **Description**: Slides in from top
-- **Use Case**: Notifications, status messages
-- **Duration**: 350ms in/out
-- **Easing**: Quadratic in/out
-
-```typescript
-const NotificationModal = AssociateExpHubFeature.createModal(
- NotificationComponent,
- getTopSlideModalAnimation()
-);
-```
-
-### `getScaleModalAnimation()`
-
-- **Description**: Scales in with bounce effect
-- **Use Case**: Confirmation dialogs, success messages
-- **Duration**: 300ms in, 200ms out
-- **Easing**: Back ease with bounce
-
-```typescript
-const SuccessModal = AssociateExpHubFeature.createModal(
- SuccessComponent,
- getScaleModalAnimation()
-);
-```
-
-### `getSlideFromLeftAnimation()`
-
-- **Description**: Slides in from left side
-- **Use Case**: Menu drawers, side panels
-- **Duration**: 400ms in/out
-- **Easing**: Cubic in/out
-
-```typescript
-const MenuModal = AssociateExpHubFeature.createModal(
- MenuComponent,
- getSlideFromLeftAnimation()
-);
-```
-
-## Customization
-
-Each animation function returns a configuration object that can be further customized:
-
-```typescript
-const customAnimation = {
- ...getBottomSlideModalAnimation(),
- animateInConfig: {
- duration: 500, // Custom duration
- easing: Easing.bounce,
- },
-};
-
-const MyModal = AssociateExpHubFeature.createModal(
- MyComponent,
- customAnimation
-);
-```
-
-## Performance Considerations
-
-- Window dimensions are cached for better performance
-- All animations use React Native's optimized `Animated` API
-- Proper `extrapolate: 'clamp'` settings prevent values outside animation ranges
-- Optimized easing functions for smooth 60fps animations
-
-## Adding New Animations
-
-To add a new animation:
-
-1. Create a new function in `animations.ts`
-2. Follow the existing pattern with proper TypeScript typing
-3. Add comprehensive JSDoc documentation
-4. Update this README with usage examples
-5. Add the new animation to the file overview documentation
-
-```typescript
-export const getMyCustomAnimation = (): AnimationConfig => ({
- containerStyle: {
- backgroundColor: 'rgba(0, 0, 0, 0.5)',
- },
- transitionOptions: (animatedValue: Animated.Value) => ({
- // Your custom animation logic
- }),
- animateInConfig: {
- duration: 300,
- easing: Easing.ease,
- },
- animateOutConfig: {
- duration: 200,
- easing: Easing.ease,
- },
-});
-```
| feat(ui): remove outdated README #SMDV-8235 | feat(ui): remove outdated README #SMDV-8235
|
9693df3f66270b8affdd75a1247be61ea03c1644 | --- src/components/ActionButton/index.tsx
@@ -1,7 +1,12 @@
import React, {createElement} from 'react';
import {ActivityIndicator, TouchableOpacity} from 'react-native';
-import Animated from 'react-native-reanimated';
-import {Icons} from '@walmart/gtp-shared-components';
+import Animated, {
+ interpolateColor,
+ useAnimatedStyle,
+ useDerivedValue,
+ withTiming,
+} from 'react-native-reanimated';
+import {colors, Icons} from '@walmart/gtp-shared-components';
import {styles} from './style';
import {ActionButtonProps} from './types';
@@ -11,9 +16,24 @@ export const ActionButton = ({
disabled,
...buttonProps
}: ActionButtonProps) => {
+ const disabledProgress = useDerivedValue(() => {
+ return withTiming(disabled ? 0 : 1, {duration: 150});
+ }, [disabled]);
+
+ const disabledStyle = useAnimatedStyle(() => {
+ const backgroundColor = interpolateColor(
+ disabledProgress.value,
+ [0, 1],
+ [colors.gray[50], colors.blue[100]],
+ );
+
+ return {
+ backgroundColor,
+ };
+ });
return (
<TouchableOpacity disabled={disabled} {...buttonProps}>
- <Animated.View style={[styles.button]}>
+ <Animated.View style={[styles.button, disabled && disabledStyle]}>
{loading ? (
<ActivityIndicator size='small' />
) : (
--- src/components/ActionButton/index.tsx
@@ -1,7 +1,12 @@
import React, {createElement} from 'react';
import {ActivityIndicator, TouchableOpacity} from 'react-native';
-import Animated from 'react-native-reanimated';
-import {Icons} from '@walmart/gtp-shared-components';
+import Animated, {
+ interpolateColor,
+ useAnimatedStyle,
+ useDerivedValue,
+ withTiming,
+} from 'react-native-reanimated';
+import {colors, Icons} from '@walmart/gtp-shared-components';
import {styles} from './style';
import {ActionButtonProps} from './types';
@@ -11,9 +16,24 @@ export const ActionButton = ({
disabled,
...buttonProps
}: ActionButtonProps) => {
+ const disabledProgress = useDerivedValue(() => {
+ return withTiming(disabled ? 0 : 1, {duration: 150});
+ }, [disabled]);
+
+ const disabledStyle = useAnimatedStyle(() => {
+ const backgroundColor = interpolateColor(
+ disabledProgress.value,
+ [0, 1],
+ [colors.gray[50], colors.blue[100]],
+ );
+
+ return {
+ backgroundColor,
+ };
+ });
return (
<TouchableOpacity disabled={disabled} {...buttonProps}>
- <Animated.View style={[styles.button]}>
+ <Animated.View style={[styles.button, disabled && disabledStyle]}>
{loading ? (
<ActivityIndicator size='small' />
) : (
| disable the send button when there is not text | disable the send button when there is not text
|
1768b662590480e3d2c818d67c42a2269c8fa6d7 | --- packages/components-library/components/BottomAction/__snapshots__/BottomAction.test.tsx.snap
@@ -67,12 +67,9 @@ exports[`BottomAction Component renders with buttonGroup 1`] = `
"alignItems": "center",
"display": "flex",
"flexDirection": "row",
+ "gap": 16,
"height": 40,
- "justifyContent": "center",
- "marginBottom": 16,
- "marginLeft": 16,
- "marginRight": 16,
- "marginTop": 16,
+ "justifyContent": "space-between",
}
}
>
@@ -81,8 +78,6 @@ exports[`BottomAction Component renders with buttonGroup 1`] = `
[
{
"flex": 1,
- "marginLeft": 8,
- "marginRight": 16,
},
undefined,
]
@@ -97,7 +92,6 @@ exports[`BottomAction Component renders with buttonGroup 1`] = `
[
{
"flex": 2,
- "marginHorizontal": "auto",
},
undefined,
]
--- packages/components-library/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap
@@ -8,12 +8,9 @@ exports[`ButtonGroup renders buttons correctly 1`] = `
"alignItems": "center",
"display": "flex",
"flexDirection": "row",
+ "gap": 16,
"height": 40,
- "justifyContent": "center",
- "marginBottom": 16,
- "marginLeft": 16,
- "marginRight": 16,
- "marginTop": 16,
+ "justifyContent": "space-between",
}
}
>
@@ -22,8 +19,6 @@ exports[`ButtonGroup renders buttons correctly 1`] = `
[
{
"flex": 1,
- "marginLeft": 8,
- "marginRight": 16,
},
undefined,
]
@@ -40,7 +35,6 @@ exports[`ButtonGroup renders buttons correctly 1`] = `
[
{
"flex": 2,
- "marginHorizontal": "auto",
},
undefined,
]
--- packages/components-library/components/ButtonGroup/style.tsx
@@ -5,21 +5,15 @@ const styles = StyleSheet.create({
height: 40,
display: 'flex',
flexDirection: 'row',
- justifyContent: 'center',
+ justifyContent: 'space-between',
+ gap: 16,
alignItems: 'center',
- marginTop: 16,
- marginBottom: 16,
- marginLeft: 16,
- marginRight: 16,
},
buttonTwo: {
flex: 2,
- marginHorizontal: 'auto',
},
buttonOne: {
flex: 1,
- marginRight: 16,
- marginLeft: 8,
},
});
| fix(style): fixed button container component styling | fix(style): fixed button container component styling
|
f71740ed8fd4cfdfe8cb9fdfb2817922b2b735fd | --- package-lock.json
@@ -71,7 +71,7 @@
"@walmart/mod-flex-mini-app": "1.14.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.1.4",
- "@walmart/onewalmart-miniapp": "1.0.16",
+ "@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.138.4",
"@walmart/price-changes-mini-app": "1.10.3",
@@ -9464,17 +9464,17 @@
}
},
"node_modules/@walmart/onewalmart-miniapp": {
- "version": "1.0.16",
- "resolved": "https://npme.walmart.com/@walmart/onewalmart-miniapp/-/onewalmart-miniapp-1.0.16.tgz",
- "integrity": "sha512-uL/CS1EtqHy9mWpCspuqwMg7V6oTxQwlqY20PiheiDQ6fxhSu3R29tf/IjQA4NzH4vu9I8sqf2+3ci0xYGhesg==",
+ "version": "1.0.24",
+ "resolved": "https://npme.walmart.com/@walmart/onewalmart-miniapp/-/onewalmart-miniapp-1.0.24.tgz",
+ "integrity": "sha512-oFv/1KYE/qpXbrVZivQI7HKgB6f7O2dRbSyYYWQIO/MF9mPqf2hoJzjE6uh9aIJEWe8yG4Ze5pnC3H6L31Nw+g==",
"dependencies": {
- "@walmart/functional-components": "^4.0.3"
+ "@walmart/functional-components": "^4.0.9"
},
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
"@react-navigation/stack": "^6.1.0",
"@walmart/core-services": "1.4.14",
- "@walmart/functional-components": "~4.0.3",
+ "@walmart/functional-components": "~4.0.9",
"@walmart/gtp-shared-components": ">=2.0.0",
"@walmart/redux-store": "3.1.3",
"react": "^17.0.2",
@@ -33518,11 +33518,11 @@
"integrity": "sha512-CMZ3PyFYcBxAoBCMekd6OKi/bqYYbEiZsRghgfz0iaMT6T/yjEHAxVyPrnJ06IyJuc+fVXu4GetWk4z1fKFuEw=="
},
"@walmart/onewalmart-miniapp": {
- "version": "1.0.16",
- "resolved": "https://npme.walmart.com/@walmart/onewalmart-miniapp/-/onewalmart-miniapp-1.0.16.tgz",
- "integrity": "sha512-uL/CS1EtqHy9mWpCspuqwMg7V6oTxQwlqY20PiheiDQ6fxhSu3R29tf/IjQA4NzH4vu9I8sqf2+3ci0xYGhesg==",
+ "version": "1.0.24",
+ "resolved": "https://npme.walmart.com/@walmart/onewalmart-miniapp/-/onewalmart-miniapp-1.0.24.tgz",
+ "integrity": "sha512-oFv/1KYE/qpXbrVZivQI7HKgB6f7O2dRbSyYYWQIO/MF9mPqf2hoJzjE6uh9aIJEWe8yG4Ze5pnC3H6L31Nw+g==",
"requires": {
- "@walmart/functional-components": "~4.0.3"
+ "@walmart/functional-components": "~4.0.3"
}
},
"@walmart/pay-stub-miniapp": {
--- package.json
@@ -112,7 +112,7 @@
"@walmart/mod-flex-mini-app": "1.14.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.1.4",
- "@walmart/onewalmart-miniapp": "1.0.16",
+ "@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.138.4",
"@walmart/price-changes-mini-app": "1.10.3",
| AEM version for Drop19 | AEM version for Drop19
|
d93324642eb6f522f31fcea82d61498019394e1f | --- packages/allspark-foundation-hub/__tests__/supplyChain/Modals/UpdateTeamsModal.test.tsx
@@ -248,3 +248,84 @@ describe('UpdateTeams Modal Error screen when network fails', () => {
expect(refetchMock).not.toHaveBeenCalled();
});
});
+
+describe('handleSelectShift logic', () => {
+ let renderResult: ReturnType<typeof render>;
+ let closeModalMock;
+ let upsertMock: jest.Mock<any, any>;
+ let dispatchMock;
+
+ beforeEach(() => {
+ closeModalMock = { closeModal: jest.fn() };
+ upsertMock = jest.fn();
+ dispatchMock = jest.fn();
+ (useDispatch as jest.Mock).mockReturnValue(dispatchMock);
+ (useUpsertSupplyChainAssociatePreference as jest.Mock).mockReturnValue({
+ upsertSupplyChainPreferences: upsertMock,
+ });
+ (useSelector as jest.Mock).mockImplementation((selector) => {
+ if (selector === SC_ManagerExperienceSelectors.getIsShiftUpsertError) {
+ return false;
+ }
+ if (selector === SC_ManagerExperienceSelectors.getSavedSiteTeams) {
+ return [];
+ }
+ if (selector === SC_ManagerExperienceSelectors.getAllSiteTeamsSections) {
+ return [];
+ }
+ if (selector === SC_ManagerExperienceSelectors.getSelectedTeamIDs) {
+ return [];
+ }
+ return undefined;
+ });
+ (useGetSupplyChainTeamsPreferenceQuery as jest.Mock).mockReturnValue({
+ shiftPreferenceData: ['A1', 'A2'],
+ teamPreferenceData: [],
+ loading: false,
+ });
+ (useGetSupplyChainAllTeamsBySite as jest.Mock).mockReturnValue({
+ allSiteTeams: [],
+ error: false,
+ loading: false,
+ });
+ renderResult = render(<UpdateTeamsModal modal={closeModalMock} />);
+ });
+
+ it('removes a shift if it is already selected', () => {
+ // Simulate pressing a shift that is already selected
+ const shiftFilterList = renderResult.getByTestId('shift-filter-list');
+ // Find the ShiftFilterList child and simulate handleSelectShift
+ // We assume ShiftFilterList calls handleSelectShift prop on press
+ // For this test, we call the prop directly
+ const shiftFilterProps = shiftFilterList.props.children.props;
+ shiftFilterProps.handleSelectShift('A1');
+ // After removing 'A1', selectedShifts should only have 'A2'
+ // We can't access state directly, but we can trigger apply and check upsert args
+ fireEvent.press(renderResult.getByTestId('primary-button'));
+ expect(upsertMock).toHaveBeenCalledWith({}, ['A2'], []);
+ });
+
+ it('adds a shift if it is not already selected', () => {
+ const shiftFilterList = renderResult.getByTestId('shift-filter-list');
+ const shiftFilterProps = shiftFilterList.props.children.props;
+ shiftFilterProps.handleSelectShift('B1');
+ fireEvent.press(renderResult.getByTestId('primary-button'));
+ // Should have ['A1', 'A2', 'B1']
+ expect(upsertMock).toHaveBeenCalledWith({}, ['A1', 'A2', 'B1'], []);
+ });
+
+ it('sets showMandatoryShiftAlert to false when a shift is selected', () => {
+ // This is indirectly tested by ensuring no alert is shown after selecting a shift
+ const shiftFilterList = renderResult.getByTestId('shift-filter-list');
+ const shiftFilterProps = shiftFilterList.props.children.props;
+ // First, remove both shifts to trigger alert
+ shiftFilterProps.handleSelectShift('A1');
+ shiftFilterProps.handleSelectShift('A2');
+ fireEvent.press(renderResult.getByTestId('primary-button'));
+ // Now, add a shift back and check alert is gone
+ shiftFilterProps.handleSelectShift('A1');
+ fireEvent.press(renderResult.getByTestId('primary-button'));
+ // No error thrown, upsert called with ['A1']
+ expect(upsertMock).toHaveBeenCalledWith({}, ['A1'], []);
+ });
+});
| feat(SMDV-7634): adding test coverage for UpdateTeamsModal | feat(SMDV-7634): adding test coverage for UpdateTeamsModal
|
e95bc2732ad327d7d01c800d26eee073ae03e0a6 | --- packages/me-at-walmart-container/__tests__/services/config.test.ts
@@ -14,6 +14,15 @@ jest.mock('../../src/services/config', () => {
+jest.mock('@walmart/config-components', () => {
+ const originalModule = jest.requireActual('@walmart/config-components');
+ return {
+ ...originalModule,
+ AppConfig: {
+ initialize: jest.fn(),
+ },
+ };
+});
import {
ConfigLogger,
@@ -22,10 +31,44 @@ import {
IMeAtWalmartConfigService,
MeAtWalmartConfigFetchParams,
ChangeEventManager , actualListener,
+initialize
+} from '../../src/services/config';
+import {
+ AppConfig,
+
+} from '@walmart/config-components';
-} from '../../src/services/config';
+
+
+describe('initialize', () => {
+ afterEach(() => {
+ jest.clearAllMocks();
+ });
+
+ it('should call AppConfig.initialize with the provided config and return true', async () => {
+ const mockConfig = { key: 'value' }; // Replace with actual AppConfigInitParams structure if needed
+ (AppConfig.initialize as jest.Mock).mockResolvedValueOnce(undefined);
+
+ const result = await initialize(mockConfig);
+
+ expect(AppConfig.initialize).toHaveBeenCalledTimes(1);
+ expect(AppConfig.initialize).toHaveBeenCalledWith(mockConfig);
+ expect(result).toBe(true);
+ });
+
+ it('should throw an error if AppConfig.initialize rejects', async () => {
+ const mockConfig = { key: 'value' };
+ const mockError = new Error('Initialization failed');
+ (AppConfig.initialize as jest.Mock).mockRejectedValueOnce(mockError);
+
+ await expect(initialize(mockConfig)).rejects.toThrow('Initialization failed');
+
+ expect(AppConfig.initialize).toHaveBeenCalledTimes(1);
+ expect(AppConfig.initialize).toHaveBeenCalledWith(mockConfig);
+ });
+});
--- packages/me-at-walmart-container/src/services/config.ts
@@ -33,7 +33,7 @@ export const actualListener = (result: AppConfigCallbackHandlerResult | undefine
}
};
-const initialize = async (config: AppConfigInitParams) => {
+export const initialize = async (config: AppConfigInitParams) => {
await AppConfig.initialize(config);
return true;
};
| added test for initialize function in me-at-walmart-container/config.ts | added test for initialize function in me-at-walmart-container/config.ts
|
c287e85c5e400dc9d5e0392d867d9539f90917d5 | --- .looper-pr.yml
@@ -5,7 +5,6 @@ tools:
flavor: azul
version: 17
-
flows:
npm-install:
- (name Enable Corepack) corepack enable
@@ -14,7 +13,6 @@ flows:
- (name Yarn Install) yarn install
- (name Test Coverage) yarn run coverage
-
envs:
global:
variables:
| feat(ci): version update | feat(ci): version update
|
b8969eea95399e3ada4999df3db5f519db3244be | --- package-lock.json
@@ -51,7 +51,7 @@
"@walmart/counts-component-miniapp": "0.1.8",
"@walmart/emergency-mini-app": "1.26.5",
"@walmart/exception-mini-app": "1.6.10",
- "@walmart/facilities-management-miniapp": "0.6.98",
+ "@walmart/facilities-management-miniapp": "0.6.99",
"@walmart/feedback-all-spark-miniapp": "0.9.52",
"@walmart/financial-wellbeing-feature-app": "1.16.3",
"@walmart/functional-components": "~4.0.3",
@@ -8771,9 +8771,9 @@
}
},
"node_modules/@walmart/facilities-management-miniapp": {
- "version": "0.6.98",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.98.tgz",
- "integrity": "sha512-MZULs7XzkFwtKH3Z6oGV4xdWXbhL3XQ/SUNfjGWV+H4eYRk0Eli/0lmJ0PNgpQLa14Liiz5sqI8t+uc96AacTQ==",
+ "version": "0.6.99",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.99.tgz",
+ "integrity": "sha512-Bc76QdWeZUG7kZf3Byb/wJb77zHjok8FzX29TspgSEOZ+9LVvsTJtzaaLdI/bZgMBTCvcXFddl2kblphjdYTPw==",
"hasInstallScript": true,
"engines": {
"node": ">=16"
@@ -8846,7 +8846,7 @@
"react-native-svg-transformer": "^1.0.0",
"react-native-tab-view": "^3.3.0",
"react-native-vector-icons": "^9.2.0",
- "react-native-vision-camera": "3.6.2",
+ "react-native-vision-camera": "3.7.1",
"react-native-webview": "^11.23.1",
"react-native-wm-network": "0.2.0",
"react-native-wm-notification": "2.0.1",
@@ -33286,9 +33286,9 @@
"integrity": "sha512-Kmpqk63paRh+ditR1Lar5Fx5Stlptr2Pkz0sB0aJ3HZlIfpxlSSWbddk2CkUh7T8scv/pubYxaaBSq6tOSv36w=="
},
"@walmart/facilities-management-miniapp": {
- "version": "0.6.98",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.98.tgz",
- "integrity": "sha512-MZULs7XzkFwtKH3Z6oGV4xdWXbhL3XQ/SUNfjGWV+H4eYRk0Eli/0lmJ0PNgpQLa14Liiz5sqI8t+uc96AacTQ=="
+ "version": "0.6.99",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.99.tgz",
+ "integrity": "sha512-Bc76QdWeZUG7kZf3Byb/wJb77zHjok8FzX29TspgSEOZ+9LVvsTJtzaaLdI/bZgMBTCvcXFddl2kblphjdYTPw=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.9.52",
--- package.json
@@ -92,7 +92,7 @@
"@walmart/counts-component-miniapp": "0.1.8",
"@walmart/emergency-mini-app": "1.26.5",
"@walmart/exception-mini-app": "1.6.10",
- "@walmart/facilities-management-miniapp": "0.6.98",
+ "@walmart/facilities-management-miniapp": "0.6.99",
"@walmart/feedback-all-spark-miniapp": "0.9.52",
"@walmart/financial-wellbeing-feature-app": "1.16.3",
"@walmart/functional-components": "~4.0.3",
| Updating the facilities-management-miniapp to 0.6.99 | Updating the facilities-management-miniapp to 0.6.99
|
86b1f8d9ac3bf8e7032ee85a7abd92d37acb4124 | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.0.8",
+ "version": "1.0.9",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/myteam-mini-app",
- "version": "1.0.8",
+ "version": "1.0.9",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.20.0",
@@ -66,7 +66,7 @@
"@walmart/react-native-scanner-3.0": "0.4.2",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-sumo-sdk": "2.6.0",
- "@walmart/roster-mini-app": "1.0.10",
+ "@walmart/roster-mini-app": "1.0.11",
"@walmart/ui-components": "1.15.1",
"@walmart/wmconnect-mini-app": "1.0.9",
"babel-jest": "^29.2.1",
@@ -11834,9 +11834,9 @@
}
},
"node_modules/@walmart/roster-mini-app": {
- "version": "1.0.10",
- "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.10.tgz",
- "integrity": "sha512-LxHc5bCkB0TRS73gMQojHYGZ5TvsxFLTbsiySJlS3SmUVnLeMOy/XS9nlV5ufcj+WOycMHg2l+nCXRfGE84yHQ==",
+ "version": "1.0.11",
+ "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.11.tgz",
+ "integrity": "sha512-/WqATbBlIvZTYinEKSMNvUJ4ntbMcek0QA9lruglFzPvZjdJrPOdWl8zPEDbe/C7Yb76Lj3zm936bJryj0D+5w==",
"dev": true,
"hasInstallScript": true
},
@@ -41072,9 +41072,9 @@
}
},
"@walmart/roster-mini-app": {
- "version": "1.0.10",
- "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.10.tgz",
- "integrity": "sha512-LxHc5bCkB0TRS73gMQojHYGZ5TvsxFLTbsiySJlS3SmUVnLeMOy/XS9nlV5ufcj+WOycMHg2l+nCXRfGE84yHQ==",
+ "version": "1.0.11",
+ "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.11.tgz",
+ "integrity": "sha512-/WqATbBlIvZTYinEKSMNvUJ4ntbMcek0QA9lruglFzPvZjdJrPOdWl8zPEDbe/C7Yb76Lj3zm936bJryj0D+5w==",
"dev": true
},
"@walmart/ui-components": {
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.0.8",
+ "version": "1.0.9",
"private": false,
"main": "dist/index.js",
"files": [
@@ -90,7 +90,7 @@
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/ui-components": "1.15.1",
"@walmart/wmconnect-mini-app": "1.0.9",
- "@walmart/roster-mini-app": "1.0.10",
+ "@walmart/roster-mini-app": "1.0.11",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
| Update version | Update version
|
2ea79b96c4d6bb2ab01459d78e3d39d422795b3c | --- targets/US/package.json
@@ -110,7 +110,7 @@
"@walmart/ims-print-services-ui": "2.15.3",
"@walmart/inbox-mini-app": "0.96.6",
"@walmart/iteminfo-mini-app": "7.16.2",
- "@walmart/learning-mini-app": "20.0.35",
+ "@walmart/learning-mini-app": "20.0.39",
"@walmart/manager-approvals-miniapp": "0.3.0",
"@walmart/me-at-walmart-athena-queries": "6.24.0",
"@walmart/me-at-walmart-common": "workspace:^",
--- yarn.lock
@@ -6578,9 +6578,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/learning-mini-app@npm:20.0.35":
- version: 20.0.35
- resolution: "@walmart/learning-mini-app@npm:20.0.35"
+"@walmart/learning-mini-app@npm:20.0.39":
+ version: 20.0.39
+ resolution: "@walmart/learning-mini-app@npm:20.0.39"
peerDependencies:
"@atmt/feedback-component-native": ^8.0.0
"@react-native-firebase/analytics": 17.4.2
@@ -6606,15 +6606,15 @@ __metadata:
"@walmart/react-native-logger": 1.34.8
"@walmart/react-native-scanner-3.0": 0.4.2
"@walmart/react-native-shared-navigation": ^1.0.2
- "@walmart/react-native-sumo-sdk": ^2.6.0
+ "@walmart/react-native-sumo-sdk": ^2.7.2
"@walmart/redux-store": ~3.1.3
"@walmart/time-clock-mini-app": 2.175.2
"@walmart/ui-components": 1.15.11
"@walmart/wfm-ui": 0.2.25
base-64: ^1.0.0
- expo: 49.0.13
- expo-image: ~1.3.5
- expo-sharing: ~11.7.0
+ expo: ~50.0.21
+ expo-image: ~1.10.6
+ expo-sharing: ~11.10.0
graphql: ^16.1.0
i18next: ^21.6.3
javascript-time-ago: ^2.3.4
@@ -6654,7 +6654,7 @@ __metadata:
reduxsauce: ^1.2.0
reselect: ^4.0.0
wifi-store-locator: ^1.0.0-alpha2
- checksum: 10c0/bdd628becd3b89e7074a92f52dd7d98e7befcbb2b484af66ec5a43646efbce77fd4cb05143aba294ea9d85fda594e4dbb50faee236271122611dd398442fd112
+ checksum: 10c0/f4c09941c8550505cd389abc6d330246853c264086bb4e1da8578b5a74ca9c94485086a3c85c27f7d65a8436bbc07ed3b20a35c351101644761335d02cf4f410
languageName: node
linkType: hard
@@ -7017,7 +7017,7 @@ __metadata:
"@walmart/ims-print-services-ui": "npm:2.15.3"
"@walmart/inbox-mini-app": "npm:0.96.6"
"@walmart/iteminfo-mini-app": "npm:7.16.2"
- "@walmart/learning-mini-app": "npm:20.0.35"
+ "@walmart/learning-mini-app": "npm:20.0.39"
"@walmart/manager-approvals-miniapp": "npm:0.3.0"
"@walmart/me-at-walmart-athena-queries": "npm:6.24.0"
"@walmart/me-at-walmart-common": "workspace:^"
| feat: :sparkles: Bump learning mini app version to 20.0.39 | feat: :sparkles: Bump learning mini app version to 20.0.39
|
6c3bbcc940c699e9bc8e125369a6779c67743fa8 | --- ios/Podfile.lock
@@ -935,7 +935,7 @@ SPEC CHECKSUMS:
GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4
glog: 5337263514dd6f09803962437687240c5dc39aa4
GoogleAppMeasurement: 6b6a08fd9c71f4dbc89e0e812acca81d797aa342
- GoogleDataTransport: 5fffe35792f8b96ec8d6775f5eccd83c998d5a3b
+ GoogleDataTransport: 629c20a4d363167143f30ea78320d5a7eb8bd940
GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1
leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729
libwebp: 98a37e597e40bfdb4c911fc98f2c53d0b12d05fc
@@ -944,7 +944,7 @@ SPEC CHECKSUMS:
Permission-LocationWhenInUse: e09ae67e8db2b1eeefb35f18ca59848d0785de5b
Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef
PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72
- Protobuf: b60ec2f51ad74765f44d0c09d2e0579d7de21745
+ Protobuf: 66e2f3b26a35e4cc379831f4ced538274ee4b923
PTT: dcd0a88856e88369871ca235c31639afecedd32b
RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9
RCTRequired: 4bf86c70714490bca4bf2696148638284622644b
--- package-lock.json
@@ -4309,7 +4309,7 @@
"@walmart/patient-portal-mobile": {
"version": "2.1.14",
"resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.14.tgz",
- "integrity": "sha1-6a8PZ45o8XUCL3Jj8H7rlEfmefQ=",
+ "integrity": "sha512-LhqS1Ogr1vi5Nj2/gIRPQnn/ogReKbIhXvXsLdDzltCibI5YGoKxHpReIQKp3YJ01xBUJyUBzrc3G/JCe7KYSg==",
"requires": {
"@react-native-community/datetimepicker": "^3.0.3",
"@walmart/react-native-collapsible": "1.5.3",
@@ -4350,7 +4350,7 @@
"@walmart/react-native-collapsible": {
"version": "1.5.3",
"resolved": "https://npme.walmart.com/@walmart/react-native-collapsible/-/react-native-collapsible-1.5.3.tgz",
- "integrity": "sha1-XoOvTwTbUqaib/9Ii//qp9yNBQk=",
+ "integrity": "sha512-A/eHjceqHN2FJVaimSrKO/wIHgP5ymIoiyTMRa10ce8NZ7ejhPelIkCqzwjvQ328HG38y7HPelvu/6xlsiFlUQ==",
"requires": {
"prop-types": "^15.6.2"
}
@@ -18423,7 +18423,7 @@
"squiggly-localization": {
"version": "0.0.2",
"resolved": "https://npme.walmart.com/squiggly-localization/-/squiggly-localization-0.0.2.tgz",
- "integrity": "sha1-3ksz5Io53VPnUBiRSVDpxDaSGHU="
+ "integrity": "sha512-9j/XUl0XvLk5wksN/nhOcRHmHesVHopX7v3Z1Hv398/656CLarKW0FAqL28zjKO68YH566s8PM1gflrAayBuMA=="
},
"sshpk": {
"version": "1.16.1",
@@ -19818,7 +19818,7 @@
"wfm-allspark-data-library": {
"version": "0.0.11",
"resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.11.tgz",
- "integrity": "sha1-E27LsiPO+Sbj5h3p0FQpcH9VU8g=",
+ "integrity": "sha512-o34ej3nNhCcy3uwWkOJcU/3zjXmX+VvbqiZrEgQwrxbO6cbJGxiK1Tz/JQX8j1lwi6cZFJKvDOucJtlduzVQrg==",
"requires": {
"@walmart/functional-components": "^1.0.22",
"@walmart/react-native-env": "^0.1.0",
@@ -19832,7 +19832,7 @@
"@walmart/react-native-env": {
"version": "0.1.0",
"resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.1.0.tgz",
- "integrity": "sha1-ojNwDE5pPTzF1RuQXDc//Fnlpz0="
+ "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ=="
},
"moment": {
"version": "2.24.0",
@@ -19842,7 +19842,7 @@
"react-native-ssmp-sso-allspark": {
"version": "0.0.1-rc8",
"resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz",
- "integrity": "sha1-/SHw48C+3muBMp2bynExhYPZl0s="
+ "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg=="
}
}
},
--- package.json
@@ -91,7 +91,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.101.0",
"@walmart/price-changes-mini-app": "1.2.1",
- "@walmart/push-to-talk-mini-app": "0.5.117",
+ "@walmart/push-to-talk-mini-app": "0.5.118",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| latest ptt changes | latest ptt changes
|
03d197f3861d14ba2c2ea56ca2fe272d181350fc | --- src/redux/selectors.ts
@@ -1,13 +1,7 @@
import {createSelector} from 'reselect';
-import {UserSelectors, GlobalState} from '@walmart/redux-store';
-import {encryptUserId} from '../utils';
+import {GlobalState} from '@walmart/redux-store';
import {CCMFallbacks} from '../ccmFallbacks';
-export const getEncryptedUserId = createSelector(
- [UserSelectors.getUserWIN],
- encryptUserId,
-);
-
export const getTextingAppConfigData = (state: GlobalState) =>
state.appConfig.data?.texting || {};
| Remove code which is not required in myteam mini app | Remove code which is not required in myteam mini app
|
75f4574071360ad76283de4a683d48cf366aabaf | --- packages/celebration-mini-app-graphql/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.3.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.2.1...@walmart/celebration-mini-app-graphql@1.3.0) (2025-09-01)
+
+### Features
+
+- **ui:** update celebration details screen ([251e0b8](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/251e0b8573080275109e626edaf856d08cf994fc))
+
## [1.2.1](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.2.0...@walmart/celebration-mini-app-graphql@1.2.1) (2025-09-01)
**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.2.1",
+ "version": "1.3.0",
"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.4.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.3.0...@walmart/celebration-mini-app@1.4.0) (2025-09-01)
+
+### Features
+
+- **ui:** update celebration details screen ([251e0b8](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/251e0b8573080275109e626edaf856d08cf994fc))
+
# [1.3.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.2.0...@walmart/celebration-mini-app@1.3.0) (2025-09-01)
### Features
--- packages/celebration-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/celebration-mini-app",
- "version": "1.3.0",
+ "version": "1.4.0",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
| chore(version): updating package version | chore(version): updating package version
- @walmart/celebration-mini-app@1.4.0
- @walmart/celebration-mini-app-graphql@1.3.0
|
55dbb8e396c1c03da3dfe5a463361195439ee207 | --- ios/AllSpark.xcodeproj/project.pbxproj
@@ -392,7 +392,6 @@
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
- "${PODS_CONFIGURATION_BUILD_DIR}/gRPC-C++/gRPCCertificates-Cpp.bundle",
"${BUILT_PRODUCTS_DIR}/react-native-wm-barcode/react_native_wm_barcode.framework/AVScannerViewController.nib",
"${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/scanbeep.wav",
"${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/scan.mp3",
@@ -423,7 +422,6 @@
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
- "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/gRPCCertificates-Cpp.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AVScannerViewController.nib",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/scanbeep.wav",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/scan.mp3",
@@ -443,10 +441,14 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-AllSpark/Pods-AllSpark-frameworks.sh",
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ScanditBarcodeCapture/ScanditBarcodeCapture.framework/ScanditBarcodeCapture",
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ScanditCaptureCore/ScanditCaptureCore.framework/ScanditCaptureCore",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-wm-barcode/DMSDK.framework/DMSDK",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ScanditBarcodeCapture.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ScanditCaptureCore.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DMSDK.framework",
);
runOnlyForDeploymentPostprocessing = 0;
--- ios/Podfile.lock
@@ -425,6 +425,11 @@ PODS:
- React
- react-native-safe-area-context (3.3.2):
- React-Core
+ - react-native-scanner-3.0 (0.1.0):
+ - Firebase/Analytics
+ - React
+ - ScanditBarcodeCapture (= 6.14.0-beta.3)
+ - ScanditCaptureCore (= 6.14.0-beta.3)
- react-native-splash-screen (3.2.0):
- React
- react-native-video (5.1.0-alpha8):
@@ -438,7 +443,7 @@ PODS:
- React-Core
- react-native-wm-app-review (0.2.0-rc.3):
- React-Core
- - react-native-wm-barcode (2.36.3):
+ - react-native-wm-barcode (2.36.5):
- Firebase/Analytics
- React
- react-native-wm-voice-text (0.6.0):
@@ -582,6 +587,9 @@ PODS:
- React
- RNVectorIcons (7.1.0):
- React
+ - ScanditBarcodeCapture (6.14.0-beta.3):
+ - ScanditCaptureCore (= 6.14.0-beta.3)
+ - ScanditCaptureCore (6.14.0-beta.3)
- SDWebImage (5.11.1):
- SDWebImage/Core (= 5.11.1)
- SDWebImage/Core (5.11.1)
@@ -651,6 +659,7 @@ DEPENDENCIES:
- react-native-pdf (from `../node_modules/react-native-pdf`)
- react-native-ptt-module (from `../node_modules/react-native-ptt-module`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
+ - "react-native-scanner-3.0 (from `../node_modules/@walmart/react-native-scanner-3.0`)"
- react-native-splash-screen (from `../node_modules/react-native-splash-screen`)
- react-native-video (from `../node_modules/react-native-video`)
- react-native-view-shot (from `../node_modules/react-native-view-shot`)
@@ -735,6 +744,8 @@ SPEC REPOS:
- PromisesObjC
- Realm
- RealmSwift
+ - ScanditBarcodeCapture
+ - ScanditCaptureCore
- SDWebImage
- SDWebImageWebPCoder
- SQLite.swift
@@ -818,6 +829,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-ptt-module"
react-native-safe-area-context:
:path: "../node_modules/react-native-safe-area-context"
+ react-native-scanner-3.0:
+ :path: "../node_modules/@walmart/react-native-scanner-3.0"
react-native-splash-screen:
:path: "../node_modules/react-native-splash-screen"
react-native-video:
@@ -991,12 +1004,13 @@ SPEC CHECKSUMS:
react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f
react-native-ptt-module: 8548d9a0d613fe775bc56b5cd83b5c024114f6b7
react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5
+ react-native-scanner-3.0: 63b7f4080ec7a407947f0f3aaf515d29f77c775a
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444
react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070
react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7
react-native-wm-app-review: 339a06c8ba391e1855e90cb4046568f925e9c4b0
- react-native-wm-barcode: 0e277b728cdc065c5b98724664f1c8653202315b
+ react-native-wm-barcode: e4d61564e1f84115503707b4fb504cbd0e007486
react-native-wm-voice-text: e41ea4227df3f52f3e2cab2f08fd89fbdcd02cfd
React-perflogger: 0afaf2f01a47fd0fc368a93bfbb5bd3b26db6e7f
React-RCTActionSheet: 59f35c4029e0b532fc42114241a06e170b7431a2
@@ -1039,6 +1053,8 @@ SPEC CHECKSUMS:
RNSoundPlayer: e7f72cf262c8de4f1427b5f29cc47aebadd1d872
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59
+ ScanditBarcodeCapture: 190177be53186374f1e3ccf387b9813a6d2d4f8b
+ ScanditCaptureCore: 39c5a377a839738468883545c4f418fe9b4ba4e8
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
SQLite.swift: d2b4642190917051ce6bd1d49aab565fe794eea3
| Synchronize Podfile.lock | Synchronize Podfile.lock
|
36fc697ec49f99860ead1807aa4624d814999327 | --- ios/Podfile.lock
@@ -594,7 +594,7 @@ PODS:
- React-Core
- react-native-pdf (6.2.2):
- React-Core
- - react-native-ptt-module (1.2.44):
+ - react-native-ptt-module (1.2.48):
- PTT (= 0.6.0-rc.2)
- React
- react-native-safe-area-context (3.1.8):
@@ -1071,7 +1071,7 @@ SPEC CHECKSUMS:
react-native-logger: 6d1a4098b9b035278c3691760a45be8ce56acd2e
react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f
react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f
- react-native-ptt-module: 2a53a4d05cf78e1206943047346de28c3de19375
+ react-native-ptt-module: c88c9bbff721224c2154b58b5ac37617b7da67b2
react-native-safe-area-context: 01158a92c300895d79dee447e980672dc3fb85a6
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-sumo-sdk: 8a034fe724417d8c9465951630e229edef2f738f
--- package-lock.json
@@ -3124,9 +3124,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.4.5-stg.50",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.4.5-stg.50.tgz",
- "integrity": "sha512-Fy8NbPqrlY3B8M775zR5of6NvXZfTGtQcA6HrJn5o8ABox+++/rqSxCSd8XBuPmxpHx+ydZZP416TlTSlYFCTA=="
+ "version": "0.5.0",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.0.tgz",
+ "integrity": "sha512-UmBxzzcWolzEqqZgXMl3gctHHJBRo1Hgpa1c7hHRJStD2mjJk7fYaOPniusUoeCEVtnI0bAQm9EbOxNqa66EBQ=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
@@ -12347,9 +12347,9 @@
"integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w=="
},
"react-native-ptt-module": {
- "version": "1.2.44",
- "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.2.44.tgz",
- "integrity": "sha512-PYNtuE/cYJfLOSQl97vGAcrQzi4daSY0FIjcWBUCQfH7EoqlvXHva/2n1y8aeoJa6KMvQemn5g1GeyKWuO/M2g=="
+ "version": "1.2.48",
+ "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.2.48.tgz",
+ "integrity": "sha512-z+Bs0QMcCf5aOy+a2xzfnYuc66QYwPU30OcLHVuNUQ8JfQaSx/MqjRO8FJHKdZ/X6+X2XJqHk+pTjwmddB+7og=="
},
"react-native-qrcode-svg": {
"version": "6.0.6",
--- package.json
@@ -72,7 +72,7 @@
"@walmart/impersonation-mini-app": "1.0.14",
"@walmart/inbox-mini-app": "0.0.92",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.4.5-stg.50",
+ "@walmart/push-to-talk-mini-app": "0.5.0",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.25.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
@@ -108,7 +108,7 @@
"react-native-pdf": "^6.2.0",
"react-native-permissions": "3.0.0",
"react-native-popup-menu": "^0.15.9",
- "react-native-ptt-module": "1.2.44",
+ "react-native-ptt-module": "1.2.48",
"react-native-qrcode-svg": "^6.0.6",
"react-native-reanimated": "^1.10.2",
"react-native-safe-area-context": "^3.1.3",
--- src/navigation/AssociateHallwayNav/index.tsx
@@ -96,6 +96,11 @@ const AssociateHallwayNav = () => {
component={Components.DndConfirmationScreen}
options={Properties.DndConfirmationNavProperties}
/>
+ <AssociateHallwayStack.Screen
+ name='PTTFilterScreen'
+ component={Components.FilterScreen}
+ options={Properties.FilterScreenNavProperties}
+ />
<AssociateHallwayStack.Screen
name='PttStoreConfirmation'
component={Components.StoreConfirmationScreen}
| Bug fixes for PTT Voice Messages | Bug fixes for PTT Voice Messages
|
83bf33af7f72e6199ce8fad41c8f5adeaa8568ae | --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainTabsNavTest.tsx.snap
@@ -112,17 +112,7 @@ exports[`TabBar matches snapshot 1`] = `
/>
`;
-exports[`TabsHeader matches snapshot 1`] = `
-<MainHeader
- originalHeaderType={
- Object {
- "createDrawerNavigator": [MockFunction],
- "default": "DrawerHeader",
- "useIsDrawerOpen": [MockFunction],
- }
- }
-/>
-`;
+exports[`TabsHeader matches snapshot 1`] = `<MainHeader />`;
exports[`TabsHeaderLeft matches snapshot 1`] = `
<DrawerButton
| Snapshot fix | Snapshot fix
|
b84dc2bce81e474d361a5fb82af68050bd3c6896 | --- package.json
@@ -100,7 +100,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.126.3",
"@walmart/price-changes-mini-app": "1.4.9",
- "@walmart/profile-feature-app": "0.0.48",
+ "@walmart/profile-feature-app": "0.0.49",
"@walmart/push-to-talk-mini-app": "1.8.9",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "^0.2.0",
| Update profile to v0.0.49 | Update profile to v0.0.49
|
eb57e9f924e8555ff7cc88f0c794b7b15641844c | --- package-lock.json
@@ -3133,9 +3133,9 @@
"integrity": "sha512-Am5QrgtwxJ23j3GsZZivaZknjiWTuPFvFxV1J0ysrQZ3H4wZcgsxuFdsCJqA3Hzufo3pZdyMTZhNtAx4IuQjjw=="
},
"@walmart/inbox-mini-app": {
- "version": "0.0.94",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.94.tgz",
- "integrity": "sha512-Nw48GsUKz2HkFr1qjavFld2pryaG9Jzn/QPT9C/xk7UgxTs4UeCmSJEZ99oLeSIV3TA9rgAH8dThkqzwmjP6ew=="
+ "version": "0.0.96",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.96.tgz",
+ "integrity": "sha512-jplu8SFzqVj1xWNlxMrPmR3oelBdyNBeQHJOr5YM7p7yqAWBiYO2jt9HyUkZCzRkEhrjjDufk9J5K9OJC1GhKA=="
},
"@walmart/iteminfo-mini-app": {
"version": "1.0.4",
--- package.json
@@ -75,7 +75,7 @@
"@walmart/gtp-shared-components": "^1.1.8",
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/ims-print-services-ui": "0.0.19",
- "@walmart/inbox-mini-app": "0.0.94",
+ "@walmart/inbox-mini-app": "0.0.96",
"@walmart/iteminfo-mini-app": "1.0.4",
"@walmart/manager-approvals-miniapp": "0.0.25",
"@walmart/moment-walmart": "1.0.4",
| inbox version bump" | inbox version bump"
|
194c623df338b5a962a1730e0379f766351bc676 | --- targets/US/package.json
@@ -89,7 +89,7 @@
"@walmart/attendance-mini-app": "3.44.0",
"@walmart/avp-feature-app": "0.10.7",
"@walmart/avp-shared-library": "0.10.1",
- "@walmart/backroom-mini-app": "1.5.20",
+ "@walmart/backroom-mini-app": "1.7.4",
"@walmart/calling-mini-app": "0.5.17",
"@walmart/checkout-mini-app": "3.24.0",
"@walmart/compass-sdk-rn": "5.19.15",
--- yarn.lock
@@ -6068,9 +6068,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/backroom-mini-app@npm:1.5.20":
- version: 1.5.20
- resolution: "@walmart/backroom-mini-app@npm:1.5.20"
+"@walmart/backroom-mini-app@npm:1.7.4":
+ version: 1.7.4
+ resolution: "@walmart/backroom-mini-app@npm:1.7.4"
dependencies:
pubsub-js: "npm:^1.9.4"
react-native-mask-input: "npm:^1.2.3"
@@ -6093,7 +6093,7 @@ __metadata:
react-native-svg-transformer: ">=1.0.0"
react-redux: ^8.0.0
redux: ^4.0.0
- checksum: 10c0/6dd25b1d39a39312409c839102a82974a316b7f9c6f2db2941a2e41059626e94a4bcb77c5297c3aca7478b8e527ccb83320a00e5a4dc97a4619d9f10fb41c98a
+ checksum: 10c0/88930a4cd3de1e9e546f39ccac567660bd8af881a6a46184d9aaefdca3fd70d38eead14a9c1e4661c675dbf47469eaa5b8a6a31f80753976f853953ffecc62e1
languageName: node
linkType: hard
@@ -7005,7 +7005,7 @@ __metadata:
"@walmart/attendance-mini-app": "npm:3.44.0"
"@walmart/avp-feature-app": "npm:0.10.7"
"@walmart/avp-shared-library": "npm:0.10.1"
- "@walmart/backroom-mini-app": "npm:1.5.20"
+ "@walmart/backroom-mini-app": "npm:1.7.4"
"@walmart/calling-mini-app": "npm:0.5.17"
"@walmart/checkout-mini-app": "npm:3.24.0"
"@walmart/compass-sdk-rn": "npm:5.19.15"
| Update @walmart/backroom-mini-app to 1.7.4 | Update @walmart/backroom-mini-app to 1.7.4
|
3bee65ca394a730c2facf36e94e361b93561c3a2 | --- packages/celebration-mini-app/src/components/Widget/HubCelebrationWidget.tsx
@@ -101,7 +101,9 @@ import {FailedToLoadAlert, NoCelebrationsAlert} from './Alert';
*
* @param props - HubCelebrationWidgetProps from Hub Framework
*/
-const HubCelebrationWidgetCore: React.FC<HubCelebrationWidgetProps> = (componentProps) => {
+const HubCelebrationWidgetCore: React.FC<
+ HubCelebrationWidgetProps
+> = componentProps => {
// Destructure props for easier access
const {
refresh,
@@ -338,10 +340,6 @@ const HubCelebrationWidgetCore: React.FC<HubCelebrationWidgetProps> = (component
}
}, [teamData, effectiveTeamIds, celebrations.length, isSiteDC, refresh]);
- // TEAM ACCESS VALIDATION
- // Validate that user has access to at least one team
- const hasValidTeamAccess = effectiveTeamIds && effectiveTeamIds.length > 0;
-
// Combined loading state (initial load or refresh)
const isLoading = combinedLoadingState;
@@ -410,27 +408,8 @@ const HubCelebrationWidgetCore: React.FC<HubCelebrationWidgetProps> = (component
let contentProp: ContentProps = {};
let additionalProps: AdditionalProps = {};
- // No team access
- if (!hasValidTeamAccess && !isLoading) {
- state = 'empty';
- testID = 'celebration-widget-no-access';
- description = t('celebrations.widget.noTeamAccess.message', {
- default: 'Please select a team to view celebrations.',
- fallbackLng: 'en-US',
- });
- content = (
- <NoCelebrationsAlert
- textLabel={t('celebrations.widget.noTeamAccess.title', {
- default: 'Team access required',
- fallbackLng: 'en-US',
- })}
- accessibilityLabel='Team access required'
- />
- );
- contentProp = {emptyContent: content};
- }
// Loading state
- else if (isLoading) {
+ if (isLoading) {
state = 'loading';
showChevron = false;
testID = 'celebration-widget-loading';
@@ -516,7 +495,6 @@ const HubCelebrationWidgetCore: React.FC<HubCelebrationWidgetProps> = (component
>
<Body
size='medium'
-
UNSAFE_style={styles.sectionTitle}
accessibilityLabel='Birthdays'
accessibilityRole='header'
@@ -554,7 +532,6 @@ const HubCelebrationWidgetCore: React.FC<HubCelebrationWidgetProps> = (component
>
<Body
size='medium'
-
UNSAFE_style={styles.sectionTitle}
accessibilityLabel='Anniversaries'
accessibilityRole='header'
@@ -635,7 +612,8 @@ const HubCelebrationWidgetCore: React.FC<HubCelebrationWidgetProps> = (component
CelebrationLogger.error('Error boundary caught error', {
message: error.message,
errorMessage: error.message,
- componentStack: errorInfo.componentStack?.substring(0, 500) || 'No stack',
+ componentStack:
+ errorInfo.componentStack?.substring(0, 500) || 'No stack',
widgetId: 'hub-celebration-widget',
});
}}
| feat(ui): update widget boundary | feat(ui): update widget boundary
|
4a943bbc0d1c7ba5f1379140c3b8dfb50040d136 | --- packages/allspark-foundation/__tests__/Auth/sagas.test.tsx
@@ -15,15 +15,6 @@ jest.mock('../../src/Auth/service', ()=>({
}
}))
describe('Auth/sagas.ts', () => {
- const mockAuthResult: AuthResult = {
- scopes: ['test'],
- accessToken: 'test',
- accessTokenExpirationDate: '',
- idToken: 'string',
- refreshToken: 'string',
- tokenType: 'string',
- authorizationCode: 'string'
- };
const mockGetUser = AuthService.getUser as jest.Mock;
const mockSignIn = AuthService.signIn as jest.Mock;
const mockSignOut = AuthService.signOut as jest.Mock;
| pr fix auth saga | pr fix auth saga
|
ecca31059e568e7e2c3f7c8f49eeddc1c7dbfb09 | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.2.20",
+ "version": "1.2.21",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| Update the foundation hub version | Update the foundation hub version
|
a58efb7732a16907484a1cbcc2a620d477b64cbb | --- packages/allspark-foundation/src/Feature/FeatureCreators.tsx
@@ -1,7 +1,10 @@
import { ComponentType } from 'react';
import { Effect, all } from 'redux-saga/effects';
import { Reducer, ReducersMapObject, combineReducers } from 'redux';
-import { createRestartableSagas } from '@walmart/allspark-utils';
+import {
+ createRestartableSaga,
+ createRestartableSagas,
+} from '@walmart/allspark-utils';
import { LoggerService } from '../Logger';
import {
@@ -55,16 +58,30 @@ export const AllsparkFeatureReducer = (
};
/**
- * Creates a saga ready to be used with `AllsparkFeature.createModule()`. Runs a list of sagas and logs any errors that occur.
- * @param sagas - An array of sagas to run.
+ * Creates a saga ready to be used with `AllsparkFeature.createModule()`.
+ *
+ * Creates a restartable saga from either a single saga or an array of sagas. Logs any errors that occur
+ * using the feature's logger.
+ *
+ * @param sagas - A saga function or an array of saga functions.
* @returns A saga to be used when creating an AllsparkFeatureModule.
* @example
- * const MyFeatureSagas = AllsparkFeatureSagas([saga1, saga2]);
+ * const MyFeatureSaga = AllsparkFeatureSaga([saga1, saga2]);
+ * // Or
+ * const MyFeatureSaga = AllsparkFeatureSaga(saga);
*/
-export const AllsparkFeatureSagas = (sagas: Effect<any, any>[]) => {
+export const AllsparkFeatureSaga = (sagas: Effect | Effect[]) => {
+ if (typeof sagas === 'function') {
+ return function* (featureId: string) {
+ yield createRestartableSaga(sagas, (...params) => {
+ LoggerService.getFeatureInstance(featureId)?.error(...params);
+ });
+ };
+ }
+
return function* (featureId: string) {
yield all(
- createRestartableSagas(sagas, (...params) => {
+ createRestartableSagas(sagas as Effect[], (...params) => {
LoggerService.getFeatureInstance(featureId)?.error(...params);
})
);
@@ -73,14 +90,25 @@ export const AllsparkFeatureSagas = (sagas: Effect<any, any>[]) => {
/**
* Creates a redux object ready to be used with `AllsparkFeature.createModule()`
+ *
+ * This is a convenience function that combines `AllsparkFeatureReducer` and `AllsparkFeatureSagas` into a single object.
+ *
+ * **AVOID** using in combination with `AllsparkFeatureSagas` as it could lead to unexpected behavior.
+ *
* @param redux The redux config for that feature
* @returns The redux config to be used when creating an AllsparkFeatureModule.
* @example
- * const MyFeatureRedux = AllsparkFeatureRedux({ reducer: {}, saga: {} });
+ * const MyFeatureRedux = AllsparkFeatureRedux({ reducer: (...) => {...}, sagas: [...] });
*/
-export const AllsparkFeatureRedux = <R extends IAllsparkFeatureRedux>(
+export const AllsparkFeatureRedux = <
+ R extends { reducer: Reducer | ReducersMapObject; sagas: Effect | Effect[] }
+>(
redux: R
-) => redux;
+) =>
+ ({
+ reducer: redux.reducer && AllsparkFeatureReducer(redux.reducer),
+ saga: redux.sagas && AllsparkFeatureSaga(redux.sagas),
+ } as IAllsparkFeatureRedux);
/**
* Creates a feature screen object ready to be used with `AllsparkFeature.createModule()`
| refactor: change feature redux creator to handle more inputs | refactor: change feature redux creator to handle more inputs
|
a9530c03f74e85daa08e766eb45c74674dba364c | --- packages/allspark-foundation/src/FeatureRunner/README.md
@@ -43,3 +43,79 @@ AppRegistry.registerComponent(name, FeatureRunner.App);
The feature runner app generate some basic UI for the various feature capabilities as well as common container functionality.
Try it out and if you think of functionality that should be added, please submit a feature request to the [Allspark Service Portal](https://jira.walmart.com/servicedesk/customer/portal/9085).
+
+## Feature Runner Plugins
+
+The feature runner aims to give you all the functionality needed to test your mini app, but naturally it cannot cover everything!
+
+Use plugins to add custom functionality needed for mini app specific testing.
+
+### Create a Plugin
+
+Define a plugin config following the [Plugin API](#plugin).
+
+```tsx
+// Component only plugin
+const ComponentPlugin = {
+ name: 'component-plugin',
+ component: () => (
+ <Card>
+ <CardContent>
+ <Body>Plugin 1 Component</Body>
+ </CardContent>
+ </Card>
+ ),
+};
+
+// Screen and menu option plugin
+const ScreenPlugin = {
+ name: 'screen-plugin',
+ menuOption: {
+ title: 'Plugin 1 Menu Option',
+ description: 'Open Plugin 1',
+ onPress: () => {
+ AllsparkNavigationClient.navigate('screen-plugin');
+ },
+ },
+ screen: () => (
+ <View style={styles.container}>
+ <Text>Plugin 1 Screen</Text>
+ </View>
+ ),
+};
+```
+
+### Add to Config
+
+```ts
+const FeatureRunner = new AllsparkFeatureRunner(
+ MyAllsparkContainer,
+ MyAllsparkFeature,
+ {
+ environment: 'dev'
+ plugins: [ // <--- Add plugins here
+ ComponentPlugin,
+ ScreenPlugin,
+ ],
+ }
+)
+```
+
+### API
+
+#### Plugin
+
+| Key | Type | Description |
+| ---- | ---- | ---- |
+| name | string | Plugin name |
+| component | ComponentType\<any> | Rendered as home screen component |
+| menuOption | SideMenuItemProps | Rendered as side menu option |
+| screen | ComponentType\<any> | Rendered as screen |
+
+#### SideMenuItemProps
+
+| Key | Type | Description |
+| ---- | ---- | ---- |
+| title | string | Option title |
+| description | string | Option subtitle |
+| onPress | () => void | Option press callback |
--- packages/allspark-foundation/src/FeatureRunner/types.ts
@@ -8,11 +8,11 @@ import { SideMenuItemProps } from './screens/SideMenu';
export type FeatureRunnerPlugin = {
name: string;
- // rendered on home screen?
+ // rendered on home screen
component?: ComponentType<any>;
- // rendered on side menu?
+ // rendered on side menu
menuOption?: SideMenuItemProps;
- // rendered as a screen
+ // rendered as a screen, screen link shown on plugins section of home screen
screen?: ComponentType<any>;
};
| docs: add feature runner plugin docs | docs: add feature runner plugin docs
|
ab570b795caeb843db48c2aced4c754221585836 | --- packages/allspark-foundation-hub/__tests__/HubFeature/Hub/Container/Components/ErrorBottomSheet.test.tsx
@@ -50,7 +50,7 @@ describe('ErrorBottomSheet', () => {
fireEvent.press(closeButton);
});
- expect(telemetryEventsHandler).toHaveBeenCalledTimes(2);
- expect(telemetryLogHandler).toHaveBeenCalledTimes(2);
+ expect(telemetryEventsHandler).toHaveBeenCalledTimes(0);
+ expect(telemetryLogHandler).toHaveBeenCalledTimes(0);
});
});
--- packages/allspark-foundation-hub/__tests__/HubFeature/Hub/Container/Components/OnboardingBottomSheet.test.tsx
@@ -1,13 +1,13 @@
import React from 'react';
import { act } from '@testing-library/react-native';
import { fireEvent, render } from '../../../../utils';
-import { OnboardingBottomSheet } from '../../../../../src/HubFeature/Store/Hub/Container/Components';
+import { OnboardingBottomSheet } from '../../../../../src/HubFeature/Store/Components';
import {
telemetryEventsHandler,
telemetryLogHandler,
-} from '../../../../../src/HubFeature/Store/Hub/Container/utils';
+} from '../../../../../src/HubFeature/Store/Common/utils';
-jest.mock('../../../../../src/HubFeature/Store/Hub/Container/utils', () => ({
+jest.mock('../../../../../src/HubFeature/Store/Common/utils', () => ({
telemetryEventsHandler: jest.fn(),
telemetryLogHandler: jest.fn(),
}));
@@ -53,4 +53,4 @@ describe('OnboardingBottomSheet', () => {
expect(telemetryEventsHandler).toHaveBeenCalledTimes(2);
expect(telemetryLogHandler).toHaveBeenCalledTimes(2);
});
-});
\ No newline at end of file
+});
--- packages/allspark-foundation-hub/__tests__/HubFeature/Hub/Container/Components/TeamUpdateBottomSheet.test.tsx
@@ -1,13 +1,13 @@
import React from 'react';
import { act } from '@testing-library/react-native';
import { fireEvent, render } from '../../../../utils';
-import { TeamUpdateBottomSheet } from '../../../../../src/HubFeature/Store/Hub/Container/Components';
+import { TeamUpdateBottomSheet } from '../../../../../src/HubFeature/Store/Components';
import {
telemetryEventsHandler,
telemetryLogHandler,
-} from '../../../../../src/HubFeature/Store/Hub/Container/utils';
+} from '../../../../../src/HubFeature/Store/Common/utils';
-jest.mock('../../../../../src/HubFeature/Store/Hub/Container/utils', () => ({
+jest.mock('../../../../../src/HubFeature/Store/Common/utils', () => ({
telemetryEventsHandler: jest.fn(),
telemetryLogHandler: jest.fn(),
}));
--- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.0.1-beta.6",
+ "version": "1.0.1-beta.7",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
--- packages/allspark-foundation-hub/src/HubFeature/Store/index.tsx
@@ -1,3 +1,7 @@
export * from './Hub';
export * from './Components';
export * from './Onboarding';
+export * from './Common';
+export * from './Hooks';
+export * from './Redux';
+export * from './TeamSelection';
| Update tests | Update tests
|
9eb095da8a4a4cb36f5a957da3b8aa13a0d9970c | --- packages/allspark-authentication/src/auth.ts
@@ -18,4 +18,4 @@ const BaseAuthentication = {
export const Authentication = addProxyMethod(BaseAuthentication);
-export type IAuthentication = typeof Authentication;
+export type IAuthentication = typeof BaseAuthentication;
| chore: fix auth type | chore: fix auth type
|
19b527ce78ef1a21602b6dd97013b8c79c054b67 | --- package-lock.json
@@ -3609,9 +3609,9 @@
}
},
"@walmart/ui-components": {
- "version": "1.1.54",
- "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.54.tgz",
- "integrity": "sha512-aYCG5lAMnWiHcwFUh4noJB3uHh4HwSxXoTgyg8AMj6RPdRZuPs21zgTiO6JKPey5bXo8OrM5aG3ol/y96l0PAw==",
+ "version": "1.1.55",
+ "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.55.tgz",
+ "integrity": "sha512-qpr0KwY5t+CA08JSN4T6xXM2jbXMmGfi3GQCZEmbw0WAIiaKkqlOZWBIEfDCqmnViRaQa9W9q/1PpUoVcB6rGA==",
"requires": {
"react-native-calendars": "1.299.0"
}
@@ -7050,9 +7050,9 @@
"integrity": "sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA=="
},
"immutable": {
- "version": "4.0.0-rc.15",
- "resolved": "https://npme.walmart.com/immutable/-/immutable-4.0.0-rc.15.tgz",
- "integrity": "sha512-v8+A3sNyaieoP9dHegl3tEYnIZa7vqNiSv0U6D7YddiZi34VjKy4GsIxrRHj2d8+CS3MeiVja5QyNe4JO/aEXA=="
+ "version": "4.0.0-rc.12",
+ "resolved": "https://npme.walmart.com/immutable/-/immutable-4.0.0-rc.12.tgz",
+ "integrity": "sha512-0M2XxkZLx/mi3t8NVwIm1g8nHoEmM9p9UBl/G9k4+hm0kBgOVdMV/B3CY5dQ8qG8qc80NN4gDV4HQv6FTJ5q7A=="
},
"import-fresh": {
"version": "2.0.0",
--- package.json
@@ -89,7 +89,7 @@
"@walmart/settings-mini-app": "1.3.5",
"@walmart/shelfavailability-mini-app": "0.3.71",
"@walmart/time-clock-mini-app": "0.4.0",
- "@walmart/ui-components": "1.1.54",
+ "@walmart/ui-components": "1.1.55",
"@walmart/welcomeme-mini-app": "0.26.2",
"@walmart/wfm-ui": "^0.1.50",
"axios-cache-adapter": "2.7.3",
--- src/PinAccess/PinAccess.tsx
@@ -49,7 +49,7 @@ export const PinAccess: FC<StackScreenProps<any>> = (props) => {
const {top} = useSafeAreaInsets();
const [translate] = useTranslation();
const passcodeKey = useSelector(getPasscodeKey);
- const displayName = useSelector(UserSelectors.getOriginalUserName);
+ const displayName = useSelector(UserSelectors.getUserName);
const biometricButtonType = useSelector(getBiometricButtonType);
const [error, setError] = useState<boolean>(false);
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx
@@ -132,8 +132,8 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
[navigation],
);
- const nameInitials = useSelector(UserSelectors.getOriginalUserInitials);
- const displayName = useSelector(UserSelectors.getOriginalUserName);
+ const nameInitials = useSelector(UserSelectors.getUserInitials);
+ const displayName = useSelector(UserSelectors.getUserName);
return (
<SafeAreaView style={styles.globalNavContainer}>
| data saver widget translation fix, fixing user name in impersonation mode | data saver widget translation fix, fixing user name in impersonation mode
|
bae17d6a3fee0acc9b91bfda51702e94b703446b | --- package-lock.json
@@ -67,7 +67,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "1.0.1",
+ "@walmart/wmconnect-mini-app": "1.0.2",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
@@ -11853,9 +11853,9 @@
}
},
"node_modules/@walmart/wmconnect-mini-app": {
- "version": "1.0.1",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.1.tgz",
- "integrity": "sha512-dqFEnqUSqE/wwT84QJQ0wA1iHHAmZy2kFQRfZFzQanREGg2/qHBHgSibufTaY0PG4l+8nyqceHGrJxyR1ZHLBg==",
+ "version": "1.0.2",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.2.tgz",
+ "integrity": "sha512-rFFuePBB81pNbGz4ik1QrfJLw9M0m4dz9b9GD7webFa/aXCouJlI2dIwdn2b/65ukgfmAM42FWcNZc9dCLYw3A==",
"dev": true,
"hasInstallScript": true
},
@@ -41072,9 +41072,9 @@
}
},
"@walmart/wmconnect-mini-app": {
- "version": "1.0.1",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.1.tgz",
- "integrity": "sha512-dqFEnqUSqE/wwT84QJQ0wA1iHHAmZy2kFQRfZFzQanREGg2/qHBHgSibufTaY0PG4l+8nyqceHGrJxyR1ZHLBg==",
+ "version": "1.0.2",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.2.tgz",
+ "integrity": "sha512-rFFuePBB81pNbGz4ik1QrfJLw9M0m4dz9b9GD7webFa/aXCouJlI2dIwdn2b/65ukgfmAM42FWcNZc9dCLYw3A==",
"dev": true
},
"@whatwg-node/events": {
--- package.json
@@ -90,7 +90,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "1.0.1",
+ "@walmart/wmconnect-mini-app": "1.0.2",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
| Update wmconnect version | Update wmconnect version
|
429aa47166fcf6c3ed0092c0fa3cf664314cd5f5 | --- package-lock.json
@@ -37,7 +37,7 @@
"@terrylinla/react-native-sketch-canvas": "0.8.0",
"@walmart/allspark-graphql-client": "^1.4.5",
"@walmart/allspark-neon-core": "0.1.31",
- "@walmart/amp-mini-app": "1.1.51",
+ "@walmart/amp-mini-app": "1.1.52",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.13.4",
"@walmart/attendance-mini-app": "0.190.6",
@@ -59,7 +59,7 @@
"@walmart/gtp-shared-components": "2.0.10",
"@walmart/impersonation-mini-app": "1.20.5",
"@walmart/ims-print-services-ui": "2.5.1",
- "@walmart/inbox-mini-app": "0.88.0",
+ "@walmart/inbox-mini-app": "0.88.2",
"@walmart/iteminfo-mini-app": "7.4.0",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "13.0.3",
@@ -7895,9 +7895,9 @@
}
},
"node_modules/@walmart/amp-mini-app": {
- "version": "1.1.51",
- "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.51.tgz",
- "integrity": "sha512-w7eDTYbsdqaKZF5GKzMlZ0967TQ5h8LjxLavfd4JIv5jnLuTUqFWw0I6Jb9RiQgaCGTI4Dr1WgrRU115nRFrUQ==",
+ "version": "1.1.52",
+ "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.52.tgz",
+ "integrity": "sha512-Vc88NXoj7I7RrtI7kow4kDH8VKlyTLvPP0/hG0pPEwXpebX94Aavyo+TT1KK18c0WPiL3qmaayghv4UpbjZvkQ==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -8487,9 +8487,9 @@
}
},
"node_modules/@walmart/inbox-mini-app": {
- "version": "0.88.0",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.88.0.tgz",
- "integrity": "sha512-KVO/zjN8E8W3tyjqVIzNKZZMKIkCT2KCi5Ne0TcQ1lYGmCHPzBvSnnX6f392lNYa5XsX4CG0zMmqAbwM1HjErQ==",
+ "version": "0.88.2",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.88.2.tgz",
+ "integrity": "sha512-MnVZ3ykoWfI0tZbpJxtPq5cRca8cznbDyMXv+03yHhNVxVdjTsy6uO0jiEZPo8Sl4BU3K33dU6Q5bQMhB/Bzvg==",
"dependencies": {
"@walmart/moment-walmart": "^1.0.4",
"@walmart/walmart-fiscal-week": "^0.3.6"
@@ -33448,9 +33448,9 @@
}
},
"@walmart/amp-mini-app": {
- "version": "1.1.51",
- "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.51.tgz",
- "integrity": "sha512-w7eDTYbsdqaKZF5GKzMlZ0967TQ5h8LjxLavfd4JIv5jnLuTUqFWw0I6Jb9RiQgaCGTI4Dr1WgrRU115nRFrUQ=="
+ "version": "1.1.52",
+ "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.52.tgz",
+ "integrity": "sha512-Vc88NXoj7I7RrtI7kow4kDH8VKlyTLvPP0/hG0pPEwXpebX94Aavyo+TT1KK18c0WPiL3qmaayghv4UpbjZvkQ=="
},
"@walmart/ask-sam-chat-components": {
"version": "0.2.13",
@@ -33662,9 +33662,9 @@
"integrity": "sha512-od8axStfj5GPLFu05HRXBlh4g+kssKIrpuIc+MpsN/oigmLFwvrnJiXr0KMYtgFzN8zmro3J4rbc27In6D1R+w=="
},
"@walmart/inbox-mini-app": {
- "version": "0.88.0",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.88.0.tgz",
- "integrity": "sha512-KVO/zjN8E8W3tyjqVIzNKZZMKIkCT2KCi5Ne0TcQ1lYGmCHPzBvSnnX6f392lNYa5XsX4CG0zMmqAbwM1HjErQ==",
+ "version": "0.88.2",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.88.2.tgz",
+ "integrity": "sha512-MnVZ3ykoWfI0tZbpJxtPq5cRca8cznbDyMXv+03yHhNVxVdjTsy6uO0jiEZPo8Sl4BU3K33dU6Q5bQMhB/Bzvg==",
"requires": {
"@walmart/moment-walmart": "1.0.4",
"@walmart/walmart-fiscal-week": "^0.3.6"
--- package.json
@@ -78,7 +78,7 @@
"@terrylinla/react-native-sketch-canvas": "0.8.0",
"@walmart/allspark-graphql-client": "^1.4.5",
"@walmart/allspark-neon-core": "0.1.31",
- "@walmart/amp-mini-app": "1.1.51",
+ "@walmart/amp-mini-app": "1.1.52",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.13.4",
"@walmart/attendance-mini-app": "0.190.6",
@@ -100,7 +100,7 @@
"@walmart/gtp-shared-components": "2.0.10",
"@walmart/impersonation-mini-app": "1.20.5",
"@walmart/ims-print-services-ui": "2.5.1",
- "@walmart/inbox-mini-app": "0.88.0",
+ "@walmart/inbox-mini-app": "0.88.2",
"@walmart/iteminfo-mini-app": "7.4.0",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "13.0.3",
| Platform components updgrade | Platform components updgrade
|
468f25ab41e025f79bfd0e8ba86328ca9aac0cdf | --- packages/allspark-foundation/src/Components/ComponentContainers.tsx
@@ -322,9 +322,7 @@ class ComponentContainerManager<ParamList extends Record<string, any>> {
* <AllsparkComponentContainers.Container container="MyContainer" {...props} />
*/
public List = <K extends keyof ParamList>(
- props: { container: K } & {
- props: ParamList[K];
- } & ComponentContainerListConfig
+ props: { container: K; props: ParamList[K] } & ComponentContainerListConfig
) => {
const { container, props: componentProps = {} } = props;
const Container = this._containers[container];
@@ -340,9 +338,11 @@ class ComponentContainerManager<ParamList extends Record<string, any>> {
* @example
* <AllsparkComponentContainers.Component container="MyContainer" id="component1" {...props} />
*/
- public Component = <K extends keyof ParamList>(
- props: { container: K; id: string } & { props: ParamList[K] }
- ) => {
+ public Component = <K extends keyof ParamList>(props: {
+ container: K;
+ id: string;
+ props: ParamList[K];
+ }) => {
const { container, id, props: componentProps = {} } = props;
const Container = this._containers[container];
--- packages/allspark-foundation/src/Components/DynamicComponents.tsx
@@ -273,11 +273,11 @@ export class DynamicComponent<Props = {}, ID extends string = string> {
* <MyComponentManager.Template component="MyComponent" value="Hello World" />
*/
class DynamicComponentManager<
- ParmList extends Record<string, any>,
- RecordList extends Record<keyof ParmList, string> = any,
+ ParamList extends Record<string, any>,
+ RecordList extends Record<keyof ParamList, string>,
> {
private _components = {} as {
- [K in keyof ParmList]: DynamicComponent<ParmList[K], RecordList[K]>;
+ [K in keyof ParamList]: DynamicComponent<ParamList[K], RecordList[K]>;
};
/**
@@ -323,7 +323,7 @@ class DynamicComponentManager<
* @example
* <AllsparkDynamicComponents.Record component="MyComponent" record="element-1" />
*/
- public Record = <K extends keyof ParmList>(props: {
+ public Record = <K extends keyof ParamList>(props: {
component: K;
id: RecordList[K];
}) => {
@@ -340,7 +340,7 @@ class DynamicComponentManager<
* @example
* <AllsparkDynamicComponents.List component="MyComponent" limit={3} method="lifo" />
*/
- public List = <K extends keyof ParmList>(
+ public List = <K extends keyof ParamList>(
props: { component: K } & ListProps
) => {
const { component, ...rest } = props;
@@ -355,9 +355,10 @@ class DynamicComponentManager<
* @example
* <AllsparkDynamicComponents.Template component="MyComponent" value="Hello World" />
*/
- public Template = <K extends keyof ParmList>(
- props: { component: K } & { props: ParmList[K] }
- ) => {
+ public Template = <K extends keyof ParamList>(props: {
+ component: K;
+ props: ParamList[K];
+ }) => {
const { component, props: componentProps } = props;
const Component = this._components[component];
// @ts-ignore
@@ -378,10 +379,10 @@ class DynamicComponentManager<
* // Update element-1
* Record1.update({ value: 'Hello World' });
*/
- public getRecord = <K extends keyof ParmList>(
+ public getRecord = <K extends keyof ParamList>(
component: K,
id: RecordList[K],
- initial: ParmList[K]
+ initial: ParamList[K]
) => this._components[component].getRecord(id, initial);
/**
@@ -393,10 +394,10 @@ class DynamicComponentManager<
* // Add record to MyComponent.
* AllsparkDynamicComponents.add('MyComponent', 'record-1', { value: 'Hello World' })
*/
- public add = <K extends keyof ParmList>(
+ public add = <K extends keyof ParamList>(
component: K,
id: RecordList[K],
- props: ParmList[K]
+ props: ParamList[K]
) => {
this._components[component]?.add(id, props);
};
@@ -410,10 +411,10 @@ class DynamicComponentManager<
* // Update record on MyComponent.
* AllsparkDynamicComponents.update('MyComponent', 'record-1', { value: 'Hello World 2' })
*/
- public update = <K extends keyof ParmList>(
+ public update = <K extends keyof ParamList>(
component: K,
id: RecordList[K],
- props: ParmList[K]
+ props: ParamList[K]
) => {
this._components[component]?.update(id, props);
};
@@ -426,7 +427,7 @@ class DynamicComponentManager<
* // Remove element-1 record from MyElement.
* AllsparkDynamicComponents.remove('MyElement', 'element-1')
*/
- public remove = <K extends keyof ParmList>(
+ public remove = <K extends keyof ParamList>(
component: K,
id: RecordList[K]
) => {
--- packages/allspark-foundation/src/Components/SharedComponents.tsx
@@ -1,9 +1,9 @@
import React, { FC, useMemo } from 'react';
import { EventManager, useRenderOnChange } from '@walmart/allspark-utils';
-class SharedComponentManager<ParmList extends Record<string, any>> {
+class SharedComponentManager<ParamList extends Record<string, any>> {
private _components = {} as {
- [K in keyof ParmList]: FC<ParmList[K]>;
+ [K in keyof ParamList]: FC<ParamList[K]>;
};
private _eventManager = new EventManager<{
componentAdded: string;
@@ -38,9 +38,10 @@ class SharedComponentManager<ParmList extends Record<string, any>> {
* @example
* <AllsparkDynamicComponents.Template component="MyComponent" value="Hello World" />
*/
- public Component = <K extends keyof ParmList>(
- props: { id: K } & { props: ParmList[K] }
- ) => {
+ public Component = <K extends keyof ParamList>(props: {
+ id: K;
+ props: ParamList[K];
+ }) => {
const { id, props: componentProps = {} } = props;
const Component = this._components[id];
--- packages/allspark-foundation/src/Core/types.ts
@@ -2,15 +2,15 @@ import { BaseAllsparkEnvironment } from '../Environment';
import { BaseModalParams } from '../Navigation/modals';
export type ParamListBase = {
- [x: string & {}]: object | undefined;
+ [key: string & {}]: object | undefined;
};
export type ComponentPropListBase = {
- [x: string & {}]: any;
+ [key: string & {}]: any;
};
export type ComponentRecordListBase = {
- [x: string & {}]: string;
+ [key: string & {}]: string;
};
declare global {
| chore: fix type spelling error and removing unnecessary intersection types | chore: fix type spelling error and removing unnecessary intersection types
|
e4822631ef64533fea5f21c41b4056a2d194dc8d | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.12.1-alpha.7",
+ "version": "2.12.1-alpha.8",
"main": "dist/index.js",
"files": [
"dist"
@@ -104,7 +104,7 @@
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "6.1.4",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "2.8.0-alpha.7",
+ "@walmart/wmconnect-mini-app": "2.8.0-alpha.8",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
--- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx
@@ -430,7 +430,7 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
{!dataLoading && (
<AllsparkSharedComponents.Component
id='wmConnect.GroupMessageButton'
- props={{teamIds: selectedTeamIds}}
+ props={{teamIds: teamState.teamIds}}
/>
)}
</>
--- yarn.lock
@@ -2843,9 +2843,9 @@ __metadata:
languageName: node
linkType: hard
-"@graphql-tools/delegate@npm:^10.1.0":
- version: 10.1.0
- resolution: "@graphql-tools/delegate@npm:10.1.0"
+"@graphql-tools/delegate@npm:^10.1.1":
+ version: 10.1.1
+ resolution: "@graphql-tools/delegate@npm:10.1.1"
dependencies:
"@graphql-tools/batch-execute": "npm:^9.0.5"
"@graphql-tools/executor": "npm:^1.3.2"
@@ -2857,7 +2857,7 @@ __metadata:
tslib: "npm:^2.5.0"
peerDependencies:
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
- checksum: 10c0/dbacea822d6947ed6c32bedc2d2e814200d8d94239617db1f7efb83b612286156e37b255127595d6d762744a6bd9b4ae549e210f5070eb974ad8aa1d1e24bd87
+ checksum: 10c0/98ad9219ba84f7914133f711a1cfcb692bd13b6e3feebaa1c71b4b861b4f6ea6f8d235710468ec5b8cdf8c2c5a649c95912e8080dca1e0c26d77ded50328f76f
languageName: node
linkType: hard
@@ -3304,10 +3304,10 @@ __metadata:
linkType: hard
"@graphql-tools/prisma-loader@npm:^8.0.0":
- version: 8.0.14
- resolution: "@graphql-tools/prisma-loader@npm:8.0.14"
+ version: 8.0.15
+ resolution: "@graphql-tools/prisma-loader@npm:8.0.15"
dependencies:
- "@graphql-tools/url-loader": "npm:^8.0.12"
+ "@graphql-tools/url-loader": "npm:^8.0.13"
"@graphql-tools/utils": "npm:^10.5.5"
"@types/js-yaml": "npm:^4.0.0"
"@whatwg-node/fetch": "npm:^0.9.0"
@@ -3325,7 +3325,7 @@ __metadata:
yaml-ast-parser: "npm:^0.0.43"
peerDependencies:
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
- checksum: 10c0/f07398aa30883d9bb19523f2f5babc879d3b0b7429cf099515f07b601b54075017b080441cc3ab2bfa5350814351da60a3ffcab0a7e9e64ee9b4de6fa93fc441
+ checksum: 10c0/fc98651360be6d4d1b7eb8dd33da540a081e8f8fe63676b45f137ae985513fb67f2dcf960c08e6b09f207d4f89fc0bf10b75d22ef48f8667190c08972c5442e1
languageName: node
linkType: hard
@@ -3406,16 +3406,16 @@ __metadata:
languageName: node
linkType: hard
-"@graphql-tools/url-loader@npm:^8.0.0, @graphql-tools/url-loader@npm:^8.0.12":
- version: 8.0.12
- resolution: "@graphql-tools/url-loader@npm:8.0.12"
+"@graphql-tools/url-loader@npm:^8.0.0, @graphql-tools/url-loader@npm:^8.0.13":
+ version: 8.0.13
+ resolution: "@graphql-tools/url-loader@npm:8.0.13"
dependencies:
"@ardatan/sync-fetch": "npm:^0.0.1"
"@graphql-tools/executor-graphql-ws": "npm:^1.3.1"
"@graphql-tools/executor-http": "npm:^1.1.7"
"@graphql-tools/executor-legacy-ws": "npm:^1.1.1"
"@graphql-tools/utils": "npm:^10.5.5"
- "@graphql-tools/wrap": "npm:^10.0.14"
+ "@graphql-tools/wrap": "npm:^10.0.15"
"@types/ws": "npm:^8.0.0"
"@whatwg-node/fetch": "npm:^0.9.0"
isomorphic-ws: "npm:^5.0.0"
@@ -3424,7 +3424,7 @@ __metadata:
ws: "npm:^8.17.1"
peerDependencies:
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
- checksum: 10c0/e2d32819c25755188423cba6d1f905c3443416b3e99b792272de3252f3c1b867c1a92e9ce92c35e52c3595b2b72ccef33f8b45e5c84c97953ee2a00e80b7469d
+ checksum: 10c0/79fa0c1940a9761e15ea9197cdc9364cb556d01de21f3528af0f273c83cb3776bb3cbf3ca9b686357357326fdf55530d104c986760bfe5ac2c6f291906c19571
languageName: node
linkType: hard
@@ -3465,18 +3465,18 @@ __metadata:
languageName: node
linkType: hard
-"@graphql-tools/wrap@npm:^10.0.14":
- version: 10.0.14
- resolution: "@graphql-tools/wrap@npm:10.0.14"
+"@graphql-tools/wrap@npm:^10.0.15":
+ version: 10.0.15
+ resolution: "@graphql-tools/wrap@npm:10.0.15"
dependencies:
- "@graphql-tools/delegate": "npm:^10.1.0"
+ "@graphql-tools/delegate": "npm:^10.1.1"
"@graphql-tools/schema": "npm:^10.0.7"
"@graphql-tools/utils": "npm:^10.5.5"
tslib: "npm:^2.4.0"
value-or-promise: "npm:^1.0.12"
peerDependencies:
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
- checksum: 10c0/9517a05d04d4f92aa4ff2276438e79ccba7c8b26d3854ae5fddbfc9fab956cc509c29a1512e1f6e5c298ab59a508475455eeb7fe314897f3411f2f06d40616ce
+ checksum: 10c0/d478ea6a2967c14772bbe9fe7521e32bc2d6d21d2d26f5fcd89850b54a71054e342f89c99ea8d4207b6aa36eb77240073f52da03812b40117773a65fa11e93cc
languageName: node
linkType: hard
@@ -6397,7 +6397,7 @@ __metadata:
"@walmart/react-native-sumo-sdk": "npm:2.6.0"
"@walmart/redux-store": "npm:6.1.4"
"@walmart/ui-components": "npm:1.15.1"
- "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.7"
+ "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.8"
babel-jest: "npm:^29.2.1"
chance: "npm:^1.1.11"
eslint: "npm:8.22.0"
@@ -6530,9 +6530,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:2.8.0-alpha.7":
- version: 2.8.0-alpha.7
- resolution: "@walmart/wmconnect-mini-app@npm:2.8.0-alpha.7"
+"@walmart/wmconnect-mini-app@npm:2.8.0-alpha.8":
+ version: 2.8.0-alpha.8
+ resolution: "@walmart/wmconnect-mini-app@npm:2.8.0-alpha.8"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6572,7 +6572,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/530606ff52c3557a3832e1074719d1fc07e78f5f5991f49d3809fa2462e438a69f83ffc48c0a4a5b0cbff0411e42c5b3adf6d417014e1a0bc67ba3482e3c1b7d
+ checksum: 10c0/aeb98b0068ffcc75ad154093fb88a88ca524569c5aff2f3687b09f1f8aa34f2d7faffadddc9d6fc5bd7eecb5f135a29958b17cd6b2bcc66284ba47e775b29206
languageName: node
linkType: hard
@@ -12658,11 +12658,11 @@ __metadata:
linkType: hard
"jiti@npm:^2.0.0":
- version: 2.3.3
- resolution: "jiti@npm:2.3.3"
+ version: 2.4.0
+ resolution: "jiti@npm:2.4.0"
bin:
jiti: lib/jiti-cli.mjs
- checksum: 10c0/d71e40fb3c359cddafa2a6a03aea7e5e3a571aedeb5bec7627d5bc67c1e66c6275be5c03b4e0b10cd22cde9d39c892f27f6598a4e63bde030b607efc5051fd7f
+ checksum: 10c0/f97365a83169e0544b0a6e7f415f1ee69ca9c0bdd55e336035490b4b7a6ff99b63b9df89c70babfc49e924247dfbdc730f9eb0c5ed4771d3db989ac70e49bf18
languageName: node
linkType: hard
| Update roster mini app version | Update roster mini app version
|
56f82fd2795aac0ae31bd22bc71b669481bceece | --- __tests__/navigation/AssociateHallwayNav/__snapshots__/SideMenuContentTest.tsx.snap
@@ -110,7 +110,7 @@ exports[`SideMenuContent matches snapshot with user/clockstatus data 1`] = `
developersText="impersonation.developers"
deviceType="PERSONAL"
displayName="Sam Walton"
- enableDevelopersOption={true}
+ enableDevelopersOption={false}
enablePttAlert={0}
enableTaskItAlert={true}
enableTimeClock={true}
| chore: snapshot update | chore: snapshot update
|
df7210ea32bccf60413daeb3d7052325885c002f | --- __tests__/hooks/userFilterCounts.test.ts
@@ -0,0 +1,63 @@
+import {renderHook} from '@testing-library/react-hooks';
+import {useFilterCounts} from '../../src/hooks/useFilterCounts';
+import {FilterValue} from '../../src/containers/RosterFilters';
+import {Associate} from '../../src/types';
+import * as userUtils from '../../src/utils/user';
+
+jest.mock('../../src/utils/user');
+
+describe('useFilterCounts', () => {
+ it('should correctly calculate associate status counts', () => {
+ const associates = [
+ {
+ status: 'clockedIn',
+ absentData: {absenceTypeCode: 0},
+ punch: {clockStatus: '1'},
+ },
+ {
+ status: 'absent',
+ absentData: {absenceTypeCode: 1},
+ punch: {clockStatus: '0'},
+ },
+ {
+ status: 'tardy',
+ absentData: {absenceTypeCode: 0},
+ punch: {clockStatus: '0'},
+ },
+ {
+ status: 'clockedIn',
+ absentData: {absenceTypeCode: 0},
+ punch: {clockStatus: '1'},
+ },
+ ] as Associate[];
+
+ (userUtils.associateIsClockedIn as jest.Mock).mockImplementation(
+ (associate) => associate.status === 'clockedIn',
+ );
+ (userUtils.associateIsAbsent as jest.Mock).mockImplementation(
+ (associate) => associate.status === 'absent',
+ );
+ (userUtils.associateIsTardy as jest.Mock).mockImplementation(
+ (associate) => associate.status === 'tardy',
+ );
+
+ const {result} = renderHook(() => useFilterCounts(associates));
+
+ expect(result.current).toEqual({
+ [FilterValue.all]: 4,
+ [FilterValue.absent]: 1,
+ [FilterValue.tardy]: 1,
+ [FilterValue.clockedIn]: 2,
+ });
+ });
+ it('should return all zeros when there are no associates', () => {
+ const {result} = renderHook(() => useFilterCounts([]));
+
+ expect(result.current).toEqual({
+ [FilterValue.all]: 0,
+ [FilterValue.absent]: 0,
+ [FilterValue.tardy]: 0,
+ [FilterValue.clockedIn]: 0,
+ });
+ });
+});
| Adding test coverage for userFilterCounts | Adding test coverage for userFilterCounts
|
c201d9ca0246e3b246b82384e85ededa90c7d9d0 | --- __tests__/redux/selectors.test.ts
@@ -75,17 +75,6 @@ describe('Selectors', () => {
expect(getRmaPath).toStrictEqual('/texting/weekly_schedule_link');
});
- it('pushToTalkEnabled selector fallback case', () => {
- const pushToTalkEnabled = selectors.pushToTalkEnabled(
- setNestedValue(
- appConfigData,
- 'appConfig.data.roster.pushToTalkEnabled',
- null,
- ),
- );
- expect(pushToTalkEnabled).toStrictEqual(false);
- });
-
it('messageButtonEnabled selector', () => {
const messageButtonEnabled = selectors.messageButtonEnabled(appConfigData);
expect(messageButtonEnabled).toStrictEqual(true);
| feat: fixed broken test | feat: fixed broken test
|
e4541670abb3894232477fc99aae7b58ee42a5fd | --- package-lock.json
@@ -4480,9 +4480,9 @@
"integrity": "sha512-vL0+hmLX3mP3jXomwGL+kxp2aRLe002I+b+LL+wVbmOdRdXBvA7gbA5VJeRFkvaUQfU2SlRVLYJwv34HT9I8jw=="
},
"@walmart/shelfavailability-mini-app": {
- "version": "0.8.3",
- "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.8.3.tgz",
- "integrity": "sha512-cDVdKZBc7WVwPpNNo2hhl3VuWGdXhPZA8MRp0fhpTx7Ef7qghuB59AIK9cdb+ZudoQJZ7an/q0v1JYiGMgKXsA==",
+ "version": "0.8.7",
+ "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.8.7.tgz",
+ "integrity": "sha512-da4JIpNEniDwQg3iRcQGzXO+Ex2GvFzS5yCh3jBMib7GZaR3m1xHdzl1Qb55AudsvMa/6Fq3sBfcpz8lz4SZRw==",
"requires": {
"@types/uuid": "^8.3.0",
"@types/xdate": "^0.8.31",
@@ -4508,9 +4508,9 @@
}
},
"follow-redirects": {
- "version": "1.14.9",
- "resolved": "https://npme.walmart.com/follow-redirects/-/follow-redirects-1.14.9.tgz",
- "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w=="
+ "version": "1.15.1",
+ "resolved": "https://npme.walmart.com/follow-redirects/-/follow-redirects-1.15.1.tgz",
+ "integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA=="
}
}
},
--- package.json
@@ -77,7 +77,7 @@
"@walmart/ask-sam-mini-app": "0.41.5",
"@walmart/config-components": "3.0.2",
"@walmart/counts-component-miniapp": "0.0.34",
- "@walmart/exception-mini-app": "0.40.4",
+ "@walmart/exception-mini-app": "0.40.3",
"@walmart/feedback-all-spark-miniapp": "0.3.4",
"@walmart/functional-components": "1.0.34",
"@walmart/gta-react-native-calendars": "0.0.15",
@@ -100,7 +100,7 @@
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
"@walmart/schedule-mini-app": "0.13.0",
"@walmart/settings-mini-app": "1.6.0",
- "@walmart/shelfavailability-mini-app": "0.8.3",
+ "@walmart/shelfavailability-mini-app": "0.8.7",
"@walmart/taskit-mini-app": "0.19.0",
"@walmart/time-clock-mini-app": "0.5.1",
"@walmart/ui-components": "1.4.0-rc.0",
| bump shelfavailability to 0.8.7 | bump shelfavailability to 0.8.7
|
cc595b22d1a5ab143e9c9c672ee8eb9333281bf5 | --- __tests__/redux/CreateRestarableSagasTest.ts
@@ -1,7 +1,11 @@
-import {takeEvery, takeLatest} from 'redux-saga/effects';
-import {createRestartableSagas} from '../../src/redux/CreateRestartableSagas';
+import {call, takeEvery, takeLatest} from 'redux-saga/effects';
+import {
+ createRestartableSagas,
+ SAGA_ERROR_STRING,
+} from '../../src/redux/CreateRestartableSagas';
+import {logger} from '../../src/services/Logger';
-jest.mock('../../src/core/loggerInit', () => ({
+jest.mock('../../src/services/Logger', () => ({
logger: {
error: jest.fn(),
},
@@ -9,6 +13,7 @@ jest.mock('../../src/core/loggerInit', () => ({
const testActionSaga = jest.fn();
const otherActionSaga = jest.fn();
+const localFailureMessage = 'Oh no!!';
const detachedSpawnSaga = {
'@@redux-saga/IO': true,
@@ -37,12 +42,23 @@ describe('createRestartableSagas', () => {
expect(OtherActionSpawn).toEqual(detachedSpawnSaga);
});
- it('calls expected test action on success', () => {
+ it('calls expected test action on success & failure', () => {
const TestActionSpawnIterator = TestActionSpawn.payload.fn();
+ TestActionSpawnIterator.next();
+
+ // Fail it first
+ expect(
+ TestActionSpawnIterator.throw(new Error(localFailureMessage)).value,
+ ).toEqual(
+ call(logger.error, SAGA_ERROR_STRING, {message: localFailureMessage}),
+ );
+
+ // Restart the saga
const NextIteratorValue = TestActionSpawnIterator.next().value;
const TestActionIterator = NextIteratorValue.payload.fn();
expect(TestActionIterator.next().value).toEqual(
takeEvery('TEST_ACTION', testActionSaga),
);
+ expect(TestActionSpawnIterator.next().done).toEqual(true);
});
});
--- __tests__/redux/SharedSelectorsTest.ts
@@ -24,6 +24,7 @@ import {
getDeviceType,
getIsClockedIn,
getIsClockedOut,
+ getSettingsAppConfig,
} from '../../src/redux/SharedSelectors';
const appConfigState = {
@@ -33,6 +34,9 @@ const appConfigState = {
core: {
coreKey: 'coreValue',
},
+ settings: {
+ settingsKey: 'settingsValue',
+ },
},
};
@@ -360,4 +364,16 @@ describe('shared selelctors', () => {
expect(clockedOut).toEqual(true);
});
});
+
+ describe('getSettingsAppConfig', () => {
+ test('returns expected value', () => {
+ const settingsAppConfig = getSettingsAppConfig(appState);
+ expect(settingsAppConfig).toEqual({settingsKey: 'settingsValue'});
+ });
+
+ test('handle undefined state', () => {
+ const settingsAppConfig = getSettingsAppConfig(nullAppConfigData);
+ expect(settingsAppConfig).not.toBeDefined();
+ });
+ });
});
--- package.json
@@ -222,10 +222,10 @@
"testResultsProcessor": "jest-sonar-reporter",
"coverageThreshold": {
"global": {
- "statements": 95,
- "branches": 96,
- "functions": 95,
- "lines": 95
+ "statements": 100,
+ "branches": 100,
+ "functions": 100,
+ "lines": 100
}
},
"transformIgnorePatterns": [
--- src/redux/CreateRestartableSagas.ts
@@ -1,6 +1,8 @@
import {call, Effect, spawn} from 'redux-saga/effects';
import {logger} from '../services/Logger';
+export const SAGA_ERROR_STRING = 'Caught exception in saga';
+
export const createRestartableSaga = (saga: Effect) => {
return spawn(function* () {
while (true) {
@@ -10,7 +12,7 @@ export const createRestartableSaga = (saga: Effect) => {
});
break;
} catch (e) {
- yield call(logger.error, 'Caught exception in saga', {
+ yield call(logger.error, SAGA_ERROR_STRING, {
message: e.message,
});
}
| more tests | more tests
|
f3deee65dd07c62517bf5aebe8d54b71e79b673b | --- .yarn/patches/@walmart-translator-mini-app-npm-1.7.17-ff0dbf51a0.patch
@@ -1,13 +0,0 @@
-diff --git a/dist/common/environment.js b/dist/common/environment.js
-index 82a9b6c8d81080d383551ad258ff993495f09b06..7e8ad5360faf2d2c82f5bd827ae1766c44e82fd8 100644
---- a/dist/common/environment.js
-+++ b/dist/common/environment.js
-@@ -2,7 +2,7 @@
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.useTranslatorEnvironment = exports.getTranslatorEnvironment = exports.TranslatorEnvironment = void 0;
- const Environment_1 = require("@walmart/allspark-foundation/Environment");
--const client_1 = require("@walmart/allspark-foundation/Environment/client");
-+const client_1 = require("@walmart/allspark-foundation/Environment");
- const getContainerCcm_1 = require("./utils/getContainerCcm");
- const Environment_2 = require("@walmart/allspark-foundation/Environment");
- const constants_1 = require("../common/constants");
--- package.json
@@ -175,7 +175,7 @@
"@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.10#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.10-d3039974f6.patch",
"@walmart/timesheet-feature-app": "0.2.0-beta.10",
"@walmart/topstock-mini-app": "1.28.12",
- "@walmart/translator-mini-app": "patch:@walmart/translator-mini-app@npm%3A1.7.17#~/.yarn/patches/@walmart-translator-mini-app-npm-1.7.17-ff0dbf51a0.patch",
+ "@walmart/translator-mini-app": "1.8.12",
"@walmart/ui-components": "1.27.0",
"@walmart/walmart-fiscal-week": "^0.3.6",
"@walmart/welcomeme-mini-app": "^1.0.15",
--- yarn.lock
@@ -8593,7 +8593,7 @@ __metadata:
"@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.10#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.10-d3039974f6.patch"
"@walmart/timesheet-feature-app": "npm:0.2.0-beta.10"
"@walmart/topstock-mini-app": "npm:1.28.12"
- "@walmart/translator-mini-app": "patch:@walmart/translator-mini-app@npm%3A1.7.17#~/.yarn/patches/@walmart-translator-mini-app-npm-1.7.17-ff0dbf51a0.patch"
+ "@walmart/translator-mini-app": "npm:1.8.12"
"@walmart/ui-components": "npm:1.27.0"
"@walmart/walmart-fiscal-week": "npm:^0.3.6"
"@walmart/welcomeme-mini-app": "npm:^1.0.15"
@@ -9724,35 +9724,14 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/translator-mini-app@npm:1.7.17":
- version: 1.7.17
- resolution: "@walmart/translator-mini-app@npm:1.7.17::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftranslator-mini-app%2F-%2F%40walmart%2Ftranslator-mini-app-1.7.17.tgz"
- peerDependencies:
- expo: "*"
- expo-asset: "*"
- expo-av: "*"
- expo-file-system: "*"
- expo-font: "*"
- expo-image: "*"
- expo-linking: "*"
- expo-modules-core: "*"
- expo-splash-screen: "*"
- expo-status-bar: "*"
- react: "*"
- react-native: "*"
- react-native-audio-api: "*"
- socket.io-client: "*"
- checksum: 10c0/37b142474a6b57d95da092e92c4587da46cf67f60c42e47e11446ae1d0c79ce5ee7151e3e7bd06eabdbf3e0909548812cf944e61e0b20da88a30ac136bb5220b
- languageName: node
- linkType: hard
-
-"@walmart/translator-mini-app@patch:@walmart/translator-mini-app@npm%3A1.7.17#~/.yarn/patches/@walmart-translator-mini-app-npm-1.7.17-ff0dbf51a0.patch":
- version: 1.7.17
- resolution: "@walmart/translator-mini-app@patch:@walmart/translator-mini-app@npm%3A1.7.17%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Ftranslator-mini-app%252F-%252F%2540walmart%252Ftranslator-mini-app-1.7.17.tgz#~/.yarn/patches/@walmart-translator-mini-app-npm-1.7.17-ff0dbf51a0.patch::version=1.7.17&hash=491cd3"
+"@walmart/translator-mini-app@npm:1.8.12":
+ version: 1.8.12
+ resolution: "@walmart/translator-mini-app@npm:1.8.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftranslator-mini-app%2F-%2F%40walmart%2Ftranslator-mini-app-1.8.12.tgz"
peerDependencies:
+ "@walmart/gtp-shared-components-3": "*"
expo: "*"
expo-asset: "*"
- expo-av: "*"
+ expo-audio: "*"
expo-file-system: "*"
expo-font: "*"
expo-image: "*"
@@ -9764,7 +9743,7 @@ __metadata:
react-native: "*"
react-native-audio-api: "*"
socket.io-client: "*"
- checksum: 10c0/7628e4f09a5a7cbbd5a58a8ee3f67934089cb38e6afa1107206d4a8aeff390228615b98417e942616ae04550aec7d6cbcb1c355d55f5799e5a4ce4a6ab83230e
+ checksum: 10c0/df9fa399fe8b3273e1a9b644c647ffc08a5fe4bc5cb4497e4c26cfffee06cc3f2ad6b41338ffae67eb12306bb5585e9ccb9f6845afea20c4f2753d47739cfd82
languageName: node
linkType: hard
| feat(version upgrade for expo and rn): version upgrade for expo and rn (#4940) | feat(version upgrade for expo and rn): version upgrade for expo and rn (#4940)
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com> |
8590e563c6576588ac15f7163f074f82a753a6e2 | --- package.json
@@ -138,7 +138,7 @@
"@walmart/react-native-webex-sdk": "0.2.11",
"@walmart/receipt-check-miniapp": "1.22.11",
"@walmart/redux-store": "6.1.4",
- "@walmart/returns-mini-app": "4.11.0",
+ "@walmart/returns-mini-app": "4.12.0",
"@walmart/rfid-scan-mini-app": "2.3.16",
"@walmart/roster-mini-app": "2.4.0",
"@walmart/schedule-mini-app": "0.114.2",
--- yarn.lock
@@ -6952,9 +6952,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/returns-mini-app@npm:4.11.0":
- version: 4.11.0
- resolution: "@walmart/returns-mini-app@npm:4.11.0"
+"@walmart/returns-mini-app@npm:4.12.0":
+ version: 4.12.0
+ resolution: "@walmart/returns-mini-app@npm:4.12.0"
dependencies:
"@walmart/common-utilities-js": "npm:^1.2.10"
"@walmart/virtual-zpl-printer-model": "npm:^0.2.11"
@@ -6982,7 +6982,7 @@ __metadata:
react-native-mask-input: ^1.2.3
react-redux: "*"
redux: "*"
- checksum: 10c0/21a9b6b90ddb1e48328b32610de5e653686fd0a3bdfb8458f05666d432a603a94b5aee9382df1d8affeac275f0eede93bc5f6b92bf562bd1b10b7acc1bdaaa1c
+ checksum: 10c0/978049e4fd709f5ed55d42463493b22868b0eff402a985d32191177c8f91b4f1b13a8bd848a86b53d106332241c586454a1e371cb2b043020d1d596b04c6f92f
languageName: node
linkType: hard
@@ -7857,7 +7857,7 @@ __metadata:
"@walmart/react-native-webex-sdk": "npm:0.2.11"
"@walmart/receipt-check-miniapp": "npm:1.22.11"
"@walmart/redux-store": "npm:6.1.4"
- "@walmart/returns-mini-app": "npm:4.11.0"
+ "@walmart/returns-mini-app": "npm:4.12.0"
"@walmart/rfid-scan-mini-app": "npm:2.3.16"
"@walmart/roster-mini-app": "npm:2.4.0"
"@walmart/schedule-mini-app": "npm:0.114.2"
| Reverted QR code changes | Reverted QR code changes
|
6461c23265b5438788d3fbbfb871a0ee8b7e9c15 | --- package-lock.json
@@ -64,7 +64,7 @@
"@walmart/learning-mini-app": "17.0.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.17.9",
- "@walmart/mod-flex-mini-app": "1.13.6",
+ "@walmart/mod-flex-mini-app": "1.13.7",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.12",
"@walmart/onewalmart-miniapp": "1.0.16",
@@ -9250,9 +9250,9 @@
}
},
"node_modules/@walmart/mod-flex-mini-app": {
- "version": "1.13.6",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.6.tgz",
- "integrity": "sha512-9NnvbXebvPD5xxCbAW0DI2skwGxKgqn1g1e/tDv+wRLhl+TNQDCg+era9Fs1hYxLcPnctWtZdNKSp6B0cdQODQ==",
+ "version": "1.13.7",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.7.tgz",
+ "integrity": "sha512-SQWSQCXyany6Vmws6lApYW9NO/DRPl+kYtltPxmqv7GBYIRCcceEZR9b5dybURXsP2KRZb0AzrnDUiokhPhSrg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.19.0",
@@ -33370,9 +33370,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.13.6",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.6.tgz",
- "integrity": "sha512-9NnvbXebvPD5xxCbAW0DI2skwGxKgqn1g1e/tDv+wRLhl+TNQDCg+era9Fs1hYxLcPnctWtZdNKSp6B0cdQODQ=="
+ "version": "1.13.7",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.7.tgz",
+ "integrity": "sha512-SQWSQCXyany6Vmws6lApYW9NO/DRPl+kYtltPxmqv7GBYIRCcceEZR9b5dybURXsP2KRZb0AzrnDUiokhPhSrg=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
--- package.json
@@ -105,7 +105,7 @@
"@walmart/learning-mini-app": "17.0.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.17.9",
- "@walmart/mod-flex-mini-app": "1.13.6",
+ "@walmart/mod-flex-mini-app": "1.13.7",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.12",
"@walmart/onewalmart-miniapp": "1.0.16",
| Updated to modflex to v1.13.7 due to bugfix | Updated to modflex to v1.13.7 due to bugfix
|
25d00fdb80cabe61dd09f40bc8d09b070e973458 | --- .looper-pr.yml
@@ -18,6 +18,7 @@ envs:
global:
variables:
APP_NAME: roster-miniapp
+ ALLOW_NPM_PUSH_TO_AF: true
STAGES_TO_RUN:
LINT: true
UNITTEST: true
--- .looper.yml
@@ -6,6 +6,11 @@ tools:
flavor: azul
version: 17
+envs:
+ global:
+ variables:
+ ALLOW_NPM_PUSH_TO_AF: true
+
flows:
default:
- call: pr
--- .yarnrc.yml
@@ -1,5 +1,5 @@
enableInlineHunks: true
nodeLinker: node-modules
+npmRegistryServer: ${REPOSOLNS_NPM_REPO}
-npmRegistryServer: "https://npme.walmart.com/"
| Update the proximity changes for roster | Update the proximity changes for roster
|
f80566ebb497928d6ffbc92034c094bf41ec1c5f | --- package-lock.json
@@ -5142,9 +5142,9 @@
"integrity": "sha512-IuzyUOujBWrNrrs+I0CHc/f3UioBdKPOxjzB/XANkd3NP1JbFA82kC9GqJ6UJhCoEX/gtI+FxUPSaxbq8fahDw=="
},
"@walmart/counts-component-miniapp": {
- "version": "0.0.35",
- "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.35.tgz",
- "integrity": "sha512-RrSDcb8JvfNBa/BzbWzhCFVrRlMpITC8bUinnkc7I3F8nw3UvxNf5XiXnWIfQaeMUPn4AaZXSvoBNjsptkZ6xA=="
+ "version": "0.0.36",
+ "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.36.tgz",
+ "integrity": "sha512-NgPbPbjEtNysLBgd6dcQ6pT9vowhbRlLYanizdO64x5PFnGijn4ZZkb1/ysOj+EpnXtfAYDpB5y9YENfjaY2FQ=="
},
"@walmart/exception-mini-app": {
"version": "0.42.1",
--- package.json
@@ -82,7 +82,7 @@
"@walmart/core-services-allspark": "~1.7.12",
"@walmart/core-utils": "~1.0.10",
"@walmart/core-widget-registry": "0.3.2",
- "@walmart/counts-component-miniapp": "0.0.35",
+ "@walmart/counts-component-miniapp": "0.0.36",
"@walmart/exception-mini-app": "0.42.1",
"@walmart/facilities-management-miniapp": "0.0.7",
"@walmart/feedback-all-spark-miniapp": "0.6.0",
| bump counts version | bump counts version
|
c9275ec356c003976dd9d21e8353442a35b72d8d | --- __tests__/__mocks__/@walmart/redux-store.js
@@ -27,6 +27,15 @@ module.exports = {
startImpersonation: jest.fn(),
clockCheckSuccess: jest.fn(),
},
+ appConfigActions: {
+ appConfigFetchProgress: jest.fn(),
+ appConfigFetchSuccess: jest.fn(),
+ appConfigFetchError: jest.fn(),
+ appConfigBackgroundRefresh: jest.fn(),
+ appConfigInitProgress: jest.fn(),
+ appConfigInitSuccess: jest.fn(),
+ appConfigInitError: jest.fn(),
+ },
SIGN_IN_SUCCESS: 'SIGN_IN_SUCCESS',
SIGN_OUT_SUCCESS: 'SIGN_OUT_SUCCESS',
START_IMPERSONATION: 'START_IMPERSONATION',
--- __tests__/core/appConfigInitTest.ts
@@ -39,6 +39,7 @@ const mockStore = getStore();
jest.mock('../../src/services/Logger', () => ({
logger: {
+ info: jest.fn(),
error: jest.fn(),
},
}));
@@ -401,7 +402,7 @@ describe('onAppStateChanged', () => {
});
onAppStateChanged('active');
expect(mockGetStore).toHaveBeenCalled();
- expect(mockStore.dispatch).not.toHaveBeenCalled();
+ expect(appConfigActions.appConfigInitSuccess).not.toHaveBeenCalled();
});
it('does not dispatch fetch config if data isnt empty', () => {
@@ -415,21 +416,33 @@ describe('onAppStateChanged', () => {
});
onAppStateChanged('active');
expect(mockGetStore).toHaveBeenCalled();
- expect(mockStore.dispatch).not.toHaveBeenCalled();
+ expect(appConfigActions.appConfigInitSuccess).not.toHaveBeenCalled();
});
- it('dispatch fetch config if app config data is null', () => {
+ it('does not dispatch if app config is not initialized', () => {
(mockStore.getState as jest.Mock).mockReturnValueOnce({
appConfig: {
loading: false,
data: null,
+ appConfigInitSuccess: false,
},
});
onAppStateChanged('active');
expect(mockGetStore).toHaveBeenCalled();
- expect(mockStore.dispatch).toHaveBeenCalledWith({
- type: 'global/CONFIG_INIT_SUCCESS',
+ expect(appConfigActions.appConfigInitSuccess).not.toHaveBeenCalled();
+ });
+
+ it('dispatch fetch config if app config data is null', () => {
+ (mockStore.getState as jest.Mock).mockReturnValueOnce({
+ appConfig: {
+ loading: false,
+ data: null,
+ appConfigInitSuccess: true,
+ },
});
+ onAppStateChanged('active');
+ expect(mockGetStore).toHaveBeenCalled();
+ expect(appConfigActions.appConfigInitSuccess).toHaveBeenCalled();
});
it('dispatch fetch config if app config data is empty', () => {
@@ -437,12 +450,11 @@ describe('onAppStateChanged', () => {
appConfig: {
loading: false,
data: {},
+ appConfigInitSuccess: true,
},
});
onAppStateChanged('active');
expect(mockGetStore).toHaveBeenCalled();
- expect(mockStore.dispatch).toHaveBeenCalledWith({
- type: 'global/CONFIG_INIT_SUCCESS',
- });
+ expect(appConfigActions.appConfigInitSuccess).toHaveBeenCalled();
});
});
--- src/core/appConfigInit.ts
@@ -35,6 +35,7 @@ export function* onNetworkTypeChange({networkType}: AnyAction) {
},
forceRefreshInterval: MIN_ALLOWED_FORCE_REFRESH_INTERVAL,
});
+ logger?.info('triggering app config fetch from normal startup', {});
yield call(appConfigActions.appConfigInitSuccess);
} catch (error) {
yield call(appConfigActions.appConfigInitError, error);
@@ -102,7 +103,7 @@ export function* fetchAppConfig() {
const configScope = yield call(getConfigScope);
if (configScope) {
yield call(appConfigActions.appConfigFetchProgress);
- __DEV__ && console.log('calling fetch app config');
+ logger?.info('calling app config fetch', {configScope});
const data = yield call(AppConfig.fetchAppConfig, configScope);
yield call(appConfigActions.appConfigFetchSuccess, data);
@@ -152,11 +153,14 @@ export const onAppStateChanged = (appState: AppStateStatus) => {
const store = getStore();
const state = store.getState();
- const {loading, data} = state.appConfig;
+ const {loading, data, appConfigInitSuccess} = state.appConfig;
const emptyData = !data || !Object.keys(data).length;
- if (!loading && emptyData) {
- store.dispatch({type: 'global/CONFIG_INIT_SUCCESS'});
+ if (!loading && emptyData && appConfigInitSuccess) {
+ logger?.info('triggering app config fetch from app resume', {});
+ // this dispatches the appConfigInitSuccess action which
+ // in turn triggers the fetch
+ appConfigActions.appConfigInitSuccess();
}
}
};
--- src/services/Logger.ts
@@ -1,8 +1,8 @@
import {DefaultLogger} from '@walmart/react-native-logger';
-import {ELevel} from '@walmart/react-native-logger/dist/types';
+import {ELevel, ILogger} from '@walmart/react-native-logger/dist/types';
import {SESSION_ID} from './Session';
-export let logger: any;
+export let logger: ILogger | undefined;
export const createCoreLogger = () => {
logger = DefaultLogger.clone({}, {id: 'allspark-core'});
| adding extra check for app resume logic for app config (#541) | adding extra check for app resume logic for app config (#541)
|
b8dad5f67c579beefd635731e06e69fb53e8f02a | --- package-lock.json
@@ -81,7 +81,7 @@
"@walmart/receipt-check-miniapp": "1.14.6",
"@walmart/redux-store": "3.4.0",
"@walmart/returns-mini-app": "1.9.0",
- "@walmart/schedule-mini-app": "0.44.0",
+ "@walmart/schedule-mini-app": "0.46.0",
"@walmart/settings-mini-app": "1.19.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
"@walmart/taskit-mini-app": "2.40.8",
@@ -9032,12 +9032,12 @@
}
},
"node_modules/@walmart/schedule-mini-app": {
- "version": "0.44.0",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.44.0.tgz",
- "integrity": "sha512-U8N90ANCCneXMDLihT+/KJCRo/dOsg1Pnm0zWZf6RApo3B2TSsZSuGJE9OAuQ4/8n9VlTwoCYl47siZqivbxCQ==",
+ "version": "0.46.0",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.46.0.tgz",
+ "integrity": "sha512-S0hYFYqK5faVSCD8nCBghMuxOIZ9VbHBKHU0MyG0F99IvAKe+AJUzp5Y7ucN4Oh0hHCnyEldwBxEDLEgulUzBw==",
"dependencies": {
"@walmart/moment-walmart": "^1.0.4",
- "@walmart/wfm-ui": "0.3.0",
+ "@walmart/wfm-ui": "^0.4.0",
"crypto-js": "^3.3.0",
"react-native-tab-view": "^2.4.0",
"wfm-allspark-data-library": "^1.6.0"
@@ -9065,9 +9065,9 @@
}
},
"node_modules/@walmart/schedule-mini-app/node_modules/@walmart/wfm-ui": {
- "version": "0.3.0",
- "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.3.0.tgz",
- "integrity": "sha512-NfM/uLBHwl7GLWxOtCUzK9RKQ+o5Pqv2YjRpIiP9Ep3GZHCpccnxs9MrIS3GjEU46cTKHPSG8gdIwVRkBBdoDA==",
+ "version": "0.4.0",
+ "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.4.0.tgz",
+ "integrity": "sha512-OSz5ovJlZK2AcJ4eSgrBGmCF14I9HB//NaMI5ovhULeEmB4d33JIDzKxhqVrgjuzUiqaiwCN04pBmPxM6S5rAg==",
"license": "ISC",
"dependencies": {
"@walmart/moment-walmart": "1.0.3",
@@ -33832,21 +33832,21 @@
}
},
"@walmart/schedule-mini-app": {
- "version": "0.44.0",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.44.0.tgz",
- "integrity": "sha512-U8N90ANCCneXMDLihT+/KJCRo/dOsg1Pnm0zWZf6RApo3B2TSsZSuGJE9OAuQ4/8n9VlTwoCYl47siZqivbxCQ==",
+ "version": "0.46.0",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.46.0.tgz",
+ "integrity": "sha512-S0hYFYqK5faVSCD8nCBghMuxOIZ9VbHBKHU0MyG0F99IvAKe+AJUzp5Y7ucN4Oh0hHCnyEldwBxEDLEgulUzBw==",
"requires": {
"@walmart/moment-walmart": "1.0.4",
- "@walmart/wfm-ui": "0.3.0",
+ "@walmart/wfm-ui": "^0.4.0",
"crypto-js": "^3.3.0",
"react-native-tab-view": "^3.3.0",
"wfm-allspark-data-library": "^1.6.0"
},
"dependencies": {
"@walmart/wfm-ui": {
- "version": "0.3.0",
- "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.3.0.tgz",
- "integrity": "sha512-NfM/uLBHwl7GLWxOtCUzK9RKQ+o5Pqv2YjRpIiP9Ep3GZHCpccnxs9MrIS3GjEU46cTKHPSG8gdIwVRkBBdoDA==",
+ "version": "0.4.0",
+ "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.4.0.tgz",
+ "integrity": "sha512-OSz5ovJlZK2AcJ4eSgrBGmCF14I9HB//NaMI5ovhULeEmB4d33JIDzKxhqVrgjuzUiqaiwCN04pBmPxM6S5rAg==",
"requires": {
"@walmart/moment-walmart": "1.0.4",
"lodash": "^4.17.20",
--- package.json
@@ -122,7 +122,7 @@
"@walmart/receipt-check-miniapp": "1.14.6",
"@walmart/redux-store": "3.4.0",
"@walmart/returns-mini-app": "1.9.0",
- "@walmart/schedule-mini-app": "0.44.0",
+ "@walmart/schedule-mini-app": "0.46.0",
"@walmart/settings-mini-app": "1.19.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
"@walmart/taskit-mini-app": "2.40.8",
| ama v1.46.0 and sma v0.46.0 | ama v1.46.0 and sma v0.46.0
|
9820abc1ad5d0a7a184d81301f45b699483e9a7c | --- __tests__/utils/user.test.ts
@@ -4,7 +4,6 @@ import {
transformWfmSchedule,
associateIsNotScheduled,
} from '../../src/utils';
-import {isAssociateClockedIn} from '../../src/utils/user';
import {ClockStatusEnum} from '../../src/utils/ClockStatusEnum';
describe('getScheduleStartAndEndTime', () => {
@@ -104,85 +103,6 @@ describe('formatSchedule', () => {
});
});
-//TODO: Add more tests to cover other scenarios
-describe('isAssociateClockedIn', () => {
- it('returns false if associate is undefined', () => {
- expect(isAssociateClockedIn()).toBe(false);
- });
-
- it('returns result of returnClockedStatusBasedOnSchedule when WFM schedule is valid and associate has no punch data', () => {
- const associate = {
- wfmSchedule: {
- scheduleWeeks: [
- {
- scheduleShifts: [{}],
- },
- ],
- },
- };
- const expected = false;
- expect(isAssociateClockedIn(associate)).toBe(expected);
- });
-
- it('returns result of returnClockedStatusBasedOnSchedule when store schedule is valid and associate has no punch data', () => {
- const associate = {
- storeSchedule: [{}],
- };
- const expected = false;
- expect(isAssociateClockedIn(associate)).toBe(expected);
- });
-
- it('returns result of returnClockedStatusBasedOnSchedule when WFM schedule is valid and associate has unknown clock status', () => {
- const associate = {
- punch: {clockStatus: ClockStatusEnum.unknown},
- wfmSchedule: {
- scheduleWeeks: [
- {
- scheduleShifts: [{}],
- },
- ],
- },
- };
- const expected = false;
- expect(isAssociateClockedIn(associate)).toBe(expected);
- });
-
- it('returns result of returnClockedStatusBasedOnSchedule when store schedule is valid and associate has unknown clock status', () => {
- const associate = {
- punch: {clockStatus: ClockStatusEnum.unknown},
- };
- const expected = false;
- expect(isAssociateClockedIn(associate)).toBe(expected);
- });
-
- it('returns true if associate is clocked in', () => {
- const associate = {
- punch: {clockStatus: ClockStatusEnum.clockedIn},
- };
- expect(isAssociateClockedIn(associate)).toBe(true);
- });
-
- it('returns false if associate is not clocked in', () => {
- const associate = {
- punch: {clockStatus: ClockStatusEnum.clockedOut},
- };
- expect(isAssociateClockedIn(associate)).toBe(false);
- });
-
- it('returns false if associate has no punch data and no schedule data', () => {
- const associate = {wfmSchedule: {scheduleWeeks: []}};
- expect(isAssociateClockedIn(associate)).toBe(false);
- });
-
- it('returns false if associate has unknown clock status and no schedule data', () => {
- const associate = {
- punch: {clockStatus: ClockStatusEnum.unknown},
- wfmSchedule: {scheduleWeeks: []},
- };
- expect(isAssociateClockedIn(associate)).toBe(false);
- });
-});
-
describe('associateIsNotScheduled', () => {
it('returns true if associate is undefined', () => {
expect(associateIsNotScheduled()).toBe(true);
--- src/utils/associateList.ts
@@ -12,7 +12,6 @@ import {Associate, payTypes} from '../common';
import {toUpper} from 'lodash';
import {TFunction} from 'i18next';
import {TagColor} from '@walmart/gtp-shared-components';
-import {SupplyChainTeamAssociateMembership} from '../screens/RosterDetailScreen/types';
const ASC_ORDER = 1;
const DESC_ORDER = -1;
@@ -98,38 +97,6 @@ export const generateAssociateInitials = (associateName: string) => {
}, '');
};
-// TODO: this is not being used? if needs to delete this then remove member,functionCodeDesc,walmartIdentificationNumber,clockStatus
-export const transformToAssociateFormat = (
- memberList: SupplyChainTeamAssociateMembership[],
-) => {
- return memberList.map((member) => ({
- associateId: member.walmartIdentificationNumber,
- win: member.walmartIdentificationNumber,
- userId: member.userId,
- firstName: member.associate.firstName,
- lastName: member.associate.lastName,
- jobCategoryCodeDesc: member.functionCodeDesc,
- schedule: [
- {
- startTime: member.clockStatus?.time,
- endTime: (() => {
- const end = new Date(member.clockStatus?.time as string);
- end.setHours(end.getHours() + 9); // 9-hour shift
- return end.toISOString();
- })(),
- scheduleId: `SCH-${member.walmartIdentificationNumber}`,
- },
- ],
- punch: {
- clockStatus: member.clockStatus?.status,
- clockStatusDesc:
- member.clockStatus?.status === 'IN' ? 'Clocked In' : 'Clocked Out',
- lastPunchType: member.clockStatus?.status,
- lastPunchTime: member.clockStatus?.time,
- },
- }));
-};
-
export const deriveAssociateStatus = (
associate: Associate,
t: TFunction<'roster'[]>,
--- src/utils/user.ts
@@ -38,47 +38,6 @@ export const associateIsClockedIn = (associate?: Associate) => {
export const associateShift = (associate?: Associate) =>
associate?.shift?.number;
-//TODO: this is not being used
-export const isAssociateClockedIn = (
- associate?: Associate,
- siteId?: string | undefined,
-) => {
- const isWfmScheduleValid =
- associate?.wfmSchedule &&
- associate?.wfmSchedule?.scheduleWeeks &&
- associate?.wfmSchedule?.scheduleWeeks?.[0]?.scheduleShifts &&
- associate?.wfmSchedule?.scheduleWeeks?.[0].scheduleShifts?.length > 0;
-
- /*
- If punch data is null, then we would check if the associate has schedule data
- If there is schedule info, we would return the Clocked status based on schedule info else clocked status would be Clocked out
- */
- if (!associate?.punch) {
- if (isWfmScheduleValid) {
- return returnClockedStatusBasedOnSchedule(
- transformWfmSchedule(associate.wfmSchedule as WFMSchedule, siteId),
- );
- } else {
- return false;
- }
- }
-
- /*
- If punch data has clockStatus and its value is unknown, then we would check if the associate has schedule data
- If there is schedule info, we would return the Clocked status based on schedule info else clocked status would be Clocked out
- */
- if (ClockStatusEnum.unknown === Number(associate?.punch?.clockStatus)) {
- if (isWfmScheduleValid) {
- return returnClockedStatusBasedOnSchedule(
- transformWfmSchedule(associate.wfmSchedule as WFMSchedule, siteId),
- );
- } else {
- return false;
- }
- }
- return ClockStatusEnum.clockedIn === Number(associate?.punch?.clockStatus);
-};
-
export const associateIsClockedOut = <T extends Associate>(associate?: T) => {
return ClockStatusEnum.clockedOut === Number(associate?.punch?.clockStatus);
};
| feat(ui): removed unused code | feat(ui): removed unused code
|
e993fd19aeea2543cfc0f903119c652c41946c5a | --- docs/docs/components/hub framework/hub-intro.md
@@ -103,4 +103,7 @@ const TimeAndAttendanceWidgetId = 'GTATeamName.TimeAndAttendanceWidget';
TEAM_HUB_NAMESPACE.add(TimeAndAttendanceWidgetId, TimeAndAttendanceWidget);
-```
\ No newline at end of file
+```
+
+### Next Steps
+Refer to each component's documentation to learn more.
\ No newline at end of file
| added next steps for the intro page | added next steps for the intro page
|
87770fe523605d38b671e271109b6e2b777f5a08 | --- example/src/teamHub/screens/container.tsx
@@ -2,10 +2,7 @@ import {useNavigation} from '@react-navigation/native';
import React, {useEffect, useRef} from 'react';
import {TeamHub} from '../feature';
import {TeamHubLogger, TeamHubTelemetry} from '../services';
-import {
- BottomSheet,
- useTeamHubImage,
-} from '@walmart/allspark-foundation/HubFeature/index';
+import {BottomSheet} from '@walmart/allspark-foundation/HubFeature/index';
import {AllsparkHubContainer} from '@walmart/allspark-foundation/HubFeature/index';
import BottomsheetImage from '@walmart/allspark-foundation/HubFeature/BottomSheet/OnboardingImage';
import {Widget1, Widget2, Widget3} from './widgets';
@@ -14,7 +11,6 @@ export const ContainerScreen = TeamHub.createScreen(
() => {
const navigation = useNavigation();
const bottomSheetRef = useRef<{open: () => void; close: () => void}>(null);
- const TeamImage = useTeamHubImage();
const handleCustomBottomSheet = React.useCallback(
() => bottomSheetRef.current?.open(),
--- packages/allspark-foundation/src/Components/Onboarding/OnBoardingFlow.tsx
@@ -1,13 +1,13 @@
import React from 'react';
import { View } from 'react-native';
import { TeamOnboardingScreen } from '../../../../allspark-foundation/src/HubFeature/Onboarding/TeamOnboarding/Screens/TeamOnboardingScreen';
-import { AllsparkNavigationClient } from '@walmart/allspark-foundation/Navigation';
import { Icons } from '@walmart/gtp-shared-components/dist';
import { useSelector } from 'react-redux';
-import { UserSelectors } from '@walmart/allspark-foundation/User';
-import { SiteSelectors } from '@walmart/allspark-foundation/Site';
import { useGetAssociatePreferencesQuery } from '@walmart/me-at-walmart-athena-queries';
import { isNil } from 'lodash';
+import { SiteSelectors } from '../../Site';
+import { UserSelectors } from '../../User';
+import { AllsparkNavigationClient } from '../../Navigation';
export const OnBoardingFlow = () => {
const { data: siteData } = useSelector(SiteSelectors.getWorkingSite);
--- packages/allspark-foundation/src/HubFeature/BottomSheet/HubOnboardingImage/index.ts
@@ -0,0 +1,2 @@
+export * from './OnboardingImage';
+export * from './types';
--- packages/allspark-foundation/src/HubFeature/BottomSheet/index.ts
@@ -1,3 +1,3 @@
-export { default as BottomSheet } from './BottomSheet';
-export { default as HubOnboardingImage } from './HubOnboardingImage/OnboardingImage';
-export type { BottomSheetProps, BottomSheetRef } from './types';
+export * from './BottomSheet';
+export * from './HubOnboardingImage/OnboardingImage';
+export * from './types';
--- packages/allspark-foundation/src/HubFeature/Hooks/useUserPreferences.ts
@@ -10,10 +10,18 @@ const sorter = (data: TeamSwitcherTypes[]): TeamSwitcherTypes[] => {
const TOTAL_STORE = 'Total store';
const MY_TEAMS = 'My teams';
const customSort = (a: TeamSwitcherTypes, b: TeamSwitcherTypes): number => {
- if (a.teamLabel === TOTAL_STORE) return -1;
- if (b.teamLabel === TOTAL_STORE) return 1;
- if (a.teamLabel === MY_TEAMS) return -1;
- if (b.teamLabel === MY_TEAMS) return 1;
+ if (a.teamLabel === TOTAL_STORE) {
+ return -1;
+ }
+ if (b.teamLabel === TOTAL_STORE) {
+ return 1;
+ }
+ if (a.teamLabel === MY_TEAMS) {
+ return -1;
+ }
+ if (b.teamLabel === MY_TEAMS) {
+ return 1;
+ }
return a.teamLabel.localeCompare(b.teamLabel);
};
@@ -30,10 +38,10 @@ export const useUserPreferences = (data: TeamSwitcherTypes[]) => {
win: win as string,
},
skip: data.length > 0,
- onCompleted: (response) => {
+ onCompleted: (response: any) => {
const transformedTeamData =
response.associatePreferences?.meAtWalmartPreferences?.managerExperiencePreferences?.myTeams?.map(
- (team) => ({
+ (team: { teamName: any; teamId: string | number }) => ({
teamLabel: team?.teamName ?? '',
teamImage: team?.teamId ? teamImageIcon[team.teamId] : '',
teamId: team?.teamId ?? '',
--- packages/allspark-foundation/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx
@@ -1,4 +1,4 @@
-import React, { ComponentType } from 'react';
+import React, { ComponentType, useRef } from 'react';
import {
AllsparkComponentContainers,
ComponentContainer,
@@ -14,6 +14,8 @@ import { FEATURE_ID, FEATURE_NAME } from '../../constant';
import { TeamSelection } from '../../Onboarding/TeamSelection';
import { managerExperienceSlice } from '../../Redux/reducer';
import { HubDashboard } from './Screens';
+import BottomSheet from '../../BottomSheet/BottomSheet';
+import HubOnboardingImage from '../../BottomSheet/HubOnboardingImage/OnboardingImage';
export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, {
name: FEATURE_NAME,
@@ -74,8 +76,30 @@ export class AllsparkHubContainer {
};
public render = (): JSX.Element => {
+ const bottomSheetRef = useRef<{ open: () => void; close: () => void }>(
+ null
+ );
+
+ const closeBottomSheet = React.useCallback(
+ () => bottomSheetRef.current?.close(),
+ []
+ );
return (
- <HubDashboard name={this.containerName} widgets={this.validWidgets} />
+ <>
+ <HubDashboard name={this.containerName} widgets={this.validWidgets} />
+ <BottomSheet
+ ref={bottomSheetRef}
+ isVisible={false}
+ content={HubOnboardingImage({
+ title: 'Teams updated',
+ description: ' You have successfully updated your teams',
+ source:
+ 'https://i5-me.walmartimages.com/images/teams/my-teams-mgr-exp-1edac1ba4a.png',
+ })}
+ onPrimaryButtonPress={closeBottomSheet}
+ primaryButtonText='Got it'
+ />
+ </>
);
};
}
--- packages/allspark-foundation/src/HubFeature/Hub/TeamSwitcher/index.tsx
@@ -60,7 +60,7 @@ export const TeamSwitcher = ({
onTeamChange(teamId);
dispatch(ManagerExperienceCreators.updateSelectedTeamPreference(teamLabel));
if (teamId === 'myTeams') {
- const selectedTeamsList = teamData.map((team) => team.teamId);
+ const selectedTeamsList = teamData.map((team: any) => team.teamId);
dispatch(
ManagerExperienceCreators.updateSelectedTeamData(selectedTeamsList)
);
--- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList.tsx
@@ -49,7 +49,7 @@ export const TeamSelectionList = ({
'upsertManagerExperiencePreferenceMutation executed successfully',
});
},
- onError: (err) => {
+ onError: (err: any) => {
logger.error('upsertManagerExperiencePreferenceMutation error', {
message: `error in upsertManagerExperiencePreferenceMutation from TeamSelection: ${err}`,
});
--- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Screens/TeamSelection.tsx
@@ -42,7 +42,7 @@ export const TeamSelection = () => {
message: 'useGetTeamsByStoreQuery executed successfully',
});
},
- onError: (err) => {
+ onError: (err: any) => {
logger.error('useGetTeamsByStoreQuery error', {
message: `error in useGetTeamsByStoreQuery from TeamSelection: ${err}`,
});
| feat(ui): update bottomsheet changes | feat(ui): update bottomsheet changes
|
e717f4b02c9d332930ffa622b4343f13ab37e409 | --- packages/celebration-mini-app/src/components/Widget/HubCelebrationWidget.tsx
@@ -633,7 +633,14 @@ export const HubCelebrationWidget: React.FC<
name="CelebrationWidget"
debug={__DEV__}
>
- <HubCelebrationWidgetCore {...props} />
+ {/* ActivityAwareWidget will inject refresh and teamData props automatically */}
+ <HubCelebrationWidgetCore
+ widgetStyle={props.widgetStyle}
+ isSiteDC={props.isSiteDC}
+ selectedTeamPreference={props.selectedTeamPreference}
+ selectedTeamIds={props.selectedTeamIds}
+ selectedShifts={props.selectedShifts}
+ />
</ActivityAwareWidget>
</CelebrationThemeProvider>
</CelebrationErrorBoundary>
| feat(ui): update activity aware widget | feat(ui): update activity aware widget
|
36f33401588df467dab66442f9955893c735998f | --- package-lock.json
@@ -3325,9 +3325,9 @@
"integrity": "sha512-h/VhUxIrOY6lVrMP/b7ORG02nqwNl65hx4uH57fvGy3isNjQ5QjRXvtnB/QJTFDyKTcowOd9uroYFhblRZh0bw=="
},
"@walmart/functional-components": {
- "version": "1.0.28",
- "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-1.0.28.tgz",
- "integrity": "sha512-vROc0cw2WZj5EACR7hLYowL4xYOy13jYzmKDjH5DP6CzvSFuOE+kruoPJwOS5hcTwzP+afy4fSNHDcxiN2GEfw==",
+ "version": "1.0.30",
+ "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-1.0.30.tgz",
+ "integrity": "sha512-+UaYtB6ZOKvO539efvbQ2ypZZTXRFyk/65hUiQdC+jg/2tSyh1URQEGLWLxWXGQ3LoJFL62HYBrOfDa1r73R1Q==",
"requires": {
"axios": "^0.19.2"
}
--- package.json
@@ -72,7 +72,7 @@
"@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",
+ "@walmart/functional-components": "1.0.30",
"@walmart/gtp-shared-components": "^1.1.8",
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/ims-print-services-ui": "0.0.19",
| update functional components lib | update functional components lib
|
be301dbdd89aa4ae71f717a5355f285f30e24bf0 | --- packages/associate-exp-hub-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.
+# [2.6.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.5.0...@walmart/associate-exp-hub-hub@2.6.0) (2025-11-04)
+
+### Features
+
+- **ui:** update hub and deprecated packages ([d28ad09](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/d28ad09caea5bb413d17f1cb791b2e9e52c2309d))
+
# [2.5.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.4.0...@walmart/associate-exp-hub-hub@2.5.0) (2025-11-04)
### Features
--- packages/associate-exp-hub-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-hub",
- "version": "2.5.0",
+ "version": "2.6.0",
"description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub",
"packageManager": "yarn@4.6.0",
"engines": {
--- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.4.0-alpha.29](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.28...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.29) (2025-11-04)
+
+### Features
+
+- **ui:** update hub and deprecated packages ([d28ad09](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/d28ad09caea5bb413d17f1cb791b2e9e52c2309d))
+
# [1.4.0-alpha.28](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.27...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.28) (2025-11-04)
### Features
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.4.0-alpha.28",
+ "version": "1.4.0-alpha.29",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/associate-exp-hub-team-switcher/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [2.5.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.4.1...@walmart/associate-exp-hub-team-switcher@2.5.0) (2025-11-04)
+
+### Features
+
+- **ui:** update hub and deprecated packages ([d28ad09](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/d28ad09caea5bb413d17f1cb791b2e9e52c2309d))
+
## [2.4.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.4.0...@walmart/associate-exp-hub-team-switcher@2.4.1) (2025-11-04)
**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.4.1",
+ "version": "2.5.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-hub@2.6.0
- @walmart/associate-exp-hub-mini-app@1.4.0-alpha.29
- @walmart/associate-exp-hub-team-switcher@2.5.0
|
4f11e1062e1913379b626683c86a1cd967adeaa2 | --- .husky/pre-commit
@@ -0,0 +1 @@
+npm run lint
--- .husky/pre-push
@@ -0,0 +1 @@
+npm run test:build
--- packages/allspark-utils/__tests__/RenderGuardTest.tsx
@@ -5,19 +5,6 @@ import { render } from '@testing-library/react-native';
describe("Render guard tests", () => {
const MockTestComponent = () => <View testID='testRender'></View>;
- it("doesn't render when preRender is still processing", async () => {
- let shouldRender = false;
- const testFn = () => new Promise<void>((resolve, reject) => {
- });
- const { findByTestId } = render(<RenderGuard preRender={testFn}>
- <MockTestComponent />
- </RenderGuard>);
- try{
- await findByTestId('testRender');
- } catch(e) {
- expect(e).toBeDefined();
- }
- });
it("renders when preRender has processed", async () => {
const testFn = () => new Promise<void>((resolve, reject) => resolve());
const { findByTestId } = render(<RenderGuard preRender={testFn}>
@@ -35,4 +22,4 @@ describe("Render guard tests", () => {
</RenderGuard>);
expect(await (findByTestId('testRender'))).toBeDefined();
})
-})
\ No newline at end of file
+})
| chore: fix husky | chore: fix husky
|
517a85aabc9430d722f6b4222fdb24a042f2b242 | --- targets/US/package.json
@@ -143,7 +143,7 @@
"@walmart/receipt-check-miniapp": "1.27.3",
"@walmart/redux-store": "~6.3.28",
"@walmart/returns-mini-app": "4.15.0",
- "@walmart/rfid-scan-mini-app": "2.6.3",
+ "@walmart/rfid-scan-mini-app": "2.7.1",
"@walmart/rn-mobile-sdk-pairing": "2.0.4",
"@walmart/rn-receiving-mini-app": "2.4.45",
"@walmart/roster-mini-app": "2.9.0",
--- yarn.lock
@@ -7380,7 +7380,7 @@ __metadata:
"@walmart/receipt-check-miniapp": "npm:1.27.3"
"@walmart/redux-store": "npm:~6.3.28"
"@walmart/returns-mini-app": "npm:4.15.0"
- "@walmart/rfid-scan-mini-app": "npm:2.6.3"
+ "@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"
"@walmart/roster-mini-app": "npm:2.9.0"
@@ -8084,34 +8084,34 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/rfid-scan-mini-app@npm:2.6.3":
- version: 2.6.3
- resolution: "@walmart/rfid-scan-mini-app@npm:2.6.3"
+"@walmart/rfid-scan-mini-app@npm:2.7.1":
+ version: 2.7.1
+ resolution: "@walmart/rfid-scan-mini-app@npm:2.7.1"
peerDependencies:
"@react-navigation/native": ">=6.0.0"
"@react-navigation/stack": ">=6.1.0"
- "@walmart/functional-components": ">=4.0.3"
+ "@shopify/flash-list": ">=1.6.4"
+ "@walmart/allspark-foundation": ">=6.19.1"
+ "@walmart/allspark-utils": ">=6.5.0"
"@walmart/gtp-shared-components": ">=2.2.4"
- "@walmart/ims-print-services-ui": ^2.10.3
- "@walmart/native-rfid-scanner": ">=3.12.1"
+ "@walmart/ims-print-services-ui": ">=2.10.3"
+ "@walmart/me-at-walmart-common": ">=6.24.0"
+ "@walmart/native-rfid-scanner": ">=3.12.0"
"@walmart/react-native-scanner-3.0": ">=0.3.0"
- "@walmart/redux-store": ">=3.7.0"
- "@walmart/ui-components": ">=1.15.1"
+ expo-image: ">=1.10.0"
i18next: ">=23.6.0"
react: "*"
react-i18next: ">=13.3.1"
react-native: "*"
react-native-ble-manager: ">=11.0.4"
- react-native-circular-progress: ">=1.3.7"
react-native-new-snap-carousel: ">=3.9.3"
- react-native-permissions: ">=3.6.0"
react-native-reanimated: ">=3.12.1"
react-native-safe-area-context: ">=4.8.2"
react-redux: ">=8.0.4"
redux: ">=4.1.2"
reselect: ">=4.0.0"
uuid: ">=3.3.2"
- checksum: 10c0/c70f66ddeef42c49e20410d4808b07d834abbd837567a7aa0b25bf31be1a1b1c83f1e35dc751605ce1a50ab9f818bb4a7a23ef83d9f0dd0baddd7cb42d9d7215
+ checksum: 10c0/c615da33a2189e3277ecd422b447580e2d01eb2a3f2809031ee27bf097c84df87a45c21d7e6463d9fa97dd272be87f9fe3e9cfaab5d89db5d4c8199a06a61865
languageName: node
linkType: hard
| Update rfid-scan-mini-app@2.7.1 | Update rfid-scan-mini-app@2.7.1
|
47be426ebc546b02cbd3ec0367c36d9b03a2c006 | --- package-lock.json
@@ -60,8 +60,8 @@
"@walmart/mod-flex-mini-app": "1.2.7",
"@walmart/moment-walmart": "1.0.4",
"@walmart/OneWalmart-MiniApp": "1.0.12",
- "@walmart/pay-stub-miniapp": "0.8.74",
- "@walmart/payrollsolution_miniapp": "0.129.0",
+ "@walmart/pay-stub-miniapp": "^0.9.5",
+ "@walmart/payrollsolution_miniapp": "^0.130.1",
"@walmart/price-changes-mini-app": "1.5.6",
"@walmart/profile-feature-app": "0.0.71",
"@walmart/push-to-talk-mini-app": "1.8.15",
@@ -6206,9 +6206,9 @@
}
},
"node_modules/@walmart/pay-stub-miniapp": {
- "version": "0.8.74",
- "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.8.74.tgz",
- "integrity": "sha512-/mjKJmj1faO5VhxUbx3WZpskBXcpxEDOJ9gsV1uQlED0OWbp+VryoPzCOw4zpfhsnWK0rf/R+FM0MR32bVNimQ==",
+ "version": "0.9.5",
+ "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.5.tgz",
+ "integrity": "sha512-1rWobfVHjmiS4FE1H6sM2hr/0LNxQN33zcbh64+DJQ89j+U7dMvKjXCJQuhJ/phtzJq2oe8fJ2UpLYY2B0+5AQ==",
"dependencies": {
"crypto-js": "^3.3.0"
},
@@ -6231,9 +6231,9 @@
}
},
"node_modules/@walmart/payrollsolution_miniapp": {
- "version": "0.129.0",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.129.0.tgz",
- "integrity": "sha512-fhnYFQl+J5BQBbl8ElwK9cARJKi5pHWWft5Ugx3JCDfl9D59YlP9bJEjPRSY9xuiulgMsCkJ6vdVuxsULdCNmg==",
+ "version": "0.130.1",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.1.tgz",
+ "integrity": "sha512-f7JM2iqvi4v1OeDnbubu5C5dI4CIl5GCp78wFP8gPTCs6vSTMT7Ru6kfZ7JeraCu6X8ZENLC8xZcNOHD90jVMA==",
"dependencies": {
"crypto-js": "^3.3.0"
},
--- package.json
@@ -73,6 +73,7 @@
"@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-health-survey-mini-app": "0.0.44",
"@walmart/allspark-home-mini-app": "0.6.10",
"@walmart/allspark-neon-core": "0.1.31",
@@ -101,7 +102,6 @@
"@walmart/metrics-mini-app": "0.9.28",
"@walmart/mod-flex-mini-app": "1.2.7",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/pay-stub-miniapp": "^0.9.5",
"@walmart/payrollsolution_miniapp": "^0.130.1",
"@walmart/price-changes-mini-app": "1.5.6",
| update package.lock | update package.lock
|
8d4cb915ed5eead522d04ae882231b7af2bfdbfc | --- package.json
@@ -63,7 +63,7 @@
"@redux-saga/testing-utils": "^1.1.3",
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
- "@walmart/shelfavailability-mini-app": "0.3.58",
+ "@walmart/shelfavailability-mini-app": "0.3.59",
"@walmart/allspark-health-survey-mini-app": "0.0.41",
"@walmart/allspark-home-mini-app": "0.4.21",
"@walmart/allspark-me-mini-app": "0.1.0",
| 0.3.59 dev build | 0.3.59 dev build
|
339ba20f43da9c13d34e4a768f6b0e670def5fcb | --- ios/Podfile.lock
@@ -1147,7 +1147,7 @@ SPEC CHECKSUMS:
boost: a7c83b31436843459a1961bfd74b96033dc77234
BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
- DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
+ DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
FBLazyVector: affa4ba1bfdaac110a789192f4d452b053a86624
FBReactNativeSpec: fe8b5f1429cfe83a8d72dc8ed61dc7704cac8745
Firebase: 4ba896cb8e5105d4b9e247e1c1b6222b548df55a
@@ -1173,7 +1173,7 @@ SPEC CHECKSUMS:
Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541
FlipperKit: 02fd59af13a1465d04268cbffe3f93505f0a1dc2
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
- glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
+ glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85
GoogleAppMeasurement: 7a33224321f975d58c166657260526775d9c6b1a
GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f
GoogleUtilities: bad72cb363809015b1f7f19beb1f1cd23c589f95
@@ -1203,25 +1203,25 @@ SPEC CHECKSUMS:
React-jsiexecutor: 31564fa6912459921568e8b0e49024285a4d584b
React-jsinspector: badd81696361249893a80477983e697aab3c1a34
React-logger: fdda34dd285bdb0232e059b19d9606fa0ec3bb9c
- react-native-app-auth: fd1eaa667c0bc014199456d14a6440cb74de814e
- react-native-background-timer: 17ea5e06803401a379ebf1f20505b793ac44d0fe
+ react-native-app-auth: bd3be305a5cbac5baa8574253480d90b5c5522e7
+ react-native-background-timer: 117fffdc9b0d6f144444bb49029f94275a45fdb5
react-native-biometrics: 352e5a794bfffc46a0c86725ea7dc62deb085bdc
react-native-blob-util: 4ec16cc21bfc8de8f0ddfd2c81ada00f8c34b646
- react-native-cameraroll: 2957f2bce63ae896a848fbe0d5352c1bd4d20866
- react-native-encrypted-storage: 632e8eac25dff0b6cac14e6e0c76498c4a39e24e
+ react-native-cameraroll: 60ac50a5209777cbccfe8d7a62d0743a9da87060
+ react-native-encrypted-storage: e907c76d2b9f0a30edd989d92f1bb8a9198fdb82
react-native-flipper: 43ecd19174184c24aba5e1ef75ae13106af871e3
react-native-geolocation-service: 608e1da71a1ac31b4de64d9ef2815f697978c55b
react-native-get-random-values: a6ea6a8a65dc93e96e24a11105b1a9c8cfe1d72a
react-native-image-picker: 4bc9ed38c8be255b515d8c88babbaf74973f91a8
- react-native-image-resizer: d9fb629a867335bdc13230ac2a58702bb8c8828f
+ react-native-image-resizer: 506412a2bdd70dde64a61e13505ce10f61a04369
react-native-logger: c9fa5ed890b56e294df7d62c39c2c5564a8ae2ea
- react-native-loudness: 38527e7e42c3be3e4ea3d8aace2621a8eb9cafda
+ react-native-loudness: fe12785700887bcfdb07abcf455c5df40e89183b
react-native-maps: 085f614cf14d3637b2048bb9752da5b1c27c2886
react-native-netinfo: f80db8cac2151405633324cb645c60af098ee461
react-native-pager-view: 592421df0259bf7a7a4fe85b74c24f3f39905605
react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa
react-native-ptt-module: 7499bf41de5660cc292f12c0764f19c36865f651
- react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe
+ react-native-render-html: 5af9f6852f5e0cf9b74127537da3370984da51ee
react-native-safe-area-context: 6c12e3859b6f27b25de4fee8201cfb858432d8de
react-native-scanner-3.0: e144733a1c98596d7cd53c3d6384785273b81aab
react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457
@@ -1242,12 +1242,12 @@ SPEC CHECKSUMS:
React-RCTVibration: 8e5c8c5d17af641f306d7380d8d0fe9b3c142c48
React-runtimeexecutor: 7401c4a40f8728fd89df4a56104541b760876117
ReactCommon: c9246996e73bf75a2c6c3ff15f1e16707cdc2da9
- ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab
+ ReactNativeART: f003b07dfa7098aa419ed95b69560923440b1eee
Realm: fdf6732924dc5e69e30e0db2c11e869f92b53f3d
RealmJS: d0e94d35363a3a9ebd27981d9ac0aa4b63f66c85
RealmSwift: 7c181da8fa1c2fe613656a77c198d6a3dc3879a1
- RNCAsyncStorage: b03032fdbdb725bea0bd9e5ec5a7272865ae7398
- RNCClipboard: 41d8d918092ae8e676f18adada19104fa3e68495
+ RNCAsyncStorage: cb9a623793918c6699586281f0b51cbc38f046f9
+ RNCClipboard: 5e299c6df8e0c98f3d7416b86ae563d3a9f768a3
RNCPicker: 0bf8ef8f7800524f32d2bb2a8bcadd53eda0ecd1
RNDateTimePicker: 1dd15d7ed1ab7d999056bc77879a42920d139c12
RNDeviceInfo: 4701f0bf2a06b34654745053db0ce4cb0c53ada7
@@ -1266,7 +1266,7 @@ SPEC CHECKSUMS:
RNReanimated: 2a91e85fcd343f8af3c58d3425b99fdd285590a5
RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7
RNSha256: 80bea5b2e7005f813f6438cb41e573b3d531146c
- RNSketchCanvas: 124a2a11b9bce418ef6e34262fc163d00b5f714b
+ RNSketchCanvas: ee9e3d4bd7dbe46d309827bf2252817a0345ea1d
RNSoundPlayer: 369105c565b8fe6ea0a43fc882dc81eba444e842
RNSVG: 3a79c0c4992213e4f06c08e62730c5e7b9e4dc17
RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
--- package-lock.json
@@ -136,7 +136,7 @@
"react-native-pdf": "^6.6.2",
"react-native-permissions": "3.6.1",
"react-native-popup-menu": "^0.16.0",
- "react-native-ptt-module": "1.8.6",
+ "react-native-ptt-module": "1.8.12",
"react-native-qrcode-svg": "^6.1.2",
"react-native-reanimated": "2.12.0",
"react-native-render-html": "^6.3.4",
@@ -17931,9 +17931,9 @@
"license": "ISC"
},
"node_modules/react-native-ptt-module": {
- "version": "1.8.6",
- "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.8.6.tgz",
- "integrity": "sha512-t9S9vUtTMuaAgpGmxJ8EXmydhbMChYZfAI4YEVN4KG5F4PqKCL2u41XvpjHdQx1rA0KBv6ehxUmYgVYHmreCrA==",
+ "version": "1.8.12",
+ "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.8.12.tgz",
+ "integrity": "sha512-cXh1sIEN0mruSXC9T8jat8cjNzK0/N2JnBvTuCuVhcskFgyVDu9CdLe861mZqdzrQnsYhOUilaBR+v0w1HvcEw==",
"license": "MIT"
},
"node_modules/react-native-qrcode-svg": {
@@ -33085,9 +33085,9 @@
"version": "0.16.1"
},
"react-native-ptt-module": {
- "version": "1.8.6",
- "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.8.6.tgz",
- "integrity": "sha512-t9S9vUtTMuaAgpGmxJ8EXmydhbMChYZfAI4YEVN4KG5F4PqKCL2u41XvpjHdQx1rA0KBv6ehxUmYgVYHmreCrA=="
+ "version": "1.8.12",
+ "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.8.12.tgz",
+ "integrity": "sha512-cXh1sIEN0mruSXC9T8jat8cjNzK0/N2JnBvTuCuVhcskFgyVDu9CdLe861mZqdzrQnsYhOUilaBR+v0w1HvcEw=="
},
"react-native-qrcode-svg": {
"version": "6.1.2",
--- package.json
@@ -178,7 +178,7 @@
"react-native-pdf": "^6.6.2",
"react-native-permissions": "3.6.1",
"react-native-popup-menu": "^0.16.0",
- "react-native-ptt-module": "1.8.6",
+ "react-native-ptt-module": "1.8.12",
"react-native-qrcode-svg": "^6.1.2",
"react-native-reanimated": "2.12.0",
"react-native-render-html": "^6.3.4",
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx
@@ -382,6 +382,17 @@ export const MainStackNav = () => {
options={Properties.PttScreenNavProperties}
/>
+ <MainStack.Screen
+ name='PTTDeleteMessageConfirmation'
+ component={Components.DeleteMessageConfirmationScreen}
+ options={Properties.DeleteMessageConfirmationProperties}
+ />
+ <MainStack.Screen
+ name='PTTDeleteMessageModal'
+ component={Components.DeleteMessageModal}
+ options={Properties.DeleteMessageModalProperties}
+ />
+
<MainStack.Screen name='WhatsNewModal' component={WhatsNewModal} />
<MainStack.Screen
@@ -433,7 +444,7 @@ export const MainStackNav = () => {
</MainStack.Navigator>
{/* PTT Notifications Container */}
- {/* <Components.NotificationsContainer /> */}
+ <Components.NotificationsContainer />
</>
);
};
| update navc and module for delete message and alarm permissions check | update navc and module for delete message and alarm permissions check
|
ead1689950bd216ba7b20c212a6d4b3db53bd329 | --- package.json
@@ -76,7 +76,7 @@
"@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch",
"@walmart/allspark-authentication": "6.4.10",
"@walmart/allspark-cope-key-listener": "0.0.18",
- "@walmart/allspark-foundation": "6.45.2",
+ "@walmart/allspark-foundation": "6.47.0",
"@walmart/allspark-foundation-hub": "1.10.0",
"@walmart/allspark-graphql-client": "~6.3.28",
"@walmart/allspark-http-client": "~6.3.28",
--- yarn.lock
@@ -6279,9 +6279,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation@npm:6.45.2":
- version: 6.45.2
- resolution: "@walmart/allspark-foundation@npm:6.45.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-6.45.2.tgz"
+"@walmart/allspark-foundation@npm:6.47.0":
+ version: 6.47.0
+ resolution: "@walmart/allspark-foundation@npm:6.47.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-6.47.0.tgz"
dependencies:
"@apollo/client": "npm:^3.8.6"
"@graphql-codegen/cli": "npm:^5.0.0"
@@ -6291,7 +6291,7 @@ __metadata:
"@graphql-codegen/typescript-react-apollo": "npm:^4.1.0"
"@reduxjs/toolkit": "npm:^1.9.7"
"@types/node-fetch": "npm:^2.6.9"
- "@walmart/allspark-utils": "npm:^6.9.0"
+ "@walmart/allspark-utils": "npm:^6.10.1"
axios: "npm:~1.6.0"
axios-cache-interceptor: "npm:^1.3.2"
crypto-js: "npm:~4.2.0"
@@ -6323,9 +6323,6 @@ __metadata:
"@walmart/react-native-scanner-3.0": ">=0.6.3"
"@walmart/react-native-shared-navigation": ">=6.3"
"@walmart/react-native-sumo-sdk": ^2.7.0
- "@walmart/react-native-wm-network": ">=6.3"
- "@walmart/react-native-wm-notification": ">=6.3"
- "@walmart/react-native-wm-telemetry": ">=6.3"
"@walmart/redux-store": ">=6.3"
react: "*"
react-native: "*"
@@ -6348,17 +6345,11 @@ __metadata:
optional: true
"@walmart/react-native-shared-navigation":
optional: true
- "@walmart/react-native-wm-network":
- optional: true
- "@walmart/react-native-wm-notification":
- optional: true
- "@walmart/react-native-wm-telemetry":
- optional: true
"@walmart/redux-store":
optional: true
bin:
allspark-generate-graphql: ./cli/generate.js
- checksum: 10c0/605f790d2eec01c7996ca8e12dac0afe703b80eeb7abcc1aa69663e8ea29cb914cd3fcf0aa914c5fe8e4b971a9de7d53814fabc46cc1c802dd8922a4fdaf7389
+ checksum: 10c0/30df90141ef775358413c1c5938e768591517a9abbf6c29bc2bbe91911caa8e5e6ed4acd29f8298f20fb259952b7e7c236500a7023b33cd40a44f537b29ad11a
languageName: node
linkType: hard
@@ -7417,7 +7408,7 @@ __metadata:
"@types/react-test-renderer": "npm:^18.0.7"
"@walmart/allspark-authentication": "npm:6.4.10"
"@walmart/allspark-cope-key-listener": "npm:0.0.18"
- "@walmart/allspark-foundation": "npm:6.45.2"
+ "@walmart/allspark-foundation": "npm:6.47.0"
"@walmart/allspark-foundation-hub": "npm:1.10.0"
"@walmart/allspark-graphql-client": "npm:~6.3.28"
"@walmart/allspark-http-client": "npm:~6.3.28"
| feat: BPD-9510 added scanner switch implementation (#4373) | feat: BPD-9510 added scanner switch implementation (#4373)
* feat: BPD-9510 added scanner switch implementation
* build: resolve conflicts
* build: merge conflicts |
28265c6083c8ad9f634787a934a9a552a7899141 | --- scripts/BuildSupport/AppStore.keychain-db
Binary files /dev/null and b/scripts/BuildSupport/AppStore.keychain-db differ
--- scripts/BuildSupport/enterprise.cer
Binary files /dev/null and b/scripts/BuildSupport/enterprise.cer differ
--- scripts/BuildSupport/looper-clean.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+set +e
+
+echo "Cleaning Xcode derived data & Carthage"
+rm -rf ~/Library/Developer/Xcode/DerivedData && rm -rf ~/Library/Caches/org.carthage.CarthageKit ||:
+echo "Done cleaning Xcode derived data & Carthage"
+
+echo "Cleaning npm, ern and rn cache"
+rm -rf ~/.cache ~/._npm ~/.ern ~/.rncache ||:
+echo "Done cleaning npm, ern and rn cache"
+
+echo "Deleting provisioning profiles"
+rm ~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision
+
+echo "Deleting keychains"
+security delete-keychain ${KEYCHAIN_NAME}
+
+exit 0
\ No newline at end of file
--- scripts/BuildSupport/looper-credentials.sh
@@ -0,0 +1,164 @@
+#!/bin/bash -e
+
+#
+# Our custom keychain must be added to the keychain search path.
+# https://stackoverflow.com/a/44138621
+#
+
+set +e
+
+
+#Check for required "params"
+if [ -z ${KEYCHAIN_NAME} ];then
+ echo "π ERROR: KEYCHAIN_NAME is required:[${KEYCHAIN_NAME}]"
+ echo " This is usually defined in the .looper file"
+ exit 1
+fi
+
+if [ -z ${KEYCHAIN_PW} ];then
+ echo "π ERROR: KEYCHAIN_PW is required:[${KEYCHAIN_PW}]"
+ echo " This is usually defined in the .looper file"
+ exit 1
+fi
+
+if [[ "$KEYCHAIN_NAME" == "enterprise-app-signing.keychain-db" ]]; then
+ echo "Downloading Keychain DB"
+ curl -L "https://repository.walmart.com/content/repositories/pangaea_releases/com/walmart/associate/ios-keychaindb/3.2/ios-keychaindb-3.2.keychain-db" -o ${WORKSPACE}/ios/BuildSupport/${KEYCHAIN_NAME}
+fi
+
+KEYCHAIN_BASENAME=`echo ${KEYCHAIN_NAME} | sed 's/-db$//'`
+
+echo " KEYCHAIN TO ADD: [${KEYCHAIN_NAME}]"
+echo "KEYCHAIN_BASENAME: [${KEYCHAIN_BASENAME}]"
+echo " CRED: [${KEYCHAIN_PW}]"
+
+echo ""
+echo "***********************************"
+echo "* Deleting existing temp keychain"
+echo "* ~/Library/Keychains/${KEYCHAIN_NAME}"
+security delete-keychain ~/Library/Keychains/$KEYCHAIN_NAME
+set -e
+
+CURRENT_KEYCHAIN_SEARCH_LIST=`security list-keychains`
+echo "Current keychain search list (User & System):"
+echo "-------------------------------------"
+echo "${CURRENT_KEYCHAIN_SEARCH_LIST}"
+echo "-------------------------------------"
+
+
+echo ""
+echo "***********************************"
+echo "* Parsing Existing User Keychain search list"
+echo "* Remove Malformed Keychain names & Duplicates"
+echo "* Expected Format: <name>.keychain"
+echo "* Malform Example: [login.keych] [mobilesigning.ke]"
+echo "* πββοΈ These are usually scripting mistakes that get carried forward. Forever."
+echo "* All of the MISTAKES & DUPS were getting added to the keychain search list. "
+echo "* Since XCode signs every thing, this can have a huge impact "
+echo "* on iOS build & archive times. Keep it clean & save some time. "
+echo "*"
+keychains=$(security list-keychains -d user)
+keychainNames=();
+#initializing with custom Keychain basename
+keychainNames+=(${KEYCHAIN_BASENAME})
+
+#looping through all the user keychains
+#cleaning them up
+#removing dups
+for keychain in $keychains
+do
+ basename=$(basename "$keychain")
+ keychainName=${basename::${#basename}}
+
+ echo " keychainName(raw):[$keychainName]"
+
+ ##formating
+ keychainName=`echo $keychainName | sed 's/\"//g'| sed 's/-db$//'`
+
+ #filtering out malformed keychain names
+ SUFFIX=`echo ${keychainName}|awk -F\. '{print $2}'`
+ if [ "${SUFFIX}" == "keychain" ];then
+ keychainNames+=(${keychainName})
+ echo " keychainName(fmt):[${keychainName}]"
+ else
+ echo " keychainName(cul):[${keychainName}]"
+ fi
+done
+
+#sorting to get list of unique keychains
+FILTERED_KEYCHAINNAMES=($(echo "${keychainNames[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '))
+
+#throwing up some stats
+RAW_KEYCHAINCNT=`echo ${keychains} |wc -w|awk '{print $1}'`
+#adding the KEYCHAIN_BASENAME to the initial Keychain total count
+RAW_KEYCHAINCNT=$((${RAW_KEYCHAINCNT} + 1))
+SCRUBBED_KEYCHAINCNT=`echo ${#keychainNames[@]}|awk '{print $1}'`
+UNIQUE_KEYCHAINCNT=`echo ${#FILTERED_KEYCHAINNAMES[@]}|awk '{print $1}'`
+
+echo "--------------------------------------------"
+echo "USER KEYCHAIN NUMBERS. TOTAL:[${RAW_KEYCHAINCNT}] π§Ό SCRUBBED:[${SCRUBBED_KEYCHAINCNT}] π¦ UNIQUE:[${UNIQUE_KEYCHAINCNT}]";
+echo " UNIQUE USER KEYCHAIN:[${FILTERED_KEYCHAINNAMES[@]}]";
+echo "----"
+echo " πββοΈ TOTALS include all the User Keychains + the Custom Keychain that is going to be added."
+echo "--------------------------------------------"
+
+
+echo ""
+echo "***********************************"
+echo "* π§ Cleaning up existing app keychain db"
+echo "* Removing all [*keychain-db] files except for [login.keychain-db] )"
+KEYCHAIN_COUNT_BEFORE=`find ~/Library/Keychains/. -type f -name '*keychain-db' -not -name 'login.keychain-db' | wc -l`
+find ~/Library/Keychains/. -type f -name '*keychain-db' -not -name 'login.keychain-db' | xargs rm
+KEYCHAIN_COUNT_AFTER=`find ~/Library/Keychains/. -type f -name '*keychain-db' -not -name 'login.keychain-db' | wc -l`
+echo " RESULTS: Before[${KEYCHAIN_COUNT_BEFORE}] After[${KEYCHAIN_COUNT_AFTER}]"
+
+
+echo ""
+echo "***********************************"
+echo "* π§ Adding keychain to search list[${FILTERED_KEYCHAINNAMES[@]}]"
+mkdir -p ~/Library/Keychains/
+cp ./BuildSupport/$KEYCHAIN_NAME ~/Library/Keychains/
+security unlock-keychain -p "$KEYCHAIN_PW" $KEYCHAIN_NAME
+security set-keychain-settings -t 7200 "$KEYCHAIN_NAME"
+security list-keychains -s "${FILTERED_KEYCHAINNAMES[@]}"
+
+UPDATED_KEYCHAIN_SEARCH_LIST=`security list-keychains`
+echo "Updated keychain search list (User & System):"
+echo "-------------------------------------"
+echo "${UPDATED_KEYCHAIN_SEARCH_LIST}"
+echo "-------------------------------------"
+
+
+echo ""
+echo "***********************************"
+echo "* π§ Allow keychain to be used for codesigning"
+security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KEYCHAIN_PW" $KEYCHAIN_NAME
+
+
+#cleanup existing/old profiles
+echo ""
+echo "***********************************"
+echo "* π§ Cleaning up PROFILES"
+rm ~/Library/MobileDevice/Provisioning\ Profiles/* ||:
+
+
+#Adding required profiles to folder that Xcode uses
+echo ""
+echo "***********************************"
+echo "* π§ Adding required profiles Dir"
+mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
+
+profiles=`find ${PROVISIONING_PROFILE} -type f -name "*.mobileprovision"`
+echo "Profiles: ${profiles}"
+for currProfile in $profiles
+do
+ if [ -f "${currProfile}" ]; then
+ echo "* π§ **** Installing ${currProfile}] ****"
+ cp "${currProfile}" ~/Library/MobileDevice/Provisioning\ Profiles/
+ else
+ echo "π ERROR: The profile does not exist [${currProfile}]"
+ fi
+done
+
+
+echo "Finished"
--- scripts/BuildSupport/looper-setup.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+export PATH=$PATH:~/.gem/ruby/2.0.0/bin
+
+echo "Selecting expected Xcode version"
+/usr/bin/sudo -E /usr/local/bin/xcversion installed
+/usr/bin/sudo -E /usr/local/bin/xcversion select 10.1
+/usr/bin/sudo -E /usr/local/bin/xcversion selected
+
+echo "macOS `sw_vers -productVersion`"
+xcodebuild -version | xargs
+swift -version | xargs
+
+if ! gem list -i octokit; then
+ gem install --user-install --source http://nexus.prod.walmart.com/content/repositories/rubygems octokit -v 4.0.0
+fi
| feat(ui): update scripts | feat(ui): update scripts
|
6e40101a2d5840067f1d3f011ba711cf3f24d304 | --- package-lock.json
@@ -4363,9 +4363,9 @@
"integrity": "sha512-kGPI7/o+3DiIAhMTyPco72J7ftlJLPO/Eh+W2aCnFEHlH6ngKIOUrX3xSK8Lm9rBVWL3q2ZGzqCqsJXjwJW5ww=="
},
"@walmart/inbox-mini-app": {
- "version": "0.37.0-beta.5",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.37.0-beta.5.tgz",
- "integrity": "sha512-UdUTxc76jS4p82BR3r3EkgCWgTWMAjKhAbGol8G0p4PiFxb7yL5rhvXxXW4LcYV70uHL9bUrmU9mYWi2qzdrnQ=="
+ "version": "0.39.0",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.39.0.tgz",
+ "integrity": "sha512-A4ha9LfzNcDRdsD57QW1VZCtWY/mMGXZ3ft340AgJ0tvN0WibQaHV2GUlDLcNKt4RxnULYtXVa+B+tgAXbsbmw=="
},
"@walmart/iteminfo-mini-app": {
"version": "4.2.3",
@@ -4408,12 +4408,12 @@
"@walmart/moment-walmart": {
"version": "1.0.4",
"resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.4.tgz",
- "integrity": "sha512-iTkDEL7GeYYS8laso4ECQ7DyHgBxnJh/uP5PJNQMHZyKb8niIwIwb19HFLuGBVRa9vZIjTz7mChSydbIn4KV0w=="
+ "integrity": "sha1-696avfrTbdFORoktjdt8w3uZ9hw="
},
"@walmart/patient-portal-mobile": {
"version": "2.1.14",
"resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.14.tgz",
- "integrity": "sha512-LhqS1Ogr1vi5Nj2/gIRPQnn/ogReKbIhXvXsLdDzltCibI5YGoKxHpReIQKp3YJ01xBUJyUBzrc3G/JCe7KYSg==",
+ "integrity": "sha1-6a8PZ45o8XUCL3Jj8H7rlEfmefQ=",
"requires": {
"@react-native-community/datetimepicker": "^3.0.3",
"@walmart/react-native-collapsible": "1.5.3",
@@ -4459,7 +4459,7 @@
"@walmart/react-native-collapsible": {
"version": "1.5.3",
"resolved": "https://npme.walmart.com/@walmart/react-native-collapsible/-/react-native-collapsible-1.5.3.tgz",
- "integrity": "sha512-A/eHjceqHN2FJVaimSrKO/wIHgP5ymIoiyTMRa10ce8NZ7ejhPelIkCqzwjvQ328HG38y7HPelvu/6xlsiFlUQ==",
+ "integrity": "sha1-XoOvTwTbUqaib/9Ii//qp9yNBQk=",
"requires": {
"prop-types": "^15.6.2"
}
@@ -4467,7 +4467,7 @@
"@walmart/react-native-env": {
"version": "0.2.0",
"resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.2.0.tgz",
- "integrity": "sha512-YkJeKZP5HuqzZF6y4H/mnktOuWzMhDUFYOkjItGfuesYSZaigcZYOklu6Ut5FFwWgy7xiS+FzvMW7IUZkxKlOw=="
+ "integrity": "sha1-Wj8o61r2LUN+3ZXhDrzrmHwelGU="
},
"@walmart/react-native-logger": {
"version": "1.29.0",
@@ -4477,7 +4477,7 @@
"@walmart/react-native-shared-navigation": {
"version": "0.4.0",
"resolved": "https://npme.walmart.com/@walmart/react-native-shared-navigation/-/react-native-shared-navigation-0.4.0.tgz",
- "integrity": "sha512-xXCe5sJeytOO9HAKLaTiQQMzomfUS2wUP6ICLYv9BGtdJUDmoKNT7aFYeRDGPgvPvkc1A8oFrqJIrOshjLnxSg=="
+ "integrity": "sha1-dBX44FzZJKjZPuXiMoFiFQzybYE="
},
"@walmart/react-native-sumo-sdk": {
"version": "2.2.2-beta.2",
@@ -9434,7 +9434,7 @@
"indent-string": {
"version": "3.2.0",
"resolved": "https://npme.walmart.com/indent-string/-/indent-string-3.2.0.tgz",
- "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=",
+ "integrity": "sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==",
"dev": true
},
"inflight": {
@@ -18420,7 +18420,7 @@
"react-native-wm-config": {
"version": "0.1.1",
"resolved": "https://npme.walmart.com/react-native-wm-config/-/react-native-wm-config-0.1.1.tgz",
- "integrity": "sha512-s3S3bciDoyVqUyfzVKsXJp+aQxPriU62yL+cvbBJB6d7sGnCFHDQHF7/2y8YfK4Qc756VQ2o3SgCzlcQEYoTEw=="
+ "integrity": "sha1-Nn+tRZascRxL031AMLmpsn4nbB4="
},
"react-native-wm-network": {
"version": "0.2.0",
@@ -18435,7 +18435,7 @@
"react-native-wm-telemetry": {
"version": "0.3.0",
"resolved": "https://npme.walmart.com/react-native-wm-telemetry/-/react-native-wm-telemetry-0.3.0.tgz",
- "integrity": "sha512-zTOSJ7BMbGHaqAF8+LDQI/s5winKcxsHSe4hv49gUbfDz19v71apgNchz31W1D2UQP+kNgrglrmCdmr5RdI8mw=="
+ "integrity": "sha1-8QwZvpngLi+J6pHSOcu+5HqQcLs="
},
"react-native-wm-voice-text": {
"version": "0.6.0",
@@ -19574,7 +19574,7 @@
"squiggly-localization": {
"version": "0.0.2",
"resolved": "https://npme.walmart.com/squiggly-localization/-/squiggly-localization-0.0.2.tgz",
- "integrity": "sha512-9j/XUl0XvLk5wksN/nhOcRHmHesVHopX7v3Z1Hv398/656CLarKW0FAqL28zjKO68YH566s8PM1gflrAayBuMA=="
+ "integrity": "sha1-3ksz5Io53VPnUBiRSVDpxDaSGHU="
},
"sshpk": {
"version": "1.16.1",
@@ -20975,7 +20975,7 @@
"wfm-allspark-data-library": {
"version": "0.0.11",
"resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.11.tgz",
- "integrity": "sha512-o34ej3nNhCcy3uwWkOJcU/3zjXmX+VvbqiZrEgQwrxbO6cbJGxiK1Tz/JQX8j1lwi6cZFJKvDOucJtlduzVQrg==",
+ "integrity": "sha1-E27LsiPO+Sbj5h3p0FQpcH9VU8g=",
"requires": {
"@walmart/functional-components": "^1.0.22",
"@walmart/react-native-env": "^0.1.0",
@@ -20989,7 +20989,7 @@
"@walmart/react-native-env": {
"version": "0.1.0",
"resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.1.0.tgz",
- "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ=="
+ "integrity": "sha1-ojNwDE5pPTzF1RuQXDc//Fnlpz0="
},
"moment": {
"version": "2.24.0",
@@ -20999,7 +20999,7 @@
"react-native-ssmp-sso-allspark": {
"version": "0.0.1-rc8",
"resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz",
- "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg=="
+ "integrity": "sha1-/SHw48C+3muBMp2bynExhYPZl0s="
}
}
},
@@ -21100,12 +21100,12 @@
"wifi-store-locator": {
"version": "1.0.0-alpha2",
"resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.0.0-alpha2.tgz",
- "integrity": "sha512-Gj0fP/NwQAguJrxEuRuHQjlUHDDH2qnFZAGgh1R0l1CUAPKFROL8L8gHZ1GDKnfoYMev7AOXKcEbZVcXpNomOg=="
+ "integrity": "sha1-W1OXsVMHI8dYMcI0QKg6pJO/R3Q="
},
"wm-react-native-vector-icons": {
"version": "1.0.33",
"resolved": "https://npme.walmart.com/wm-react-native-vector-icons/-/wm-react-native-vector-icons-1.0.33.tgz",
- "integrity": "sha512-pAcEq6iOVxzKM55qucKOkh2ML3kii4yGJ5YdmMEOcRAGH4fQ1lHa7BETIl+jzX5n1ZVKgWkzmAiH3vw0nkuklQ==",
+ "integrity": "sha1-vIAL0WOWBBaAsIuacYHnzsxTQxk=",
"requires": {
"lodash": "^4.0.0",
"prop-types": "^15.6.2",
--- package.json
@@ -83,7 +83,7 @@
"@walmart/gtp-shared-components": "1.6.0",
"@walmart/impersonation-mini-app": "1.1.0",
"@walmart/ims-print-services-ui": "0.1.34",
- "@walmart/inbox-mini-app": "0.37.0-beta.5",
+ "@walmart/inbox-mini-app": "0.39.0",
"@walmart/iteminfo-mini-app": "4.2.3",
"@walmart/manager-approvals-miniapp": "0.0.60",
"@walmart/metrics-mini-app": "0.8.1",
| update stable version | update stable version
|
faade4ab3f4bbcde1feffd85f51c5319c8a8ace0 | --- __tests__/images/IconTest.tsx
@@ -6,7 +6,7 @@ import {Icon} from '../../src/images/Icon';
describe('Icon', () => {
it('renders a known image of an icon', () => {
const props = {
- name: 'HomeTab',
+ name: 'TouchID',
};
let component: ReactTestRenderer;
--- __tests__/images/__snapshots__/IconTest.tsx.snap
@@ -4,7 +4,7 @@ exports[`Icon renders a known image of an icon 1`] = `
<Image
source={
Object {
- "testUri": "../../../src/images/assets/home-tab.png",
+ "testUri": "../../../src/images/assets/touch-id.png",
}
}
style={
| update icon test | update icon test
|
a2d213f35c3db94dac2767d35959d971f7e9ef40 | --- src/auth/ErrorScreen.tsx
@@ -44,7 +44,8 @@ export const ErrorScreen: FC<any> = (props) => {
const userIdValid = !formDirty || !!userId;
const siteIdValid = !formDirty || !!siteId;
- const missingFields = !userIdValid || !siteIdValid;
+ const errSelectValid = !formDirty || !!errorCategory;
+ const missingFields = !userIdValid || !siteIdValid || !errSelectValid;
useEffect(() => {
WmTelemetry.logEvent(SSO_APP, 'feedback_screen_loaded', {});
@@ -148,11 +149,16 @@ export const ErrorScreen: FC<any> = (props) => {
style={[
styles.fieldSet,
styles.userIdInput,
- !siteIdValid && styles.errorBorder,
+ !errSelectValid && styles.errorBorder,
]}>
<Picker
selectedValue={errorCategory}
- onValueChange={(itemValue) => setErrorCategory(itemValue)}>
+ style={!errorCategory && styles.placeholder}
+ onValueChange={(itemValue, index) => {
+ index === 0
+ ? setErrorCategory('')
+ : setErrorCategory(itemValue);
+ }}>
{ERROR_CATEGORIES.map((err, index) => {
const errTranslate =
index === 0
--- src/auth/styles.ts
@@ -128,6 +128,10 @@ export default StyleSheet.create({
lineHeight: 28,
fontWeight: '700',
},
+ placeholder: {
+ fontWeight: '300',
+ color: colors.gray['100'],
+ },
requiredSection: {
marginTop: 24,
},
@@ -168,6 +172,7 @@ export default StyleSheet.create({
},
requiredErrorContainer: {
marginLeft: 17,
+ marginBottom: 20,
flexDirection: 'row',
position: 'absolute',
bottom: -20, // lineHeight + desired margin top
| update picker look and feel | update picker look and feel
|
991ea905a81822fe6d8f6cddf0f5ab991b1acf5d | --- .looper.multibranch.yml
@@ -101,7 +101,7 @@ envs:
releaseType: "develop"
releaseTypeDesc: "Builds from develop branch; internal integration testing"
slackIcon: ":construction:"
- slackChannel: "allspark-buils-developer"
+ slackChannel: "allspark-builds-developer"
buildType: "SNAPSHOT"
rc:
| fix slack channel name | fix slack channel name
|
1ea94ad9437ed44b0a16ed68f2cb6c5467b0bdb6 | --- graphql.yml
@@ -9,96 +9,78 @@ applications:
- name: "dev"
persistedQueries:
- name: "GetDailyRoster"
- hash: "7663a368b04af90885c43146eb878ac07a2e18b0803ee51615315e1a7f6196fc"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v1"
- name: "GetSupplyChainShifts"
- hash: "b0f8dbb33dfb79cf68890fa719d4a9a6a2ab8e851ea3a81708a31ac9078c988c"
queryTemplate: "src/queries/getSupplyChainShifts.graphql"
tags:
- "v1"
- name: "GetSupplyChainTeamById"
- hash: "0ccb3d33d7a1dfaaa2f4c76b7964446fdb6e4f6446d14a765c6cc6c12b763a6e"
queryTemplate: "src/queries/getSupplyChainTeamById.graphql"
tags:
- "v1"
- name: "GetTeamById"
- hash: "54caa5c7dc5bcfe37b0aaaaf24998db87ab10257717d88c0c8e8c5fa6d7c3f66"
queryTemplate: "src/queries/getTeamById.graphql"
tags:
- "v1"
- name: "GetTeamsByStore"
- hash: "8b1ebd4710302309f0a60876176bccb4db4dffcb2cd0a7658b0a329918646b62"
queryTemplate: "src/queries/getTeamsByStore.graphql"
tags:
- "v1"
- name: "SupplyChainTeamsByBusinessUnit"
- hash: "6d479684ad9f9c811f33635ccfc91b9658d0aa420f08ca54e9c9a90d74b2e7ad"
queryTemplate: "src/queries/supplyChainTeamsByBusinessUnit.graphql"
tags:
- "v1"
- name: "stage"
persistedQueries:
- name: "GetDailyRoster"
- hash: "7663a368b04af90885c43146eb878ac07a2e18b0803ee51615315e1a7f6196fc"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v1"
- name: "GetSupplyChainShifts"
- hash: "b0f8dbb33dfb79cf68890fa719d4a9a6a2ab8e851ea3a81708a31ac9078c988c"
queryTemplate: "src/queries/getSupplyChainShifts.graphql"
tags:
- "v1"
- name: "GetSupplyChainTeamById"
- hash: "0ccb3d33d7a1dfaaa2f4c76b7964446fdb6e4f6446d14a765c6cc6c12b763a6e"
queryTemplate: "src/queries/getSupplyChainTeamById.graphql"
tags:
- "v1"
- name: "GetTeamById"
- hash: "54caa5c7dc5bcfe37b0aaaaf24998db87ab10257717d88c0c8e8c5fa6d7c3f66"
queryTemplate: "src/queries/getTeamById.graphql"
tags:
- "v1"
- name: "GetTeamsByStore"
- hash: "8b1ebd4710302309f0a60876176bccb4db4dffcb2cd0a7658b0a329918646b62"
queryTemplate: "src/queries/getTeamsByStore.graphql"
tags:
- "v1"
- name: "SupplyChainTeamsByBusinessUnit"
- hash: "6d479684ad9f9c811f33635ccfc91b9658d0aa420f08ca54e9c9a90d74b2e7ad"
queryTemplate: "src/queries/supplyChainTeamsByBusinessUnit.graphql"
tags:
- "v1"
- name: "prod"
persistedQueries:
- name: "GetDailyRoster"
- hash: "7663a368b04af90885c43146eb878ac07a2e18b0803ee51615315e1a7f6196fc"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v1"
- name: "GetSupplyChainShifts"
- hash: "b0f8dbb33dfb79cf68890fa719d4a9a6a2ab8e851ea3a81708a31ac9078c988c"
queryTemplate: "src/queries/getSupplyChainShifts.graphql"
tags:
- "v1"
- name: "GetSupplyChainTeamById"
- hash: "0ccb3d33d7a1dfaaa2f4c76b7964446fdb6e4f6446d14a765c6cc6c12b763a6e"
queryTemplate: "src/queries/getSupplyChainTeamById.graphql"
tags:
- "v1"
- name: "GetTeamById"
- hash: "54caa5c7dc5bcfe37b0aaaaf24998db87ab10257717d88c0c8e8c5fa6d7c3f66"
queryTemplate: "src/queries/getTeamById.graphql"
tags:
- "v1"
- name: "GetTeamsByStore"
- hash: "8b1ebd4710302309f0a60876176bccb4db4dffcb2cd0a7658b0a329918646b62"
queryTemplate: "src/queries/getTeamsByStore.graphql"
tags:
- "v1"
- name: "SupplyChainTeamsByBusinessUnit"
- hash: "6d479684ad9f9c811f33635ccfc91b9658d0aa420f08ca54e9c9a90d74b2e7ad"
queryTemplate: "src/queries/supplyChainTeamsByBusinessUnit.graphql"
tags:
- "v1"
| Removing hash | Removing hash
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.