commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
46580c0f26e54676df8b224cd1ecd28c8b2d740d | --- packages/allspark-foundation/__tests__/Components/ComponentContainers.test.tsx
@@ -70,18 +70,6 @@ describe('ComponentContainer', () => {
container.remove('nonExistentComponent');
expect(container.hasComponent('mockComponent')).toBe(true);
});
-
-// test('layout renders components with given layout config', () => {
-// container.add('mockComponent1', MockComponent);
-// container.add('mockComponent2', MockComponent);
-
-// const { getAllByText } = render(
-// <container.Layout config={{ component1: 'mockComponent1', component2: 'mockComponent2' }} greeting="Hello" />
-// );
-
-// expect(getAllByText('Hello').length).toBe(2);
-// });
-
test('does not exceed the component limit', () => {
container = new ComponentContainer('1');
container.add('mockComponent1', MockComponent);
| code cleanup | code cleanup
|
01e85e4f2209bc6624465af036def64fee9f87d9 | --- packages/celebration-mini-app-graphql/CHANGELOG.md
@@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.29.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.28.5...@walmart/celebration-mini-app-graphql@1.29.0) (2025-12-22)
+
+### Features
+
+- **ui:** update store change functionality ([9f7c0a4](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/9f7c0a43cd4f47cc38edbf799cbe4a9dfad83aec))
+- **ui:** update store change functionality ([ed28ce7](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/ed28ce7ccffaa7c9633e6cfc92981f21a5643f6c))
+
## [1.28.5](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.28.4...@walmart/celebration-mini-app-graphql@1.28.5) (2025-12-19)
**Note:** Version bump only for package @walmart/celebration-mini-app-graphql
--- packages/celebration-mini-app-graphql/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/celebration-mini-app-graphql",
- "version": "1.28.5",
+ "version": "1.29.0",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/celebration-mini-app/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.41.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.40.0...@walmart/celebration-mini-app@1.41.0) (2025-12-22)
+
+### Features
+
+- **ui:** update store change functionality ([9f7c0a4](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/9f7c0a43cd4f47cc38edbf799cbe4a9dfad83aec))
+- **ui:** update store change functionality ([ed28ce7](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/ed28ce7ccffaa7c9633e6cfc92981f21a5643f6c))
+- **ui:** update store change functionality and tests ([657ca8a](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/657ca8a7cf54440aac2556c4b184761cd59e733b))
+
# [1.40.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.39.1...@walmart/celebration-mini-app@1.40.0) (2025-12-19)
### Features
--- packages/celebration-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/celebration-mini-app",
- "version": "1.40.0",
+ "version": "1.41.0",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
| chore(version): updating package version | chore(version): updating package version
- @walmart/celebration-mini-app@1.41.0
- @walmart/celebration-mini-app-graphql@1.29.0
|
2f50d2d764b8141c494efb15d6139c0899aebdb4 | --- package-lock.json
@@ -78,7 +78,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.15.6",
+ "@walmart/receipt-check-miniapp": "1.15.7",
"@walmart/redux-store": "3.5.0",
"@walmart/returns-mini-app": "1.9.0",
"@walmart/schedule-mini-app": "0.37.0",
@@ -8958,9 +8958,9 @@
}
},
"node_modules/@walmart/receipt-check-miniapp": {
- "version": "1.15.6",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.15.6.tgz",
- "integrity": "sha512-+J4dsgicHrurcXC72uqM0RmAel7EZGGMrvT3ZyVABX/YNpcqutNpaAz3nAr5u0JomeYHIikhs+lSrIcpjCCOJg==",
+ "version": "1.15.7",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.15.7.tgz",
+ "integrity": "sha512-IMJq/ol5gBkSWBzBRDIbdDnogYDg/yVpKM4t5m7JcTG5oT1FguEVW0QDXG4ZsUj2A/X0yFkUtsxduKlyy7N8Kg==",
"hasInstallScript": true,
"dependencies": {
"@walmart/tcnumber": "^2.3.3",
@@ -33752,9 +33752,9 @@
"version": "2.5.1"
},
"@walmart/receipt-check-miniapp": {
- "version": "1.15.6",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.15.6.tgz",
- "integrity": "sha512-+J4dsgicHrurcXC72uqM0RmAel7EZGGMrvT3ZyVABX/YNpcqutNpaAz3nAr5u0JomeYHIikhs+lSrIcpjCCOJg==",
+ "version": "1.15.7",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.15.7.tgz",
+ "integrity": "sha512-IMJq/ol5gBkSWBzBRDIbdDnogYDg/yVpKM4t5m7JcTG5oT1FguEVW0QDXG4ZsUj2A/X0yFkUtsxduKlyy7N8Kg==",
"requires": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
--- package.json
@@ -119,7 +119,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.15.6",
+ "@walmart/receipt-check-miniapp": "1.15.7",
"@walmart/redux-store": "3.5.0",
"@walmart/returns-mini-app": "1.9.0",
"@walmart/schedule-mini-app": "0.37.0",
| minor fix | minor fix
|
902925068f12e70b4d9a05b845b8b859d5d5ae24 | --- src/navigation/AssociateHallwayNav/MainStackNav.tsx
@@ -383,14 +383,14 @@ export const MainStackNav = () => {
/>
<MainStack.Screen
- name='PTTDeleteMessageConfirmation'
- component={Components.DeleteMessageConfirmationScreen}
- options={Properties.DeleteMessageConfirmationProperties}
+ name='PTTDeleteMessageConfirmation'
+ component={Components.DeleteMessageConfirmationScreen}
+ options={Properties.DeleteMessageConfirmationProperties}
/>
<MainStack.Screen
- name='PTTDeleteMessageModal'
- component={Components.DeleteMessageModal}
- options={Properties.DeleteMessageModalProperties}
+ name='PTTDeleteMessageModal'
+ component={Components.DeleteMessageModal}
+ options={Properties.DeleteMessageModalProperties}
/>
<MainStack.Screen name='WhatsNewModal' component={WhatsNewModal} />
@@ -444,7 +444,7 @@ export const MainStackNav = () => {
</MainStack.Navigator>
{/* PTT Notifications Container */}
- <Components.NotificationsContainer />
+ <Components.NotificationsContainer />
</>
);
};
| fix lint issue | fix lint issue
|
3631b8231ed7accd0b41da7137528725e645df40 | --- .yarn/patches/@walmart-ui-components-npm-1.19.0-8c7e633082.patch
Binary files /dev/null and b/.yarn/patches/@walmart-ui-components-npm-1.19.0-8c7e633082.patch differ
| feat: update ui-components version | feat: update ui-components version
|
759173d9562b64fc6185baaf89581d1f0540578b | --- src/hooks/roster.ts
@@ -34,7 +34,7 @@ export const useDailyRoster = () => {
},
errorPolicy: 'all',
notifyOnNetworkStatusChange: true,
- fetchPolicy: 'cache-first', // For the first query execution
+ fetchPolicy: 'network-only', // For the first query execution
nextFetchPolicy: 'cache-and-network', // For the subsequent query execution
skip: !storeId || !countryCode,
context: getGraphQLConfig(envConfig),
--- src/hooks/roster.ts
@@ -34,7 +34,7 @@ export const useDailyRoster = () => {
},
errorPolicy: 'all',
notifyOnNetworkStatusChange: true,
- fetchPolicy: 'cache-first', // For the first query execution
+ fetchPolicy: 'network-only', // For the first query execution
nextFetchPolicy: 'cache-and-network', // For the subsequent query execution
skip: !storeId || !countryCode,
context: getGraphQLConfig(envConfig),
| Revert "update fetch policy" | Revert "update fetch policy"
This reverts commit b5872160b69d19a37cc586bb9f09aa1495fce8e1.
|
ca3a6b531814f22b278e19516d73fc7170c717bb | --- src/images/assets/index.ts
@@ -21,6 +21,7 @@ const Images: {[key: string]: ImageURISource} = {
ModFlexIllustration: require('./mod-flex-illustration.png'),
NoInternet: require('./no-internet.png'),
NotificationsIllustration: require('./notifications-illustration.png'),
+ OneIllustration: require('./one-illustration.png'),
PinIllustration: require('./pin-illustration.png'),
ProfileIllustration: require('./profile-illustration.png'),
RefrigerationBadge: require('./refrigeration-alarm-badge.png'),
--- src/images/assets/one-illustration.jpeg
Binary files /dev/null and b/src/images/assets/one-illustration.jpeg differ
| add one illustration image | add one illustration image
|
845829a9bd495d5400165ea4a2cbf563459227a7 | --- docs/CHANGELOG.md
@@ -1,3 +1,13 @@
+# [3.17.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.16.0...v3.17.0) (2026-01-20)
+
+
+### Features
+
+* **ui:** added checks ([2d8356e](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/2d8356e90fa68cf8fb14f1930d60e49155e1b76a))
+* **ui:** added mock ([49864df](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/49864df2b2bc5feb14fd79dfc7c1c59bfaa53f35))
+* **ui:** update wmconnect and roster version ([b99304a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b99304a18f9ad98fdf87f49b0cadf0e841318467))
+* **ui:** update wmconnect and roster version ([251fe83](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/251fe830c9d6d43eba20c96aca4c03724eedee87))
+
# [3.16.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.15.0...v3.16.0) (2026-01-16)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "3.16.0",
+ "version": "3.17.0",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 3.17.0 [skip ci] | chore(release): 3.17.0 [skip ci]
# [3.17.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.16.0...v3.17.0) (2026-01-20)
### Features
* **ui:** added checks ([2d8356e](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/2d8356e90fa68cf8fb14f1930d60e49155e1b76a))
* **ui:** added mock ([49864df](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/49864df2b2bc5feb14fd79dfc7c1c59bfaa53f35))
* **ui:** update wmconnect and roster version ([b99304a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b99304a18f9ad98fdf87f49b0cadf0e841318467))
* **ui:** update wmconnect and roster version ([251fe83](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/251fe830c9d6d43eba20c96aca4c03724eedee87))
|
624bc0dbab6a584649d566b823085c20a1331301 | --- .looper-pr.yml
@@ -32,4 +32,3 @@ envs:
SLACK_CHANNEL: "smdv-miniapp"
-
| fix: SMDV-9999 update looper | fix: SMDV-9999 update looper
|
f061caff0356a038d8dd8459659d555184aba1dc | --- docs/docs/getting-started.md
@@ -11,7 +11,7 @@ Allspark Foundation is currently being used in [allspark-core](https://gecgithub
## Pre-requisites for Allspark Foundation
See the [Introduction](./components/allspark%20foundation/foundation-intro.md) page for Foundation.
-## Pre-requisites for Allspark Core
+## Pre-requisites for Allspark Core
- Node v20+
- java v17+
- Yarn v4+ via corepack [(Yarn migration guide)](https://confluence.walmart.com/display/ALLSPARK/Migration+Guide+-+Yarn)
@@ -24,3 +24,7 @@ See the [Introduction](./components/allspark%20foundation/foundation-intro.md) p
For migrating a feature app to Foundation, read the [migration documentation](./components/allspark%20foundation/migration%20guides/foundation-migration.md). There are six phases in total, however the final phase is optional.
For creating a new feature app, see the [feature app template](https://gecgithub01.walmart.com/store-systems-associate-tech-platform/feature-app-template).
+
+## Troubleshooting
+
+[FAQs](https://confluence.walmart.com/display/IPEXP/Allspark+core+onboarding+issues)
| docs: add troubleshooting section | docs: add troubleshooting section
|
074f66923f78b9686b832d8b24f704badc298f81 | --- CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [6.33.1-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.33.1-alpha.3...v6.33.1-alpha.4) (2025-07-18)
+
+**Note:** Version bump only for package @walmart/me-at-walmart
+
+
+
+
+
## [6.33.1-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.33.1-alpha.2...v6.33.1-alpha.3) (2025-07-18)
**Note:** Version bump only for package @walmart/me-at-walmart
--- lerna.json
@@ -1,5 +1,5 @@
{
- "version": "6.33.1-alpha.3",
+ "version": "6.33.1-alpha.4",
"npmClient": "yarn",
"changelogPreset": "angular",
"command": {
--- packages/core-services-allspark/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [6.33.1-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.33.1-alpha.3...v6.33.1-alpha.4) (2025-07-18)
+
+**Note:** Version bump only for package @walmart/core-services-allspark
+
+
+
+
+
## [6.33.1-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.33.1-alpha.2...v6.33.1-alpha.3) (2025-07-18)
**Note:** Version bump only for package @walmart/core-services-allspark
--- packages/core-services-allspark/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "6.33.1-alpha.3",
+ "version": "6.33.1-alpha.4",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/core-widget-registry/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [6.33.1-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.33.1-alpha.3...v6.33.1-alpha.4) (2025-07-18)
+
+**Note:** Version bump only for package @walmart/core-widget-registry
+
+
+
+
+
## [6.33.1-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.33.1-alpha.2...v6.33.1-alpha.3) (2025-07-18)
**Note:** Version bump only for package @walmart/core-widget-registry
--- packages/core-widget-registry/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-widget-registry",
- "version": "6.33.1-alpha.3",
+ "version": "6.33.1-alpha.4",
"description": "Repo for Me@Walmart related widget registries",
"author": "rlane1 <russell.lane@walmart.com>",
"license": "ISC",
--- packages/me-at-walmart-common/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [6.33.1-alpha.4](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.33.1-alpha.3...v6.33.1-alpha.4) (2025-07-18)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-common
+
+
+
+
+
## [6.33.1-alpha.3](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.33.1-alpha.2...v6.33.1-alpha.3) (2025-07-18)
**Note:** Version bump only for package @walmart/me-at-walmart-common
--- packages/me-at-walmart-common/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-common",
- "version": "6.33.1-alpha.3",
+ "version": "6.33.1-alpha.4",
"description": "Common utilities and components for Me@Walmat mini apps",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/me-at-walmart-container/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [6.33.1-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.33.1-alpha.3...v6.33.1-alpha.4) (2025-07-18)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-container
+
+
+
+
+
## [6.33.1-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.33.1-alpha.2...v6.33.1-alpha.3) (2025-07-18)
**Note:** Version bump only for package @walmart/me-at-walmart-container
--- packages/me-at-walmart-container/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-container",
- "version": "6.33.1-alpha.3",
+ "version": "6.33.1-alpha.4",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
|
5229e067e63912d5961ca59926a9fd500f5b9b45 | --- __tests__/auth/AuthenticatorViewTest.tsx
@@ -149,6 +149,8 @@ describe('AuthenticatorView', () => {
return ssoState;
});
+ (mockConnectedSSO.promptUserForSite as jest.Mock).mockResolvedValue(100);
+
let component: ReactTestRenderer;
act(() => {
@@ -168,5 +170,6 @@ describe('AuthenticatorView', () => {
);
});
expect(mockConnectedSSO.getFreshAccessToken).toHaveBeenCalled();
+ expect(mockConnectedSSO.promptUserForSite).toHaveBeenCalled();
});
});
--- package-lock.json
@@ -1838,9 +1838,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.2.1",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.2.1.tgz",
- "integrity": "sha512-O8qe/Cr6pSb0EaudrtX7/i1PlvUFwKoTkwvpetmhZCJTMaze2P6B69g9N33y+5oBiaVApYx9YHzG3KSe04LxwA==",
+ "version": "0.3.0",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.3.0.tgz",
+ "integrity": "sha512-zsFmA95NXzXoQZ3ntyIpknykiu7QaMhXjtKbKxJORm7s4w1Qbq5hVi9DBnIiKiua1fQV4k9u9y+F6pmVBObh7w==",
"requires": {
"@babel/preset-typescript": "^7.10.4",
"apisauce": "^1.1.2",
--- package.json
@@ -32,7 +32,7 @@
"@react-navigation/stack": "^5.9.0",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": "^4.14.159",
- "@walmart/ask-sam-mini-app": "^0.2.1",
+ "@walmart/ask-sam-mini-app": "^0.3.0",
"@walmart/gtp-shared-components": "^0.1.3",
"@walmart/react-native-shared-navigation": "^0.2.0",
"@walmart/redux-store": "^0.1.1",
--- src/auth/AuthenticatorView.tsx
@@ -9,7 +9,12 @@ import {
TextStyle,
} from 'react-native';
import {SSOEnv} from './ssoPingFedType';
-import {ConnectedSSO, SSOState} from '@walmart/redux-store';
+import {
+ ConnectedSSO,
+ SSOState,
+ SSOActionCreators,
+ getStore,
+} from '@walmart/redux-store';
import {useSelector, shallowEqual} from 'react-redux';
export interface Props {
@@ -53,6 +58,19 @@ export const AuthenticatorView: React.FC<Props> = (props) => {
}
}, [user, activityName, connectedSSO]);
+ useEffect(() => {
+ if (user && !parseInt(user.siteId + '', 10)) {
+ connectedSSO.promptUserForSite().then((newSite: string | number) => {
+ getStore().dispatch(
+ SSOActionCreators.signedIn({
+ ...user,
+ siteId: newSite,
+ }),
+ );
+ });
+ }
+ }, [user, connectedSSO]);
+
// temp
useEffect(() => {
if (user && user.userId && !authToken) {
| updating ask sam; adding prompt for user site if missing | updating ask sam; adding prompt for user site if missing
|
5ceb84636dc22dc734a216facc87634363a20079 | --- package-lock.json
@@ -43,7 +43,7 @@
"@walmart/attendance-mini-app": "0.190.4",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.1",
- "@walmart/copilot-mini-app": "^1.77.9",
+ "@walmart/copilot-mini-app": "1.77.9",
"@walmart/core-services": "~2.1.1",
"@walmart/core-services-allspark": "~2.11.1",
"@walmart/core-utils": "~2.0.5",
@@ -63,7 +63,7 @@
"@walmart/iteminfo-mini-app": "7.4.0",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "13.0.3",
- "@walmart/metrics-mini-app": "0.15.5",
+ "@walmart/metrics-mini-app": "0.15.7",
"@walmart/mod-flex-mini-app": "1.10.4",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
@@ -7622,9 +7622,9 @@
}
},
"node_modules/@walmart/metrics-mini-app": {
- "version": "0.15.5",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.5.tgz",
- "integrity": "sha512-uIU7pYVk0wW1Sj6SBvS0NAMqukJab39aHgavTA+er6A0w8QuhGt5NEmQjBZyuRXNZYMXiHiB4+WwXXxpNJzrag==",
+ "version": "0.15.7",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.7.tgz",
+ "integrity": "sha512-uD+exgQPtMYYTMwG0jhXu6U4forY8u4gc2qPBUYeunNu/TbyDTZLKnuE93ygSPTyPT7s3nRptcJLmzWPxPk0Rg==",
"dependencies": {
"@types/base-64": "^1.0.0",
"apisauce": "1.1.2",
@@ -7642,7 +7642,6 @@
"lodash": ">=4.17.21",
"react": "18.1.0",
"react-native": "0.70.9",
- "react-native-fast-image": ">=8.6.3",
"react-native-get-random-values": ">=1.8.0",
"react-native-linear-gradient": ">=2.6.2",
"react-redux": ">=8.0.4",
@@ -30576,9 +30575,9 @@
"integrity": "sha512-JvV5AUWQ51uTUyD3LNk0UD8W5nQjUTRnMdJMvh2x3OHmKAhqTGctHoKjcpBzrtZlBie6e6Az3CUWtPrcA2TZwA=="
},
"@walmart/metrics-mini-app": {
- "version": "0.15.5",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.5.tgz",
- "integrity": "sha512-uIU7pYVk0wW1Sj6SBvS0NAMqukJab39aHgavTA+er6A0w8QuhGt5NEmQjBZyuRXNZYMXiHiB4+WwXXxpNJzrag==",
+ "version": "0.15.7",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.7.tgz",
+ "integrity": "sha512-uD+exgQPtMYYTMwG0jhXu6U4forY8u4gc2qPBUYeunNu/TbyDTZLKnuE93ygSPTyPT7s3nRptcJLmzWPxPk0Rg==",
"requires": {
"@types/base-64": "^1.0.0",
"apisauce": "1.1.2",
--- package.json
@@ -104,7 +104,7 @@
"@walmart/iteminfo-mini-app": "7.4.0",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "13.0.3",
- "@walmart/metrics-mini-app": "0.15.5",
+ "@walmart/metrics-mini-app": "0.15.7",
"@walmart/mod-flex-mini-app": "1.10.4",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
| metrics version bump | metrics version bump
|
73e0659bd7c269d96eca7d2d71a7f5d579d586eb | --- src/redux/selectors.ts
@@ -42,7 +42,7 @@ export const codeOfConductLink = createSelector(
export const pushToTalkEnabled = createSelector(
[getTextingAppConfigData],
(state) =>
- state?.pushToTalkEnabled.toString().toLowerCase() === 'true' ?? false,
+ state?.pushToTalkEnabled?.toString()?.toLowerCase() === 'true' ?? false,
);
export const teamLeadJobDescriptions = createSelector(
--- src/redux/selectors.ts
@@ -42,7 +42,7 @@ export const codeOfConductLink = createSelector(
export const pushToTalkEnabled = createSelector(
[getTextingAppConfigData],
(state) =>
- state?.pushToTalkEnabled.toString().toLowerCase() === 'true' ?? false,
+ state?.pushToTalkEnabled?.toString()?.toLowerCase() === 'true' ?? false,
);
export const teamLeadJobDescriptions = createSelector(
| adding null guard | adding null guard
|
eb91ffd3517c92f04290a1e2e4ae6ecda225250c | --- 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.7](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.21.6...@walmart/associate-exp-hub-hub@2.21.7) (2026-01-16)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-hub
+
## [2.21.6](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.21.5...@walmart/associate-exp-hub-hub@2.21.6) (2026-01-16)
**Note:** Version bump only for package @walmart/associate-exp-hub-hub
--- packages/associate-exp-hub-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-hub",
- "version": "2.21.6",
+ "version": "2.21.7",
"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.14.6](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.5...@walmart/associate-exp-hub-mini-app@1.14.6) (2026-01-16)
+
+### Bug Fixes
+
+- **ui:** MyWalmart 2.0 VQA Bugs ([0c76f3b](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/0c76f3b70e6a6297dd683af94a47d0a6679567a3))
+
## [1.14.5](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.3...@walmart/associate-exp-hub-mini-app@1.14.5) (2026-01-16)
### Bug Fixes
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.14.5",
+ "version": "1.14.6",
"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.25.4](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.25.3...@walmart/associate-exp-hub-team-switcher@2.25.4) (2026-01-16)
+
+### Bug Fixes
+
+- **ui:** MyWalmart 2.0 VQA Bugs ([0c76f3b](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/0c76f3b70e6a6297dd683af94a47d0a6679567a3))
+
## [2.25.3](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.25.1...@walmart/associate-exp-hub-team-switcher@2.25.3) (2026-01-16)
### Bug Fixes
--- packages/associate-exp-hub-team-switcher/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-team-switcher",
- "version": "2.25.3",
+ "version": "2.25.4",
"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.7
- @walmart/associate-exp-hub-mini-app@1.14.6
- @walmart/associate-exp-hub-team-switcher@2.25.4
|
0188b03dfadd482b755d341c019958c486314199 | --- package-lock.json
@@ -4343,9 +4343,9 @@
"integrity": "sha512-rt56lVXxfj0DWIjqUqn3oXpAlbe7YrOi6/c5hcGByaFe/f42qmPsesxWK3xkKOMsJ7LUXZz50aCb1+lHlv2kog=="
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.117",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.117.tgz",
- "integrity": "sha512-thSC4BAnDXS8r+aMYca94EtYwUftY/MPoJbIm0QPaC8u+mZUnk7lgRXTIjw3b+cP/uHTAQg/ooTPsozm1oU8Og=="
+ "version": "0.5.119",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.119.tgz",
+ "integrity": "sha512-jX0hqL5NhUTpjwrAUun1T0SarKEEeVs9uE2AaDpj9HQPZX8VsbX3iWSOgOkXewpQXoxMcseTmCohFQfNoynqWA=="
},
"@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.2.1",
- "@walmart/push-to-talk-mini-app": "0.5.118",
+ "@walmart/push-to-talk-mini-app": "0.5.119",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| bumping version | bumping version
|
9be940b21b42bc43ca3e58757ca17f2b843f966f | --- package-lock.json
@@ -37,7 +37,7 @@
"@walmart/amp-mini-app": "0.2.13",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.3.3",
- "@walmart/attendance-mini-app": "0.29.0",
+ "@walmart/attendance-mini-app": "0.30.0",
"@walmart/config-components": "4.0.1",
"@walmart/core-services": "~1.4.9",
"@walmart/core-services-allspark": "~1.10.11",
@@ -62,8 +62,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.9.7",
- "@walmart/payrollsolution_miniapp": "^0.130.4",
+ "@walmart/pay-stub-miniapp": "0.9.7",
+ "@walmart/payrollsolution_miniapp": "0.130.4",
"@walmart/price-changes-mini-app": "1.5.6",
"@walmart/profile-feature-app": "0.0.71",
"@walmart/push-to-talk-mini-app": "1.8.29",
@@ -4704,9 +4704,9 @@
}
},
"node_modules/@walmart/attendance-mini-app": {
- "version": "0.29.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.29.0.tgz",
- "integrity": "sha512-uG52MEHSMBjTY9hijZFLXzDOJ5oRzQo59u6dQzTXWD+t46Xiy9jdbd+pWxb8g4eo1e0tQ0kDA6Ns3hGCDt9UBA==",
+ "version": "0.30.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.30.0.tgz",
+ "integrity": "sha512-iB4nsTMX9CovhwhyqdqyG9npe7tAzvocBTqQXKuyciNZ6wdTQ2XJpYqkoJohS1gOZsY2lk0DrWFNGFKRQA8Ncg==",
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.10",
"@react-native-community/datetimepicker": "3.0.9",
@@ -24906,9 +24906,9 @@
}
},
"@walmart/attendance-mini-app": {
- "version": "0.29.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.29.0.tgz",
- "integrity": "sha512-uG52MEHSMBjTY9hijZFLXzDOJ5oRzQo59u6dQzTXWD+t46Xiy9jdbd+pWxb8g4eo1e0tQ0kDA6Ns3hGCDt9UBA==",
+ "version": "0.30.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.30.0.tgz",
+ "integrity": "sha512-iB4nsTMX9CovhwhyqdqyG9npe7tAzvocBTqQXKuyciNZ6wdTQ2XJpYqkoJohS1gOZsY2lk0DrWFNGFKRQA8Ncg==",
"requires": {
"@react-native-async-storage/async-storage": "^1.17.10",
"@react-native-community/datetimepicker": "^5.1.0",
--- package.json
@@ -79,7 +79,7 @@
"@walmart/amp-mini-app": "0.2.13",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.3.3",
- "@walmart/attendance-mini-app": "0.29.0",
+ "@walmart/attendance-mini-app": "0.30.0",
"@walmart/config-components": "4.0.1",
"@walmart/core-services": "~1.4.9",
"@walmart/core-services-allspark": "~1.10.11",
| Bump AMA to 0.30.0 | Bump AMA to 0.30.0
|
5ed98fbc3f64a3c96faa0bd0fb6200fe1e1d8cff | --- packages/allspark-utils/package.json
@@ -29,7 +29,7 @@
"clean": "rm -rf lib/ || true"
},
"dependencies": {
- "crypto-js": "~4.1.1",
+ "crypto-js": "~4.2.0",
"lodash": "~4.17.21",
"redux": "^4.2.0",
"redux-saga": "^1.2.2",
| fix: packages/allspark-utils/package.json & packages/allspark-utils/package-lock.json to reduce vulnerabilities | fix: packages/allspark-utils/package.json & packages/allspark-utils/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-CRYPTOJS-6028119 |
cec491c15551a9031bd0d53cee8ecf3fa894c085 | --- graphql.yml
@@ -78,11 +78,11 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociateById.graphql'
tags:
- 'v1'
- - name: 'getAssociatePreferences'
- hash: '38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4'
- queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql'
- tags:
- - 'v1'
+ # - name: "getAssociatePreferences"
+ # hash: "38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4"
+ # queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql"
+ # tags:
+ # - "v1"
- name: 'getDailyRosterHome'
hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql'
@@ -93,28 +93,28 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql'
tags:
- 'v1'
- - name: 'getSupplyChainTeamPreference'
- hash: '61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839'
- queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql'
- tags:
- - 'v1'
+ # - name: "getSupplyChainTeamPreference"
+ # hash: "61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839"
+ # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql"
+ # tags:
+ # - "v1"
- name: 'getTeamByIdHome'
hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql'
tags:
- 'v1'
- - name: 'GetTeamsByStore'
- hash: 'e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44'
- queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql'
- tags:
- - 'v1'
+ # - name: "GetTeamsByStore"
+ # hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44"
+ # queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql"
+ # tags:
+ # - "v1"
- name: 'upsertAssociatePreference'
hash: '972c522c6ad0675f13587637cff2dd2ed46937a9878a48a66ad2bc2f7d51a036'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateAssociatePrivacyPreference.graphql'
tags:
- 'v1'
- - name: 'upsertManagerExperiencePreference'
- hash: 'bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca'
- queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql'
- tags:
- - 'v1'
+ # - name: "upsertManagerExperiencePreference"
+ # hash: "bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca"
+ # queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql"
+ # tags:
+ # - "v1"
| Update graphql.yml | Update graphql.yml
|
ea786e5723793283e075a0341a9cd5fcbbc17231 | --- package.json
@@ -88,7 +88,7 @@
"@walmart/attendance-mini-app": "3.156.0",
"@walmart/avp-feature-app": "0.16.8",
"@walmart/avp-shared-library": "0.10.7",
- "@walmart/backroom-mini-app": "1.10.5",
+ "@walmart/backroom-mini-app": "1.11.3",
"@walmart/calling-mini-app": "0.7.35",
"@walmart/checkout-mini-app": "4.8.12",
"@walmart/compass-sdk-rn": "6.2.2",
--- yarn.lock
@@ -7486,9 +7486,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/backroom-mini-app@npm:1.10.5":
- version: 1.10.5
- resolution: "@walmart/backroom-mini-app@npm:1.10.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.10.5.tgz"
+"@walmart/backroom-mini-app@npm:1.11.3":
+ version: 1.11.3
+ resolution: "@walmart/backroom-mini-app@npm:1.11.3"
peerDependencies:
"@react-navigation/native": ^6.0.0
"@react-navigation/stack": ^6.1.0
@@ -7511,7 +7511,7 @@ __metadata:
react-native-svg-transformer: ">=1.0.0"
react-redux: ">=8.0.0"
redux: ">=4.0.0"
- checksum: 10c0/f2ddd4cd62bbcb0e873fe18c618f95b00888bf89cc7648e0bcd0a9540f34e15f4b7876971bb204c8b8bbb72127f0acb77a98beffe956078ef0e4fb0ba74b87d9
+ checksum: 10c0/9faad445d9ac4fea21153a153538310b3bf08ad79b7d5a560f132b47c98ab29bd435441daf8ea3e21283993f4d9413ef6e9098cd4b01699129ce5e1535761105
languageName: node
linkType: hard
@@ -8321,7 +8321,7 @@ __metadata:
"@walmart/attendance-mini-app": "npm:3.156.0"
"@walmart/avp-feature-app": "npm:0.16.8"
"@walmart/avp-shared-library": "npm:0.10.7"
- "@walmart/backroom-mini-app": "npm:1.10.5"
+ "@walmart/backroom-mini-app": "npm:1.11.3"
"@walmart/calling-mini-app": "npm:0.7.35"
"@walmart/checkout-mini-app": "npm:4.8.12"
"@walmart/compass-sdk-rn": "npm:6.2.2"
| feat(upgrade backroom-mini-app to 1.11.3): SVZPK-4212 Print new cases (#4177) | feat(upgrade backroom-mini-app to 1.11.3): SVZPK-4212 Print new cases (#4177)
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
2a3cea85f44bd6dabfa9e21c2de55566b0964ed3 | --- src/components/AssociateRosterItem/index.tsx
@@ -31,7 +31,11 @@ import {AssociateItemProps} from './types';
import {styles} from './style';
import {useTranslation} from 'react-i18next';
import {ROSTER_I18N_NAMESPACE} from '../../translations';
-import {messageButtonEnabled, pushToTalkEnabled} from '../../redux/selectors';
+import {
+ getEncryptedUserId,
+ messageButtonEnabled,
+ pushToTalkEnabled,
+} from '../../redux/selectors';
import {useDispatch} from 'react-redux';
import {rosterSlice} from '../../redux/reducer';
import {storeAssociateName} from '../../utils/recentSearchHistory';
@@ -53,6 +57,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
const isPushToTalkEnabled: boolean = useSelector(pushToTalkEnabled);
const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled);
const userIsImpersonatedOnDev: boolean = useIsImpersonatedOnDev();
+ const viewerId = useSelector(getEncryptedUserId);
if (!associate) {
return null;
@@ -73,7 +78,9 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
await storeAssociateName(associateName);
}
if (siteId) {
- await navigateToMessageScreen(siteId, [associate.associateId!]);
+ const encryptedId = encryptUserId(associate?.win?.toString() ?? '');
+ const participants: string[] = [viewerId, encryptedId];
+ await navigateToMessageScreen(siteId, participants);
}
};
const shouldShowMessageAndPttButton =
| update participants for msg screen nav | update participants for msg screen nav
|
a603744ebb167e288fd6e325038fd8f1ce339e8d | --- package.json
@@ -159,7 +159,7 @@
"@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.9.20#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.9.20-3371a478c8.patch",
"@walmart/receipt-check-miniapp": "1.34.4",
"@walmart/redux-store": "~6.3.28",
- "@walmart/returns-mini-app": "4.17.21",
+ "@walmart/returns-mini-app": "4.17.23",
"@walmart/rfid-scan-mini-app": "2.15.5",
"@walmart/rn-mobile-sdk-pairing": "2.1.8",
"@walmart/rn-receiving-mini-app": "2.8.25",
--- yarn.lock
@@ -8507,7 +8507,7 @@ __metadata:
"@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.9.20#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.9.20-3371a478c8.patch"
"@walmart/receipt-check-miniapp": "npm:1.34.4"
"@walmart/redux-store": "npm:~6.3.28"
- "@walmart/returns-mini-app": "npm:4.17.21"
+ "@walmart/returns-mini-app": "npm:4.17.23"
"@walmart/rfid-scan-mini-app": "npm:2.15.5"
"@walmart/rn-mobile-sdk-pairing": "npm:2.1.8"
"@walmart/rn-receiving-mini-app": "npm:2.8.25"
@@ -9158,9 +9158,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/returns-mini-app@npm:4.17.21":
- version: 4.17.21
- resolution: "@walmart/returns-mini-app@npm:4.17.21::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freturns-mini-app%2F-%2F%40walmart%2Freturns-mini-app-4.17.21.tgz"
+"@walmart/returns-mini-app@npm:4.17.23":
+ version: 4.17.23
+ resolution: "@walmart/returns-mini-app@npm:4.17.23::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freturns-mini-app%2F-%2F%40walmart%2Freturns-mini-app-4.17.23.tgz"
dependencies:
"@walmart/common-utilities-js": "npm:^1.2.10"
"@walmart/virtual-zpl-printer-model": "npm:^0.2.11"
@@ -9180,7 +9180,7 @@ __metadata:
react-native-mask-input: ^1.2.3
react-redux: "*"
redux: "*"
- checksum: 10c0/ebce932141a87b660636085bf23aaf24ad4e07a3d417b3ab4510339a5ee1b7ef789039d40cc0db63fe0ba6dfc14e52199e9190cec5cdf0406a695184582c9d1e
+ checksum: 10c0/d77404eb4fce3afce85956d914a902d4b5ad0c1188fe7401eec1c3bc4f68a7aa0d0db1e820098ba22b273d6d096f3ccec84051437bd33426cc17851ca923c995
languageName: node
linkType: hard
| chore(ui): LD 3.5 changes (#5124) | chore(ui): LD 3.5 changes (#5124)
|
30235a109f412e986b6cb9c94c3d8195f9084249 | --- package.json
@@ -157,7 +157,7 @@
"@walmart/translator-mini-app": "1.4.2",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch",
"@walmart/walmart-fiscal-week": "^0.3.6",
- "@walmart/welcomeme-mini-app": "1.0.0",
+ "@walmart/welcomeme-mini-app": "1.0.9",
"@walmart/wfm-ui": "2.4.0",
"@walmart/wm-plus-mini-app": "1.4.4",
"@walmart/wmconnect-mini-app": "2.12.3",
--- yarn.lock
@@ -7378,7 +7378,7 @@ __metadata:
"@walmart/translator-mini-app": "npm:1.4.2"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch"
"@walmart/walmart-fiscal-week": "npm:^0.3.6"
- "@walmart/welcomeme-mini-app": "npm:1.0.0"
+ "@walmart/welcomeme-mini-app": "npm:1.0.9"
"@walmart/wfm-ui": "npm:2.4.0"
"@walmart/wm-plus-mini-app": "npm:1.4.4"
"@walmart/wmconnect-mini-app": "npm:2.12.3"
@@ -8609,9 +8609,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/welcomeme-mini-app@npm:1.0.0":
- version: 1.0.0
- resolution: "@walmart/welcomeme-mini-app@npm:1.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwelcomeme-mini-app%2F-%2Fwelcomeme-mini-app-1.0.0.tgz"
+"@walmart/welcomeme-mini-app@npm:1.0.9":
+ version: 1.0.9
+ resolution: "@walmart/welcomeme-mini-app@npm:1.0.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwelcomeme-mini-app%2F-%2F%40walmart%2Fwelcomeme-mini-app-1.0.9.tgz"
peerDependencies:
"@walmart/allspark-foundation": "*"
"@walmart/schedule-mini-app": "*"
@@ -8628,7 +8628,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/4296bec31e61a17efc5bfa19c39071caeb43bbc1950e29467e8c285be59ab684c01991e9a5000fa569d135870ab8f300630e83387cdf927264345061e43169fd
+ checksum: 10c0/5167cc3006a74016496bb487fa821da43b2cd6aea779ea7fa918f0cbc8ef3c9a215aa1e5f476b5562ef979614d44ff633393960a3fb5af232d0bf8515db8080b
languageName: node
linkType: hard
| feat(ui): RECRUIT-98825 welcomeme drop 29 changes (#3923) | feat(ui): RECRUIT-98825 welcomeme drop 29 changes (#3923)
* bump package version
* Adding firebase logger for landing page
* feat(welcomeme): RECRUIT-98875 - Bump package version of welcomeme
* refactor(package.json): RECRUIT-98825 package vesion fix
* refactor: RECRUIT-98825 yarn merge
---------
Co-authored-by: Sam Christopher <s0a097g@wal-mart.com>
Co-authored-by: Sam Ambrose - s0a097g <Sam.Ambrose@walmart.com>
Co-authored-by: Trilok Bakulapalli <Trilok.Bakulapalli@walmart.com> |
6b818efbda5ed79d8a9c69c923db7728dbfe9c07 | --- package-lock.json
@@ -3398,9 +3398,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.21",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.21.tgz",
- "integrity": "sha512-byTE/rzy8h4p7zIFRwvjJ6C/emtj2VdKA9Rt5MucyvDINTxOpQ9vpBTdOX/8oNalSE7E2Ns1ttKJi5gBqiFByQ=="
+ "version": "0.5.22-rc.4",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.22-rc.4.tgz",
+ "integrity": "sha512-IWXTtOgOw8koqDf31lxAnmgOjD3aaoJL8Aa35vyrcYokTDAzm6c8jiXF2L19jJQWGp02oVCGE4bFfDbnM1LmKA=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -79,7 +79,7 @@
"@walmart/iteminfo-mini-app": "1.0.19",
"@walmart/manager-approvals-miniapp": "0.0.40",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.5.21",
+ "@walmart/push-to-talk-mini-app": "0.5.22-rc.4",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.27.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| PTT Drop 3 jobDesc fix | PTT Drop 3 jobDesc fix
|
ecfdbba6006e2ce825a3be1235c6e3e48a32c5fc | --- package.json
@@ -1,7 +1,7 @@
{
"name": "@walmart/wmconnect-mini-app",
"version": "2.36.3",
- "main": "main.js",
+ "main": "dist/index.js",
"files": [
"dist",
"main.js"
| feat(ui): update package | feat(ui): update package
|
ab4c7ac31be24b022c3f8355053a91b71495163d | --- .looper.multibranch.yml
@@ -125,7 +125,7 @@ envs:
slackChannel: "allspark-builds-feature"
buildType: "SNAPSHOT"
buildGABuilds: false
- buildTeflon: false
+ buildTeflon: true
teamsReleaseTypeIcon: "https://ih1.redbubble.net/image.1355946808.4705/flat,128x128,075,t.u1.jpg"
teamsWebhookUrl: "https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/36aedf59babe497b8b4edd5920d0dd9f/f02e8323-deff-42c4-85df-613f84ca35ff"
APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT: "allsparktestersfeature"
| Enabling teflon builds for feature/ branches | Enabling teflon builds for feature/ branches
|
fb1a2a0c6c687d50efbcd56db610d80720725d05 | --- packages/allspark-foundation/src/Navigation/client.tsx
@@ -15,6 +15,7 @@ import {
modalfy,
ModalState,
ModalfyParams,
+ ModalStateSubscription,
} from 'react-native-modalfy';
import { EventManager, QueueManager } from '@walmart/allspark-utils';
@@ -47,6 +48,7 @@ export class NavigationClient<
'navigate',
'dispatch',
'reset',
+ 'updateModalState',
]);
private _eventManager = new EventManager<EventManagerTypes>(['screenChange']);
@@ -61,11 +63,25 @@ export class NavigationClient<
},
};
+ // Internal modalfy instance and modal related properties
+ private _modalfy = modalfy<M>();
private _modalStackConfig = {} as ModalStackConfig;
private _modalStack = createModalStack(
this._modalStackConfig,
DefaultModalOptions
);
+ private _modalSubscription: ModalStateSubscription<M>;
+ private _modalInitialized = false;
+
+ constructor() {
+ // Subscribe to modalfy state changes to capture initialization of modal state
+ // from modalfy provider. Only then we can update the modal state or else it could be overwritten.
+ this._modalSubscription = ModalState.subscribe(() => {
+ this._modalSubscription.unsubscribe();
+ this._modalInitialized = true;
+ this._queueManager.flush('updateModalState', this._updateModalState);
+ });
+ }
/**
* Flush the various navigation queues. should be called once
@@ -110,10 +126,14 @@ export class NavigationClient<
* addModal or configure
*/
private _updateModalState = () => {
- ModalState.setState<M>(() => ({
- ...ModalState.getState<M>(),
- stack: createModalStack<M>(this._modalStackConfig, this._config.modals),
- }));
+ if (!this._modalInitialized) {
+ this._queueManager.enqueue('updateModalState', undefined);
+ } else {
+ ModalState.setState<M>(() => ({
+ ...ModalState.getState<M>(),
+ stack: createModalStack<M>(this._modalStackConfig, this._config.modals),
+ }));
+ }
};
/**
@@ -469,18 +489,18 @@ export class NavigationClient<
* Returns the current open modal (null if none).
*/
public getCurrentModal = () => {
- modalfy<M>().currentModal;
+ this._modalfy.currentModal;
};
/**
* Opens a modal based on the provided modalName.
*/
public openModal = <K extends keyof M>(
- modalName: K,
+ modalName: Exclude<keyof M, number | symbol>,
params?: M[K],
callback?: () => void
) => {
- modalfy().openModal(modalName.toString(), params, callback);
+ this._modalfy.openModal(modalName, params, callback);
};
/**
@@ -489,8 +509,11 @@ export class NavigationClient<
* You can also provide a modalName if you want to close a different modal than the latest opened.
* This will only close the latest instance of that modal, see closeModals() if you want to close all instances.
*/
- public closeModal = (modalName?: keyof M, callback?: () => void) => {
- modalfy().closeModal(modalName?.toString(), callback);
+ public closeModal = (
+ modalName?: Exclude<keyof M, number | symbol>,
+ callback?: () => void
+ ) => {
+ this._modalfy.closeModal(modalName, callback);
};
/**
@@ -498,15 +521,18 @@ export class NavigationClient<
*
* You can use it whenever you have the same modal opened several times, to close all of them at once.
*/
- public closeModals = (modalName: keyof M, callback?: () => void) => {
- modalfy().closeModals(modalName.toString(), callback);
+ public closeModals = (
+ modalName: Exclude<keyof M, number | symbol>,
+ callback?: () => void
+ ) => {
+ this._modalfy.closeModals(modalName, callback);
};
/**
* Closes every open modal.
*/
public closeAllModals = (callback?: () => void) => {
- modalfy().closeAllModals(callback);
+ this._modalfy.closeAllModals(callback);
};
}
--- packages/allspark-foundation/src/Navigation/types.ts
@@ -41,6 +41,7 @@ export type QueueTypes<P extends ParamListBase> = {
navigate: QueuedNavigation<P>;
dispatch: NavigationAction;
reset: NavigationState<P>;
+ updateModalState: undefined;
};
export type EventManagerTypes = {
| fix: modalfy provider init was overwriting early modal registration | fix: modalfy provider init was overwriting early modal registration
|
8f409b1dd6acd3a21be63df5fa4e60d622aa16e3 | --- env.dev.js
@@ -21,6 +21,8 @@ export default {
internalUrl:
'https://api-proxy.stg.soa-api-proxy.platform.glb.prod.walmart.com',
externalUrl: 'https://developer.api.stg.walmart.com',
+ internalBffUrl:"https://api-proxy-es2.stg-us-azure.soa-api-proxy.platform.prod.us.walmart.net",
+ externalBffUrl:"https://developer.api.us.stg.walmart.com",
bffService: '/api-proxy/service/store/systems-bff/v1/',
allsparkService:
'https://developer.api.stg.walmart.com/api-proxy/service/allspark/api/v1',
--- env.prod.js
@@ -19,6 +19,8 @@ export default {
internalUrl: 'https://api-proxy.prod.soa-api-proxy.platform.prod.walmart.com',
externalUrl: 'https://developer.api.us.walmart.com',
bffService: '/api-proxy/service/store/systems-bff/v1/',
+ internalBffUrl:"https://api-proxy-es2.prod-us-azure.soa-api-proxy.platform.prod.us.walmart.net",
+ externalBffUrl:"https://developer.api.us.walmart.com",
allsparkService:
'https://developer.api.walmart.com/api-proxy/service/allspark/api/v1',
};
--- package.json
@@ -107,7 +107,7 @@
"rn-fetch-blob": "^0.12.0",
"seamless-immutable": "^7.1.4",
"victory-native": "^35.0.1",
- "@walmart/inbox-mini-app": "0.0.11",
+ "@walmart/inbox-mini-app":"0.0.14",
"javascript-time-ago": "^2.3.3"
},
"devDependencies": {
--- src/core/envInit.ts
@@ -5,11 +5,17 @@ import Config from '../../env';
const initialState = {
env: Config.env,
consumerId: Config.consumerId,
+ externalBffUrl: Config.externalBffUrl,
+ internalBffUrl: Config.internalBffUrl,
+ bffService: Config.bffService,
};
setSharedConfig({
env: Config.env,
appConsumerId: Config.consumerId,
+ externalBffUrl: Config.externalBffUrl,
+ internalBffUrl: Config.internalBffUrl,
+ bffService: Config.bffService,
} as SharedConfig);
const envReducer = (state: any = initialState) => state;
| Version update/inbox mini app (#166) | Version update/inbox mini app (#166)
* inbox-mini-app versio upgraded to 0.0.13
* Version update to 0.0.14
Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com> |
aa79b522b89bd2fc3d35df7119d4d3f3eebc0065 | --- android/app/src/main/AndroidManifest.xml
@@ -37,8 +37,7 @@
android:allowBackup="false"
android:theme="@style/AppTheme"
tools:replace="android:allowBackup"
- android:extractNativeLibs="true"
- >
+ android:extractNativeLibs="true">
<!-- disables automatic screen tracking; removing for now due to an issue: https://github.com/firebase/firebase-android-sdk/issues/3240 -->
<!-- <meta-data
| Revert manifest changes | Revert manifest changes
|
1ef9ab262b06ef4cfd6bc12c02a8c7183e4f102c | --- package.json
@@ -16,7 +16,7 @@
"lint": "yarn workspaces foreach --all -p run lint",
"lint:fix": "yarn workspaces foreach --all -p run lint:fix",
"prepare": "husky",
- "test": "jest --no-watchman"
+ "test": "npm run build && jest --no-watchman"
},
"repository": {
"type": "git",
--- packages/allspark-authentication/__mocks__/nanoid.js
@@ -0,0 +1,3 @@
+module.exports = {
+ nanoid: jest.fn(),
+};
--- packages/allspark-authentication/__mocks__/react-native-app-auth.js
@@ -0,0 +1,6 @@
+module.exports = {
+ authorize: jest.fn(),
+ logout: jest.fn(),
+ refresh: jest.fn(),
+ revoke: jest.fn(),
+};
--- packages/allspark-authentication/__tests__/Authentication.test.ts
@@ -0,0 +1,202 @@
+import { AppAuthError, authorize, logout, revoke } from 'react-native-app-auth';
+import { AllsparkAuthentication } from '../src/Authentication';
+import { NO_CACHE_ERROR } from '../src/constants';
+
+describe('AllsparkAuthentication', () => {
+ const ENV = 'dev';
+ const ConfigCache = {
+ getItem: jest.fn(),
+ setItem: jest.fn(),
+ removeItem: jest.fn(),
+ };
+ const ResultCache = {
+ getItem: jest.fn(),
+ setItem: jest.fn(),
+ removeItem: jest.fn(),
+ };
+ let auth: AllsparkAuthentication;
+
+ const onInfoListener = jest.fn();
+ const onErrorListener = jest.fn();
+
+ const AuthorizeConfig = {
+ issuer: 'https://pfedcert.wal-mart.com',
+ clientId: 'MeAtWMT',
+ redirectUrl: 'com.walmart.stores.allspark.beta://SSOLogin',
+ scopes: ['openid', 'full'],
+ clientAuthMethod: 'post' as const,
+ };
+
+ const AuthorizeResult = {
+ accessToken: '1234',
+ accessTokenExpirationDate: '1234',
+ idToken: '1234',
+ refreshToken: '1234',
+ };
+
+ beforeEach(() => {
+ ConfigCache.getItem.mockReset();
+ ResultCache.getItem.mockReset();
+ ConfigCache.setItem.mockReset();
+ ResultCache.setItem.mockReset();
+ ConfigCache.removeItem.mockReset();
+ ResultCache.removeItem.mockReset();
+ onInfoListener.mockReset();
+ onErrorListener.mockClear();
+
+ auth = new AllsparkAuthentication({
+ env: ENV,
+ cache: {
+ config: ConfigCache,
+ result: ResultCache,
+ },
+ onInfo: onInfoListener,
+ onError: onErrorListener,
+ });
+ });
+
+ it('merges the config', () => {
+ auth.mergeConfig({
+ env: 'beta',
+ });
+ // @ts-ignore
+ expect(auth._config.env).toEqual('beta');
+ });
+
+ describe('getUser', () => {
+ it('throws error if no user signed in', async () => {
+ ResultCache.getItem.mockResolvedValueOnce(null);
+ await expect(auth.getUser).rejects.toEqual(NO_CACHE_ERROR);
+ });
+ });
+
+ describe('signIn', () => {
+ it('handles signs in success', async () => {
+ (authorize as jest.Mock).mockResolvedValueOnce(AuthorizeResult);
+ const result = await auth.signIn(AuthorizeConfig);
+
+ expect(authorize).toHaveBeenCalledWith(AuthorizeConfig);
+ expect(ConfigCache.setItem).toHaveBeenCalledWith(
+ `wm_auth_config_${ENV}`,
+ JSON.stringify(AuthorizeConfig)
+ );
+ expect(ResultCache.setItem).toHaveBeenCalledWith(
+ `wm_auth_result_${AuthorizeConfig.issuer}_${AuthorizeConfig.clientId}`,
+ JSON.stringify(AuthorizeResult)
+ );
+ expect(onInfoListener).toHaveBeenCalledWith({
+ category: 'SIGN_IN_SUCCESSFUL',
+ clientId: AuthorizeConfig.clientId,
+ });
+ expect(result).toEqual(AuthorizeResult);
+ });
+
+ it('handles signs in error', async () => {
+ const error: AppAuthError = {
+ name: 'Error',
+ message: 'Something went wrong!',
+ code: 'access_denied',
+ };
+ (authorize as jest.Mock).mockRejectedValueOnce(error);
+
+ await auth.signIn(AuthorizeConfig).catch((e) => {
+ expect(e).toEqual(error);
+ });
+
+ expect(onErrorListener).toHaveBeenCalledWith({
+ category: 'SIGN_IN_ERROR',
+ code: error.code,
+ message: error.message,
+ });
+ });
+ });
+
+ describe('signOut', () => {
+ it('throws error if no user signed in', async () => {
+ ResultCache.getItem.mockResolvedValueOnce(null);
+ await expect(auth.signOut).rejects.toEqual(NO_CACHE_ERROR);
+ });
+
+ it('does nothing if cached result has no refresh token', async () => {
+ ConfigCache.getItem.mockResolvedValueOnce(AuthorizeConfig);
+ ResultCache.getItem.mockResolvedValueOnce({
+ ...AuthorizeResult,
+ refreshToken: undefined,
+ });
+ await auth.signOut();
+
+ expect(revoke).not.toHaveBeenCalled();
+ expect(logout).not.toHaveBeenCalled();
+ });
+
+ it('throws error if result is found but no config', async () => {
+ ConfigCache.getItem.mockResolvedValueOnce(null);
+ ResultCache.getItem.mockResolvedValueOnce(AuthorizeResult);
+
+ await expect(auth.signOut).rejects.toEqual(NO_CACHE_ERROR);
+ });
+
+ it('if user and valid cache, revokes token and logs out, clears cache', async () => {
+ ResultCache.getItem.mockResolvedValueOnce(AuthorizeResult);
+ ConfigCache.getItem.mockResolvedValueOnce(AuthorizeConfig);
+ await auth.signOut();
+
+ // Revoke token and fire listener
+ expect(revoke).toHaveBeenCalledWith(AuthorizeConfig, {
+ tokenToRevoke: AuthorizeResult.accessToken,
+ includeBasicAuth: false,
+ sendClientId: true,
+ });
+ expect(onInfoListener).toHaveBeenCalledWith({
+ category: 'REVOKE_TOKEN_SUCCESS',
+ });
+
+ // Logout and fire listener
+ expect(logout).toHaveBeenCalledWith(AuthorizeConfig, {
+ idToken: AuthorizeResult.idToken,
+ postLogoutRedirectUrl: '',
+ });
+ expect(onInfoListener).toHaveBeenCalledWith({
+ category: 'LOGOUT_USER_SUCCESS',
+ });
+
+ // General sign out listener
+ expect(onInfoListener).toHaveBeenCalledWith({
+ category: 'SIGN_OUT_SUCCESS',
+ });
+
+ // Remove cache values
+ expect(ConfigCache.removeItem).toHaveBeenCalledWith(
+ `wm_auth_config_${ENV}`
+ );
+ expect(ResultCache.removeItem).toHaveBeenCalledWith(
+ `wm_auth_result_${AuthorizeConfig.issuer}_${AuthorizeConfig.clientId}`
+ );
+ });
+
+ it('clears cache regardless of error', async () => {
+ const revokeError: AppAuthError = {
+ name: 'Error',
+ message: 'Something went wrong!',
+ code: 'end_session_failed',
+ };
+ ResultCache.getItem.mockResolvedValueOnce(AuthorizeResult);
+ ConfigCache.getItem.mockResolvedValueOnce(AuthorizeConfig);
+ (revoke as jest.Mock).mockRejectedValueOnce(revokeError);
+
+ await auth.signOut();
+
+ expect(ConfigCache.removeItem).toHaveBeenCalledWith(
+ `wm_auth_config_${ENV}`
+ );
+ expect(ResultCache.removeItem).toHaveBeenCalledWith(
+ `wm_auth_result_${AuthorizeConfig.issuer}_${AuthorizeConfig.clientId}`
+ );
+ expect(onErrorListener).toHaveBeenCalledWith({
+ category: 'REVOKE_TOKEN_ERROR',
+ code: revokeError.code,
+ message: revokeError.message,
+ });
+ });
+ });
+});
--- packages/allspark-authentication/__tests__/constantTest.ts
@@ -1,11 +0,0 @@
-import {
- NO_CACHE_ERROR,
- AUTH_CONFIG_STORAGE_KEY,
- AUTH_RESULT_STORAGE_KEY,
-} from '../src/constants';
-
-test('constants', () => {
- expect(NO_CACHE_ERROR).toEqual('No user signed in');
- expect(AUTH_CONFIG_STORAGE_KEY).toEqual('wm_auth_config');
- expect(AUTH_RESULT_STORAGE_KEY).toEqual('wm_auth_result');
-});
--- packages/allspark-authentication/src/Authentication.ts
@@ -325,7 +325,6 @@ export class AllsparkAuthentication {
throw NO_CACHE_ERROR;
}
- // @todo - Add refreshToken & idToken to AuthData
const { idToken, refreshToken } = authResult;
if (refreshToken) {
| chore: writing initial tests for authentication | chore: writing initial tests for authentication
|
16a6d8c39367ba0a8cf2b3a3debeaed4e868c97f | --- package-lock.json
@@ -39,7 +39,7 @@
"@walmart/attendance-mini-app": "0.190.2",
"@walmart/compass-sdk-rn": "4.0.0",
"@walmart/config-components": "4.1.0-rc.4",
- "@walmart/copilot-mini-app": "^1.65.3",
+ "@walmart/copilot-mini-app": "^1.65.5",
"@walmart/core-services": "~2.0.19",
"@walmart/core-services-allspark": "~2.11.0",
"@walmart/core-utils": "~2.0.5",
@@ -4935,9 +4935,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "1.65.3",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.65.3.tgz",
- "integrity": "sha512-bcr4GfyRnhEfbV78ycZZfQBmED89FPx7yYfN9gYS6EuGbfuowb08/CJISj3jn8132Xu7t+78rQV4YdykCmDhkw==",
+ "version": "1.65.5",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.65.5.tgz",
+ "integrity": "sha512-J45Ufb9myRTi+lfQZPBu0M/u2P2cP9mZ1CS4D2ODua28+/d8ON2IXR8LQhQrqKIGD+o//Cvwt28SUckZ2Yw5Rg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -25130,9 +25130,9 @@
}
},
"@walmart/copilot-mini-app": {
- "version": "1.65.3",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.65.3.tgz",
- "integrity": "sha512-bcr4GfyRnhEfbV78ycZZfQBmED89FPx7yYfN9gYS6EuGbfuowb08/CJISj3jn8132Xu7t+78rQV4YdykCmDhkw=="
+ "version": "1.65.5",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.65.5.tgz",
+ "integrity": "sha512-J45Ufb9myRTi+lfQZPBu0M/u2P2cP9mZ1CS4D2ODua28+/d8ON2IXR8LQhQrqKIGD+o//Cvwt28SUckZ2Yw5Rg=="
},
"@walmart/core-services": {
"version": "2.0.19",
--- package.json
@@ -81,7 +81,7 @@
"@walmart/attendance-mini-app": "0.190.2",
"@walmart/compass-sdk-rn": "4.0.0",
"@walmart/config-components": "4.1.0-rc.4",
- "@walmart/copilot-mini-app": "^1.65.3",
+ "@walmart/copilot-mini-app": "^1.65.5",
"@walmart/core-services": "~2.0.19",
"@walmart/core-services-allspark": "~2.11.0",
"@walmart/core-utils": "~2.0.5",
| chore: bump copilot app | chore: bump copilot app
|
141def436784fb8cf12b0ab0301144ec975041d9 | --- package-lock.json
@@ -43,7 +43,7 @@
"@walmart/attendance-mini-app": "0.190.4",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.1",
- "@walmart/copilot-mini-app": "1.77.8",
+ "@walmart/copilot-mini-app": "^1.77.9",
"@walmart/core-services": "~2.1.1",
"@walmart/core-services-allspark": "~2.11.1",
"@walmart/core-utils": "~2.0.5",
@@ -7030,9 +7030,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "1.77.8",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.8.tgz",
- "integrity": "sha512-lMcC9wJWAlhP1MxJXNNx82ZxLt/jpCKpr59MQy8PSyjN+QDyYfJBbz3GfDQuCj+3wQjKsXOjMg1u3+LTI7iIVA==",
+ "version": "1.77.9",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.9.tgz",
+ "integrity": "sha512-6MyoDQk3oeLeYQlG1+/uPdn3urUgfC9ZE1IxRedV7+sKZhzpX5Shb7NYnC2jZssP4I0tYwLnQxF5LggIT7eEpg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -30415,9 +30415,9 @@
}
},
"@walmart/copilot-mini-app": {
- "version": "1.77.8",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.8.tgz",
- "integrity": "sha512-lMcC9wJWAlhP1MxJXNNx82ZxLt/jpCKpr59MQy8PSyjN+QDyYfJBbz3GfDQuCj+3wQjKsXOjMg1u3+LTI7iIVA=="
+ "version": "1.77.9",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.9.tgz",
+ "integrity": "sha512-6MyoDQk3oeLeYQlG1+/uPdn3urUgfC9ZE1IxRedV7+sKZhzpX5Shb7NYnC2jZssP4I0tYwLnQxF5LggIT7eEpg=="
},
"@walmart/core-services": {
"version": "2.1.1",
--- package.json
@@ -84,7 +84,7 @@
"@walmart/attendance-mini-app": "0.190.4",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.1",
- "@walmart/copilot-mini-app": "1.77.8",
+ "@walmart/copilot-mini-app": "1.77.9",
"@walmart/core-services": "~2.1.1",
"@walmart/core-services-allspark": "~2.11.1",
"@walmart/core-utils": "~2.0.5",
| chore: bump copilot 1.77.9 | chore: bump copilot 1.77.9
|
98d4707c31de416bcf4b2d1babaf66a6232dca58 | --- packages/allspark-foundation-hub/src/HubFeature/Hooks/useHubConfig.ts
@@ -1,7 +1,6 @@
import { ConfigSelectors } from '@walmart/allspark-foundation/Config';
import { useSelector } from 'react-redux';
-//Todo: Update appropriate types here
export const useHubConfig = (ccmNamespace: string, defaultValue: any) => {
const getCCMConfig =
ConfigSelectors.createFeatureConfigSelector(ccmNamespace);
| feat(ui): Update the refresh props for the hub | feat(ui): Update the refresh props for the hub
|
9a980c4da0fd3e986a3f7a73ccf56e5a43022378 | --- graphql.yml
@@ -15,6 +15,11 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociateById.graphql'
tags:
- 'v1'
+ - name: 'getDailyRosterHome'
+ hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql'
+ tags:
+ - 'v1'
- name: 'getLoggedInUser'
hash: '6b68b67a5067dd54e92573cbbb15862f8ecae6ee722436e71a09fcdb6d2d3c34'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql'
@@ -25,6 +30,11 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUserFallback.graphql'
tags:
- 'v1'
+ - name: 'getTeamByIdHome'
+ hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql'
+ tags:
+ - 'v1'
- name: 'prod'
persistedQueries:
- name: 'getAssociateById'
@@ -32,6 +42,11 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociateById.graphql'
tags:
- 'v1'
+ - name: 'getDailyRosterHome'
+ hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql'
+ tags:
+ - 'v1'
- name: 'getLoggedInUser'
hash: '6b68b67a5067dd54e92573cbbb15862f8ecae6ee722436e71a09fcdb6d2d3c34'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql'
@@ -42,3 +57,8 @@ applications:
queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUserFallback.graphql'
tags:
- 'v1'
+ - name: 'getTeamByIdHome'
+ hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql'
+ tags:
+ - 'v1'
--- packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql
@@ -1,6 +1,7 @@
query getTeamByIdHome($countryCode: String!, $date: Date!, $storeNbr: String!, $teamId: String!) {
getTeamById(countryCode: $countryCode, storeNbr: $storeNbr, teamId: $teamId) {
__typename
+ mewAbsentCount(date: $date)
mewClockedInCount
mewClockedOutCount
site
--- packages/me-at-walmart-athena-queries/src/getTeamByIdHome.ts
@@ -15,6 +15,7 @@ export type GetTeamByIdHomeQuery = {
__typename?: 'Query';
getTeamById?: {
__typename: 'Team';
+ mewAbsentCount?: number | null;
mewClockedInCount?: number | null;
mewClockedOutCount?: number | null;
site?: string | null;
@@ -36,6 +37,7 @@ export const GetTeamByIdHomeDocument = gql`
teamId: $teamId
) {
__typename
+ mewAbsentCount(date: $date)
mewClockedInCount
mewClockedOutCount
site
| fix: fix home queries and add back to yml file | fix: fix home queries and add back to yml file
|
94e7b29bda046d38d3836676b5dda3d86106775a | --- src/cafeOrders/utils.ts
@@ -105,12 +105,13 @@ export const messagesToSections = (
): SectionListData<LocalMessage>[] => {
const sections: SectionListData<LocalMessage>[] = [];
let messages: LocalMessage[] = [];
- let previousTimestamp: number = Date.now();
+ let previousTimestamp: number = 0;
// This is assuming that it is traversing descending order by timestamp
queryResults.forEach((queryResult) => {
const data = queryResult.data();
if (
+ previousTimestamp !== 0 &&
isDifferentDate(
previousTimestamp,
firestoreTimestampToMillis(data.createdAt),
--- src/cafeOrders/utils.ts
@@ -105,12 +105,13 @@ export const messagesToSections = (
): SectionListData<LocalMessage>[] => {
const sections: SectionListData<LocalMessage>[] = [];
let messages: LocalMessage[] = [];
- let previousTimestamp: number = Date.now();
+ let previousTimestamp: number = 0;
// This is assuming that it is traversing descending order by timestamp
queryResults.forEach((queryResult) => {
const data = queryResult.data();
if (
+ previousTimestamp !== 0 &&
isDifferentDate(
previousTimestamp,
firestoreTimestampToMillis(data.createdAt),
| Fixing time section | Fixing time section
|
f695848f90fb4a2e2dcff0e2ab7db9e15aff28ad | --- package-lock.json
@@ -51,7 +51,7 @@
"@walmart/counts-component-miniapp": "0.1.5",
"@walmart/emergency-mini-app": "1.25.1",
"@walmart/exception-mini-app": "1.5.1",
- "@walmart/facilities-management-miniapp": "0.6.66",
+ "@walmart/facilities-management-miniapp": "0.6.67",
"@walmart/feedback-all-spark-miniapp": "0.9.41",
"@walmart/financial-wellbeing-feature-app": "1.10.4",
"@walmart/functional-components": "~4.0.3",
@@ -7198,9 +7198,9 @@
}
},
"node_modules/@walmart/facilities-management-miniapp": {
- "version": "0.6.66",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.66.tgz",
- "integrity": "sha512-830kvaNSU0gj1xCdmrH3kcLzdVjToa0cvw0Pj7LeN4L9SWw2fVIXH0p2uKenE6r9GiLtlnyrxsWAl9WW0omQ2g==",
+ "version": "0.6.67",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.67.tgz",
+ "integrity": "sha512-vAn11SgL6thiZdZLdAe1EvJ+gYGSDJa2HBrLPXlTFQgUHtf2+fnnj4SG9bX8mg9/Ax3Hg7IQaiKle3GsdgN2ww==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-community/cameraroll": "^4.1.2",
@@ -30472,9 +30472,9 @@
"integrity": "sha512-d5j7mlW+7Muw6vSZzc0WvoPbOOlF0oLkniWfAS6IP/o9SZ08Ph6NRIRAg95PWOqeW52zh7YTJZwEi24Zpaf93g=="
},
"@walmart/facilities-management-miniapp": {
- "version": "0.6.66",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.66.tgz",
- "integrity": "sha512-830kvaNSU0gj1xCdmrH3kcLzdVjToa0cvw0Pj7LeN4L9SWw2fVIXH0p2uKenE6r9GiLtlnyrxsWAl9WW0omQ2g=="
+ "version": "0.6.67",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.67.tgz",
+ "integrity": "sha512-vAn11SgL6thiZdZLdAe1EvJ+gYGSDJa2HBrLPXlTFQgUHtf2+fnnj4SG9bX8mg9/Ax3Hg7IQaiKle3GsdgN2ww=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.9.41",
| Updating the fm version to 0.6.67 | Updating the fm version to 0.6.67
|
339fee96c7e43707ccde05dd0feb3aef5c7922bb | --- __tests__/__mocks__/@walmart/allspark-utils.js
@@ -1,4 +1,5 @@
module.exports = {
...jest.requireActual('@walmart/allspark-utils'),
+ useBackButton: jest.fn(),
useAsync: jest.fn(),
};
--- __tests__/__mocks__/@walmart/gtp-shared-components.js
@@ -8,6 +8,7 @@ module.exports = {
SolidCard: 'SolidCard',
SecondaryButton: 'SecondaryButton',
Body: 'Body',
+ Button: 'Button',
Title: 'Title',
Title2: 'Title2',
Title3: 'Title3',
--- __tests__/__mocks__/@walmart/redux-store.js
@@ -35,6 +35,7 @@ module.exports = {
signOutSuccess: jest.fn(),
signInProgress: jest.fn(),
signOutRequest: jest.fn(),
+ signOutRequestAcknowledged: jest.fn(),
},
userActions: {
getUserProgress: jest.fn(),
--- __tests__/auth/ConfirmSignoutPromptTest.tsx
@@ -0,0 +1,42 @@
+import React from 'react';
+import {Platform} from 'react-native';
+import {render, fireEvent} from '@testing-library/react-native';
+import {authActions} from '@walmart/redux-store';
+import {ConfirmSignoutPrompt} from '../../src/auth/ConfirmSignoutPrompt';
+import {useBackButton} from '@walmart/allspark-utils';
+
+const navigation = {goBack: jest.fn()} as any;
+
+(useBackButton as jest.Mock).mockImplementation((func) => func());
+test('ConfirmSignoutPrompt', () => {
+ const route = {
+ params: {
+ reason: 'service_configuration_fetch_error',
+ },
+ } as any;
+ const {getByTestId, toJSON} = render(
+ <ConfirmSignoutPrompt navigation={navigation} route={route} />,
+ );
+
+ expect(toJSON()).toMatchSnapshot();
+
+ const gotItBtn = getByTestId('got_it_btn');
+
+ fireEvent.press(gotItBtn);
+
+ expect(authActions.signOutRequestAcknowledged).toHaveBeenCalled();
+ expect(navigation.goBack).toHaveBeenCalled();
+});
+
+test('prompt matches snapshot for android', () => {
+ const route = {
+ params: {
+ reason: 'invalid_grant',
+ },
+ } as any;
+ Platform.OS = 'android';
+ const {toJSON} = render(
+ <ConfirmSignoutPrompt navigation={navigation} route={route} />,
+ );
+ expect(toJSON()).toMatchSnapshot();
+});
--- __tests__/auth/__snapshots__/ConfirmSignoutPromptTest.tsx.snap
@@ -0,0 +1,137 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`ConfirmSignoutPrompt 1`] = `
+<View
+ style={
+ Array [
+ Object {
+ "flex": 1,
+ "justifyContent": "center",
+ },
+ ]
+ }
+>
+ <View
+ style={
+ Array [
+ Object {
+ "backgroundColor": "#fff",
+ "borderRadius": 16,
+ "elevation": 24,
+ "marginHorizontal": 16,
+ "padding": 20,
+ "shadowColor": "black",
+ "shadowOffset": Object {
+ "height": 1,
+ "width": 0,
+ },
+ "shadowOpacity": 0.15,
+ "shadowRadius": 3,
+ "zIndex": 4,
+ },
+ ]
+ }
+ >
+ <Body
+ UNSAFE_style={
+ Object {
+ "fontSize": 20,
+ "marginBottom": 20,
+ "textAlign": "center",
+ }
+ }
+ weight="700"
+ >
+ <Text>
+ signoutConfirmationDialog.header
+ </Text>
+ </Body>
+ <Body>
+ <Text>
+ signoutConfirmationDialog.network
+ </Text>
+ </Body>
+ <Button
+ UNSAFE_style={
+ Object {
+ "paddingTop": 24,
+ }
+ }
+ isFullWidth={true}
+ onPress={[Function]}
+ testID="got_it_btn"
+ variant="primary"
+ >
+ signoutConfirmationDialog.confirm
+ </Button>
+ </View>
+</View>
+`;
+
+exports[`prompt matches snapshot for android 1`] = `
+<View
+ style={
+ Array [
+ Object {
+ "flex": 1,
+ "justifyContent": "center",
+ },
+ ]
+ }
+>
+ <View
+ style={
+ Array [
+ Object {
+ "backgroundColor": "#fff",
+ "borderRadius": 16,
+ "elevation": 24,
+ "marginHorizontal": 16,
+ "padding": 20,
+ "shadowColor": "black",
+ "shadowOffset": Object {
+ "height": 1,
+ "width": 0,
+ },
+ "shadowOpacity": 0.15,
+ "shadowRadius": 3,
+ "zIndex": 4,
+ },
+ ]
+ }
+ >
+ <Body
+ UNSAFE_style={
+ Object {
+ "fontSize": 20,
+ "marginBottom": 20,
+ "textAlign": "center",
+ }
+ }
+ weight="700"
+ >
+ <Text>
+ signoutConfirmationDialog.header
+ </Text>
+ </Body>
+ <Body>
+ <Text>
+ signoutConfirmationDialog.ios
+ </Text>
+ </Body>
+ <Button
+ UNSAFE_style={
+ Object {
+ "paddingTop": 24,
+ }
+ }
+ isFullWidth={true}
+ onPress={[Function]}
+ testID="got_it_btn"
+ variant="primary"
+ >
+ signoutConfirmationDialog.confirm
+ </Button>
+ </View>
+</View>
+`;
--- __tests__/navigation/__snapshots__/indexTest.tsx.snap
@@ -98,6 +98,15 @@ exports[`RootNav matches snapshot when app accessible 1`] = `
}
}
/>
+ <Screen
+ component={[Function]}
+ name="Core.ConfirmSignoutPrompt"
+ options={
+ Object {
+ "gestureEnabled": false,
+ }
+ }
+ />
<Screen
component="BiometricModal"
name="Core.BiometricModal"
--- __tests__/startup/indexTest.ts
@@ -22,6 +22,7 @@ import {resetTo} from '../../src/redux/SharedSagas';
import {captureMissedMiniAppEvents, appFlow} from '../../src/startup/index';
import {addMiniAppI18nResources} from '../../src/translations/utils';
import {Auth} from '../../src/core/Auth';
+import {navigate} from '@walmart/react-native-shared-navigation';
jest.mock('../../src/startup/AuthFlow', () => ({
waitForAuth: jest.fn(),
@@ -116,4 +117,35 @@ describe('appFlow', () => {
expect(iterator.next().value).toEqual(cancel(captureEventTask));
expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents));
});
+
+ it('calls expected flows for sign out with a reason', () => {
+ const signOutData = {reason: 'invalid_grant'} as any;
+ const captureEventTask = createMockTask();
+ const startupTask = createMockTask();
+ const pinPromptTask = createMockTask();
+ const iterator = appFlow();
+ expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents));
+ expect(iterator.next(captureEventTask).value).toEqual(call(waitForAuth));
+ expect(iterator.next().value).toEqual(call(waitForUser));
+ expect(iterator.next().value).toEqual(spawn(startupFlow));
+ expect(iterator.next(startupTask).value).toEqual(spawn(pinPromptFlow));
+ expect(iterator.next(pinPromptTask).value).toEqual(
+ take(AuthTypes.SIGN_OUT_REQUEST),
+ );
+ expect(iterator.next(signOutData).value).toEqual(call(resetTo, 'login'));
+
+ expect(iterator.next().value).toEqual(take('global/SIGN_IN_PAGE_LOADED'));
+ expect(iterator.next().value).toEqual(
+ call(navigate, 'Core.ConfirmSignoutPrompt', signOutData),
+ );
+ expect(iterator.next().value).toEqual(
+ take(AuthTypes.SIGN_OUT_REQUEST_ACKNOWLEDGED),
+ );
+ expect(iterator.next().value).toEqual(cancel(startupTask));
+ expect(iterator.next().value).toEqual(cancel(pinPromptTask));
+ expect(iterator.next().value).toEqual(call(Auth.signOut));
+
+ expect(iterator.next().value).toEqual(cancel(captureEventTask));
+ expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents));
+ });
});
--- src/index.tsx
@@ -2,6 +2,7 @@ import React from 'react';
import {StatusBar} from 'react-native';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {NavigationContainer} from '@react-navigation/native';
+
import {LivingDesignProvider} from '@walmart/gtp-shared-components';
import {navContainerProps} from '@walmart/react-native-shared-navigation';
import {
| updated tests | updated tests
|
75545ffa5f883af9ecf19106c68674f495358fac | --- android/app/src/main/AndroidManifest.xml
@@ -1,4 +1,3 @@
-<!-- TODO change package name to the final one -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.walmart.stores.allspark.beta">
| remove comment | remove comment
|
6cfbb7fb9d47b587947fc405ce5076804b340506 | --- example/ios/Podfile.lock
@@ -1698,4 +1698,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 9bcb4ba63e465bf176432abd9b231eff81ba3324
-COCOAPODS: 1.14.3
+COCOAPODS: 1.13.0
--- example/src/feature3/screens/index.ts
@@ -8,7 +8,7 @@ export const Feature3Screens = {
'feature3.home': HomeScreen,
'feature3.onboarding': OnboardingScreen,
'feature3.container': ContainerScreen,
- 'feature1.stack': FeatureStack,
+ 'feature3.stack': FeatureStack,
};
export const Feature3Modals = {
--- example/src/feature3/screens/screen.tsx
@@ -6,6 +6,7 @@ import {useNavigation} from '@react-navigation/core';
import {Feature3Logger, Feature3Telemetry} from '../services';
import {Feature3} from '../feature';
import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
+import {Header} from '@walmart/allspark-foundation/Components';
export const HomeScreen = Feature3.createScreen(
() => {
@@ -20,10 +21,14 @@ export const HomeScreen = Feature3.createScreen(
}, []);
return (
- <View style={{flex: 1, marginTop: 20}}>
+ <View style={{flex: 1}}>
+ <Header
+ title="Hub value-prop title"
+ subText="Short introduction to convey the action we intend the associate to take through this hub."
+ />
<Button
variant="primary"
- UNSAFE_style={{marginBottom: 10}}
+ UNSAFE_style={{marginBottom: 10, marginTop: 20}}
onPress={() =>
AllsparkNavigationClient.navigate('feature3.onboarding')
}>
--- packages/allspark-foundation/src/Components/Hub/Header/index.tsx
@@ -1,8 +1,16 @@
-import { Text } from 'react-native';
+import React from 'react';
+import { Text, View } from 'react-native';
+import { HeaderTypes } from './types';
+import { HeaderStyles as styles } from './styles';
export * from './types';
-export const Header = () => (
- <>
- <Text>Header</Text>
- </>
+export const Header = ({ title, subText }: HeaderTypes) => (
+ <View style={styles.container}>
+ <Text style={styles.title} accessibilityLabel={title}>
+ {title}
+ </Text>
+ <Text style={styles.subText} accessibilityLabel={subText}>
+ {subText}
+ </Text>
+ </View>
);
--- packages/allspark-foundation/src/Components/Hub/Header/styles.ts
@@ -0,0 +1,23 @@
+import { StyleSheet } from 'react-native';
+import { colors } from '@walmart/gtp-shared-components';
+
+export const HeaderStyles = StyleSheet.create({
+ container: {
+ backgroundColor: colors.blue['100'],
+ flexDirection: 'column',
+ padding: 16,
+ },
+ title: {
+ color: colors.white,
+ fontWeight: 'bold',
+ fontSize: 24,
+ lineHeight: 32,
+ marginBottom: 4,
+ },
+ subText: {
+ color: colors.white,
+ fontWeight: 'normal',
+ fontSize: 16,
+ lineHeight: 24,
+ },
+});
--- packages/allspark-foundation/src/Components/Hub/Header/types.ts
@@ -1 +1,4 @@
-export type HeaderTypes = {};
+export type HeaderTypes = {
+ title: string;
+ subText: string;
+};
--- packages/allspark-foundation/src/Components/index.tsx
@@ -14,3 +14,4 @@ export const useAllsparkSnackbar = useSnackbar;
export { AllsparkDynamicComponents } from './DynamicComponents';
export { AllsparkComponentContainers } from './ComponentContainers';
+export { Header } from './Hub/Header';
| Create hub header component and add it to feature 3 | Create hub header component and add it to feature 3
|
8cf3103cc4d826102f235ce8256a72d8fe16be3d | --- packages/core-widget-registry/CHANGELOG.md
@@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.2.4](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-widget-registry@1.2.3...@walmart/core-widget-registry@1.2.4) (2023-05-09)
+
+
+### Bug Fixes
+
+* **lint:** lint error fixed SSMP-4408 ([93b65c2](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/93b65c215e89b6c85eb927f0218400ee5f16a798))
+* **type:** type fix SSMP-4408 ([aee8dd5](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/aee8dd5d14e316af2575aa4dca6d1200731c968f))
+
+
+
+
+
## [1.2.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-widget-registry@1.2.2...@walmart/core-widget-registry@1.2.3) (2023-04-07)
**Note:** Version bump only for package @walmart/core-widget-registry
--- packages/core-widget-registry/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-widget-registry",
- "version": "1.2.3",
+ "version": "1.2.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
--- packages/core-widget-registry/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-widget-registry",
- "version": "1.2.3",
+ "version": "1.2.4",
"description": "Repo for Me@Walmart related widget registries",
"author": "rlane1 <russell.lane@walmart.com>",
"license": "ISC",
| chore(version): updating package version | chore(version): updating package version
- @walmart/core-widget-registry@1.2.4
|
798378919022642ee2d77fdbbb6c11c5824fc179 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Redux/selectors.ts
@@ -172,15 +172,6 @@ export const teamSwitcherEnabled = createSelector(
getCCMBooleanStr(state?.showTeamSwitcher, CCMFallbacks.showTeamSwitcher)
);
-export const hubTeamSwitcherEnabled = createSelector(
- [getManagerExperienceConfigData],
- (state) =>
- getCCMBooleanStr(
- state?.showHubTeamSwitcher,
- CCMFallbacks.showHubTeamSwitcher
- )
-);
-
export const totalStoreOnTeamSwitcherEnabled = createSelector(
[getManagerExperienceConfigData],
(state) =>
@@ -214,15 +205,6 @@ export const skipOnboardingButtonEnabled = createSelector(
)
);
-export const onboardingHeaderEnabled = createSelector(
- [getManagerExperienceConfigData],
- (state) =>
- getCCMBooleanStr(
- state?.showOnboardingHeader,
- CCMFallbacks.showOnboardingHeader
- )
-);
-
export const headerImageEnabled = createSelector(
[getManagerExperienceConfigData],
(state) =>
@@ -264,15 +246,6 @@ export const starIconEnabled = createSelector(
(state) => getCCMBooleanStr(state?.showStarIcon, CCMFallbacks.showStarIcon)
);
-export const onboardingTeamImageEnabled = createSelector(
- [getManagerExperienceConfigData],
- (state) =>
- getCCMBooleanStr(
- state?.showOnboardingTeamImage,
- CCMFallbacks.showOnboardingTeamImage
- )
-);
-
export const loadShiftsAlertEnabled = createSelector(
[getManagerExperienceConfigData],
(state) =>
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/ccmFallbacks.ts
@@ -17,17 +17,14 @@ export const CCMFallbacks = {
showTeamSwitcher: true,
showTotalStoreOnTeamSwitcher: true,
showTeamSelectionNavArrow: true,
- showHubTeamSwitcher: true,
showOnboardingFlow: true,
showSkipOnboardingButton: true,
- showOnboardingHeader: true,
showHeaderImage: true,
showShiftFilterIcon: true,
showShiftFilterGroup: true,
showSearchIcon: true,
showMicrophoneIcon: true,
showStarIcon: true,
- showOnboardingTeamImage: true,
showLoadShiftsAlert: true,
showLoadTeamsAlert: true,
showSaveShiftsAndTeamsAlert: true,
| feat: remove unused ccm | feat: remove unused ccm
|
47fd19a6c03a100870799fb51f193fc4286f23cb | --- sonar-project.properties
@@ -8,4 +8,4 @@ sonar.tests=__tests__
sonar.exclusions=src/images
sonar.sourceEncoding=UTF-8
sonar.typescript.lcov.reportPaths=coverage/lcov.info
-sonar.testExecutionReportPaths=roster-test-report.xml
+sonar.testExecutionReportPaths=test-report.xml
| feat(ui): add sonar update SMDV-5648 | feat(ui): add sonar update SMDV-5648
|
35fc1f5be62971aa96b254eb626546f3daef174d | --- core/src/core/translations.ts
@@ -106,6 +106,14 @@ export const enUS = {
},
gotIt: 'Got it',
language: {changeTitle: 'Choose your preferred language'},
+ managerExperience: {
+ Sidekick: {
+ WorkTabs: 'Work',
+ },
+ myTeam: {
+ root: 'Team',
+ },
+ },
menu: {
ManagerApprovals: 'Manager Approvals',
errorText: 'Menu failed to load',
@@ -339,6 +347,14 @@ export const esMX = {
},
gotIt: 'Entendido',
language: {changeTitle: 'Elige tu idioma preferido'},
+ managerExperience: {
+ Sidekick: {
+ WorkTabs: 'Trabajo',
+ },
+ myTeam: {
+ root: 'Equipo',
+ },
+ },
menu: {
ManagerApprovals: 'Aprobaciones del Gerente',
errorText: 'Menu failed to load',
--- targets/US/package.json
@@ -78,6 +78,7 @@
"@walmart/allspark-authentication": "~6.4.1",
"@walmart/allspark-cope-key-listener": "0.0.18",
"@walmart/allspark-foundation": "6.22.0",
+ "@walmart/allspark-foundation-hub": "1.0.1-beta.12",
"@walmart/allspark-graphql-client": "~6.3.28",
"@walmart/allspark-http-client": "~6.3.28",
"@walmart/allspark-neon-core": "0.1.31",
--- yarn.lock
@@ -6090,6 +6090,108 @@ __metadata:
languageName: node
linkType: hard
+"@walmart/allspark-foundation-hub@npm:1.0.1-beta.12":
+ version: 1.0.1-beta.12
+ resolution: "@walmart/allspark-foundation-hub@npm:1.0.1-beta.12"
+ dependencies:
+ "@apollo/client": "npm:^3.8.6"
+ "@graphql-codegen/cli": "npm:^5.0.0"
+ "@graphql-codegen/near-operation-file-preset": "npm:^2.5.0"
+ "@graphql-codegen/typescript": "npm:^4.0.1"
+ "@graphql-codegen/typescript-operations": "npm:^4.0.1"
+ "@graphql-codegen/typescript-react-apollo": "npm:^4.1.0"
+ "@reduxjs/toolkit": "npm:^1.9.7"
+ "@shopify/flash-list": "npm:~1.6.4"
+ "@types/node-fetch": "npm:^2.6.9"
+ axios: "npm:~1.6.0"
+ axios-cache-interceptor: "npm:^1.3.2"
+ crypto-js: "npm:~4.2.0"
+ graphql: "npm:^16.8.1"
+ i18next: "npm:^23.6.0"
+ json-to-pretty-yaml: "npm:^1.2.2"
+ lodash: "npm:~4.17.21"
+ namecase: "npm:^1.1.2"
+ react-hook-form: "npm:^7.38.0"
+ react-i18next: "npm:^13.3.1"
+ react-native-modalfy: "npm:^3.5.2"
+ react-redux: "npm:^8.1.3"
+ redux: "npm:^4.2.1"
+ redux-saga: "npm:^1.2.3"
+ typed-redux-saga: "npm:^1.5.0"
+ peerDependencies:
+ "@react-native-async-storage/async-storage": "*"
+ "@react-native-community/datetimepicker": "*"
+ "@react-native-community/netinfo": 11.x
+ "@react-native-firebase/analytics": 17.x
+ "@react-native-firebase/app": 17.x
+ "@react-native-picker/picker": "*"
+ "@react-navigation/drawer": 6.x
+ "@react-navigation/native": 6.x
+ "@react-navigation/stack": 6.x
+ "@walmart/allspark-foundation": "*"
+ "@walmart/allspark-graphql-client": ">=6"
+ "@walmart/allspark-http-client": ">=6"
+ "@walmart/allspark-utils": "*"
+ "@walmart/core-services": ">=6"
+ "@walmart/core-utils": ">=6"
+ "@walmart/functional-components": ">=6"
+ "@walmart/gtp-shared-components": ">=2"
+ "@walmart/me-at-walmart-athena-queries": "*"
+ "@walmart/react-native-env": ">=6"
+ "@walmart/react-native-scanner-3.0": ">=0.6.3"
+ "@walmart/react-native-shared-navigation": ">=6"
+ "@walmart/react-native-sumo-sdk": ^2.7.0
+ "@walmart/react-native-wm-network": ">=6"
+ "@walmart/react-native-wm-notification": ">=6"
+ "@walmart/react-native-wm-telemetry": ">=6"
+ "@walmart/redux-store": ">=6"
+ react: "*"
+ react-native: "*"
+ react-native-apollo-devtools-client: "*"
+ react-native-device-info: "*"
+ react-native-drop-shadow: "*"
+ react-native-flipper: "*"
+ react-native-gesture-handler: 2.x
+ react-native-get-random-values: 1.x
+ react-native-permissions: 3.x
+ react-native-reanimated: 3.x
+ react-native-safe-area-context: 4.x
+ react-native-screens: 3.x
+ peerDependenciesMeta:
+ "@walmart/allspark-graphql-client":
+ optional: true
+ "@walmart/allspark-http-client":
+ optional: true
+ "@walmart/core-services":
+ optional: true
+ "@walmart/core-utils":
+ optional: true
+ "@walmart/functional-components":
+ optional: true
+ "@walmart/react-native-env":
+ 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
+ react-native-apollo-devtools-client:
+ optional: true
+ react-native-flipper:
+ optional: true
+ bin:
+ allspark-generate-graphql: cli/generate.js
+ allspark-link: cli/link.js
+ allspark-setup: cli/setup.js
+ checksum: 10c0/bea2fa7adf4fc78423d2130b9c8cac5a48ebc0fb8cddc8f5a34968225b659206522cbe7785edf6f0eec53b994be008e767740d36c468a1819912cbb56873b378
+ languageName: node
+ linkType: hard
+
"@walmart/allspark-foundation@npm:6.22.0":
version: 6.22.0
resolution: "@walmart/allspark-foundation@npm:6.22.0"
@@ -7404,6 +7506,7 @@ __metadata:
"@walmart/allspark-authentication": "npm:~6.4.1"
"@walmart/allspark-cope-key-listener": "npm:0.0.18"
"@walmart/allspark-foundation": "npm:6.22.0"
+ "@walmart/allspark-foundation-hub": "npm:1.0.1-beta.12"
"@walmart/allspark-graphql-client": "npm:~6.3.28"
"@walmart/allspark-http-client": "npm:~6.3.28"
"@walmart/allspark-neon-core": "npm:0.1.31"
@@ -18650,13 +18753,6 @@ __metadata:
languageName: node
linkType: hard
-"picocolors@npm:^1.1.1":
- version: 1.1.1
- resolution: "picocolors@npm:1.1.1"
- checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58
- languageName: node
- linkType: hard
-
"picomatch@npm:^2.0.4, picomatch@npm:^2.2.3, picomatch@npm:^2.3.1":
version: 2.3.1
resolution: "picomatch@npm:2.3.1"
@@ -22707,7 +22803,7 @@ __metadata:
languageName: node
linkType: hard
-"tslib@npm:^2.6.3, tslib@npm:^2.8.1":
+"tslib@npm:^2.2.0, tslib@npm:^2.6.3, tslib@npm:^2.8.1":
version: 2.8.1
resolution: "tslib@npm:2.8.1"
checksum: 10c0/9c4759110a19c53f992d9aae23aac5ced636e99887b51b9e61def52611732872ff7668757d4e4c61f19691e36f4da981cd9485e869b4a7408d689f6bf1f14e62
| chore: add allspark-foundation-hub | chore: add allspark-foundation-hub
|
c1bd84a50018b66c8a039a4c2f57fef92e5c2b1b | --- ios/Podfile.lock
@@ -427,7 +427,7 @@ PODS:
- React
- react-native-safe-area-context (3.3.2):
- React-Core
- - react-native-scanner-3.0 (0.1.7):
+ - react-native-scanner-3.0 (0.1.8):
- Firebase/Analytics
- React
- ScanditBarcodeCapture (= 6.14.0-beta.3)
@@ -1005,7 +1005,7 @@ SPEC CHECKSUMS:
react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa
react-native-ptt-module: 8548d9a0d613fe775bc56b5cd83b5c024114f6b7
react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5
- react-native-scanner-3.0: 56610b8597db81e5ae7e81bf84a359b0befb2237
+ react-native-scanner-3.0: 8be4e75cc0bf031105a6e665097af81081a1c243
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444
react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070
--- package-lock.json
@@ -5362,9 +5362,9 @@
"integrity": "sha512-qxVserzdiG4xsZCLRIwYfRq/KuHsYSPkrl02tKHNhF5bhtWWo6oEUatBoSsY5BL8EVGOHk2ezsPWb2o5pg9Ryw=="
},
"@walmart/react-native-scanner-3.0": {
- "version": "0.1.7",
- "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.7.tgz",
- "integrity": "sha512-WsJSs6ewHF4P7FInXl8H072dMVlraBo6CY5LTA77E/FErpAvYeU1qCOdeUji+akThexWEXO9jd6atVtn1s4veQ=="
+ "version": "0.1.8",
+ "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.8.tgz",
+ "integrity": "sha512-6+NfLofFUoI0bY125SyeI0gYuwpugV4+lbI0QcFQxKDwEhAuJpvsyzlU9JdiIEfS3Ub/heWWOjqcVUYDfH+iFw=="
},
"@walmart/react-native-shared-navigation": {
"version": "1.0.2",
--- package.json
@@ -105,7 +105,7 @@
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.29.0",
- "@walmart/react-native-scanner-3.0": "0.1.7",
+ "@walmart/react-native-scanner-3.0": "0.1.8",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "^0.3.7",
"@walmart/react-native-sumo-sdk": "2.2.2-beta.2",
| Scanner3: Removing micro symbology type and add ios change to fix concurrency issue | Scanner3: Removing micro symbology type and add ios change to fix concurrency issue
|
6a3d131d12f6af877214a40fa07ad2c9ed56821a | --- graphql.yml
@@ -1,6 +1,9 @@
schemaVersion: "1.0.0"
enableGating: true
teamRostersProductId: 1824
+notify:
+ slack:
+ channelName: "smdv-graphql"
applications:
- name: "ASSOCIATE-EXP-HUB-MINI-APP"
applicationKey: "ASSOCIATE-EXP-HUB-MINI-APP"
| feat(ui): update graphql yml #SMDV-9999 | feat(ui): update graphql yml #SMDV-9999
|
367be75729d10c4896c60b5378ace2f2b846fa56 | --- packages/allspark-foundation-hub/src/SupplyChain/Modals/UpdateTeamsModal/UpdateTeamsModal.tsx
@@ -21,9 +21,15 @@ import {
useGetSupplyChainShifts,
useGetSupplyChainAllTeamsBySite,
} from '../../Hooks';
-import { AlertBanner, ActionButtonGroup, FEATURE_ID } from '../../../Shared';
+import {
+ AlertBanner,
+ ActionButtonGroup,
+ FEATURE_ID,
+ TOTAL_SITE_TEAM_LABEL,
+ TOTAL_SITE_TEAM_ID,
+} from '../../../Shared';
-import { AllTeamsSections } from '../EditSavedTeamModal/types';
+import { AllTeamsSections, SupplyChainTeam } from '../EditSavedTeamModal/types';
import { ModalErrorScreen, ModalHeader } from '../../Components';
import { filterTeamsBySearchInput } from '../../Utils/SearchInput';
import { UpdateTeamsModalProps } from './types';
@@ -61,8 +67,19 @@ export const UpdateTeamsModal = ({
const shiftData =
shiftPreferenceData.length === 0 ? ['A1'] : shiftPreferenceData;
const [selectedShifts, setSelectedShifts] = useState<string[]>(shiftData);
- const [searchedSections, setSearchedSections] =
- useState(allSiteTeamsSections);
+ const sectionListData = [
+ ...[
+ {
+ title: TOTAL_SITE_TEAM_LABEL,
+ data: [
+ { teamName: TOTAL_SITE_TEAM_LABEL, teamId: TOTAL_SITE_TEAM_ID },
+ ] as SupplyChainTeam[],
+ },
+ ],
+ ...allSiteTeamsSections,
+ ];
+
+ const [searchedSections, setSearchedSections] = useState(sectionListData);
const isShiftUpsertError = useSelector(
SC_ManagerExperienceSelectors.getIsShiftUpsertError
);
| feat(ui): added default team for update modal | feat(ui): added default team for update modal
|
d74e9db047b1bfdc0c3762530fb91243a67170f5 | --- packages/allspark-foundation-hub/src/HubFeature/Hub/TeamSwitcher/index.tsx
@@ -148,7 +148,9 @@ export const TeamSwitcher = ({
setSelectedTeam(teamLabel);
dispatch(ManagerExperienceCreators.updateSelectedTeamPreference(teamLabel));
if (teamId === 'myTeams') {
- const selectedTeamsList = teamData.map((team: any) => team.teamId);
+ const selectedTeamsList = teamData
+ .filter((team: any) => team.teamLabel)
+ .map((team: any) => team.teamId);
onTeamChange(teamId, selectedTeamsList);
dispatch(
ManagerExperienceCreators.updateSelectedTeamData(selectedTeamsList)
@@ -196,7 +198,9 @@ export const TeamSwitcher = ({
<TeamImage
style={styles.teamImage}
source={{
- uri: Images[item.teamId ?? item.teamLabel]?.uri,
+ uri:
+ Images[item.teamId ?? item.teamLabel]?.uri ||
+ Images['0000000'].uri,
}}
placeholder={Images[item.teamId ?? item.teamLabel]?.blurhash}
testID={`team-image-${item.teamLabel}`}
--- packages/allspark-foundation-hub/src/HubFeature/Images/images.tsx
@@ -72,6 +72,11 @@ export const Images: Record<
uri: 'https://i5-me.walmartimages.com/images/teams/digital-mgr-exp-e10d2521ae.png',
blurhash: 'KbQT1H?D_2-:SjNK~pIXD*',
},
+ '1000348': {
+ teamName: 'Digital ON',
+ uri: 'https://i5-me.walmartimages.com/images/teams/digital-mgr-exp-e10d2521ae.png',
+ blurhash: 'KbQT1H?D_2-:SjNK~pIXD*',
+ },
'1000328': {
teamName: 'Seasonal',
uri: 'https://i5-me.walmartimages.com/images/teams/seasonal-mgr-exp-47f206a109.png',
| Update the few changes on the hub for imports | Update the few changes on the hub for imports
|
69a224b9d37b1befb4674b53c8ae06150a72a29f | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.38",
+ "version": "2.0.39",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/texting-mini-app",
- "version": "2.0.38",
+ "version": "2.0.39",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.8.4",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.38",
+ "version": "2.0.39",
"private": false,
"main": "dist/index.js",
"files": [
--- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.38",
+ "version": "2.0.39",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/texting-mini-app",
- "version": "2.0.38",
+ "version": "2.0.39",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.8.4",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.38",
+ "version": "2.0.39",
"private": false,
"main": "dist/index.js",
"files": [
| update version for drop 15.x | update version for drop 15.x
|
3b9c2e2d12ecf3de9e8bcd0c213efae1fd0dccc6 | --- docs/docs/components/icons/_category_.json
@@ -0,0 +1,8 @@
+{
+ "label": "Icons",
+ "position": 3,
+ "link": {
+ "type": "generated-index",
+ "description": "Browse the icons available from various sources for use in Me@Walmart."
+ }
+ }
\ No newline at end of file
--- docs/docs/components/icons/icons-core-owned.md
@@ -0,0 +1,5 @@
+---
+sidebar_position: 3
+title: Me@Core Owned Icons
+custom_edit_url: null
+---
\ No newline at end of file
--- docs/docs/components/icons/icons-gtp-owned.md
@@ -0,0 +1,5 @@
+---
+sidebar_position: 2
+title: GTP Owned Icons
+custom_edit_url: null
+---
\ No newline at end of file
--- docs/docs/components/icons/icons-stock.md
@@ -0,0 +1,5 @@
+---
+sidebar_position: 1
+title: Stock Icons
+custom_edit_url: null
+---
\ No newline at end of file
| docs: outline for Icons section | docs: outline for Icons section
|
eca17ca4783de1b7b61bf0f9ff1f6fad9838bc20 | --- __tests__/home/components/TaskCard/__snapshots__/TaskClockStatusTeamCardTest.tsx.snap
@@ -141,7 +141,7 @@ exports[`TaskClockStatusTeamCard matches snapshot when loaded with team view; ca
}
}
>
- teams.teamName.taskFoodConsumables
+ teams.teamName.defaultTeamName
</Text>
<Text
style={
@@ -230,7 +230,7 @@ exports[`TaskClockStatusTeamCard matches snapshot when loading, but with results
}
}
>
- teams.teamName.taskFoodConsumables
+ teams.teamName.defaultTeamName
</Text>
<Text
style={
--- src/home/components/TaskCard/TaskClockStatusTeamCard.tsx
@@ -24,7 +24,7 @@ export const TaskClockStatusTeamCard: FC<TaskCardProps> = (props) => {
} = props;
const navigation = useNavigation();
- const {t} = useTranslation(['home']);
+ const {t, i18n} = useTranslation(['home']);
const storeId = useSelector(UserSelectors.getUserWorkingSite); //1307 //100
const teamId = useSelector(UserSelectors.getUserTeamIds)?.[0]; //"Sup_0000053992" //Sup_0000041243
const countryCode = useSelector(UserSelectors.getUserCountryCode);
@@ -54,9 +54,15 @@ export const TaskClockStatusTeamCard: FC<TaskCardProps> = (props) => {
const teamName = teamData?.workdayTeamName;
//team name in image file & translation file is same and w/o any whitespace or special character.
const teamImage = teamName?.replace(/[^a-zA-Z]/g, ''); // Replace everything(' ' , '/', etc) but alphabets to make it one word
- const teamDisplayText = teamName
- ? t(`teams.teamName.task${teamImage}`)
- : `Store #${storeId}`;
+ let teamDisplayText = `Store #${storeId}`;
+ if (teamName) {
+ teamDisplayText =
+ i18n?.language === 'en-US'
+ ? t('teams.teamName.defaultTeamName', {teamName})
+ : t(`teams.teamName.task${teamImage}`, {
+ defaultValue: teamName,
+ });
+ }
const onReload = async () => {
onRefreshStart(refreshKey);
| fix: fixing translation on the TaskClockStatusTeamCard.tsx | fix: fixing translation on the TaskClockStatusTeamCard.tsx
|
6b89aaefbd5f541400dd716c683d297b424dfec7 | --- package.json
@@ -144,7 +144,7 @@
"@walmart/schedule-mini-app": "0.105.0",
"@walmart/shelfavailability-mini-app": "1.5.23",
"@walmart/store-feature-orders": "1.26.7",
- "@walmart/taskit-mini-app": "2.83.1",
+ "@walmart/taskit-mini-app": "2.83.2",
"@walmart/time-clock-mini-app": "2.353.0",
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch",
--- yarn.lock
@@ -7106,9 +7106,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/taskit-mini-app@npm:2.83.1":
- version: 2.83.1
- resolution: "@walmart/taskit-mini-app@npm:2.83.1"
+"@walmart/taskit-mini-app@npm:2.83.2":
+ version: 2.83.2
+ resolution: "@walmart/taskit-mini-app@npm:2.83.2"
peerDependencies:
"@terrylinla/react-native-sketch-canvas": ^0.8.0
"@types/lodash": ">=4.14.176"
@@ -7127,7 +7127,7 @@ __metadata:
react-native-svg-transformer: ">=0.14.3"
react-native-vision-camera: 1.0.11
reselect: ^4.1.5
- checksum: 10c0/6070c82e6110f099ae50e5bb322ae98a690eb8bfdf6ac1a73c1bfe6a6c635556f650ed9f328d037584c8886d4fa76ae4653845b5a58e7c29460aa4680c6d4556
+ checksum: 10c0/376f045cb39edecc5aede7da651228270167f8eedb2514cb6464fc67792a165f2fe2b5c886becb22b0566d91b63ecaceae8860d70503f9b751403ca06a8eb992
languageName: node
linkType: hard
@@ -7780,7 +7780,7 @@ __metadata:
"@walmart/schedule-mini-app": "npm:0.105.0"
"@walmart/shelfavailability-mini-app": "npm:1.5.23"
"@walmart/store-feature-orders": "npm:1.26.7"
- "@walmart/taskit-mini-app": "npm:2.83.1"
+ "@walmart/taskit-mini-app": "npm:2.83.2"
"@walmart/time-clock-mini-app": "npm:2.353.0"
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch"
| chore: bump taskit version | chore: bump taskit version
|
757ced292621fd486e5fefb68ea6abdf6e3213f7 | --- jest.config.js
@@ -9,10 +9,10 @@ module.exports = {
],
coverageThreshold: {
global: {
- statements: 14.07,
- branches: 3.51,
- functions: 6.02,
- lines: 14.27,
+ statements: 14,
+ branches: 3,
+ functions: 6,
+ lines: 14,
},
},
transformIgnorePatterns: [
--- jest.config.js
@@ -9,10 +9,10 @@ module.exports = {
],
coverageThreshold: {
global: {
- statements: 14.07,
- branches: 3.51,
- functions: 6.02,
- lines: 14.27,
+ statements: 14,
+ branches: 3,
+ functions: 6,
+ lines: 14,
},
},
transformIgnorePatterns: [
| hide badge count when user not in roster | hide badge count when user not in roster
|
0b6cb2a6027fe4b4ffe2adb27dc4aaa8db139a77 | --- package.json
@@ -87,7 +87,7 @@
"@walmart/counts-component-miniapp": "0.1.2",
"@walmart/emergency-mini-app": "1.19.0",
"@walmart/exception-mini-app": "1.0.16",
- "@walmart/facilities-management-miniapp": "0.5.36",
+ "@walmart/facilities-management-miniapp": "0.5.36-beta1",
"@walmart/feedback-all-spark-miniapp": "0.9.10",
"@walmart/financial-wellbeing-feature-app": "1.1.2",
"@walmart/functional-components": "2.0.6",
| Update package.json | Update package.json |
312da9c17acd2866218c4bc00ad08ff2f55d4019 | --- package-lock.json
@@ -3268,9 +3268,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.5.6",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.6.tgz",
- "integrity": "sha512-KxvuNwFcpTE/Zc+N+m1M+GSyDkagPszo5/uSXFhJMHxUB7cgkJCFIjtFLacPTmueMB/YwMfW8PJt3gEKl/ra0A==",
+ "version": "0.5.5",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.5.tgz",
+ "integrity": "sha512-n6oO9a8wQGL2+FD0mAJQyFkw8Kb9LIjj9dFuNCKeC3dMdoYW10JrmgbYRh2CxCIGQD0UleyfbgINrlkudEshKg==",
"requires": {
"moment": "^2.29.0",
"uuid": "^8.3.1"
@@ -3284,9 +3284,9 @@
}
},
"@walmart/allspark-me-mini-app": {
- "version": "0.2.5",
- "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.2.5.tgz",
- "integrity": "sha512-hcLD0Z9IJi4ITEQgs5MQBTKV/k6LeRlWuiNQUcAg0HCrtBiyeeSh1Di67AiKaibVuz1pTCFC91LCscoPN2ukSQ==",
+ "version": "0.2.4",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.2.4.tgz",
+ "integrity": "sha512-HDGlAwLBO4DX7MNVi9VCq58UgSJ6fu/J3SC7wP5AJ8pJCoO2y09QRj0GPH7pu/O+DCycds6iwKgOzgx1umfmug==",
"requires": {
"reselect": "^4.0.0"
}
--- package.json
@@ -71,8 +71,8 @@
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/allspark-health-survey-mini-app": "0.0.43",
- "@walmart/allspark-home-mini-app": "0.5.6",
- "@walmart/allspark-me-mini-app": "0.2.5",
+ "@walmart/allspark-home-mini-app": "0.5.5",
+ "@walmart/allspark-me-mini-app": "0.2.4",
"@walmart/ask-sam-mini-app": "0.30.31",
"@walmart/config-components": "^1.0.33",
"@walmart/counts-component-miniapp": "0.0.22",
--- src/transforms/user.ts
@@ -110,11 +110,10 @@ export const kGraphUserToRedux = (
streetAddress: kgUser?.streetAddress || NOT_FOUND,
title: kgUser?.title || NOT_FOUND,
teams: associate?.teams || [],
- // Not part of shared user type
memberOf: kgUser?.memberOf || [],
chargeDivisionNumber: kgUser?.wmChargeDivisionNumber || NOT_FOUND,
// What work to do for these?
- userType: '', // TODO
+ userType: 'associate', // TODO
// employeeID:
// fullyQualifiedUserID:
} as User;
| Adding temporary user type and reverting me and home version bumps | Adding temporary user type and reverting me and home version bumps
|
f1b58a1f8694b401352a714a1b68a8718388ca97 | --- targets/US/package.json
@@ -146,7 +146,7 @@
"@walmart/shelfavailability-mini-app": "1.5.33",
"@walmart/sidekick-mini-app": "4.70.2",
"@walmart/store-feature-orders": "1.26.12",
- "@walmart/taskit-mini-app": "4.17.7",
+ "@walmart/taskit-mini-app": "4.17.8-1113-3907eb5",
"@walmart/time-clock-mini-app": "2.400.0",
"@walmart/topstock-mini-app": "1.15.20",
"@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch",
--- yarn.lock
@@ -6872,7 +6872,7 @@ __metadata:
"@walmart/shelfavailability-mini-app": "npm:1.5.33"
"@walmart/sidekick-mini-app": "npm:4.70.2"
"@walmart/store-feature-orders": "npm:1.26.12"
- "@walmart/taskit-mini-app": "npm:4.17.7"
+ "@walmart/taskit-mini-app": "npm:4.17.8-1113-3907eb5"
"@walmart/time-clock-mini-app": "npm:2.400.0"
"@walmart/topstock-mini-app": "npm:1.15.20"
"@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch"
@@ -7775,12 +7775,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/taskit-mini-app@npm:4.17.7":
- version: 4.17.7
- resolution: "@walmart/taskit-mini-app@npm:4.17.7"
+"@walmart/taskit-mini-app@npm:4.17.8-1113-3907eb5":
+ version: 4.17.8-1113-3907eb5
+ resolution: "@walmart/taskit-mini-app@npm:4.17.8-1113-3907eb5"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/1f19711dd2fa395dc7d51d9283f2f487d9d651d4a4b730070e9f812aa2b6aa0701edc63da2fd13095c5ac9835866f072f6731f2b2b0f33f5552cf0ca0bfee38c
+ checksum: 10c0/77e52c747759157dbd9fb56e1be8be26751d2412d1a12c23f2b57df79a47cc1061f82dcd6f3ff14645d8168842adf148e27eaf9d710b2824f1a812294aae0a4c
languageName: node
linkType: hard
| chore: bump taskit version | chore: bump taskit version
|
0d2d9382eab86be06ac321c1886e8dd8d1670d5a | --- src/components/TeamList.tsx
@@ -372,13 +372,13 @@ export const TeamChatCard = (props: {
return null;
}
- return sortedWorkgroupKeys.map((workgroupKey, workgroupNdx) => {
+ return sortedWorkgroupKeys.map((workgroupKey, workgroupIndex) => {
const teams = teamsByWorkgroup[workgroupKey].sort(sortTeamsAscComparator);
if (isNil(teams) || teams.length === 0) {
return null;
}
- const renderTeamItems = teams.map((teamItemInfo, teamItemNdx) => {
- const isLastItem = teamItemNdx === teams.length - 1;
+ const renderTeamItems = teams.map((teamItemInfo, teamItemIndex) => {
+ const isLastItem = teamItemIndex === teams.length - 1;
return (
<TeamItem
teamId={teamItemInfo.teamId!}
@@ -390,7 +390,7 @@ export const TeamChatCard = (props: {
);
});
const workgroupName = teams[0].workgroup;
- const isLastWorkgroup = workgroupNdx === sortedWorkgroupKeys.length - 1;
+ const isLastWorkgroup = workgroupIndex === sortedWorkgroupKeys.length - 1;
return (
<CardContent
UNSAFE_style={[
--- src/components/TeamList.tsx
@@ -372,13 +372,13 @@ export const TeamChatCard = (props: {
return null;
}
- return sortedWorkgroupKeys.map((workgroupKey, workgroupNdx) => {
+ return sortedWorkgroupKeys.map((workgroupKey, workgroupIndex) => {
const teams = teamsByWorkgroup[workgroupKey].sort(sortTeamsAscComparator);
if (isNil(teams) || teams.length === 0) {
return null;
}
- const renderTeamItems = teams.map((teamItemInfo, teamItemNdx) => {
- const isLastItem = teamItemNdx === teams.length - 1;
+ const renderTeamItems = teams.map((teamItemInfo, teamItemIndex) => {
+ const isLastItem = teamItemIndex === teams.length - 1;
return (
<TeamItem
teamId={teamItemInfo.teamId!}
@@ -390,7 +390,7 @@ export const TeamChatCard = (props: {
);
});
const workgroupName = teams[0].workgroup;
- const isLastWorkgroup = workgroupNdx === sortedWorkgroupKeys.length - 1;
+ const isLastWorkgroup = workgroupIndex === sortedWorkgroupKeys.length - 1;
return (
<CardContent
UNSAFE_style={[
| refactor ndx to index | refactor ndx to index
|
d59f1a98817b1c34fd1461835859314e55e52ad5 | --- packages/allspark-foundation/src/Components/Banners/AllsparkBanner.tsx
@@ -15,7 +15,6 @@ const styles = StyleSheet.create({
justifyContent: 'center',
},
alert: {
- height: 72,
borderLeftWidth: 0,
alignItems: 'center',
borderRadius: 0,
@@ -54,11 +53,11 @@ export const AllsparkBanner = (props: {
</Banner>
)}
- {type === 'alert' && (
+ {banner.type === 'alert' && (
<View style={styles.alertContainer}>
<Alert
variant={variant}
- UNSAFE_style={styles.alert}
+ UNSAFE_style={[styles.alert, banner.style]}
actionButtonProps={{
...((banner as AlertConfig).actionButtonProps || {}),
children: (banner as AlertConfig).actionButtonProps?.value,
--- packages/allspark-foundation/src/Components/Banners/types.ts
@@ -1,4 +1,9 @@
-import { GestureResponderEvent, ViewProps } from 'react-native';
+import {
+ GestureResponderEvent,
+ ViewProps,
+ StyleProp,
+ ViewStyle,
+} from 'react-native';
import {
BannerVariant,
AlertVariant,
@@ -38,6 +43,7 @@ export type AlertConfig = {
onPress: (event: GestureResponderEvent) => void;
};
onClose?: (event: GestureResponderEvent) => void;
+ style?: StyleProp<ViewStyle>;
};
/**
| feat: add style prop for alert banner type | feat: add style prop for alert banner type
|
89dee3b9fff009a298e2e72b41156719b0868e2e | --- src/home/components/CelebrationCard/styles.ts
@@ -16,6 +16,7 @@ export default StyleSheet.create({
},
balloonImage: {
height: 82,
+ width: 82,
position: 'absolute',
top: -41,
right: Metrics.margins.large,
--- src/home/components/TaskCard/TaskClockStatusStoreCard.tsx
@@ -27,7 +27,7 @@ export const TaskClockStatusStoreCard: FC<TaskCardProps> = (props) => {
const {t} = useTranslation(['home']);
const storeId = useSelector(UserSelectors.getUserWorkingSite);
const countryCode = useSelector(UserSelectors.getUserCountryCode);
- const isStore = useSelector(SiteSelectors.getIsWalmartStore);
+ const isStore = useSelector(SiteSelectors.isSiteWmtStore);
const date = moment().format('YYYY-MM-DD');
const query = 'graphql';
@@ -74,7 +74,7 @@ export const TaskClockStatusStoreCard: FC<TaskCardProps> = (props) => {
logWMTelemetryTouchComponentEvent('task_view_roster');
navigation.navigate('myTeam');
};
-
+ console.log('ruh001x HERE');
return (
<SolidCard color={'white'} elevation={1} style={styles.taskCardStyle}>
{fetching && !result && (
| fixing SMBLV-3439 and selector for store vs site on roster card | fixing SMBLV-3439 and selector for store vs site on roster card
|
55c6bdf74333922a4afbd7314958398a10104c49 | --- src/services/PushNotificationApi.ts
@@ -1,5 +1,6 @@
import {CommonHttpClient} from '@walmart/allspark-http-client';
-import {HTTP_CLIENT_KEY} from './config';
+import {getPushNotificationApiBaseURL, HTTP_CLIENT_KEY} from './config';
+import {getDeferredEnvContext} from '@walmart/core-services/Environment/context';
//TODO: Configure the baseURL based on environment.
const pushNotificationBaseURL =
@@ -25,6 +26,7 @@ const BasePushNotificationApi = CommonHttpClient.clone(
'cache-control': 'no-cache',
ping_token_idp: 'yes',
Accept: 'application/json',
+ 'Content-Type': 'application/json',
},
timeout: 10000,
},
@@ -32,7 +34,7 @@ const BasePushNotificationApi = CommonHttpClient.clone(
);
export const PushNotificationApi: IPushNotificationApi = {
- notifyRecipients: (
+ notifyRecipients: async (
senderName,
message,
recipients,
@@ -40,27 +42,17 @@ export const PushNotificationApi: IPushNotificationApi = {
channelId,
imageUrl,
) => {
- return BasePushNotificationApi.post(
- 'http://texting-notification-service-dev.smdv-backend.k8s.glb.us.walmart.net/notifyRecipients',
- {
- data: {
- title: senderName,
- alert: message,
- recipients: recipients,
- storeNumber: storeNumber,
- channelId: channelId,
- imageUrl: imageUrl,
- },
- headers: {
- 'Content-Type': 'application/json',
- 'wm_correlation.id': '123-123',
- },
+ const env = await getDeferredEnvContext();
+ const baseURL = getPushNotificationApiBaseURL(env);
+ return BasePushNotificationApi.post(baseURL + '/notifyRecipients', {
+ data: {
+ title: senderName,
+ alert: message,
+ recipients: recipients,
+ storeNumber: storeNumber,
+ channelId: channelId,
+ imageUrl: imageUrl,
},
- )
- .then((resp) => console.log(resp))
- .catch((e) => {
- console.log('Error with request');
- console.log(e.request);
- });
+ });
},
};
--- src/services/config.ts
@@ -15,3 +15,14 @@ export const getHttpConfig = (envConfig: EnvConfig) => ({
'wm_consumer.id': envConfig.consumerId,
},
});
+
+export const getPushNotificationApiBaseURL = (envConfig: EnvConfig) => {
+ const BASE_URL_STAGE =
+ 'http://texting-notification-service-dev.smdv-backend.k8s.glb.us.walmart.net';
+ const BASE_URL_PROD = 'TBD';
+ if (envConfig.env === 'dev') {
+ return BASE_URL_STAGE;
+ } else {
+ return BASE_URL_PROD;
+ }
+};
--- src/services/PushNotificationApi.ts
@@ -1,5 +1,6 @@
import {CommonHttpClient} from '@walmart/allspark-http-client';
-import {HTTP_CLIENT_KEY} from './config';
+import {getPushNotificationApiBaseURL, HTTP_CLIENT_KEY} from './config';
+import {getDeferredEnvContext} from '@walmart/core-services/Environment/context';
//TODO: Configure the baseURL based on environment.
const pushNotificationBaseURL =
@@ -25,6 +26,7 @@ const BasePushNotificationApi = CommonHttpClient.clone(
'cache-control': 'no-cache',
ping_token_idp: 'yes',
Accept: 'application/json',
+ 'Content-Type': 'application/json',
},
timeout: 10000,
},
@@ -32,7 +34,7 @@ const BasePushNotificationApi = CommonHttpClient.clone(
);
export const PushNotificationApi: IPushNotificationApi = {
- notifyRecipients: (
+ notifyRecipients: async (
senderName,
message,
recipients,
@@ -40,27 +42,17 @@ export const PushNotificationApi: IPushNotificationApi = {
channelId,
imageUrl,
) => {
- return BasePushNotificationApi.post(
- 'http://texting-notification-service-dev.smdv-backend.k8s.glb.us.walmart.net/notifyRecipients',
- {
- data: {
- title: senderName,
- alert: message,
- recipients: recipients,
- storeNumber: storeNumber,
- channelId: channelId,
- imageUrl: imageUrl,
- },
- headers: {
- 'Content-Type': 'application/json',
- 'wm_correlation.id': '123-123',
- },
+ const env = await getDeferredEnvContext();
+ const baseURL = getPushNotificationApiBaseURL(env);
+ return BasePushNotificationApi.post(baseURL + '/notifyRecipients', {
+ data: {
+ title: senderName,
+ alert: message,
+ recipients: recipients,
+ storeNumber: storeNumber,
+ channelId: channelId,
+ imageUrl: imageUrl,
},
- )
- .then((resp) => console.log(resp))
- .catch((e) => {
- console.log('Error with request');
- console.log(e.request);
- });
+ });
},
};
--- src/services/config.ts
@@ -15,3 +15,14 @@ export const getHttpConfig = (envConfig: EnvConfig) => ({
'wm_consumer.id': envConfig.consumerId,
},
});
+
+export const getPushNotificationApiBaseURL = (envConfig: EnvConfig) => {
+ const BASE_URL_STAGE =
+ 'http://texting-notification-service-dev.smdv-backend.k8s.glb.us.walmart.net';
+ const BASE_URL_PROD = 'TBD';
+ if (envConfig.env === 'dev') {
+ return BASE_URL_STAGE;
+ } else {
+ return BASE_URL_PROD;
+ }
+};
| added env context for api | added env context for api
|
14e0a15d9b82f7c65707c3b88a85690f55407b5a | --- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx
@@ -130,7 +130,7 @@ export const TeamSwitcher = ({
flatListRef.current.scrollToIndex({
animated: false,
index: selectedTeamIndex,
- viewOffset: 0.5,
+ viewPosition: 0.5,
});
}
}
@@ -146,7 +146,7 @@ export const TeamSwitcher = ({
flatListRef.current.scrollToIndex({
animated: false,
index: 0,
- viewOffset: 0.5,
+ viewPosition: 0.5,
});
}
};
@@ -157,11 +157,11 @@ export const TeamSwitcher = ({
(isOffSite && empType === EMP_TYPE_HOURLY) || isHomeOffice;
const isPrefAvaialable = userPrefTeams && userPrefTeams.length > 0;
- const setCurrentTeam = (team: any) => {
+ const setCurrentTeam = (team: TeamSwitcherTypes) => {
if (team.teamId === MY_TEAMS_TEAM_ID) {
const selectedTeamsList = teamData
- .filter((teamInfo) => teamInfo.teamLabel)
- .map((teamInfo) => teamInfo.teamId);
+ .filter((teamInfo: TeamSwitcherTypes) => teamInfo.teamLabel)
+ .map((teamInfo: TeamSwitcherTypes) => teamInfo.teamId);
dispatch(
StoreManagerExperienceCreators.updateSelectedTeamIDs(selectedTeamsList)
);
@@ -175,7 +175,7 @@ export const TeamSwitcher = ({
};
const selectTeam = useCallback(
- (team: any) => {
+ (team: TeamSwitcherTypes) => {
setSelectedTeam(team.teamLabel);
setCurrentTeam(team);
},
@@ -184,6 +184,10 @@ export const TeamSwitcher = ({
);
const initializeTeamEvaluation = () => {
+ if (isLoading) {
+ return;
+ }
+
let evaluatedTeamList: TeamSwitcherTypes[] = [];
let evaluatedSelectTeam: TeamSwitcherTypes = {} as TeamSwitcherTypes;
@@ -199,9 +203,7 @@ export const TeamSwitcher = ({
const primaryTeamData = userPrimaryTeam?.[0] as Team;
if (
userPrefTeams.length === 1 &&
- userPrefTeams.some(
- (pref: TeamSwitcherTypes) => pref.teamId === primaryTeamData.teamId
- )
+ userPrefTeams[0].teamId === primaryTeamData.teamId
) {
evaluatedTeamList = [totalStore, userPrefTeams?.[0]];
evaluatedSelectTeam = userPrefTeams?.[0];
@@ -240,6 +242,7 @@ export const TeamSwitcher = ({
isSalariedAndNotHomeOffice,
isHourlyAndHomeOffice,
isPrefAvaialable,
+ isLoading,
]);
useEffect(() => {
@@ -272,8 +275,8 @@ export const TeamSwitcher = ({
);
if (teamId === MY_TEAMS_TEAM_ID) {
const selectedTeamsList = teamData
- .filter((team: any) => team.teamLabel)
- .map((team: any) => team.teamId);
+ .filter((team: TeamSwitcherTypes) => team.teamLabel)
+ .map((team: TeamSwitcherTypes) => team.teamId);
dispatch(
StoreManagerExperienceCreators.updateSelectedTeamIDs(selectedTeamsList)
);
@@ -393,6 +396,7 @@ export const TeamSwitcher = ({
style={styles.flatListContainer}
testID='team-switcher-list'
data={teamSwitcherList}
+ extraData={teamSwitcherList}
renderItem={renderTeamItem}
keyExtractor={keyExtractor}
horizontal={true}
| fixed pr comments | fixed pr comments
|
3e1dc1fc68fbdc760a6af848d770f2344ea3d5b5 | --- package.json
@@ -393,7 +393,6 @@
"@walmart/allspark-utils": "6.1.4",
"@walmart/allspark-foundation": "6.1.4",
"@walmart/me-at-walmart-common": "6.1.4",
- "@walmart/me-at-walmart-container": "patch:@walmart/me-at-walmart-container@npm%3A6.1.4#~/.yarn/patches/@walmart-me-at-walmart-container-npm-6.1.4-9866658c81.patch",
"@walmart/allspark-graphql-client": "6.1.4",
"@walmart/allspark-http-client": "6.1.4",
"@walmart/core-services": "6.1.4",
--- yarn.lock
@@ -6508,6 +6508,47 @@ __metadata:
languageName: node
linkType: hard
+"@walmart/me-at-walmart-container@patch:@walmart/me-at-walmart-container@npm%3A6.1.4#~/.yarn/patches/@walmart-me-at-walmart-container-npm-6.1.4-9866658c81.patch":
+ version: 6.1.4
+ resolution: "@walmart/me-at-walmart-container@patch:@walmart/me-at-walmart-container@npm%3A6.1.4#~/.yarn/patches/@walmart-me-at-walmart-container-npm-6.1.4-9866658c81.patch::version=6.1.4&hash=1b1bda"
+ dependencies:
+ "@walmart/allspark-utils": "npm:^6.1.4"
+ jwt-decode: "npm:^3.1.2"
+ nanoid: "npm:4.0.2"
+ redux-flipper: "npm:^2.0.2"
+ peerDependencies:
+ "@react-native-async-storage/async-storage": 1.x
+ "@react-native-firebase/analytics": 17.x
+ "@react-native-firebase/crashlytics": 17.x
+ "@react-native-firebase/database": 17.x
+ "@react-native-firebase/perf": 17.x
+ "@walmart/allspark-authentication": "*"
+ "@walmart/allspark-foundation": "*"
+ "@walmart/config-components": 4.x
+ "@walmart/core-services": ">=6"
+ "@walmart/core-services-allspark": ">=6"
+ "@walmart/core-widget-registry": ">=6"
+ "@walmart/me-at-walmart-athena-queries": ">=6"
+ "@walmart/me-at-walmart-common": "*"
+ "@walmart/react-native-encrypted-storage": 1.x
+ "@walmart/react-native-logger": 1.x
+ react: "*"
+ react-native: "*"
+ react-native-device-info: 10.x
+ wifi-store-locator: 1.x
+ peerDependenciesMeta:
+ "@walmart/core-services":
+ optional: true
+ "@walmart/core-services-allspark":
+ optional: true
+ "@walmart/core-widget-registry":
+ optional: true
+ "@walmart/me-at-walmart-athena-queries":
+ optional: true
+ checksum: 10c0/ba6179c2d018ce7aa565aeffe1e17756be2efb7ae2109849b66ca1eb85856786249f9ce14cf7584e1452e27c189de3a1e2614eea13c32ac10c54877ef0bdb077
+ languageName: node
+ linkType: hard
+
"@walmart/metrics-mini-app@npm:0.22.4":
version: 0.22.4
resolution: "@walmart/metrics-mini-app@npm:0.22.4"
@@ -7831,7 +7872,7 @@ __metadata:
"@walmart/manager-approvals-miniapp": "npm:0.2.4"
"@walmart/me-at-walmart-athena-queries": "npm:6.1.4"
"@walmart/me-at-walmart-common": "npm:6.1.4"
- "@walmart/me-at-walmart-container": "npm:6.1.4"
+ "@walmart/me-at-walmart-container": "patch:@walmart/me-at-walmart-container@npm%3A6.1.4#~/.yarn/patches/@walmart-me-at-walmart-container-npm-6.1.4-9866658c81.patch"
"@walmart/metrics-mini-app": "npm:0.22.4"
"@walmart/mod-flex-mini-app": "npm:1.18.5"
"@walmart/moment-walmart": "npm:1.0.4"
| update package json | update package json
|
22a1abaae14d939cdb4bf089d9a5f64d108f11d7 | --- __tests__/indexTest.tsx
@@ -1,31 +0,0 @@
-import React from 'react';
-import {create} from 'react-test-renderer';
-import {reducerManager} from '@walmart/redux-store';
-import {reducer, REDUX_KEY} from '../src/cafeOrders/redux';
-import {CafeMiniApp} from '../src';
-
-jest.mock('@walmart/redux-store', () => ({
- reducerManager: {
- addReducer: jest.fn(),
- },
-}));
-
-jest.mock('../src/cafeOrders', () => ({
- CafeNav: () => 'CafeNav',
- getClientConfig: jest.fn(),
- HTTP_CLIENT_KEY: 'xyz',
-}));
-
-describe('CafeMiniApp', () => {
- it('renders', () => {
- const component = create(<CafeMiniApp />);
- expect(component.toJSON).toMatchSnapshot();
- });
-});
-
-describe('CafeMiniApp initialize', () => {
- it('renders', () => {
- CafeMiniApp.initialize();
- expect(reducerManager.addReducer).toHaveBeenCalledWith(REDUX_KEY, reducer);
- });
-});
--- __tests__/screens/MessagesScreenTest.tsx
@@ -0,0 +1,33 @@
+import React from 'react';
+
+describe('MessagesHeader', () => {
+ describe('1-1 chat', () => {
+ it('should show receivers display name', () => {});
+ it('should show presence indicator with status text', () => {});
+ });
+ describe('team chat', () => {
+ it('should show the team name', () => {});
+ it('should not show the presence indicator', () => {});
+ });
+});
+
+describe('MessagesList', () => {
+ it('should paginate messages', () => {});
+ it('should displays a text message', () => {});
+ it('should displays an audio message', () => {});
+ it('should displays a photo message', () => {});
+ it('should display avatar with presence indicator of other user as part of the message', () => {});
+ it('should display a timestamp divider after X time elapsed since last message', () => {});
+ it('should display read receipt under message after it has been read', () => {});
+});
+
+describe('ChatInput', () => {
+ it('Able to input a text message and send it. Message list updates after send', () => {});
+ it('Able to select a photo in the photo gallery and send the photo message. Message list updates after send', () => {});
+ it('Able to send a recorded audio message. Message list updates after send', () => {});
+ it('Clicking microphone starts a message recording', () => {});
+ it('Clicking photo icon opens gallery to select a photo', () => {});
+ it('Clicking camera icon opens camera to take a photo', () => {});
+ it('Able to start and stop an audio recording', () => {});
+ it('Pressing trash can stops audio recording and discards message. User is taken back to default chat input display', () => {});
+});
--- __tests__/indexTest.tsx
@@ -1,31 +0,0 @@
-import React from 'react';
-import {create} from 'react-test-renderer';
-import {reducerManager} from '@walmart/redux-store';
-import {reducer, REDUX_KEY} from '../src/cafeOrders/redux';
-import {CafeMiniApp} from '../src';
-
-jest.mock('@walmart/redux-store', () => ({
- reducerManager: {
- addReducer: jest.fn(),
- },
-}));
-
-jest.mock('../src/cafeOrders', () => ({
- CafeNav: () => 'CafeNav',
- getClientConfig: jest.fn(),
- HTTP_CLIENT_KEY: 'xyz',
-}));
-
-describe('CafeMiniApp', () => {
- it('renders', () => {
- const component = create(<CafeMiniApp />);
- expect(component.toJSON).toMatchSnapshot();
- });
-});
-
-describe('CafeMiniApp initialize', () => {
- it('renders', () => {
- CafeMiniApp.initialize();
- expect(reducerManager.addReducer).toHaveBeenCalledWith(REDUX_KEY, reducer);
- });
-});
--- __tests__/screens/MessagesScreenTest.tsx
@@ -0,0 +1,33 @@
+import React from 'react';
+
+describe('MessagesHeader', () => {
+ describe('1-1 chat', () => {
+ it('should show receivers display name', () => {});
+ it('should show presence indicator with status text', () => {});
+ });
+ describe('team chat', () => {
+ it('should show the team name', () => {});
+ it('should not show the presence indicator', () => {});
+ });
+});
+
+describe('MessagesList', () => {
+ it('should paginate messages', () => {});
+ it('should displays a text message', () => {});
+ it('should displays an audio message', () => {});
+ it('should displays a photo message', () => {});
+ it('should display avatar with presence indicator of other user as part of the message', () => {});
+ it('should display a timestamp divider after X time elapsed since last message', () => {});
+ it('should display read receipt under message after it has been read', () => {});
+});
+
+describe('ChatInput', () => {
+ it('Able to input a text message and send it. Message list updates after send', () => {});
+ it('Able to select a photo in the photo gallery and send the photo message. Message list updates after send', () => {});
+ it('Able to send a recorded audio message. Message list updates after send', () => {});
+ it('Clicking microphone starts a message recording', () => {});
+ it('Clicking photo icon opens gallery to select a photo', () => {});
+ it('Clicking camera icon opens camera to take a photo', () => {});
+ it('Able to start and stop an audio recording', () => {});
+ it('Pressing trash can stops audio recording and discards message. User is taken back to default chat input display', () => {});
+});
| writing test case skeletons | writing test case skeletons
|
3cf74bf16cba06d11f242c2e9fd5e0df47fdc13b | --- yarn.lock
@@ -8291,11 +8291,11 @@ __metadata:
linkType: hard
"@walmart/taskit-mini-app@npm:5.24.1":
- version: 5.24.0
- resolution: "@walmart/taskit-mini-app@npm:5.24.0"
+ version: 5.24.1
+ resolution: "@walmart/taskit-mini-app@npm:5.24.1"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/0097665003d9c3846aede635f8a2cb3b29709ed23063c6dd3ca61517e5ca6caf0d9a297da355644889e59c49aa650888b211d052818543d49e6cd17f1538de1b
+ checksum: 10c0/ef3da5d70f30c426c5a00e1f233bc66f6625251bd04315e0f522212252da1135fd424fde08a6297acadcbd38ba9cf5b16cd3d1b60bf753765f3bb84e023ba8b5
languageName: node
linkType: hard
| updated yarn lock file | updated yarn lock file
|
c4bea650af56e35782d7b666af3c2289018a9a38 | --- package-lock.json
@@ -56,7 +56,7 @@
"@walmart/allspark-graphql-client": "^1.4.6",
"@walmart/config-components": "4.2.7",
"@walmart/core-services": "~2.2.1",
- "@walmart/core-services-allspark": "~2.12.8",
+ "@walmart/core-services-allspark": "~2.13.7",
"@walmart/core-utils": "~2.0.5",
"@walmart/functional-components": "~4.0.3",
"@walmart/gtp-shared-components": "2.1.3",
@@ -11525,9 +11525,9 @@
}
},
"node_modules/@walmart/allspark-utils": {
- "version": "1.6.4",
- "resolved": "https://npme.walmart.com/@walmart/allspark-utils/-/allspark-utils-1.6.4.tgz",
- "integrity": "sha512-4Wdb97ufBxYb9hQS85cpn+MuidMOHByKqxfWtN+WUs3VYbjzFYIr5BwrH7Q2P+sPepGFg8CgtSBlaOVUGQ8ZxA==",
+ "version": "1.6.7",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-utils/-/allspark-utils-1.6.7.tgz",
+ "integrity": "sha512-MjG9xL9Xjl0yriWQYqTBGwRAjRwrObJpnWVwXmmY5bAH66cpF60Q4YvHBTdV/LcrrZmZfH2TP/w1Rq3pgMUs2Q==",
"dev": true,
"license": "ISC",
"dependencies": {
@@ -11596,17 +11596,17 @@
}
},
"node_modules/@walmart/core-services-allspark": {
- "version": "2.12.8",
- "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.12.8.tgz",
- "integrity": "sha512-pPGakgukc/tL9ZqpvbGQ//6SKgbPWB52YWNjNxllXJLz8QJmoIuRm2ti/d1gTJJdhQJ8F+SsX5wQmzXsZjpZww==",
+ "version": "2.13.7",
+ "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.13.7.tgz",
+ "integrity": "sha512-+XuvMbP6mavOxgSm0gXtZ19uGcVJf8XXGzce/W6aEAs7S7JHlI6ziszU2aHv5NMOUQmeD1lvF1E66NPJzlELdw==",
"dev": true,
"license": "ISC",
"dependencies": {
- "@walmart/allspark-graphql-client": "^1.4.10",
- "@walmart/allspark-http-client": "^2.4.17",
- "@walmart/allspark-utils": "^1.6.1",
- "@walmart/core-services": "^2.2.1",
- "@walmart/me-at-walmart-athena-queries": "^1.7.0",
+ "@walmart/allspark-graphql-client": "^1.4.14",
+ "@walmart/allspark-http-client": "^2.4.21",
+ "@walmart/allspark-utils": "^1.6.7",
+ "@walmart/core-services": "^2.3.4",
+ "@walmart/me-at-walmart-athena-queries": "^1.7.5",
"crypto-js": "~4.1.1",
"jwt-decode": "^3.1.2",
"luxon": "^2.4.0",
@@ -11629,9 +11629,9 @@
"@walmart/react-native-shared-navigation": ">=1.0.0",
"@walmart/react-native-sumo-sdk": ">=2.4.0",
"i18next": "^22.0.1",
- "react": "^18.2.0",
+ "react": "*",
"react-i18next": "^12.0.0",
- "react-native": "~0.70.5",
+ "react-native": "*",
"react-native-app-auth": "^6.4.3",
"react-native-device-info": "^10.3.0",
"react-native-permissions": "^3.6.0",
@@ -11736,13 +11736,13 @@
}
},
"node_modules/@walmart/me-at-walmart-athena-queries": {
- "version": "1.7.2",
- "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.7.2.tgz",
- "integrity": "sha512-5CxeF+Ev1f2CDCr5baiKjY/36quysjpRC2fU36IUX4aG+jiG6aNl/PEcIrVZrQi79/T07POsnVdprVyYme1P3Q==",
+ "version": "1.7.5",
+ "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.7.5.tgz",
+ "integrity": "sha512-Vc4RzQsy2RjgEYN56OcUZPfnF61nBueKzp++AuxGfLzK8zHYojR8Qi+wwMqWeAjoSoqQVT5T5l/VxaEcMcrvBA==",
"dev": true,
"license": "ISC",
"dependencies": {
- "@walmart/allspark-graphql-client": "^1.4.11"
+ "@walmart/allspark-graphql-client": "^1.4.14"
}
},
"node_modules/@walmart/react-native-encrypted-storage": {
@@ -40888,9 +40888,9 @@
}
},
"@walmart/allspark-utils": {
- "version": "1.6.4",
- "resolved": "https://npme.walmart.com/@walmart/allspark-utils/-/allspark-utils-1.6.4.tgz",
- "integrity": "sha512-4Wdb97ufBxYb9hQS85cpn+MuidMOHByKqxfWtN+WUs3VYbjzFYIr5BwrH7Q2P+sPepGFg8CgtSBlaOVUGQ8ZxA==",
+ "version": "1.6.7",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-utils/-/allspark-utils-1.6.7.tgz",
+ "integrity": "sha512-MjG9xL9Xjl0yriWQYqTBGwRAjRwrObJpnWVwXmmY5bAH66cpF60Q4YvHBTdV/LcrrZmZfH2TP/w1Rq3pgMUs2Q==",
"dev": true,
"requires": {
"crypto-js": "~4.2.0",
@@ -40934,16 +40934,16 @@
}
},
"@walmart/core-services-allspark": {
- "version": "2.12.8",
- "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.12.8.tgz",
- "integrity": "sha512-pPGakgukc/tL9ZqpvbGQ//6SKgbPWB52YWNjNxllXJLz8QJmoIuRm2ti/d1gTJJdhQJ8F+SsX5wQmzXsZjpZww==",
+ "version": "2.13.7",
+ "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.13.7.tgz",
+ "integrity": "sha512-+XuvMbP6mavOxgSm0gXtZ19uGcVJf8XXGzce/W6aEAs7S7JHlI6ziszU2aHv5NMOUQmeD1lvF1E66NPJzlELdw==",
"dev": true,
"requires": {
"@walmart/allspark-graphql-client": "^1.4.6",
"@walmart/allspark-http-client": "^2.4.9",
- "@walmart/allspark-utils": "^1.6.1",
+ "@walmart/allspark-utils": "^1.6.7",
"@walmart/core-services": "~2.2.1",
- "@walmart/me-at-walmart-athena-queries": "^1.7.0",
+ "@walmart/me-at-walmart-athena-queries": "^1.7.5",
"crypto-js": "~4.1.1",
"jwt-decode": "^3.1.2",
"luxon": "^2.4.0",
@@ -41000,9 +41000,9 @@
"dev": true
},
"@walmart/me-at-walmart-athena-queries": {
- "version": "1.7.2",
- "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.7.2.tgz",
- "integrity": "sha512-5CxeF+Ev1f2CDCr5baiKjY/36quysjpRC2fU36IUX4aG+jiG6aNl/PEcIrVZrQi79/T07POsnVdprVyYme1P3Q==",
+ "version": "1.7.5",
+ "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.7.5.tgz",
+ "integrity": "sha512-Vc4RzQsy2RjgEYN56OcUZPfnF61nBueKzp++AuxGfLzK8zHYojR8Qi+wwMqWeAjoSoqQVT5T5l/VxaEcMcrvBA==",
"dev": true,
"requires": {
"@walmart/allspark-graphql-client": "^1.4.6"
--- package.json
@@ -79,7 +79,7 @@
"@walmart/allspark-graphql-client": "^1.4.6",
"@walmart/config-components": "4.2.7",
"@walmart/core-services": "~2.2.1",
- "@walmart/core-services-allspark": "~2.12.8",
+ "@walmart/core-services-allspark": "~2.13.7",
"@walmart/core-utils": "~2.0.5",
"@walmart/functional-components": "~4.0.3",
"@walmart/gtp-shared-components": "2.1.3",
| Update export files | Update export files
|
029dd1b41e05c251495a501099874342b77c6260 | --- lerna.json
@@ -1,5 +1,5 @@
{
- "version": "1.4.0-alpha.9",
+ "version": "independent",
"npmClient": "yarn",
"changelogPreset": "angular",
"command": {
| chore(ui): update lerna json file | chore(ui): update lerna json file
|
69f7fbcff8ee7c92c7b3c8024b12e223f3f230c7 | --- src/index.tsx
@@ -14,6 +14,7 @@ import {reducerManager} from '@walmart/redux-store';
import {rosterSlice} from './redux/reducer';
export const LOGGER_FIELDS = {id: 'roster-mini-app'};
+export * from './shared';
reducerManager.addReducer('roster', rosterSlice.reducer);
@@ -41,12 +42,6 @@ export const initialize = async (debugToken: string) => {
initi18n();
-export {RosterScreen} from './screens/RosterScreen';
-export {SearchHeader} from './components/SearchHeader';
-export {ViewTeamScreen} from './screens/ViewTeamScreen';
-export {SearchHeaderRight} from './components/SearchHeader';
-export {SearchScreen} from './screens/SearchScreen';
-
export const RosterMiniApp = () => {
const envConfig = useEnvironment();
const httpConfig = useMemo(() => getHttpConfig(envConfig), [envConfig]);
--- src/shared/index.tsx
@@ -0,0 +1,5 @@
+export {RosterScreen} from '../screens/RosterScreen';
+export {SearchHeader} from '../components/SearchHeader';
+export {ViewTeamScreen} from '../screens/ViewTeamScreen';
+export {SearchHeaderRight} from '../components/SearchHeader';
+export {SearchScreen} from '../screens/SearchScreen';
| Update export files | Update export files
|
ca039e598ab2c53c1738c4ad34ba362839a7cab0 | --- package-lock.json
@@ -93,7 +93,7 @@
"@walmart/ui-components": "1.15.6",
"@walmart/welcomeme-mini-app": "0.85.0",
"@walmart/wfm-ui": "0.2.26",
- "@walmart/wm-plus-mini-app": "0.12.17",
+ "@walmart/wm-plus-mini-app": "0.12.19",
"axios": "~1.2.6",
"axios-cache-adapter": "2.7.3",
"crypto-js": "^3.3.0",
@@ -9994,9 +9994,9 @@
}
},
"node_modules/@walmart/wm-plus-mini-app": {
- "version": "0.12.17",
- "resolved": "https://npme.walmart.com/@walmart/wm-plus-mini-app/-/wm-plus-mini-app-0.12.17.tgz",
- "integrity": "sha512-UN4T/y0iHtItMqE2sVYdQUOzdT6WNf+YPmcQyQ8N78DU4Rgilu44qjoet6tWRmMuz1Q2eB9YuAKs+yvDY4NKYg==",
+ "version": "0.12.19",
+ "resolved": "https://npme.walmart.com/@walmart/wm-plus-mini-app/-/wm-plus-mini-app-0.12.19.tgz",
+ "integrity": "sha512-8cGOQnmRB/KCqC+xCAk1u0eBTgC34pHQK1Hl1tPh4Mh+LuDsJ6TSGWQaKe31x6jz564NN9IgL1PslZTuX9M6gg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -33526,9 +33526,9 @@
}
},
"@walmart/wm-plus-mini-app": {
- "version": "0.12.17",
- "resolved": "https://npme.walmart.com/@walmart/wm-plus-mini-app/-/wm-plus-mini-app-0.12.17.tgz",
- "integrity": "sha512-UN4T/y0iHtItMqE2sVYdQUOzdT6WNf+YPmcQyQ8N78DU4Rgilu44qjoet6tWRmMuz1Q2eB9YuAKs+yvDY4NKYg=="
+ "version": "0.12.19",
+ "resolved": "https://npme.walmart.com/@walmart/wm-plus-mini-app/-/wm-plus-mini-app-0.12.19.tgz",
+ "integrity": "sha512-8cGOQnmRB/KCqC+xCAk1u0eBTgC34pHQK1Hl1tPh4Mh+LuDsJ6TSGWQaKe31x6jz564NN9IgL1PslZTuX9M6gg=="
},
"@wry/context": {
"version": "0.7.0",
@@ -45058,4 +45058,4 @@
}
}
}
-}
\ No newline at end of file
+}
--- package.json
@@ -134,7 +134,7 @@
"@walmart/ui-components": "1.15.6",
"@walmart/welcomeme-mini-app": "0.85.0",
"@walmart/wfm-ui": "0.2.26",
- "@walmart/wm-plus-mini-app": "0.12.17",
+ "@walmart/wm-plus-mini-app": "0.12.19",
"axios": "~1.2.6",
"axios-cache-adapter": "2.7.3",
"crypto-js": "^3.3.0",
@@ -331,4 +331,4 @@
"pre-push": "run-p solidarity coverage"
}
}
-}
\ No newline at end of file
+}
| package version update | package version update
|
703718c144d7d681ee8e0461c80a94535a555e4e | --- package.json
@@ -159,7 +159,7 @@
"@walmart/sidekick-mini-app": "4.205.5",
"@walmart/store-feature-orders": "1.34.3",
"@walmart/talent-preboarding-mini-app": "1.0.41",
- "@walmart/taskit-mini-app": "5.40.9",
+ "@walmart/taskit-mini-app": "5.41.1",
"@walmart/time-clock-mini-app": "3.19.6",
"@walmart/time-clock-mini-app-next": "3.0.0",
"@walmart/topstock-mini-app": "1.26.7",
--- yarn.lock
@@ -8752,7 +8752,7 @@ __metadata:
"@walmart/sidekick-mini-app": "npm:4.205.5"
"@walmart/store-feature-orders": "npm:1.34.3"
"@walmart/talent-preboarding-mini-app": "npm:1.0.41"
- "@walmart/taskit-mini-app": "npm:5.40.9"
+ "@walmart/taskit-mini-app": "npm:5.41.1"
"@walmart/time-clock-mini-app": "npm:3.19.6"
"@walmart/time-clock-mini-app-next": "npm:3.0.0"
"@walmart/topstock-mini-app": "npm:1.26.7"
@@ -9633,12 +9633,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/taskit-mini-app@npm:5.40.9":
- version: 5.40.9
- resolution: "@walmart/taskit-mini-app@npm:5.40.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.40.9.tgz"
+"@walmart/taskit-mini-app@npm:5.41.1":
+ version: 5.41.1
+ resolution: "@walmart/taskit-mini-app@npm:5.41.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.41.1.tgz"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/fe7cc59037f1d7c856ef90d15bf6c3de25d5de5432474db0c37b8b2ab85eb605ce97511099a3baaa248f76d132a78ede1f78b1186c48d4da5e90f533d191f73a
+ checksum: 10c0/7eef54a62f64bb10858997fc2a57c159030a8e86bd1f8d5ac711e78372dbd74502442c345e8bb34820174d33cfd9c38b15bb0df1c2f59b303b2c9cf9b7c5c900
languageName: node
linkType: hard
| fix(notes): asset migration to CDN and code cleanup TASKIT-6916 | fix(notes): asset migration to CDN and code cleanup TASKIT-6916
|
daa0d8562bcd44b4ef53e6b0c90fe5b307f4056e | --- packages/allspark-foundation/src/Components/ComponentContainers.md
@@ -38,6 +38,22 @@ Or with `AllsparkComponentContainers`:
<AllsparkComponentContainers.List container='Me@Walmart.HomeScreen' {...props} />
```
+##### Configuration
+
+The `List` component accepts optional props to control which components are rendered.
+
+- `allow` - A list of component ids to allow. If provided, only components with ids in this list will be rendered.
+- `deny` - A list of component ids to deny. If provided, components with ids in this list will not be rendered.
+
+> Note. If both `allow` and `deny` are provided, `allow` will take precedence.
+
+```tsx
+const ALLOW_LIST = ['emergency-card', ...];
+
+<HomeScreen.List allow={ALLOW_LIST} {...props} />
+```
+
+
#### Render a single component
Use the `Component` component and pass required props.
@@ -137,5 +153,16 @@ const EmergencyCard = (props) => {
) : null;
};
-AllsparkComponentContainers.add('emergency-card', EmergencyCard);
+AllsparkComponentContainers.add('Me@Walmart.HomeScreen', 'emergency-card', EmergencyCard);
+```
+
+### Other Methods
+
+#### `hasComponent`
+
+Returns `true` if the component exists in the container.
+
+```tsx
+const hasEmergencyCard = HomeScreen.hasComponent('emergency-card');
+// true in example above
```
--- packages/allspark-foundation/src/Components/ComponentContainers.tsx
@@ -1,6 +1,11 @@
import React, { ComponentType, useMemo } from 'react';
import { EventManager, useRenderOnChange } from '@walmart/allspark-utils';
+type ComponentContainerListConfig = {
+ allow?: string[];
+ deny?: string[];
+};
+
/**
* A component container manages a set of components with a given set of props.
*
@@ -30,7 +35,7 @@ export class ComponentContainer<Props extends Object> {
}>(['change']);
/**
- * @deprecated - Use the Component property directly instead.
+ * @deprecated - Use the Component property to directly render a specific component.
**/
public getComponent = (id: string) => {
return this._components.get(id);
@@ -80,26 +85,6 @@ export class ComponentContainer<Props extends Object> {
}
};
- /**
- * Renders all components added to the container with the given props
- * @param props - Props to pass to the components.
- * @example
- * <AllsparkElementContainer.Container {...props} />
- */
- public List = (props: Props) => {
- useRenderOnChange({
- addChangeListener: (cb) => this._eventManager.addListener('change', cb),
- });
-
- return (
- <>
- {Array.from(this._components.entries()).map(([id, Component]) => (
- <Component {...props} key={id} />
- ))}
- </>
- );
- };
-
/**
* Renders a specific component added to the container with the given props
* @param props.id - The ID of the component to render.
@@ -119,6 +104,35 @@ export class ComponentContainer<Props extends Object> {
// @ts-ignore - Typing is off here, need to figure out how to resolve
return <Component {...rest} />;
};
+
+ /**
+ * Renders all components added to the container with the given props
+ * @param props - Props to pass to the components.
+ * @example
+ * <AllsparkElementContainer.Container {...props} />
+ */
+ public List = (props: Props & ComponentContainerListConfig) => {
+ const { allow, deny, ...restProps } = props;
+
+ useRenderOnChange({
+ addChangeListener: (cb) => this._eventManager.addListener('change', cb),
+ });
+
+ // Filter components by allow/deny
+ const entries = Array.from(this._components.entries());
+ const components =
+ allow || deny
+ ? entries.filter(([id]) => allow?.includes(id) || !deny?.includes(id))
+ : entries;
+
+ return (
+ <>
+ {components.map(([id, Component]) => (
+ <Component {...(restProps as Props)} key={id} />
+ ))}
+ </>
+ );
+ };
}
/**
| feat: add allow and deny props to component container list | feat: add allow and deny props to component container list
|
3d9a8e325affd002b896b72ad60a4478d4e6d653 | --- __tests__/setup.ts
@@ -61,6 +61,14 @@ jest.mock('expo-audio', () => ({
uri: null,
isRecording: false,
})),
+ useAudioRecorderState: jest.fn(() => ({
+ canRecord: true,
+ isRecording: false,
+ durationMillis: 0,
+ mediaServicesDidReset: false,
+ metering: 0,
+ url: null,
+ })),
createAudioPlayer: jest.fn(() => ({
play: jest.fn(),
pause: jest.fn(),
--- src/containers/ChatInput/AudioRecording.tsx
@@ -4,6 +4,7 @@ import {useTimeout} from '@walmart/allspark-utils';
import {Caption} from '@walmart/gtp-shared-components-3';
import {
useAudioRecorder,
+ useAudioRecorderState,
RecordingPresets,
setAudioModeAsync,
} from 'expo-audio';
@@ -11,7 +12,7 @@ import {
import {ActionButton} from '../../components/ActionButton';
import {RecordingDetails} from './types';
import {MeteringAnimation} from './MeteringVisualization';
-import {useRecordingDetails, useRecordingStatusUpdate} from './hooks';
+import {useRecordingDetails} from './hooks';
import {logger} from '../../common/logger';
const styles = StyleSheet.create({
@@ -42,14 +43,23 @@ export const AudioRecording = (props: {
const [recordingStarted, setRecordingStarted] = useState(false);
const recordingDetailsState = useRecordingDetails();
- const [recordingDetails] = recordingDetailsState;
- const recordingStatusUpdate = useRecordingStatusUpdate(recordingDetailsState);
+ const [recordingDetails, setRecordingDetails] = recordingDetailsState;
- // Create recorder with status callback
- const recorder = useAudioRecorder(
- RecordingPresets.HIGH_QUALITY,
- recordingStatusUpdate
- );
+ // Create recorder without status callback
+ const recorder = useAudioRecorder(RecordingPresets.HIGH_QUALITY);
+
+ // Use useAudioRecorderState to get RecorderState updates
+ const recorderState = useAudioRecorderState(recorder);
+
+ // Update recording details when recorder state changes
+ useEffect(() => {
+ const secs = Math.round(recorderState.durationMillis / 1000);
+ setRecordingDetails(prev => ({
+ secs,
+ time: `00:${secs.toString().padStart(2, '0')}`,
+ metering: [...(prev.metering || []), recorderState.metering || 0],
+ }));
+ }, [recorderState.durationMillis, recorderState.metering, setRecordingDetails]);
/**
* @description Stop current recording. Stop timeout and clear recording ref.
| fix: update packages and expo audio | fix: update packages and expo audio
|
44985399b808bbe81a82fccd646e01f2071b1a55 | --- sonar-project.properties
@@ -5,7 +5,7 @@ sonar.host.url=http://sonar.looper.prod.walmartlabs.com
sonar.sources=packages/allspark-authentication/src, packages/allspark-foundation/src, packages/allspark-utils/src
sonar.tests=packages/allspark-authentication/__tests__, packages/allspark-foundation/__tests__, packages/allspark-utils/__tests__
-sonar.exclusions=packages/allspark-authentication/src/Authentication.ts, packages/allspark-foundation/src/cli/*, packages/allspark-foundation/src/Container/*, packages/allspark-foundation/src/Core/*, packages/allspark-foundation/src/Feature/*, packages/allspark-foundation/src/GraphQL/**/*, packages/allspark-foundation/src/HTTP/**/*, packages/allspark-foundation/src/LocalStorage, packages/allspark-foundation/src/Navigation, packages/allspark-foundation/src/Notification, packages/allspark-foundation/src/Scanner, packages/allspark-foundation/src/Translation, packages/allspark-foundation/src/utils, packages/allspark-foundation/src/Network/*, packages/allspark-foundation/src/Telemetry/*
+sonar.exclusions=packages/allspark-authentication/src/Authentication.ts, packages/allspark-foundation/src/cli/*, packages/allspark-foundation/src/Container/*, packages/allspark-foundation/src/Core/*, packages/allspark-foundation/src/Feature/*, packages/allspark-foundation/src/GraphQL/**/*, packages/allspark-foundation/src/HTTP/**/*, packages/allspark-foundation/src/LocalStorage/*, packages/allspark-foundation/src/Navigation/*, packages/allspark-foundation/src/Notification/*, packages/allspark-foundation/src/Scanner/*, packages/allspark-foundation/src/Translation/*, packages/allspark-foundation/src/utils/*, packages/allspark-foundation/src/Network/*, packages/allspark-foundation/src/Telemetry/*
sonar.sourceEncoding=UTF-8
sonar.typescript.lcov.reportPaths=coverage/lcov.info
sonar.testExecutionReportPaths=test-report.xml
\ No newline at end of file
| chore: edit sonar project file | chore: edit sonar project file
|
43c1247a2a9f168b452fd6f57a07aece16fae7a7 | --- package-lock.json
@@ -18450,9 +18450,9 @@
}
},
"react-native-wm-barcode": {
- "version": "2.36.0-alpha",
- "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.36.0-alpha.tgz",
- "integrity": "sha512-X1Wbh2ka751chue2vstxjg6FvRKzWBNdfVgA9IpiL2tMOuATSrp46UieD2rTym33VIq8anEvizQUD7Sa2vy4Ew=="
+ "version": "2.36.1",
+ "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.36.1.tgz",
+ "integrity": "sha512-Wj6S7piM7E/S6kBxTswI5F1pmlcS0NsTSWbO8ZD4SzDrh/mPUpmGxntbCEcikrY5FwCgzkQ9xKcrAh+ovGuLhg=="
},
"react-native-wm-config": {
"version": "0.1.1",
--- package.json
@@ -166,7 +166,7 @@
"react-native-view-shot": "^3.1.2",
"react-native-vision-camera": "1.0.10",
"react-native-webview": "^10.7.0",
- "react-native-wm-barcode": "2.36.0-alpha",
+ "react-native-wm-barcode": "2.36.1",
"react-native-wm-config": "^0.1.1",
"react-native-wm-network": "^0.2.0",
"react-native-wm-notification": "^2.0.1",
| barcode version bump | barcode version bump
|
fc5eb8f512d4b260a34c38ebb903fe073094c725 | --- package.json
@@ -98,7 +98,7 @@
"@walmart/inbox-mini-app": "0.82.3",
"@walmart/iteminfo-mini-app": "7.1.4",
"@walmart/manager-approvals-miniapp": "0.2.1",
- "@walmart/me-field-mini-app": "12.0.12",
+ "@walmart/me-field-mini-app": "12.0.13",
"@walmart/metrics-mini-app": "0.9.61",
"@walmart/mod-flex-mini-app": "1.6.3",
"@walmart/moment-walmart": "1.0.4",
| Update package.json | Update package.json |
bd221f97c9a3df1fe57fd629b430ac422510b860 | --- packages/associate-exp-hub-hub/CHANGELOG.md
@@ -0,0 +1,14 @@
+# Change Log
+
+All notable changes to this project will be documented in this file.
+See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# 2.1.0 (2025-10-29)
+
+### Features
+
+- **ui:** separate the associate exp team switcher and hub ([76e4474](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/76e44745a18f3497e47bd2f053a22660cbdb712d))
+- **ui:** update activity aware widget ([9a34568](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/9a34568edd99007eca2c39ca8acf86f3320a0269))
+- **ui:** update activity aware widget ([638fbfe](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/638fbfe783c6a67942f1565af833eba126e0293e))
+- **ui:** update my walmart package versions ([bb268be](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/bb268be8c04e50761bf3376eb9e943609cd5f3ef))
+- **ui:** update the associate exp packages ([0732b1f](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/0732b1f3a33d827bc5244bce8d9ca5b70c25afd2))
--- packages/associate-exp-hub-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-hub",
- "version": "2.0.0",
+ "version": "2.1.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,21 @@
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.24](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.23...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.24) (2025-10-29)
+
+### Features
+
+- **ui:** added areadepartments object in transformer ([36524a1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/36524a158a8f61f5d20b2c7ee710b935097a2632))
+- **ui:** lint fix ([194db60](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/194db609ebeaa90e3b3931c22f2f404e1bfbeb52))
+- **ui:** separate the associate exp team switcher and hub ([76e4474](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/76e44745a18f3497e47bd2f053a22660cbdb712d))
+- **ui:** update activity aware widget ([9a34568](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/9a34568edd99007eca2c39ca8acf86f3320a0269))
+- **ui:** update activity aware widget ([638fbfe](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/638fbfe783c6a67942f1565af833eba126e0293e))
+- **ui:** update my walmart package versions ([bb268be](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/bb268be8c04e50761bf3376eb9e943609cd5f3ef))
+- **ui:** update tests ([b45738c](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/b45738c669f66524f3e1d3a457cee11e8a95c022))
+- **ui:** update the associate exp packages ([0732b1f](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/0732b1f3a33d827bc5244bce8d9ca5b70c25afd2))
+- **ui:** update the hub config changes ([acb5ede](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/acb5ede32c18aea7f827883f510840f9685c89f4))
+- **ui:** update widget wrapper ([7acc6a5](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/7acc6a5796f9f4345a9ca09d8f8d86acd290ad16))
+
# [1.4.0-alpha.23](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.22...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.23) (2025-10-24)
**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.4.0-alpha.23",
+ "version": "1.4.0-alpha.24",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/associate-exp-hub-team-switcher/CHANGELOG.md
@@ -0,0 +1,15 @@
+# Change Log
+
+All notable changes to this project will be documented in this file.
+See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# 2.1.0 (2025-10-29)
+
+### Features
+
+- **ui:** merge changes from develop ([24f030c](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/24f030c5b0a75e1aa387bd731cc5b527ec6e13aa))
+- **ui:** separate the associate exp team switcher and hub ([76e4474](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/76e44745a18f3497e47bd2f053a22660cbdb712d))
+- **ui:** update activity aware widget ([9a34568](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/9a34568edd99007eca2c39ca8acf86f3320a0269))
+- **ui:** update my walmart package versions ([bb268be](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/bb268be8c04e50761bf3376eb9e943609cd5f3ef))
+- **ui:** update the associate exp packages ([0732b1f](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/0732b1f3a33d827bc5244bce8d9ca5b70c25afd2))
+- **ui:** update translation for the team switcher ([168a92a](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/168a92aaeca03cc5ebd6bc90e5c25f5e91ac174a))
--- packages/associate-exp-hub-team-switcher/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-team-switcher",
- "version": "2.0.0",
+ "version": "2.1.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.1.0
- @walmart/associate-exp-hub-mini-app@1.4.0-alpha.24
- @walmart/associate-exp-hub-team-switcher@2.1.0
|
ffee4d253a529fa0babcfce732d2b941a0006357 | --- targets/US/ios/AllSpark.xcodeproj/project.pbxproj
@@ -464,6 +464,7 @@
"${PODS_CONFIGURATION_BUILD_DIR}/Apollo/ApolloSQLite.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/AppAuth/AppAuthCore_Privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/CallingSDK/CallingResources.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/CryptoSwift/CryptoSwift.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/ExpoConstants_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoFileSystem/ExpoFileSystem_privacy.bundle",
@@ -522,6 +523,7 @@
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ApolloSQLite.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AppAuthCore_Privacy.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/CallingResources.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/CryptoSwift.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoConstants_privacy.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoFileSystem_privacy.bundle",
--- targets/US/ios/Podfile.lock
@@ -2799,7 +2799,7 @@ SPEC CHECKSUMS:
Apollo: a1e120e7ca2c8592056bd39e8032e2e3fed601a6
AppAuth: d4f13a8fe0baf391b2108511793e4b479691fb73
Base64: cecfb41a004124895a7bcee567a89bae5a89d49b
- boost: 26fad476bfa736552bbfa698a06cc530475c1505
+ boost: 69c3d61aee7f5f7facabe24312f0302003b5af29
BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33
CallingSDK: 79ef36a404d445f97b730cbe18fed0478461a50a
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
@@ -2986,10 +2986,10 @@ SPEC CHECKSUMS:
walmart-react-native-sumo-sdk: a35769d261a7130615e68ebd7861c8afe4320614
WebexSDK: b4ed0ab501a53675579d837745695b1f2499e7c4
wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3
- Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee
+ Yoga: c716aea2ee01df6258550c7505fa61b248145ced
ZebraRfidiOSSdk: 7e4eec426a4fd95a40e68d75fc9633ea96224b0c
zxing-cpp: fcaae9c9427f24066af415055963582be8200d05
PODFILE CHECKSUM: f89f8fd084718a8459bfad1ed1081b9af51bc555
-COCOAPODS: 1.14.3
+COCOAPODS: 1.15.2
--- targets/US/package.json
@@ -99,10 +99,10 @@
"@walmart/core-utils": "6.3.9",
"@walmart/core-widget-registry": "workspace:^",
"@walmart/counts-component-miniapp": "0.1.14",
- "@walmart/digital-locks-mini-app": "1.1.8",
+ "@walmart/digital-locks-mini-app": "1.1.9",
"@walmart/emergency-mini-app": "1.30.5",
"@walmart/exception-mini-app": "1.8.11",
- "@walmart/facilities-management-miniapp": "0.18.1",
+ "@walmart/facilities-management-miniapp": "0.17.0",
"@walmart/feedback-all-spark-miniapp": "0.9.72",
"@walmart/financial-wellbeing-feature-app": "1.29.2",
"@walmart/functional-components": "~6.3.28",
--- yarn.lock
@@ -6708,9 +6708,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/digital-locks-mini-app@npm:1.1.8":
- version: 1.1.8
- resolution: "@walmart/digital-locks-mini-app@npm:1.1.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fdigital-locks-mini-app%2F-%2F%40walmart%2Fdigital-locks-mini-app-1.1.8.tgz"
+"@walmart/digital-locks-mini-app@npm:1.1.9":
+ version: 1.1.9
+ resolution: "@walmart/digital-locks-mini-app@npm:1.1.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fdigital-locks-mini-app%2F-%2F%40walmart%2Fdigital-locks-mini-app-1.1.9.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.0.0"
expo: 50.0.17
@@ -6724,7 +6724,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/fbeb3318d9287cb597016f52182aa50baaca06969ad750e0e38c962bd4123e676a7803790c62bf1ab996b58cca9ea394610d2029f565eec163797e193a01dbe6
+ checksum: 10c0/09a9c317fd65f89f4d9f53b8aed33c656c99ce14a9e2a70007d9104ca72688ce5bd375248e1ba13906a54c53d967bbac095038c3c6c4c8730f9e80cb4dfce1ac
languageName: node
linkType: hard
@@ -6774,13 +6774,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/facilities-management-miniapp@npm:0.18.1":
- version: 0.18.1
- resolution: "@walmart/facilities-management-miniapp@npm:0.18.1"
+"@walmart/facilities-management-miniapp@npm:0.17.0":
+ version: 0.17.0
+ resolution: "@walmart/facilities-management-miniapp@npm:0.17.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffacilities-management-miniapp%2F-%2Ffacilities-management-miniapp-0.17.0.tgz"
peerDependencies:
"@walmart/allspark-foundation": "*"
- redux: "*"
- checksum: 10c0/53eecff41e95ad31dce07643f14718f393ec4c2d89d99d314e00e36055e97f6423a78948812aaf69f82dace9e44ec90280ec2d7689a85333c1f9555e47e1feec
+ checksum: 10c0/b57f8bd194c854b2871f77947a18bf05aeacd3b71dc4dccea74385c65a15d9ea3b432a96428d533847346a3beab9417f2a806aea2c9037f08acf32954413ace0
languageName: node
linkType: hard
@@ -7429,10 +7428,10 @@ __metadata:
"@walmart/core-utils": "npm:6.3.9"
"@walmart/core-widget-registry": "workspace:^"
"@walmart/counts-component-miniapp": "npm:0.1.14"
- "@walmart/digital-locks-mini-app": "npm:1.1.8"
+ "@walmart/digital-locks-mini-app": "npm:1.1.9"
"@walmart/emergency-mini-app": "npm:1.30.5"
"@walmart/exception-mini-app": "npm:1.8.11"
- "@walmart/facilities-management-miniapp": "npm:0.18.1"
+ "@walmart/facilities-management-miniapp": "npm:0.17.0"
"@walmart/feedback-all-spark-miniapp": "npm:0.9.72"
"@walmart/financial-wellbeing-feature-app": "npm:1.29.2"
"@walmart/functional-components": "npm:~6.3.28"
| bump to 1.1.9 and reverted facilities-management to 0.17.0 | bump to 1.1.9 and reverted facilities-management to 0.17.0
|
08da65394bf3292303991c5858315f513f853e4f | --- packages/allspark-foundation/__tests__/Work/redux.test.tsx
@@ -2,6 +2,7 @@ import { IAllsparkReduxState } from '../../src/Redux';
import { WorkActions, WorkSelectors, WorkState } from '../../src/Work';
const WORK_STATE: WorkState = { actionId: 'actionId', workFlow: 'topstock' };
+
describe('WorkActions', () => {
test('create the correct "work flow start" action', () => {
expect(
--- packages/allspark-foundation/src/Work/redux.ts
@@ -4,19 +4,28 @@ import {
generateSelectorsForSlice,
} from '../Redux/utils';
import { InferActionTypes } from '../Redux/types';
+import { ParamListBase } from '@react-navigation/native';
+import { StackNavigationProp } from '@react-navigation/stack';
-export type WorkFlows = 'topstock' | 'pinpoint' | 'vizpick';
+export type WorkFlows = 'topstock' | 'pinpoint' | 'vizpick';
export interface WorkState {
workFlow: WorkFlows | null;
actionId: string | null;
}
+export interface WorkFlowStart extends WorkState {
+ /** TO-DO add description about this object */
+ actionMetadata?: {[key: string]: any};
+ destinationScreen: string; // should this come from actionMetaData?
+}
+
const INITIAL_STATE: WorkState = {
workFlow: null,
actionId: null,
};
+
/**
* Track work flows that start in sidekick-mini-app but end in
* a different work-mini-app, such as topstock-mini-app or pinpoint-mini-app
@@ -33,6 +42,14 @@ export const workSlice = createSlice({
state.workFlow = null;
state.actionId = null;
},
+ WORK_FLOW_INCOMPLETE: (state, _: PayloadAction<undefined, string>) => {
+ state.workFlow = null;
+ state.actionId = null;
+ },
+ WORK_FLOW_ERROR: (state, _: PayloadAction<undefined, string>) => {
+ state.workFlow = null;
+ state.workFlow = null;
+ },
},
});
| fix: add type work flow start DWORK-7010 | fix: add type work flow start DWORK-7010
|
9d34210c6d9f02d94a2fb3543e5ac179811d6c80 | --- ios/Podfile.lock
@@ -1615,7 +1615,7 @@ SPEC REPOS:
"git@gecgithub01.walmart.com:ssaeSCTP/CocoaPodSpecs.git":
- StructuredLogAssistantIOS
- SumoSDK
- https://github.com/CocoaPods/Specs:
+ https://github.com/CocoaPods/Specs.git:
- abseil
- Apollo
- AppAuth
| fix: add .git removed in previous commit | fix: add .git removed in previous commit
|
b7dfc82863ea3714a7cd7dd5a2524733a419cac2 | --- .looper-pr.yml
@@ -8,7 +8,7 @@ tools:
flows:
npm-install:
- (name Enable Corepack) corepack enable
- - (name Yarn Set Version) yarn set version 4.1.1
+ - (name Yarn Set Version) yarn set version 4.4.0
- (name Yarn Version) yarn --version
- (name Yarn Install) yarn install
- (name Test Coverage) yarn run coverage
--- __tests__/components/__snapshots__/RosterDetailPageHeader.test.tsx.snap
@@ -107,9 +107,10 @@ exports[`RosterDetailPageHeader renders the header and subText correctly 1`] = `
</View>
<View>
<Image
+ placeholder="KXR:A^%h.AbIj?j??aM|M{"
source={
{
- "uri": undefined,
+ "uri": "https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png",
}
}
style={
@@ -219,9 +220,10 @@ exports[`RosterDetailPageHeader renders without subText when not provided 1`] =
</View>
<View>
<Image
+ placeholder="KXR:A^%h.AbIj?j??aM|M{"
source={
{
- "uri": undefined,
+ "uri": "https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png",
}
}
style={
| Update the roster mini app looper yml | Update the roster mini app looper yml
|
18b48907259955e185e4b023764369c531fea9ab | --- package-lock.json
@@ -4447,9 +4447,9 @@
"integrity": "sha512-5VXiKOX6nl2OPte+FFWxAZbWi+aCW0o7rbzJldiMN7XewyTIxsyBMwWlUW5Y29WYa4ZaaVstjincL76EW5v2dA=="
},
"@walmart/profile-feature-app": {
- "version": "0.0.23",
- "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.23.tgz",
- "integrity": "sha512-+5xp700aGfDrszllK4vqs3P+tKkWOjXvnvL+/S7sQ7vT4hSCOtgA1Srx8WdIK0Po3ufb2NY+pvxjV+LB2v/JhQ=="
+ "version": "0.0.32",
+ "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.32.tgz",
+ "integrity": "sha512-vSrCRBPE2HeqsVJWbMuO9FLX9WSnrz6ijlLcZ889p7w0pCfDQVbL1JyjrCHI1/OPcQ7TvKuFYLjFDy6Ld/ClNg=="
},
"@walmart/push-to-talk-mini-app": {
"version": "1.7.10",
--- package.json
@@ -90,7 +90,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.121.0",
"@walmart/price-changes-mini-app": "1.2.3",
- "@walmart/profile-feature-app": "0.0.30",
+ "@walmart/profile-feature-app": "0.0.32",
"@walmart/push-to-talk-mini-app": "1.7.10",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.29.0",
| upgrade to v0.0.32 for profile feature | upgrade to v0.0.32 for profile feature
|
7030552464939558aa436bc89c0367b12f71b48a | --- package-lock.json
@@ -81,7 +81,7 @@
"@walmart/receipt-check-miniapp": "1.15.7",
"@walmart/redux-store": "3.5.0",
"@walmart/returns-mini-app": "3.9.0",
- "@walmart/schedule-mini-app": "0.55.0",
+ "@walmart/schedule-mini-app": "0.63.0",
"@walmart/shelfavailability-mini-app": "1.5.17",
"@walmart/taskit-mini-app": "2.47.9",
"@walmart/texting-mini-app": "2.0.40",
@@ -9085,15 +9085,15 @@
}
},
"node_modules/@walmart/schedule-mini-app": {
- "version": "0.55.0",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.55.0.tgz",
- "integrity": "sha512-cVCDx0FhU6M20Nejt/iohKa4dAfWfQ1mBBABb6/f5awPF68M+hdbokcrDouMCUidcSw2DcBlKiSKn7lxjjkU0Q==",
+ "version": "0.63.0",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.63.0.tgz",
+ "integrity": "sha512-PtAWjN5YDnl0qU4ux8pZMW/8R3pKUbmCvK+X+2LquJa3B8EdoST0kUxuNBYNFjjUQBazdVQs4PUm0nfSzf1oEg==",
"dependencies": {
"@walmart/moment-walmart": "^1.0.4",
- "@walmart/wfm-ui": "^0.5.0",
+ "@walmart/wfm-ui": "0.8.2",
"crypto-js": "^3.3.0",
"react-native-tab-view": "^2.4.0",
- "wfm-allspark-data-library": "^1.6.0"
+ "wfm-allspark-data-library": "^1.7.0"
},
"peerDependencies": {
"@react-native-firebase/remote-config": ">=10.1.1",
@@ -9118,9 +9118,9 @@
}
},
"node_modules/@walmart/schedule-mini-app/node_modules/@walmart/wfm-ui": {
- "version": "0.5.0",
- "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.5.0.tgz",
- "integrity": "sha512-zRbXCPgTLeCvZnxTJeuB6Nn2/Sgh4tOq7sP3sfnF8VU0Dee8flQWY+tXPJoelL1IQb2yKcwe7A+YuHQMwfHgRA==",
+ "version": "0.8.2",
+ "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.8.2.tgz",
+ "integrity": "sha512-Fdmm34zL9K6Ezq6r16V2ZGBKfhfvgBly2Ev5FkEQ9FqWI63rXJBP3JdBvTqBLV+6UvoT21MoUMmYP85dmBUrCw==",
"license": "ISC",
"dependencies": {
"@walmart/moment-walmart": "1.0.3",
@@ -9128,18 +9128,16 @@
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
"lodash.uniqby": "^4.7.0",
- "react-native-material-menu": "^0.4.2",
"react-native-vector-icons": "^7.0.0",
- "string.prototype.matchall": "^4.0.2",
- "wm-react-native-vector-icons": "^1.0.26"
+ "string.prototype.matchall": "^4.0.2"
},
"peerDependencies": {
- "@walmart/gtp-shared-components": ">=0.2.2",
- "i18next": "19.7.0",
+ "@walmart/gtp-shared-components": ">=2.1.1",
+ "i18next": "^19.8.7",
"moment": "^2.29.4",
- "react": "^16.13.1",
- "react-i18next": "11.7.3",
- "react-native": "^0.63.2",
+ "react": ">=18.1.0",
+ "react-i18next": ">=12.0.0",
+ "react-native": ">=0.70.5",
"react-native-modal": "^11.5.6",
"xdate": "^0.8.0"
}
@@ -28580,22 +28578,22 @@
"license": "BSD-2-Clause"
},
"node_modules/wfm-allspark-data-library": {
- "version": "1.6.0",
- "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.6.0.tgz",
- "integrity": "sha512-OMxCgOgFyVelpIujkHAzzonY6PSjw8PHy5SOwm9LU1XpPPwO0RUle+ZXnL1xk9C0rDEEI9YoUuaNXkNpTEbeYQ==",
+ "version": "1.7.0",
+ "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.7.0.tgz",
+ "integrity": "sha512-aHg8Zx4e6mpOyembrntBScOf/TDUgOa640RYBKtbJQsImB94VVeZ6J8pkfnkEeGxhf1t7yx7LhMuplBin/n+aA==",
"dependencies": {
"azure-storage": "2.10.3",
"crypto-js": "^3.3.0",
"url": "^0.11.0"
},
"peerDependencies": {
- "@walmart/core-services": "~2.0.22",
- "@walmart/redux-store": "^3.1.2",
+ "@walmart/core-services": ">=2.1.1",
+ "@walmart/redux-store": ">=3.4.0",
"i18next": "*",
"moment": "^2.27.0",
"react": ">=18.1.0",
"react-native": ">=0.70.5",
- "redux": ">=4.0.0"
+ "redux": ">=4.1.0"
}
},
"node_modules/whatwg-encoding": {
@@ -34515,31 +34513,29 @@
}
},
"@walmart/schedule-mini-app": {
- "version": "0.55.0",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.55.0.tgz",
- "integrity": "sha512-cVCDx0FhU6M20Nejt/iohKa4dAfWfQ1mBBABb6/f5awPF68M+hdbokcrDouMCUidcSw2DcBlKiSKn7lxjjkU0Q==",
+ "version": "0.63.0",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.63.0.tgz",
+ "integrity": "sha512-PtAWjN5YDnl0qU4ux8pZMW/8R3pKUbmCvK+X+2LquJa3B8EdoST0kUxuNBYNFjjUQBazdVQs4PUm0nfSzf1oEg==",
"requires": {
"@walmart/moment-walmart": "1.0.4",
- "@walmart/wfm-ui": "^0.5.0",
+ "@walmart/wfm-ui": "0.8.2",
"crypto-js": "^3.3.0",
"react-native-tab-view": "^3.3.0",
- "wfm-allspark-data-library": "^1.6.0"
+ "wfm-allspark-data-library": "^1.7.0"
},
"dependencies": {
"@walmart/wfm-ui": {
- "version": "0.5.0",
- "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.5.0.tgz",
- "integrity": "sha512-zRbXCPgTLeCvZnxTJeuB6Nn2/Sgh4tOq7sP3sfnF8VU0Dee8flQWY+tXPJoelL1IQb2yKcwe7A+YuHQMwfHgRA==",
+ "version": "0.8.2",
+ "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.8.2.tgz",
+ "integrity": "sha512-Fdmm34zL9K6Ezq6r16V2ZGBKfhfvgBly2Ev5FkEQ9FqWI63rXJBP3JdBvTqBLV+6UvoT21MoUMmYP85dmBUrCw==",
"requires": {
"@walmart/moment-walmart": "1.0.4",
"lodash": "^4.17.20",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
"lodash.uniqby": "^4.7.0",
- "react-native-material-menu": "^0.4.2",
"react-native-vector-icons": "^9.2.0",
- "string.prototype.matchall": "^4.0.2",
- "wm-react-native-vector-icons": "^1.0.26"
+ "string.prototype.matchall": "^4.0.2"
}
}
}
@@ -47415,9 +47411,9 @@
"version": "3.0.1"
},
"wfm-allspark-data-library": {
- "version": "1.6.0",
- "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.6.0.tgz",
- "integrity": "sha512-OMxCgOgFyVelpIujkHAzzonY6PSjw8PHy5SOwm9LU1XpPPwO0RUle+ZXnL1xk9C0rDEEI9YoUuaNXkNpTEbeYQ==",
+ "version": "1.7.0",
+ "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.7.0.tgz",
+ "integrity": "sha512-aHg8Zx4e6mpOyembrntBScOf/TDUgOa640RYBKtbJQsImB94VVeZ6J8pkfnkEeGxhf1t7yx7LhMuplBin/n+aA==",
"requires": {
"azure-storage": "2.10.3",
"crypto-js": "^3.3.0",
--- package.json
@@ -122,7 +122,7 @@
"@walmart/receipt-check-miniapp": "1.15.7",
"@walmart/redux-store": "3.5.0",
"@walmart/returns-mini-app": "3.9.0",
- "@walmart/schedule-mini-app": "0.55.0",
+ "@walmart/schedule-mini-app": "0.63.0",
"@walmart/shelfavailability-mini-app": "1.5.17",
"@walmart/taskit-mini-app": "2.47.9",
"@walmart/texting-mini-app": "2.0.40",
| bump schedule-mini-app version | bump schedule-mini-app version
|
c08475f988bbc499fc014f42536e6dc29418e21b | --- package-lock.json
@@ -33,7 +33,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.26",
+ "@walmart/amp-mini-app": "1.1.28",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.3.59",
"@walmart/attendance-mini-app": "0.77.0",
@@ -4754,9 +4754,9 @@
}
},
"node_modules/@walmart/amp-mini-app": {
- "version": "1.1.26",
- "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.26.tgz",
- "integrity": "sha512-mAbuZhWKv2Z8heZDFD/FT4XgZ7f/6kb4z0IbwlKo2Fps7rNJikEfZU4jZJFGV8m89y8yUi+tKUuf9BU0wvHGTg==",
+ "version": "1.1.28",
+ "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.28.tgz",
+ "integrity": "sha512-QZlUb3EUa3H6dzLRp5q8bZafN4E8QR6SkIGY6l0vp1o8pjEgeEimCwLZIFQaeBSB2AiyKMADIHuDhRJpqscV4A==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -24952,9 +24952,9 @@
}
},
"@walmart/amp-mini-app": {
- "version": "1.1.26",
- "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.26.tgz",
- "integrity": "sha512-mAbuZhWKv2Z8heZDFD/FT4XgZ7f/6kb4z0IbwlKo2Fps7rNJikEfZU4jZJFGV8m89y8yUi+tKUuf9BU0wvHGTg=="
+ "version": "1.1.28",
+ "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.28.tgz",
+ "integrity": "sha512-QZlUb3EUa3H6dzLRp5q8bZafN4E8QR6SkIGY6l0vp1o8pjEgeEimCwLZIFQaeBSB2AiyKMADIHuDhRJpqscV4A=="
},
"@walmart/ask-sam-chat-components": {
"version": "0.2.13",
--- package.json
@@ -75,7 +75,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.26",
+ "@walmart/amp-mini-app": "1.1.28",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.3.59",
"@walmart/attendance-mini-app": "0.77.0",
| Update version AMP | Update version AMP
|
6c02dcd66a85ba121b9dca55648ed671b25ef2a6 | --- packages/me-at-walmart-athena-queries/src/schema.graphql
@@ -2770,13 +2770,6 @@ type CourseProgress {
storeNum: Int
version: Int
- """Role of associate"""
- role: RosterRole
- rosterType: VIEW_TYPE
- storeEntity: StoreEntity
- storeNum: Int
- version: Int
-
"""
View type to fetch the ILT trainings either for self or for direct reportees. example: SELF, DIRECT_REPORTEE etc
"""
--- packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.ts
@@ -13,20 +13,20 @@ export type UpsertSupplyChainAssociatePreferenceMutationVariables =
export type UpsertSupplyChainAssociatePreferenceMutation = {
__typename?: 'Mutation';
upsertAssociatePreference?: {
- __typename: 'AssociatePreferences';
+ __typename?: 'AssociatePreferences';
walmartIdentificationNumber: string;
meAtWalmartPreferences?: {
- __typename: 'MeAtWalmartPreferences';
+ __typename?: 'MeAtWalmartPreferences';
managerExperiencePreferences?: {
- __typename: 'ManagerExperiencePreferences';
+ __typename?: 'ManagerExperiencePreferences';
mySupplyChainTeams?: Array<{
- __typename: 'ManagerExperienceSupplyChain';
+ __typename?: 'ManagerExperienceSupplyChain';
shiftCodePreference?: Array<string | null> | null;
supplyChainTeamPreference?: Array<{
- __typename: 'SupplyChainTeam';
- businessUnitNumber?: number | null;
- countryCode?: string | null;
+ __typename?: 'SupplyChainTeam';
teamId?: string | null;
+ countryCode?: string | null;
+ businessUnitNumber?: number | null;
} | null> | null;
} | null> | null;
} | null;
@@ -42,24 +42,19 @@ export const UpsertSupplyChainAssociatePreferenceDocument = gql`
upsertAssociatePreference(
associatePreferencesInput: $associatePreferencesInput
) {
- __typename
+ walmartIdentificationNumber
meAtWalmartPreferences {
- __typename
managerExperiencePreferences {
- __typename
mySupplyChainTeams(businessUnitNumber: $businessUnitNumber) {
- __typename
shiftCodePreference
supplyChainTeamPreference {
- __typename
- businessUnitNumber
- countryCode
teamId
+ countryCode
+ businessUnitNumber
}
}
}
}
- walmartIdentificationNumber
}
}
`;
| Adding upsertSupplyChainAssociatePreference query | Adding upsertSupplyChainAssociatePreference query
|
39e2919f78d3d5dd442c1dca19ae9b5f5920e092 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 111
+ versionCode 112
versionName "1.0.9"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>111</string>
+ <string>112</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
| Incrementing build number | Incrementing build number
|
228aed892267c77f7c9990354a856c2e431c9bf2 | --- __tests__/__mocks__/@walmart/allspark-http-client.js
@@ -1,13 +0,0 @@
-const mockClient = {
- get: jest.fn(),
- cancelRequests: jest.fn(),
- resumeRequests: jest.fn(),
- clone: jest.fn(() => mockClient),
- getHeaders: jest.fn(),
-};
-
-module.exports = {
- __esModule: true,
- default: mockClient,
- useHttpClient: jest.fn(() => mockClient),
-};
--- __tests__/__mocks__/react-native-device-info.js
@@ -1,17 +0,0 @@
-const mockDeviceInfo = {
- getVersion: jest.fn(() => '1.0.0'),
- getDeviceName: jest.fn(() => 'myDevice'),
- getBuildNumber: jest.fn(() => '123'),
- getBundleId: jest.fn(() => 'com.walmart.squiglay'),
- getSystemVersion: jest.fn(() => '12'),
- getModel: jest.fn(() => 'iPhone12'),
- isEmulator: jest.fn(),
- getDeviceId: jest.fn(() => 'iPhone12'),
- getUniqueId: jest.fn(() => '12345'),
-};
-
-module.exports = {
- __esModule: true,
- default: mockDeviceInfo,
- ...mockDeviceInfo,
-};
--- __tests__/__mocks__/react-native-firebase.js
@@ -1,7 +0,0 @@
-const firebase = jest.genMockFromModule('react-native-firebase');
-
-const firestore = jest.fn().mockImplementation(() => {});
-
-firebase.firestore = firestore;
-
-module.exports = firebase;
--- __tests__/__mocks__/react-native-linear-gradient.js
@@ -1,4 +0,0 @@
-module.exports = {
- __esModule: true,
- default: 'LinearGradient',
-};
--- __tests__/__mocks__/react-native-maps.js
@@ -1,5 +0,0 @@
-module.exports = {
- __esModule: true,
- default: 'MapView',
- Marker: 'Marker',
-};
--- __tests__/__mocks__/react-native-permissions.js
@@ -1,24 +0,0 @@
-module.exports = {
- check: jest.fn(),
- checkNotifications: jest.fn(),
- requestNotifications: jest.fn(),
- request: jest.fn(),
- openSettings: jest.fn(),
- Permission: {},
- PERMISSIONS: {
- IOS: {
- LOCATION_WHEN_IN_USE: 'ios.permission.LOCATION_WHEN_IN_USE',
- FACE_ID: 'ios.permission.FACE_ID',
- },
- ANDROID: {
- ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION',
- },
- },
- RESULTS: {
- UNAVAILABLE: 'unavailable',
- BLOCKED: 'blocked',
- DENIED: 'denied',
- GRANTED: 'granted',
- LIMITED: 'limited',
- },
-};
--- __tests__/__mocks__/react-native-splash-screen.js
@@ -1,6 +0,0 @@
-module.exports = {
- __esModule: true,
- default: {
- hide: jest.fn(),
- },
-};
--- __tests__/__mocks__/react-native-ssmp-sso-allspark.js
@@ -1,21 +0,0 @@
-module.exports = {
- __esModule: true,
- default: {
- getUser: jest.fn(),
- signOut: jest.fn(),
- },
- ssoEventEmitter: {
- addListener: jest.fn(),
- removeListener: jest.fn(),
- },
- SSOPingFedEvents: {
- name: 'ssoUserAuthentication',
- types: {
- userChanged: 'ssoUserChanged',
- authSuccess: 'ssoAuthSuccess',
- error: 'ssoErrorMessage',
- signedOut: 'ssoUserSignedOut',
- clockStatusChange: 'ssoClockedStatusChange',
- },
- },
-};
--- __tests__/__mocks__/react-native-wm-config.js
@@ -1,6 +0,0 @@
-module.exports = {
- fetchAndActivate: jest.fn(),
- setConfigSettings: jest.fn(),
- setDefaults: jest.fn(),
- getValue: jest.fn(),
-};
--- __tests__/__mocks__/react-native-wm-telemetry.js
@@ -1,11 +0,0 @@
-module.exports = {
- __esModule: true,
- default: {
- logEvent: jest.fn(),
- logScreenView: jest.fn(),
- setUserId: jest.fn(),
- setUserProperties: jest.fn(),
- setCrashAttributes: jest.fn(),
- setCrashAttribute: jest.fn(),
- },
-};
--- __tests__/__mocks__/@walmart/allspark-http-client.js
@@ -1,13 +0,0 @@
-const mockClient = {
- get: jest.fn(),
- cancelRequests: jest.fn(),
- resumeRequests: jest.fn(),
- clone: jest.fn(() => mockClient),
- getHeaders: jest.fn(),
-};
-
-module.exports = {
- __esModule: true,
- default: mockClient,
- useHttpClient: jest.fn(() => mockClient),
-};
--- __tests__/__mocks__/react-native-device-info.js
@@ -1,17 +0,0 @@
-const mockDeviceInfo = {
- getVersion: jest.fn(() => '1.0.0'),
- getDeviceName: jest.fn(() => 'myDevice'),
- getBuildNumber: jest.fn(() => '123'),
- getBundleId: jest.fn(() => 'com.walmart.squiglay'),
- getSystemVersion: jest.fn(() => '12'),
- getModel: jest.fn(() => 'iPhone12'),
- isEmulator: jest.fn(),
- getDeviceId: jest.fn(() => 'iPhone12'),
- getUniqueId: jest.fn(() => '12345'),
-};
-
-module.exports = {
- __esModule: true,
- default: mockDeviceInfo,
- ...mockDeviceInfo,
-};
--- __tests__/__mocks__/react-native-firebase.js
@@ -1,7 +0,0 @@
-const firebase = jest.genMockFromModule('react-native-firebase');
-
-const firestore = jest.fn().mockImplementation(() => {});
-
-firebase.firestore = firestore;
-
-module.exports = firebase;
--- __tests__/__mocks__/react-native-linear-gradient.js
@@ -1,4 +0,0 @@
-module.exports = {
- __esModule: true,
- default: 'LinearGradient',
-};
--- __tests__/__mocks__/react-native-maps.js
@@ -1,5 +0,0 @@
-module.exports = {
- __esModule: true,
- default: 'MapView',
- Marker: 'Marker',
-};
--- __tests__/__mocks__/react-native-permissions.js
@@ -1,24 +0,0 @@
-module.exports = {
- check: jest.fn(),
- checkNotifications: jest.fn(),
- requestNotifications: jest.fn(),
- request: jest.fn(),
- openSettings: jest.fn(),
- Permission: {},
- PERMISSIONS: {
- IOS: {
- LOCATION_WHEN_IN_USE: 'ios.permission.LOCATION_WHEN_IN_USE',
- FACE_ID: 'ios.permission.FACE_ID',
- },
- ANDROID: {
- ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION',
- },
- },
- RESULTS: {
- UNAVAILABLE: 'unavailable',
- BLOCKED: 'blocked',
- DENIED: 'denied',
- GRANTED: 'granted',
- LIMITED: 'limited',
- },
-};
--- __tests__/__mocks__/react-native-splash-screen.js
@@ -1,6 +0,0 @@
-module.exports = {
- __esModule: true,
- default: {
- hide: jest.fn(),
- },
-};
--- __tests__/__mocks__/react-native-ssmp-sso-allspark.js
@@ -1,21 +0,0 @@
-module.exports = {
- __esModule: true,
- default: {
- getUser: jest.fn(),
- signOut: jest.fn(),
- },
- ssoEventEmitter: {
- addListener: jest.fn(),
- removeListener: jest.fn(),
- },
- SSOPingFedEvents: {
- name: 'ssoUserAuthentication',
- types: {
- userChanged: 'ssoUserChanged',
- authSuccess: 'ssoAuthSuccess',
- error: 'ssoErrorMessage',
- signedOut: 'ssoUserSignedOut',
- clockStatusChange: 'ssoClockedStatusChange',
- },
- },
-};
--- __tests__/__mocks__/react-native-wm-config.js
@@ -1,6 +0,0 @@
-module.exports = {
- fetchAndActivate: jest.fn(),
- setConfigSettings: jest.fn(),
- setDefaults: jest.fn(),
- getValue: jest.fn(),
-};
--- __tests__/__mocks__/react-native-wm-telemetry.js
@@ -1,11 +0,0 @@
-module.exports = {
- __esModule: true,
- default: {
- logEvent: jest.fn(),
- logScreenView: jest.fn(),
- setUserId: jest.fn(),
- setUserProperties: jest.fn(),
- setCrashAttributes: jest.fn(),
- setCrashAttribute: jest.fn(),
- },
-};
| remove unused mocks | remove unused mocks
|
37c1b94b34548ae3e4ef94e7ab1b054dd3fac717 | --- packages/allspark-foundation/src/Container/ActiveContainerManager.tsx
@@ -91,7 +91,7 @@ export class ActiveContainerManager {
};
/**
- * Connects features within the active container based on given configuration.
+ * Add features to the active container
*/
public addFeatures = (features: AllsparkFeatureModule<any, any>[]) => {
return this._activeContainer?.addFeatures(features);
@@ -104,6 +104,15 @@ export class ActiveContainerManager {
return this._activeContainer?.connectFeatures(config);
};
+ /**
+ * Adds and connects features to the active container.
+ * WARNING: This will connect all features given. If you need to separate adding of features
+ * from connection, then use the `addFeatures` and `connectFeatures` methods instead.
+ */
+ public connect = (features: AllsparkFeatureModule<any, any>[]) => {
+ return this._activeContainer?.connect(features);
+ };
+
/**
* Disconnects features within the active container based on given configuration.
*/
--- packages/allspark-foundation/src/Container/AllsparkContainer.tsx
@@ -289,7 +289,7 @@ export class AllsparkContainer<
}
/**
- * Connects features within the container based on given configuration.
+ * Adds features to the container
*/
public addFeatures = (features: AllsparkFeatureModule<any, any>[]) => {
return this.features.add(features);
@@ -302,6 +302,20 @@ export class AllsparkContainer<
return this.features.connect(config);
};
+ /**
+ * Adds and connects features to the active container.
+ * WARNING: This will connect all features given. If you need to separate adding of features
+ * from connection, then use the `addFeatures` and `connectFeatures` methods instead.
+ */
+ public connect = (features: AllsparkFeatureModule<any, any>[]) => {
+ this.addFeatures(features);
+
+ // For each feature added, connect it by its feature id
+ features.forEach((feature) =>
+ this.connectFeatures({ featureId: feature.id })
+ );
+ };
+
/**
* Adds a listener to the container event manager.
*/
| fix: no method to add and connect features at one time which was often the requirement | fix: no method to add and connect features at one time which was often the requirement
|
fad93a3dc18fe5aeb9e1f77f04137270bcedb0d7 | --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx
@@ -36,7 +36,6 @@ import {
import {sortedAssociateList} from '../../utils/associateList';
import {UserSelectors} from '@walmart/allspark-foundation/User';
import {
- generateTeamRoster,
generateTeamShiftRoster,
handleViewAssociateSchedule,
filterAssociatesByStatusAndSearchInputAndShift,
| Fixing lint error | Fixing lint error
|
5194789c7b4bf652dfd925a259160521af47c082 | --- package-lock.json
@@ -5201,9 +5201,9 @@
}
},
"@walmart/iteminfo-mini-app": {
- "version": "5.0.3",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.0.3.tgz",
- "integrity": "sha512-dTbeduu8C2B22bN4j6UdAUeRRABraetaoBrLY42fFj1hxgamcJgX+vkZCk2IoA/SgrQo7tpORmCzwFp6W4ellw=="
+ "version": "5.0.4",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.0.4.tgz",
+ "integrity": "sha512-MRrLyZSKM4PzIBGfjaCP2cYYkUYi8Lfd3lABQqTFe9IJDC8lXYhppjM2TTmWnicttCqoxvMZbE0RiHpPSn7Orw=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.0.62",
@@ -5343,9 +5343,9 @@
"integrity": "sha512-qxVserzdiG4xsZCLRIwYfRq/KuHsYSPkrl02tKHNhF5bhtWWo6oEUatBoSsY5BL8EVGOHk2ezsPWb2o5pg9Ryw=="
},
"@walmart/react-native-scanner-3.0": {
- "version": "0.1.0",
- "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.0.tgz",
- "integrity": "sha512-B+ETcxQic7k0DJvFqb0P0Yh9fXlwAE9OuMGO3cKQQitOBuoIiJF6wNvdQLK9/ny08WZGbxygowOrqY5WCifzjw=="
+ "version": "0.1.1",
+ "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.1.tgz",
+ "integrity": "sha512-zd3DoKSyzsOMgLg55iUOkkjy9u5u82mh1VoOug1jk+tDhfc4sn2hyGEChkCvsouTMQR+s/9wRPMd5uwajqWyDw=="
},
"@walmart/react-native-shared-navigation": {
"version": "1.0.2",
--- package.json
@@ -90,7 +90,7 @@
"@walmart/impersonation-mini-app": "1.2.0",
"@walmart/ims-print-services-ui": "1.1.1",
"@walmart/inbox-mini-app": "0.40.0-inbox3.33",
- "@walmart/iteminfo-mini-app": "5.0.3",
+ "@walmart/iteminfo-mini-app": "5.0.4",
"@walmart/manager-approvals-miniapp": "0.0.62",
"@walmart/me-field-mini-app": "1.1.11",
"@walmart/metrics-mini-app": "0.9.5",
@@ -102,7 +102,7 @@
"@walmart/push-to-talk-mini-app": "1.8.4",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.29.0",
- "@walmart/react-native-scanner-3.0": "0.1.0",
+ "@walmart/react-native-scanner-3.0": "0.1.1",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "^0.3.7",
"@walmart/react-native-sumo-sdk": "2.2.2-beta.2",
| Update scanner3 and item info version | Update scanner3 and item info version
|
10eb676520fd9105d03c601cf8c58501bf2c9851 | --- packages/allspark-foundation/__tests__/Navigation/client.test.tsx
@@ -174,20 +174,70 @@ describe('NavigationClient', () => {
});
it('test toggleDrawer method ', () => {
const spyDispatch = jest.spyOn(navigationClient, 'dispatch');
+ const mockToggleDrawerOpened = jest.fn();
+ getDrawerContext.mockReturnValue({ toggleDrawerOpened: mockToggleDrawerOpened });
navigationClient.toggleDrawer();
+ expect(mockToggleDrawerOpened).toHaveBeenCalled();
expect(spyDispatch).toHaveBeenCalledWith({ type: 'TOGGLE_DRAWER' });
spyDispatch.mockRestore();
});
+
+ it('test toggleDrawer logs warning if no context', () => {
+ const spyDispatch = jest.spyOn(navigationClient, 'dispatch');
+ const warnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {});
+ getDrawerContext.mockReturnValue(null);
+ navigationClient.toggleDrawer();
+ expect(warnSpy).toHaveBeenCalledWith(
+ expect.stringContaining('Attempted to toggle drawer with AllsparkDrawerClient')
+ );
+ expect(spyDispatch).toHaveBeenCalledWith({ type: 'TOGGLE_DRAWER' });
+ warnSpy.mockRestore();
+ spyDispatch.mockRestore();
+ });
+
it('test openDrawer method ', () => {
const spyDispatch = jest.spyOn(navigationClient, 'dispatch');
+ const mockOpen = jest.fn();
+ getDrawerContext.mockReturnValue({ open: mockOpen });
+ navigationClient.openDrawer();
+ expect(mockOpen).toHaveBeenCalled();
+ expect(spyDispatch).toHaveBeenCalledWith({ type: 'OPEN_DRAWER' });
+ spyDispatch.mockRestore();
+ });
+
+ it('test openDrawer logs warning if no context', () => {
+ const spyDispatch = jest.spyOn(navigationClient, 'dispatch');
+ const warnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {});
+ getDrawerContext.mockReturnValue(null);
navigationClient.openDrawer();
+ expect(warnSpy).toHaveBeenCalledWith(
+ expect.stringContaining('Attempted to open drawer with AllsparkDrawerClient')
+ );
expect(spyDispatch).toHaveBeenCalledWith({ type: 'OPEN_DRAWER' });
+ warnSpy.mockRestore();
spyDispatch.mockRestore();
});
+
it('test closeDrawer method ', () => {
const spyDispatch = jest.spyOn(navigationClient, 'dispatch');
+ const mockClose = jest.fn();
+ getDrawerContext.mockReturnValue({ close: mockClose });
navigationClient.closeDrawer();
+ expect(mockClose).toHaveBeenCalled();
+ expect(spyDispatch).toHaveBeenCalledWith({ type: 'CLOSE_DRAWER' });
+ spyDispatch.mockRestore();
+ });
+
+ it('test closeDrawer logs warning if no context', () => {
+ const spyDispatch = jest.spyOn(navigationClient, 'dispatch');
+ const warnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {});
+ getDrawerContext.mockReturnValue(null);
+ navigationClient.closeDrawer();
+ expect(warnSpy).toHaveBeenCalledWith(
+ expect.stringContaining('Attempted to close drawer with AllsparkDrawerClient')
+ );
expect(spyDispatch).toHaveBeenCalledWith({ type: 'CLOSE_DRAWER' });
+ warnSpy.mockRestore();
spyDispatch.mockRestore();
});
it('return the correct ModalProviderProps', () => {
--- packages/allspark-foundation/src/Navigation/client.tsx
@@ -460,6 +460,13 @@ export class NavigationClient<
* Toggles the drawer, if a Drawer Navigator is the top level navigator.
*/
public toggleDrawer = () => {
+ const context = getDrawerContext();
+ if (!context) {
+ console.warn(
+ 'Attempted to toggle drawer with AllsparkDrawerClient, but no DrawerProvider was found. Ensure the Container app has setup the DrawerProvider.'
+ );
+ }
+ context?.toggleDrawerOpened();
this.dispatch(DrawerActions.toggleDrawer());
};
@@ -467,6 +474,13 @@ export class NavigationClient<
* Opens the drawer, if a Drawer Navigator is the top level navigator.
*/
public openDrawer = () => {
+ const context = getDrawerContext();
+ if (!context) {
+ console.warn(
+ 'Attempted to open drawer with AllsparkDrawerClient, but no DrawerProvider was found. Ensure the Container app has setup the DrawerProvider.'
+ );
+ }
+ context?.open();
this.dispatch(DrawerActions.openDrawer());
};
@@ -474,6 +488,13 @@ export class NavigationClient<
* Closes the drawer, if a Drawer Navigator is the top level navigator.
*/
public closeDrawer = () => {
+ const context = getDrawerContext();
+ if (!context) {
+ console.warn(
+ 'Attempted to close drawer with AllsparkDrawerClient, but no DrawerProvider was found. Ensure the Container app has setup the DrawerProvider.'
+ );
+ }
+ context?.close();
this.dispatch(DrawerActions.closeDrawer());
};
| fix(navigation): connect drawer to context to fix toggle not working (#327) | fix(navigation): connect drawer to context to fix toggle not working (#327)
* fix(navigation): connect drawer to context to fix toggle not working
* chore(yarn.lock): revert yarn.lock changes |
2f582a4d67bf9b7033fe94f3a3335dbd19e9b402 | --- packages/me-at-walmart-container/src/graphql/index.ts
@@ -1,10 +1,5 @@
import { GraphQLClientConfig } from '@walmart/allspark-foundation/GraphQL';
-import {
- AthenaUriLink,
- HeadersLink,
- TypeRemappingLink,
- ErrorLoggerLink,
-} from './links';
+import { AthenaUriLink, TypeRemappingLink, ErrorLoggerLink } from './links';
import { TypePolicies } from './policies';
import { IMeAtWalmartEnvironment } from '../environment';
@@ -13,9 +8,12 @@ export const MeAtWalmartGraphQLConfig = (
): GraphQLClientConfig => ({
httpConfig: {
uri: env.graphql.url,
- headers: env.graphql.headers,
+ headers: {
+ ...env.graphql.headers,
+ 'Content-Type': 'application/json',
+ },
},
- links: [HeadersLink, TypeRemappingLink, ErrorLoggerLink, AthenaUriLink],
+ links: [TypeRemappingLink, ErrorLoggerLink, AthenaUriLink],
cacheConfig: { typePolicies: TypePolicies },
persistedQueryConfig: {
enabled: env.graphql.persistedQueries,
--- packages/me-at-walmart-container/src/graphql/links.ts
@@ -1,4 +1,4 @@
-import { ApolloLink, DefaultContext } from '@apollo/client';
+import { ApolloLink } from '@apollo/client';
import { onError } from '@apollo/client/link/error';
import { generateQueryHash } from '@walmart/allspark-foundation/GraphQL';
import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment';
@@ -39,17 +39,6 @@ const handleDailyRoster = (associates: MewAssociate[]) => {
});
};
-export const HeadersLink = new ApolloLink((operation, forward) => {
- operation.setContext((context: DefaultContext) => ({
- headers: {
- ...context.headers,
- 'Content-Type': 'application/json',
- 'X-Apollo-Operation-Name': operation.operationName,
- },
- }));
- return forward(operation);
-});
-
export const TypeRemappingLink = new ApolloLink((operation, forward) => {
return forward(operation).map((data) => {
if (data?.data?.getDailyRoster) {
| refactor: remove headers link for duplicated functionality | refactor: remove headers link for duplicated functionality
|
1f5aafbb0034345a8bb40813d7ae7898e6c4d6e9 | --- package.json
@@ -98,7 +98,7 @@
"@walmart/avp-feature-app": "0.28.42",
"@walmart/avp-shared-library": "0.27.24",
"@walmart/ax-components": "1.2.10",
- "@walmart/backroom-mini-app": "1.17.10",
+ "@walmart/backroom-mini-app": "1.17.11",
"@walmart/beneficiary-online-mini-app": "0.1.26",
"@walmart/beneficiary-online-shared-library": "1.2.7",
"@walmart/calling-mini-app": "0.8.34",
--- yarn.lock
@@ -7981,9 +7981,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/backroom-mini-app@npm:1.17.10":
- version: 1.17.10
- resolution: "@walmart/backroom-mini-app@npm:1.17.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.17.10.tgz"
+"@walmart/backroom-mini-app@npm:1.17.11":
+ version: 1.17.11
+ resolution: "@walmart/backroom-mini-app@npm:1.17.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.17.11.tgz"
peerDependencies:
"@react-navigation/native": ^7.0.0
"@react-navigation/stack": ^7.1.0
@@ -8005,7 +8005,7 @@ __metadata:
react-native-svg-transformer: ">=1.0.0"
react-redux: ">=8.0.0"
redux: ">=4.0.0"
- checksum: 10c0/2cca156f52c4d3e549efbb31111b4934bc8716f5624cf5aecf7ce0a6198fb879ae289e3b236a3b7aad3bf0a2f5786c9a34a322ffe00bce5ff51098ce1f55ded5
+ checksum: 10c0/992ffaa87f925891f4e6576ec3780f72b33d51663dc354720245d44d3a2264a53d1f4f1b05ac912f51f0b952904c6c2ac39e2e8196e07c0890cc4af88b6e3f93
languageName: node
linkType: hard
@@ -8836,7 +8836,7 @@ __metadata:
"@walmart/avp-feature-app": "npm:0.28.42"
"@walmart/avp-shared-library": "npm:0.27.24"
"@walmart/ax-components": "npm:1.2.10"
- "@walmart/backroom-mini-app": "npm:1.17.10"
+ "@walmart/backroom-mini-app": "npm:1.17.11"
"@walmart/beneficiary-online-mini-app": "npm:0.1.26"
"@walmart/beneficiary-online-shared-library": "npm:1.2.7"
"@walmart/calling-mini-app": "npm:0.8.34"
| fix: Upgrade backroom-mini-app to 1.17.11 (#5244) | fix: Upgrade backroom-mini-app to 1.17.11 (#5244)
Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com> |
993f22e7f2cfab1c6642dcbcafad266b62bf5764 | --- package-lock.json
@@ -35,7 +35,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "1.1.30",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.12.1",
+ "@walmart/ask-sam-mini-app": "1.12.2",
"@walmart/attendance-mini-app": "0.86.0",
"@walmart/compass-sdk-rn": "3.16.17",
"@walmart/config-components": "4.1.0-rc.4",
@@ -75,7 +75,7 @@
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
"@walmart/receipt-check-miniapp": "1.12.4",
- "@walmart/redux-store": "3.1.5",
+ "@walmart/redux-store": "3.3.1",
"@walmart/returns-mini-app": "0.13.3",
"@walmart/schedule-mini-app": "0.35.0",
"@walmart/settings-mini-app": "1.18.1",
@@ -4797,9 +4797,9 @@
}
},
"node_modules/@walmart/ask-sam-mini-app": {
- "version": "1.12.1",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.12.1.tgz",
- "integrity": "sha512-7/O80+/11485PmNt8Q8MrcDZuboElyqB861RdanU0nCqBec5k3psW8svqcPLVJgaqkmAEHdECXClo0SkO+ze1Q==",
+ "version": "1.12.2",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.12.2.tgz",
+ "integrity": "sha512-MidYj5g4jRQGZi7k76DefM/4/xLTBy3QnxvonkgK9/AqiWDD6o3xb1MbBoBramhLSWe9Mvp3Uxg2fvV0UBXjhw==",
"license": "NONE",
"dependencies": {
"apisauce": "^1.1.2",
@@ -5875,7 +5875,9 @@
}
},
"node_modules/@walmart/redux-store": {
- "version": "3.1.5",
+ "version": "3.3.1",
+ "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.3.1.tgz",
+ "integrity": "sha512-oXVfLAHU7zUyKQ9lNEZh8IvQrWjrQifZhbroxFTyVNS4zPvndZC0dJybZxhC8CJ3cIWawBj9yrcvFqEaqfeB+Q==",
"license": "MIT",
"dependencies": {
"namecase": "^1.1.2",
@@ -25147,9 +25149,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "1.12.1",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.12.1.tgz",
- "integrity": "sha512-7/O80+/11485PmNt8Q8MrcDZuboElyqB861RdanU0nCqBec5k3psW8svqcPLVJgaqkmAEHdECXClo0SkO+ze1Q==",
+ "version": "1.12.2",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.12.2.tgz",
+ "integrity": "sha512-MidYj5g4jRQGZi7k76DefM/4/xLTBy3QnxvonkgK9/AqiWDD6o3xb1MbBoBramhLSWe9Mvp3Uxg2fvV0UBXjhw==",
"requires": {
"apisauce": "^1.1.2",
"axios-cache-adapter": "^2.7.3",
@@ -25200,7 +25202,7 @@
"requires": {
"@walmart/allspark-http-client": "^2.4.13",
"@walmart/allspark-utils": "^1.5.2",
- "@walmart/redux-store": "3.1.5",
+ "@walmart/redux-store": "3.3.1",
"reduxsauce": "^1.2.1",
"reselect": "^4.1.5",
"seamless-immutable": "^7.1.4",
@@ -25446,7 +25448,9 @@
}
},
"@walmart/redux-store": {
- "version": "3.1.5",
+ "version": "3.3.1",
+ "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.3.1.tgz",
+ "integrity": "sha512-oXVfLAHU7zUyKQ9lNEZh8IvQrWjrQifZhbroxFTyVNS4zPvndZC0dJybZxhC8CJ3cIWawBj9yrcvFqEaqfeB+Q==",
"requires": {
"namecase": "^1.1.2",
"reduxsauce": "^1.2.1"
--- package.json
@@ -77,7 +77,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "1.1.30",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.12.1",
+ "@walmart/ask-sam-mini-app": "1.12.2",
"@walmart/attendance-mini-app": "0.86.0",
"@walmart/compass-sdk-rn": "3.16.17",
"@walmart/config-components": "4.1.0-rc.4",
@@ -117,7 +117,7 @@
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
"@walmart/receipt-check-miniapp": "1.12.4",
- "@walmart/redux-store": "3.1.5",
+ "@walmart/redux-store": "3.3.1",
"@walmart/returns-mini-app": "0.13.3",
"@walmart/schedule-mini-app": "0.35.0",
"@walmart/settings-mini-app": "1.18.1",
| SMBLV-3877: stores/nearby enhanced with Site country code to handle PR | SMBLV-3877: stores/nearby enhanced with Site country code to handle PR
|
28738725f090406c155c8955f1f49d9307cf5568 | --- package.json
@@ -120,7 +120,7 @@
"@walmart/metrics-mini-app": "0.22.4",
"@walmart/mod-flex-mini-app": "1.18.5",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/money-auth-shared-components": "0.1.9",
+ "@walmart/money-auth-shared-components": "0.1.10",
"@walmart/myteam-mini-app": "1.4.0",
"@walmart/native-rfid-scanner": "3.9.15",
"@walmart/onewalmart-miniapp": "1.0.24",
--- yarn.lock
@@ -6604,9 +6604,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/money-auth-shared-components@npm:0.1.9":
- version: 0.1.9
- resolution: "@walmart/money-auth-shared-components@npm:0.1.9"
+"@walmart/money-auth-shared-components@npm:0.1.10":
+ version: 0.1.10
+ resolution: "@walmart/money-auth-shared-components@npm:0.1.10"
peerDependencies:
"@react-navigation/native": ^6.0.0
"@react-navigation/stack": ^6.1.0
@@ -6621,7 +6621,7 @@ __metadata:
react-native-wm-telemetry: ^0.3.0
react-redux: ^7.2.1
redux: ^4.0.5
- checksum: 10c0/28916e85e4b712024fbd7037a6ddf2bd93f46996100b2e5740a0b522e5eb3757ae1c3acf9f97de43f189aa378ae0761d2e05c925808802baf085af6f675aeab6
+ checksum: 10c0/b05f8ec08144fb8299e61a24663c4d804648a991ba3fdeee56d2c5ac9ec250663079c9878d92271a4da5602211d1f52209e42e9df44eafc72f21ba87759038ca
languageName: node
linkType: hard
@@ -7835,7 +7835,7 @@ __metadata:
"@walmart/metrics-mini-app": "npm:0.22.4"
"@walmart/mod-flex-mini-app": "npm:1.18.5"
"@walmart/moment-walmart": "npm:1.0.4"
- "@walmart/money-auth-shared-components": "npm:0.1.9"
+ "@walmart/money-auth-shared-components": "npm:0.1.10"
"@walmart/myteam-mini-app": "npm:1.4.0"
"@walmart/native-rfid-scanner": "npm:3.9.15"
"@walmart/onewalmart-miniapp": "npm:1.0.24"
| bump version | bump version
|
0a7c6ba8162e5a9223996c38250f4ee8b65302eb | --- graphql.yml
@@ -57,7 +57,7 @@ applications:
tags:
- 'v1'
- name: 'upsertSupplyChainAssociatePreference'
- hash: '571873ffcf9d8923e4951fa75addb46f876c949046518f0c302707deadab878a'
+ hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0'
queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql'
tags:
- 'v1'
@@ -108,8 +108,8 @@ applications:
# queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql"
# tags:
# - "v1"
- # - name: "upsertSupplyChainAssociatePreference"
- # hash: "39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0"
- # queryTemplate: "packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql"
- # tags:
- # - "v1"
+ - name: 'upsertSupplyChainAssociatePreference'
+ hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0'
+ queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql'
+ tags:
+ - 'v1'
| feat(ui): resolved conflicts | feat(ui): resolved conflicts
|
b3e44b2cf7e276bad60200379289e4512021e04a | --- ios/Podfile.lock
@@ -2197,7 +2197,7 @@ SPEC CHECKSUMS:
RNReanimated: fc36806836aca984b797f01432abe31689663421
RNScreens: bea7b9767050d69e4b9da14639cdd5c8f5a37881
RNSha256: e1bc64e9e50b293d5282bb4caa1b2043931f1c9d
- RNSketchCanvas: 124a2a11b9bce418ef6e34262fc163d00b5f714b
+ RNSketchCanvas: 9c28adb5381543ed55cc98ce6de46479cb3cb12c
RNSoundPlayer: 369105c565b8fe6ea0a43fc882dc81eba444e842
RNSVG: d00c8f91c3cbf6d476451313a18f04d220d4f396
RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
| chore: podfile lock update | chore: podfile lock update
|
3b6bd49092cc82fe1c44ce556d01b1524e9285b6 | --- .yarn/patches/react-native-npm-0.72.12-e28f3b183e.patch
@@ -1,13 +0,0 @@
-diff --git a/third-party-podspecs/boost.podspec b/third-party-podspecs/boost.podspec
-index bbbb7380e51a12d1b2994c8ab8e8f682c5e6d83d..3d9331c95d1217682a0b820a0d9440fdff074ae0 100644
---- a/third-party-podspecs/boost.podspec
-+++ b/third-party-podspecs/boost.podspec
-@@ -10,7 +10,7 @@ Pod::Spec.new do |spec|
- spec.homepage = 'http://www.boost.org'
- spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
- spec.authors = 'Rene Rivera'
-- spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2',
-+ spec.source = { :http => 'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2',
- :sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' }
-
- # Pinning to the same version as React.podspec.
--- .yarn/patches/react-native-npm-0.73.7-7f2047866d.patch
Binary files a/.yarn/patches/react-native-npm-0.73.7-7f2047866d.patch and b/.yarn/patches/react-native-npm-0.73.7-7f2047866d.patch differ
| update rn patch for 73 | update rn patch for 73
|
3508a72286ca95d808995b0aa11878efb6476031 | --- src/hooks/teams.ts
@@ -6,6 +6,8 @@ import {Associate} from '../types';
import {useDailyRoster} from './roster';
import {Team} from '../queries/schema.types';
import moment from 'moment-timezone';
+import {getGraphQLConfig} from '../services/config';
+import {useEnvironment} from '@walmart/core-services/Environment';
export const useGetTeamById = (teamId: string) => {
const storeNbr: string | undefined = useSelector(
@@ -14,7 +16,7 @@ export const useGetTeamById = (teamId: string) => {
const countryCode: string | undefined = useSelector(
SiteSelectors.getSiteCountry,
);
-
+ const envConfig = useEnvironment();
return useGetTeamByIdQuery({
variables: {
storeNbr: storeNbr!,
@@ -23,6 +25,7 @@ export const useGetTeamById = (teamId: string) => {
countryCode: countryCode!,
},
skip: !storeNbr || !countryCode,
+ context: getGraphQLConfig(envConfig),
});
};
@@ -33,7 +36,7 @@ export const useGetTeamsByStore = () => {
const countryCode: string | undefined = useSelector(
SiteSelectors.getSiteCountry,
);
-
+ const envConfig = useEnvironment();
return useGetTeamsByStoreQuery({
variables: {
storeNbr: storeNbr!,
@@ -41,6 +44,7 @@ export const useGetTeamsByStore = () => {
countryCode: countryCode!,
},
skip: !storeNbr || !countryCode,
+ context: getGraphQLConfig(envConfig),
});
};
| Adding context to queries | Adding context to queries
|
c1008c747e6aaa43bb788b7f1cbedcf001aa9334 | --- core/__tests__/changeStore/ChangeStoreInputTest.tsx
@@ -3,7 +3,7 @@ import {render, fireEvent, act} from '@testing-library/react-native';
import {ChangeStoreInput} from '../../src/changeStore/ChangeStoreInput';
describe('ChangeStoreInput', () => {
- it('calls onSubmit with the correct siteId', async () => {
+ xit('calls onSubmit with the correct siteId', async () => {
const mockOnSubmit = jest.fn();
const siteId = '12345';
const {getByTestId} = render(<ChangeStoreInput onSubmit={mockOnSubmit} />);
| chore: skipping test for looper builds | chore: skipping test for looper builds
|
11b522100cef4fcbddb19559a95b301a7503b46e | --- src/screens/MessagesScreen.tsx
@@ -242,7 +242,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
}
};
- const sendPushNotification = async (message: MessageRequest) => {
+ const sendPushNotification = async (message: MessageRequest, messageId?: string, channelPath?: string) => {
if (!isNil(siteId)) {
const getMessageTextForPush = () => {
if (message.image?.uri) {
@@ -291,10 +291,17 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
getMessageType(),
message?.audio?.uri || message?.image?.uri,
);
+ logger.info('PushNotifInfo', {
+ message: `Push notification sent`,
+ messageObjId: messageId || '',
+ channelPath: channelPath || '',
+ });
} catch (e) {
const err = e as Error;
logger.error('PushNotifErr', {
message: `PushNotifErr: ${err.message}`,
+ messageObjId: messageId || '',
+ channelPath: channelPath || '',
});
}
}
@@ -305,7 +312,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
const createdAt = firestore.FieldValue.serverTimestamp();
// Add message to collection
- channelDocument.collection('messages').add({
+ const docRef = await channelDocument.collection('messages').add({
...message,
sentFrom: viewerId,
createdAt,
@@ -318,7 +325,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
});
if (channelData?.participants.length === 2) {
- await sendPushNotification(message);
+ await sendPushNotification(message, docRef.id, channelData?.id);
}
analytics('sendingMsg', {sentFrom: viewerId, store: storeId, message}, 10);
--- src/screens/MessagesScreen.tsx
@@ -242,7 +242,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
}
};
- const sendPushNotification = async (message: MessageRequest) => {
+ const sendPushNotification = async (message: MessageRequest, messageId?: string, channelPath?: string) => {
if (!isNil(siteId)) {
const getMessageTextForPush = () => {
if (message.image?.uri) {
@@ -291,10 +291,17 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
getMessageType(),
message?.audio?.uri || message?.image?.uri,
);
+ logger.info('PushNotifInfo', {
+ message: `Push notification sent`,
+ messageObjId: messageId || '',
+ channelPath: channelPath || '',
+ });
} catch (e) {
const err = e as Error;
logger.error('PushNotifErr', {
message: `PushNotifErr: ${err.message}`,
+ messageObjId: messageId || '',
+ channelPath: channelPath || '',
});
}
}
@@ -305,7 +312,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
const createdAt = firestore.FieldValue.serverTimestamp();
// Add message to collection
- channelDocument.collection('messages').add({
+ const docRef = await channelDocument.collection('messages').add({
...message,
sentFrom: viewerId,
createdAt,
@@ -318,7 +325,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
});
if (channelData?.participants.length === 2) {
- await sendPushNotification(message);
+ await sendPushNotification(message, docRef.id, channelData?.id);
}
analytics('sendingMsg', {sentFrom: viewerId, store: storeId, message}, 10);
| add log to push notification | add log to push notification
|
387a808cf87aa6e4d2a58b1850f97f2c2d0f53c5 | --- package.json
@@ -89,7 +89,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.12",
+ "@walmart/facilities-management-miniapp": "0.5.14",
"@walmart/feedback-all-spark-miniapp": "0.9.9",
"@walmart/financial-wellbeing-feature-app": "1.0.64",
"@walmart/functional-components": "2.0.6",
| Update package.json | Update package.json |
8a4a7d4a76ccd3cba76504fb17da9785ec0b3805 | --- src/auth/LoginErrorScreen/index.tsx
@@ -117,11 +117,11 @@ export const ErrorScreen = (
const customErrorCode = params?.authError?.code;
const [isNetworkError, isTimeMismatchError, isBrowserNotFoundError] =
useMemo(() => {
- const networkError = networkErrors.some(
- (term) => customError?.toLowerCase()?.includes(term),
+ const networkError = networkErrors.some((term) =>
+ customError?.toLowerCase()?.includes(term),
);
- const timeMismatch = timeMismatchErrors.some(
- (term) => customError?.toLowerCase()?.includes(term),
+ const timeMismatch = timeMismatchErrors.some((term) =>
+ customError?.toLowerCase()?.includes(term),
);
const noBrowserFound = noBrowserAndroidErrors === customErrorCode;
return [networkError, timeMismatch, noBrowserFound];
--- src/hooks/useCanImpersonate.ts
@@ -11,9 +11,8 @@ export const useCanImpersonate = () => {
const user: User | null = useSelector(UserSelectors.getOriginalUser);
const impersonatorGroups: string[] = useSelector(getImpersonatorGroups);
- return impersonatorGroups.some(
- (group: string) =>
- // @ts-ignore
- user?.memberOf?.includes(group),
+ return impersonatorGroups.some((group: string) =>
+ // @ts-ignore
+ user?.memberOf?.includes(group),
);
};
--- src/startup/AuthFlow.ts
@@ -18,8 +18,8 @@ const SILENT_SSO_ERRORS = [
];
export const isSilentSignInError = (error?: Error) =>
- SILENT_SSO_ERRORS.some(
- (silentError) => `${error}`?.toLowerCase().includes(silentError),
+ SILENT_SSO_ERRORS.some((silentError) =>
+ `${error}`?.toLowerCase().includes(silentError),
);
export function* authFlow() {
| lint fix | lint fix
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.