commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
ec46aae50eff69f28afb0cbb0e9bcd13f66493ef | --- package-lock.json
@@ -1102,6 +1102,15 @@
"integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",
"dev": true
},
+ "@callstack/react-theme-provider": {
+ "version": "3.0.6",
+ "resolved": "https://npme.walmart.com/@callstack/react-theme-provider/-/react-theme-provider-3.0.6.tgz",
+ "integrity": "sha512-wwKMXfmklfogpalNZT0W+jh76BIquiYUiQHOaPmt/PCyCEP/E6rP+e7Uie6mBZrfkea9WJYJ+mus6r+45JAEhg==",
+ "requires": {
+ "deepmerge": "^3.2.0",
+ "hoist-non-react-statics": "^3.3.0"
+ }
+ },
"@cnakazawa/watch": {
"version": "1.0.4",
"resolved": "https://npme.walmart.com/@cnakazawa/watch/-/watch-1.0.4.tgz",
@@ -12712,6 +12721,16 @@
"react-native-animatable": "1.3.3"
}
},
+ "react-native-paper": {
+ "version": "4.9.2",
+ "resolved": "https://npme.walmart.com/react-native-paper/-/react-native-paper-4.9.2.tgz",
+ "integrity": "sha512-J7FRsd0YblQawtuj9I46F//apZHadsCKk6jWpc6njFTYdgUeCdkR8KgEto7cp2WxbcGNELx7KGwPQ4zAgX746A==",
+ "requires": {
+ "@callstack/react-theme-provider": "^3.0.6",
+ "color": "^3.1.2",
+ "react-native-iphone-x-helper": "^1.3.1"
+ }
+ },
"react-native-pdf": {
"version": "6.2.2",
"resolved": "https://npme.walmart.com/react-native-pdf/-/react-native-pdf-6.2.2.tgz",
@@ -12840,6 +12859,11 @@
"resolved": "https://npme.walmart.com/react-native-typing-animation/-/react-native-typing-animation-0.1.7.tgz",
"integrity": "sha512-4H3rF9M+I2yAZpYJcY0Mb29TXkn98QK12rrKSY6LZj1BQD9NNmRZuNXzwX4XHapsIz+N/J8M3p27FOQPbfzqeg=="
},
+ "react-native-uuid": {
+ "version": "2.0.1",
+ "resolved": "https://npme.walmart.com/react-native-uuid/-/react-native-uuid-2.0.1.tgz",
+ "integrity": "sha512-cptnoIbL53GTCrWlb/+jrDC6tvb7ypIyzbXNJcpR3Vab0mkeaaVd5qnB3f0whXYzS+SMoSQLcUUB0gEWqkPC0g=="
+ },
"react-native-v8": {
"version": "0.63.4-patch.0",
"resolved": "https://npme.walmart.com/react-native-v8/-/react-native-v8-0.63.4-patch.0.tgz",
| package lock updates | package lock updates
|
4b90cdc8cc5be8fe35c2724957da29671895e48c | --- package-lock.json
@@ -41,7 +41,7 @@
"@walmart/amp-mini-app": "1.1.72",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.18.5",
- "@walmart/attendance-mini-app": "3.18.0",
+ "@walmart/attendance-mini-app": "3.20.0",
"@walmart/avp-feature-app": "0.0.32",
"@walmart/avp-shared-library": "0.0.53",
"@walmart/calling-mini-app": "0.1.8",
@@ -8497,9 +8497,9 @@
}
},
"node_modules/@walmart/attendance-mini-app": {
- "version": "3.18.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.18.0.tgz",
- "integrity": "sha512-RjO3+u4C0ZZcqjvnzZoGG2K49xAnMeufA0B/IEo0AsqvpvzN/tXrZ/WZD5RZl3WyKPIqRX1AczZvqS1+zfBeAg==",
+ "version": "3.20.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.20.0.tgz",
+ "integrity": "sha512-8blwA/Ju+lCg4ebtFYJHioUy6fWHaxKBjK2IlvFLecI10e01G/es+wjYPSwgczK4j76S1InnBy0IRAXJzAm5aw==",
"hasInstallScript": true,
"dependencies": {
"@walmart/wfm-ui": "^0.2.26",
@@ -33228,9 +33228,9 @@
}
},
"@walmart/attendance-mini-app": {
- "version": "3.18.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.18.0.tgz",
- "integrity": "sha512-RjO3+u4C0ZZcqjvnzZoGG2K49xAnMeufA0B/IEo0AsqvpvzN/tXrZ/WZD5RZl3WyKPIqRX1AczZvqS1+zfBeAg==",
+ "version": "3.20.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.20.0.tgz",
+ "integrity": "sha512-8blwA/Ju+lCg4ebtFYJHioUy6fWHaxKBjK2IlvFLecI10e01G/es+wjYPSwgczK4j76S1InnBy0IRAXJzAm5aw==",
"requires": {
"@walmart/wfm-ui": "^0.2.26",
"moment-timezone": "0.5.40",
--- package.json
@@ -82,7 +82,7 @@
"@walmart/amp-mini-app": "1.1.72",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.18.5",
- "@walmart/attendance-mini-app": "3.18.0",
+ "@walmart/attendance-mini-app": "3.20.0",
"@walmart/avp-feature-app": "0.0.32",
"@walmart/avp-shared-library": "0.0.53",
"@walmart/calling-mini-app": "0.1.8",
| bump ama to v3.20.0 | bump ama to v3.20.0
|
f505c7fbc772887620c41ccf4b5a7c50e39b4625 | --- lerna.json
@@ -11,7 +11,7 @@
},
"version": {
"message": "chore(version): updating package version",
- "allowBranch": "feature/v3",
+ "allowBranch": "feature/lernaV7",
"conventionalCommits": true,
"conventionalPrerelease": true
}
| chore: lerna fix | chore: lerna fix
|
c161d3467bebc2dad5ae727d3b65858d5615d0df | --- packages/allspark-foundation/__tests__/Components/DynamicComponents.test.tsx
@@ -4,27 +4,24 @@ import { DynamicComponent, AllsparkDynamicComponents } from '../../src/Component
import { Text } from 'react-native';
const MockTemplate = ({ id, value }) => <Text>{value}</Text>;
-
describe('DynamicComponent', () => {
let component;
-
beforeEach(() => {
component = new DynamicComponent(MockTemplate);
});
- test('should update a record', () => {
+ it('should update a record', () => {
component.add('record-1', { value: 'Hello World' });
component.update('record-1', { value: 'Hello World Updated' });
const {getByText} = render(<component.Record id="record-1" />);
expect(getByText('Hello World Updated')).toBeTruthy();
});
-
- test('should remove a record', () => {
+ it('should remove a record', () => {
component.add('record-1', { value: 'Hello World' });
component.remove('record-1');
const {queryByText} = render(<component.Record id="record-1" />);
expect(queryByText('Hello World')).toBeNull();
});
- test('should render a list of records', () => {
+ it('should render a list of records', () => {
component.add('record-1', { value: 'Hello World' });
const {getByText} = render(<component.List limit={2} method="lifo" />);
expect(getByText('Hello World')).toBeTruthy();
@@ -41,29 +38,24 @@ describe('AllsparkDynamicComponents', () => {
List: jest.fn(),
Template: jest.fn(),
};
-
beforeEach(() => {
jest.clearAllMocks();
AllsparkDynamicComponents.register('TestComponent', mockComponent);
});
-
it('Add a record to the TestComponent', () => {
const props = { value: 'Hello World' };
AllsparkDynamicComponents.add('TestComponent', 'record-1', props);
expect(mockComponent.add).toHaveBeenCalledWith('record-1', props);
});
-
it(' Update a record in the TestComponent', () => {
const updatedProps = { value: 'Updated World' };
AllsparkDynamicComponents.update('TestComponent', 'record-1', updatedProps);
expect(mockComponent.update).toHaveBeenCalledWith('record-1', updatedProps);
});
-
it('Remove a record from the TestComponent', () => {
AllsparkDynamicComponents.remove('TestComponent', 'record-1');
expect(mockComponent.remove).toHaveBeenCalledWith('record-1');
});
-
it('Record from the TestComponent', () => {
const initialProps = { value: 'Initial Value' };
AllsparkDynamicComponents.getRecord('TestComponent', 'record-1', initialProps);
| code cleanup | code cleanup
|
0b9995d9aa38cfeaf6249527313698572d925fc0 | --- src/translations/locales/en-US.ts
@@ -102,8 +102,8 @@ export const enUS = {
'changeStore.successMessage_site': 'Your site has been updated',
'changeStore.successMessage_store': 'Your store has been updated',
'changeStore.updateAction': 'Update',
- 'clockedIn': 'Clocked In',
- 'clockedOut': 'Clocked Out',
+ 'clockedIn': 'Clocked in',
+ 'clockedOut': 'Clocked out',
'clockOutGuard.action': 'Got it',
'clockOutGuard.content': 'You must be clocked in to access this feature.',
'clockOutGuard.title': 'Clock in required',
| fix(header): lowercase | fix(header): lowercase
|
20ab36f69221bb1dd6ad422d0194ce5450a99c2b | --- package-lock.json
@@ -36,7 +36,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "0.2.13",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.3.1",
+ "@walmart/ask-sam-mini-app": "1.3.2",
"@walmart/config-components": "4.0.1",
"@walmart/core-services": "~1.4.9",
"@walmart/core-services-allspark": "~1.10.11",
@@ -4651,9 +4651,10 @@
}
},
"node_modules/@walmart/ask-sam-mini-app": {
- "version": "1.3.1",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.1.tgz",
- "integrity": "sha512-T8Z9AbiStGaAwDBE+mUCy7uhjwSJ25/mqwJCkfVA/NNa1PSfbp39hbQu3cEUpEQkoQ/RQgGocVCCZi/HjKG5kA==",
+ "version": "1.3.2",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.2.tgz",
+ "integrity": "sha512-RMa4JaieOkL4c1rL8DMQ6iswQsFtwgEGOOsSBE7JcRcGiqYuWclCrumjfucIjRDMjciYVOjm4RCRQNbTmn6Qxw==",
+ "hasInstallScript": true,
"license": "NONE",
"dependencies": {
"apisauce": "^1.1.2",
@@ -4687,7 +4688,7 @@
"react-native-modal": ">=13",
"react-native-pdf": ">=6.6.2",
"react-native-popup-menu": ">=0.15.9",
- "react-native-qrcode-svg": ">=6.2",
+ "react-native-qrcode-svg": ">=6.1.2",
"react-native-safe-area-context": ">=4.3",
"react-native-svg": ">=13.4",
"react-native-tab-view": ">=3.3",
@@ -21564,7 +21565,9 @@
}
},
"node_modules/wifi-store-locator": {
- "version": "1.0.0-alpha2",
+ "version": "1.0.1",
+ "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.0.1.tgz",
+ "integrity": "sha512-fMZeW8dNlAQIqFaSbuIKxGLTSGv0OoVfb3Re4by5u3RuIqP4u/ez+N8PIGHFJV8jQ4e6iPf2CgSu6J/KFiwt4w==",
"license": "MIT",
"peerDependencies": {
"react": "*",
@@ -24695,9 +24698,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "1.3.1",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.1.tgz",
- "integrity": "sha512-T8Z9AbiStGaAwDBE+mUCy7uhjwSJ25/mqwJCkfVA/NNa1PSfbp39hbQu3cEUpEQkoQ/RQgGocVCCZi/HjKG5kA==",
+ "version": "1.3.2",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.2.tgz",
+ "integrity": "sha512-RMa4JaieOkL4c1rL8DMQ6iswQsFtwgEGOOsSBE7JcRcGiqYuWclCrumjfucIjRDMjciYVOjm4RCRQNbTmn6Qxw==",
"requires": {
"apisauce": "^1.1.2",
"axios-cache-adapter": "^2.7.3",
--- package.json
@@ -79,7 +79,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "0.2.13",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.3.1",
+ "@walmart/ask-sam-mini-app": "1.3.2",
"@walmart/config-components": "4.0.1",
"@walmart/core-services": "~1.4.9",
"@walmart/core-services-allspark": "~1.10.11",
| Bumped up ask-sam version to 1.3.2 | Bumped up ask-sam version to 1.3.2
|
0085513d14d5d79b99cb581ed549b4a68de90fe5 | --- package-lock.json
@@ -62,7 +62,7 @@
"@walmart/metrics-mini-app": "0.12.10",
"@walmart/mod-flex-mini-app": "1.9.4",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/onewalmart-miniapp": "1.0.14",
+ "@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.9.35",
"@walmart/payrollsolution_miniapp": "0.130.46",
"@walmart/price-changes-mini-app": "1.9.4",
@@ -5641,7 +5641,9 @@
}
},
"node_modules/@walmart/onewalmart-miniapp": {
- "version": "1.0.14",
+ "version": "1.0.16",
+ "resolved": "https://npme.walmart.com/@walmart/onewalmart-miniapp/-/onewalmart-miniapp-1.0.16.tgz",
+ "integrity": "sha512-uL/CS1EtqHy9mWpCspuqwMg7V6oTxQwlqY20PiheiDQ6fxhSu3R29tf/IjQA4NzH4vu9I8sqf2+3ci0xYGhesg==",
"dependencies": {
"@walmart/functional-components": "^4.0.3"
},
@@ -25365,7 +25367,9 @@
"version": "1.0.4"
},
"@walmart/onewalmart-miniapp": {
- "version": "1.0.14",
+ "version": "1.0.16",
+ "resolved": "https://npme.walmart.com/@walmart/onewalmart-miniapp/-/onewalmart-miniapp-1.0.16.tgz",
+ "integrity": "sha512-uL/CS1EtqHy9mWpCspuqwMg7V6oTxQwlqY20PiheiDQ6fxhSu3R29tf/IjQA4NzH4vu9I8sqf2+3ci0xYGhesg==",
"requires": {
"@walmart/functional-components": "~4.0.3"
}
--- package.json
@@ -104,7 +104,7 @@
"@walmart/metrics-mini-app": "0.12.10",
"@walmart/mod-flex-mini-app": "1.9.4",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/onewalmart-miniapp": "1.0.14",
+ "@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.9.35",
"@walmart/payrollsolution_miniapp": "0.130.46",
"@walmart/price-changes-mini-app": "1.9.4",
| Update one walmart mini app version | Update one walmart mini app version
|
e45d51855d76579fc1ed5ca525066931354af511 | --- package.json
@@ -109,7 +109,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.14",
"@walmart/onewalmart-miniapp": "1.0.16",
- "@walmart/pay-stub-miniapp": "0.13.5",
+ "@walmart/pay-stub-miniapp": "0.15.1",
"@walmart/payrollsolution_miniapp": "0.135.3",
"@walmart/price-changes-mini-app": "1.10.2",
"@walmart/profile-feature-app": "0.334.3",
| Bump Version | Bump Version
|
de5ffd5b68680e68d1c309bb37c2aa8e487697cf | --- packages/allspark-foundation/package.json
@@ -121,20 +121,20 @@
"@react-navigation/drawer": "6.x",
"@react-navigation/native": "6.x",
"@react-navigation/stack": "6.x",
- "@walmart/allspark-graphql-client": ">=6",
- "@walmart/allspark-http-client": ">=6",
- "@walmart/core-services": ">=6",
- "@walmart/core-utils": ">=6",
- "@walmart/functional-components": ">=6",
+ "@walmart/allspark-graphql-client": "workspace:^",
+ "@walmart/allspark-http-client": "workspace:^",
+ "@walmart/core-services": "workspace:^",
+ "@walmart/core-utils": "workspace:^",
+ "@walmart/functional-components": "workspace:^",
"@walmart/gtp-shared-components": ">=2",
- "@walmart/react-native-env": ">=6",
+ "@walmart/react-native-env": "workspace:^",
"@walmart/react-native-scanner-3.0": ">=0.6.3",
- "@walmart/react-native-shared-navigation": ">=6",
+ "@walmart/react-native-shared-navigation": "workspace:^",
"@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",
+ "@walmart/react-native-wm-network": "workspace:^",
+ "@walmart/react-native-wm-notification": "workspace:^",
+ "@walmart/react-native-wm-telemetry": "workspace:^",
+ "@walmart/redux-store": "workspace:^",
"react": "*",
"react-native": "*",
"react-native-apollo-devtools-client": "*",
--- yarn.lock
@@ -7235,20 +7235,20 @@ __metadata:
"@react-navigation/drawer": 6.x
"@react-navigation/native": 6.x
"@react-navigation/stack": 6.x
- "@walmart/allspark-graphql-client": ">=6"
- "@walmart/allspark-http-client": ">=6"
- "@walmart/core-services": ">=6"
- "@walmart/core-utils": ">=6"
- "@walmart/functional-components": ">=6"
+ "@walmart/allspark-graphql-client": "workspace:^"
+ "@walmart/allspark-http-client": "workspace:^"
+ "@walmart/core-services": "workspace:^"
+ "@walmart/core-utils": "workspace:^"
+ "@walmart/functional-components": "workspace:^"
"@walmart/gtp-shared-components": ">=2"
- "@walmart/react-native-env": ">=6"
+ "@walmart/react-native-env": "workspace:^"
"@walmart/react-native-scanner-3.0": ">=0.6.3"
- "@walmart/react-native-shared-navigation": ">=6"
+ "@walmart/react-native-shared-navigation": "workspace:^"
"@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"
+ "@walmart/react-native-wm-network": "workspace:^"
+ "@walmart/react-native-wm-notification": "workspace:^"
+ "@walmart/react-native-wm-telemetry": "workspace:^"
+ "@walmart/redux-store": "workspace:^"
react: "*"
react-native: "*"
react-native-apollo-devtools-client: "*"
| chore: align mono repo package versions | chore: align mono repo package versions
|
805f97e03ded59e3735a559479dac8a059ed1d9b | --- packages/allspark-foundation/__tests__/FeatureRunner/__snapshots__/navigation.test.tsx.snap
@@ -509,82 +509,6 @@ exports[`renderSideMenu matches snapshot 1`] = `
testID="Divider"
/>
</View>
- <View
- style={
- {
- "marginHorizontal": 8,
- }
- }
- >
- <View
- accessibilityState={
- {
- "busy": undefined,
- "checked": undefined,
- "disabled": undefined,
- "expanded": undefined,
- "selected": undefined,
- }
- }
- accessibilityValue={
- {
- "max": undefined,
- "min": undefined,
- "now": undefined,
- "text": undefined,
- }
- }
- accessible={true}
- collapsable={false}
- focusable={true}
- onClick={[Function]}
- onResponderGrant={[Function]}
- onResponderMove={[Function]}
- onResponderRelease={[Function]}
- onResponderTerminate={[Function]}
- onResponderTerminationRequest={[Function]}
- onStartShouldSetResponder={[Function]}
- style={
- {
- "opacity": 1,
- }
- }
- >
- <ListItem
- UNSAFE_style={
- {
- "paddingLeft": 8,
- }
- }
- title="Impersonation"
- trailing={
- <IconButton
- onPress={[Function]}
- size="large"
- >
- <ArrowRightIcon />
- </IconButton>
- }
- >
- Impersonate a user
- </ListItem>
- </View>
- <View
- accessibilityRole="none"
- style={
- [
- {
- "borderBottomColor": "#e3e4e5",
- "borderBottomWidth": 1,
- "flex": 1,
- "height": 1,
- },
- undefined,
- ]
- }
- testID="Divider"
- />
- </View>
<View
style={
{
--- packages/allspark-foundation/__tests__/FeatureRunner/screens/__snapshots__/SideMenu.test.tsx.snap
@@ -362,82 +362,6 @@ exports[`SideMenu.tsx should render snapshot 1`] = `
testID="Divider"
/>
</View>
- <View
- style={
- {
- "marginHorizontal": 8,
- }
- }
- >
- <View
- accessibilityState={
- {
- "busy": undefined,
- "checked": undefined,
- "disabled": undefined,
- "expanded": undefined,
- "selected": undefined,
- }
- }
- accessibilityValue={
- {
- "max": undefined,
- "min": undefined,
- "now": undefined,
- "text": undefined,
- }
- }
- accessible={true}
- collapsable={false}
- focusable={true}
- onClick={[Function]}
- onResponderGrant={[Function]}
- onResponderMove={[Function]}
- onResponderRelease={[Function]}
- onResponderTerminate={[Function]}
- onResponderTerminationRequest={[Function]}
- onStartShouldSetResponder={[Function]}
- style={
- {
- "opacity": 1,
- }
- }
- >
- <ListItem
- UNSAFE_style={
- {
- "paddingLeft": 8,
- }
- }
- title="Impersonation"
- trailing={
- <IconButton
- onPress={[Function]}
- size="large"
- >
- <ArrowRightIcon />
- </IconButton>
- }
- >
- Impersonate a user
- </ListItem>
- </View>
- <View
- accessibilityRole="none"
- style={
- [
- {
- "borderBottomColor": "#e3e4e5",
- "borderBottomWidth": 1,
- "flex": 1,
- "height": 1,
- },
- undefined,
- ]
- }
- testID="Divider"
- />
- </View>
<View
style={
{
--- packages/allspark-foundation/src/FeatureRunner/navigation.tsx
@@ -39,7 +39,7 @@ import { NavigationScreen } from './screens/Navigation';
import { ChangeLanguageButton } from './components/LanguageButton';
import { FeatureRunnerScreenParams } from './screens/types';
import { ClockModal } from './modals/ClockModal';
-import { DeveloperMenuFeature } from '../DeveloperMenu';
+import { DeveloperMenuFeature, ImpersonationFeature } from '../DeveloperMenu';
export const renderHeader = (props: StackHeaderProps) => (
<Header {...props} bannersEnabled={true} />
@@ -74,6 +74,10 @@ export const createFeatureRunnerNavigation = <F extends AllsparkFeatureModule>(
Navigator: Stack,
});
+ const ImpersonationScreens = ImpersonationFeature.buildAllScreens({
+ Navigator: Stack,
+ });
+
// Register plugins to relevant component containers
plugins.forEach((plugin) => {
// If plugin has a component, add it to the component container shown on home
@@ -182,6 +186,7 @@ export const createFeatureRunnerNavigation = <F extends AllsparkFeatureModule>(
/>
{DeveloperMenuScreens}
+ {ImpersonationScreens}
{FeatureScreens}
--- packages/allspark-foundation/src/FeatureRunner/screens/SideMenu.tsx
@@ -125,11 +125,6 @@ export const SideMenu = (_: DrawerContentComponentProps) => {
description='Test navigation methods'
onPress={() => resetTo('container.navigation')}
/>
- <SideMenuItem
- title='Impersonation'
- description='Impersonate a user'
- onPress={() => resetTo('container.impersonation')}
- />
<SideMenuItem
title='Clock'
description='Simulate clock events'
| fix: navigating to impersonation on the feature runner (#417) | fix: navigating to impersonation on the feature runner (#417)
* fix: navigating to impersonation on the feature runner
* chore: update snapshots |
cb9a169f543c390324d1973f4684f7644e008a03 | --- src/auth/ErrorScreen.tsx
@@ -165,7 +165,11 @@ export const ErrorScreen: FC<any> = (props) => {
? translate('ssoError.selectIssue')
: translate(`ssoError.issues.${err}`);
return (
- <Picker.Item label={errTranslate} value={errTranslate} />
+ <Picker.Item
+ key={index}
+ label={errTranslate}
+ value={errTranslate}
+ />
);
})}
</Picker>
| add key to list | add key to list
|
c23f6a2a313d4b8a5a0a8aaaf82929acc60da2c6 | --- concord-multibranch.yml
@@ -0,0 +1,74 @@
+configuration:
+ runtime: "concord-v2"
+ processTimeout: "PT5H"
+ dependencies:
+ - mvn://com.walmartlabs.concord.plugins:looper-task:latest
+flows:
+ onPush:
+ - checkpoint: " CI build for Push Trigger "
+ - log: " branch ::: ${event.branch}"
+ - task: looper
+ in:
+ username: SVCAssociateExp # AD service account
+ baseUrl: https://looperpro-cigateway.prod.walmart.com
+ apiToken: ${crypto.decryptString("3JEXZXdxlaC5PLPagwbboN3mFN5MYb9TSwv/aSrmXt7FUyh3GeH2yIutQlsZ+GRB")} # create PAT on github by going to Github Settings->Personal access tokens->Generate token
+ jobName: SMDV/associate-exp-hub-mini-app # DX onboarding details page will give you your job name [Note : ACL is mandatory on dx ui for the user to trigger jobs ]
+ processId: ${txId}
+ processType: "concord"
+ call: default
+ suspend: true
+ branch: ${event.branch} # Event branch name
+ out: looperJob
+ - log: "looperJob Details :: ${looperJob.status}, url: ${looperJob.url} log: ${looperJob.log} ${looperJob.message} ${looperJob.scmEventsLog}"
+
+
+ onPr:
+ - checkpoint: " CI build for PR Trigger "
+ - set:
+ prBranch: ${event.payload.pull_request.head.ref}
+ sha: ${event.payload.pull_request.head.sha}
+ baseBranch: ${event.payload.pull_request.base.ref}
+ prNumber: ${event.payload.pull_request.number}
+ - log: "Pr branch: ${prBranch}, base branch: ${baseBranch}, Concord process: ${txId}"
+
+ - task: looper
+ in:
+ username: SVCAssociateExp # AD service account
+ baseUrl: https://looperpro-cigateway.prod.walmart.com # Do not change this
+ apiToken: ${crypto.decryptString("3JEXZXdxlaC5PLPagwbboN3mFN5MYb9TSwv/aSrmXt7FUyh3GeH2yIutQlsZ+GRB")} # create PAT on github by going to Github Settings->Personal access tokens->Generate token
+ jobName: SMDV/associate-exp-hub-mini-app # DX onboarding details page will give you your job name [Note : ACL is mandatory on dx ui for the user to trigger jobs]
+ commitHash: ${sha}
+ processId: ${txId}
+ processType: "concord"
+ prNumber: ${prNumber}
+ suspend: true
+ call: pr
+ out: looperJob
+ - log: "looperJob Details :: ${looperJob.status}, url: ${looperJob.url} log: ${looperJob.log} ${looperJob.message} ${looperJob.scmEventsLog}"
+
+
+triggers:
+ - github:
+ version: 2
+ entryPoint: "onPr"
+ conditions:
+ type: "pull_request"
+ status: "(opened|synchronize)"
+ - github:
+ version: 2
+ useInitiator: true
+ entryPoint: onPush
+ conditions:
+ type: push
+ branch: "^feature-.*$" # Triggers when someone pushes to a feature branch with a name starting with feature-, ex: feature-my-feature
+
+#IMP: Add this if the automatic build is disabled for a branch and builds are manually triggers from UI. Make sure to add ref filter to listen to interested branch creation events only
+ - github:
+ version: 2
+ useInitiator: true
+ entryPoint: onPush # call looper task which triggers build. In this example its onPush which calls default flow
+ conditions:
+ type: create
+ payload:
+ ref_type: branch
+ ref: "^release-.*$" # Triggers when branch is created with a name starting with release-, ex: release-12
\ No newline at end of file
| feat(ui): update concord yml #SMDV-9999 | feat(ui): update concord yml #SMDV-9999
|
d825933a80fd7d442900b13931473cb10a2c7452 | --- src/components/MessageList.tsx
@@ -54,7 +54,7 @@ export const MessageList = ({
onEndReached={onEndReachedHandler}
showsVerticalScrollIndicator={false}
contentContainerStyle={styles.messageList}
- testID='flatList'
+ testID='messageItemListForConversationHistory'
/>
);
};
--- src/containers/Message/index.tsx
@@ -90,7 +90,7 @@ export const Message = ({
return (
<>
<Pressable
- testID='audioTemp'
+ testID='messageBubblePressable'
style={[
styles.messageRow,
isMyMessage ? styles.alignEnd : styles.alignStart,
@@ -98,7 +98,7 @@ export const Message = ({
onLongPress={handleLongPress}
disabled={isLongPressDisabled}>
<View
- testID='audioTemp'
+ testID='messageBubbleAvatarContainer'
style={[
styles.message,
isMyMessage ? styles.alignEnd : styles.alignStart,
@@ -114,7 +114,7 @@ export const Message = ({
</View>
<View
style={[isMyMessage ? styles.alignEnd : styles.alignStart]}
- testID='audioTemp'>
+ testID='messageBubbleContentContainer'>
{!!message?.length && (
<Bubble
outgoing={isMyMessage}
--- src/screens/MessagesScreen.tsx
@@ -70,7 +70,7 @@ const PAGE_SIZE = 100;
const ListEmptyComponent = () => {
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
return (
- <View style={styles.emptyListPlaceHolder} testID='ListEmptyComponentTest'>
+ <View style={styles.emptyListPlaceHolder} testID='MessagesScreenNoMessagesFoundView'>
<Body>{t('channelsScreen.noMessagesFound')}</Body>
</View>
);
--- src/components/MessageList.tsx
@@ -54,7 +54,7 @@ export const MessageList = ({
onEndReached={onEndReachedHandler}
showsVerticalScrollIndicator={false}
contentContainerStyle={styles.messageList}
- testID='flatList'
+ testID='messageItemListForConversationHistory'
/>
);
};
--- src/containers/Message/index.tsx
@@ -90,7 +90,7 @@ export const Message = ({
return (
<>
<Pressable
- testID='audioTemp'
+ testID='messageBubblePressable'
style={[
styles.messageRow,
isMyMessage ? styles.alignEnd : styles.alignStart,
@@ -98,7 +98,7 @@ export const Message = ({
onLongPress={handleLongPress}
disabled={isLongPressDisabled}>
<View
- testID='audioTemp'
+ testID='messageBubbleAvatarContainer'
style={[
styles.message,
isMyMessage ? styles.alignEnd : styles.alignStart,
@@ -114,7 +114,7 @@ export const Message = ({
</View>
<View
style={[isMyMessage ? styles.alignEnd : styles.alignStart]}
- testID='audioTemp'>
+ testID='messageBubbleContentContainer'>
{!!message?.length && (
<Bubble
outgoing={isMyMessage}
--- src/screens/MessagesScreen.tsx
@@ -70,7 +70,7 @@ const PAGE_SIZE = 100;
const ListEmptyComponent = () => {
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
return (
- <View style={styles.emptyListPlaceHolder} testID='ListEmptyComponentTest'>
+ <View style={styles.emptyListPlaceHolder} testID='MessagesScreenNoMessagesFoundView'>
<Body>{t('channelsScreen.noMessagesFound')}</Body>
</View>
);
| fixing testIDs | fixing testIDs
|
8182a960f55115bfff7f8c137ed84862dd777f10 | --- src/presence/sagas.ts
@@ -11,6 +11,7 @@ import {
} from '@walmart/redux-store';
import {getLastOfflineTime, goOnlineForUser} from './service';
import {isNil} from 'lodash';
+import {ClockStatusEnum} from "../utils/ClockStatusEnum";
export function* DoNotDisturbAutoResetSaga() {
const userId: string = yield select(getEncryptedUserId);
@@ -37,7 +38,7 @@ export function* DoNotDisturbAutoResetSaga() {
export function* GoOnlineOnClockOut(action: ClockCheckSuccess) {
const clockStatus = action?.payload?.clockStatus;
- if (clockStatus === '2') {
+ if (clockStatus === ClockStatusEnum.clockedOut.toString()) {
const lastOfflineTime: number = yield call(getLastOfflineTime);
if (!isNil(lastOfflineTime)) {
const userId: string = yield select(getEncryptedUserId);
--- src/presence/sagas.ts
@@ -11,6 +11,7 @@ import {
} from '@walmart/redux-store';
import {getLastOfflineTime, goOnlineForUser} from './service';
import {isNil} from 'lodash';
+import {ClockStatusEnum} from "../utils/ClockStatusEnum";
export function* DoNotDisturbAutoResetSaga() {
const userId: string = yield select(getEncryptedUserId);
@@ -37,7 +38,7 @@ export function* DoNotDisturbAutoResetSaga() {
export function* GoOnlineOnClockOut(action: ClockCheckSuccess) {
const clockStatus = action?.payload?.clockStatus;
- if (clockStatus === '2') {
+ if (clockStatus === ClockStatusEnum.clockedOut.toString()) {
const lastOfflineTime: number = yield call(getLastOfflineTime);
if (!isNil(lastOfflineTime)) {
const userId: string = yield select(getEncryptedUserId);
| use clock status enum | use clock status enum
|
1abac27a1368d4dc47de8e1513ca8926033eb144 | --- package-lock.json
@@ -3236,6 +3236,11 @@
"@jridgewell/sourcemap-codec": "^1.4.10"
}
},
+ "@livingdesign/tokens": {
+ "version": "0.41.0",
+ "resolved": "https://npme.walmart.com/@livingdesign/tokens/-/tokens-0.41.0.tgz",
+ "integrity": "sha512-lUfen6iHPD28xJTew6Hc/N8LsG8Bwww2w7OG6Ug3rhDMncFqrRXcKMD5qws5xWgyhdNqmPQPq3mRyrTfMBH8hA=="
+ },
"@microsoft/recognizers-text-data-types-timex-expression": {
"version": "1.3.0",
"resolved": "https://npme.walmart.com/@microsoft/recognizers-text-data-types-timex-expression/-/recognizers-text-data-types-timex-expression-1.3.0.tgz",
@@ -4229,9 +4234,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.5.30",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.30.tgz",
- "integrity": "sha512-SJSJ+GG5yUVMZKgugHITQhgKfNP52RLEDE0P9UrNHUNxv/lTk4h96/d/yEbVgQVd2SU2ftDumdzfI1qy9COO+w==",
+ "version": "0.5.31",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.31.tgz",
+ "integrity": "sha512-8kA6dpJGBktNpk2LZZGG6Xpl3tdh/MGywPqtWVy5+0kyfUAmGgjoSsAbw3eL/FRWpHlzX34sfldJn4oyCIfEgA==",
"requires": {
"moment": "^2.29.0",
"uuid": "^8.3.1"
@@ -4353,12 +4358,11 @@
}
},
"@walmart/gtp-shared-components": {
- "version": "1.2.0",
- "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-1.2.0.tgz",
- "integrity": "sha512-OxDrYdXQeR22V+aTBNqQHRJFyIOlOkp2erG4KS+0lEWWve1EApNHNyPgIbFQbydtWn1rybwFossRsVszkr2XKQ==",
+ "version": "1.8.0",
+ "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-1.8.0.tgz",
+ "integrity": "sha512-mEIlzVmN5Seqa0z6jGhLlKF1zYCQCvZPccXIcYr/b6HGJAgpTT6YnaXYFWLutTMaoMymirmGnuKGmEzWwwXdYA==",
"requires": {
- "@react-native-community/datetimepicker": "^3.0.8",
- "@react-native-community/picker": "^1.6.5",
+ "@livingdesign/tokens": "^0.41.0",
"lodash": "^4.17.15",
"moment": "^2.27.0"
}
@@ -4389,9 +4393,9 @@
"integrity": "sha512-/cEqGwnlQpRipCJpMhP+9ekHx+/vbfEYftcGkLvS0HVpRAA1adwsxf1mDpfmqQRrwMidRVfuJ+rJJr45KxnOTQ=="
},
"@walmart/metrics-mini-app": {
- "version": "0.7.65",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.7.65.tgz",
- "integrity": "sha512-H3/NkNTe7pT095sprrHVGejowWVhgHkBMd+moGrZ3X3fSW8b3InEBhuwxh9nTc0MolB2x4MYPMoyV68S0uZ8IQ==",
+ "version": "0.7.66",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.7.66.tgz",
+ "integrity": "sha512-Uu3IbK8sfkFyfOSuI7G+ERJkkjUNmAK7K7nPA0t43CH0Fh4dlXY8E4sik0Y4mKkj+6RnTlIz1a3g9fdhKNjG+Q==",
"requires": {
"@types/base-64": "^1.0.0",
"apisauce": "1.1.2",
@@ -9466,7 +9470,7 @@
"indent-string": {
"version": "3.2.0",
"resolved": "https://npme.walmart.com/indent-string/-/indent-string-3.2.0.tgz",
- "integrity": "sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==",
+ "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=",
"dev": true
},
"inflight": {
--- package.json
@@ -71,7 +71,7 @@
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/allspark-health-survey-mini-app": "0.0.44",
- "@walmart/allspark-home-mini-app": "0.5.30",
+ "@walmart/allspark-home-mini-app": "0.5.31",
"@walmart/allspark-me-mini-app": "0.31.9",
"@walmart/allspark-neon-core": "0.1.26",
"@walmart/ask-sam-mini-app": "0.41.5",
@@ -81,13 +81,13 @@
"@walmart/feedback-all-spark-miniapp": "0.3.8",
"@walmart/functional-components": "1.0.34",
"@walmart/gta-react-native-calendars": "0.0.15",
- "@walmart/gtp-shared-components": "1.2.0",
+ "@walmart/gtp-shared-components": "1.8.0",
"@walmart/impersonation-mini-app": "1.1.0",
"@walmart/ims-print-services-ui": "0.1.34",
"@walmart/inbox-mini-app": "0.37.0",
"@walmart/iteminfo-mini-app": "4.2.1",
"@walmart/manager-approvals-miniapp": "0.0.60",
- "@walmart/metrics-mini-app": "0.7.65",
+ "@walmart/metrics-mini-app": "0.7.66",
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.121.0",
"@walmart/price-changes-mini-app": "1.2.3",
| bumping metrics and home version | bumping metrics and home version
|
3324ba94630576547783f6eb9a50801e6ebc913b | --- package.json
@@ -91,7 +91,7 @@
"@walmart/avp-shared-library": "0.10.14",
"@walmart/backroom-mini-app": "1.13.3",
"@walmart/calling-mini-app": "0.7.64",
- "@walmart/checkout-mini-app": "4.14.0",
+ "@walmart/checkout-mini-app": "4.15.0",
"@walmart/compass-sdk-rn": "6.2.851",
"@walmart/config-components": "4.10.1",
"@walmart/core-services": "~6.5.2",
--- yarn.lock
@@ -6894,9 +6894,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/checkout-mini-app@npm:4.14.0":
- version: 4.14.0
- resolution: "@walmart/checkout-mini-app@npm:4.14.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcheckout-mini-app%2F-%2F%40walmart%2Fcheckout-mini-app-4.14.0.tgz"
+"@walmart/checkout-mini-app@npm:4.15.0":
+ version: 4.15.0
+ resolution: "@walmart/checkout-mini-app@npm:4.15.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcheckout-mini-app%2F-%2F%40walmart%2Fcheckout-mini-app-4.15.0.tgz"
dependencies:
"@stomp/stompjs": "npm:^7.0.0"
cpc-input: "npm:^1.7.28"
@@ -6935,7 +6935,7 @@ __metadata:
react-native-safe-area-context: "*"
react-redux: ^8.1.3
redux: ^4.0.5
- checksum: 10c0/0a313c469a8e1d534a79be0bd8f5e3b135dcbfe31a7b4ef71f3e4cdf23d435e448c7a65fcd779b50671e694e605854ca63ccd177c2569e7ab8262c5cf566f268
+ checksum: 10c0/19a0867dffb604b78a11acf2bfedd9e3c073ef6036667f101a99296e1a2f602715601a4bacf2574f2015b508c1bcbcd06d0724393347376a9a5be3c2df6a9837
languageName: node
linkType: hard
@@ -7604,7 +7604,7 @@ __metadata:
"@walmart/avp-shared-library": "npm:0.10.14"
"@walmart/backroom-mini-app": "npm:1.13.3"
"@walmart/calling-mini-app": "npm:0.7.64"
- "@walmart/checkout-mini-app": "npm:4.14.0"
+ "@walmart/checkout-mini-app": "npm:4.15.0"
"@walmart/compass-sdk-rn": "npm:6.2.851"
"@walmart/config-components": "npm:4.10.1"
"@walmart/core-services": "npm:~6.5.2"
| fix(checkout): add clockInflag to all screens in checkout (#4571) | fix(checkout): add clockInflag to all screens in checkout (#4571)
Co-authored-by: g0s00t9 <g0s00t9@homeoffice.wal-mart.com> |
c6ec4358ce3630fccf35eae0ec3e7e67fefc4426 | --- package.json
@@ -14,7 +14,7 @@
"test": "TZ=UTC jest",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint ./src ./__tests__ --ext .js,.jsx,.ts,.tsx --fix",
- "build": "npm config fix && rm -rf ./dist && tsc && npm run",
+ "build": "npm config fix && rm -rf ./dist && tsc",
"env:dev": "cp ./container/env.dev.ts ./container/env.ts",
"env:teflon": "cp ./container/env.teflon.ts ./container/env.ts",
"env:beta": "cp ./container/env.beta.ts ./container/env.ts",
| fix script | fix script
|
73b6e606fc8fd878512a37920027aec6e828b791 | --- android/app/build.gradle
@@ -182,8 +182,8 @@ dependencies {
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
// implementation 'com.google.firebase:firebase-messaging:21.0.1'
- implementation "com.google.dagger:hilt-android:2.44"
- kapt "com.google.dagger:hilt-compiler:2.44"
+ implementation "com.google.dagger:hilt-android:2.46.1"
+ kapt "com.google.dagger:hilt-compiler:2.46.1"
implementation 'com.walmart.ssmp:platform-core:1.0.5'
implementation "com.google.android.play:feature-delivery:2.0.1"
@@ -228,6 +228,9 @@ repositories {
maven {
url "https://repository.walmart.com/content/repositories/labs_releases/"
}
+ maven {
+ url "https://oss.sonatype.org/content/repositories/snapshots/"
+ }
}
android {
--- android/build.gradle
@@ -22,6 +22,7 @@ buildscript {
androidXAnnotation = "1.2.0"
androidXBrowser = "1.3.0"
+ agp_version = '7.3.3'
}
repositories {
google()
@@ -29,9 +30,12 @@ buildscript {
maven {
url "https://repository.walmart.com/content/groups/public"
}
+ maven {
+ url "https://oss.sonatype.org/content/repositories/snapshots/"
+ }
}
dependencies {
- classpath 'com.android.tools.build:gradle'
+ classpath "com.android.tools.build:gradle"
classpath("com.facebook.react:react-native-gradle-plugin")
// NOTE: Do not place your application dependencies here; they belong
@@ -41,8 +45,8 @@ buildscript {
classpath 'com.google.firebase:perf-plugin:1.4.1'
classpath 'com.walmart.ssmp:android-signing:1.0.9'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath "com.google.dagger:hilt-android-gradle-plugin:2.38.1"
- classpath "io.realm:realm-gradle-plugin:10.12.0"
+ classpath "com.google.dagger:hilt-android-gradle-plugin:2.46.1"
+ classpath "io.realm:realm-gradle-plugin:10.16.0"
}
}
--- ios/AllSpark.xcodeproj/project.pbxproj
@@ -705,6 +705,8 @@
);
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
+ OTHER_CFLAGS = "$(inherited)";
+ OTHER_CPLUSPLUSFLAGS = "$(inherited)";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
};
@@ -759,6 +761,8 @@
"\"$(inherited)\"",
);
MTL_ENABLE_DEBUG_INFO = NO;
+ OTHER_CFLAGS = "$(inherited)";
+ OTHER_CPLUSPLUSFLAGS = "$(inherited)";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
| merge fixes | merge fixes
|
75c9c7df96929cd61cb99db23a4cb87e014b82ad | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Hub/SiteHubDashboard.tsx
@@ -16,7 +16,10 @@ import {
} from '../../Store/Common/constant';
import { Body } from '@walmart/gtp-shared-components';
import { LayoutConfig } from '@walmart/allspark-utils';
-import { ManagerExperienceSelectors } from '../../Store/Redux/selectors';
+import {
+ ManagerExperienceSelectors,
+ hubTeamSwitcherEnabled,
+} from '../../Store/Redux/selectors';
import {
useFocusEffect,
useNavigation,
| feat(ui): initial commit with all changes related to container, UI, context etc | feat(ui): initial commit with all changes related to container, UI, context etc
|
549331d9e564aeb74a3c63cf291cf1be2e91da9f | --- packages/allspark-foundation/src/Core/docs/VersionCompatability.md
@@ -21,7 +21,7 @@ ___
| 23 | 6.1.4 | 6.1.4 | 6.1.4 | 6.1.4
| 24 | 6.15.X | 6.24.X | 6.24.X | 6.24.0
| 25 | 6.18.X | 6.25.X | 6.25.X | 6.25.0
-| 26 | 6.20.X | 6.26.X | 6.26.X | 6.26.X
+| 26 | 6.21.X | 6.26.X | 6.26.X | 6.26.X
### Me@Walmart (Deprecated)
| chore: updating version compatability for drop 26 | chore: updating version compatability for drop 26
|
2d0a5af816dcb09f34c71061f58134eb6513e8f9 | --- docs/docs/hub framework/hub-widget.md
@@ -93,7 +93,7 @@ By using these props, you can customize the appearance and behavior of your `Hub
The following code snippet demonstrates how to create a default HubWidget instance, specifically an actionable widget named `TimeAndAttendanceWidget`
```jsx
-import {HubWidget} from '@walmart/allspark-foundation-hub';
+import {HubWidget} from '@walmart/allspark-foundation-hub/HubFeature/Store';
const widgetContent = ()=>{
return (
@@ -206,7 +206,7 @@ Let's extend the code example above to show how to register a widget in code.
```jsx
import { TEAM_HUB_NAMESPACE } from '@walmart/me-at-walmart-common';
-import { HubWidget } from '@walmart/allspark-foundation-hub';
+import {HubWidget} from '@walmart/allspark-foundation-hub/HubFeature/Store';
const TimeAndAttendanceWidgetId = 'GTATeamName.TimeAndAttendanceWidget';
| Update the docs | Update the docs
|
e023c737fac360c6aee9ee93a6a162428b946425 | --- package-lock.json
@@ -64,7 +64,7 @@
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
"@walmart/metrics-mini-app": "0.15.14",
- "@walmart/mod-flex-mini-app": "1.13.4",
+ "@walmart/mod-flex-mini-app": "1.13.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.10.15",
@@ -8757,9 +8757,9 @@
"license": "MIT"
},
"node_modules/@walmart/mod-flex-mini-app": {
- "version": "1.13.4",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.4.tgz",
- "integrity": "sha512-/qnFH3Ens3mR/vLMU+FuYwTB5/s2N6aJHUUWIyoIMLmNKIZAQHJXRrM8ny6wQniRVHbTweExeChWn62tQmTV4g==",
+ "version": "1.13.5",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.5.tgz",
+ "integrity": "sha512-Y+H7FKepHaRrfrkNOhX8KQ48TVaKUs4/+T6KnOdoZaoz7dxp0A9G0vMLTctVrQaaJGqwDD0axUNLUo8fxJnHxg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.19.0",
@@ -8773,8 +8773,8 @@
"@walmart/gtp-shared-components": "^2.1.3",
"@walmart/ims-print-services-ui": "^2.7.1",
"@walmart/react-native-env": "^0.2.0",
- "@walmart/react-native-logger": "^1.31.0-rc.0",
- "@walmart/react-native-scanner-3.0": "^0.1.30-rc.1",
+ "@walmart/react-native-logger": "^1.34.8",
+ "@walmart/react-native-scanner-3.0": "^0.4.2",
"@walmart/react-native-shared-navigation": "^1.0.2",
"@walmart/react-native-sumo-sdk": "^2.5.0",
"@walmart/redux-store": "^3.1.3",
@@ -8793,7 +8793,7 @@
"react-native-haptic-feedback": "^1.14.0",
"react-native-image-pan-zoom": "^2.1.12",
"react-native-pdf": "^6.6.2",
- "react-native-reanimated": "^2.14.4",
+ "react-native-reanimated": "^3.5.1",
"react-native-safe-area-context": "^3.1.3",
"react-native-screens": "^2.10.1",
"react-native-sound-player": "^0.10.9",
@@ -34412,9 +34412,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.13.4",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.4.tgz",
- "integrity": "sha512-/qnFH3Ens3mR/vLMU+FuYwTB5/s2N6aJHUUWIyoIMLmNKIZAQHJXRrM8ny6wQniRVHbTweExeChWn62tQmTV4g=="
+ "version": "1.13.5",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.5.tgz",
+ "integrity": "sha512-Y+H7FKepHaRrfrkNOhX8KQ48TVaKUs4/+T6KnOdoZaoz7dxp0A9G0vMLTctVrQaaJGqwDD0axUNLUo8fxJnHxg=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
--- package.json
@@ -105,7 +105,7 @@
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
"@walmart/metrics-mini-app": "0.15.14",
- "@walmart/mod-flex-mini-app": "1.13.4",
+ "@walmart/mod-flex-mini-app": "1.13.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.10.15",
| Update modflex version to v1.13.5 | Update modflex version to v1.13.5
|
aa79a485b66fcdd108cba182398e7652d11ec3bc | --- __tests__/screens/ViewMessageDetailsScreen/ViewMessageDetailsScreen.test.tsx
@@ -1,4 +1,3 @@
-import React from 'react';
import {render, fireEvent} from '@testing-library/react-native';
import {ViewMessageDetailsScreen} from '../../../src/modals/ViewMessageDetailsScreen';
@@ -124,7 +123,7 @@ describe('ViewMessageDetailsScreen', () => {
it('filters participants for team messages', () => {
render(<ViewMessageDetailsScreen modal={{closeModal, getParam}} />);
- expect(mockUseGetTeamById).toHaveBeenCalledWith('team-id');
+ expect(mockUseGetTeamById).toHaveBeenCalledWith('path');
});
it('renders no associates if participants list is empty', () => {
--- src/hooks/roster.ts
@@ -20,7 +20,7 @@ import {logger} from '../common/logger';
import {UserSelectors} from '@walmart/allspark-foundation/User';
import {SiteSelectors} from '@walmart/allspark-foundation/Site';
import {ApolloError} from '@apollo/client';
-import {TOTAL_STORE_TEAM_ID, payTypes} from '../common/constants';
+import {isTotalStoreTeam, payTypes} from '../common/constants';
export const useDailyRoster = (shouldSkipQuery: boolean = false) => {
const [error, setError] = useState<any>(undefined);
@@ -73,7 +73,7 @@ export const useGetTeamById = (teamId: string) => {
);
const isSiteDC: boolean = useSelector(SiteSelectors.getWorkingSiteIsDC);
const envConfig = useEnvironment();
- const isTeamIdTotal = teamId === TOTAL_STORE_TEAM_ID;
+ const isTeamIdTotal = isTotalStoreTeam(teamId);
return useGetTeamByIdQuery({
variables: {
@@ -82,7 +82,7 @@ export const useGetTeamById = (teamId: string) => {
teamId,
countryCode: countryCode!,
},
- skip: !storeNbr || !countryCode || isSiteDC || isTeamIdTotal,
+ skip: !storeNbr || !countryCode || !teamId || isSiteDC || isTeamIdTotal,
context: getGraphQLConfig(envConfig),
errorPolicy: 'all',
onError(error: ApolloError) {
--- src/modals/MessagesScreen.tsx
@@ -226,13 +226,16 @@ export const MessagesScreen = ({
const unsubscribeMessages = useRef<() => void>();
const unsubscribeChannelDoc = useRef<() => void>();
const channelExistsRef = useRef<boolean>();
- const primaryTeamData = useGetTeamById(viewerTeamId);
+ const isTeamMessage = channelPath?.includes(channelTypes.TEAM);
+ // Extract team ID from channel path for team messages
+ const channelTeamId = isTeamMessage ? channelPath.split('/').pop() || '' : '';
+
+ const primaryTeamData = useGetTeamById(channelTeamId);
const isPrimaryTeamPartialError = !!(
primaryTeamData?.data && primaryTeamData.error
);
const teamParticipantList = primaryTeamData.data?.getTeamById?.members;
const allAssociates = (rosterData?.getDailyRoster || []) as Associate[];
- const isTeamMessage = channelPath?.includes(channelTypes.TEAM);
const decryptParticipantsList = channelData?.participants.map((p: any) =>
decryptUserId(p ?? '')
);
--- src/modals/ViewMessageDetailsScreen.tsx
@@ -12,9 +12,7 @@ import {channelTypes} from '../common/constants';
import {renderViewDetailsItem} from '../components/RenderViewMessageDetailsList';
import {
useDailyRoster,
- useGetTeamById,
- useGetViewersPrimaryTeamId,
- useForceCloseOnClockOut,
+ useGetTeamById, useForceCloseOnClockOut
} from '../hooks';
import {decryptUserId, encryptUserId, objectKeySorter} from '../utils';
import {getEncryptedUserId} from '../redux/selectors';
@@ -141,13 +139,14 @@ export const ViewMessageDetailsScreen = ({
});
const {data: rosterData, isPartialError, refetch, error: rosterError} = useDailyRoster();
- const primaryTeam = useGetViewersPrimaryTeamId();
- const primaryTeamData = useGetTeamById(primaryTeam);
+ const isTeamMessage = channelPath?.includes(channelTypes.TEAM);
+ // Extract team ID from channel path for team messages
+ const channelTeamId = isTeamMessage ? channelPath.split('/').pop() || '' : '';
+ const primaryTeamData = useGetTeamById(channelTeamId);
const isPrimaryTeamPartialError = !!(
primaryTeamData?.data && primaryTeamData.error
);
const teamParticipantList = primaryTeamData.data?.getTeamById?.members;
- const isTeamMessage = channelPath?.includes(channelTypes.TEAM);
const allAssociates = (rosterData?.getDailyRoster || []) as Associate[];
const decryptParticipantsList: any = channelData?.participants?.map(
| feat(ui): added additional checks | feat(ui): added additional checks
|
6bc91cde05d52f47e1ee7226964931e67a29f9c8 | --- package.json
@@ -102,8 +102,8 @@
"@walmart/metrics-mini-app": "0.9.28",
"@walmart/mod-flex-mini-app": "1.2.7",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/pay-stub-miniapp": "^0.9.5",
- "@walmart/payrollsolution_miniapp": "^0.130.1",
+ "@walmart/pay-stub-miniapp": "0.9.5",
+ "@walmart/payrollsolution_miniapp": "0.130.1",
"@walmart/price-changes-mini-app": "1.5.6",
"@walmart/profile-feature-app": "0.0.71",
"@walmart/push-to-talk-mini-app": "1.8.15",
| update package.json | update package.json
|
288eb0214551ea50dd51052340638b1f3f187557 | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.0.1-beta.9",
+ "version": "1.0.1-beta.10",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
--- packages/allspark-foundation-hub/src/HubFeature/Store/Images/index.tsx
@@ -0,0 +1 @@
+export * from './images';
--- packages/allspark-foundation-hub/src/HubFeature/Store/index.tsx
@@ -5,3 +5,4 @@ export * from './Common';
export * from './Hooks';
export * from './Redux';
export * from './TeamSelection';
+export * from './Images';
| Update the import statements | Update the import statements
|
ea43b2bd7acbe618e503a9f43253c18a32bcd8e0 | --- packages/allspark-foundation/src/index.ts
@@ -70,6 +70,7 @@ export * from './Services/Telemetry';
export * from './Services/User';
export * from './Services/Versions';
export { useAllsparkServices, useAllsparkService } from './Services';
+export type { AllsparkServices } from './Services';
export { AllsparkTranslationClient } from './Translation';
export type { TranslationClientOptions } from './Translation';
--- packages/me-at-walmart-container/src/services/index.ts
@@ -1,4 +1,4 @@
-import { AllsparkServices } from '@walmart/allspark-foundation/lib/Services';
+import { AllsparkServices } from '@walmart/allspark-foundation';
import { MeAtWalmartAuthService } from './auth';
import { MeAtWalmartConfigService } from './config';
import { MeAtWalmartDeviceService } from './device';
| chore: type fix | chore: type fix
|
9412c1cf6a8affbb9cb33503c724846399b754fd | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/wmconnect-mini-app",
- "version": "3.7.0-alpha.21",
+ "version": "3.7.0-alpha.22",
"main": "dist/index.js",
"files": [
"dist",
| chore(wmconnect): bump version to 3.7.0-alpha.22 | chore(wmconnect): bump version to 3.7.0-alpha.22
|
1cd944e59773bb0eb9feb49a512bb2d93e761fb1 | --- packages/allspark-foundation/src/Components/DynamicComponents.tsx
@@ -87,7 +87,9 @@ export class DynamicComponent<
id,
});
+ // Adding must re-render list and record
this._eventManager.runEvent('listChange', id);
+ this._eventManager.runEvent('recordChange', id);
};
/**
@@ -103,6 +105,7 @@ export class DynamicComponent<
id: id,
});
+ // Record change alone handles re-rendering within list and record
this._eventManager.runEvent('recordChange', id);
};
@@ -244,7 +247,8 @@ export class DynamicComponent<
public remove = (id: ID) => {
if (this._records.get(id)) {
this._records.delete(id);
- this._eventManager.runEvent('listChange', id);
+ // Record change alone handles re-rendering within list and record
+ this._eventManager.runEvent('recordChange', id);
}
};
}
| fix: dynamic component record not re rendered on record removal | fix: dynamic component record not re rendered on record removal
|
754a0ab4359d5441408638bb5c127024ce178883 | --- .yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.53-3638e0f32a.patch
@@ -1,15 +0,0 @@
-diff --git a/android_dynamic_modules/webex_dynamic_module/build.gradle b/android_dynamic_modules/webex_dynamic_module/build.gradle
-index 6969093fecbf1a70f4f94fcf32dddf156ddbcebe..ead8ac4da9795e3c59ec8c212dd7c2f5311b47ea 100644
---- a/android_dynamic_modules/webex_dynamic_module/build.gradle
-+++ b/android_dynamic_modules/webex_dynamic_module/build.gradle
-@@ -74,6 +74,10 @@ android {
- exclude 'lib/x86_64/libc++_shared.so'
- exclude 'lib/x86_64/libjsc.so'
- exclude 'lib/arm64-v8a/libjsc.so'
-+ exclude 'lib/arm64-v8a/liboboe.so'
-+ exclude 'lib/armeabi-v7a/liboboe.so'
-+ exclude 'lib/x86_64/liboboe.so'
-+ exclude 'lib/x86/liboboe.so'
- // pickFirst 'lib/arm64/libomnius-service-jni.so'
- // pickFirst 'lib/x86/libomnius-service-jni.so'
- // pickFirst 'lib/arm64-v8a/libomnius-service-jni.so'
--- package.json
@@ -93,7 +93,7 @@
"@walmart/avp-feature-app": "0.25.32",
"@walmart/avp-shared-library": "0.25.28",
"@walmart/backroom-mini-app": "1.15.9",
- "@walmart/calling-mini-app": "0.7.64",
+ "@walmart/calling-mini-app": "0.8.11",
"@walmart/checkout-mini-app": "4.17.0",
"@walmart/compass-sdk-rn": "6.2.851",
"@walmart/config-components": "4.11.3",
@@ -143,7 +143,7 @@
"@walmart/react-native-shared-navigation": "~6.3.28",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.8.0",
- "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.8.53#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.53-3638e0f32a.patch",
+ "@walmart/react-native-webex-sdk": "0.9.10",
"@walmart/receipt-check-miniapp": "1.32.4",
"@walmart/redux-store": "~6.3.28",
"@walmart/returns-mini-app": "4.17.8",
--- yarn.lock
@@ -7835,9 +7835,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/calling-mini-app@npm:0.7.64":
- version: 0.7.64
- resolution: "@walmart/calling-mini-app@npm:0.7.64::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcalling-mini-app%2F-%2F%40walmart%2Fcalling-mini-app-0.7.64.tgz"
+"@walmart/calling-mini-app@npm:0.8.11":
+ version: 0.8.11
+ resolution: "@walmart/calling-mini-app@npm:0.8.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcalling-mini-app%2F-%2F%40walmart%2Fcalling-mini-app-0.8.11.tgz"
peerDependencies:
"@react-native-community/datetimepicker": ">=5"
"@react-navigation/native": ">=6"
@@ -7882,7 +7882,7 @@ __metadata:
dependenciesMeta:
"@walmart/wmconnect-mini-app":
built: false
- checksum: 10c0/a9b1b7d9370cab9a880399f00998b636b7d8e7dfb80597dc1f5d6d5140c2c3b668bc9f7c80e8c35b496a1c71dfaac674626eb102e75230732c5c6f3f36f8d1a7
+ checksum: 10c0/9c50cfff02821f4dfbaef85758db384cb665814a853afc0cbb94344869d5bc4dc2b869a53f782723d8a8ff81d467eb919ef2b6e5abf51952878a2ffe4cf503f5
languageName: node
linkType: hard
@@ -8636,7 +8636,7 @@ __metadata:
"@walmart/avp-feature-app": "npm:0.25.32"
"@walmart/avp-shared-library": "npm:0.25.28"
"@walmart/backroom-mini-app": "npm:1.15.9"
- "@walmart/calling-mini-app": "npm:0.7.64"
+ "@walmart/calling-mini-app": "npm:0.8.11"
"@walmart/checkout-mini-app": "npm:4.17.0"
"@walmart/compass-sdk-rn": "npm:6.2.851"
"@walmart/config-components": "npm:4.11.3"
@@ -8686,7 +8686,7 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:~6.3.28"
"@walmart/react-native-store-map": "npm:0.3.7"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
- "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.8.53#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.53-3638e0f32a.patch"
+ "@walmart/react-native-webex-sdk": "npm:0.9.10"
"@walmart/receipt-check-miniapp": "npm:1.32.4"
"@walmart/redux-store": "npm:~6.3.28"
"@walmart/returns-mini-app": "npm:4.17.8"
@@ -9225,25 +9225,14 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/react-native-webex-sdk@npm:0.8.53":
- version: 0.8.53
- resolution: "@walmart/react-native-webex-sdk@npm:0.8.53::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-webex-sdk%2F-%2F%40walmart%2Freact-native-webex-sdk-0.8.53.tgz"
- peerDependencies:
- react: "*"
- react-native: "*"
- react-native-logger: "*"
- checksum: 10c0/e8a7f27ba16fd3dc71f21f17fba3db2b52845eb407fd19238fee48687ab3cd4d435a4e9415d5172d6f22e7b00120703fa0c50393e6365e891bdcefe642982bbe
- languageName: node
- linkType: hard
-
-"@walmart/react-native-webex-sdk@patch:@walmart/react-native-webex-sdk@npm%3A0.8.53#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.53-3638e0f32a.patch":
- version: 0.8.53
- resolution: "@walmart/react-native-webex-sdk@patch:@walmart/react-native-webex-sdk@npm%3A0.8.53%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Freact-native-webex-sdk%252F-%252F%2540walmart%252Freact-native-webex-sdk-0.8.53.tgz#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.53-3638e0f32a.patch::version=0.8.53&hash=f42a59"
+"@walmart/react-native-webex-sdk@npm:0.9.10":
+ version: 0.9.10
+ resolution: "@walmart/react-native-webex-sdk@npm:0.9.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-webex-sdk%2F-%2F%40walmart%2Freact-native-webex-sdk-0.9.10.tgz"
peerDependencies:
react: "*"
react-native: "*"
react-native-logger: "*"
- checksum: 10c0/b667310909b77b1f7f1e00206a06a929ffad22c4ff1be96692325b8b80ee7f5aece6183e0d0f883aad92f4b91f2cc5c953147a7c96c5f659d3641239b4f0d38e
+ checksum: 10c0/3ec9d8cf126797fa3a732a327a3c72de4283a342b71e4b9fa14b21a1fa445341b8bdf2e62552af538192f8b00641fe462e2270dd885e3b86bb607284507d96d1
languageName: node
linkType: hard
| fix(calling-mini-app): CONAS-1786 Webex SDK update and bug fixes (#4667) | fix(calling-mini-app): CONAS-1786 Webex SDK update and bug fixes (#4667)
|
6e13c202e1cac15ec0c9279caa6037e0dde603ff | --- packages/allspark-foundation-hub/src/SupplyChain/Hooks/useSupplyChainShifts.tsx
@@ -4,7 +4,6 @@ import { useState } from 'react';
import { PLATFORM_NAME } from '../../Shared';
import { UserSelectors } from '@walmart/allspark-foundation/User';
import { LoggerService } from '@walmart/allspark-foundation/Logger';
-import { mockFilterListData } from '../Modals/EditSavedTeamModal/mockTeamsData';
import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment';
import { DeviceSelectors } from '@walmart/allspark-foundation/Device';
@@ -15,8 +14,7 @@ export type SupplyChainShifts = {
export const useGetSupplyChainShifts = () => {
const [error, setError] = useState<any>(undefined);
- const [allShifts, setAllShifts] =
- useState<SupplyChainShifts[]>(mockFilterListData); // TODO: remove the default once the api issue is resolved
+ const [allShifts, setAllShifts] = useState<SupplyChainShifts[]>();
const logger = LoggerService.getContainerInstance();
const appVersion = useSelector(DeviceSelectors.getAppVersion);
const countryCode: string | undefined = useSelector(
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/mockTeamsData.ts
@@ -779,33 +779,6 @@ export const sortedSections = mockSections
data: section.data.sort((a, b) => customSorter(a, b, 'teamName')),
}));
-export const mockFilterListData = [
- {
- number: 1,
- name: 'A1',
- },
- {
- number: 2,
- name: 'A2',
- },
- {
- number: 3,
- name: 'A3',
- },
- {
- number: 4,
- name: 'B1',
- },
- {
- number: 5,
- name: 'B2',
- },
- {
- number: 6,
- name: 'B6',
- },
-];
-
export const mockResponse = {
data: {
supplyChainTeamsByStore: {
| Removing shift mock data | Removing shift mock data
|
6f611bbc9571f26ea558cd779d73a30c62f383d2 | --- targets/US/ios/AllSpark.xcodeproj/project.pbxproj
@@ -582,8 +582,8 @@
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-DoubleConversion/double-conversion.framework/double-conversion",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-Glog/glog.framework/glog",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL",
- "${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-scanner-3.0/ScanditBarcodeCapture.framework/ScanditBarcodeCapture",
- "${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-scanner-3.0/ScanditCaptureCore.framework/ScanditCaptureCore",
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ScanditBarcodeCapture/ScanditBarcodeCapture.framework/ScanditBarcodeCapture",
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ScanditCaptureCore/ScanditCaptureCore.framework/ScanditCaptureCore",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/WebexSDK/Wxc/mediastores_ios.framework/mediastores_ios",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/WebexSDK/Wxc/UCFBridge.framework/UCFBridge",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/WebexSDK/Wxc/util_ios.framework/util_ios",
--- targets/US/ios/Podfile.lock
@@ -1929,9 +1929,11 @@ PODS:
- React-Core
- react-native-safe-area-context (4.10.8):
- React-Core
- - react-native-scanner-3.0 (0.8.6):
+ - react-native-scanner-3.0 (0.9.1):
- Firebase/Analytics
- React
+ - ScanditBarcodeCapture (= 6.25.5)
+ - ScanditCaptureCore (= 6.25.5)
- SDWebImage (~> 5.0)
- react-native-splash-screen (3.3.0):
- React-Core
@@ -2229,6 +2231,9 @@ PODS:
- React-Core
- RNVectorIcons (9.2.0):
- React-Core
+ - ScanditBarcodeCapture (6.25.5):
+ - ScanditCaptureCore (= 6.25.5)
+ - ScanditCaptureCore (6.25.5)
- SDWebImage (5.17.0):
- SDWebImage/Core (= 5.17.0)
- SDWebImage/Core (5.17.0)
@@ -2432,6 +2437,9 @@ SPEC REPOS:
"git@gecgithub01.walmart.com:ssaeSCTP/CocoaPodSpecs.git":
- StructuredLogAssistantIOS
- SumoSDK
+ "git@gecgithub01.walmart.com:store-systems-associate-tech-platform/cocoapods-specs.git":
+ - ScanditBarcodeCapture
+ - ScanditCaptureCore
https://github.com/CocoaPods/Specs.git:
- abseil
- Apollo
@@ -2845,7 +2853,7 @@ SPEC CHECKSUMS:
react-native-pdf: 103940c90d62adfd259f63cca99c7c0c306b514c
react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe
react-native-safe-area-context: b7daa1a8df36095a032dff095a1ea8963cb48371
- react-native-scanner-3.0: d92bac511e87f9417a18ac8a567fbc75b0d48421
+ react-native-scanner-3.0: 8ccd9982b2d427bf7e840e5b73c245358abe247b
react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457
react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253
react-native-view-shot: 6b7ed61d77d88580fed10954d45fad0eb2d47688
@@ -2905,6 +2913,8 @@ SPEC CHECKSUMS:
RNSoundPlayer: 369105c565b8fe6ea0a43fc882dc81eba444e842
RNSVG: ba3e7232f45e34b7b47e74472386cf4e1a676d0a
RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
+ ScanditBarcodeCapture: 801aafd1750a4bdaa0500d676abff01e7c69b9d3
+ ScanditCaptureCore: 098ee500ee953b9ab3dad193021abcdcd680318b
SDWebImage: 750adf017a315a280c60fde706ab1e552a3ae4e9
SDWebImageAVIFCoder: 8348fef6d0ec69e129c66c9fe4d74fbfbf366112
SDWebImageSVGCoder: 15a300a97ec1c8ac958f009c02220ac0402e936c
--- targets/US/package.json
@@ -131,7 +131,7 @@
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-env": "~6.3.20",
"@walmart/react-native-logger": "1.35.0",
- "@walmart/react-native-scanner-3.0": "0.8.6",
+ "@walmart/react-native-scanner-3.0": "0.9.1",
"@walmart/react-native-shared-navigation": "~6.3.20",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.7.0",
--- yarn.lock
@@ -7038,7 +7038,7 @@ __metadata:
"@walmart/react-native-encrypted-storage": "npm:~1.1.3"
"@walmart/react-native-env": "npm:~6.3.20"
"@walmart/react-native-logger": "npm:1.35.0"
- "@walmart/react-native-scanner-3.0": "npm:0.8.6"
+ "@walmart/react-native-scanner-3.0": "npm:0.9.1"
"@walmart/react-native-shared-navigation": "npm:~6.3.20"
"@walmart/react-native-store-map": "npm:0.3.7"
"@walmart/react-native-sumo-sdk": "npm:2.7.0"
@@ -7617,12 +7617,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/react-native-scanner-3.0@npm:0.8.6":
- version: 0.8.6
- resolution: "@walmart/react-native-scanner-3.0@npm:0.8.6"
+"@walmart/react-native-scanner-3.0@npm:0.9.1":
+ version: 0.9.1
+ resolution: "@walmart/react-native-scanner-3.0@npm:0.9.1"
peerDependencies:
react-native: ">=0.47.1"
- checksum: 10c0/7114af9deef642c15dd0429ebaa85238ce46dade8a087f3ec1a2b51656dc80aca2b2f8146625798639d6276c191c5b2b2a2a2fd27501d3bd94aae07a0c812c1f
+ checksum: 10c0/6568874de053e5e3c3568dce591fdd6b437fed86c1a0dbbc12c77bbc64e2c63029cc6c65b4635626342455a1fc315595bb39afad2e8b32c4b4dc26787d91f6a7
languageName: node
linkType: hard
| Update @walmart/react-native-scanner-3.0 to 0.9.1 | Update @walmart/react-native-scanner-3.0 to 0.9.1
|
722f29b6f8f4b72150e623b4aa2d6e7c025250a1 | --- package-lock.json
@@ -39,7 +39,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "1.1.68",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.18.2",
+ "@walmart/ask-sam-mini-app": "1.18.5",
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/compass-sdk-rn": "5.18.9",
"@walmart/config-components": "4.2.13",
@@ -8423,9 +8423,9 @@
}
},
"node_modules/@walmart/ask-sam-mini-app": {
- "version": "1.18.2",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.18.2.tgz",
- "integrity": "sha512-YNxvjJZcBqsObfnam+174Lh+rnDmB7zK9H1/uay/gvtcEUzEBeFp7eLClTKcA2RbEZD30lR5LrMC66Bmc97z2w==",
+ "version": "1.18.5",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.18.5.tgz",
+ "integrity": "sha512-Pd/kMRqZCoEgkSmeCkmm+IGBJV7RwDbiVeAsnsOSQhxFBnlFW5kba8kBGoURm/OBptbrOlo30GwM3OLdUHiMNQ==",
"license": "NONE",
"dependencies": {
"apisauce": "^1.1.2",
@@ -33013,9 +33013,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "1.18.2",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.18.2.tgz",
- "integrity": "sha512-YNxvjJZcBqsObfnam+174Lh+rnDmB7zK9H1/uay/gvtcEUzEBeFp7eLClTKcA2RbEZD30lR5LrMC66Bmc97z2w==",
+ "version": "1.18.5",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.18.5.tgz",
+ "integrity": "sha512-Pd/kMRqZCoEgkSmeCkmm+IGBJV7RwDbiVeAsnsOSQhxFBnlFW5kba8kBGoURm/OBptbrOlo30GwM3OLdUHiMNQ==",
"requires": {
"apisauce": "^1.1.2",
"axios-cache-adapter": "^2.7.3",
--- package.json
@@ -80,7 +80,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "1.1.68",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.18.2",
+ "@walmart/ask-sam-mini-app": "1.18.5",
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/compass-sdk-rn": "5.18.9",
"@walmart/config-components": "4.2.13",
| Bumping ask sam mini app version for schedule phase 1 | Bumping ask sam mini app version for schedule phase 1
|
61149950c80567d1a7c0c291b8b9f2bdf5ac27f9 | --- package.json
@@ -155,7 +155,7 @@
"react-native-snap-carousel": "^3.9.1",
"react-native-sound-player": "0.10.9",
"react-native-splash-screen": "^3.2.0",
- "react-native-ssmp-sso-allspark": "^1.2.4",
+ "react-native-ssmp-sso-allspark": "1.2.4",
"react-native-svg": "^12.1.0",
"react-native-tab-view": "^3.1.1",
"react-native-table-component": "^1.2.1",
| remove ^ symobal | remove ^ symobal
|
c50a9112db189d547a63dd5d7d9fe63edf9fdb89 | --- targets/US/ios/Podfile.lock
@@ -1014,7 +1014,7 @@ PODS:
- libwebp/sharpyuv (1.3.2)
- libwebp/webp (1.3.2):
- libwebp/sharpyuv
- - live-access-sdk (0.1.26-beta.3-w2):
+ - live-access-sdk (0.1.26-alpha.8):
- CryptoSwift
- React-Core
- nanopb (2.30909.1):
@@ -2859,7 +2859,7 @@ SPEC CHECKSUMS:
Libuv-gRPC: 55e51798e14ef436ad9bc45d12d43b77b49df378
libvmaf: 27f523f1e63c694d14d534cd0fddd2fab0ae8711
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
- live-access-sdk: d7bab205e141581a1fbee33db4bc9a870247fe66
+ live-access-sdk: e73bfe1250b3716a9c45db78e97be542bd0012e4
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
native-rfid-scanner: dbaf6a5b64975e382782c7d45c9f05b015874f36
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
--- targets/US/package.json
@@ -99,7 +99,7 @@
"@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.4",
+ "@walmart/digital-locks-mini-app": "1.1.5",
"@walmart/emergency-mini-app": "1.30.5",
"@walmart/exception-mini-app": "1.8.11",
"@walmart/facilities-management-miniapp": "0.17.0",
@@ -111,7 +111,7 @@
"@walmart/gtp-shared-components": "2.2.6",
"@walmart/ims-print-services-ui": "2.16.4",
"@walmart/inbox-mini-app": "0.97.13",
- "@walmart/invue-react-native-sdk": "0.1.26-beta.3-w2",
+ "@walmart/invue-react-native-sdk": "0.1.26-alpha.8",
"@walmart/iteminfo-mini-app": "8.0.4",
"@walmart/learning-mini-app": "20.0.39",
"@walmart/manager-approvals-miniapp": "0.3.2",
--- yarn.lock
@@ -6708,12 +6708,11 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/digital-locks-mini-app@npm:1.1.4":
- version: 1.1.4
- resolution: "@walmart/digital-locks-mini-app@npm:1.1.4"
+"@walmart/digital-locks-mini-app@npm:1.1.5":
+ version: 1.1.5
+ resolution: "@walmart/digital-locks-mini-app@npm:1.1.5"
peerDependencies:
"@walmart/allspark-foundation": ">=6.0.0"
- "@walmart/invue-react-native-sdk": 0.1.26-beta.3
expo: 50.0.17
expo-image: 1.5.2
expo-secure-store: ~12.8.1
@@ -6725,7 +6724,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/d479e7d29c54ee719536e36bc14342b468a211f2979aef8fddce7ff2618c3ccd87f716f669a3492999eab69e3bc1a60a997849467a6bc6923500fbbcf7b5e18e
+ checksum: 10c0/44ea38244b9966bdb77b3d7e16175d06c5415a827f64140cd72538d13ca39282aa8b8c22f09ad80ff702c54c121257170661aceb289b380a8b302d89be2abedb
languageName: node
linkType: hard
@@ -6937,15 +6936,15 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/invue-react-native-sdk@npm:0.1.26-beta.3-w2":
- version: 0.1.26-beta.3-w2
- resolution: "@walmart/invue-react-native-sdk@npm:0.1.26-beta.3-w2"
+"@walmart/invue-react-native-sdk@npm:0.1.26-alpha.8":
+ version: 0.1.26-alpha.8
+ resolution: "@walmart/invue-react-native-sdk@npm:0.1.26-alpha.8"
dependencies:
base64-js: "npm:^1.5.1"
peerDependencies:
react: "*"
react-native: "*"
- checksum: 10c0/04489978b48288a54cc2f8856ad6e1527154940d5e3a6aae3158da31e2a564282820583800bf20fa338f3d3d73f01a081f2a508ac411485b1cd252b96757fac0
+ checksum: 10c0/d5103d1559c6eb2275741eca613a8168efab9006da406849649171ccc680979f4b7bc313a3afece539d1bdddcb69082643088fb55a8e51550e725791bf0f2669
languageName: node
linkType: hard
@@ -7429,7 +7428,7 @@ __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.4"
+ "@walmart/digital-locks-mini-app": "npm:1.1.5"
"@walmart/emergency-mini-app": "npm:1.30.5"
"@walmart/exception-mini-app": "npm:1.8.11"
"@walmart/facilities-management-miniapp": "npm:0.17.0"
@@ -7441,7 +7440,7 @@ __metadata:
"@walmart/gtp-shared-components": "npm:2.2.6"
"@walmart/ims-print-services-ui": "npm:2.16.4"
"@walmart/inbox-mini-app": "npm:0.97.13"
- "@walmart/invue-react-native-sdk": "npm:0.1.26-beta.3-w2"
+ "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.8"
"@walmart/iteminfo-mini-app": "npm:8.0.4"
"@walmart/learning-mini-app": "npm:20.0.39"
"@walmart/manager-approvals-miniapp": "npm:0.3.2"
| bump digital locks to 1.1.5, invue sdk to 0.1.26-alpha.8 | bump digital locks to 1.1.5, invue sdk to 0.1.26-alpha.8
|
41fdf2d111ce9c017b67c04011283b7b0d5be7d8 | --- packages/me-at-walmart-container/src/http/index.ts
@@ -8,7 +8,7 @@ import {PerformanceInterceptor} from './interceptors/performance';
import {SuccessLoggerInterceptor} from './interceptors/successLogger';
import {UnauthorizedInterceptor} from './interceptors/unauthorized';
import {IMeAtWalmartEnvironment} from '@walmart/me-at-walmart-common';
-import { WorkInterceptor } from './interceptors/work';
+import {WorkInterceptor} from './interceptors/work';
export const MeAtWalmartHttpInterceptors: Interceptor[] = [
AddCorrelationInterceptor,
| fix: run linter DWORK-7538 | fix: run linter DWORK-7538
|
5839403b79a449861e39d2b45f9455755f28378d | --- src/navigation/Navigation.tsx
@@ -406,6 +406,11 @@ const RootNav = () => {
component={Components.DndConfirmationScreen}
options={Properties.DndConfirmationNavProperties}
/>
+ <RootStack.Screen
+ name='PttStoreConfirmation'
+ component={Components.StoreConfirmationScreen}
+ options={Properties.StoreConfirmationNavProperties}
+ />
<RootStack.Screen
name='timeClock'
component={TimeClockScreen}
| Added a missing shared navigation (#388) | Added a missing shared navigation (#388)
* Bumping PTT version
* PTT version bump
* PTT version bump for Service Accounts
* PTT version bump
* PTT version bump
* adding a missing shared navigation screen |
58bbf3f4036b926b75bfa28f5f0a603f66aaa584 | --- src/screens/MessagesScreen.tsx
@@ -14,7 +14,7 @@ import {Body, colors, Spinner} from '@walmart/gtp-shared-components';
import {MessagesHeader, MessageTimeSectionHeader} from '../components';
import {FirebaseMessage, LocalMessage, MessageRequest} from '../types';
import {TextingNavParamsMap} from '../navigation';
-import {createMessageList, decryptUserId} from '../utils';
+import {convertEmojisToUnicode, createMessageList, decryptUserId} from '../utils';
import {ChatInput} from '../containers/ChatInput';
import {Message} from '../containers/Message';
import {useChannelData, useChannelDocument} from '../channels/hooks';
@@ -235,26 +235,8 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
}
};
- //TODO: Move this into the API request itself
- const convertEmojisToUnicode = (inputString?: string) => {
- const regex_emoji_detector = /\p{Extended_Pictographic}/u;
- const testString =
- '***** 1 😁 1 22 33 The input 😀😄😀😄 string wh 😆 ere 😃 emojis will be 11 22 33 😅 *****';
- //83 for each
- //89 if double counted (is is double counted for regular length)
- //console.log("String length of test: " + testString.length);
- //This succefully parses unicode characters
- [...testString].map((unicodeChar) => {
- console.log(
- unicodeChar + ' - isEmoji: ' + regex_emoji_detector.test(unicodeChar),
- );
- return unicodeChar;
- });
- if (isNil(inputString)) return '';
- return inputString;
- };
const sendPushNotification = async (message: MessageRequest) => {
if (!isNil(siteId)) {
@@ -265,8 +247,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
if (message.audio?.uri) {
return '1 Audio Message';
}
-
- return convertEmojisToUnicode(message.message) || '';
+ return message.message || '';
};
const recipients = channelData?.participants
--- src/services/TextingApi.ts
@@ -1,5 +1,5 @@
import {CommonHttpClient} from '@walmart/allspark-http-client';
-import {readFileByURI} from '../utils';
+import {convertEmojisToUnicode, readFileByURI} from '../utils';
import {HTTP_CLIENT_KEY} from './config';
import {logger} from '../logger/Logger';
@@ -165,7 +165,7 @@ export const notifyRecipientsWithPush = async (
{
data: {
title: senderName,
- alert: message,
+ alert: convertEmojisToUnicode(message),
recipients: recipients,
storeNumber: storeNumber,
channelId: channelId,
--- src/utils/messages.ts
@@ -3,6 +3,7 @@ import {FirebaseFirestoreTypes} from '@react-native-firebase/firestore';
import moment, {Moment} from 'moment-timezone';
import {FirebaseMessage, LocalMessage} from '../types';
import {LocalFirebaseChannel} from '../channels/types';
+import {isNil} from 'lodash';
const createReadReceipt = (config: {
message: FirebaseMessage;
@@ -128,3 +129,21 @@ export const createMessageList = (config: {
return messages;
};
+
+const isUnicodeCharEmojiHelper = (unicodeChar: any) => {
+ const regex_emoji_detector = /\p{Extended_Pictographic}/u;
+ return regex_emoji_detector.test(unicodeChar);
+};
+
+export const convertEmojisToUnicode = (inputString?: string) => {
+ if (isNil(inputString)) return '';
+ const convertedEmojiString = [...inputString]
+ .map((unicodeChar) => {
+ if (!isNil(unicodeChar) && isUnicodeCharEmojiHelper(unicodeChar)) {
+ return ':emoji:';
+ }
+ return unicodeChar;
+ })
+ .join('');
+ return convertedEmojiString;
+};
--- src/screens/MessagesScreen.tsx
@@ -14,7 +14,7 @@ import {Body, colors, Spinner} from '@walmart/gtp-shared-components';
import {MessagesHeader, MessageTimeSectionHeader} from '../components';
import {FirebaseMessage, LocalMessage, MessageRequest} from '../types';
import {TextingNavParamsMap} from '../navigation';
-import {createMessageList, decryptUserId} from '../utils';
+import {convertEmojisToUnicode, createMessageList, decryptUserId} from '../utils';
import {ChatInput} from '../containers/ChatInput';
import {Message} from '../containers/Message';
import {useChannelData, useChannelDocument} from '../channels/hooks';
@@ -235,26 +235,8 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
}
};
- //TODO: Move this into the API request itself
- const convertEmojisToUnicode = (inputString?: string) => {
- const regex_emoji_detector = /\p{Extended_Pictographic}/u;
- const testString =
- '***** 1 😁 1 22 33 The input 😀😄😀😄 string wh 😆 ere 😃 emojis will be 11 22 33 😅 *****';
- //83 for each
- //89 if double counted (is is double counted for regular length)
- //console.log("String length of test: " + testString.length);
- //This succefully parses unicode characters
- [...testString].map((unicodeChar) => {
- console.log(
- unicodeChar + ' - isEmoji: ' + regex_emoji_detector.test(unicodeChar),
- );
- return unicodeChar;
- });
- if (isNil(inputString)) return '';
- return inputString;
- };
const sendPushNotification = async (message: MessageRequest) => {
if (!isNil(siteId)) {
@@ -265,8 +247,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
if (message.audio?.uri) {
return '1 Audio Message';
}
-
- return convertEmojisToUnicode(message.message) || '';
+ return message.message || '';
};
const recipients = channelData?.participants
--- src/services/TextingApi.ts
@@ -1,5 +1,5 @@
import {CommonHttpClient} from '@walmart/allspark-http-client';
-import {readFileByURI} from '../utils';
+import {convertEmojisToUnicode, readFileByURI} from '../utils';
import {HTTP_CLIENT_KEY} from './config';
import {logger} from '../logger/Logger';
@@ -165,7 +165,7 @@ export const notifyRecipientsWithPush = async (
{
data: {
title: senderName,
- alert: message,
+ alert: convertEmojisToUnicode(message),
recipients: recipients,
storeNumber: storeNumber,
channelId: channelId,
--- src/utils/messages.ts
@@ -3,6 +3,7 @@ import {FirebaseFirestoreTypes} from '@react-native-firebase/firestore';
import moment, {Moment} from 'moment-timezone';
import {FirebaseMessage, LocalMessage} from '../types';
import {LocalFirebaseChannel} from '../channels/types';
+import {isNil} from 'lodash';
const createReadReceipt = (config: {
message: FirebaseMessage;
@@ -128,3 +129,21 @@ export const createMessageList = (config: {
return messages;
};
+
+const isUnicodeCharEmojiHelper = (unicodeChar: any) => {
+ const regex_emoji_detector = /\p{Extended_Pictographic}/u;
+ return regex_emoji_detector.test(unicodeChar);
+};
+
+export const convertEmojisToUnicode = (inputString?: string) => {
+ if (isNil(inputString)) return '';
+ const convertedEmojiString = [...inputString]
+ .map((unicodeChar) => {
+ if (!isNil(unicodeChar) && isUnicodeCharEmojiHelper(unicodeChar)) {
+ return ':emoji:';
+ }
+ return unicodeChar;
+ })
+ .join('');
+ return convertedEmojiString;
+};
| refactor code, convert any emoji to the string :emoji: | refactor code, convert any emoji to the string :emoji:
|
6c1fcc4bc4c9f89a012ba15e5b2dfa23be538426 | --- package-lock.json
@@ -3124,9 +3124,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.8",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.8.tgz",
- "integrity": "sha512-2KtyYcZFnyYBDbqKA3AhAT+0MYoW+MS+UmVNwWLHrVxRFFWZXXYM7yy/HvhSMmXzwJGd9KiBKF8f0bkKoSoowA=="
+ "version": "0.5.9",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.9.tgz",
+ "integrity": "sha512-05b/el96GlX889Co0W57ScWiwlIJJNwAMSQAchu0LUCQW0+1BaarohXwu78QE/7pYD4GaQmcxhXWYkCK2JQBLw=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
@@ -12319,9 +12319,9 @@
"integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w=="
},
"react-native-ptt-module": {
- "version": "1.2.58",
- "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.2.58.tgz",
- "integrity": "sha512-ChDB8gRxpkzaLRK49fvq3pzemROvf7zTyzPHQ+HEG6CUe75I+ckXSOY909gRvFHWeRllNTCGOeL4Bn/QuIfLRg=="
+ "version": "1.3.5",
+ "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.3.5.tgz",
+ "integrity": "sha512-+EHxbfuZZSvTfmqePsdpOsNbaCzyuGZ+P3OKHhulUyg7MAX4bZfPn90dbg5ViVBfD6JcYaKRQ6YreU3OSItnng=="
},
"react-native-qrcode-svg": {
"version": "6.0.6",
--- package.json
@@ -74,7 +74,7 @@
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/inbox-mini-app": "0.0.94",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.5.8",
+ "@walmart/push-to-talk-mini-app": "0.5.9",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.25.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
@@ -111,7 +111,7 @@
"react-native-pdf": "^6.2.0",
"react-native-permissions": "3.0.0",
"react-native-popup-menu": "^0.15.9",
- "react-native-ptt-module": "1.2.58",
+ "react-native-ptt-module": "1.3.5",
"react-native-qrcode-svg": "^6.0.6",
"react-native-reanimated": "^1.10.2",
"react-native-safe-area-context": "^3.1.3",
| bump ptt version | bump ptt version
|
5f9aa246a7c5af21d560cf5be6c792224e33d20f | --- CODEOWNERS
@@ -10,4 +10,4 @@
# subdirectories
-/packages/allspark-foundation-hub @allspark/push-to-talk
+/packages/allspark-foundation-hub/ @allspark/push-to-talk
| Update CODEOWNERS | Update CODEOWNERS |
8c55a7dda189a09c29de346ffde46f67d5cdaf6f | --- src/containers/UserHeader.tsx
@@ -63,11 +63,7 @@ export const UserHeader = () => {
isOn={presence === 'offline'}
onValueChange={onStatusChange}
/>
- <Text style={styles.switchText}>
- {presence === 'online'
- ? t('userHeader.onlinePresence')
- : t('userHeader.dndPresence')}
- </Text>
+ <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text>
</>
}>
<Body weight='400' size='small'>
--- src/containers/UserHeader.tsx
@@ -63,11 +63,7 @@ export const UserHeader = () => {
isOn={presence === 'offline'}
onValueChange={onStatusChange}
/>
- <Text style={styles.switchText}>
- {presence === 'online'
- ? t('userHeader.onlinePresence')
- : t('userHeader.dndPresence')}
- </Text>
+ <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text>
</>
}>
<Body weight='400' size='small'>
| update DND language to always be same text | update DND language to always be same text
|
ac84ecdb33bc235bd11aad76a5bd95d51f6dd2a3 | --- core/__tests__/navigation/USHallway/AssociateHallwayNav/Tabs/__snapshots__/MyTeamStackNavTest.tsx.snap
@@ -6,7 +6,6 @@ exports[`MyTeamStackNav matches snapshot - attendanceminiapp false 1`] = `
{
"header": [Function],
"headerMode": "float",
- "headerRight": [Function],
"headerShown": false,
}
}
@@ -59,7 +58,6 @@ exports[`MyTeamStackNav matches snapshot 1`] = `
{
"header": [Function],
"headerMode": "float",
- "headerRight": [Function],
"headerShown": false,
}
}
| Unit test update | Unit test update
|
12a2acf75e242817af33368ad2e322e4e73bc5d4 | --- package-lock.json
@@ -3159,9 +3159,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.3.26-rc.3",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.3.26-rc.3.tgz",
- "integrity": "sha512-GU2mmAd2KLVyO9KWh3cZeNB0QHT4BHgy1NJGouhakLtou8OuPOxfQI5FJawpfr3Q4zGKyvSYqCxaYv7af7jARg=="
+ "version": "0.3.29",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.3.29.tgz",
+ "integrity": "sha512-M5vyhjfqYggofHfXdPnrvZecJR8tKQvf53+XAFKhZ9sqU0oBll5D3RzVC6S0cW737Svdk20MedFWvi3AbrSXbQ=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -70,7 +70,7 @@
"@walmart/impersonation-mini-app": "1.0.14",
"@walmart/inbox-mini-app": "0.0.91",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.3.26-rc.3",
+ "@walmart/push-to-talk-mini-app": "0.3.29",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.25.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| PTT version bump (#455) | PTT version bump (#455)
* PTT Version bump
* PTT version bump |
4449d1f36c76d150b1595fcdf9f64f74a93e0642 | --- src/redux/audioPlayThunk.ts
@@ -8,10 +8,14 @@ export const playReceivingPTTMessage = createAsyncThunk(
'texting/PLAY_RECEIVING_PTT',
async (remoteURI: string) => {
const audioRemoteURI = await fetchResource(remoteURI);
- const {sound} = await Audio.Sound.createAsync({uri: audioRemoteURI});
+ const {sound} = await Audio.Sound.createAsync(
+ {uri: audioRemoteURI},
+ {volume: 100, shouldPlay: true},
+ );
try {
await Audio.Sound.createAsync(
require('../media/corevoice_src_main_res_raw_audionotificationsound.wav'),
+ {volume: 80, shouldPlay: true},
).then((recieveTone) => {
recieveTone.sound.playAsync();
});
--- src/screens/PushToTalkScreen.tsx
@@ -140,6 +140,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => {
if (RecordingRef.current) {
await Audio.Sound.createAsync(
require('../media/corevoice_src_main_res_raw_stoptalk.wav'),
+ {volume: 80, shouldPlay: true},
).then((sound) => {
sound.sound.playAsync();
});
@@ -240,6 +241,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => {
await Audio.Sound.createAsync(
require('../media/corevoice_src_main_res_raw_starttalk.wav'),
+ {volume: 80, shouldPlay: true},
).then((sound) => {
sound.sound.playAsync();
});
--- src/redux/audioPlayThunk.ts
@@ -8,10 +8,14 @@ export const playReceivingPTTMessage = createAsyncThunk(
'texting/PLAY_RECEIVING_PTT',
async (remoteURI: string) => {
const audioRemoteURI = await fetchResource(remoteURI);
- const {sound} = await Audio.Sound.createAsync({uri: audioRemoteURI});
+ const {sound} = await Audio.Sound.createAsync(
+ {uri: audioRemoteURI},
+ {volume: 100, shouldPlay: true},
+ );
try {
await Audio.Sound.createAsync(
require('../media/corevoice_src_main_res_raw_audionotificationsound.wav'),
+ {volume: 80, shouldPlay: true},
).then((recieveTone) => {
recieveTone.sound.playAsync();
});
--- src/screens/PushToTalkScreen.tsx
@@ -140,6 +140,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => {
if (RecordingRef.current) {
await Audio.Sound.createAsync(
require('../media/corevoice_src_main_res_raw_stoptalk.wav'),
+ {volume: 80, shouldPlay: true},
).then((sound) => {
sound.sound.playAsync();
});
@@ -240,6 +241,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => {
await Audio.Sound.createAsync(
require('../media/corevoice_src_main_res_raw_starttalk.wav'),
+ {volume: 80, shouldPlay: true},
).then((sound) => {
sound.sound.playAsync();
});
| update the volume | update the volume
|
7e7addecea47533ed133da49b4b36d3de6dc939c | --- __tests__/__mocks__/@walmart/shelfavailability-mini-app.js
@@ -0,0 +1,3 @@
+module.exports = {
+ ShelfAvailabilityMiniApp: 'ShelfAvailabilityMiniApp',
+};
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/indexTest.tsx.snap
@@ -150,6 +150,15 @@ exports[`AssociateHallwayNav matches snapshot 1`] = `
}
}
/>
+ <Screen
+ component="ShelfAvailabilityMiniApp"
+ name="Pinpoint"
+ options={
+ Object {
+ "headerShown": false,
+ }
+ }
+ />
<Screen
component="HealthSurveyMiniApp"
name="HealthSurveyNav"
@@ -355,6 +364,15 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`]
}
}
/>
+ <Screen
+ component="ShelfAvailabilityMiniApp"
+ name="Pinpoint"
+ options={
+ Object {
+ "headerShown": false,
+ }
+ }
+ />
<Screen
component="HealthSurveyMiniApp"
name="HealthSurveyNav"
--- package.json
@@ -64,6 +64,7 @@
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/iteminfo-mini-app": "1.0.1",
+ "@walmart/shelfavailability-mini-app": "0.3.26",
"@walmart/allspark-health-survey-mini-app": "0.0.38",
"@walmart/allspark-home-mini-app": "0.4.0",
"@walmart/allspark-me-mini-app": "0.1.0",
--- src/core/versionsInit.ts
@@ -17,6 +17,7 @@ const miniApps = [
'@walmart/feedback-all-spark-miniapp',
'@walmart/settings-mini-app',
'@walmart/iteminfo-mini-app',
+ '@walmart/shelfavailability-mini-app',
'@walmart/inbox-mini-app',
'@walmart/welcomeme-mini-app',
'react-native-ssmp-sso-allspark',
--- src/navigation/AssociateHallwayNav/index.tsx
@@ -16,6 +16,7 @@ import {ScheduleMiniApp} from '@walmart/schedule-mini-app';
import {HealthSurveyMiniApp} from '@walmart/allspark-health-survey-mini-app';
import SettingsMiniApp from '@walmart/settings-mini-app';
import {ItemInfoMiniApp} from '@walmart/iteminfo-mini-app';
+import {ShelfAvailabilityMiniApp} from '@walmart/shelfavailability-mini-app';
import ImpersonationMiniApp from '@walmart/impersonation-mini-app';
import {Components, Properties} from '@walmart/push-to-talk-mini-app';
import {FeedbackMiniApp} from '@walmart/feedback-all-spark-miniapp';
@@ -189,6 +190,11 @@ const AssociateHallwayNav = () => {
component={ItemInfoMiniApp}
options={{headerShown: false}}
/>
+ <AssociateHallwayStack.Screen
+ name='itemInfo'
+ component={ShelfAvailabilityMiniApp}
+ options={{headerShown: false}}
+ />
<AssociateHallwayStack.Screen
name='HealthSurveyNav'
component={HealthSurveyMiniApp}
--- src/translations/en-US.ts
@@ -10,6 +10,7 @@ export const enUS = {
'@walmart/time-clock-mini-app': 'Time Clock',
'@walmart/settings-mini-app': 'Settings',
'@walmart/iteminfo-mini-app': 'Item information',
+ '@walmart/shelfavailability-mini-app': 'Shelf Availability',
'@walmart/feedback-all-spark-miniapp': 'Feedback',
'@walmart/inbox-mini-app': 'Inbox',
'@walmart/welcomeme-mini-app': 'Welcome Me',
--- src/translations/es-MX.ts
@@ -10,6 +10,7 @@ export const esMX = {
'@walmart/time-clock-mini-app': 'Time Clock',
'@walmart/settings-mini-app': 'Settings',
'@walmart/iteminfo-mini-app': 'Item information',
+ '@walmart/shelfavailability-mini-app': 'Shelf Availability',
'@walmart/feedback-all-spark-miniapp': 'Feedback',
'@walmart/inbox-mini-app': 'Inbox',
'@walmart/welcomeme-mini-app': 'Welcome Me',
@@ -39,6 +40,8 @@ export const esMX = {
whatsNew: 'Novedades en la app',
signOutText: 'Cerrar sesión',
itemInfo: 'Item information',
+ shelfAvailability: "Shelf Availability"
+
},
welcome: {
associateTitle: 'Hola Asociados!',
| ShelfAvailability Integration and navigation setup | ShelfAvailability Integration and navigation setup
|
f5fe316e0141e4c3e350969f79d3b40beadca369 | --- index.js
@@ -1,7 +1,7 @@
/**
* @format
*/
-
+import 'react-native-get-random-values';
import 'intl';
import 'intl/locale-data/jsonp/en';
--- package-lock.json
@@ -1886,9 +1886,9 @@
}
},
"@walmart/config-components": {
- "version": "1.0.3",
- "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-1.0.3.tgz",
- "integrity": "sha512-h6USmd3riwgNhPgLRNX5VBKZVYliiSAux3YVV+NcoQH+JzL50T6/L7q89Y99QFX87X/c+rqAeOq73R/yyYBL7g=="
+ "version": "1.0.4",
+ "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-1.0.4.tgz",
+ "integrity": "sha512-nFtJ5FE4TMEE44pdfx8q+fQRNM0Ql/0w7JCy1aNGnR76FthAw6oRGoYL1/ASKDYBzGfcn01vw3sVbXk4on7bXA=="
},
"@walmart/functional-components": {
"version": "1.0.21",
@@ -1917,9 +1917,9 @@
}
},
"@walmart/react-native-logger": {
- "version": "1.9.0",
- "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.9.0.tgz",
- "integrity": "sha512-lJ7/HAMVsuPsCPiGCiao1me8q1FLyV7r1Ms4F5GpnYMXXVBgK5PIXesWCDjS1pVv5UjBwrsdAWIcCeHvSZHilg=="
+ "version": "1.14.0",
+ "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.14.0.tgz",
+ "integrity": "sha512-hRlOh9WBBiOYf6nEBjNeWp8HphRF/FAptjc8hLYM06+IdWwmad+xjWg07bVHWQjBWzuYz+kUxSF5qEULKpE77A=="
},
"@walmart/react-native-shared-navigation": {
"version": "0.2.0",
@@ -4143,6 +4143,11 @@
"time-stamp": "^1.0.0"
}
},
+ "fast-base64-decode": {
+ "version": "1.0.0",
+ "resolved": "https://npme.walmart.com/fast-base64-decode/-/fast-base64-decode-1.0.0.tgz",
+ "integrity": "sha512-qwaScUgUGBYeDNRnbc/KyllVU88Jk1pRHPStuF/lO7B0/RTRLj7U0lkdTAutlBblY08rwZDff6tNU9cjv6j//Q=="
+ },
"fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://npme.walmart.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
@@ -8807,9 +8812,9 @@
}
},
"react-native-connect-sso-redux": {
- "version": "0.1.1",
- "resolved": "https://npme.walmart.com/react-native-connect-sso-redux/-/react-native-connect-sso-redux-0.1.1.tgz",
- "integrity": "sha512-Gi6qxCw37GMYJavr9Q32CEhsq6T9y1Tzhcwn0mJbnU6xMYqCkhY6c7BVU4ZhFxe+gEix4AMuH45anSXn5Xx7+w=="
+ "version": "0.1.3",
+ "resolved": "https://npme.walmart.com/react-native-connect-sso-redux/-/react-native-connect-sso-redux-0.1.3.tgz",
+ "integrity": "sha512-jHgmoi8c66WxnNCIW21ehubkPvthFDRU1G9EsD+tfObP4mqFQXqjbO0baK61UzReG2ZJGk7zAviA3J5sD4FDOw=="
},
"react-native-device-info": {
"version": "5.6.5",
@@ -8827,6 +8832,14 @@
"prop-types": "^15.7.2"
}
},
+ "react-native-get-random-values": {
+ "version": "1.5.0",
+ "resolved": "https://npme.walmart.com/react-native-get-random-values/-/react-native-get-random-values-1.5.0.tgz",
+ "integrity": "sha512-LK+Wb8dEimJkd/dub7qziDmr9Tw4chhpzVeQ6JDo4czgfG4VXbptRyOMdu8503RiMF6y9pTH6ZUTkrrpprqT7w==",
+ "requires": {
+ "fast-base64-decode": "^1.0.0"
+ }
+ },
"react-native-iphone-x-helper": {
"version": "1.2.1",
"resolved": "https://npme.walmart.com/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.2.1.tgz",
@@ -8987,9 +9000,9 @@
"integrity": "sha512-VjX25hR+zaK5vnHlJP2+1pPl+0KQ+mDrM9w7kJ3RpYhy8wFnB8S3qry/Xvgcy5WJnoOWUHyalFC0Qp0FKTuVAA=="
},
"react-native-wm-voice-text": {
- "version": "0.1.3",
- "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-0.1.3.tgz",
- "integrity": "sha512-3xOAf6Lee5b+OQY1sTZXSvy6+R+PHUYSKNKvgm9pWyxwFYoi6IxTkwn/mTb0kAsg47zqqi5yWaOohDItHAQjRg=="
+ "version": "0.2.0",
+ "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-0.2.0.tgz",
+ "integrity": "sha512-9pFjUNvfwqzzR378H4dmpzjTQe0olkXLKB0o6e5FgEo+AboabY8PZ065G0AH1ZtpCZTjTAc2rMmeFHfjA+Fx7A=="
},
"react-redux": {
"version": "7.2.1",
--- package.json
@@ -38,10 +38,10 @@
"@types/lodash": "^4.14.159",
"@walmart/allspark-home-mini-app": "0.0.7",
"@walmart/ask-sam-mini-app": "^0.5.2",
- "@walmart/config-components": "^1.0.3",
+ "@walmart/config-components": "^1.0.4",
"@walmart/functional-components": "^1.0.21",
"@walmart/gtp-shared-components": "^0.2.1",
- "@walmart/react-native-logger": "^1.9.0",
+ "@walmart/react-native-logger": "^1.14.0",
"@walmart/react-native-shared-navigation": "^0.2.0",
"@walmart/redux-store": "^1.0.3",
"@walmart/ui-components": "^1.0.66",
@@ -52,9 +52,10 @@
"react-i18next": "^11.7.3",
"react-native": "0.63.2",
"react-native-barcode-builder": "^2.0.0",
- "react-native-connect-sso-redux": "^0.1.1",
+ "react-native-connect-sso-redux": "^0.1.3",
"react-native-device-info": "^5.6.5",
"react-native-gesture-handler": "^1.7.0",
+ "react-native-get-random-values": "^1.5.0",
"react-native-modal": "^11.5.6",
"react-native-pdf": "^6.2.0",
"react-native-popup-menu": "^0.15.9",
@@ -72,7 +73,7 @@
"react-native-wm-barcode": "^1.1.6",
"react-native-wm-notification": "^0.1.1",
"react-native-wm-telemetry": "^0.2.0",
- "react-native-wm-voice-text": "^0.1.3",
+ "react-native-wm-voice-text": "^0.2.0",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-devtools-extension": "^2.13.8",
| updating various libs to get this working on android | updating various libs to get this working on android
|
bd950c6bbbb536cdcfe7f91d856e307d98d91a47 | --- 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.
+## [2.10.11](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.10.10...@walmart/core-services-allspark@2.10.11) (2023-05-02)
+
+**Note:** Version bump only for package @walmart/core-services-allspark
+
+
+
+
+
## [2.10.10](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.10.9...@walmart/core-services-allspark@2.10.10) (2023-05-01)
--- packages/core-services-allspark/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "2.10.10",
+ "version": "2.10.11",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
--- packages/core-services-allspark/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "2.10.10",
+ "version": "2.10.11",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/core-services-allspark@2.10.11
|
212bff9c34994427700812fe08177daeae4bc040 | --- packages/allspark-foundation-hub/src/HubFeature/TeamListItem/TeamListItem.tsx
@@ -27,13 +27,14 @@ export const TeamListItem = ({
isSelected,
isPrimaryTeam,
primaryTeamText,
+ subText,
teamName,
teamId,
handlePress,
}: TeamListItemProps) => {
const styles = useMemo(
- () => teamSelectionListItemStyles(!isLastListItem),
- [isLastListItem]
+ () => teamSelectionListItemStyles(!isLastListItem, Boolean(subText)),
+ [isLastListItem, subText]
);
const TeamImage = useAllsparkImage();
const logger = LoggerService.getContainerInstance();
@@ -72,13 +73,14 @@ export const TeamListItem = ({
) : null}
<View
accessible={true}
- accessibilityLabel={`${teamName}`}
+ accessibilityLabel={`${teamName} ${subText || ''}`}
accessibilityRole='header'
style={styles.teamInnerContainer}
>
<Body UNSAFE_style={styles.teamName} testID='teamlist-teamname'>
{teamName}
</Body>
+ {subText && <Body UNSAFE_style={styles.subText}>{subText}</Body>}
</View>
</View>
<View style={styles.iconContainer}>
| Adding subText | Adding subText
|
4d9b5c2e331c9e7a3e8b7f71144cfbbbd8e33439 | --- android/gradle.properties
@@ -47,7 +47,7 @@ systemProp.https.proxyHost=sysproxy.wal-mart.com
systemProp.https.proxyPort=8080
systemProp.https.nonProxyHosts=*.wal-mart.com|*.walmart.com
-org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError
+org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=4096m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true
\ No newline at end of file
--- android/gradle.properties
@@ -47,7 +47,7 @@ systemProp.https.proxyHost=sysproxy.wal-mart.com
systemProp.https.proxyPort=8080
systemProp.https.nonProxyHosts=*.wal-mart.com|*.walmart.com
-org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError
+org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=4096m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true
\ No newline at end of file
| revert a gradle properties line | revert a gradle properties line
|
d686b4bb5c189984e446ec36b6b7594eb94e5e45 | --- packages/allspark-foundation/package.json
@@ -16,6 +16,7 @@
"Environment/",
"Feature/",
"FeatureRunner/",
+ "GlobalElements/",
"GraphQL/",
"HTTP/",
"LocalStorage",
| feat(config): Added GlobalElements under package.json | feat(config): Added GlobalElements under package.json
|
86d9439e65cde6a29014c379bd89b137248cb73f | --- package.json
@@ -75,7 +75,7 @@
"@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch",
"@walmart/allspark-authentication": "~6.4.10",
"@walmart/allspark-cope-key-listener": "0.0.18",
- "@walmart/allspark-foundation": "6.41.0",
+ "@walmart/allspark-foundation": "6.42.0",
"@walmart/allspark-foundation-hub": "1.4.2",
"@walmart/allspark-graphql-client": "~6.3.28",
"@walmart/allspark-http-client": "~6.3.28",
@@ -437,4 +437,4 @@
"jiraPrefix": "JIRA_PROJECT"
}
}
-}
\ No newline at end of file
+}
--- src/app/tabs/my-team.tsx
@@ -28,7 +28,7 @@ const MyTeamContainer = AllsparkComponentContainers.create<MyTeamContainerCompon
export default function MyTeamScreen() {
const [selectedTeam, setSelectedTeam] = useState<string | undefined>();
const {refreshTimestamp, refreshing, startRefresh} = useRefreshing(3500);
- const layout = useLayout(CoreComponentContainers.FOR_YOU_CONTAINER, DEFAULT_LAYOUT);
+ const layout = useLayout(CoreComponentContainers.MY_TEAM_CONTAINER, DEFAULT_LAYOUT);
const widgetProps = useMemo(() => ({
teamId: selectedTeam,
--- src/app/tabs/todays-plan.tsx
@@ -28,7 +28,7 @@ const TodaysPlanContainer = AllsparkComponentContainers.create<TodaysPlanContain
export default function TodaysPlanScreen() {
const [selectedTeam, setSelectedTeam] = useState<string | undefined>();
const {refreshTimestamp, refreshing, startRefresh} = useRefreshing(3500);
- const layout = useLayout(CoreComponentContainers.FOR_YOU_CONTAINER, DEFAULT_LAYOUT);
+ const layout = useLayout(CoreComponentContainers.TODAYS_PLAN_CONTAINER, DEFAULT_LAYOUT);
const widgetProps = useMemo(() => ({
teamId: selectedTeam,
--- src/manifest.ts
@@ -114,7 +114,7 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => {
);
}
- if (__DEV__) {
+ if (process.env.EXPO_PUBLIC_APP_VARIANT === 'dev') {
const {TestFeature1, TestFeature2, TestFeature3, TestFeature4} = require('./features/test.temp');
Features.push(
TestFeature1,
--- yarn.lock
@@ -7086,9 +7086,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation@npm:6.41.0":
- version: 6.41.0
- resolution: "@walmart/allspark-foundation@npm:6.41.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-6.41.0.tgz"
+"@walmart/allspark-foundation@npm:6.42.0":
+ version: 6.42.0
+ resolution: "@walmart/allspark-foundation@npm:6.42.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-6.42.0.tgz"
dependencies:
"@apollo/client": "npm:^3.8.6"
"@graphql-codegen/cli": "npm:^5.0.0"
@@ -7098,7 +7098,7 @@ __metadata:
"@graphql-codegen/typescript-react-apollo": "npm:^4.1.0"
"@reduxjs/toolkit": "npm:^1.9.7"
"@types/node-fetch": "npm:^2.6.9"
- "@walmart/allspark-utils": "npm:^6.8.1"
+ "@walmart/allspark-utils": "npm:^6.9.0"
axios: "npm:~1.6.0"
axios-cache-interceptor: "npm:^1.3.2"
crypto-js: "npm:~4.2.0"
@@ -7165,7 +7165,7 @@ __metadata:
optional: true
bin:
allspark-generate-graphql: ./cli/generate.js
- checksum: 10c0/a976e0d7dfa46cb9a2d132da6171bec778b7cb183da0db64c80cc3f4a6100b7c07bdc3c31309cdcc1ac1de489b9475549fe42294d23ccad0ada42980010da864
+ checksum: 10c0/abdd5106d42c7118961046ab45f710ada435c5dfa9e3a64cf49b55261c4327ec99a2ea447a9121d688bc8fef4a64d0af51302be4c911cf5ab2c49e6e813b51d9
languageName: node
linkType: hard
@@ -8322,7 +8322,7 @@ __metadata:
"@types/react-test-renderer": "npm:^18.0.7"
"@walmart/allspark-authentication": "npm:~6.4.10"
"@walmart/allspark-cope-key-listener": "npm:0.0.18"
- "@walmart/allspark-foundation": "npm:6.41.0"
+ "@walmart/allspark-foundation": "npm:6.42.0"
"@walmart/allspark-foundation-hub": "npm:1.4.2"
"@walmart/allspark-graphql-client": "npm:~6.3.28"
"@walmart/allspark-http-client": "npm:~6.3.28"
| fix: wrong foundation version and incorrect layout id usage | fix: wrong foundation version and incorrect layout id usage
|
d3e19a7711e29aaf2b38bdd04cbcd01580eaf0b8 | --- yarn.lock
@@ -6618,9 +6618,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/money-auth-shared-components@npm:0.1.4":
- version: 0.1.4
- resolution: "@walmart/money-auth-shared-components@npm:0.1.4"
+"@walmart/money-auth-shared-components@npm:0.1.6":
+ version: 0.1.6
+ resolution: "@walmart/money-auth-shared-components@npm:0.1.6"
peerDependencies:
"@react-navigation/native": ^6.0.0
"@react-navigation/stack": ^6.1.0
@@ -6635,7 +6635,7 @@ __metadata:
react-native-wm-telemetry: ^0.3.0
react-redux: ^7.2.1
redux: ^4.0.5
- checksum: 10c0/887fee2965302107adf761b5dfd79fc6c062ebe61b1cbf77cc4141d7ad000ee7ec9c13fbf7ffd2ad87784f0e2d3dc9b88fa9b325c089ef9e4cdacd1ebd064160
+ checksum: 10c0/1f68cc939d42b45bd464b7e967cecfc7ccd432a53fc357110d17d1f0f4ffd6db0866321453329b32b21c417b852d8aea651e99e1d39306c1e2c8eada93e5eb21
languageName: node
linkType: hard
@@ -6686,13 +6686,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/payrollsolution_miniapp@npm:0.140.4":
- version: 0.140.4
- resolution: "@walmart/payrollsolution_miniapp@npm:0.140.4"
+"@walmart/payrollsolution_miniapp@npm:0.141.3":
+ version: 0.141.3
+ resolution: "@walmart/payrollsolution_miniapp@npm:0.141.3"
dependencies:
crypto-js: "npm:^3.3.0"
- expo-sharing: "npm:~11.5.0"
- checksum: 10c0/93883842c634b48729e6dc1763ef4a175606842e8c6bcbfa94d9a287409abef2157ae8c2eb1cc80b634c52f97a0edd03069cbb321e2058c92daaf55e76f1d059
+ checksum: 10c0/07ac2a634bb7cb9df87e965b8bd32c48e32070910b479aae42ad03ba59ba8e3d7d397bffb9c5e3fab6b7a1445d97737e34d4aa6773ad4381b7963669049744a2
languageName: node
linkType: hard
@@ -7760,12 +7759,12 @@ __metadata:
"@walmart/metrics-mini-app": "npm:0.21.2"
"@walmart/mod-flex-mini-app": "npm:1.17.5"
"@walmart/moment-walmart": "npm:1.0.4"
- "@walmart/money-auth-shared-components": "npm:0.1.4"
+ "@walmart/money-auth-shared-components": "npm:0.1.6"
"@walmart/myteam-mini-app": "npm:1.1.7"
"@walmart/native-rfid-scanner": "npm:3.9.9"
"@walmart/onewalmart-miniapp": "npm:1.0.24"
"@walmart/pay-stub-miniapp": "npm:0.15.2"
- "@walmart/payrollsolution_miniapp": "npm:0.140.4"
+ "@walmart/payrollsolution_miniapp": "npm:0.141.3"
"@walmart/price-changes-mini-app": "npm:1.10.10"
"@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch"
"@walmart/react-native-encrypted-storage": "npm:~1.1.3"
| update yarn.lock | update yarn.lock
|
9c77b4051ac9ecccbb245b8e85b403bc9f9c1287 | --- .codepulseai.yml
| Update code pulse ai config | Update code pulse ai config
|
03cfc0b4628e4dc5d1b165c628a39f236aa631c0 | --- ios/Podfile.lock
@@ -154,7 +154,7 @@ PODS:
- RNPermissions
- PromisesObjC (1.2.12)
- Protobuf (3.15.8)
- - PTT (0.6.0-rc.2):
+ - PTT (0.6.0-rc.4):
- BinaryCodable (~> 0.2.1)
- CocoaAsyncSocket (~> 7.6.3)
- Starscream (~> 3.0.2)
@@ -336,8 +336,8 @@ PODS:
- React-Core
- react-native-pdf (6.2.2):
- React-Core
- - react-native-ptt-module (1.2.48):
- - PTT (= 0.6.0-rc.2)
+ - react-native-ptt-module (1.2.52):
+ - PTT (= 0.6.0-rc.4)
- React
- react-native-safe-area-context (3.1.8):
- React-Core
@@ -779,7 +779,7 @@ SPEC CHECKSUMS:
Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef
PromisesObjC: 3113f7f76903778cf4a0586bd1ab89329a0b7b97
Protobuf: adb85cd18a15bd1a777c158af9fd6e612a0e6d69
- PTT: 45944dcc00d7b1a2e5a0107f441175c79dd7f613
+ PTT: 19b101047e2cdbf40df7e5a991ac6cf7d0eb0a71
RCTRequired: f13f25e7b12f925f1f6a6a8c69d929a03c0129fe
RCTTypeSafety: 44982c5c8e43ff4141eb519a8ddc88059acd1f3a
React: e1c65dd41cb9db13b99f24608e47dd595f28ca9a
@@ -796,7 +796,7 @@ SPEC CHECKSUMS:
react-native-logger: 6d1a4098b9b035278c3691760a45be8ce56acd2e
react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f
react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f
- react-native-ptt-module: c88c9bbff721224c2154b58b5ac37617b7da67b2
+ react-native-ptt-module: 1032d409dd3f1859ea09160a966e7c28d550a4a1
react-native-safe-area-context: 01158a92c300895d79dee447e980672dc3fb85a6
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-sumo-sdk: 8a034fe724417d8c9465951630e229edef2f738f
--- package-lock.json
@@ -3124,9 +3124,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.0",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.0.tgz",
- "integrity": "sha512-UmBxzzcWolzEqqZgXMl3gctHHJBRo1Hgpa1c7hHRJStD2mjJk7fYaOPniusUoeCEVtnI0bAQm9EbOxNqa66EBQ=="
+ "version": "0.5.1",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.1.tgz",
+ "integrity": "sha512-a19+F+cIETTVPFYckjZpTtNEBMtpJGFVKOg9mb4qQMv6FqG0VjKgqo4Y6q1SuvZOE/cszb5dCua7z4JCGIntNw=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
@@ -12323,9 +12323,9 @@
"integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w=="
},
"react-native-ptt-module": {
- "version": "1.2.48",
- "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.2.48.tgz",
- "integrity": "sha512-z+Bs0QMcCf5aOy+a2xzfnYuc66QYwPU30OcLHVuNUQ8JfQaSx/MqjRO8FJHKdZ/X6+X2XJqHk+pTjwmddB+7og=="
+ "version": "1.2.52",
+ "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.2.52.tgz",
+ "integrity": "sha512-NrFoKoF9obGN30mZ33jvycm6SqaFh3D2nmQCGAN8nNr4Z1QW8p76RSLRH+D8tyLwtjt6+TTLSHeiKcpR0kuqBQ=="
},
"react-native-qrcode-svg": {
"version": "6.0.6",
--- package.json
@@ -73,7 +73,7 @@
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/inbox-mini-app": "0.0.92",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.5.0",
+ "@walmart/push-to-talk-mini-app": "0.5.1",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.25.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
@@ -109,7 +109,7 @@
"react-native-pdf": "^6.2.0",
"react-native-permissions": "3.0.0",
"react-native-popup-menu": "^0.15.9",
- "react-native-ptt-module": "1.2.48",
+ "react-native-ptt-module": "1.2.52",
"react-native-qrcode-svg": "^6.0.6",
"react-native-reanimated": "^1.10.2",
"react-native-safe-area-context": "^3.1.3",
| PTT Version bump (#543) | PTT Version bump (#543)
Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com> |
c3b35d5b9714eeba954395357173c1b68e06ae9d | --- package-lock.json
@@ -4219,9 +4219,9 @@
}
},
"@walmart/core-services": {
- "version": "1.0.0-alpha.14",
- "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.0.0-alpha.14.tgz",
- "integrity": "sha512-T8kFYm1K4AM25wyGQy/V2WGM9q3dC4/QA82aMhYj4EaacRdAxBhZHTpv+SuCo7VqGW6vD2ZGG+GAsCsAESi5Dg==",
+ "version": "1.0.0-alpha.16",
+ "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.0.0-alpha.16.tgz",
+ "integrity": "sha512-AADSq9U9Is+Y3fDRusT/UrYtGVgSVpCi3jMRKz3bJQ8YfPXm/7OFuxlkd/wILysYpdL8/5TdXvbMqTtJfGNygQ==",
"requires": {
"axios": "^0.26.0",
"lodash": "^4.17.21",
@@ -4262,11 +4262,10 @@
}
},
"@walmart/core-services-allspark": {
- "version": "1.0.0-alpha.15",
- "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.0.0-alpha.15.tgz",
- "integrity": "sha512-MjSYmw1vLSARyAoNo3i7JJip+FPhO6nF8Bx5mPxGfZfs63muJHrXsUKP9i5SSXB/UpOr1GAyxTwbD+BM/mhALA==",
+ "version": "1.0.0-alpha.18",
+ "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.0.0-alpha.18.tgz",
+ "integrity": "sha512-RdouBZ8cn+r0GqKK379b+vQn+i07ViLI6+ZXOIifrK6GeE771H2VyPspwi8iauJN4OJOV+OFoGX0zeSK8esCHA==",
"requires": {
- "@walmart/core-services": "^1.0.0-alpha.14",
"axios": "^0.26.0",
"crypto-js": "^4.1.1",
"jwt-decode": "^3.1.2",
--- package.json
@@ -76,8 +76,8 @@
"@walmart/allspark-neon-core": "0.1.25",
"@walmart/ask-sam-mini-app": "0.40.10",
"@walmart/config-components": "3.0.1",
- "@walmart/core-services": "^1.0.0-alpha.14",
- "@walmart/core-services-allspark": "^1.0.0-alpha.15",
+ "@walmart/core-services": "^1.0.0-alpha.16",
+ "@walmart/core-services-allspark": "^1.0.0-alpha.18",
"@walmart/counts-component-miniapp": "0.0.33",
"@walmart/exception-mini-app": "0.39.10",
"@walmart/feedback-all-spark-miniapp": "0.1.26",
| core services version bump | core services version bump
|
594dcb391c7ba42c76952cb070330e3ac8599673 | --- package-lock.json
@@ -47,7 +47,7 @@
"@walmart/exception-mini-app": "1.2.4",
"@walmart/facilities-management-miniapp": "0.6.7",
"@walmart/feedback-all-spark-miniapp": "0.9.25",
- "@walmart/financial-wellbeing-feature-app": "1.6.0",
+ "@walmart/financial-wellbeing-feature-app": "1.6.3",
"@walmart/functional-components": "~4.0.3",
"@walmart/gta-react-native-calendars": "0.0.16",
"@walmart/gtp-shared-components": "2.0.4",
@@ -5199,9 +5199,9 @@
}
},
"node_modules/@walmart/financial-wellbeing-feature-app": {
- "version": "1.6.0",
- "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.6.0.tgz",
- "integrity": "sha512-g+FkyHDCVmCdeDXXC1nZztGrhI4jsWWQ3KokhzLs+IuydCpG5osEikO+nW0UUAZUWYtnX+RYsRDjlJCij3ytCQ==",
+ "version": "1.6.3",
+ "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.6.3.tgz",
+ "integrity": "sha512-2PGkGe/7YSPFNPogLpibjwZwmwKY7Yk+vwFjQoNNRSr3MJar7ncGTsqLxUtyYyND5/KO0CpAlnSjFAH+mcQmcA==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -25120,9 +25120,9 @@
"integrity": "sha512-xSrJMEScMx3bC5AzGIBn7B1DhTmMPG6Wd3q4IREQjiTv5H37ezd7YWu5CkpHTAmezFOiFbaNvPmeNyIkQl+A+A=="
},
"@walmart/financial-wellbeing-feature-app": {
- "version": "1.6.0",
- "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.6.0.tgz",
- "integrity": "sha512-g+FkyHDCVmCdeDXXC1nZztGrhI4jsWWQ3KokhzLs+IuydCpG5osEikO+nW0UUAZUWYtnX+RYsRDjlJCij3ytCQ=="
+ "version": "1.6.3",
+ "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.6.3.tgz",
+ "integrity": "sha512-2PGkGe/7YSPFNPogLpibjwZwmwKY7Yk+vwFjQoNNRSr3MJar7ncGTsqLxUtyYyND5/KO0CpAlnSjFAH+mcQmcA=="
},
"@walmart/functional-components": {
"version": "4.0.3",
--- package.json
@@ -89,7 +89,7 @@
"@walmart/exception-mini-app": "1.2.4",
"@walmart/facilities-management-miniapp": "0.6.7",
"@walmart/feedback-all-spark-miniapp": "0.9.25",
- "@walmart/financial-wellbeing-feature-app": "1.6.0",
+ "@walmart/financial-wellbeing-feature-app": "1.6.3",
"@walmart/functional-components": "~4.0.3",
"@walmart/gta-react-native-calendars": "0.0.16",
"@walmart/gtp-shared-components": "2.0.4",
| bump financial-wellbeing to match their PR | bump financial-wellbeing to match their PR
|
17ded33100fa2032791b94d8a3a224fbdd7c1fb5 | --- package.json
@@ -126,7 +126,7 @@
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.140.4",
- "@walmart/price-changes-mini-app": "1.10.10",
+ "@walmart/price-changes-mini-app": "1.10.11",
"@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch",
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-env": "6.1.4",
--- yarn.lock
@@ -6696,9 +6696,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/price-changes-mini-app@npm:1.10.10":
- version: 1.10.10
- resolution: "@walmart/price-changes-mini-app@npm:1.10.10"
+"@walmart/price-changes-mini-app@npm:1.10.11":
+ version: 1.10.11
+ resolution: "@walmart/price-changes-mini-app@npm:1.10.11"
peerDependencies:
"@react-navigation/native": ^6.0.0
"@react-navigation/stack": ^6.1.0
@@ -6725,7 +6725,7 @@ __metadata:
redux-saga: ^1.1.3
reduxsauce: ^1.2.0
uuid: ^3.3.2
- checksum: 10c0/b4d1dc746d7dfa1c0d96029a29f9679c36cc849ed117aa774d5d788150abb6037139c4129c197d22fab81345d5e7ed959a427d3b0e8323f474f18845e763001a
+ checksum: 10c0/32d2ca523dfaf314c610bae4087bbf419d9ef8138fa41b11094378610a622dcf650df5d713a5e507826ce5a1522533ba073dfddf2cd76b00abf7245c4eed7385
languageName: node
linkType: hard
@@ -7776,7 +7776,7 @@ __metadata:
"@walmart/onewalmart-miniapp": "npm:1.0.24"
"@walmart/pay-stub-miniapp": "npm:0.15.2"
"@walmart/payrollsolution_miniapp": "npm:0.140.4"
- "@walmart/price-changes-mini-app": "npm:1.10.10"
+ "@walmart/price-changes-mini-app": "npm:1.10.11"
"@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch"
"@walmart/react-native-encrypted-storage": "npm:~1.1.3"
"@walmart/react-native-env": "npm:6.1.4"
| Bump PC version to 1.10.11 | Bump PC version to 1.10.11
|
9040959e9cb8c7d91689336c0564e1e312d9faca | --- package.json
@@ -88,7 +88,7 @@
"@walmart/counts-component-miniapp": "0.1.4",
"@walmart/emergency-mini-app": "1.24.1",
"@walmart/exception-mini-app": "1.2.30",
- "@walmart/facilities-management-miniapp": "0.6.30",
+ "@walmart/facilities-management-miniapp": "0.6.31",
"@walmart/feedback-all-spark-miniapp": "0.9.32",
"@walmart/financial-wellbeing-feature-app": "1.6.3",
"@walmart/functional-components": "~4.0.3",
| Update package.json | Update package.json |
bea164df83ca99e6c1509e7b1d273deff105a8b4 | --- packages/me-at-walmart-container/src/http/index.ts
@@ -11,10 +11,10 @@ import { IMeAtWalmartEnvironment } from '@walmart/me-at-walmart-common';
export const MeAtWalmartHttpInterceptors: Interceptor[] = [
AddCorrelationInterceptor,
- ImpersonationInterceptor,
AddTokenInterceptor,
- ErrorLoggerInterceptor,
+ ImpersonationInterceptor,
HeaderSizeInterceptor,
+ ErrorLoggerInterceptor,
PerformanceInterceptor,
SuccessLoggerInterceptor,
UnauthorizedInterceptor,
--- packages/me-at-walmart-container/src/http/interceptors/addCorrelationId.ts
@@ -18,5 +18,6 @@ export const AddCorrelationInterceptor: Interceptor = {
return request;
},
+ options: { synchronous: true },
},
};
--- packages/me-at-walmart-container/src/http/interceptors/addImpersonation.ts
@@ -5,7 +5,7 @@ import { MeAtWalmartLogger } from '../../services/logger';
export const ImpersonationInterceptor: Interceptor = {
request: {
- fulfilled: async (request) => {
+ fulfilled: (request) => {
try {
const token = AllsparkReduxStore.select(
UserSelectors.getImpersonateeToken
@@ -22,5 +22,6 @@ export const ImpersonationInterceptor: Interceptor = {
return request;
},
+ options: { synchronous: true },
},
};
--- packages/me-at-walmart-container/src/http/interceptors/errorLogger.ts
@@ -81,5 +81,6 @@ export const ErrorLoggerInterceptor: Interceptor = {
return Promise.reject(error);
},
+ options: { synchronous: true },
},
};
--- packages/me-at-walmart-container/src/http/interceptors/performance.ts
@@ -3,7 +3,7 @@ import { MeAtWalmartTelemetry } from '../../services/telemetry';
export const PerformanceInterceptor: Interceptor = {
request: {
- fulfilled: async (request) => {
+ fulfilled: (request) => {
try {
const httpMetric = MeAtWalmartTelemetry.newHttpMetric(
request.url || 'unknown',
@@ -14,14 +14,14 @@ export const PerformanceInterceptor: Interceptor = {
// @ts-ignore - metadata not typed
request.metadata = { httpMetric };
- await httpMetric.start();
+ httpMetric.start();
} finally {
return request;
}
},
},
response: {
- fulfilled: async (response) => {
+ fulfilled: (response) => {
try {
// @ts-ignore - metadata not typed
const { httpMetric } = response.config.metadata;
@@ -29,12 +29,12 @@ export const PerformanceInterceptor: Interceptor = {
httpMetric.setHttpResponseCode(response.status);
httpMetric.setResponseContentType(response.headers['content-type']);
- await httpMetric.stop();
+ httpMetric.stop();
} finally {
return response;
}
},
- rejected: async (error) => {
+ rejected: (error) => {
try {
// @ts-ignore - metadata not typed
const { httpMetric } = error.config.metadata;
@@ -43,11 +43,12 @@ export const PerformanceInterceptor: Interceptor = {
httpMetric.setResponseContentType(
error.response?.headers['content-type']
);
- await httpMetric.stop();
+ httpMetric.stop();
} finally {
// Ensure failed requests throw after interception
return Promise.reject(error);
}
},
+ options: { synchronous: true },
},
};
--- packages/me-at-walmart-container/src/http/interceptors/unauthorized.ts
@@ -13,7 +13,7 @@ const statusList: UnathorizedHttpCode[] = [];
//Sign user out if consecutive 401 errors encountered are more than 3 or value defined in CCM
export const UnauthorizedInterceptor: Interceptor = {
response: {
- fulfilled: async (response) => {
+ fulfilled: (response) => {
statusList.length = 0; //reset http status tracker.
return response;
},
| refactor: add synchronous flag for non async interceptors. update order | refactor: add synchronous flag for non async interceptors. update order
|
0da481aa4a7a6efa05fe2988f4da3b39ad099bb7 | --- package.json
@@ -114,7 +114,7 @@
"@walmart/gta-react-native-calendars": "0.7.0",
"@walmart/gtp-shared-components": "2.2.7",
"@walmart/ims-print-services-ui": "2.23.0",
- "@walmart/inbox-mini-app": "0.103.1",
+ "@walmart/inbox-mini-app": "0.104.1",
"@walmart/invue-react-native-sdk": "0.1.26-alpha.12",
"@walmart/iteminfo-mini-app": "8.7.2",
"@walmart/learning-mini-app": "20.0.87",
--- yarn.lock
@@ -7947,9 +7947,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/inbox-mini-app@npm:0.103.1":
- version: 0.103.1
- resolution: "@walmart/inbox-mini-app@npm:0.103.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.103.1.tgz"
+"@walmart/inbox-mini-app@npm:0.104.1":
+ version: 0.104.1
+ resolution: "@walmart/inbox-mini-app@npm:0.104.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.104.1.tgz"
peerDependencies:
"@walmart/allspark-foundation": "*"
"@walmart/allspark-utils": ">=1.6.4"
@@ -7960,7 +7960,7 @@ __metadata:
"@walmart/onewalmart-miniapp": "*"
"@walmart/schedule-mini-app": "*"
"@walmart/walmart-fiscal-week": "*"
- checksum: 10c0/b9d04bdb3260004e7f3e61224376eaf0d65855a355aa7b7f41127dcdf70960cd6420b21d2f7b6f87b253ee64e7e6b8480312947da5576c28414681a571df9dfa
+ checksum: 10c0/2ce57e85f3a06b8b4983f0cc0eaa1cbdd1c8099d1eb4d442a733de4d2e64daebd8a9c8b7e78063879fe512a808309a19fbfe2c089becfdd63804c2eb2e10e2b5
languageName: node
linkType: hard
@@ -8329,7 +8329,7 @@ __metadata:
"@walmart/gta-react-native-calendars": "npm:0.7.0"
"@walmart/gtp-shared-components": "npm:2.2.7"
"@walmart/ims-print-services-ui": "npm:2.23.0"
- "@walmart/inbox-mini-app": "npm:0.103.1"
+ "@walmart/inbox-mini-app": "npm:0.104.1"
"@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12"
"@walmart/iteminfo-mini-app": "npm:8.7.2"
"@walmart/learning-mini-app": "npm:20.0.87"
| fix(update): updated inbox version SSMP-11021 (#4755) | fix(update): updated inbox version SSMP-11021 (#4755)
Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com>
Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com> |
64459d7c0851f1bf310c5e60d71238bd9d051b1b | --- core/__tests__/termsOfUse/__snapshots__/TermsOfUseTest.tsx.snap
@@ -44,7 +44,7 @@ DC-TDC-01-00-01",
},
{
"data": [
- "You may use the Applications only as provided in these Terms of Use. In order to install and use the Applications, you may be required to have a compatible a GPS-enabled smart phone or tablet device that functions on Apple or Android operating systems (a "Mobile Device"), internet access, and other necessary minimum specifications as required by Walmart. You may be required to obtain software updates fromtime to time as may be necessary for the continued use of the Applications. Individual features offered by the Applications, such as geotracking, are not guaranteed by Walmart to be uninterrupted or error free.",
+ "You may use the Applications only as provided in these Terms of Use. In order to install and use the Applications, you may be required to have a compatible a GPS-enabled smart phone or tablet device that functions on Apple or Android operating systems (a "Mobile Device"), internet access, and other necessary minimum specifications as required by Walmart. You may be required to obtain software updates from time to time as may be necessary for the continued use of the Applications. Individual features offered by the Applications, such as geotracking, are not guaranteed by Walmart to be uninterrupted or error free.",
"It is your responsibility to ensure that you have correctly configured the Mobile Device. You also acknowledge the use of certain features on Mobile Devices may be subject to terms of agreements with their respective mobile network provider ("Mobile Provider"). As a result, users may be charged by the Mobile Provider for access to network connection services for the duration of the connection while accessing the Applications, or any such third party charges as may arise.",
"You accept responsibility for any such charges that arise under this clause. Your Mobile Device may allow you to sign in to some accounts using a fingerprint, face geometry, retina or iris scan, handprint, voiceprint, or other biometric information that has been saved to your Mobile Device.",
"Certain Applications made available by Walmart allow this form of authentication to sign into your account or verify your identity to access certain features on the Application. Walmart does not capture, store, or control the methods of processing this biometric information by your Mobile Device. Please note that any other user of your Mobile Device that has saved his or her biometric information in the same way may be able to access accounts or certain features for which you enable biometric authentication, including your Walmart account(s).",
@@ -52,7 +52,7 @@ DC-TDC-01-00-01",
"For more information on how biometric functionality works for your Mobile Device, please refer to your device manufacturer's support resources.",
"Please note that under certain circumstances, such as a failure to recognize your biometric information or a predefined passage of time between logins using a passcode rather than biometric authentication, biometric authentication may not function as expected and you may be required to log in using your passcode.",
],
- "title": "1. USE OF APPLICATION ",
+ "title": "1. USE OF APPLICATION",
},
{
"data": [
--- core/src/termsOfUse/terms-of-use.ts
@@ -35,9 +35,9 @@ export const TERMS_OF_USE_DATA: SectionListData<
],
},
{
- title: '1. USE OF APPLICATION ',
+ title: '1. USE OF APPLICATION',
data: [
- 'You may use the Applications only as provided in these Terms of Use. In order to install and use the Applications, you may be required to have a compatible a GPS-enabled smart phone or tablet device that functions on Apple or Android operating systems (a "Mobile Device"), internet access, and other necessary minimum specifications as required by Walmart. You may be required to obtain software updates fromtime to time as may be necessary for the continued use of the Applications. Individual features offered by the Applications, such as geotracking, are not guaranteed by Walmart to be uninterrupted or error free.',
+ 'You may use the Applications only as provided in these Terms of Use. In order to install and use the Applications, you may be required to have a compatible a GPS-enabled smart phone or tablet device that functions on Apple or Android operating systems (a "Mobile Device"), internet access, and other necessary minimum specifications as required by Walmart. You may be required to obtain software updates from time to time as may be necessary for the continued use of the Applications. Individual features offered by the Applications, such as geotracking, are not guaranteed by Walmart to be uninterrupted or error free.',
'It is your responsibility to ensure that you have correctly configured the Mobile Device. You also acknowledge the use of certain features on Mobile Devices may be subject to terms of agreements with their respective mobile network provider ("Mobile Provider"). As a result, users may be charged by the Mobile Provider for access to network connection services for the duration of the connection while accessing the Applications, or any such third party charges as may arise.',
'You accept responsibility for any such charges that arise under this clause. Your Mobile Device may allow you to sign in to some accounts using a fingerprint, face geometry, retina or iris scan, handprint, voiceprint, or other biometric information that has been saved to your Mobile Device.',
'Certain Applications made available by Walmart allow this form of authentication to sign into your account or verify your identity to access certain features on the Application. Walmart does not capture, store, or control the methods of processing this biometric information by your Mobile Device. Please note that any other user of your Mobile Device that has saved his or her biometric information in the same way may be able to access accounts or certain features for which you enable biometric authentication, including your Walmart account(s).',
| PR review comments | PR review comments
|
4ece0b52893e3165dca2b6d3a05333aa93056702 | --- docs/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [3.15.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.14.0...v3.15.0) (2025-12-22)
+
+
+### Features
+
+* **ui:** updated shifts count logic ([4089c62](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/4089c62e14113def7d2ac0f13fdcc7d96875cc7c))
+
# [3.14.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.13.0...v3.14.0) (2025-12-20)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "3.14.0",
+ "version": "3.15.0",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 3.15.0 [skip ci] | chore(release): 3.15.0 [skip ci]
# [3.15.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.14.0...v3.15.0) (2025-12-22)
### Features
* **ui:** updated shifts count logic ([4089c62](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/4089c62e14113def7d2ac0f13fdcc7d96875cc7c))
|
2ff68618f1c355fe8dda30b01b07d03167a9a2b7 | --- docs/docs/components/allspark foundation/services/foundation-device.md
@@ -6,4 +6,115 @@ custom_edit_url: null
# Device Service
-Coming soon.
\ No newline at end of file
+The Allspark Device Service is a dynamic container service, meaning it's defined by the container app. It provides a set of APIs which can be used to retrieve information about BYOD, personal, or COPE devices.
+
+## Container Usage
+
+A container should define the Device Service and connect it to the Allspark Ecosystem.
+
+### Define a Device Service
+
+A Device Service must match the `AllsparkDeviceService` interface. You can define it as a class or an object, whichever you prefer.
+
+```typescript
+import { AllsparkDeviceService } from '@walmart/allspark-foundation/Device';
+
+// As a class
+export class MyAppDeviceService implements AllsparkDeviceService {
+ // ... implement methods
+}
+
+// As an object
+export const MyAppDeviceService: AllsparkDeviceService = {
+ // ... implement methods
+};
+```
+
+### Connect a Device Service
+
+A "connected" Device Service means that its methods automatically update redux state and dispatch actions. Also, its methods can be called via redux by dispatching DeviceActions from `@walmart/allspark-foundation/Device`.
+
+A Device Service can be connected to the Allspark Ecosystem in two ways.
+
+#### Using `DeviceServiceCreator`
+
+The `DeviceServiceCreator` method is a factory method that creates a Device Service. It ensures that the service matches the `AllsparkDeviceService` interface and connects the service to the container.
+
+```typescript
+import { DeviceServiceCreator } from '@walmart/allspark-foundation/Device';
+
+const MyAppDeviceService = DeviceServiceCreator(MyAppDeviceService);
+```
+
+#### Using `AllsparkContainer`
+
+If a Device Service is not created using `DeviceServiceCreator`, it will be connected by the container when the container is created.
+
+```typescript
+import { AllsparkContainer } from '@walmart/allspark-foundation';
+
+const MyAppContainer = new AllsparkContainer('my-app', {
+ services: {
+ device: MyAppDeviceService,
+ // ... remaining services
+ }
+});
+```
+
+### Recommended Usage
+
+We recommend using the `DeviceServiceCreator` method to create the Device Service when possible. This ensures the service matches the `AllsparkDeviceService` interface and connects the service to the container.
+
+However, its possible you need access to the "raw" service instance within your container. In this case, you can define the "raw" service then create a "connected" service using `DeviceServiceCreator`.
+
+Now you have options. You can use either type of service depending on your needs.
+
+```typescript
+import { DeviceServiceCreator } from '@walmart/allspark-foundation/Device';
+
+export const MyAppDeviceService = {
+ // ... implement methods
+}
+
+export const MyAppConnectedDeviceService = DeviceServiceCreator(MyAppDeviceService);
+```
+
+## Accessing Device Service
+
+The Device Service should only be directly used by the container. So with that in mind, the container can just directly use the service or connected service it defined in the previous step.
+
+```typescript
+import { MyAppDeviceService, MyAppConnectedDeviceService } from './DeviceService';
+
+// "Raw service". Does not update redux.
+MyAppDeviceService.refreshToken(...);
+
+// "Connected service". Updates redux.
+MyAppConnectedDeviceService.refreshToken(...);
+```
+
+### Library Access
+
+Its possible that you need to access the Device Service from somewhere other than where the container is defined.
+
+In these cases, you can have two options:
+
+#### Global `DeviceService`
+
+You can import the global `DeviceService` directly from `@walmart/allspark-foundation/Device`. This is the "connected" service defined by the current container.
+
+Due to its global nature, this instance is not set until the container is created. Internally it will delay the method call until the service is defined. It should work as expected, but be aware of this behavior.
+
+#### `useContainerService` Hook
+
+The `useContainerService` hook from `@walmart/allspark-foundation/Container` can be used to access any dynamically defined service from the current container.
+
+This type of access is safer and more predictable since it's used within the component context. The service should always be defined by the time the hook is called.
+
+```typescript
+import { useContainerService } from '@walmart/allspark-foundation/Container';
+
+const DeviceService = useContainerService('device');
+```
+
+See [selectors](https://gecgithub01.walmart.com/allspark/allspark/blob/main/packages/allspark-foundation/src/Device/selectors.ts) for more details on device information provided by this service.
\ No newline at end of file
| Device docs. | Device docs.
|
8dd08289bf337974499ecd68476c0419eb099e4b | --- package.json
@@ -97,7 +97,7 @@
"@walmart/react-native-shared-navigation": "6.1.4",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
- "@walmart/roster-mini-app": "2.5.0",
+ "@walmart/roster-mini-app": "2.6.0",
"@walmart/ui-components": "1.15.1",
"@walmart/wmconnect-mini-app": "2.4.0",
"babel-jest": "^29.2.1",
--- src/index.tsx
@@ -9,7 +9,6 @@ import {PresenceProvider} from '@walmart/wmconnect-mini-app';
// TODO: This needs to be reconsidered when we go production
export const initialize = async (debugToken: string) => {
- initi18n();
const rnfbProvider = firebase
.appCheck()
.newReactNativeFirebaseAppCheckProvider();
@@ -31,6 +30,8 @@ export const initialize = async (debugToken: string) => {
});
};
+initi18n();
+
export const TextingMiniApp = () => {
return (
<SafeAreaProvider>
--- yarn.lock
@@ -6276,7 +6276,7 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-sumo-sdk": "npm:2.6.0"
"@walmart/redux-store": "npm:3.7.0"
- "@walmart/roster-mini-app": "npm:2.5.0"
+ "@walmart/roster-mini-app": "npm:2.6.0"
"@walmart/ui-components": "npm:1.15.1"
"@walmart/wmconnect-mini-app": "npm:2.4.0"
babel-jest: "npm:^29.2.1"
@@ -6458,9 +6458,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:2.5.0":
- version: 2.5.0
- resolution: "@walmart/roster-mini-app@npm:2.5.0"
+"@walmart/roster-mini-app@npm:2.6.0":
+ version: 2.6.0
+ resolution: "@walmart/roster-mini-app@npm:2.6.0"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6502,7 +6502,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/6ba75bb6046f2c457efa5e6673a1a58d5ccf9e3988aa3908352770dd897673a5359b00d7b28134c946ff92bb10520074f241f72f39a3515b93fa251261abe004
+ checksum: 10c0/df01c60f610a718db1d255a55bceb3aa6eb0df922801b59f88dfd1cf205964ba9e54190bdf4fbc7f43d59889b0f45efa9ed69fca9b017add856b60f257c82f19
languageName: node
linkType: hard
| feat(ui): Mini app changes for drop 23 SMDV-5921 | feat(ui): Mini app changes for drop 23 SMDV-5921
|
8e96f128c2f01b4a76e850577be74fb9d8489ff9 | --- 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.36.0-alpha.1](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.0...v6.36.0-alpha.1) (2025-09-03)
+
+**Note:** Version bump only for package @walmart/me-at-walmart
+
+
+
+
+
# [6.36.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.35.1-alpha.3...v6.36.0-alpha.0) (2025-09-03)
--- lerna.json
@@ -1,5 +1,5 @@
{
- "version": "6.36.0-alpha.0",
+ "version": "6.36.0-alpha.1",
"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.36.0-alpha.1](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.0...v6.36.0-alpha.1) (2025-09-03)
+
+**Note:** Version bump only for package @walmart/core-services-allspark
+
+
+
+
+
# [6.36.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.35.1-alpha.3...v6.36.0-alpha.0) (2025-09-03)
**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.36.0-alpha.0",
+ "version": "6.36.0-alpha.1",
"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.36.0-alpha.1](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.0...v6.36.0-alpha.1) (2025-09-03)
+
+**Note:** Version bump only for package @walmart/core-widget-registry
+
+
+
+
+
# [6.36.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.35.1-alpha.3...v6.36.0-alpha.0) (2025-09-03)
**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.36.0-alpha.0",
+ "version": "6.36.0-alpha.1",
"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.36.0-alpha.1](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.0...v6.36.0-alpha.1) (2025-09-03)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-common
+
+
+
+
+
# [6.36.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.35.1-alpha.3...v6.36.0-alpha.0) (2025-09-03)
**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.36.0-alpha.0",
+ "version": "6.36.0-alpha.1",
"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.36.0-alpha.1](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.0...v6.36.0-alpha.1) (2025-09-03)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-container
+
+
+
+
+
# [6.36.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.35.1-alpha.3...v6.36.0-alpha.0) (2025-09-03)
--- packages/me-at-walmart-container/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-container",
- "version": "6.36.0-alpha.0",
+ "version": "6.36.0-alpha.1",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
|
7d633d5a33c1da7d456992a34207172552105edd | --- package-lock.json
@@ -74,7 +74,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.14.3",
+ "@walmart/receipt-check-miniapp": "1.14.4",
"@walmart/redux-store": "3.3.1",
"@walmart/returns-mini-app": "1.5.0",
"@walmart/schedule-mini-app": "0.37.0",
@@ -5818,9 +5818,9 @@
}
},
"node_modules/@walmart/receipt-check-miniapp": {
- "version": "1.14.3",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.3.tgz",
- "integrity": "sha512-i/8ImBVHIDpz9TEzdnjxYxZsillDk8jTeV5aJjGhAuyNj4oB0VarJQBZqUzgB4lWzSJe0ej12NJUfJWnJ9NRGA==",
+ "version": "1.14.4",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.4.tgz",
+ "integrity": "sha512-/AwktQ4mOm5uD9c7ZZg+ku29K82AcKbxJOAP7wmyBLwsWT7BaKoWFLKI/MYc8NVDcaLqB0cWG1b05XYN8ct1ng==",
"dependencies": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
@@ -25336,9 +25336,9 @@
"version": "2.5.1"
},
"@walmart/receipt-check-miniapp": {
- "version": "1.14.3",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.3.tgz",
- "integrity": "sha512-i/8ImBVHIDpz9TEzdnjxYxZsillDk8jTeV5aJjGhAuyNj4oB0VarJQBZqUzgB4lWzSJe0ej12NJUfJWnJ9NRGA==",
+ "version": "1.14.4",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.4.tgz",
+ "integrity": "sha512-/AwktQ4mOm5uD9c7ZZg+ku29K82AcKbxJOAP7wmyBLwsWT7BaKoWFLKI/MYc8NVDcaLqB0cWG1b05XYN8ct1ng==",
"requires": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
--- package.json
@@ -116,7 +116,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
- "@walmart/receipt-check-miniapp": "1.14.3",
+ "@walmart/receipt-check-miniapp": "1.14.4",
"@walmart/redux-store": "3.3.1",
"@walmart/returns-mini-app": "1.5.0",
"@walmart/schedule-mini-app": "0.37.0",
| version bump | version bump
|
9e379aec21cdd9d95e6d839ecfde2925b9b3ed77 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart",
- "version": "1.27.0",
+ "version": "1.28.0",
"private": true,
"workspaces": [
"core",
| chore(ui): update allspark version to generate build | chore(ui): update allspark version to generate build
|
16659abb0add6adadcdd3b28c7362634fbd8f71e | --- src/auth/ErrorScreen.tsx
@@ -45,14 +45,9 @@ export const ErrorScreen: FC<any> = (props) => {
const onSave = () => {
setFormDirty(true);
- if (missingFields) {
- WmTelemetry.logEvent(SSO_APP, 'feedback_submitted', {
- composite_app: appJson.displayName,
- });
- }
if (userId && siteId) {
navigation.goBack();
- WmTelemetry.logEvent(SSO_APP, 'feedback_error_received', {
+ WmTelemetry.logEvent(SSO_APP, 'feedback_submitted', {
composite_app: appJson.displayName,
});
InteractionManager.runAfterInteractions(() =>
| telemetry event added | telemetry event added
(cherry picked from commit 644e97baf70e73c69dd1752f7f1096d45185e226)
|
72c479739ac9d51a940096fcf7e659c7e166cd08 | --- src/screens/ChannelsScreen.tsx
@@ -78,11 +78,11 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = (
}
if (!isMessageButtonEnabled) {
- t('channelsScreen.textingDisabled.textingUnavailableDescription');
+ return t('channelsScreen.textingDisabled.textingUnavailableDescription');
}
if (!userIsImpersonatedOnDev) {
- t(
+ return t(
'channelsScreen.textingDisabled.textingUnavailableForImpersonationOnBeta',
);
}
--- src/screens/ChannelsScreen.tsx
@@ -78,11 +78,11 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = (
}
if (!isMessageButtonEnabled) {
- t('channelsScreen.textingDisabled.textingUnavailableDescription');
+ return t('channelsScreen.textingDisabled.textingUnavailableDescription');
}
if (!userIsImpersonatedOnDev) {
- t(
+ return t(
'channelsScreen.textingDisabled.textingUnavailableForImpersonationOnBeta',
);
}
| update user is impersonated on the banner | update user is impersonated on the banner
|
1130cd0e754ce9d3d4076d7ce32c72d1cea05f1c | --- package-lock.json
@@ -38,7 +38,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.3.52",
"@walmart/attendance-mini-app": "0.33.0",
- "@walmart/config-components": "4.0.1",
+ "@walmart/config-components": "4.1.0-rc.0",
"@walmart/core-services": "~1.4.11",
"@walmart/core-services-allspark": "~2.2.2",
"@walmart/core-utils": "~1.3.0",
@@ -4897,9 +4897,9 @@
}
},
"node_modules/@walmart/config-components": {
- "version": "4.0.1",
- "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.0.1.tgz",
- "integrity": "sha512-+lGTMnKtiUvNwI1+ZWBhqpQatJukM/4HDt+YXfON5znTvrioywgV3nOcPD6WuTjLqZCLd2g2tk/4OmYuu1JJyA==",
+ "version": "4.1.0-rc.0",
+ "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.1.0-rc.0.tgz",
+ "integrity": "sha512-mAnd46Xmlwj8DgwRjeD168mhCpqNMv+Mb231DFGRfLlUw+giMArqfFdpeYkkmU/lwHxTcavlR6Ldn+8osQgQuQ==",
"dependencies": {
"reduxsauce": "^1.2.1",
"reselect": "^4.1.5"
@@ -25092,9 +25092,9 @@
}
},
"@walmart/config-components": {
- "version": "4.0.1",
- "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.0.1.tgz",
- "integrity": "sha512-+lGTMnKtiUvNwI1+ZWBhqpQatJukM/4HDt+YXfON5znTvrioywgV3nOcPD6WuTjLqZCLd2g2tk/4OmYuu1JJyA==",
+ "version": "4.1.0-rc.0",
+ "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.1.0-rc.0.tgz",
+ "integrity": "sha512-mAnd46Xmlwj8DgwRjeD168mhCpqNMv+Mb231DFGRfLlUw+giMArqfFdpeYkkmU/lwHxTcavlR6Ldn+8osQgQuQ==",
"requires": {
"reduxsauce": "^1.2.1",
"reselect": "^4.1.5"
--- package.json
@@ -73,6 +73,7 @@
"@react-navigation/stack": "^6.1.0",
"@sharcoux/slider": "^6.1.1",
"@terrylinla/react-native-sketch-canvas": "0.8.0",
+ "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/allspark-graphql-client": "^0.1.0",
"@walmart/allspark-home-mini-app": "0.6.14",
"@walmart/allspark-neon-core": "0.1.31",
@@ -80,7 +81,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.3.52",
"@walmart/attendance-mini-app": "0.33.0",
- "@walmart/config-components": "4.0.1",
+ "@walmart/config-components": "4.1.0-rc.0",
"@walmart/core-services": "~1.4.11",
"@walmart/core-services-allspark": "~2.2.2",
"@walmart/core-utils": "~1.3.0",
@@ -103,7 +104,6 @@
"@walmart/metrics-mini-app": "0.9.38",
"@walmart/mod-flex-mini-app": "1.3.15",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/pay-stub-miniapp": "0.9.21",
"@walmart/payrollsolution_miniapp": "0.130.23",
"@walmart/price-changes-mini-app": "1.6.10",
| SSMP-4393 fix(logs) added extra logs | SSMP-4393 fix(logs) added extra logs
|
4005bda3961a751a7fd677f8b205539087bdec55 | --- package-lock.json
@@ -2652,9 +2652,9 @@
"integrity": "sha512-rk4sWFsmtOw8oyx8SD3KSvawwaK7gRBSEIy2TAwURyGt+3TizssXP1r8nx3zY+R7v2vYYHXZ+k2/GULAT/bcaQ=="
},
"@react-native-community/netinfo": {
- "version": "5.9.7",
- "resolved": "https://npme.walmart.com/@react-native-community/netinfo/-/netinfo-5.9.7.tgz",
- "integrity": "sha512-NAkkT68oF+M9o6El2xeUqZK7magPjG/tAcEbvCbqyhlh3yElKWnI1e1vpbVvFXzTefy67FwYFWOJqBN6U7Mnkg=="
+ "version": "5.9.9",
+ "resolved": "https://npme.walmart.com/@react-native-community/netinfo/-/netinfo-5.9.9.tgz",
+ "integrity": "sha512-Gp0XV4BgabvzkL4Dp6JAsA2l9LcmgBAq3erCLdvRZmEFz7guCWTogQWVfFtl+IbU0uqfwfo9fm2+mQiwdudLCw=="
},
"@react-native-community/picker": {
"version": "1.8.1",
@@ -3509,9 +3509,9 @@
"integrity": "sha512-4VL2h7BKEZNP+QtIaYbQXJ6kpxZdeeCqTA3PvP1L933vlNsilF3y5RO9lCyMsTjWQ+AJ3Ww6gqC/oNDxjTvtGw=="
},
"@walmart/shelfavailability-mini-app": {
- "version": "0.3.58",
- "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.3.58.tgz",
- "integrity": "sha512-2UTs3EHKhVUhqFtU5uwOs3HvglZY1p8cHBb8sJ6jdfFm2udlxv+gTujePf2z6vdwzbEAgBPcw1dfGPnUVdRk0Q==",
+ "version": "0.3.61",
+ "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.3.61.tgz",
+ "integrity": "sha512-c7+fVesztJxa0ad3iX8ELvPQ8LbQadRM1x7Xy9ms6iqdPDEeYK+L+AHVWcQmvKVtuLAQ9+wI9Mg5nGKgL+qa6A==",
"requires": {
"@types/uuid": "^8.3.0",
"@types/xdate": "^0.8.31",
--- package.json
@@ -46,7 +46,7 @@
"@react-native-community/datetimepicker": "^3.0.9",
"@react-native-community/hooks": "^2.6.0",
"@react-native-community/masked-view": "^0.1.10",
- "@react-native-community/netinfo": "^5.9.5",
+ "@react-native-community/netinfo": "5.9.9",
"@react-native-community/picker": "^1.8.1",
"@react-native-firebase/analytics": "^12.1.0",
"@react-native-firebase/app": "^12.1.0",
| Update the package lock for failing builds. | Update the package lock for failing builds.
|
960488fbde866ecf856adbbcfd0b6bbffe80f174 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx
@@ -22,6 +22,11 @@ import { ManagerExperienceCreators } from '../../../Store/Redux/actions';
import { useDispatch } from 'react-redux';
import { useSelector } from 'react-redux';
import { hubHeaderEnabled } from '../../Redux';
+import {
+ LoggerService,
+ useTelemetryService,
+} from '@walmart/allspark-foundation';
+import { useOnboardingContext } from './OnboardingContext';
export const OnboardingScreen = () => {
const { t } = useAllsparkTranslation(FEATURE_ID);
| feat(ui): initial commit with all changes related to container, UI, context etc | feat(ui): initial commit with all changes related to container, UI, context etc
|
39b1942d5eac0f53865e4ed6487dfab43a09eb03 | --- android/app/src/main/res/raw/walmart_achievement_06.mp3
Binary files /dev/null and b/android/app/src/main/res/raw/walmart_achievement_06.mp3 differ
--- android/app/src/main/res/raw/walmart_chat_out_01.mp3
Binary files /dev/null and b/android/app/src/main/res/raw/walmart_chat_out_01.mp3 differ
--- ios/walmart_achievement_06.mp3
Binary files /dev/null and b/ios/walmart_achievement_06.mp3 differ
--- ios/walmart_chat_out_01.mp3
Binary files /dev/null and b/ios/walmart_chat_out_01.mp3 differ
--- package-lock.json
@@ -84,7 +84,7 @@
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.6.4",
"@walmart/react-native-webex-sdk": "0.1.0",
- "@walmart/receipt-check-miniapp": "1.18.7",
+ "@walmart/receipt-check-miniapp": "1.19.3",
"@walmart/redux-store": "3.7.0",
"@walmart/returns-mini-app": "3.13.0",
"@walmart/schedule-mini-app": "0.63.2",
@@ -9679,9 +9679,9 @@
}
},
"node_modules/@walmart/receipt-check-miniapp": {
- "version": "1.18.7",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.18.7.tgz",
- "integrity": "sha512-9dZak0kH/vlgG7bCCdcN/vhbzKCmPxJPCtpyL9/KvkSzpc5wAH8mXoYHzlPNhTOlNrL8gbqqp/VrUae0exRJSg==",
+ "version": "1.19.3",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.19.3.tgz",
+ "integrity": "sha512-m/bBMdyNPCfqEfhfSLWRcS2ZrN3u1l0P9yiUGr6cA85ipTMrpA68yG7mMeKXXDdjrB9Ix4xWcjqKSDMzUgJD8A==",
"hasInstallScript": true,
"dependencies": {
"@walmart/tcnumber": "^2.3.3",
@@ -33597,9 +33597,9 @@
"integrity": "sha512-ywC7bsNeZJCWM2HXfZ0CrF24yf21h3Hm+KWKLTJbT/f34i43HA4yDQp30Bf5mUx/NSZEV7IBuZnxRsiP+svz4Q=="
},
"@walmart/receipt-check-miniapp": {
- "version": "1.18.7",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.18.7.tgz",
- "integrity": "sha512-9dZak0kH/vlgG7bCCdcN/vhbzKCmPxJPCtpyL9/KvkSzpc5wAH8mXoYHzlPNhTOlNrL8gbqqp/VrUae0exRJSg==",
+ "version": "1.19.3",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.19.3.tgz",
+ "integrity": "sha512-m/bBMdyNPCfqEfhfSLWRcS2ZrN3u1l0P9yiUGr6cA85ipTMrpA68yG7mMeKXXDdjrB9Ix4xWcjqKSDMzUgJD8A==",
"requires": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
--- package.json
@@ -125,7 +125,7 @@
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.6.4",
"@walmart/react-native-webex-sdk": "0.1.0",
- "@walmart/receipt-check-miniapp": "1.18.7",
+ "@walmart/receipt-check-miniapp": "1.19.3",
"@walmart/redux-store": "3.7.0",
"@walmart/returns-mini-app": "3.13.0",
"@walmart/schedule-mini-app": "0.63.2",
| updated version | updated version
|
2212bb43ec54a2c1d78fb464d8ffb79bd41f13da | --- package-lock.json
@@ -57,7 +57,7 @@
"@walmart/iteminfo-mini-app": "5.3.5",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.1.45",
- "@walmart/metrics-mini-app": "0.9.42",
+ "@walmart/metrics-mini-app": "0.9.45",
"@walmart/mod-flex-mini-app": "1.4.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.14",
@@ -5382,9 +5382,9 @@
}
},
"node_modules/@walmart/metrics-mini-app": {
- "version": "0.9.42",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.42.tgz",
- "integrity": "sha512-E57lAI/KJ0hZIDaWzzOmJWN77daDdQWc7nRoOmfgovB80Q3DD8wf50CvYnRyj8Jzo4rF8Kfml7urTvSZCV3QLA==",
+ "version": "0.9.45",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.45.tgz",
+ "integrity": "sha512-w/GiGLAX9C7ID+2Mau/Qedp4wOy68bGCt1lK3vppgJd3DjYOSIJaOIAQidR3xd2q4zBZrcd7jbZ+peBQd/D1tw==",
"dependencies": {
"@types/base-64": "^1.0.0",
"apisauce": "1.1.2",
@@ -5397,7 +5397,7 @@
"@walmart/ask-sam-chat-components": ">0.2.7",
"@walmart/gtp-shared-components": ">=2.0.0",
"@walmart/react-native-shared-navigation": ">=1.0.2",
- "@walmart/redux-store": ">=3.1.2",
+ "@walmart/redux-store": ">=3.1.4",
"axios-cache-adapter": ">=2.7.3",
"lodash": ">=4.17.21",
"react": "18.1.0",
@@ -25114,9 +25114,9 @@
"integrity": "sha512-E6vAHwZlf/Z+rSLxDJBZsobTh19CO6crd5I6WQrYnM2+Hp+LhSZyh9dVkty6LLweJy6l4nmcVHJS6/A6QRC5aA=="
},
"@walmart/metrics-mini-app": {
- "version": "0.9.42",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.42.tgz",
- "integrity": "sha512-E57lAI/KJ0hZIDaWzzOmJWN77daDdQWc7nRoOmfgovB80Q3DD8wf50CvYnRyj8Jzo4rF8Kfml7urTvSZCV3QLA==",
+ "version": "0.9.45",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.45.tgz",
+ "integrity": "sha512-w/GiGLAX9C7ID+2Mau/Qedp4wOy68bGCt1lK3vppgJd3DjYOSIJaOIAQidR3xd2q4zBZrcd7jbZ+peBQd/D1tw==",
"requires": {
"@types/base-64": "^1.0.0",
"apisauce": "1.1.2",
--- package.json
@@ -99,7 +99,7 @@
"@walmart/iteminfo-mini-app": "5.3.5",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.1.45",
- "@walmart/metrics-mini-app": "0.9.42",
+ "@walmart/metrics-mini-app": "0.9.45",
"@walmart/mod-flex-mini-app": "1.4.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.14",
| metrics version bump for drop 10 | metrics version bump for drop 10
|
815c1410f78c475ed7a8c27b08ae94c9451a7212 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.30.0",
+ "version": "1.31.0",
"main": "dist/index.js",
"files": [
"dist"
@@ -81,7 +81,7 @@
"@typescript-eslint/parser": "^5.37.0",
"@walmart/allspark-authentication": "6.1.4",
"@walmart/allspark-foundation": "6.20.0",
- "@walmart/allspark-foundation-hub": "1.3.2",
+ "@walmart/allspark-foundation-hub": "1.3.3",
"@walmart/allspark-graphql-client": "^1.4.6",
"@walmart/allspark-http-client": "6.1.4",
"@walmart/config-components": "4.4.0",
@@ -99,7 +99,7 @@
"@walmart/react-native-shared-navigation": "6.1.4",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
- "@walmart/roster-mini-app": "2.28.0",
+ "@walmart/roster-mini-app": "2.31.0",
"@walmart/ui-components": "1.15.1",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
--- yarn.lock
@@ -5992,9 +5992,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation-hub@npm:1.3.2":
- version: 1.3.2
- resolution: "@walmart/allspark-foundation-hub@npm:1.3.2"
+"@walmart/allspark-foundation-hub@npm:1.3.3":
+ version: 1.3.3
+ resolution: "@walmart/allspark-foundation-hub@npm:1.3.3"
dependencies:
"@reduxjs/toolkit": "npm:^1.9.7"
"@shopify/flash-list": "npm:~1.6.4"
@@ -6010,7 +6010,7 @@ __metadata:
react: "*"
react-native: "*"
react-native-safe-area-context: 4.x
- checksum: 10c0/97a2ac6fd5c72566ccba1e38f22b10291c4e6dc2f2d8711c96d42740204665af9c445cb6702b13aeec7d7d3c9f2e80da8cbbbdafd6da8d811a11b49ec2425346
+ checksum: 10c0/7030af7992a94ee2d00903434fb86c96b487ed9e89351b04194dab2ce6e81d7ec3874df68277a2cb777a91e42909710427461c214da492d58be58c407c6c2a5d
languageName: node
linkType: hard
@@ -6398,7 +6398,7 @@ __metadata:
"@typescript-eslint/parser": "npm:^5.37.0"
"@walmart/allspark-authentication": "npm:6.1.4"
"@walmart/allspark-foundation": "npm:6.20.0"
- "@walmart/allspark-foundation-hub": "npm:1.3.2"
+ "@walmart/allspark-foundation-hub": "npm:1.3.3"
"@walmart/allspark-graphql-client": "npm:^1.4.6"
"@walmart/allspark-http-client": "npm:6.1.4"
"@walmart/config-components": "npm:4.4.0"
@@ -6416,7 +6416,7 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-sumo-sdk": "npm:2.6.0"
"@walmart/redux-store": "npm:3.7.0"
- "@walmart/roster-mini-app": "npm:2.28.0"
+ "@walmart/roster-mini-app": "npm:2.31.0"
"@walmart/ui-components": "npm:1.15.1"
babel-jest: "npm:^29.2.1"
chance: "npm:^1.1.11"
@@ -6597,9 +6597,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:2.28.0":
- version: 2.28.0
- resolution: "@walmart/roster-mini-app@npm:2.28.0"
+"@walmart/roster-mini-app@npm:2.31.0":
+ version: 2.31.0
+ resolution: "@walmart/roster-mini-app@npm:2.31.0"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6641,7 +6641,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/be302f730212c314d9f343cede7ef960555d97a0eb942a303150dd4b09560b4fe83a83fabe5819c63834491a1a0da7f230bb64cbf02426cab91398e8963e241f
+ checksum: 10c0/6fba812a8975d0fcbd2d964ff366a1d2096b36c62d6ef6643659eb72de9f17e065efe61b5f4c7f8b6fbaa8696f50e73269ac2741be8d113e81fe6db6a4f593dc
languageName: node
linkType: hard
| Update the my team mini app version | Update the my team mini app version
|
7f6cfd3bb871a1c70cc297884f207edcea02a814 | --- package-lock.json
@@ -4137,9 +4137,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.5.10",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.10.tgz",
- "integrity": "sha512-5lYdkXZAfZ8j4dLlLqWBAGdTt1Rjm/a4nIGWOXhQtL5nQZN+kdeCU4i8ebcKyqm64KByGXfJGRjFN3/C/TSpiw==",
+ "version": "0.5.11",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.11.tgz",
+ "integrity": "sha512-psZTTTgrfpUR0VaIqHPX386P1xl0D+be2dC6P0XfhkXOTiNecOH4ZWTPTlJRRZUOVFIZwza4MMCuU4O8hYggaw==",
"requires": {
"moment": "^2.29.0",
"uuid": "^8.3.1"
@@ -4364,9 +4364,9 @@
"integrity": "sha512-soMMFPbISucCuTfmQK2K7HPqrJxtS+5XLniaNxj9LXtNzZuf62Sp7qRRtub9LNzDNkK79UHF6uRLmbG0Oq0vqA=="
},
"@walmart/redux-store": {
- "version": "1.1.19",
- "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-1.1.19.tgz",
- "integrity": "sha512-tPNyacZZPmF51iw1jIDamLprGBnkjpOUf2hn2M+kp9mzS3r8d3t8lFtq0ZHlZwAye/1PdiUQuCcZZlYFaTyrkQ==",
+ "version": "1.1.20",
+ "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-1.1.20.tgz",
+ "integrity": "sha512-lj/55QVtlzBNmSVc8GeAJcgZp/LxDh1oVSxsNzpPK+126Gqv7Ss0dbeDWCu9+RX9N8DJBEnT6o4DXrfwDt1abA==",
"requires": {
"namecase": "^1.1.2",
"reduxsauce": "^1.2.1"
--- package.json
@@ -71,7 +71,7 @@
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/allspark-health-survey-mini-app": "0.0.43",
- "@walmart/allspark-home-mini-app": "0.5.10",
+ "@walmart/allspark-home-mini-app": "0.5.11",
"@walmart/allspark-me-mini-app": "0.2.8",
"@walmart/ask-sam-mini-app": "^0.40.3",
"@walmart/config-components": "1.0.35",
@@ -93,7 +93,7 @@
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
"@walmart/react-native-sumo-sdk": "2.1.0",
- "@walmart/redux-store": "1.1.19",
+ "@walmart/redux-store": "1.1.20",
"@walmart/schedule-mini-app": "0.6.0",
"@walmart/settings-mini-app": "1.3.9",
"@walmart/shelfavailability-mini-app": "0.5.0",
| version bump for redux store and home mini app | version bump for redux store and home mini app
|
a937e5a768b686142ceba4feaa90583d739db31a | --- src/channels/provider.tsx
@@ -186,10 +186,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => {
}
setChannelState((previous) => ({
...previous,
- totalUnread: Object.keys(previous.unreadById).reduce(
- (accm, key) => accm + previous.unreadById[key],
- delayedUpdate.totalUnread,
- ),
+ totalUnread: delayedUpdate.totalUnread,
unreadById: {
...previous.unreadById,
...delayedUpdate.unreadById,
--- src/channels/provider.tsx
@@ -186,10 +186,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => {
}
setChannelState((previous) => ({
...previous,
- totalUnread: Object.keys(previous.unreadById).reduce(
- (accm, key) => accm + previous.unreadById[key],
- delayedUpdate.totalUnread,
- ),
+ totalUnread: delayedUpdate.totalUnread,
unreadById: {
...previous.unreadById,
...delayedUpdate.unreadById,
| fixing number of new messages indicator | fixing number of new messages indicator
|
8149849a3600e5ac41e4eacd46854b42373cc3a7 | --- src/components/Avatar.tsx
@@ -22,7 +22,6 @@ const styles = StyleSheet.create({
backgroundColor: colors.blue[20],
alignItems: 'center',
justifyContent: 'center',
- paddingLeft: 4,
},
avatarText: {
fontFamily: 'Bogle-Regular',
| chore: removed extra padding from before | chore: removed extra padding from before
|
8bfbfff172889a458e9222139e12024bb0164fbb | --- packages/allspark-foundation/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx
@@ -18,7 +18,6 @@ import { ScrollView } from 'react-native';
import { FEATURE_ID, FEATURE_NAME } from '../../constant';
import { TeamSelection } from '../../Onboarding/TeamSelection';
import { managerExperienceSlice } from '../../Redux/reducer';
-import { ManagerExperienceSelectors } from '../../Redux/selectors';
export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, {
name: FEATURE_NAME,
| feat(ui): redux updates for manager experience hub | feat(ui): redux updates for manager experience hub
|
c4aec364fdf566764a70246d7e3da7b7ffb363db | --- patches/@walmart+financial-wellbeing-feature-app+1.13.7.patch
@@ -41,3 +41,69 @@ index 9d742a5..62cc7e7 100644
};
const item = {
title: t('my_money.direct_deposit.title'),
+diff --git a/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MyMoney/MyMoney401kAndAspp/index.js b/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MyMoney/MyMoney401kAndAspp/index.js
+index acaf3cc..f7c0298 100644
+--- a/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MyMoney/MyMoney401kAndAspp/index.js
++++ b/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MyMoney/MyMoney401kAndAspp/index.js
+@@ -132,13 +132,24 @@ export const MyMoney401kAndAspp = () => {
+ title: t('video.title_401k'),
+ type: MONEY_HINTS_CAROUSEL_CARDS_TYPES._401K_MATCH,
+ };
+- navigation.navigate(FWB_NAV_SCREEN_NAME, {
+- screen: navigateTo,
+- params: {
+- ...params,
+- isFromMyMoney: true,
+- },
++
++ navigation.navigate('money.auth', {
++ screenName: 'FWB_NAV_SCREEN_NAME',
++ params:{
++ screen: navigateTo,
++ params: {
++ ...params,
++ isFromMyMoney: true,
++ },
++ }
+ });
++ // navigation.navigate(FWB_NAV_SCREEN_NAME, {
++ // screen: navigateTo,
++ // params: {
++ // ...params,
++ // isFromMyMoney: true,
++ // },
++ // });
+ }
+ if (type === MYMONEY_401K_AND_ASPP_CARDS_TYPES.ASPP_MATCH) {
+ const navigateTo = asppAgeandStateEligibile
+@@ -151,13 +162,23 @@ export const MyMoney401kAndAspp = () => {
+ title: t('video.title_aspp'),
+ type: MONEY_HINTS_CAROUSEL_CARDS_TYPES.ASPP_MATCH,
+ };
+- navigation.navigate(FWB_NAV_SCREEN_NAME, {
+- screen: navigateTo,
+- params: {
+- ...params,
+- isFromMyMoney: true,
+- },
+- });
++ navigation.navigate('money.auth', {
++ screenName: 'FWB_NAV_SCREEN_NAME',
++ params:{
++ screen: navigateTo,
++ params: {
++ ...params,
++ isFromMyMoney: true,
++ },
++ }
++ });
++ // navigation.navigate(FWB_NAV_SCREEN_NAME, {
++ // screen: navigateTo,
++ // params: {
++ // ...params,
++ // isFromMyMoney: true,
++ // },
++ // });
+ }
+ };
+ const close401kCompletedModal = () => {
--- patches/@walmart+profile-feature-app+0.334.0.patch
@@ -1,15 +1,16 @@
diff --git a/node_modules/@walmart/profile-feature-app/dist/components/DirectDepositTile/index.js b/node_modules/@walmart/profile-feature-app/dist/components/DirectDepositTile/index.js
-index 56231b3..32aba38 100644
+index 56231b3..b0972e0 100644
--- a/node_modules/@walmart/profile-feature-app/dist/components/DirectDepositTile/index.js
+++ b/node_modules/@walmart/profile-feature-app/dist/components/DirectDepositTile/index.js
-@@ -12,7 +12,9 @@ const DirectDepositTile = ({ marginRight }) => {
+@@ -12,7 +12,10 @@ const DirectDepositTile = ({ marginRight }) => {
const { logEvent } = useProfileTelemetry();
const onDepositCardPress = () => {
logEvent('directDepositBtnTapped', {});
- navigate('paymentselection');
-+ navigation.navigate('paymentselection', {
-+ screen: 'PaymentSelectionNav.PayMethodScreen'
++ navigation.navigate('money.auth', {
++ screenName: 'paymentselection'
+ });
++
};
return (<View style={[GlobalStyles.tileContainer, marginRight]}>
<TouchableOpacity testID={'Test.DirectDeposit.Button'} accessibilityLabel={t('depositCard.header')} accessibilityRole='button' onPress={onDepositCardPress} style={GlobalStyles.tile} activeOpacity={1}>
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx
@@ -198,7 +198,7 @@ export const MainStackNav = () => {
component={PaymentSelectionMiniApp}
/>
<MainStack.Screen name='paystub' component={PayStubMiniApp} />
- <MainStack.Screen name='money.auth' component={MoneyAuthScreen} />
+ <MainStack.Screen name='money.auth' component={MoneyAuthScreen} options={{headerShown: true}} />
<MainStack.Screen name={FWB_NAV_SCREEN_NAME} component={FWBNav} />
<MainStack.Screen name='AlarmDetails' component={AlarmDetailNav} />
</MainStack.Group>
| patch | patch
|
2ac12569774f17b00752348021f22d81b4323428 | --- package.json
@@ -91,7 +91,7 @@
"@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.15.8#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.15.8-6fb92a01bb.patch",
"@walmart/react-native-sumo-sdk": "patch:@walmart/react-native-sumo-sdk@npm%3A2.8.0#~/.yarn/patches/@walmart-react-native-sumo-sdk-npm-2.8.0-31dfe1d845.patch",
"@walmart/ui-components": "1.26.3-423-05e66f8",
- "@walmart/wmconnect-mini-app": "3.8.0",
+ "@walmart/wmconnect-mini-app": "3.9.0",
"babel-jest": "^29.6.3",
"chance": "^1.1.11",
"crypto-js": "~4.2.0",
--- yarn.lock
@@ -8583,7 +8583,7 @@ __metadata:
"@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.15.8#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.15.8-6fb92a01bb.patch"
"@walmart/react-native-sumo-sdk": "patch:@walmart/react-native-sumo-sdk@npm%3A2.8.0#~/.yarn/patches/@walmart-react-native-sumo-sdk-npm-2.8.0-31dfe1d845.patch"
"@walmart/ui-components": "npm:1.26.3-423-05e66f8"
- "@walmart/wmconnect-mini-app": "npm:3.8.0"
+ "@walmart/wmconnect-mini-app": "npm:3.9.0"
babel-jest: "npm:^29.6.3"
chance: "npm:^1.1.11"
crypto-js: "npm:~4.2.0"
@@ -8674,9 +8674,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:3.8.0":
- version: 3.8.0
- resolution: "@walmart/wmconnect-mini-app@npm:3.8.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.8.0.tgz"
+"@walmart/wmconnect-mini-app@npm:3.9.0":
+ version: 3.9.0
+ resolution: "@walmart/wmconnect-mini-app@npm:3.9.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.9.0.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=7.12.0"
expo: ~53.0.20
@@ -8687,7 +8687,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/0248399c5505154292b79e49f46e8324f9c75b86649aa6359e15e2a5305d5d9fc2a995e60d63c88788bcd794ad912d6bafe10f9f90a767f49208d730ec7c2392
+ checksum: 10c0/4869bc24021a25ac355f2a1ff8a0e08016173a4d00e5d9c21c01037e268152a3369a52acfbcf464cbdcb617461f0c9a3cb270a04c89801feb391144f93dced6d
languageName: node
linkType: hard
| feat(ui): bumped wmconnect version | feat(ui): bumped wmconnect version
|
1e6edbb83be77bcf301f37d5403fb84a9b1955dc | --- package-lock.json
@@ -43,7 +43,7 @@
"@walmart/attendance-mini-app": "0.190.6",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.5",
- "@walmart/copilot-mini-app": "^2.3.17",
+ "@walmart/copilot-mini-app": "^2.3.18",
"@walmart/core-services": "~2.2.0",
"@walmart/core-services-allspark": "~2.12.6",
"@walmart/core-utils": "~2.0.5",
@@ -8104,9 +8104,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "2.3.17",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.17.tgz",
- "integrity": "sha512-7+Bc/vXuYA13t6UoDKeCG5QOsvKu2ohQmGqF2lzRaRmiCUgT+D+VJne/IiCJve9pisGla2mCQnvWVGt38hdETw==",
+ "version": "2.3.18",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.18.tgz",
+ "integrity": "sha512-0xigwkVuRDSXSXveNUo6E5X7g5KUdIyKNOtvDUCrhzGVNh1c6DzFzlSg4vyv70+OcWUMYVClVgrXIsGui54utg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -33580,9 +33580,9 @@
}
},
"@walmart/copilot-mini-app": {
- "version": "2.3.17",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.17.tgz",
- "integrity": "sha512-7+Bc/vXuYA13t6UoDKeCG5QOsvKu2ohQmGqF2lzRaRmiCUgT+D+VJne/IiCJve9pisGla2mCQnvWVGt38hdETw=="
+ "version": "2.3.18",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.18.tgz",
+ "integrity": "sha512-0xigwkVuRDSXSXveNUo6E5X7g5KUdIyKNOtvDUCrhzGVNh1c6DzFzlSg4vyv70+OcWUMYVClVgrXIsGui54utg=="
},
"@walmart/core-services": {
"version": "2.2.0",
--- package.json
@@ -84,7 +84,7 @@
"@walmart/attendance-mini-app": "0.190.6",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.5",
- "@walmart/copilot-mini-app": "2.3.17",
+ "@walmart/copilot-mini-app": "2.3.18",
"@walmart/core-services": "~2.2.0",
"@walmart/core-services-allspark": "~2.12.6",
"@walmart/core-utils": "~2.0.5",
| chore: bump copilot@2.3.18 | chore: bump copilot@2.3.18
|
d1cb3cdcb5c7380654c4be0e25367a70a538f636 | --- targets/US/package.json
@@ -107,7 +107,7 @@
"@walmart/functional-components": "~6.3.20",
"@walmart/gta-react-native-calendars": "0.7.0",
"@walmart/gtp-shared-components": "2.2.4",
- "@walmart/ims-print-services-ui": "2.15.1",
+ "@walmart/ims-print-services-ui": "2.15.3",
"@walmart/inbox-mini-app": "0.96.6",
"@walmart/iteminfo-mini-app": "7.16.2",
"@walmart/learning-mini-app": "20.0.35",
--- yarn.lock
@@ -6484,9 +6484,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/ims-print-services-ui@npm:2.15.1":
- version: 2.15.1
- resolution: "@walmart/ims-print-services-ui@npm:2.15.1"
+"@walmart/ims-print-services-ui@npm:2.15.3":
+ version: 2.15.3
+ resolution: "@walmart/ims-print-services-ui@npm:2.15.3"
peerDependencies:
"@react-native-firebase/analytics": ">=10.5.1"
"@react-native-firebase/app": ">=10.5.0"
@@ -6507,7 +6507,7 @@ __metadata:
react-native-segmented-control-tab: ">=4.0.0"
react-native-wm-telemetry: ">=0.2.0"
uuid: ">=3.3.2"
- checksum: 10c0/abe3e832e62851dc464586016dbdf35ff04dca9d514576bcd8e7387200a5044132eae1b34e274328c0205875946e5d9fb96c38ab2810e7ff9af578801724a387
+ checksum: 10c0/8c99ea77ccb2f82d77fc168a39885f5f4c8b3b625d1db596254e60f9cf62ae9a4507b7d3dc01c4963286a8fa2e51f276cefd2365c80d1a87af913f7a434c580e
languageName: node
linkType: hard
@@ -7012,7 +7012,7 @@ __metadata:
"@walmart/functional-components": "npm:~6.3.20"
"@walmart/gta-react-native-calendars": "npm:0.7.0"
"@walmart/gtp-shared-components": "npm:2.2.4"
- "@walmart/ims-print-services-ui": "npm:2.15.1"
+ "@walmart/ims-print-services-ui": "npm:2.15.3"
"@walmart/inbox-mini-app": "npm:0.96.6"
"@walmart/iteminfo-mini-app": "npm:7.16.2"
"@walmart/learning-mini-app": "npm:20.0.35"
| Bump Print UI to v2.15.3 | Bump Print UI to v2.15.3
|
6905a235ba477bfc0df98e586fe4b54a1be0dec5 | --- __tests__/navigation/utils.test.ts
@@ -28,7 +28,7 @@ describe('Navigation Utils', () => {
'100',
'testDisplayName',
'H',
- 12345,
+ '12345',
'US',
);
expect(navigate).toBeCalledWith('scheduleScreen', {
@@ -39,7 +39,7 @@ describe('Navigation Utils', () => {
displayName: 'Testdisplayname',
payType: 'H',
userId: '00900900',
- walmartIdentificationNumber: 12345,
+ walmartIdentificationNumber: '12345',
},
},
screen: 'scheduleNav.associateView',
| Update version | Update version
|
fd64158010e97f9ccf278fd5c8c42e7ae1c19b7a | --- src/hooks/teams.ts
@@ -27,6 +27,7 @@ export const useSupplyChainTeamById = (teamId: string) => {
date: moment().format('YYYY-MM-DD'),
teamId,
includeProxyMembers: true,
+ siteNbr: storeNbr as string,
},
skip:
!storeNbr ||
@@ -65,6 +66,7 @@ export const useSupplyChainTeamsByBusinessUnit = () => {
countryCode: countryCode!,
businessUnitNumber: Number(businessUnitNumber)!,
date: moment().format('YYYY-MM-DD'),
+ siteNbr: businessUnitNumber as string,
},
skip: !countryCode || !businessUnitNumber,
notifyOnNetworkStatusChange: true,
| Update the query to include the query params | Update the query to include the query params
|
81ed4784b96ce5ff11364a7d0107676a04643811 | --- package-lock.json
@@ -60,7 +60,7 @@
"@walmart/impersonation-mini-app": "1.20.6",
"@walmart/ims-print-services-ui": "2.5.8",
"@walmart/inbox-mini-app": "0.88.9",
- "@walmart/iteminfo-mini-app": "7.6.2",
+ "@walmart/iteminfo-mini-app": "7.6.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
"@walmart/metrics-mini-app": "0.15.14",
@@ -8534,9 +8534,9 @@
}
},
"node_modules/@walmart/iteminfo-mini-app": {
- "version": "7.6.2",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.2.tgz",
- "integrity": "sha512-sf2D3IZfXiGFaeuEy1i2axTD1OudyRKPFjtf7HFYqJ21sr6AYXjdW6jFovrCHBS+kZRugcLQ+dIddVGTPIUStA==",
+ "version": "7.6.3",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.3.tgz",
+ "integrity": "sha512-K9QKGGdBRkRiiVM1ZyElyZdy+EemB12XV7gqUJ8GPBA+cRBu8WR3AL7oSNSOw8uV3WjoQxBvwGrxnQftQ49feQ==",
"peerDependencies": {
"@react-native-community/netinfo": ">=9.3.6",
"@react-native-firebase/analytics": ">=15.1.1",
@@ -33763,9 +33763,9 @@
}
},
"@walmart/iteminfo-mini-app": {
- "version": "7.6.2",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.2.tgz",
- "integrity": "sha512-sf2D3IZfXiGFaeuEy1i2axTD1OudyRKPFjtf7HFYqJ21sr6AYXjdW6jFovrCHBS+kZRugcLQ+dIddVGTPIUStA=="
+ "version": "7.6.3",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.3.tgz",
+ "integrity": "sha512-K9QKGGdBRkRiiVM1ZyElyZdy+EemB12XV7gqUJ8GPBA+cRBu8WR3AL7oSNSOw8uV3WjoQxBvwGrxnQftQ49feQ=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.2.4"
--- package.json
@@ -101,7 +101,7 @@
"@walmart/impersonation-mini-app": "1.20.6",
"@walmart/ims-print-services-ui": "2.5.8",
"@walmart/inbox-mini-app": "0.88.9",
- "@walmart/iteminfo-mini-app": "7.6.2",
+ "@walmart/iteminfo-mini-app": "7.6.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
"@walmart/metrics-mini-app": "0.15.14",
| bump up iteminfo for drop 15.x, topsteel feature | bump up iteminfo for drop 15.x, topsteel feature
|
07f9626ede59bc10d8b89d7b7ef12f2c00fd7512 | --- src/common/types.ts
@@ -70,6 +70,7 @@ export type LocalMessage = FirebaseMessage & {
channelPath?: string;
testID?: string;
index?: number;
+ accessibilitySortOrder?: number;
};
export type SubscriptionContext<T> = T & {
--- src/components/MessageTimeSectionHeader.tsx
@@ -22,6 +22,7 @@ const styles = StyleSheet.create({
export interface MessageTimeStatusProps {
time: string;
isFirstMessage: boolean;
+ accessibilitySortOrder?: number;
}
export const MessageTimeSectionHeader = (props: MessageTimeStatusProps) => {
--- src/containers/Message/ImageMessage.tsx
@@ -15,6 +15,7 @@ import {TouchableOpacity} from 'react-native-gesture-handler';
import {logger} from '../../common/logger';
import {analytics} from '../../logger/Analytics';
import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
+import {hideParentScreenAccessibility} from '../../navigation/utils';
const styles = StyleSheet.create({
container: {
@@ -109,6 +110,10 @@ export const SmartImage = (
analytics('image_Preview', {
imageSource: {uri: imageUri},
});
+
+ // Hide parent screen accessibility elements
+ hideParentScreenAccessibility();
+
AllsparkNavigationClient.openModal('wmConnect.ImagePreviewScreen' as any, {
imageSource: {uri: imageUri},
});
--- src/modals/ImagePreviewScreen.tsx
@@ -4,6 +4,7 @@ import {Image} from 'expo-image';
import {CloseIcon, colors, Spinner} from '@walmart/gtp-shared-components';
import {useForceCloseOnClockOut, useAccessibilityFocus} from '../hooks';
import {modalProps} from '.';
+import {showParentScreenAccessibility} from '../navigation/utils';
const styles = StyleSheet.create({
container: {
@@ -39,8 +40,14 @@ export const ImagePreviewScreen = ({
// Focus on close button when modal opens
useAccessibilityFocus(closeButtonRef);
+ const handleCloseModal = useCallback(() => {
+ // Restore parent screen accessibility
+ showParentScreenAccessibility();
+ closeModal();
+ }, [closeModal]);
+
// Monitor clock status and close modal when clocked out
- useForceCloseOnClockOut(closeModal, 'ImagePreviewScreen', {
+ useForceCloseOnClockOut(handleCloseModal, 'ImagePreviewScreen', {
imageSource
});
@@ -51,7 +58,7 @@ export const ImagePreviewScreen = ({
testID='close-button'
accessibilityRole='button'
accessibilityLabel='close image preview'
- onPress={closeModal}
+ onPress={handleCloseModal}
style={styles.closeButton}>
<CloseIcon size={24} />
</TouchableOpacity>
--- src/navigation/utils.ts
@@ -1,11 +1,41 @@
+import React from 'react';
+import {View} from 'react-native';
import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
import {analytics} from '../logger/Analytics';
import {createAssociateChannelId, createChannelPath} from '../channels';
+import '../types/global.d'; // Import global type declarations
-let _parentScreenRef: any = null;
-export const setParentScreenRef = (ref: any) => {
+let _parentScreenRef: React.RefObject<View> | null = null;
+export const setParentScreenRef = (ref: React.RefObject<View> | null) => {
_parentScreenRef = ref;
- (global as any)._parentScreenRef = ref;
+ globalThis._parentScreenRef = ref;
+};
+
+/**
+ * Hides parent screen accessibility elements when opening a modal
+ * This prevents screen readers from accessing background content
+ */
+export const hideParentScreenAccessibility = () => {
+ const parentRef = _parentScreenRef || globalThis._parentScreenRef;
+ if (parentRef?.current) {
+ parentRef.current.setNativeProps({
+ accessibilityElementsHidden: true,
+ importantForAccessibility: 'no-hide-descendants',
+ });
+ }
+};
+
+/**
+ * Restores parent screen accessibility elements when closing a modal
+ */
+export const showParentScreenAccessibility = () => {
+ const parentRef = _parentScreenRef || globalThis._parentScreenRef;
+ if (parentRef?.current) {
+ parentRef.current.setNativeProps({
+ accessibilityElementsHidden: false,
+ importantForAccessibility: 'auto',
+ });
+ }
};
export const onNewMessage = () => {
const routeInfo = AllsparkNavigationClient.getCurrentRouteName();
@@ -18,32 +48,17 @@ export const onNewMessage = () => {
},
10,
);
- if (_parentScreenRef?.current) {
- _parentScreenRef.current.setNativeProps({
- accessibilityElementsHidden: true,
- importantForAccessibility: 'no-hide-descendants',
- });
- }
+ hideParentScreenAccessibility();
AllsparkNavigationClient.openModal('wmConnect.NewMessageScreen' as any);
};
export const onCloseNewMessage = () => {
// Restore parent screen accessibility elements
- if (_parentScreenRef?.current) {
- _parentScreenRef.current.setNativeProps({
- accessibilityElementsHidden: false,
- importantForAccessibility: 'auto',
- });
- }
+ showParentScreenAccessibility();
};
export const onCloseMessageScreen = () => {
- if (_parentScreenRef?.current) {
- _parentScreenRef.current.setNativeProps({
- accessibilityElementsHidden: false,
- importantForAccessibility: 'auto',
- });
- }
+ showParentScreenAccessibility();
};
export const navigateToMessageScreen = (
@@ -54,12 +69,7 @@ export const navigateToMessageScreen = (
const channelId: string = createAssociateChannelId(participants);
const channelPath: string = createChannelPath(storeNumber, channelId);
// Hide parent screen accessibility elements before opening modal
- if (_parentScreenRef?.current) {
- _parentScreenRef.current.setNativeProps({
- accessibilityElementsHidden: true,
- importantForAccessibility: 'no-hide-descendants',
- });
- }
+ hideParentScreenAccessibility();
AllsparkNavigationClient.openModal('wmConnect.MessageScreen' as any, {
channelPath,
details: {
--- src/types/global.d.ts
@@ -0,0 +1,15 @@
+/**
+ * Global type definitions for wmconnect-mini-app
+ * This file defines types for global variables used throughout the application
+ */
+
+import React from 'react';
+import {View} from 'react-native';
+
+declare global {
+ // Extend the global object with our custom properties
+ var _parentScreenRef: React.RefObject<View> | null | undefined;
+}
+
+// This export makes the file a module and allows the global declaration
+export {};
| fix(ada-fixes): SMDV-7807 accessibility sort order | fix(ada-fixes): SMDV-7807 accessibility sort order
|
fe6c6f64b54e75e8b39d5108d9e8db1d7f3b2e68 | --- package-lock.json
@@ -79,7 +79,7 @@
"@walmart/schedule-mini-app": "0.33.0",
"@walmart/settings-mini-app": "1.17.0",
"@walmart/shelfavailability-mini-app": "1.5.13",
- "@walmart/taskit-mini-app": "2.28.12",
+ "@walmart/taskit-mini-app": "2.28.14",
"@walmart/time-clock-mini-app": "2.49.0",
"@walmart/ui-components": "1.10.1",
"@walmart/welcomeme-mini-app": "0.76.0",
@@ -6041,9 +6041,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "2.28.12",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.28.12.tgz",
- "integrity": "sha512-WXFYlR2b0hUEF29HD6Cm0MK68p8zhW2pQgRvaHY2uyV2AaJw5LCRRneh+J4mDDVbk83qqwt5Af2tRbDzyMKEVw==",
+ "version": "2.28.14",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.28.14.tgz",
+ "integrity": "sha512-JX5RmQwBRe1HHfiaaZkmwVufkU09iLpX/82QJ4p4Icto3KG++mjgDX3+yXXvrfKdH/sZSrIrnKIYWwBzltH2vA==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -25453,9 +25453,9 @@
"integrity": "sha512-6P9nNTvcS59vzeWoi2JKT4ldRTQgMShlzThbbagd6PzbPkOS+M2Tx009eR8GGL5YNwxUP1n3PKmCudppwE0J+w=="
},
"@walmart/taskit-mini-app": {
- "version": "2.28.12",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.28.12.tgz",
- "integrity": "sha512-WXFYlR2b0hUEF29HD6Cm0MK68p8zhW2pQgRvaHY2uyV2AaJw5LCRRneh+J4mDDVbk83qqwt5Af2tRbDzyMKEVw=="
+ "version": "2.28.14",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.28.14.tgz",
+ "integrity": "sha512-JX5RmQwBRe1HHfiaaZkmwVufkU09iLpX/82QJ4p4Icto3KG++mjgDX3+yXXvrfKdH/sZSrIrnKIYWwBzltH2vA=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- package.json
@@ -121,7 +121,7 @@
"@walmart/schedule-mini-app": "0.33.0",
"@walmart/settings-mini-app": "1.17.0",
"@walmart/shelfavailability-mini-app": "1.5.13",
- "@walmart/taskit-mini-app": "2.28.12",
+ "@walmart/taskit-mini-app": "2.28.14",
"@walmart/time-clock-mini-app": "2.49.0",
"@walmart/ui-components": "1.10.1",
"@walmart/welcomeme-mini-app": "0.76.0",
| updated taskit version | updated taskit version
|
c5a4c5423df63eabc98323f0e02ac048334d121e | --- package-lock.json
@@ -1390,36 +1390,36 @@
}
},
"@react-native-firebase/analytics": {
- "version": "7.6.1",
- "resolved": "https://npme.walmart.com/@react-native-firebase/analytics/-/analytics-7.6.1.tgz",
- "integrity": "sha512-CTwjRFkSsxMQQjnDh/Zxzc45l9d34qBdHsr6ZqvaiV1pm81btzKP6OMS1qtPffGcBqR1zG6XJigObYxGzbN5rA=="
+ "version": "7.6.2",
+ "resolved": "https://npme.walmart.com/@react-native-firebase/analytics/-/analytics-7.6.2.tgz",
+ "integrity": "sha512-Yfb2BSNTZsf4QTV2cKV5jhuP5ECu5rgL9owwnwkb//qr3bQlS18tx5gxzJ/rRdzI03eIspVUht2T/nZnxUd+xQ=="
},
"@react-native-firebase/app": {
- "version": "8.4.1",
- "resolved": "https://npme.walmart.com/@react-native-firebase/app/-/app-8.4.1.tgz",
- "integrity": "sha512-EhEFgF5QBT6rtBqfK7m6LZmiEyWP6aLKLoCDvAaAmRNURXG0Ryr1T6KEjvrFuERnGkEk0KH/f2i1KB+BhThPWQ==",
+ "version": "8.4.2",
+ "resolved": "https://npme.walmart.com/@react-native-firebase/app/-/app-8.4.2.tgz",
+ "integrity": "sha512-toHk6bPdhLPQUWw9ZNljNisv58JrZdSDzDzZPa19xEB5465iAMx46tCBrKdoSdq0pMq9w1iYzgOhMg8lxzM2qw==",
"requires": {
"opencollective-postinstall": "^2.0.1",
"superstruct": "^0.6.2"
}
},
"@react-native-firebase/crashlytics": {
- "version": "8.4.2",
- "resolved": "https://npme.walmart.com/@react-native-firebase/crashlytics/-/crashlytics-8.4.2.tgz",
- "integrity": "sha512-Mcmmafo1OoEsZTTgqFf64TNLZJcHHmfHrF1X8/5FkCDC4S7U6H8B9u7VFAyg4xMNoQUJ3kOp6yJEnMY+XWrk7A==",
+ "version": "8.4.4",
+ "resolved": "https://npme.walmart.com/@react-native-firebase/crashlytics/-/crashlytics-8.4.4.tgz",
+ "integrity": "sha512-a1DFxnG2dacIrl6qrMdSAJ/pMYZqqx98zJu/rC9S/bf21OEcbDQazpHSdv0HDWY0Qma4K1sP4VKYbdicastBzg==",
"requires": {
"stacktrace-js": "^2.0.0"
}
},
"@react-native-firebase/perf": {
- "version": "7.4.2",
- "resolved": "https://npme.walmart.com/@react-native-firebase/perf/-/perf-7.4.2.tgz",
- "integrity": "sha512-RnHyEKZUw5NJPXYP/AlAbvTohuuxRg98M+TBAPMjiO9hoYhxBUII7korei4NjSdLkqWitQKhPCiZ/OuUyPIGMg=="
+ "version": "7.4.3",
+ "resolved": "https://npme.walmart.com/@react-native-firebase/perf/-/perf-7.4.3.tgz",
+ "integrity": "sha512-uaeBL7vfC8g7OUnwhwBAuiZ4wUbpY51RwfA5qbT+uDZwpSrHgrzNX1XhcRWQ7qkhboS66nDlGG/MpthRqCbdNQ=="
},
"@react-native-firebase/remote-config": {
- "version": "8.2.1",
- "resolved": "https://npme.walmart.com/@react-native-firebase/remote-config/-/remote-config-8.2.1.tgz",
- "integrity": "sha512-FcCO+sLo9FoBk1PPaEMImPDTOtg4mMYLCK/vTVs4MFNVnpQhB3TLlwTMlbZp1WVz3qdLzUlYdPJWbloP6bcXPQ=="
+ "version": "9.0.5",
+ "resolved": "https://npme.walmart.com/@react-native-firebase/remote-config/-/remote-config-9.0.5.tgz",
+ "integrity": "sha512-qltfFb+nnK1pgBaJiG5xfGy7bQZPEhS47Hwa9brjpfWciVgpcIzdNIoZ9M5RCxYXwEuwH4r5e23vI05e/yIEjw=="
},
"@react-navigation/bottom-tabs": {
"version": "5.8.0",
@@ -5723,11 +5723,6 @@
"esprima": "^4.0.0"
}
},
- "jsbarcode": {
- "version": "3.11.0",
- "resolved": "https://npme.walmart.com/jsbarcode/-/jsbarcode-3.11.0.tgz",
- "integrity": "sha512-/ozCd7wsa+VIHo9sUc03HneVEQrH7cVWfJolUT/WOW1m8mJ2e3iYZje6C9X3LFHdczlesqFHRpxLtbVsNtjyow=="
- },
"jsbn": {
"version": "0.1.1",
"resolved": "https://npme.walmart.com/jsbn/-/jsbn-0.1.1.tgz",
@@ -8597,15 +8592,6 @@
"prop-types": "^15.7.2"
}
},
- "react-native-barcode-builder": {
- "version": "2.0.0",
- "resolved": "https://npme.walmart.com/react-native-barcode-builder/-/react-native-barcode-builder-2.0.0.tgz",
- "integrity": "sha512-hOpP321behSPlpWNGcowN66P9Z2Xv6kQwa2I8SdfSGMFmJlll1b22R63xQSIAi72RC/gZe1cWBBz03J686e9JA==",
- "requires": {
- "@react-native-community/art": "^1.2.0",
- "jsbarcode": "^3.8.0"
- }
- },
"react-native-device-info": {
"version": "5.6.5",
"resolved": "https://npme.walmart.com/react-native-device-info/-/react-native-device-info-5.6.5.tgz",
--- package.json
@@ -22,11 +22,11 @@
"@react-native-community/async-storage": "^1.11.0",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/netinfo": "^5.9.5",
- "@react-native-firebase/analytics": "^7.4.1",
- "@react-native-firebase/app": "^8.3.0",
- "@react-native-firebase/crashlytics": "^8.4.0",
- "@react-native-firebase/perf": "^7.3.1",
- "@react-native-firebase/remote-config": "^8.1.1",
+ "@react-native-firebase/analytics": "^7.6.2",
+ "@react-native-firebase/app": "^8.4.2",
+ "@react-native-firebase/crashlytics": "^8.4.4",
+ "@react-native-firebase/perf": "^7.4.3",
+ "@react-native-firebase/remote-config": "^9.0.5",
"@react-navigation/bottom-tabs": "^5.8.0",
"@react-navigation/drawer": "^5.9.0",
"@react-navigation/material-top-tabs": "^5.2.16",
@@ -42,7 +42,6 @@
"lodash": "^4.17.20",
"react": "16.13.1",
"react-native": "0.63.2",
- "react-native-barcode-builder": "^2.0.0",
"react-native-device-info": "^5.6.5",
"react-native-gesture-handler": "^1.7.0",
"react-native-modal": "^11.5.6",
| removed:"react-native-barcode-builder": "^2.0.0" for testing | removed:"react-native-barcode-builder": "^2.0.0" for testing
|
14ac9a402a54feb6f2707b94df0f0e1791846ee5 | --- packages/allspark-foundation-hub/src/Store/Modules/Hub/HubDashboard.tsx
@@ -15,7 +15,7 @@ import {
hubContainerEnabled,
hubHeaderEnabled,
hubTeamSwitcherEnabled,
- StoreManagerExperienceCreators
+ StoreManagerExperienceCreators,
} from '../../Redux';
import {
FEATURE_ID,
--- packages/allspark-foundation-hub/src/Store/Redux/reducer.ts
@@ -41,7 +41,7 @@ export const storeManagerExperienceSlice = createSlice({
/**
* Updates the active team state in the Redux store.
* This action is dispatched when the user selects a different team in the UI.
- *
+ *
* @param state - The current state of the storeManagerExperience slice
* @param action - The action containing the new team state
* @param action.payload - The new team state to be set
--- packages/allspark-foundation-hub/src/Store/Redux/types.ts
@@ -3,7 +3,7 @@ import { TeamSwitcherTypes } from '../Modules';
/**
* Represents the state of the currently selected team in the application.
* This state is shared across all tabs to keep the team selection in sync.
- *
+ *
* @property {string} teamLabel - The display name of the currently selected team
* @property {string[]} teamIds - Array of team IDs that are currently selected
*/
| feat(ui): lint fix | feat(ui): lint fix
|
aec6b4dead2feea15a974304ef661810327e6048 | --- package-lock.json
@@ -5575,9 +5575,9 @@
"integrity": "sha512-YRNp3VcfzWTyDZt6h5hAUK5XTzUrblOZOWUclor4ht/g4E5Oo2sMF8rV5swXlB3QdSQUZwSsU60b01veuR3o6g=="
},
"@walmart/returns-mini-app": {
- "version": "0.0.13",
- "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.0.13.tgz",
- "integrity": "sha512-IYueYm7GfU7I3IJw7CkHGbtjYijm6p6x+dm7xdoQu+QCJ0ot1Yu9HgaBTSwsy7xTie9hUWfC7VMBdjju8hYTpA==",
+ "version": "0.3.0",
+ "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.3.0.tgz",
+ "integrity": "sha512-DemNcJwvCLwCVKWvHena2qJpfeHv4e/yUdBTLlJCD3a69gYNalvlGCLVPeczPmBbCDRE1GWnKUq3CzPtcKkPOQ==",
"requires": {
"@walmart/common-utilities-js": "^1.2.10",
"@walmart/virtual-zpl-printer-model": "^0.2.11",
@@ -13964,7 +13964,7 @@
"lodash.get": {
"version": "4.4.2",
"resolved": "https://npme.walmart.com/lodash.get/-/lodash.get-4.4.2.tgz",
- "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ=="
+ "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk="
},
"lodash.isequal": {
"version": "4.5.0",
@@ -14088,7 +14088,7 @@
"lodash.uniqby": {
"version": "4.7.0",
"resolved": "https://npme.walmart.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz",
- "integrity": "sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww=="
+ "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI="
},
"lodash.uppercase": {
"version": "4.3.0",
@@ -22884,7 +22884,7 @@
"wm-react-native-vector-icons": {
"version": "1.0.33",
"resolved": "https://npme.walmart.com/wm-react-native-vector-icons/-/wm-react-native-vector-icons-1.0.33.tgz",
- "integrity": "sha1-vIAL0WOWBBaAsIuacYHnzsxTQxk=",
+ "integrity": "sha512-pAcEq6iOVxzKM55qucKOkh2ML3kii4yGJ5YdmMEOcRAGH4fQ1lHa7BETIl+jzX5n1ZVKgWkzmAiH3vw0nkuklQ==",
"requires": {
"lodash": "^4.0.0",
"prop-types": "^15.6.2",
--- package.json
@@ -117,7 +117,7 @@
"@walmart/receipt-check-miniapp": "1.8.20",
"@walmart/redux-store": "2.0.4",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
- "@walmart/returns-mini-app": "0.0.13",
+ "@walmart/returns-mini-app": "0.3.0",
"@walmart/schedule-mini-app": "0.26.0",
"@walmart/settings-mini-app": "1.10.0",
"@walmart/shelfavailability-mini-app": "1.3.1",
| returns ux bugfixes drop 8.2 | returns ux bugfixes drop 8.2
|
cc56a736a8b5f2521c4b363e301d39118caae82a | --- src/containers/ChannelRow.tsx
@@ -85,7 +85,6 @@ export const ChannelRow = (props: ChannelRowProps) => {
const unsubscribeChannel = firestore()
.doc(channelPath)
.onSnapshot(async (snapshot) => {
- console.log('channel', snapshot.data());
const channelData = snapshot.data() as FirebaseChannel;
const recipients = getRecipientsFromParticipants(
--- src/context/UnreadContext.tsx
@@ -22,11 +22,14 @@ export const UnreadProvider = (props: PropsWithChildren<{}>) => {
const [unread, setUnread] = useState<number>(0);
const setUnreadForChannel = (channelId: string, count: number) => {
- countByChannel.current[channelId] = count;
- const sum = Object.keys(countByChannel.current).reduce((total, key) => {
- return total + countByChannel.current[key];
- }, 0);
- setUnread(sum);
+ // Dont bother setting count for calculating sum if count is 0 or is unchanged
+ if (count && count !== countByChannel.current[channelId]) {
+ countByChannel.current[channelId] = count;
+ const sum = Object.keys(countByChannel.current).reduce((total, key) => {
+ return total + countByChannel.current[key];
+ }, 0);
+ setUnread(sum);
+ }
};
const value = useMemo(
--- src/screens/MessagesScreen.tsx
@@ -98,7 +98,6 @@ export const MessagesScreen = () => {
// For existing channels, new channels will not be created until first message sent
if (channelData) {
- console.log('channelData', channelData);
// join group messages if not listed
if (channelData.group) {
if (!channelData.participants?.includes(viewerId!)) {
--- src/containers/ChannelRow.tsx
@@ -85,7 +85,6 @@ export const ChannelRow = (props: ChannelRowProps) => {
const unsubscribeChannel = firestore()
.doc(channelPath)
.onSnapshot(async (snapshot) => {
- console.log('channel', snapshot.data());
const channelData = snapshot.data() as FirebaseChannel;
const recipients = getRecipientsFromParticipants(
--- src/context/UnreadContext.tsx
@@ -22,11 +22,14 @@ export const UnreadProvider = (props: PropsWithChildren<{}>) => {
const [unread, setUnread] = useState<number>(0);
const setUnreadForChannel = (channelId: string, count: number) => {
- countByChannel.current[channelId] = count;
- const sum = Object.keys(countByChannel.current).reduce((total, key) => {
- return total + countByChannel.current[key];
- }, 0);
- setUnread(sum);
+ // Dont bother setting count for calculating sum if count is 0 or is unchanged
+ if (count && count !== countByChannel.current[channelId]) {
+ countByChannel.current[channelId] = count;
+ const sum = Object.keys(countByChannel.current).reduce((total, key) => {
+ return total + countByChannel.current[key];
+ }, 0);
+ setUnread(sum);
+ }
};
const value = useMemo(
--- src/screens/MessagesScreen.tsx
@@ -98,7 +98,6 @@ export const MessagesScreen = () => {
// For existing channels, new channels will not be created until first message sent
if (channelData) {
- console.log('channelData', channelData);
// join group messages if not listed
if (channelData.group) {
if (!channelData.participants?.includes(viewerId!)) {
| chore: remove logs | chore: remove logs
|
37cd4fd3cf83bee95929a493c1e41f0a8281b801 | --- core/src/index.tsx
@@ -1,5 +1,3 @@
-import {RootStackNavigation} from './navigation';
-
/**
* Lazy load root features
*/
@@ -43,7 +41,7 @@ export const getCoreAssociateFeatures = () => {
/**
* Base core navigation
*/
-export const CoreNavigation = RootStackNavigation;
+export {RootStackNavigation as CoreNavigation} from './navigation';
export type {RootStackMap, CoreAssociateStackMap} from './navigation/types';
// --- Shared Target Functionality --- //
--- package.json
@@ -254,10 +254,5 @@
"packageManager": "yarn@4.1.1",
"engines": {
"node": ">=18"
- },
- "expo": {
- "autolinking": {
- "onlyProjectDeps": false
- }
}
}
--- targets/US/src/App.tsx
@@ -8,19 +8,6 @@ import {UserRootNav} from './navigation/UserRootNav';
import {runUSPreregistration, USRootSetup, USAssociateSetup} from './setup';
import {withCodePush} from './features/codePush';
-/**
- * Root of US App
- */
-const USAppBase = () => {
- return (
- <MeAtWalmartContainer.Provider
- env={ENV}
- environmentOverrides={ENV_OVERRIDES}>
- <CoreNavigation UserRootScreen={UserRootNav} />
- </MeAtWalmartContainer.Provider>
- );
-};
-
/**
* Create US App
*/
@@ -34,5 +21,16 @@ export const createApp = () => {
// Add core and our US specific associate feature setup
MeAtWalmartContainer.addSetup('associate', USAssociateSetup);
- return withCodePush(USAppBase);
+ /**
+ * Root of US App
+ */
+ return withCodePush(() => {
+ return (
+ <MeAtWalmartContainer.Provider
+ env={ENV}
+ environmentOverrides={ENV_OVERRIDES}>
+ <CoreNavigation UserRootScreen={UserRootNav} />
+ </MeAtWalmartContainer.Provider>
+ );
+ });
};
| refactor: move app base into create app function. export root navigation directly | refactor: move app base into create app function. export root navigation directly
|
0180bcb2ed4908e26116b5b792afe6913c375e06 | --- __tests__/navigation/AssociateHallwayNav/__snapshots__/SideMenuContentTest.tsx.snap
@@ -1,15 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`SideMenuContent matches snapshot for undefined user info, and can impersonate 1`] = `
-<SafeAreaView
- style={
- Object {
- "backgroundColor": "#002d58",
- "flex": 1,
- "overflow": "hidden",
+Array [
+ <SafeAreaView
+ edges={
+ Array [
+ "top",
+ ]
+ }
+ style={
+ Object {
+ "backgroundColor": "#002d58",
+ "flex": 1,
+ "overflow": "hidden",
+ }
}
- }
->
+ />,
<GlobalNavigation
appId="test"
baseURL=""
@@ -68,7 +74,7 @@ exports[`SideMenuContent matches snapshot for undefined user info, and can imper
signOutText="menu.signOutText"
siteId={0}
testID="globalNav"
- />
+ />,
<Dialog
headerText="signoutDialog.title"
onClose={[Function]}
@@ -78,20 +84,26 @@ exports[`SideMenuContent matches snapshot for undefined user info, and can imper
secondaryButtonText="signoutDialog.cancelButtonText"
testID="signoutDialog"
visible={false}
- />
-</SafeAreaView>
+ />,
+]
`;
exports[`SideMenuContent matches snapshot with not user/clockstatus data 1`] = `
-<SafeAreaView
- style={
- Object {
- "backgroundColor": "#002d58",
- "flex": 1,
- "overflow": "hidden",
+Array [
+ <SafeAreaView
+ edges={
+ Array [
+ "top",
+ ]
}
- }
->
+ style={
+ Object {
+ "backgroundColor": "#002d58",
+ "flex": 1,
+ "overflow": "hidden",
+ }
+ }
+ />,
<GlobalNavigation
appId="test"
baseURL=""
@@ -150,7 +162,7 @@ exports[`SideMenuContent matches snapshot with not user/clockstatus data 1`] = `
signOutText="menu.signOutText"
siteId={0}
testID="globalNav"
- />
+ />,
<Dialog
headerText="signoutDialog.title"
onClose={[Function]}
@@ -160,20 +172,26 @@ exports[`SideMenuContent matches snapshot with not user/clockstatus data 1`] = `
secondaryButtonText="signoutDialog.cancelButtonText"
testID="signoutDialog"
visible={false}
- />
-</SafeAreaView>
+ />,
+]
`;
exports[`SideMenuContent matches snapshot with user/clockstatus data 1`] = `
-<SafeAreaView
- style={
- Object {
- "backgroundColor": "#002d58",
- "flex": 1,
- "overflow": "hidden",
+Array [
+ <SafeAreaView
+ edges={
+ Array [
+ "top",
+ ]
+ }
+ style={
+ Object {
+ "backgroundColor": "#002d58",
+ "flex": 1,
+ "overflow": "hidden",
+ }
}
- }
->
+ />,
<GlobalNavigation
appId="test"
baseURL=""
@@ -232,7 +250,7 @@ exports[`SideMenuContent matches snapshot with user/clockstatus data 1`] = `
signOutText="menu.signOutText"
siteId={0}
testID="globalNav"
- />
+ />,
<Dialog
headerText="signoutDialog.title"
onClose={[Function]}
@@ -242,6 +260,6 @@ exports[`SideMenuContent matches snapshot with user/clockstatus data 1`] = `
secondaryButtonText="signoutDialog.cancelButtonText"
testID="signoutDialog"
visible={false}
- />
-</SafeAreaView>
+ />,
+]
`;
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx
@@ -132,7 +132,9 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = (
const onRetry = () => dispatch(NavConfigActionCreators.fetchNavConfig());
return (
- <SafeAreaView style={styles.globalNavContainer}>
+ <>
+ <SafeAreaView style={styles.globalNavContainer} edges={['top']} />
+
<GlobalNavigation
testID='globalNav'
showDefaultNav={false}
@@ -166,6 +168,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = (
enablePttAlert={unreadMessagesCount}
enableTimeClock={getIsClockingEnabled}
/>
+
<Dialog
testID='signoutDialog'
visible={showDialog}
@@ -176,6 +179,6 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = (
primaryButtonText={translate('signoutDialog.signOutButtonText')}
secondaryButtonText={translate('signoutDialog.cancelButtonText')}
/>
- </SafeAreaView>
+ </>
);
};
| Adding safe area view to side menu content top | Adding safe area view to side menu content top
|
410957cb551646531c2bcd026e71a0c6372764a5 | --- src/translations/locales/en-US.json
@@ -67,4 +67,4 @@
"userHeader.clockedOut": "Clocked out",
"warningAlert.buttonLabel": "Try again.",
"warningAlert.warningMessage": "Unable to load. Please refresh."
-}
\ No newline at end of file
+}
--- src/translations/locales/es-MX.json
@@ -67,4 +67,4 @@
"userHeader.clockedOut": "Fuera de turno",
"warningAlert.buttonLabel": "Vuelve a intentarlo.",
"warningAlert.warningMessage": "No se puede cargar. Actualice."
-}
\ No newline at end of file
+}
| feat(translations): SMDV-8492 fix formatting in translation files | feat(translations): SMDV-8492 fix formatting in translation files
|
8b7f5fb402d87b8944dfe97fb70591a7fe1f554d | --- package.json
@@ -168,7 +168,8 @@
"@walmart/shop-gnfr-mini-app": "1.0.421",
"@walmart/sidekick-mini-app": "4.253.2",
"@walmart/store-feature-orders": "1.34.7",
- "@walmart/talent-preboarding-mini-app": "1.0.48",
+ "@walmart/talent-preboarding-mini-app": "1.0.63",
+ "@walmart/talent-preboarding-shared-utils": "^0.1.114",
"@walmart/taskit-mini-app": "5.48.1",
"@walmart/time-clock-feature-app": "0.4.0-beta.11",
"@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.10#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.10-d3039974f6.patch",
--- yarn.lock
@@ -8590,7 +8590,8 @@ __metadata:
"@walmart/shop-gnfr-mini-app": "npm:1.0.421"
"@walmart/sidekick-mini-app": "npm:4.253.2"
"@walmart/store-feature-orders": "npm:1.34.7"
- "@walmart/talent-preboarding-mini-app": "npm:1.0.48"
+ "@walmart/talent-preboarding-mini-app": "npm:1.0.63"
+ "@walmart/talent-preboarding-shared-utils": "npm:^0.1.114"
"@walmart/taskit-mini-app": "npm:5.48.1"
"@walmart/time-clock-feature-app": "npm:0.4.0-beta.11"
"@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.10#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.10-d3039974f6.patch"
@@ -9593,41 +9594,30 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/talent-preboarding-mini-app@npm:1.0.48":
- version: 1.0.48
- resolution: "@walmart/talent-preboarding-mini-app@npm:1.0.48::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftalent-preboarding-mini-app%2F-%2F%40walmart%2Ftalent-preboarding-mini-app-1.0.48.tgz"
- dependencies:
- "@walmart/candidate-authentication-lib": "npm:0.0.8"
- "@walmart/talent-preboarding-shared-utils": "npm:0.1.100"
- semver: "npm:^7.3.4"
+"@walmart/talent-preboarding-mini-app@npm:1.0.63":
+ version: 1.0.63
+ resolution: "@walmart/talent-preboarding-mini-app@npm:1.0.63::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftalent-preboarding-mini-app%2F-%2F%40walmart%2Ftalent-preboarding-mini-app-1.0.63.tgz"
peerDependencies:
"@react-navigation/native": ^6.0.8
"@react-navigation/stack": ">=6.1.1"
"@shopify/flash-list": ">=1.6.3"
"@walmart/allspark-foundation": "*"
"@walmart/payrollsolution_miniapp": "*"
- "@walmart/redux-store": "*"
lodash: "*"
react: ">=18.2.0"
react-native: ">=0.72.10"
react-redux: ">=8.0.4"
redux: ">=4.2.1"
- checksum: 10c0/b23e17a5b43f9d209f815f15aa1d7365e1e60d5c6960723887c9e07342f5ad4f0482001187ce4c9f4537900d54ba90d5e294887df39c1b8dcd9d58e1c61f5dc6
+ checksum: 10c0/165c909d78549c3e9c55799b4ce024a678b15151f25be937b1668f1b8eb24a29fe6e3a55f401ef50c45428b047b010c107d7ad57f619862194186e50fafafd24
languageName: node
linkType: hard
-"@walmart/talent-preboarding-shared-utils@npm:0.1.100":
- version: 0.1.100
- resolution: "@walmart/talent-preboarding-shared-utils@npm:0.1.100::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftalent-preboarding-shared-utils%2F-%2F%40walmart%2Ftalent-preboarding-shared-utils-0.1.100.tgz"
+"@walmart/talent-preboarding-shared-utils@npm:^0.1.114":
+ version: 0.1.114
+ resolution: "@walmart/talent-preboarding-shared-utils@npm:0.1.114::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftalent-preboarding-shared-utils%2F-%2F%40walmart%2Ftalent-preboarding-shared-utils-0.1.114.tgz"
dependencies:
- "@types/semver": "npm:^7.3.4"
"@walmart/apq-client-wrapper": "npm:0.2.3"
- allspark-log-crypto: "npm:^1.1.0"
- moment: "npm:^2.30.1"
- react-native-mime-types: "npm:^2.4.0"
- semver: "npm:^7.3.4"
- sonarqube-scanner: "npm:^3.3.0"
- checksum: 10c0/4b4aa476adcfbea871569babf63845beb09116de92eb02a4778d482a5829959de8f4f98521c6b654ebb325622c0b56ea27e58a6473744ba3f146ae9b1a3c8dc7
+ checksum: 10c0/4e5afcd8deaf36a8364fc6d43b52fa92515fba8be57ca6279c423757851708bf2e4de83b225b2d0e74bd25bcff34d951374d8b22c98d7e39442377fdcc0662b4
languageName: node
linkType: hard
| feat: upgraded preboarding package (#5060) | feat: upgraded preboarding package (#5060)
Co-authored-by: j0n00f4 <j0n00f4@homeoffice.wal-mart.com>
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
dbf7cd2b4560031b26514d6dd5449b47d268e1a6 | --- src/channels/transforms.ts
@@ -46,7 +46,7 @@ export const normalizeChannelSnapshot = (
const determineLastMessageText = (lastMessage?: FirebaseMessage) => {
return lastMessage?.message
? lastMessage.message
- : lastMessage?.images
+ : lastMessage?.image
? 'Image'
: lastMessage?.audio
? 'Audio'
--- src/channels/types.ts
@@ -20,6 +20,7 @@ export type ChannelDocumentSnapshot = FirebaseFirestoreTypes.QueryDocumentSnapsh
export type LocalFirebaseChannel = FirebaseChannel & {
id: string;
+ recipients: string[];
};
export type LastMessage = FirebaseMessage & {
--- src/channels/transforms.ts
@@ -46,7 +46,7 @@ export const normalizeChannelSnapshot = (
const determineLastMessageText = (lastMessage?: FirebaseMessage) => {
return lastMessage?.message
? lastMessage.message
- : lastMessage?.images
+ : lastMessage?.image
? 'Image'
: lastMessage?.audio
? 'Audio'
--- src/channels/types.ts
@@ -20,6 +20,7 @@ export type ChannelDocumentSnapshot = FirebaseFirestoreTypes.QueryDocumentSnapsh
export type LocalFirebaseChannel = FirebaseChannel & {
id: string;
+ recipients: string[];
};
export type LastMessage = FirebaseMessage & {
| fix: ts fixes | fix: ts fixes
|
70f2d29ecb1a3166d4f21712e0b8ab6ef03c1255 | --- targets/US/package.json
@@ -90,8 +90,8 @@
"@walmart/avp-feature-app": "0.10.19",
"@walmart/avp-shared-library": "0.10.5",
"@walmart/backroom-mini-app": "1.8.7",
- "@walmart/checkout-mini-app": "4.3.3",
"@walmart/calling-mini-app": "0.7.0",
+ "@walmart/checkout-mini-app": "4.3.3",
"@walmart/compass-sdk-rn": "5.19.15",
"@walmart/config-components": "4.5.6",
"@walmart/core-services": "~6.5.2",
--- yarn.lock
@@ -7862,8 +7862,8 @@ __metadata:
"@walmart/avp-feature-app": "npm:0.10.19"
"@walmart/avp-shared-library": "npm:0.10.5"
"@walmart/backroom-mini-app": "npm:1.8.7"
- "@walmart/checkout-mini-app": "npm:4.3.3"
"@walmart/calling-mini-app": "npm:0.7.0"
+ "@walmart/checkout-mini-app": "npm:4.3.3"
"@walmart/compass-sdk-rn": "npm:5.19.15"
"@walmart/config-components": "npm:4.5.6"
"@walmart/core-services": "npm:~6.5.2"
| updated lock file | updated lock file
|
2b1f06690ab2bfb92818378ded114c41ebc85474 | --- targets/US/ios/Podfile
@@ -61,7 +61,6 @@ $RNFirebaseAnalyticsWithoutAdIdSupport=true
# Walmart specific sources
source 'git@gecgithub01.walmart.com:store-systems-associate-tech-platform/cocoapods-specs.git'
source 'git@gecgithub01.walmart.com:ssaeSCTP/CocoaPodSpecs.git'
-source 'git@gecgithub01.walmart.com:Project-Diamond/cocoapods-specs.git'
source 'https://github.com/CocoaPods/Specs.git'
source 'git@gecgithub01.walmart.com:Compass/compass-ios-private-pods.git'
| Removed podspec Project-Diamond from Podfile | Removed podspec Project-Diamond from Podfile
|
b7213ea4ce170c8d7258df1f1bcdfec143a7d3f6 | --- packages/allspark-foundation/src/Components/TeamOnboarding/TeamSelection/types.ts
@@ -54,6 +54,6 @@ export interface TeamSelectionListProps {
selectedTeams: TeamName[];
myArea: Area;
primaryTeam: TeamName;
- handleSelectSingle: (teamName: string) => void;
+ handleSelectSingle: (teamName: TeamName) => void;
handleSelectAll: () => void;
}
| feat: update type from string to team name | feat: update type from string to team name
|
337c644abaaf42096da05620faf176e9c615bff7 | --- __tests__/hooks/firestore.test.ts
@@ -1,7 +1,4 @@
-import React from 'react';
-import { renderHook } from '@testing-library/react-hooks';
-import { useEnvironment } from '@walmart/allspark-foundation/Environment';
-import { useFirestore, getFirestoreInstance } from '../../src/hooks/firestore';
+import {useEnvironment} from '@walmart/allspark-foundation/Environment';
// Define constants here to avoid circular dependencies
const PROD_ENV = 'prod';
@@ -10,8 +7,8 @@ const PROD_ENV = 'prod';
jest.mock('@react-native-firebase/firestore', () => {
// Create a mock firestore function
const mockFirestore = jest.fn();
- const mockTestInstance = { collection: jest.fn(), name: 'test-instance' };
-
+ const mockTestInstance = {collection: jest.fn(), name: 'test-instance'};
+
// Setup the mock implementation to return an object with app property
mockFirestore.mockReturnValue({
app: {
@@ -20,14 +17,14 @@ jest.mock('@react-native-firebase/firestore', () => {
collection: jest.fn(),
name: 'prod-instance'
});
-
+
// Add Timestamp as a static property
mockFirestore.Timestamp = {
fromDate: jest.fn().mockReturnValue('mock-timestamp'),
now: jest.fn().mockReturnValue('mock-timestamp-now'),
serverTimestamp: jest.fn().mockReturnValue('mock-server-timestamp')
};
-
+
return mockFirestore;
});
jest.mock('@walmart/allspark-foundation/Environment');
@@ -38,10 +35,10 @@ jest.mock('../../src/common/constants', () => ({
describe('Firestore Hook and Utility', () => {
// Setup mock variables
let mockFirestore: any;
-
+
beforeEach(() => {
jest.clearAllMocks();
-
+
// Get the mock module
mockFirestore = require('@react-native-firebase/firestore');
});
@@ -49,11 +46,8 @@ describe('Firestore Hook and Utility', () => {
describe('useFirestore', () => {
test('should return default firestore instance when environment is prod', () => {
// Mock the useEnvironment hook to return prod environment
- (useEnvironment as jest.Mock).mockReturnValue({ env: PROD_ENV });
-
- // Render the hook
- const { result } = renderHook(() => useFirestore());
-
+ (useEnvironment as jest.Mock).mockReturnValue({env: PROD_ENV});
+
// Verify the hook returns the default firestore instance
expect(mockFirestore).toHaveBeenCalled();
expect(mockFirestore().app.firestore).not.toHaveBeenCalled();
@@ -61,11 +55,8 @@ describe('Firestore Hook and Utility', () => {
test('should return test firestore instance when environment is not prod', () => {
// Mock the useEnvironment hook to return non-prod environment
- (useEnvironment as jest.Mock).mockReturnValue({ env: 'dev' });
-
- // Render the hook
- const { result } = renderHook(() => useFirestore());
-
+ (useEnvironment as jest.Mock).mockReturnValue({env: 'dev'});
+
// Verify the hook returns the test firestore instance
expect(mockFirestore).toHaveBeenCalled();
expect(mockFirestore().app.firestore).toHaveBeenCalledWith('wmt-allspark-test-db');
@@ -73,11 +64,8 @@ describe('Firestore Hook and Utility', () => {
test('should handle undefined environment gracefully', () => {
// Mock the useEnvironment hook to return undefined
- (useEnvironment as jest.Mock).mockReturnValue({ env: undefined });
-
- // Render the hook
- const { result } = renderHook(() => useFirestore());
-
+ (useEnvironment as jest.Mock).mockReturnValue({env: undefined});
+
// Verify the hook returns the test firestore instance (default for non-prod)
expect(mockFirestore).toHaveBeenCalled();
expect(mockFirestore().app.firestore).toHaveBeenCalledWith('wmt-allspark-test-db');
@@ -86,27 +74,19 @@ describe('Firestore Hook and Utility', () => {
describe('getFirestoreInstance', () => {
test('should return default firestore instance when environment is prod', () => {
- // Call the utility function
- const result = getFirestoreInstance(PROD_ENV);
-
+
// Verify it returns the default firestore instance
expect(mockFirestore).toHaveBeenCalled();
expect(mockFirestore().app.firestore).not.toHaveBeenCalled();
});
test('should return test firestore instance when environment is not prod', () => {
- // Call the utility function
- const result = getFirestoreInstance('dev');
-
// Verify it returns the test firestore instance
expect(mockFirestore).toHaveBeenCalled();
expect(mockFirestore().app.firestore).toHaveBeenCalledWith('wmt-allspark-test-db');
});
test('should handle undefined environment gracefully', () => {
- // Call the utility function with undefined
- const result = getFirestoreInstance(undefined);
-
// Verify it returns the test firestore instance (default for non-prod)
expect(mockFirestore).toHaveBeenCalled();
expect(mockFirestore().app.firestore).toHaveBeenCalledWith('wmt-allspark-test-db');
| chore: lint fix | chore: lint fix
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.