commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
2bc6602064a8172473e00e124d25baef9e054e32 | --- src/managerExperience/images/index.tsx
@@ -1,46 +0,0 @@
-export const images = {
- 'Admin & Support':
- 'https://i5-me.walmartimages.com/images/teams/totalstore-team-427a5cddc7.png',
- Apparel:
- 'https://i5-me.walmartimages.com/images/teams/apparel-team-3a81ffccf4.png',
- 'Asset Protection':
- 'https://i5-me.walmartimages.com/images/teams/assetprotection-team-408964d173.png',
- 'Auto Care Center':
- 'https://i5-me.walmartimages.com/images/teams/autocarecenter-team-6c77dfd39f.png',
- 'Deli/Bakery':
- 'https://i5-me.walmartimages.com/images/teams/delibakery-team-9aca808f6d.png',
- Digital:
- 'https://i5-me.walmartimages.com/images/teams/digital-team-330e13ad96.png',
- 'Digital ON':
- 'https://i5-me.walmartimages.com/images/teams/digital-team-330e13ad96.png',
- Entertainment:
- 'https://i5-me.walmartimages.com/images/teams/entertainment-team-6dd2ca6713.png',
- 'Food/Consumables':
- 'https://i5-me.walmartimages.com/images/teams/foodconsumeables-team-d27ecbdead.png',
- 'Front End':
- 'https://i5-me.walmartimages.com/images/teams/frontend-team-e6044e9791.png',
- Fuel: 'https://i5-me.walmartimages.com/images/teams/fuel-team-1eeec3363a.png',
- Hardlines:
- 'https://i5-me.walmartimages.com/images/teams/hardlines-team-7c6dca6bb7.png',
- 'Health & Beauty':
- 'https://i5-me.walmartimages.com/images/teams/pharmacy-team-a31d58c160.png',
- Home: 'https://i5-me.walmartimages.com/images/teams/home-team-24f5f53a8a.png',
- Management:
- 'https://i5-me.walmartimages.com/images/teams/totalstore-team-427a5cddc7.png',
- 'Meat/Produce':
- 'https://i5-me.walmartimages.com/images/teams/meatproduce-team-b8d499d1e1.png',
- Pharmacy:
- 'https://i5-me.walmartimages.com/images/teams/pharmacy-team-a31d58c160.png',
- Remodel:
- 'https://i5-me.walmartimages.com/images/teams/remodel-team-821a5c7567.png',
- Seasonal:
- 'https://i5-me.walmartimages.com/images/teams/seasonal-team-726ffbf6f6.png',
- 'Stocking Day 1':
- 'https://i5-me.walmartimages.com/images/teams/stocking-team-2bdf52809b.png',
- 'Stocking Day 2':
- 'https://i5-me.walmartimages.com/images/teams/stocking-team-2bdf52809b.png',
- 'Stocking ON':
- 'https://i5-me.walmartimages.com/images/teams/stocking-team-2bdf52809b.png',
- 'Vision Center':
- 'https://i5-me.walmartimages.com/images/teams/visioncenter-team-bd33a2aa39.png',
-};
| feat: removed unused images file | feat: removed unused images file
|
a645ab03037034cb53314b7891ff0aa14c14f957 | --- core/__tests__/__mocks__/@walmart/time-clock-mini-app.js
@@ -1,4 +1,5 @@
module.exports = {
+ ...jest.requireActual('@walmart/time-clock-mini-app'),
TimeClockScreen: 'TimeClockScreen',
NewTorScreen: 'NewTorScreen',
TorInboxScreen: 'TorInboxScreen',
@@ -8,19 +9,6 @@ module.exports = {
AttendanceModalScreen: 'AttendanceModalScreen',
TimeClockWidget: 'TimeClockWidget',
Toast: 'Toast',
- PunchActions: {
- setLastPunchType: jest.fn((lastPunchType, api) => ({
- type: 'SET_LAST_PUNCH_TYPE',
- payload: { lastPunchType, api },
- })),
- setLastPunchTime: jest.fn((lastPunchTime, api) => ({
- type: 'SET_LAST_PUNCH_TIME',
- payload: { lastPunchTime, api },
- })),
- },
- ClockAppActions: {
- setDisableGeoValidation: jest.fn(() => (true)),
- },
ClockAppSelectors: {
getGeoValidationDisabled: jest.fn(),
}
| added require actual for timeclockminiapp | added require actual for timeclockminiapp
|
a2d892300efccce39319da89f308328f62374971 | --- src/managerExperience/screens/AllTeamsScreen/AllTeamsScreen.tsx
@@ -125,7 +125,7 @@ export const AllTeamsScreen = () => {
primaryTeamArea,
);
- if (siteIsDC && userIsDC) {
+ if (siteIsDC || (userIsDC && siteIsDC)) {
return renderDCSectionList();
}
| modification for when DC data is shown | modification for when DC data is shown
|
7ea98f32eee46c2f3167f2884e79641d109f094a | --- package-lock.json
@@ -3228,9 +3228,9 @@
"integrity": "sha512-R+Kkr3KRExpa59xqPkVPF66+zGo88oZiqbfFx+BzrIJE6eUTUKTGCeiidVci+xjmfSnp6TKrMUkRBxh2b/GffA=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.1.50",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.50.tgz",
- "integrity": "sha512-dP5U/wZ+slWTRiL7ci7d5WyQdYdvq087nApUXK4kndpB31UvcN3JWe0EuHjHrx/oE+xKges4c5rMGEOwIT/SeQ==",
+ "version": "0.1.52",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.52.tgz",
+ "integrity": "sha512-XdtyOoTcIppZAAV52QwcD3YldtP6D2WYRuKKM3gTYjwCFhmDJ+pLd40RkvwObSl9HDNBieW8iBDJqzHUEVl04Q==",
"requires": {
"@react-native-community/datetimepicker": "^3.0.3",
"javascript-time-ago": "^2.3.4",
--- package.json
@@ -77,7 +77,7 @@
"@walmart/redux-store": "^1.0.12",
"@walmart/schedule-mini-app": "0.2.66",
"@walmart/settings-mini-app": "1.1.20",
- "@walmart/time-clock-mini-app": "0.1.50",
+ "@walmart/time-clock-mini-app": "0.1.52",
"@walmart/ui-components": "1.0.102",
"@walmart/welcomeme-mini-app": "0.5.27",
"crypto-js": "^3.3.0",
| Time clock fixes and splunk changes (#454) | Time clock fixes and splunk changes (#454)
Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com> |
e8a4982898d8e45284c89591c2fec5de98efcb26 | --- __tests__/utils/timestamp-test.ts
@@ -1,6 +1,10 @@
import {channelRowTimeStamp} from '../../src/utils/timestamps';
import moment from 'moment';
+jest.mock('../../src/utils/timestamps', () =>
+ jest.requireActual('../../src/utils/timestamps'),
+);
+
const mockTranslationFunction = jest.fn((key) => key);
jest.mock('../../src/utils/timestamps', () =>
@@ -8,7 +12,7 @@ jest.mock('../../src/utils/timestamps', () =>
);
describe('channelRowTimeStamp function', () => {
- const currentDate = moment('2023-09-21');
+ const currentDate = moment();
it('returns the formatted time when lastMessageTimeStamp is on the same day', () => {
const lastMessageTimeStamp = currentDate.format();
const result = channelRowTimeStamp(
@@ -45,3 +49,22 @@ describe('channelRowTimeStamp function', () => {
expect(result).toBe(expectedKey);
});
});
+
+it('returns null when lastMessageTimeStamp is null', () => {
+ const lastMessageTimeStamp = null;
+ const result = channelRowTimeStamp(
+ lastMessageTimeStamp,
+ mockTranslationFunction,
+ );
+ expect(result).toBe('timestamp.invalid date');
+});
+
+it('returns null when lastMessageTimeStamp is undefined', () => {
+ const lastMessageTimeStamp = undefined;
+ const currentTime = moment().format('hh:mm a');
+ const result = channelRowTimeStamp(
+ lastMessageTimeStamp,
+ mockTranslationFunction,
+ );
+ expect(result).toBe(currentTime);
+});
--- __tests__/utils/user-test.ts
@@ -1,5 +1,4 @@
import {formatSchedule, getScheduleStartAndEndTime} from '../../src/utils';
-// import {} from '../../src/utils';
describe('getScheduleStartAndEndTime', () => {
it('start time and end time should follow 12 hour clock', () => {});
--- src/components/AssociateRosterItem/style.ts
@@ -1,17 +1,10 @@
import {StyleSheet} from 'react-native';
import {colors} from '@walmart/gtp-shared-components';
-import {Platform} from 'react-native';
export const styles = StyleSheet.create({
card: {
borderRadius: 0,
- ...Platform.select({
- android: {
- elevation: 0,
- },
- ios: {
- shadowOpacity: 0,
- },
- }),
+ shadowOpacity: 0,
+ marginHorizontal: 16,
},
cardContent: {
marginTop: 0,
--- __tests__/utils/timestamp-test.ts
@@ -1,6 +1,10 @@
import {channelRowTimeStamp} from '../../src/utils/timestamps';
import moment from 'moment';
+jest.mock('../../src/utils/timestamps', () =>
+ jest.requireActual('../../src/utils/timestamps'),
+);
+
const mockTranslationFunction = jest.fn((key) => key);
jest.mock('../../src/utils/timestamps', () =>
@@ -8,7 +12,7 @@ jest.mock('../../src/utils/timestamps', () =>
);
describe('channelRowTimeStamp function', () => {
- const currentDate = moment('2023-09-21');
+ const currentDate = moment();
it('returns the formatted time when lastMessageTimeStamp is on the same day', () => {
const lastMessageTimeStamp = currentDate.format();
const result = channelRowTimeStamp(
@@ -45,3 +49,22 @@ describe('channelRowTimeStamp function', () => {
expect(result).toBe(expectedKey);
});
});
+
+it('returns null when lastMessageTimeStamp is null', () => {
+ const lastMessageTimeStamp = null;
+ const result = channelRowTimeStamp(
+ lastMessageTimeStamp,
+ mockTranslationFunction,
+ );
+ expect(result).toBe('timestamp.invalid date');
+});
+
+it('returns null when lastMessageTimeStamp is undefined', () => {
+ const lastMessageTimeStamp = undefined;
+ const currentTime = moment().format('hh:mm a');
+ const result = channelRowTimeStamp(
+ lastMessageTimeStamp,
+ mockTranslationFunction,
+ );
+ expect(result).toBe(currentTime);
+});
--- __tests__/utils/user-test.ts
@@ -1,5 +1,4 @@
import {formatSchedule, getScheduleStartAndEndTime} from '../../src/utils';
-// import {} from '../../src/utils';
describe('getScheduleStartAndEndTime', () => {
it('start time and end time should follow 12 hour clock', () => {});
--- src/components/AssociateRosterItem/style.ts
@@ -1,17 +1,10 @@
import {StyleSheet} from 'react-native';
import {colors} from '@walmart/gtp-shared-components';
-import {Platform} from 'react-native';
export const styles = StyleSheet.create({
card: {
borderRadius: 0,
- ...Platform.select({
- android: {
- elevation: 0,
- },
- ios: {
- shadowOpacity: 0,
- },
- }),
+ shadowOpacity: 0,
+ marginHorizontal: 16,
},
cardContent: {
marginTop: 0,
| Added null and undefined checks | Added null and undefined checks
|
4b1abd5d554483e229031acf02319ce4ee104c6b | --- .yarnrc.yml
@@ -1,3 +1,3 @@
nodeLinker: node-modules
-npmRegistryServer: "${REPOSOLNS_NPM_REPO}"
\ No newline at end of file
+npmRegistryServer: "${REPOSOLNS_NPM_REPO}"
| chore(ui): looper yml error log update | chore(ui): looper yml error log update
|
29dbd03ff1c45971bcc54fef30ab98b64f733a89 | --- package-lock.json
@@ -3138,9 +3138,9 @@
"integrity": "sha512-Nw48GsUKz2HkFr1qjavFld2pryaG9Jzn/QPT9C/xk7UgxTs4UeCmSJEZ99oLeSIV3TA9rgAH8dThkqzwmjP6ew=="
},
"@walmart/iteminfo-mini-app": {
- "version": "1.0.12",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-1.0.12.tgz",
- "integrity": "sha512-OuN/MWvBJraZ9R6fr1xspLc7vxOWAf9RS59GX3vNJtpLLIaUjMcsieBboDzW6TvqG0036y/v1hY7xtd90fRByg==",
+ "version": "1.0.14",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-1.0.14.tgz",
+ "integrity": "sha512-Cwo6jR3F2WMTlQdKPWXFAsKV2cKl/uov4nyZXv2KcIeVpP6zc089p7nvfT6UL1gGwVUlx9w4Xv7PW8KVeVeYLA==",
"requires": {
"react-native-chart-kit": "6.6.1"
}
--- package.json
@@ -76,7 +76,7 @@
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/ims-print-services-ui": "0.0.19",
"@walmart/inbox-mini-app": "0.0.94",
- "@walmart/iteminfo-mini-app": "1.0.12",
+ "@walmart/iteminfo-mini-app": "1.0.14",
"@walmart/manager-approvals-miniapp": "0.0.32",
"@walmart/moment-walmart": "1.0.4",
"@walmart/push-to-talk-mini-app": "0.5.21",
| Added drawer to item info landing page | Added drawer to item info landing page
|
98e8733d4425da0ca9e49d58ef5383e36344d49a | --- .looper.yml
@@ -2,7 +2,7 @@ node: ((osx||stable_osx)&&!dualcore&&!MAC-DRFQLAB-MINI27)
tools:
nodejs:
- - 14.19.3
+ - 18.12.1
scheduling: concurrent
| chore: updating looper node version | chore: updating looper node version
|
940f7cc9f80c9cfebfe255ff9827e40dd08a51c6 | --- .looper.multibranch.yml
@@ -4,7 +4,7 @@ inherit: 'job:///metropolis/metroloop/metroloop-parent'
## Whenever you update the nodes, please update it at the two-place, below line & the global variable LOOPER_NODES
##
-node: ((osx||stable_osx)&&!dualcore&&!MAC-LAB-MINI04&&!MAC-DRFQLAB-MINI26&&!MAC-DRFQLAB-MINI30&&!MAC-LAB-MINI44)
+node: ((osx||stable_osx)&&!dualcore&&!MAC-LAB-MINI04&&!MAC-DRFQLAB-MINI26&&!MAC-DRFQLAB-MINI30&&!MAC-LAB-MINI44&&!MAC-LAB-MINI05)
## Global tools used across all flows.
tools:
@@ -38,7 +38,7 @@ envs:
global:
variables:
CI: true
- LOOPER_NODES: '((osx||stable_osx)&&!dualcore&&!MAC-LAB-MINI04&&!MAC-DRFQLAB-MINI26&&!MAC-DRFQLAB-MINI30&&!MAC-LAB-MINI44)'
+ LOOPER_NODES: '((osx||stable_osx)&&!dualcore&&!MAC-LAB-MINI04&&!MAC-DRFQLAB-MINI26&&!MAC-DRFQLAB-MINI30&&!MAC-LAB-MINI44&&!MAC-LAB-MINI05)'
GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}"
TMPDIR: /tmp
| Update .looper.multibranch.yml | Update .looper.multibranch.yml |
be4015c96096f2260a9b3e22c4b98f9933819c55 | --- __tests__/navigation/AssociateHallwayNav/MainStackNavTest.tsx
@@ -63,6 +63,10 @@ jest.mock('@walmart/me-field-mini-app', () => {
};
});
+jest.mock('@walmart/metrics-mini-app', () => ({
+ registerAskSamWidgets : jest.fn(),
+}));
+
describe('AssociateHallwayNav', () => {
it('matches snapshot; handles mount and unmount effects', () => {
let component: ReactTestRenderer;
--- __tests__/startup/AssociateStartupTest.ts
@@ -5,6 +5,7 @@ import {useLogger} from '@walmart/core-services/Logger';
import {addSagas} from '@walmart/redux-store';
import {useHttpClient} from '@walmart/core-services/HttpClient';
import {useRbacConfig} from '@walmart/config-components';
+import {registerAskSamWidgets} from '@walmart/metrics-mini-app';
import {useAssociateStartup} from '../../src/startup/AssociateStartup';
import {StartupActionCreators} from '../../src/startup/StartupRedux';
@@ -16,6 +17,7 @@ import {surveySagas} from '../../src/survey/SurveySaga';
import {initNavConfig} from '../../src/navConfig';
import {watchForRbacRequest} from '../../src/rbacConfig/RbacSagas';
+
jest.mock('../../src/versions', () => ({
setupAppVersions: jest.fn(),
}));
@@ -41,6 +43,10 @@ jest.mock('../../src/navConfig', () => ({
initNavConfig: jest.fn(() => mockCancelNavConfig),
}));
+jest.mock('@walmart/metrics-mini-app', () => ({
+ registerAskSamWidgets : jest.fn(),
+}));
+
const mockTask = addSagas(null);
const dispatch = useDispatch();
const logger = useLogger();
@@ -49,6 +55,9 @@ const httpClient = useHttpClient();
describe('useAssociateStartup', () => {
it('works', () => {
const {unmount} = renderHook(() => useAssociateStartup());
+
+ expect(registerAskSamWidgets).toHaveBeenCalled();
+
expect(useRbacConfig).toHaveBeenCalledWith(httpClient, logger);
expect(dispatch).toHaveBeenCalledWith(
| Unit test cases | Unit test cases
|
95189b30d136b953d86b0c265a1fea67d99a8cde | --- .yarn/install-state.gz
Binary files /dev/null and b/.yarn/install-state.gz differ
--- yarn.lock
@@ -6456,9 +6456,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/metrics-mini-app@npm:0.20.8":
- version: 0.20.8
- resolution: "@walmart/metrics-mini-app@npm:0.20.8"
+"@walmart/metrics-mini-app@npm:0.21.1":
+ version: 0.21.1
+ resolution: "@walmart/metrics-mini-app@npm:0.21.1"
dependencies:
base-64: "npm:^1.0.0"
peerDependencies:
@@ -6482,7 +6482,7 @@ __metadata:
react-native-linear-gradient: ">=2.6.2"
react-redux: ">=8.0.4"
reduxsauce: ">=1.2.0"
- checksum: 10c0/ff80c78b62a13f2036dcbd2582c6f26635b8899afb0424a3c856e8a40f2823a107c5731fabc454141dd622b74712ba4b04f85a0c04f0028d47f43079aacb3953
+ checksum: 10c0/68f89320f53f88eaa754d5a720387f0a8602f4bc2ed5eb5d1795f5af314eda1f0bb06fbf98438bbca5ef42c12c5d98a293f7fd6c853feb27f3e242c057b1bd6d
languageName: node
linkType: hard
@@ -7667,7 +7667,7 @@ __metadata:
"@walmart/me-at-walmart-athena-queries": "npm:6.0.9"
"@walmart/me-at-walmart-common": "npm:6.0.9"
"@walmart/me-at-walmart-container": "npm:6.0.9"
- "@walmart/metrics-mini-app": "npm:0.20.8"
+ "@walmart/metrics-mini-app": "npm:0.21.1"
"@walmart/mod-flex-mini-app": "npm:1.16.4"
"@walmart/moment-walmart": "npm:1.0.4"
"@walmart/money-auth-shared-components": "npm:0.1.4"
| Bumping metrics mini app version after merging the feature/drop21 branch into feature/metrics-drop21 branch | Bumping metrics mini app version after merging the feature/drop21 branch into feature/metrics-drop21 branch
|
94f55809b51d308b1c4b2fca7ddd845e44e00dab | --- package-lock.json
@@ -4331,9 +4331,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.72",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.72.tgz",
- "integrity": "sha512-baMI88FH5WWxsU6Ml1mIvBsSezpUldsfVcraELzcIYIRd4lZQGqLqLXH6uUrHXla7pgFbicFi1pg7r6FNabkgg=="
+ "version": "0.5.73",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.73.tgz",
+ "integrity": "sha512-Fdp4mKEpvmi/dbSFooWmafvhZVjY/aSbJpk+yH63WwONKM6cbmsNgDlw7bMxEaDOJLu8OY2UX7TyCkU8L0MoaA=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -88,7 +88,7 @@
"@walmart/manager-approvals-miniapp": "0.0.58",
"@walmart/metrics-mini-app": "0.4.14",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.5.72",
+ "@walmart/push-to-talk-mini-app": "0.5.73",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| updating ptt mini app version | updating ptt mini app version
|
b0af0d815eb53ea31c6c8b184b15c3d3cfaf51cf | --- packages/allspark-graphql-client/src/apollo/SharedClient.ts
@@ -0,0 +1,29 @@
+import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
+
+export const clientRef: { current?: ApolloClient<NormalizedCacheObject> } = {
+ current: undefined,
+};
+
+export const getGraphQLClient = (): ApolloClient<NormalizedCacheObject> => {
+ if (!clientRef.current) {
+ throw new Error(
+ `GraphQL client is not defined. Ensure the AllsparkGraphQLProvider is setup before trying to access globally.`
+ );
+ }
+ return clientRef.current;
+};
+
+export const SharedClient: Pick<
+ ApolloClient<NormalizedCacheObject>,
+ 'query' | 'mutate' | 'subscribe'
+> = {
+ query: (options) => {
+ return getGraphQLClient().query(options);
+ },
+ mutate: (options) => {
+ return getGraphQLClient().mutate(options);
+ },
+ subscribe: (options) => {
+ return getGraphQLClient().subscribe(options);
+ },
+};
--- packages/allspark-graphql-client/src/apollo/index.ts
@@ -2,4 +2,4 @@ export * from './hooks';
export * from './provider';
export * from './types';
export { gql } from './utils';
-export { query, mutate, subscribe } from './globalRef';
+export { SharedClient } from './SharedClient';
--- packages/allspark-graphql-client/src/apollo/provider.tsx
@@ -17,6 +17,7 @@ import { buildAxiosFetch } from '@lifeomic/axios-fetch';
import { IHttpClient } from '@walmart/allspark-http-client';
import { generateQueryHash } from '../utils/generateQueryHash';
+import { clientRef } from './SharedClient';
export const AllsparkGraphQLProvider = (
props: PropsWithChildren<{
@@ -63,6 +64,7 @@ export const AllsparkGraphQLProvider = (
apolloDevToolsInit(newClient);
}
+ clientRef.current = newClient;
return newClient;
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
| refactor: move shared client methods under one obect | refactor: move shared client methods under one obect
|
bc85f8eb6f0c4612c38919500b8aca407f22320e | --- packages/allspark-foundation/src/Core/docs/Migrating.md
@@ -142,6 +142,10 @@ If there is an issue with a subdependency or a version requirement you believe t
> NOTE: Use overrides sparingly. If you find yourself needing to use overrides, please reach out to that libraries team to discuss the issue.
+### Using Yarn?
+
+If using yarn, peer dependencies are not automatically installed. Follow the same process outlined above but pay attention to the warnings about missing dependencies required by the `@walmart/allspark-foundation` and `@walmart/me-at-walmart-container` packages. These missing dependencies will need to be added to your `devDependencies` so they're installed locally while testing.
+
### Allspark Link
The foundation provides a script that will automatically link any native modules required by the foundations dependencies. Before running this, lets remove any pods from your Podfile that are no longer needed.
| docs: add note for yarn setup in migration doc | docs: add note for yarn setup in migration doc
|
be32d993a7db29780699f451857fc50415fc2770 | --- package-lock.json
@@ -12789,9 +12789,9 @@
}
},
"react-native-wm-barcode": {
- "version": "2.25.0",
- "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.25.0.tgz",
- "integrity": "sha512-xmSBA8p4Zol8ANcEytrb3cGukmnVCbVqRzRFXKOcKH1LPMVn/wnWEQ0itu8x24k4/guMa/Mf8vagstrCjAnMGg=="
+ "version": "2.29.0",
+ "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.29.0.tgz",
+ "integrity": "sha512-xXs/c6oyhcDIqTxwVt+H9FegeYYNZ1fF5WfatNA/k9oSfUsbEGEALIxJNc/wJDnra51SeEAm+XAO9SI+mmjOCw=="
},
"react-native-wm-config": {
"version": "0.1.1",
--- package.json
@@ -130,7 +130,7 @@
"react-native-video": "^5.1.0-alpha8",
"react-native-view-shot": "^3.1.2",
"react-native-webview": "^10.7.0",
- "react-native-wm-barcode": "2.25.0",
+ "react-native-wm-barcode": "2.29.0",
"react-native-wm-config": "^0.1.1",
"react-native-wm-network": "^0.1.0",
"react-native-wm-notification": "^1.0.0",
| updated scanner version | updated scanner version
|
9324489a2e93c8576c6b41ff3706aac6ea0fdb04 | --- packages/me-at-walmart-container/src/http/index.ts
@@ -6,6 +6,7 @@ import { ErrorLoggerInterceptor } from './interceptors/errorLogger';
import { HeaderSizeInterceptor } from './interceptors/headerSize';
import { PerformanceInterceptor } from './interceptors/performance';
import { SuccessLoggerInterceptor } from './interceptors/successLogger';
+import { UnauthorizedInterceptor } from './interceptors/unauthorized';
export const MeAtWalmartHttpInterceptors: Interceptor[] = [
AddCorrelationInterceptor,
@@ -15,6 +16,7 @@ export const MeAtWalmartHttpInterceptors: Interceptor[] = [
HeaderSizeInterceptor,
PerformanceInterceptor,
SuccessLoggerInterceptor,
+ UnauthorizedInterceptor,
];
export const MeAtWalmartHttpConfig = {
| Update index.ts | Update index.ts |
f8df8184af4fed7c2b179e5c19f51a281d614688 | --- graphql.yml
@@ -17,7 +17,7 @@ applications:
tags:
- "v1"
- name: "GetDailyRoster"
- hash: "5b74bdf7a7de55faf2f040b311a6b4ba1a6099245e53caa2c600c967152455a7"
+ hash: "3ad96d069a6b510162bd3e1e0a759da94e1b8006986130f651ab5f460d5615aa"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v1"
@@ -39,7 +39,7 @@ applications:
tags:
- "v1"
- name: "GetDailyRoster"
- hash: "5b74bdf7a7de55faf2f040b311a6b4ba1a6099245e53caa2c600c967152455a7"
+ hash: "3ad96d069a6b510162bd3e1e0a759da94e1b8006986130f651ab5f460d5615aa"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v1"
@@ -61,7 +61,7 @@ applications:
tags:
- "v1"
- name: "GetDailyRoster"
- hash: "5b74bdf7a7de55faf2f040b311a6b4ba1a6099245e53caa2c600c967152455a7"
+ hash: "3ad96d069a6b510162bd3e1e0a759da94e1b8006986130f651ab5f460d5615aa"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v1"
--- src/queries/getDailyRoster.graphql
@@ -16,14 +16,8 @@ query GetDailyRoster($countryCode: String!, $days: Int!, $startDate: Date!, $sto
__typename
meAtWalmartPreferences {
__typename
- displayPreferences {
- __typename
- birthday
- }
notificationPreferences {
__typename
- all
- calls
textMessages
}
}
--- src/queries/getDailyRoster.ts
@@ -12,7 +12,7 @@ export type GetDailyRosterQueryVariables = Types.Exact<{
}>;
-export type GetDailyRosterQuery = { __typename?: 'Query', getDailyRoster?: ({ __typename: 'MewAssociate', associateId: string, firstName?: string | null, jobCategoryCodeDesc?: string | null, lastName?: string | null, preferredFirstName?: string | null, preferredFullName?: string | null, preferredLastName?: string | null, userId?: string | null, absentData?: { __typename: 'AbsentData', absenceTypeCode?: number | null } | null, associatePreferences?: { __typename: 'AssociatePreferences', meAtWalmartPreferences?: { __typename: 'MeAtWalmartPreferences', displayPreferences?: { __typename: 'DisplayPreferences', birthday?: boolean | null } | null, notificationPreferences?: { __typename: 'NotificationPreferences', all?: boolean | null, calls?: boolean | null, textMessages?: boolean | null } | null } | null } | null, punch?: { __typename: 'Punch', clockStatus?: string | null, lastPunchType?: string | null } | null } | null)[] | null };
+export type GetDailyRosterQuery = { __typename?: 'Query', getDailyRoster?: ({ __typename: 'MewAssociate', associateId: string, firstName?: string | null, jobCategoryCodeDesc?: string | null, lastName?: string | null, preferredFirstName?: string | null, preferredFullName?: string | null, preferredLastName?: string | null, userId?: string | null, absentData?: { __typename: 'AbsentData', absenceTypeCode?: number | null } | null, associatePreferences?: { __typename: 'AssociatePreferences', meAtWalmartPreferences?: { __typename: 'MeAtWalmartPreferences', notificationPreferences?: { __typename: 'NotificationPreferences', textMessages?: boolean | null } | null } | null } | null, punch?: { __typename: 'Punch', clockStatus?: string | null, lastPunchType?: string | null } | null } | null)[] | null };
export const GetDailyRosterDocument = gql`
@@ -34,14 +34,8 @@ export const GetDailyRosterDocument = gql`
__typename
meAtWalmartPreferences {
__typename
- displayPreferences {
- __typename
- birthday
- }
notificationPreferences {
__typename
- all
- calls
textMessages
}
}
| feat(ui): update query | feat(ui): update query
|
c15347eb15dc948a1b6af341c94c46da0284ee1e | --- core/__tests__/appReview/sagasTest.ts
@@ -50,6 +50,31 @@ describe('handleAppReviewPrompt', () => {
call(checkAppReviewRequest, DEFAULT_CONFIG),
);
});
+
+ it('skips when appReviewPromptDisabled is true', () => {
+ const iterator = handleAppReviewPrompt();
+ const configWithDisabled = {
+ appReviewPromptDisabled: true
+ };
+
+ expect(iterator.next().value).toEqual(select(ConfigSelectors.getData));
+ expect(iterator.next(configWithDisabled).done).toBe(true);
+ });
+
+ it('skips when canPromptAppReview is false', () => {
+ const iterator = handleAppReviewPrompt();
+ const config = {
+ appReviewPromptDisabled: false,
+ 'app-review': DEFAULT_CONFIG
+ };
+
+ expect(iterator.next().value).toEqual(select(ConfigSelectors.getData));
+ expect(iterator.next(config).value).toEqual(
+ call(checkAppReviewRequest, DEFAULT_CONFIG)
+ );
+ // When canPromptAppReview is false, it should end without calling onAppReviewRequest
+ expect(iterator.next(false).done).toBe(true);
+ });
// checkAppReviewRequest tests
it('works as expected when app review is enabled', () => {
| added branch coverage for canPromptAppReview | added branch coverage for canPromptAppReview
|
4b1479d1042ad218832bc286281d487d86b5beff | --- __tests__/navigation/USHallway/AssociateHallwayNav/Tabs/ConfigTest.tsx
@@ -241,6 +241,16 @@ test('TabListeners', () => {
});
describe('getBottomNavConfigMap', () => {
+ let selector: any;
+
+ beforeEach(() => {
+ selector = getBottomNavConfigMap.resultFunc;
+ });
+
+ afterEach(() => {
+ jest.resetAllMocks();
+ });
+
it('returns default config', () => {
const config = [];
const DEFAULT_BOTTOMNAV_CONFIG = {
@@ -253,4 +263,47 @@ describe('getBottomNavConfigMap', () => {
}
expect(getBottomNavConfigMap(config)).toEqual(DEFAULT_BOTTOMNAV_CONFIG);
});
+
+ it('should disable taskit and inbox if sidekick is enabled', () => {
+ const config = [
+ {id: 'askSam', enabled: true},
+ {id: 'me', enabled: true},
+ {id: 'myTeam', enabled: true},
+ {id: 'taskit', enabled: true},
+ {id: 'inbox', enabled: true},
+ {id: 'sidekick', enabled: true},
+ ];
+ const expectedOutput = {
+ askSam: {enabled: true},
+ me: {enabled: true},
+ myTeam: {enabled: true},
+ taskit: {enabled: false},
+ inbox: {enabled: false},
+ sidekick: {enabled: true},
+ }
+ expect(selector(config)).toEqual(expectedOutput);
+ })
+
+ test('should preserve inbox if neither sidekick nor taskit are enabled', () => {
+ const inputConfig = [
+ {id: 'askSam', enabled: true},
+ {id: 'me', enabled: true},
+ {id: 'myTeam', enabled: true},
+ {id: 'taskit', enabled: false},
+ {id: 'inbox', enabled: true},
+ {id: 'sidekick', enabled: false},
+ ];
+
+ const expectedOutput = {
+ askSam: {enabled: true},
+ me: {enabled: true},
+ myTeam: {enabled: true},
+ taskit: {enabled: false},
+ inbox: {enabled: true},
+ sidekick: {enabled: false},
+ };
+
+ const result = selector(inputConfig);
+ expect(result).toEqual(expectedOutput);
+ });
});
| test(ui): ALLSPARK-5816 added test to src/navigation/USHallway/AssociateHallwayNav/Tabs/config.tsx (#4066) | test(ui): ALLSPARK-5816 added test to src/navigation/USHallway/AssociateHallwayNav/Tabs/config.tsx (#4066)
* test: ALLSPARK-5816 added test to __tests__/navigation/USHallway/AssociateHallwayNav/Tabs/ConfigTest.tsx
* fixed lint error
---------
Co-authored-by: Olayiwola Oludipe <vn57guq@m-g3g94hm4w9.homeoffice.wal-mart.com>
Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com> |
2ac134d0daaaa30d7a7ce88cb12516621d6c83f4 | --- src/components/FilterChipGroup/FilterChipGroup.tsx
@@ -15,6 +15,7 @@ import {NavigationModule} from '@walmart/allspark-foundation/Navigation';
import {SiteSelectors} from '@walmart/allspark-foundation/Site';
import {analytics} from '../../logger/analytics';
import {useUserCanSeeHub} from '@walmart/allspark-foundation-hub';
+import {useModalGuard} from '../../hooks';
export const FilterChipGroup = ({
isPrimaryTeam,
@@ -31,6 +32,9 @@ export const FilterChipGroup = ({
const showShiftSwitcher = !isPrimaryTeam && !isSalariedOrLead && isSiteDC;
const isShiftSwitcherEnabled = useSelector(shiftSwitcherEnabled);
+ // Add modal guard to prevent multiple modal instances
+ const guardedOpenModal = useModalGuard('ShiftSwitcherModal', {cooldownMs: 500});
+
const filteredFilterChips = isSalariedOrLead
? [...filterChips]
: filterChips.filter((chip) => chip.id === FilterValue.clockedIn);
@@ -59,11 +63,13 @@ export const FilterChipGroup = ({
analytics('open_shift_modal', {
message: 'Open Shift Switcher Modal',
});
- NavigationModule.manager.openModal('roster.ShiftSwitcherModal' as any, {
- setShift,
- selectedShift: externalSelectedShift,
+ guardedOpenModal(() => {
+ NavigationModule.manager.openModal('roster.ShiftSwitcherModal' as any, {
+ setShift,
+ selectedShift: externalSelectedShift,
+ });
});
- }, [externalSelectedShift, setShift]);
+ }, [externalSelectedShift, setShift, guardedOpenModal]);
const getShiftLabel = useMemo(() => {
if (!externalSelectedShift) {
--- src/hooks/index.ts
@@ -8,6 +8,7 @@ export * from './totalSiteRoster';
export * from './useTotalSiteDCRoster';
export * from './useTeamBasedRoster';
export * from './useTeamBasedDCRoster';
+export * from './useModalGuard';
export const handleOnError = (
queryName: string,
--- src/hooks/useModalGuard.ts
@@ -0,0 +1,104 @@
+/**
+ * @fileoverview Modal Guard Hook - Prevents Multiple Modal Instances
+ *
+ * This hook provides a mechanism to prevent multiple modal instances from opening
+ * when users rapidly tap buttons or links that trigger modals. Uses a singleton
+ * pattern at module level to ensure the same modal type cannot be opened multiple times.
+ *
+ * @usage
+ * ```typescript
+ * import { useModalGuard } from '../hooks/useModalGuard';
+ *
+ * function MyComponent() {
+ * const guardedOpenModal = useModalGuard('ShiftSwitcherModal');
+ *
+ * const handleOpenModal = () => {
+ * guardedOpenModal(() => {
+ * NavigationModule.manager.openModal('roster.ShiftSwitcherModal');
+ * });
+ * };
+ *
+ * return <Button onPress={handleOpenModal}>Open Modal</Button>;
+ * }
+ * ```
+ */
+
+import {useCallback, useRef} from 'react';
+
+// Module-level guard map to prevent multiple instances of the same modal type
+const modalGuards = new Map<string, boolean>();
+
+interface ModalGuardOptions {
+ cooldownMs?: number;
+ enableLogging?: boolean;
+}
+
+export const useModalGuard = (
+ modalName?: string,
+ options: ModalGuardOptions = {}
+) => {
+ const {cooldownMs = 500, enableLogging = false} = options;
+
+ const componentGuardRef = useRef(false);
+ const timeoutRef = useRef<NodeJS.Timeout | null>(null);
+
+ const guardedOpenModal = useCallback(
+ (modalOpenFn: () => void) => {
+ const guardKey = modalName || 'default';
+ const isGuarded = modalName
+ ? modalGuards.get(guardKey)
+ : componentGuardRef.current;
+
+ if (isGuarded) {
+ if (enableLogging) {
+ console.log(`[ModalGuard:${guardKey}] Blocked duplicate modal open attempt`);
+ }
+ return;
+ }
+
+ try {
+ if (modalName) {
+ modalGuards.set(guardKey, true);
+ } else {
+ componentGuardRef.current = true;
+ }
+
+ if (enableLogging) {
+ console.log(`[ModalGuard:${guardKey}] Opening modal`);
+ }
+
+ modalOpenFn();
+
+ if (timeoutRef.current) {
+ clearTimeout(timeoutRef.current);
+ }
+
+ timeoutRef.current = setTimeout(() => {
+ if (modalName) {
+ modalGuards.delete(guardKey);
+ } else {
+ componentGuardRef.current = false;
+ }
+ if (enableLogging) {
+ console.log(`[ModalGuard:${guardKey}] Guard released`);
+ }
+ }, cooldownMs);
+ } catch (error) {
+ if (modalName) {
+ modalGuards.delete(guardKey);
+ } else {
+ componentGuardRef.current = false;
+ }
+
+ if (enableLogging) {
+ console.error(`[ModalGuard:${guardKey}] Error opening modal:`, error);
+ }
+
+ throw error;
+ }
+ },
+ [modalName, cooldownMs, enableLogging]
+ );
+
+ return guardedOpenModal;
+};
| feat(ui): update modal guard | feat(ui): update modal guard
|
2e4f5bf858ed2f270ffbdeedc4e6ae6664a38099 | --- package-lock.json
@@ -12814,9 +12814,9 @@
"integrity": "sha512-zTOSJ7BMbGHaqAF8+LDQI/s5winKcxsHSe4hv49gUbfDz19v71apgNchz31W1D2UQP+kNgrglrmCdmr5RdI8mw=="
},
"react-native-wm-voice-text": {
- "version": "0.4.1",
- "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-0.4.1.tgz",
- "integrity": "sha512-R/wxnch7BptfSG0Lddh2Bjg+9VARzKPDmgL9BJfGU2UNLZwntJUkbLg5cAB0CR0VnJ8j5CktMJJ+foIZvwPFwg=="
+ "version": "0.5.0",
+ "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-0.5.0.tgz",
+ "integrity": "sha512-PKaL0MFy+VjTT4wcx/v90BlvlRXgdWGUU8Sz/760A2Esj175A8w/vFQCtZhUer5FVxmpYVKk7nHzoewii4ygRw=="
},
"react-redux": {
"version": "7.2.2",
--- package.json
@@ -135,7 +135,7 @@
"react-native-wm-network": "^0.1.0",
"react-native-wm-notification": "^1.0.0",
"react-native-wm-telemetry": "^0.3.0",
- "react-native-wm-voice-text": "0.4.1",
+ "react-native-wm-voice-text": "^0.5.0",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-devtools-extension": "^2.13.8",
| updating speech to text | updating speech to text
|
64dba64d01b3e6fb15a091e34c9e4d0a7cc6e29a | --- packages/allspark-foundation/__tests__/Auth/sagas.test.ts
@@ -1,4 +1,4 @@
-import { onGetUser, onSignIn } from '../../src/Auth/sagas';
+import { onGetUser, onSignIn, onFetchToken, onSignOut } from '../../src/Auth/sagas';
import { IAuthActions } from '../../src/Auth/redux';
@@ -8,11 +8,12 @@ jest.mock('../../src/Auth/service', ()=>({
AuthService:{
getUser:jest.fn(),
signIn:jest.fn(),
+ refreshToken: jest.fn(),
+ signOut: jest.fn()
}
}))
describe('Auth/sagas.ts', () => {
it('should call AuthService.getUser', ()=>{
- const {AuthService} = require('../../src/Auth/service')
const action:IAuthActions['GET_USER'] = {type:'auth/GET_USER' as const, payload:undefined};
const getUser = onGetUser(action);
const nextUser = getUser.next();
@@ -20,7 +21,6 @@ describe('Auth/sagas.ts', () => {
expect(getUser.next().done).toBe(true)
})
it('should call AuthService.onSignIn', ()=>{
- const {AuthService} = require('../../src/Auth/service')
const payload = {clientId:'test', scopes:['test'], issuer:'test', redirectUrl:'test'}
const action:IAuthActions['SIGN_IN'] = {type:'auth/SIGN_IN' as const, payload:payload};
const getSignIn = onSignIn(action);
@@ -28,5 +28,18 @@ describe('Auth/sagas.ts', () => {
expect(nextSignIn.value).toEqual(undefined);
expect(getSignIn.next().done).toBe(true)
})
-
+ it('should call AuthService.onFetchToken', ()=>{
+ const action:IAuthActions['FETCH_TOKEN'] = {type:'auth/FETCH_TOKEN' as const, payload:undefined};
+ const fetchToken = onFetchToken(action);
+ const nextFetch = fetchToken.next();
+ expect(nextFetch.value).toEqual(undefined);
+ expect(fetchToken.next().done).toBe(true)
+ })
+ it('should call AuthService.onSignOut', ()=>{
+ const action:IAuthActions['SIGN_OUT'] = {type:'auth/SIGN_OUT' as const, payload:undefined};
+ const signOut = onSignOut(action);
+ const nextSignOut = signOut.next();
+ expect(nextSignOut.value).toEqual(undefined);
+ expect(signOut.next().done).toBe(true)
+ })
});
| sagas partial unit test | sagas partial unit test
|
a94ce3a8440d34ec10eb16d5fcd6d922f9d51dfe | --- android/app/build.gradle
@@ -212,8 +212,6 @@ dependencies {
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
- implementation 'net.openid:appauth:0.7.1'
-
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
}
--- android/app/src/debug/AndroidManifest.xml
@@ -4,5 +4,5 @@
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
- <application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" />
+ <application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" android:networkSecurityConfig="@xml/network_security_config" />
</manifest>
--- android/app/src/debug/res/xml/network_security_config.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<network-security-config xmlns:android="http://schemas.android.com/apk/res/android">
+ <domain-config cleartextTrafficPermitted="true">
+ <domain includeSubdomains="true">localhost</domain>
+ <domain includeSubdomains="true">10.0.2.2</domain>
+ </domain-config>
+</network-security-config>
\ No newline at end of file
--- android/app/src/main/AndroidManifest.xml
@@ -24,6 +24,7 @@
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
+ android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
--- android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf
Binary files /dev/null and b/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf differ
--- android/app/src/main/assets/fonts/MaterialIcons.ttf
Binary files /dev/null and b/android/app/src/main/assets/fonts/MaterialIcons.ttf differ
--- android/app/src/main/java/com/walmart/stores/allspark/MainActivity.java
@@ -1,8 +1,15 @@
package com.walmart.stores.allspark;
+import android.content.Intent;
+
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
+ @Override
+ public void onNewIntent(Intent intent) {
+ super.onNewIntent(intent);
+ setIntent(intent);
+ }
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
--- android/app/src/main/java/com/walmart/stores/allspark/MainApplication.java
@@ -10,8 +10,16 @@ import com.facebook.react.ReactPackage;
import com.facebook.soloader.SoLoader;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
+import com.walmart.sso.react.SSOReactApplication;
-public class MainApplication extends Application implements ReactApplication {
+public class MainApplication extends SSOReactApplication implements ReactApplication {
+ // TODO - change to appropriate package name
+ private static final String REDIRECT_URI = "com.walmart.stores.allspark://SSOLogin";
+
+ @Override
+ public String getSSORedirectUri() {
+ return REDIRECT_URI;
+ }
private final ReactNativeHost mReactNativeHost =
new ReactNativeHost(this) {
--- src/core/TabBarStyle.ts
@@ -33,6 +33,7 @@ export default StyleSheet.create({
shadowColor: 'black',
shadowRadius: 2,
shadowOpacity: 0.15,
+ elevation: 1,
borderRadius: 1000,
width: 75,
shadowOffset: {
| integrating android; fixing tab style | integrating android; fixing tab style
|
143bde6d53c46bfcde2183f05665ac2a352d5166 | --- package.json
@@ -104,7 +104,7 @@
"@walmart/iteminfo-mini-app": "7.5.7",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
- "@walmart/metrics-mini-app": "0.14.2",
+ "@walmart/metrics-mini-app": "0.15.14",
"@walmart/mod-flex-mini-app": "1.11.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
| metrics version bump | metrics version bump |
607fb877602b832fe694a2b8acbeeacb0bd5ba23 | --- targets/US/package.json
@@ -148,7 +148,7 @@
"@walmart/store-feature-orders": "1.26.12",
"@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch",
"@walmart/time-clock-mini-app": "2.400.0",
- "@walmart/topstock-mini-app": "1.16.16",
+ "@walmart/topstock-mini-app": "1.16.17",
"@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch",
"@walmart/welcomeme-mini-app": "0.95.1",
"@walmart/wfm-ui": "1.6.0",
--- yarn.lock
@@ -6874,7 +6874,7 @@ __metadata:
"@walmart/store-feature-orders": "npm:1.26.12"
"@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch"
"@walmart/time-clock-mini-app": "npm:2.400.0"
- "@walmart/topstock-mini-app": "npm:1.16.16"
+ "@walmart/topstock-mini-app": "npm:1.16.17"
"@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch"
"@walmart/welcomeme-mini-app": "npm:0.95.1"
"@walmart/wfm-ui": "npm:1.6.0"
@@ -7860,9 +7860,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/topstock-mini-app@npm:1.16.16":
- version: 1.16.16
- resolution: "@walmart/topstock-mini-app@npm:1.16.16"
+"@walmart/topstock-mini-app@npm:1.16.17":
+ version: 1.16.17
+ resolution: "@walmart/topstock-mini-app@npm:1.16.17"
peerDependencies:
"@react-native-firebase/app": ^15.1.1
"@react-native-firebase/crashlytics": ^15.1.1
@@ -7879,7 +7879,7 @@ __metadata:
react-native-haptic-feedback: ^1.13.0
react-native-vector-icons: ">=6.6.0"
react-redux: ">=7.2.0"
- checksum: 10c0/001cce7a5436cf0d28856a947c641e956dd2deaaef492469eb38629969e74b74d16456993a258e7f042b146269e665709716aeea2b93435e59315d667a427cd1
+ checksum: 10c0/9332d8fb7792e99f6fe734670ef1d60e23e9657d9b4ae779de5ad1f2eb4a6c0d2bca28153f0b6f6c6b7aad821e0dee36d745da338724ca604c129af9a8811e07
languageName: node
linkType: hard
| fix(): updated topstock version | fix(): updated topstock version
|
dbc3638eac14dbcb183b09431a26706713936a3b | --- .looper.multibranch.yml
@@ -73,6 +73,7 @@ flows:
- fail("Lint Mandatory")
- (name Unit Tests) npm run coverage -- --no-watchman
- (name Test Report Exists?) [[ -f ${WORKSPACE}/test-report.xml ]]
+ - (name Dedupe Check) yarn dedupe --check
app-build-init: # overridden to add env step, which generates native projects, before projects referenced
- call: initialize
--- yarn.lock
@@ -17028,7 +17028,7 @@ __metadata:
languageName: node
linkType: hard
-"mime-types@npm:^2.1.12, mime-types@npm:^2.1.27, mime-types@npm:^2.1.35, mime-types@npm:~2.1.34":
+"mime-types@npm:^2.1.12, mime-types@npm:^2.1.27, mime-types@npm:^2.1.35, mime-types@npm:~2.1.24, mime-types@npm:~2.1.34":
version: 2.1.35
resolution: "mime-types@npm:2.1.35"
dependencies:
@@ -17037,15 +17037,6 @@ __metadata:
languageName: node
linkType: hard
-"mime-types@npm:~2.1.24":
- version: 2.1.35
- resolution: "mime-types@npm:2.1.35::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmime-types%2F-%2Fmime-types-2.1.35.tgz"
- dependencies:
- mime-db: "npm:1.52.0"
- checksum: 10c0/82fb07ec56d8ff1fc999a84f2f217aa46cb6ed1033fefaabd5785b9a974ed225c90dc72fff460259e66b95b73648596dbcc50d51ed69cdf464af2d237d3149b2
- languageName: node
- linkType: hard
-
"mime@npm:1.6.0":
version: 1.6.0
resolution: "mime@npm:1.6.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmime%2F-%2Fmime-1.6.0.tgz"
@@ -22446,16 +22437,7 @@ __metadata:
languageName: node
linkType: hard
-"use-latest-callback@npm:^0.2.1":
- version: 0.2.3
- resolution: "use-latest-callback@npm:0.2.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fuse-latest-callback%2F-%2Fuse-latest-callback-0.2.3.tgz"
- peerDependencies:
- react: ">=16.8"
- checksum: 10c0/dc87503f6279ce2980f78e1019231ba20d7509e9d17adac05285babe4d6ba6f68c52f4ef7b5ad777cbc2af9fbaaa09d7adb664ca556da0aebab9f020022880be
- languageName: node
- linkType: hard
-
-"use-latest-callback@npm:^0.2.4":
+"use-latest-callback@npm:^0.2.1, use-latest-callback@npm:^0.2.4":
version: 0.2.4
resolution: "use-latest-callback@npm:0.2.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fuse-latest-callback%2F-%2Fuse-latest-callback-0.2.4.tgz"
peerDependencies:
| chore(ci): ALLSPARK-6360 add dedupe check (#4392) | chore(ci): ALLSPARK-6360 add dedupe check (#4392)
* chore(ci): add dedupe check
* chore(yarn): run yarn dedupe
* chore(ci): add dedupe check
* chore(yarn): run yarn dedupe |
0e399895a3c15da571f344620f97d9721d6b230d | --- packages/allspark-foundation/src/Core/docs/Migrating.md
@@ -1,6 +1,8 @@
# Migrating to Allspark Foundation
-For feature apps that have integrated with Me@Walmart (pre Drop 21), follow this guide to migrate.
+For feature apps that have integrated with Me@Walmart (pre Drop 22), follow this guide to migrate.
+
+>Note: Drop 20 was when the foundation was introduced. Drop 20 and 21 require no changes to your feature app. Drop 22 is when this guides becomes relevant.
Allspark Foundation is backwards compatible so migration can be done in phases. We recommend you work through a phase then re-test your feature app before moving on to the next phase.
| docs: add detail to migration doc for drop schedule | docs: add detail to migration doc for drop schedule
|
4cb01d50c55d0c847721ec3cd633e66ee3d82e1c | --- targets/US/package.json
@@ -101,7 +101,7 @@
"@walmart/counts-component-miniapp": "0.1.13",
"@walmart/emergency-mini-app": "1.29.8",
"@walmart/exception-mini-app": "1.8.11",
- "@walmart/facilities-management-miniapp": "0.15.5",
+ "@walmart/facilities-management-miniapp": "0.15.6",
"@walmart/feedback-all-spark-miniapp": "0.9.66",
"@walmart/financial-wellbeing-feature-app": "1.26.0",
"@walmart/functional-components": "~6.3.20",
--- yarn.lock
@@ -6363,12 +6363,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/facilities-management-miniapp@npm:0.15.5":
- version: 0.15.5
- resolution: "@walmart/facilities-management-miniapp@npm:0.15.5"
+"@walmart/facilities-management-miniapp@npm:0.15.6":
+ version: 0.15.6
+ resolution: "@walmart/facilities-management-miniapp@npm:0.15.6"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/bbd830a83924ecbbe3ed0811c0a4e608533ef754b1e6254d8e80ef969ed07d06fd937bb22631d210a50790f2ccb6b64adecd2cfd661e2cfd28817962166c4490
+ checksum: 10c0/1eae0591bb71251b50300cf45473a039e6ec5d345e7f03a3c1f8472614737390c2c03018e06e8965354c277f28e4709b54f83551e4438eb249e74c3a9d624c15
languageName: node
linkType: hard
@@ -7008,7 +7008,7 @@ __metadata:
"@walmart/counts-component-miniapp": "npm:0.1.13"
"@walmart/emergency-mini-app": "npm:1.29.8"
"@walmart/exception-mini-app": "npm:1.8.11"
- "@walmart/facilities-management-miniapp": "npm:0.15.5"
+ "@walmart/facilities-management-miniapp": "npm:0.15.6"
"@walmart/feedback-all-spark-miniapp": "npm:0.9.66"
"@walmart/financial-wellbeing-feature-app": "npm:1.26.0"
"@walmart/functional-components": "npm:~6.3.20"
| Updating the facilities-management-miniapp version to 0.15.6 | Updating the facilities-management-miniapp version to 0.15.6
|
9e2f98af15764ebceb445535cf2d528648edc900 | --- package-lock.json
@@ -52,9 +52,9 @@
"@walmart/gta-react-native-calendars": "0.0.16",
"@walmart/gtp-shared-components": "2.0.3",
"@walmart/impersonation-mini-app": "1.11.0",
- "@walmart/ims-print-services-ui": "2.0.4",
+ "@walmart/ims-print-services-ui": "2.0.5",
"@walmart/inbox-mini-app": "0.81.9",
- "@walmart/iteminfo-mini-app": "7.0.4",
+ "@walmart/iteminfo-mini-app": "7.0.5",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.1.45",
"@walmart/metrics-mini-app": "0.9.41",
@@ -5172,9 +5172,9 @@
}
},
"node_modules/@walmart/ims-print-services-ui": {
- "version": "2.0.4",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.4.tgz",
- "integrity": "sha512-ubmlU2KZDAKmbOIqMoJySzH+tuwhON+d3z4WKrg/9MMkBofTwp4/Z2yBC/Dw3LWK6+fq95IKInEuxIcEBPy9xw==",
+ "version": "2.0.5",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.5.tgz",
+ "integrity": "sha512-KdQqbi5QGDP9GhGdnjP2kxXVw6vA2R9t4JDzi0h1y2Zv7ZC0CxTpWYEPst4nXyCxMlGlI0RS/JUe1V2WWbe+oQ==",
"peerDependencies": {
"@react-native-firebase/analytics": ">=10.5.1",
"@react-native-firebase/app": ">=10.5.0",
@@ -5214,9 +5214,9 @@
}
},
"node_modules/@walmart/iteminfo-mini-app": {
- "version": "7.0.4",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.4.tgz",
- "integrity": "sha512-VUeJRN34ymHUtJWrHhnVLWPhtgOHg/gC+xT7GahxH4AdRsIneR02Z7xsukU80wyzxsHHuTu6xSBGTnNwTsbXcA==",
+ "version": "7.0.5",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.5.tgz",
+ "integrity": "sha512-qBNuTUXz03eXcGW1OD04NIRfp837sSbaSREKb/RyWOb3PmabNG9K+dxG8ueB0A0XEjjSQeONN1DPflDRF8Ic4Q==",
"peerDependencies": {
"@react-native-community/async-storage": ">=1.12.1",
"@react-native-community/netinfo": ">=9.3.6",
@@ -25085,9 +25085,9 @@
"integrity": "sha512-jytXe4i0C9GXvPCm6nB26ILZVkcSsBmcdykmGmlFKB4Q/d5i9imtLmFHLfhd6gxU7ZeBoKMJvymF5tWQbI6QoQ=="
},
"@walmart/ims-print-services-ui": {
- "version": "2.0.4",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.4.tgz",
- "integrity": "sha512-ubmlU2KZDAKmbOIqMoJySzH+tuwhON+d3z4WKrg/9MMkBofTwp4/Z2yBC/Dw3LWK6+fq95IKInEuxIcEBPy9xw=="
+ "version": "2.0.5",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.5.tgz",
+ "integrity": "sha512-KdQqbi5QGDP9GhGdnjP2kxXVw6vA2R9t4JDzi0h1y2Zv7ZC0CxTpWYEPst4nXyCxMlGlI0RS/JUe1V2WWbe+oQ=="
},
"@walmart/inbox-mini-app": {
"version": "0.81.9",
@@ -25099,9 +25099,9 @@
}
},
"@walmart/iteminfo-mini-app": {
- "version": "7.0.4",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.4.tgz",
- "integrity": "sha512-VUeJRN34ymHUtJWrHhnVLWPhtgOHg/gC+xT7GahxH4AdRsIneR02Z7xsukU80wyzxsHHuTu6xSBGTnNwTsbXcA=="
+ "version": "7.0.5",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.5.tgz",
+ "integrity": "sha512-qBNuTUXz03eXcGW1OD04NIRfp837sSbaSREKb/RyWOb3PmabNG9K+dxG8ueB0A0XEjjSQeONN1DPflDRF8Ic4Q=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.2.1",
--- package.json
@@ -94,9 +94,9 @@
"@walmart/gta-react-native-calendars": "0.0.16",
"@walmart/gtp-shared-components": "2.0.3",
"@walmart/impersonation-mini-app": "1.11.0",
- "@walmart/ims-print-services-ui": "2.0.4",
+ "@walmart/ims-print-services-ui": "2.0.5",
"@walmart/inbox-mini-app": "0.81.9",
- "@walmart/iteminfo-mini-app": "7.0.4",
+ "@walmart/iteminfo-mini-app": "7.0.5",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.1.45",
"@walmart/metrics-mini-app": "0.9.41",
| bump up print and iteminfo version | bump up print and iteminfo version
|
36811d4c5fc0156938ce73592a3e7a457dfaf88a | --- .looper-pr.yml
@@ -32,7 +32,7 @@ envs:
MONO_REPO: allspark/allspark-core
MONO_REPO_BASE_BRANCH: develop
AUTHOR: temp
- SLACK_CHANNEL: ""
+ SLACK_CHANNEL: 'smdv-miniapp'
| feat(ui): update group name in looper | feat(ui): update group name in looper
|
a9d5f55879d677bce38005d7a6a83d72c719eafa | --- lerna.json
@@ -17,5 +17,5 @@
}
},
"ignoreChanges": ["**/*.md", "**/__tests__/**"],
- "packages": ["packages/*"]
+ "packages": ["packages/allspark-foundation"]
}
| feat: only publish changes to allspark-foundation | feat: only publish changes to allspark-foundation
|
4395ec5716330c10c03ea0150ee89596a6630358 | --- src/channels/pushToTalkProvider.tsx
@@ -51,7 +51,7 @@ export const PushToTalkProvider = (props: PropsWithChildren<{}>) => {
sentTo: string[];
sentToChannel: string;
};
- if (data.createdAt) {
+ if (!!data.createdAt) {
const currentDate = moment();
const createdAt = moment(data.createdAt.toDate());
const secondsDiff = currentDate.diff(createdAt, 'seconds');
--- src/channels/pushToTalkProvider.tsx
@@ -51,7 +51,7 @@ export const PushToTalkProvider = (props: PropsWithChildren<{}>) => {
sentTo: string[];
sentToChannel: string;
};
- if (data.createdAt) {
+ if (!!data.createdAt) {
const currentDate = moment();
const createdAt = moment(data.createdAt.toDate());
const secondsDiff = currentDate.diff(createdAt, 'seconds');
| revert lint fix not needed | revert lint fix not needed
|
75d0ac3250ee4818a36c53bedee8b7a5d08babae | --- .looper.yml
@@ -22,4 +22,4 @@ flows:
- (name Yarn Version) yarn --version
- yarn install
- yarn run lint
- # - yarn run coverage
\ No newline at end of file
+ - yarn run coverage
\ No newline at end of file
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.15.1",
+ "version": "1.15.0",
"main": "dist/index.js",
"files": [
"dist"
@@ -97,9 +97,9 @@
"@walmart/react-native-shared-navigation": "6.1.4",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
- "@walmart/roster-mini-app": "2.12.1",
+ "@walmart/roster-mini-app": "2.10.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "2.11.1",
+ "@walmart/wmconnect-mini-app": "2.7.0",
"babel-jest": "^29.2.1",
"chance": "^1.1.11",
"eslint": "8.22.0",
--- yarn.lock
@@ -6276,9 +6276,9 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-sumo-sdk": "npm:2.6.0"
"@walmart/redux-store": "npm:3.7.0"
- "@walmart/roster-mini-app": "npm:2.12.1"
+ "@walmart/roster-mini-app": "npm:2.10.0"
"@walmart/ui-components": "npm:1.15.1"
- "@walmart/wmconnect-mini-app": "npm:2.11.1"
+ "@walmart/wmconnect-mini-app": "npm:2.7.0"
babel-jest: "npm:^29.2.1"
chance: "npm:^1.1.11"
eslint: "npm:8.22.0"
@@ -6458,9 +6458,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:2.12.1":
- version: 2.12.1
- resolution: "@walmart/roster-mini-app@npm:2.12.1"
+"@walmart/roster-mini-app@npm:2.10.0":
+ version: 2.10.0
+ resolution: "@walmart/roster-mini-app@npm:2.10.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/a69513b236ac2814992e431ea9327ae136f8b5a4953c2e2c2a4a9854ed17a3ef31d235cb9c31da6fd52b905c535f1d58e9171ed5e3d3a79c896ee7b4ce822a96
+ checksum: 10c0/33520e203c9df8d5606f47472838ba0f0135b415eab361b5b3f21db933067f109fcff029592d67c58f86a5491d6a4f75a3cc684627a4ffce945990d344333f29
languageName: node
linkType: hard
@@ -6526,9 +6526,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:2.11.1":
- version: 2.11.1
- resolution: "@walmart/wmconnect-mini-app@npm:2.11.1"
+"@walmart/wmconnect-mini-app@npm:2.7.0":
+ version: 2.7.0
+ resolution: "@walmart/wmconnect-mini-app@npm:2.7.0"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6568,7 +6568,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/63172950f38704a6214542ee5ded0aecbb4bbe70439e2b2f11c25bbbe1e4fd3f449da0e2cb15bb78f01dbed2e9f7b4d8e007787090e85d7f44a612aae08e850b
+ checksum: 10c0/ce28cf7664920e6c76161a7537363d4018fff03ba73095dc215984bb74121d6db890ec95a25dc466be9036d91982e149ce94342953e7707c17aa04c38bd86248
languageName: node
linkType: hard
| Revert "feat(ui): update texting and roster" | Revert "feat(ui): update texting and roster"
|
581d9a4df5551cd95e2084d66cdccdce690c7e99 | --- packages/core-services-allspark/CHANGELOG.md
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.12.6](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.12.5...@walmart/core-services-allspark@2.12.6) (2023-09-11)
+
+
+### Bug Fixes
+
+* skip logging empty url error from http client ([271b631](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/271b6317ebc92cb80e2bcf0a645a723ef70b89ba))
+
+
+
+
+
## [2.12.5](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.12.4...@walmart/core-services-allspark@2.12.5) (2023-09-11)
**Note:** Version bump only for package @walmart/core-services-allspark
--- packages/core-services-allspark/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "2.12.5",
+ "version": "2.12.6",
"lockfileVersion": 1,
"requires": true,
"packages": {
--- packages/core-services-allspark/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "2.12.5",
+ "version": "2.12.6",
"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.12.6
|
4e82fc5b8af42c03688b28f56af4e7db73873c0e | --- __tests__/auth/__snapshots__/ErrorScreenTest.tsx.snap
@@ -155,6 +155,17 @@ exports[`ErrorScreen matches snapshot when dirty and no userId/siteId 1`] = `
value=""
/>
</View>
+ <Text
+ style={
+ Object {
+ "fontSize": 14,
+ "fontWeight": "700",
+ "lineHeight": 28,
+ }
+ }
+ >
+ en-US
+ </Text>
<Text
style={
Object {
@@ -240,50 +251,50 @@ exports[`ErrorScreen matches snapshot when dirty and no userId/siteId 1`] = `
/>
</View>
</View>
- <Text
- style={
- Object {
- "fontSize": 14,
- "fontWeight": "700",
- "lineHeight": 28,
- }
- }
- >
- ssoError.optional
- </Text>
- <View
- style={
- Object {
- "borderColor": "#909196",
- "borderRadius": 5,
- "borderWidth": 1,
- "color": "#74767c",
- }
- }
- >
- <TextInput
- editable={true}
- maxLength={1000}
- multiline={true}
- numberOfLines={4}
- onChangeText={[MockFunction]}
- placeholder="ssoError.details"
- style={
- Object {
- "fontFamily": "Bogle",
- "fontSize": 16,
- "height": 128,
- "marginTop": 10,
- "paddingHorizontal": 16,
- }
- }
- testID="details-text"
- textAlignVertical="top"
- value=""
- />
- </View>
</View>
</View>
+ <Text
+ style={
+ Object {
+ "fontSize": 14,
+ "fontWeight": "700",
+ "lineHeight": 28,
+ }
+ }
+ >
+ ssoError.optional
+ </Text>
+ <View
+ style={
+ Object {
+ "borderColor": "#909196",
+ "borderRadius": 5,
+ "borderWidth": 1,
+ "color": "#74767c",
+ }
+ }
+ >
+ <TextInput
+ editable={true}
+ maxLength={1000}
+ multiline={true}
+ numberOfLines={4}
+ onChangeText={[MockFunction]}
+ placeholder="ssoError.details"
+ style={
+ Object {
+ "fontFamily": "Bogle",
+ "fontSize": 16,
+ "height": 128,
+ "marginTop": 10,
+ "paddingHorizontal": 16,
+ }
+ }
+ testID="details-text"
+ textAlignVertical="top"
+ value=""
+ />
+ </View>
</View>
</RCTScrollView>
<View
@@ -479,6 +490,17 @@ exports[`ErrorScreen renders default 1`] = `
value=""
/>
</View>
+ <Text
+ style={
+ Object {
+ "fontSize": 14,
+ "fontWeight": "700",
+ "lineHeight": 28,
+ }
+ }
+ >
+ es-MX
+ </Text>
<Text
style={
Object {
@@ -520,63 +542,63 @@ exports[`ErrorScreen renders default 1`] = `
value=""
values={
Array [
- "Clock-in/clock-out issue",
- "2-step verification failure",
- "Store transfer issue",
- "New phone or new number",
- "Didn't receive text verification",
- "Can't receive push notifications",
- "Store Wi-Fi issue",
- "Other",
+ "Problema de registro de entrada/salida",
+ "Fallo de verificación de 2 pasos",
+ "Problema de transferencia de tienda",
+ "Nuevo teléfono o nuevo número",
+ "No recibí la verificación por mensaje de texto ",
+ "No puedo recibir push notifications",
+ "Problema con el Wi-Fi de la tienda",
+ "Otro",
]
}
/>
</View>
</View>
- <Text
- style={
- Object {
- "fontSize": 14,
- "fontWeight": "700",
- "lineHeight": 28,
- }
- }
- >
- ssoError.optional
- </Text>
- <View
- style={
- Object {
- "borderColor": "#909196",
- "borderRadius": 5,
- "borderWidth": 1,
- "color": "#74767c",
- }
- }
- >
- <TextInput
- editable={true}
- maxLength={1000}
- multiline={true}
- numberOfLines={4}
- onChangeText={[MockFunction]}
- placeholder="ssoError.details"
- style={
- Object {
- "fontFamily": "Bogle",
- "fontSize": 16,
- "height": 128,
- "marginTop": 10,
- "paddingHorizontal": 16,
- }
- }
- testID="details-text"
- textAlignVertical="top"
- value=""
- />
- </View>
</View>
</View>
+ <Text
+ style={
+ Object {
+ "fontSize": 14,
+ "fontWeight": "700",
+ "lineHeight": 28,
+ }
+ }
+ >
+ ssoError.optional
+ </Text>
+ <View
+ style={
+ Object {
+ "borderColor": "#909196",
+ "borderRadius": 5,
+ "borderWidth": 1,
+ "color": "#74767c",
+ }
+ }
+ >
+ <TextInput
+ editable={true}
+ maxLength={1000}
+ multiline={true}
+ numberOfLines={4}
+ onChangeText={[MockFunction]}
+ placeholder="ssoError.details"
+ style={
+ Object {
+ "fontFamily": "Bogle",
+ "fontSize": 16,
+ "height": 128,
+ "marginTop": 10,
+ "paddingHorizontal": 16,
+ }
+ }
+ testID="details-text"
+ textAlignVertical="top"
+ value=""
+ />
+ </View>
</View>
</RCTScrollView>
<View
| update locat default data | update locat default data
|
5b66fb77b58eeec03da004bae2cac73e55bc0210 | --- __tests__/startup/StartupFlowTest.ts
@@ -22,6 +22,7 @@ import {
} from '../../src/whatsNew/WhatsNewRedux';
import {checkAvailableSurveys} from '../../src/survey/SurveySaga';
import {handleAppReviewPrompt} from '../../src/appReview/sagas';
+import {DoNotDisturbAutoResetSaga} from '@walmart/texting-mini-app';
jest.mock('../../src/core/Auth', () => ({
Auth: {
@@ -59,6 +60,12 @@ jest.mock('../../src/appReview/sagas', () => ({
handleAppReviewPrompt: jest.fn(),
}));
+jest.mock('@walmart/texting-mini-app', () => {
+ return {
+ DoNotDisturbAutoResetSaga: jest.fn(),
+ };
+});
+
describe('candidateStartupFlow', () => {
it('calls expected sagas', () => {
const iterator = candidateStartupFlow();
@@ -78,7 +85,7 @@ test('associateStartupFlow', () => {
expect(iterator.next().value).toEqual(call(handlePinCode));
expect(iterator.next().value).toEqual(call(checkPreviousImpersonation));
expect(iterator.next().value).toEqual(call(resetTo, 'main'));
-
+ expect(iterator.next().value).toEqual(call(DoNotDisturbAutoResetSaga));
expect(iterator.next().value).toEqual(
put(UpdateCheckActionCreators.checkForUpdates()),
);
| fixing test case | fixing test case
|
ed7ff43cec849121adaa669d74fd92abc4c57f33 | --- targets/US/package.json
@@ -140,7 +140,7 @@
"@walmart/redux-store": "~6.3.28",
"@walmart/returns-mini-app": "4.15.0",
"@walmart/rfid-scan-mini-app": "2.4.4",
- "@walmart/rn-receiving-mini-app": "2.3.325",
+ "@walmart/rn-receiving-mini-app": "2.3.327",
"@walmart/roster-mini-app": "2.9.0",
"@walmart/schedule-mini-app": "0.118.2",
"@walmart/shelfavailability-mini-app": "1.5.37",
--- yarn.lock
@@ -5973,9 +5973,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/atlas-rn-ui-components@npm:1.1.1":
- version: 1.1.1
- resolution: "@walmart/atlas-rn-ui-components@npm:1.1.1"
+"@walmart/atlas-rn-ui-components@npm:1.1.11":
+ version: 1.1.11
+ resolution: "@walmart/atlas-rn-ui-components@npm:1.1.11"
peerDependencies:
"@livingdesign/tokens": ">=0.63.0"
"@react-native-picker/picker": ">=2.4.0"
@@ -5997,7 +5997,7 @@ __metadata:
bin:
installFonts: scripts/installFonts
runCodemods: scripts/runCodemods
- checksum: 10c0/2054381fbe04197353be3df7db78a49de2c2b27644012e0712ecdbb59a5dfc653db5ebce68ccd5cb710c49c46f85c90c650e52bd8d8296778e1674ad2a2ed40c
+ checksum: 10c0/6ad2d67767f1dbbb324ab3e261d2e4a725d88fdd24cf4386af11efa2904bd930253a9af0495b9c8d1b0e7203cc1cbdea3b1c8f167f0db5c6bfdbbbf30dbe76b1
languageName: node
linkType: hard
@@ -7056,7 +7056,7 @@ __metadata:
"@walmart/redux-store": "npm:~6.3.28"
"@walmart/returns-mini-app": "npm:4.15.0"
"@walmart/rfid-scan-mini-app": "npm:2.4.4"
- "@walmart/rn-receiving-mini-app": "npm:2.3.325"
+ "@walmart/rn-receiving-mini-app": "npm:2.3.327"
"@walmart/roster-mini-app": "npm:2.9.0"
"@walmart/schedule-mini-app": "npm:0.118.2"
"@walmart/shelfavailability-mini-app": "npm:1.5.37"
@@ -7769,11 +7769,11 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/rn-receiving-mini-app@npm:2.3.325":
- version: 2.3.325
- resolution: "@walmart/rn-receiving-mini-app@npm:2.3.325"
+"@walmart/rn-receiving-mini-app@npm:2.3.327":
+ version: 2.3.327
+ resolution: "@walmart/rn-receiving-mini-app@npm:2.3.327"
dependencies:
- "@walmart/atlas-rn-ui-components": "npm:1.1.1"
+ "@walmart/atlas-rn-ui-components": "npm:1.1.11"
"@walmart/loadquality-mini-app": "npm:1.0.139"
peerDependencies:
"@react-native-clipboard/clipboard": ">=1.14.0"
@@ -7797,7 +7797,7 @@ __metadata:
react-native-svg: ">=14.1.0"
react-native-svg-transformer: ">=1.1.0"
react-native-vision-camera: ^2.16.8
- checksum: 10c0/c6c7026a77afe65b8e8dfb19affcc6070d055cd13cbe4f7f31b8a1ebb19c57c6cbc9fab8f448e70da93a191e90730f71a0cc9d894856e6d4c13f2280a83eb75f
+ checksum: 10c0/135395e7750f720a169885e5ef634846b2a3f20b3872efd389aceec98e1c0641facd46deebff6dc89c76bd432f8aa34f1c5a2f95e17e1904100c7f87330bfaee
languageName: node
linkType: hard
| Drop26 - Receiving version - 2.3.327 | Drop26 - Receiving version - 2.3.327
|
600a65c7ea80199a52dbb8cb236a803a12a46703 | --- core/__tests__/__mocks__/@walmart/checkout-mini-app.js
@@ -1,3 +1,7 @@
module.exports = {
- CheckoutMiniApp: 'CheckoutMiniApp',
+ //CheckoutMiniApp: 'CheckoutMiniApp',
+ __esModule: true,
+ CheckoutMiniApp: {
+ buildAllScreens: () => 'checkoutFeature.Root',
+ },
};
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap
@@ -110,15 +110,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
}
/>
- <Screen
- component={[Function]}
- name="Checkout"
- options={
- {
- "headerShown": false,
- }
- }
- />
<Screen
component={[Function]}
name="Backroom"
@@ -682,6 +673,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
name="Impersonation"
/>
ManagerApprovalScreens
+ checkoutFeature.Root
</Navigator>
`;
@@ -795,15 +787,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
}
/>
- <Screen
- component={[Function]}
- name="Checkout"
- options={
- {
- "headerShown": false,
- }
- }
- />
<Screen
component={[Function]}
name="Backroom"
@@ -1367,5 +1350,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
name="Impersonation"
/>
ManagerApprovalScreens
+ checkoutFeature.Root
</Navigator>
`;
| fixed the test case for checkout | fixed the test case for checkout
|
f9e9eb469a987ea9d32c3113d6f69c0b6f4d59b9 | --- package-lock.json
@@ -39,7 +39,7 @@
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "1.1.59",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.15.4",
+ "@walmart/ask-sam-mini-app": "1.18.2",
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/compass-sdk-rn": "5.7.4",
"@walmart/config-components": "4.2.8",
@@ -8407,9 +8407,9 @@
}
},
"node_modules/@walmart/ask-sam-mini-app": {
- "version": "1.15.4",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.15.4.tgz",
- "integrity": "sha512-6daTOiAv5yCfwB9Kj/h8ECePMulH/KhKPm7yoMoQBeVOZ30/2K5FK0jeL49Aq/0/wtvTFCzpAMnfiGokH9tWmg==",
+ "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==",
"license": "NONE",
"dependencies": {
"apisauce": "^1.1.2",
@@ -8418,23 +8418,26 @@
"reduxsauce": "^1.2.0"
},
"peerDependencies": {
- "@react-navigation/native": ">=6",
- "@react-navigation/stack": ">=6",
+ "@react-native/gradle-plugin": ">=0.72.11",
+ "@react-navigation/native": ">=6.0.0",
+ "@react-navigation/stack": ">=6.0.0",
"@terrylinla/react-native-sketch-canvas": "*",
"@walmart/ask-sam-chat-components": ">=0.2.9",
"@walmart/core-services": ">=1.4.11",
"@walmart/core-utils": ">=1.2",
"@walmart/core-widget-registry": ">=0.2",
- "@walmart/gtp-shared-components": ">=2.0.2",
- "@walmart/redux-store": ">=3",
+ "@walmart/gtp-shared-components": ">=2.1.3",
+ "@walmart/redux-store": ">=3.1.4",
"@walmart/schedule-mini-app": "*",
"@walmart/ui-components": ">=1.5",
"@walmart/wfm-ui": "*",
- "axios": ">=0.26",
+ "axios": ">=1.2.6",
+ "axios-cache-adapter": ">=2.7.3",
+ "expo": "49.0.10",
"lodash": ">=4.17",
"moment": ">=2.26",
"react": ">=18.2.0",
- "react-native": ">=0.70",
+ "react-native": "0.72.1",
"react-native-barcode-builder": ">=2",
"react-native-blob-util": ">=0.16",
"react-native-device-info": ">=10.3",
@@ -33123,9 +33126,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "1.15.4",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.15.4.tgz",
- "integrity": "sha512-6daTOiAv5yCfwB9Kj/h8ECePMulH/KhKPm7yoMoQBeVOZ30/2K5FK0jeL49Aq/0/wtvTFCzpAMnfiGokH9tWmg==",
+ "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==",
"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.59",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.15.4",
+ "@walmart/ask-sam-mini-app": "1.18.2",
"@walmart/attendance-mini-app": "1.62.13",
"@walmart/compass-sdk-rn": "5.7.4",
"@walmart/config-components": "4.2.8",
| Bump ask sam version for wages widgetization | Bump ask sam version for wages widgetization
|
77ec928ce3098925f978b868e06d852d67a8b367 | --- package.json
@@ -92,7 +92,7 @@
"@walmart/backroom-mini-app": "1.13.3",
"@walmart/calling-mini-app": "0.7.63",
"@walmart/checkout-mini-app": "4.14.0",
- "@walmart/compass-sdk-rn": "6.2.845",
+ "@walmart/compass-sdk-rn": "6.2.851",
"@walmart/config-components": "4.10.1",
"@walmart/core-services": "~6.5.2",
"@walmart/core-services-allspark": "workspace:^",
@@ -419,7 +419,7 @@
"@walmart/allspark-utils": "6.5.3",
"@walmart/core-services-allspark": "workspace:^",
"@walmart/core-widget-registry": "workspace:^",
- "@walmart/compass-sdk-rn": "6.2.845",
+ "@walmart/compass-sdk-rn": "6.2.851",
"@walmart/me-at-walmart-common": "workspace:^",
"@walmart/me-at-walmart-container": "workspace:^",
"@walmart/moment-walmart": "1.0.4",
--- yarn.lock
@@ -6947,13 +6947,13 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/compass-sdk-rn@npm:6.2.845":
- version: 6.2.845
- resolution: "@walmart/compass-sdk-rn@npm:6.2.845::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcompass-sdk-rn%2F-%2F%40walmart%2Fcompass-sdk-rn-6.2.845.tgz"
+"@walmart/compass-sdk-rn@npm:6.2.851":
+ version: 6.2.851
+ resolution: "@walmart/compass-sdk-rn@npm:6.2.851::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcompass-sdk-rn%2F-%2F%40walmart%2Fcompass-sdk-rn-6.2.851.tgz"
peerDependencies:
react: "*"
react-native: "*"
- checksum: 10c0/fe6b49859b5e7b24bd7e3920feff6c37bc918e6ecc924b11468652b4ddd491c8168cf22adbc552256a0f883d898b5b5fc020debf13b8f0e9e24c5e7d4d64c6a2
+ checksum: 10c0/4a008ef342636c4b79cb4a0bb693a2a6283a2bac8fbe16970c226c65b8ae2f97489987a07b69d670110625a4a517399f920a836073c4329288c33011029b99b8
languageName: node
linkType: hard
@@ -7604,7 +7604,7 @@ __metadata:
"@walmart/backroom-mini-app": "npm:1.13.3"
"@walmart/calling-mini-app": "npm:0.7.63"
"@walmart/checkout-mini-app": "npm:4.14.0"
- "@walmart/compass-sdk-rn": "npm:6.2.845"
+ "@walmart/compass-sdk-rn": "npm:6.2.851"
"@walmart/config-components": "npm:4.10.1"
"@walmart/core-services": "npm:~6.5.2"
"@walmart/core-services-allspark": "workspace:^"
| Feature/compass drop32 (#4513) | Feature/compass drop32 (#4513)
* fix(compass): bug fix for foreground service starting from background
* refactor(log): Change Log to custom logger for dev builds only
* fix(log to logger for dev builds): only show native log message on dev
---------
Co-authored-by: Peter lin - k0l0bt0 <Peter.Lin@walmart.com>
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
0759f5a1524f61d8a6e3d43fef1ee7946686b2db | --- package-lock.json
@@ -84,7 +84,7 @@
"@walmart/schedule-mini-app": "0.37.0",
"@walmart/settings-mini-app": "1.19.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
- "@walmart/taskit-mini-app": "2.47.4",
+ "@walmart/taskit-mini-app": "2.47.5",
"@walmart/texting-mini-app": "2.0.29",
"@walmart/time-clock-mini-app": "2.111.3",
"@walmart/topstock-mini-app": "1.0.13",
@@ -9142,9 +9142,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "2.47.4",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.4.tgz",
- "integrity": "sha512-Sr9NGVIylnfhmgz14tDbO03hhdZqkv1TEuGWyr+rHt7qFi9q4g4KOYnNfcPsypjyIHKEMzDxZugz2Nq6Q0Tuew==",
+ "version": "2.47.5",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.5.tgz",
+ "integrity": "sha512-Is0NeZ0K/QE1dPUy8oY8meXyYR6mNuzYtvWZxH5NwBXsOSa1ynXWclLzM6eU4Os6+NT4LnFsMXbwvfnraW3DnA==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -33828,9 +33828,9 @@
"version": "1.5.16"
},
"@walmart/taskit-mini-app": {
- "version": "2.47.4",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.4.tgz",
- "integrity": "sha512-Sr9NGVIylnfhmgz14tDbO03hhdZqkv1TEuGWyr+rHt7qFi9q4g4KOYnNfcPsypjyIHKEMzDxZugz2Nq6Q0Tuew=="
+ "version": "2.47.5",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.5.tgz",
+ "integrity": "sha512-Is0NeZ0K/QE1dPUy8oY8meXyYR6mNuzYtvWZxH5NwBXsOSa1ynXWclLzM6eU4Os6+NT4LnFsMXbwvfnraW3DnA=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- package.json
@@ -125,7 +125,7 @@
"@walmart/schedule-mini-app": "0.37.0",
"@walmart/settings-mini-app": "1.19.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
- "@walmart/taskit-mini-app": "2.47.4",
+ "@walmart/taskit-mini-app": "2.47.5",
"@walmart/texting-mini-app": "2.0.29",
"@walmart/time-clock-mini-app": "2.111.3",
"@walmart/topstock-mini-app": "1.0.13",
| chore: bump taskit@2.47.5 | chore: bump taskit@2.47.5
|
423ec6faab30a88b67646054ef523253158a36b1 | --- package.json
@@ -53,7 +53,7 @@
"@react-native-community/async-storage": "^1.11.0",
"@react-native-community/cameraroll": "4.1.2",
"@react-native-community/clipboard": "^1.5.0",
- "@react-native-community/datetimepicker": "^3.5.0",
+ "@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.9",
| Revert | Revert
datetimepicker to 3.0.9
|
075fd88c606abce1f630bbb16f018e267807c810 | --- packages/allspark-foundation/src/Core/types.ts
@@ -1,14 +1,16 @@
-import { ParamListBase } from '@react-navigation/native';
-
import { BaseAllsparkEnvironment } from '../Environment';
import { BaseModalParams } from '../Navigation/modals';
+export type ParamListBase = {
+ [x: string & {}]: object | undefined;
+};
+
declare global {
namespace Allspark {
interface Environment extends BaseAllsparkEnvironment {}
interface ScreenParams extends ParamListBase {}
- interface RootParamList {}
+ interface RootParamList extends ParamListBase {}
interface ModalParams extends BaseModalParams {}
| fix: global allspark screen keys not recognized | fix: global allspark screen keys not recognized
|
b4fa1374cfb3e1fe88815e59dbc8da693aefc025 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 148
+ versionCode 184
versionName "1.1.0"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>148</string>
+ <string>184</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
| bumping version code. | bumping version code.
|
a4ba9c50d547ead490aed3cab2a258b772fcd926 | --- targets/US/package.json
@@ -144,7 +144,7 @@
"@walmart/roster-mini-app": "2.9.0",
"@walmart/schedule-mini-app": "0.118.2",
"@walmart/shelfavailability-mini-app": "1.5.37",
- "@walmart/shop-gnfr-mini-app": "1.0.131",
+ "@walmart/shop-gnfr-mini-app": "1.0.135",
"@walmart/sidekick-mini-app": "4.84.7",
"@walmart/store-feature-orders": "1.27.1",
"@walmart/taskit-mini-app": "4.17.21",
| shop-gnfr crash fix | shop-gnfr crash fix
|
1a83b4db90b94218a6e8061cd9fe7441b9546bda | --- android/app/build.gradle
@@ -153,8 +153,8 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 896
- versionName "1.8.6"
+ versionCode 898
+ versionName "1.8.7"
}
splits {
abi {
--- ios/AllSpark/Info.plist
@@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.8.6</string>
+ <string>1.8.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>896</string>
+ <string>898</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
--- package-lock.json
@@ -1,6 +1,6 @@
{
"name": "allspark-main",
- "version": "1.8.6",
+ "version": "1.8.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
--- package.json
@@ -1,6 +1,6 @@
{
"name": "allspark-main",
- "version": "1.8.6",
+ "version": "1.8.7",
"private": true,
"scripts": {
"android": "react-native run-android",
| version bump | version bump
|
328ed98c53a2e2c0432571c21f2c88bcdb4c732f | --- graphql.yml
@@ -9,51 +9,42 @@ applications:
- name: "dev"
persistedQueries:
- name: "GetDailyRoster"
- hash: "3c6a1553234da438299662b03db04cc613b52ca997efb511ac76d5eff118a4bf"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v1"
- name: "GetTeamById"
- hash: "5a1baf2e68d6b2c9ddec825296731ccd2137a9e7f12d1f7210ca797814bb3e3f"
queryTemplate: "src/queries/getTeamById.graphql"
tags:
- "v1"
- name: "GetTeamsByStore"
- hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44"
queryTemplate: "src/queries/getTeamsByStore.graphql"
tags:
- "v1"
- name: "stage"
persistedQueries:
- name: "GetDailyRoster"
- hash: "3c6a1553234da438299662b03db04cc613b52ca997efb511ac76d5eff118a4bf"
queryTemplate: "src/queries/getDailyRoster.graphql"
tags:
- "v1"
- name: "GetTeamById"
- hash: "5a1baf2e68d6b2c9ddec825296731ccd2137a9e7f12d1f7210ca797814bb3e3f"
queryTemplate: "src/queries/getTeamById.graphql"
tags:
- "v1"
- name: "GetTeamsByStore"
- hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44"
- queryTemplate: "src/queries/getTeamsByStore.graphql"
- tags:
- - "v1"
- - name: "prod"
- persistedQueries:
- - name: "GetDailyRoster"
- hash: "3c6a1553234da438299662b03db04cc613b52ca997efb511ac76d5eff118a4bf"
- queryTemplate: "src/queries/getDailyRoster.graphql"
- tags:
- - "v1"
- - name: "GetTeamById"
- hash: "5a1baf2e68d6b2c9ddec825296731ccd2137a9e7f12d1f7210ca797814bb3e3f"
- queryTemplate: "src/queries/getTeamById.graphql"
- tags:
- - "v1"
- - name: "GetTeamsByStore"
- hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44"
queryTemplate: "src/queries/getTeamsByStore.graphql"
tags:
- "v1"
+ # - name: "prod"
+ # persistedQueries:
+ # - name: "GetDailyRoster"
+ # queryTemplate: "src/queries/getDailyRoster.graphql"
+ # tags:
+ # - "v1"
+ # - name: "GetTeamById"
+ # queryTemplate: "src/queries/getTeamById.graphql"
+ # tags:
+ # - "v1"
+ # - name: "GetTeamsByStore"
+ # queryTemplate: "src/queries/getTeamsByStore.graphql"
+ # tags:
+ # - "v1"
| feat: remove hash balues | feat: remove hash balues
|
1642956d12ec7147f04b39ae368ac28aaf223bfa | --- package-lock.json
@@ -46,7 +46,7 @@
"@walmart/counts-component-miniapp": "0.1.4",
"@walmart/emergency-mini-app": "1.24.1",
"@walmart/exception-mini-app": "1.4.2",
- "@walmart/facilities-management-miniapp": "0.6.39",
+ "@walmart/facilities-management-miniapp": "0.6.42",
"@walmart/feedback-all-spark-miniapp": "0.9.33",
"@walmart/financial-wellbeing-feature-app": "1.6.3",
"@walmart/functional-components": "~4.0.3",
@@ -5100,9 +5100,9 @@
}
},
"node_modules/@walmart/facilities-management-miniapp": {
- "version": "0.6.39",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.39.tgz",
- "integrity": "sha512-Y1WbrqkvSeZpQ3rqCL+zyR9Hq/g/sWp3jEkzVMQztJLQZOdSqdqU7TdCeseHSHLEoBAths1VNTfLuP+TqnIioA==",
+ "version": "0.6.42",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.42.tgz",
+ "integrity": "sha512-Y8vEO77cjH4MspTGM0xNjjFOJUXMERSZls9SkgAtc2w9t1rcRO+ryaJOHjSFVPv5dwTBoPJTFCb1/FquQSbM1Q==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-community/cameraroll": "^4.1.2",
@@ -5126,7 +5126,7 @@
"@walmart/impersonation-mini-app": "1.2.0",
"@walmart/moment-walmart": "1.0.4",
"@walmart/react-native-encrypted-storage": "1.1.3",
- "@walmart/react-native-scanner-3.0": "0.1.32-rc.1",
+ "@walmart/react-native-scanner-3.0": "0.3.0",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-sumo-sdk": "2.4.0-rc.2",
"@walmart/redux-store": "3.1.2",
@@ -25244,9 +25244,9 @@
"integrity": "sha512-DhXyv06uSEF1i4psfmIHfr1A4qZB8asZNUJaguCwJpypXWBBBtQYtgeG5ScIgbs0GmjfWKRUzNdjzixY2gLiwA=="
},
"@walmart/facilities-management-miniapp": {
- "version": "0.6.39",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.39.tgz",
- "integrity": "sha512-Y1WbrqkvSeZpQ3rqCL+zyR9Hq/g/sWp3jEkzVMQztJLQZOdSqdqU7TdCeseHSHLEoBAths1VNTfLuP+TqnIioA=="
+ "version": "0.6.42",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.42.tgz",
+ "integrity": "sha512-Y8vEO77cjH4MspTGM0xNjjFOJUXMERSZls9SkgAtc2w9t1rcRO+ryaJOHjSFVPv5dwTBoPJTFCb1/FquQSbM1Q=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.9.33",
--- 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.4.2",
- "@walmart/facilities-management-miniapp": "0.6.39",
+ "@walmart/facilities-management-miniapp": "0.6.42",
"@walmart/feedback-all-spark-miniapp": "0.9.33",
"@walmart/financial-wellbeing-feature-app": "1.6.3",
"@walmart/functional-components": "~4.0.3",
| Updating the facilities-management-miniapp to 0.6.42: Scanner Upgrade | Updating the facilities-management-miniapp to 0.6.42: Scanner Upgrade
|
a54e37eba03e01715324d5ad0d09634b47beee9b | --- __tests__/harness/athenaQueries/getDailyRoster.ts
@@ -492,9 +492,7 @@ export const mockGetDailyRosterQuery = {
};
export type GetDailyRosterResponse = GetDailyRosterQuery['getDailyRoster'];
-export const createMockDailyRosterResponse = (
- responseData: any,
-) => {
+export const createMockDailyRosterResponse = (responseData: any) => {
return {
request: {
query: GetDailyRosterDocument,
--- __tests__/screens/SearchScreen/SearchScreenTest.tsx
@@ -120,9 +120,7 @@ describe('SearchScreen', () => {
const mockGetDailyRosterQuery =
createMockDailyRosterResponse(hourlyUserData);
- AsyncStorage.getItem.mockResolvedValueOnce(
- JSON.stringify(["John Doe"]),
- );
+ AsyncStorage.getItem.mockResolvedValueOnce(JSON.stringify(['John Doe']));
const searchScreen = renderWithProviders(
<SearchScreen
@@ -149,9 +147,7 @@ describe('SearchScreen', () => {
it('should not show recent search history if there are no recent searches', async () => {
const mockGetDailyRosterQuery =
createMockDailyRosterResponse(hourlyUserData);
- AsyncStorage.getItem.mockResolvedValueOnce(
- JSON.stringify([]),
- );
+ AsyncStorage.getItem.mockResolvedValueOnce(JSON.stringify([]));
const searchScreen = renderWithProviders(
<SearchScreen
navigation={mockNavigation}
@@ -226,9 +222,7 @@ describe('SearchScreen', () => {
const mockGetDailyRosterQuery =
createMockDailyRosterResponse(hourlyUserData);
- AsyncStorage.getItem.mockResolvedValueOnce(
- JSON.stringify(["John Doe"]),
- );
+ AsyncStorage.getItem.mockResolvedValueOnce(JSON.stringify(['John Doe']));
const searchScreen = renderWithProviders(
<SearchScreen
@@ -264,9 +258,7 @@ describe('SearchScreen', () => {
const mockGetDailyRosterQuery =
createMockDailyRosterResponse(hourlyUserData);
- AsyncStorage.getItem.mockResolvedValueOnce(
- JSON.stringify(["John Doe"]),
- );
+ AsyncStorage.getItem.mockResolvedValueOnce(JSON.stringify(['John Doe']));
const mockLogger = jest.fn();
jest.spyOn(logger, 'error').mockImplementation(mockLogger);
const message = 'Error message';
| fix lint issues | fix lint issues
|
d3a10bf90a066c25e7fd8dcb1a07206d5a7acb40 | --- packages/allspark-foundation/package.json
@@ -72,7 +72,7 @@
"json-to-pretty-yaml": "^1.2.2",
"lodash": "~4.17.21",
"namecase": "^1.1.2",
- "react-hook-form": "^7.38.0",
+ "react-hook-form": "^7.51.0",
"react-i18next": "^13.3.1",
"react-native-modalfy": "^3.5.2",
"react-redux": "^8.1.3",
@@ -188,4 +188,4 @@
"optional": true
}
}
-}
+}
\ No newline at end of file
| chore: bump react hook form dependency | chore: bump react hook form dependency
|
fe5bc1212382f8e3fc5eafcdf4e9c5cf5988b785 | --- core/__tests__/oneClick/utility/updateMegaNavCCMTest.ts
@@ -0,0 +1,12 @@
+import {getIsFeatureEnabled} from '../../../src/oneClick/utility/updateMegaNavCCM.ts';
+
+describe('getIsFeatureEnabled', () => {
+ it('fallbacks to CCM menu value if oneclick is undefined', () => {
+ expect(getIsFeatureEnabled(undefined, false)).toEqual(false);
+ expect(getIsFeatureEnabled(undefined, true)).toEqual(true);
+ });
+ it('turns feature off if it is disabled from bff', () => {
+ expect(getIsFeatureEnabled(true, false)).toEqual(false);
+ expect(getIsFeatureEnabled(false, true)).toEqual(true);
+ });
+});
--- core/src/core/FeatureToggleGuard.tsx
@@ -63,7 +63,9 @@ export const FeatureToggleGuard = (
<ErrorMessage
UNSAFE_style={styles.errorStyle}
- title={translate('featureToggleGuard.title', capitalize(featureId))}
+ title={translate('featureToggleGuard.title', {
+ featureId: capitalize(featureId),
+ })}
actions={
<ButtonGroup>
<Button
@@ -73,7 +75,9 @@ export const FeatureToggleGuard = (
</Button>
</ButtonGroup>
}>
- {translate('featureToggleGuard.content', featureId)}
+ {translate('featureToggleGuard.content', {
+ featureId: capitalize(featureId),
+ })}
</ErrorMessage>
</View>
);
--- core/src/oneClick/utility/updateMegaNavCCM.ts
@@ -3,6 +3,11 @@ import {NavConfigData, NavType} from '@walmart/allspark-foundation/Navigation';
import {FEATURE_ID_ALIASES} from '../MiniApps';
import {OneClickConfig} from '../types';
+export const getIsFeatureEnabled = (
+ featureConfigEnable: undefined | boolean,
+ menuEnabled: boolean,
+) => (featureConfigEnable || true) && menuEnabled;
+
export const updateMegaNavCCM = (
meganavData: NavConfigData,
oneClickConfig: Record<string, OneClickConfig> | undefined,
@@ -18,7 +23,7 @@ export const updateMegaNavCCM = (
const featureId = FEATURE_ID_ALIASES[String(id)] || id;
const featureConfig = oneClickConfig?.[featureId];
- menu.enabled = featureConfig?.enable ?? menu.enabled;
+ menu.enabled = getIsFeatureEnabled(featureConfig?.enable, menu.enabled);
};
meganavClonedData[NavType.sideNav].forEach((navItem) => {
--- package.json
@@ -39,6 +39,9 @@
"@walmart/amp-mini-app": {
"built": false
},
+ "@walmart/associate-listening-mini-app": {
+ "built": false
+ },
"@walmart/attendance-mini-app": {
"built": false
},
@@ -102,6 +105,9 @@
"@walmart/roster-mini-app": {
"built": false
},
+ "@walmart/sidekick-mini-app": {
+ "built": false
+ },
"@walmart/store-feature-orders": {
"built": false
},
--- yarn.lock
@@ -7265,6 +7265,8 @@ __metadata:
dependenciesMeta:
"@walmart/amp-mini-app":
built: false
+ "@walmart/associate-listening-mini-app":
+ built: false
"@walmart/attendance-mini-app":
built: false
"@walmart/avp-feature-app":
@@ -7307,6 +7309,8 @@ __metadata:
built: false
"@walmart/roster-mini-app":
built: false
+ "@walmart/sidekick-mini-app":
+ built: false
"@walmart/store-feature-orders":
built: false
"@walmart/time-clock-mini-app":
| fix translation and ccm update with oneclick | fix translation and ccm update with oneclick
|
328f1939ef1d52e0364b6a22424352a68cf8de65 | --- packages/components-library/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.1.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-components-library@1.1.0...@walmart/allspark-components-library@1.1.1) (2025-08-19)
+
+### Bug Fixes
+
+- **components:** attribute crash on android ([70c87d0](https://gecgithub01.walmart.com/allspark/allspark/commit/70c87d0a2ab4e774517d43090a0bba7c2b6b5de7))
+- **components:** sidekick fixes ([16621b7](https://gecgithub01.walmart.com/allspark/allspark/commit/16621b7cd2a2679817f9387f75315988064f64cc))
+- **components:** snapshot tests ([577a3b4](https://gecgithub01.walmart.com/allspark/allspark/commit/577a3b4c897efd56b9afcb8286fc075f18d7152a))
+
# 1.1.0 (2025-08-11)
### Bug Fixes
--- packages/components-library/package.json
@@ -63,7 +63,7 @@
"test:watch": "jest --watch",
"test:update": "jest --updateSnapshot"
},
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"name": "@walmart/allspark-components-library",
| chore(version): updating package version | chore(version): updating package version
- @walmart/allspark-components-library@1.1.1
|
c293918069f7e0fd678a1cc670fb9272ea785b67 | --- src/screens/MessagesScreen.tsx
@@ -145,7 +145,6 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
* variables
*/
const iosPadding = top + 25;
- const STORE_CHANNEL = 'STORE_' + siteId;
// Holds reference to the first message doc in the list
// Used for pagination as starting place for next query
const firstMessageDoc =
@@ -292,7 +291,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
})?.userId || ''
);
});
- if (channelPath.includes(STORE_CHANNEL)) {
+ if (channelPath.includes(channelTypes.STORE_ALL)) {
return {
recipients: [siteId as string],
channelType: channelTypes.STORE_ALL,
--- src/screens/MessagesScreen.tsx
@@ -145,7 +145,6 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
* variables
*/
const iosPadding = top + 25;
- const STORE_CHANNEL = 'STORE_' + siteId;
// Holds reference to the first message doc in the list
// Used for pagination as starting place for next query
const firstMessageDoc =
@@ -292,7 +291,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
})?.userId || ''
);
});
- if (channelPath.includes(STORE_CHANNEL)) {
+ if (channelPath.includes(channelTypes.STORE_ALL)) {
return {
recipients: [siteId as string],
channelType: channelTypes.STORE_ALL,
| update push notification for team and store | update push notification for team and store
|
04b8ff90cc64194083bd8254c7273a8a02b02f32 | --- app.config.US.ts
@@ -274,6 +274,7 @@ const CONFIG: ExpoConfig = {
"./plugins/withWalmartPodResources",
"./plugins/withWebexSDK",
"./plugins/withWifiStoreLocator",
+ "./plugins/withAndroidOfflineRun",
],
scheme: ["meatwmt"],
splash: {
--- plugins/withAndroidOfflineRun.ts
@@ -0,0 +1,27 @@
+import {
+ ConfigPlugin,
+ withSettingsGradle,
+} from "@expo/config-plugins";
+
+const withAndroidOfflineRun: ConfigPlugin = (config) => {
+ // Android
+ config = withSettingsGradle(config, (config) => {
+ config.modResults.contents += `
+ // @generated begin withAndroidOfflineRun plugin
+ /**
+ * If you encounter the error message 'No cached version available for offline mode', set the flag to 'false' temporarily
+ * to download all native dependencies before switching it back to 'true'.
+ * This flag is not advisable if you need to download new dependencies of your Android SDK with each run.
+ * (Like testing new compass native SDK version each time you run the app)
+ */
+ gradle.startParameter.offline=false
+ // @generated end withAndroidOfflineRun plugin
+ `;
+
+ return config;
+ });
+
+ return config;
+};
+
+export default withAndroidOfflineRun;
--- plugins/withSumoSDK.ts
@@ -29,7 +29,7 @@ const withMainActivityIntent: ConfigPlugin = (config) => {
tag: "sumo-sdk-intent-handler",
src: config.modResults.contents,
newSrc: `
- override fun onNewIntent(intent: Intent?) {
+ override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
setIntent(intent)
}`,
| update type for intent and add offlinerun plugin | update type for intent and add offlinerun plugin
|
414839ffbe7fb1e5a74fe42ab08967c65a7d27d4 | --- package.json
@@ -213,6 +213,7 @@
"reselect": "^4.1.0",
"seamless-immutable": "^7.1.4",
"semver": "^7.3.4",
+ "util": "^0.12.4",
"uuid": "^3.3.2",
"victory-native": "^36.5.0",
"wifi-store-locator": "1.0.3",
| add util | add util
|
0c243dadd07579785f386910ed4028e3af1f819a | --- saucelabs/.looper-native-common-saucelabs.yml
@@ -15,6 +15,8 @@ envs:
XCODE_CONFIG: 'Release'
PROVISIONING_PROFILE: ./BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision
ENTITLEMENTS: './BuildSupport/ExportOptions.plist'
+ ARCHIVE_TYPE: enterprise
+ ARTIFACTS_DIR: "./ios/build/enterprise/Artifacts"
XC_PROJECT: './AllSpark.xcodeproj'
XC_WORKSPACE: './AllSpark.xcworkspace'
XC_SCHEME: 'AllSpark'
@@ -62,6 +64,8 @@ flows:
- var(buildOutput = "./ios/build/enterprise/Artifacts/enterprise-${XC_SCHEME}.ipa")
- echo "starting building iOS saucelabs build"
- (name setting environment) npm run env:${env}
+ - (name build ipa) ./BuildSupport/build-archive.sh
+ - call: upload-saucelabs(os = ${os},buildOutput=${buildOutput}, artifact_name=${APP_TITLE}.ipa)
- call: build-saucelabs-ios(os = ${os})
- call: upload-saucelabs(os = ${os},buildOutput="./ios/build/Artifacts/simulator-me-wm.zip", artifact_name=${APP_TITLE}.zip)
- (name looper postbuild clean) ./ios/BuildSupport/looper-clean.sh
| Added IPA build support for Saucelab builds | Added IPA build support for Saucelab builds |
558253ad1d4210b0fab53c79e52e159a4641beed | --- src/translations/index.ts
@@ -16,12 +16,12 @@ export const initTranslations = async () => {
},
});
- i18n.on('languageChanged', persistLanguage);
-
const initialLanguage = await getDeviceLanguage();
if (initialLanguage !== i18n.language) {
i18n.changeLanguage(initialLanguage);
}
+
+ i18n.on('languageChanged', persistLanguage);
};
// Mini apps add resources on init. The initial init above happens before their
| Fixing language setup | Fixing language setup
|
c262889017a0e17c7e1e3292763d6f1ba1d3790d | --- src/features/AssociateFeatures.tsx
@@ -8,20 +8,27 @@ import {useRbacConfig} from '@walmart/config-components';
import {registerMetricsWidgets} from '@walmart/metrics-mini-app';
import {registerAskSamWidgetsForNotes} from '@walmart/taskit-mini-app';
import {initialize as initializeWmConnect} from '@walmart/wmconnect-mini-app';
+import {FeatureModuleManager} from '@walmart/allspark-foundation/Feature';
import {impersonationSagas} from '../impersonation/sagas';
import {initNavConfig} from '../navConfig';
import {registerInboxComponents} from '../navigation/Inbox';
import {watchForRbacRequest} from '../rbacConfig/RbacSagas';
-import {initSettings} from '../settings';
+import {SettingsFeature} from '../settings';
import {surveySagas} from '../survey/SurveySaga';
import {whatsNewSagas} from '../whatsNew/WhatsNewSaga';
import {bannerSagas} from '../navigation/AssociateHallwayNav/Banners';
import {ScreenChangeListener} from '../navigation/NavigationConstants';
import {initCopeSideKeyListener} from '../copeSideKey';
+export const AssociateFeatureSet = new FeatureModuleManager(
+ 'default-associate',
+);
+
export const initAssociateFeatures = () => {
- const cleanupSettings = initSettings();
+ AssociateFeatureSet.add([SettingsFeature]);
+ AssociateFeatureSet.connectAll();
+
const cleanupNavConfig = initNavConfig();
const impersonationTask = AllsparkReduxStore.addSagas(impersonationSagas);
const whatsNewTask = AllsparkReduxStore.addSagas(whatsNewSagas);
@@ -39,7 +46,7 @@ export const initAssociateFeatures = () => {
registerInboxComponents();
return () => {
- cleanupSettings();
+ SettingsFeature.disconnect();
cleanupNavConfig();
cleanupWmConnect();
surveyTask.cancel();
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx
@@ -62,15 +62,6 @@ import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation';
import {metricsNavigationScreens} from '@walmart/metrics-mini-app';
import {MeganavTextingScreen} from '@walmart/wmconnect-mini-app';
-import {
- DataSaverSettings,
- NotificationSettings,
- SettingsHome,
- ThirdPartyNotices,
- TimeClockSettings,
- VersionsList,
- PrivacyPreferences,
-} from '../../settings';
import {WhatsNewModal} from '../../whatsNew/WhatsNewModal';
import {WhatsNewScreen} from '../../whatsNew/WhatsNewScreen';
import {FeatureRestrictionsScreen} from '../../whatsNew/FeatureRestrictionsScreen';
@@ -91,6 +82,7 @@ import {MainTabsNav} from './Tabs';
import {MainStackMap} from './types';
import {MyTeamStackNav} from './Tabs/MyTeamStackNav';
import {CheckoutMiniApp} from '@walmart/checkout-mini-app';
+import {AssociateFeatureSet} from '../../features/AssociateFeatures';
//--- Main Stack --- //
const MainStack = createStackNavigator<MainStackMap>();
@@ -254,6 +246,10 @@ export const MainStackNav = () => {
<MainStack.Screen name={AVP_NAV_SCREEN_NAME} component={AVPNav} />
</MainStack.Group>
+ {AssociateFeatureSet.Screens({
+ builder: {Navigator: MainStack as any},
+ })}
+
{/* These screens do not have a Header defined. We provide one from Core */}
<MainStack.Screen
name='Impersonation'
@@ -262,33 +258,13 @@ export const MainStackNav = () => {
headerBackImage: renderHeaderCloseImage,
}}
/>
- <MainStack.Screen name='Core.Settings' component={SettingsHome} />
+
<MainStack.Screen
name='Settings.Language'
component={LanguageSettings}
/>
- <MainStack.Screen
- name='Settings.Notifications'
- component={NotificationSettings}
- />
- <MainStack.Screen
- name='Settings.TimeClock'
- component={TimeClockSettings}
- />
- <MainStack.Screen
- name='Settings.DataSaver'
- component={DataSaverSettings}
- />
- <MainStack.Screen name='Settings.Versions' component={VersionsList} />
- <MainStack.Screen
- name='Settings.3rdPartyNotices'
- component={ThirdPartyNotices}
- />
<MainStack.Screen name='Settings.TermsOfUse' component={TermsOfUse} />
- <MainStack.Screen
- name='Settings.PrivacyPreferences'
- component={PrivacyPreferences}
- />
+
<MainStack.Screen name='Core.WhatsNew' component={WhatsNewScreen} />
<MainStack.Screen
name='Core.FeatureRestrictions'
--- src/settings/index.tsx
@@ -1,25 +1,40 @@
-import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux';
+import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature';
import {settingsSlice} from './redux';
import {settingsSagas} from './sagas';
-export const initSettings = () => {
- const reducer = AllsparkReduxStore.addReducer(
- settingsSlice.name,
- settingsSlice.reducer,
- );
- const task = AllsparkReduxStore.addSagas(settingsSagas);
+export const SettingsFeature = new AllsparkFeatureModule(settingsSlice.name, {
+ name: 'Settings',
+ redux: {
+ reducer: settingsSlice.reducer,
+ saga: settingsSagas,
+ },
+ screens: {
+ 'Settings.DataSaver': {
+ getComponent: () =>
+ require('./dataSaver/DataSaverSettings').DataSaverSettings,
+ },
+ 'Settings.Notifications': {
+ getComponent: () =>
+ require('./notifications/NotificationSettings').NotificationSettings,
+ },
+ 'Settings.PrivacyPreferences': {
+ getComponent: () =>
+ require('./privacy/PrivacyPreferences').PrivacyPreferences,
+ },
+ 'Settings.3rdPartyNotices': {
+ getComponent: () => require('./thirdPartyNotices').ThirdPartyNotices,
+ },
+ 'Settings.TimeClock': {
+ getComponent: () =>
+ require('./timeclock/TimeClockSettings').TimeClockSettings,
+ },
+ 'Settings.Versions': {
+ getComponent: () => require('./versions').VersionsList,
+ },
+ 'Core.Settings': {
+ getComponent: () => require('./SettingsHome').SettingsHome,
+ },
+ },
+});
- return () => {
- reducer.remove();
- task.cancel();
- };
-};
-
-export {DataSaverSettings} from './dataSaver/DataSaverSettings';
-export {NotificationSettings} from './notifications/NotificationSettings';
-export {PrivacyPreferences} from './privacy/PrivacyPreferences';
-export {ThirdPartyNotices} from './thirdPartyNotices';
-export {TimeClockSettings} from './timeclock/TimeClockSettings';
-export {VersionsList} from './versions';
-export {SettingsHome} from './SettingsHome';
-export * from './selectors';
+export {getDataSaverOn} from './selectors';
| refactor: update settings to use allspark feature module | refactor: update settings to use allspark feature module
|
24f71e62c92b53bc83248b79ce71e4d78b1b42ed | --- packages/me-at-walmart-container/__tests__/graphql/links.test.ts
@@ -94,7 +94,7 @@ describe('AthenaUriLink', () => {
describe('TypeRemappingLink', () => {
let operation = [{ data: { getDailyRoster: [{ id: '1', name: 'John Doe', teams: [{ id: 'team-1',
data: { getDailyRoster: { associates: {} } }, name: 'Team 1', membership: [{ id:'membership-1', role: 'MEMBER' }] }, { id: 'team-1',
- data: { getDailyRoster: { associates: {} } }, name: 'Team 1' }] }, {id:'1'}] } }, {}];
+ data: { getDailyRoster: { associates: {} } }, name: 'Team 1' }] }, {id:'1'}] } }, {}];
const forward = jest.fn(() => operation);
it('transforms response data using handleDailyRoster', async () => {
const result = await TypeRemappingLink.request(operation, forward);
--- packages/me-at-walmart-container/__tests__/http/utils.test.ts
@@ -47,6 +47,12 @@ describe('HTTP/utils', () => {
message: 'Mock error',
});
});
+ it('should return the cached log rate when async storage returns a value', async () => {
+ (AllsparkLocalStorage.get as jest.Mock).mockResolvedValueOnce('10');
+ const rate = await getAsyncLogRate();
+ expect(rate).toEqual(10);
+ expect(HttpLogger.warn).not.toHaveBeenCalled();
+ });
});
describe('getAsyncHeaderSizeLimit', () => {
@@ -67,6 +73,12 @@ describe('HTTP/utils', () => {
message: 'Mock error',
});
});
+ it('should return the cached header size limit when async storage returns a value', async () => {
+ (AllsparkLocalStorage.get as jest.Mock).mockResolvedValueOnce('1024');
+ const limit = await getAsyncHeaderSizeLimit();
+ expect(limit).toEqual(1024);
+ expect(HttpLogger.warn).not.toHaveBeenCalled();
+ });
});
describe('getAsyncAllowedHttp401ErrorLimit', () => {
@@ -88,5 +100,11 @@ describe('HTTP/utils', () => {
message: 'Mock error',
});
});
+ it('should return the cached allowed http 401 error limit when async storage returns a value', async () => {
+ (AllsparkLocalStorage.get as jest.Mock).mockResolvedValueOnce('5');
+ const limit = await getAsyncAllowedHttp401ErrorLimit();
+ expect(limit).toEqual(5);
+ expect(HttpLogger.warn).not.toHaveBeenCalled();
+ });
});
});
| added tests for util file | added tests for util file
|
f9498603f3b640c077cafd42de90ecfc453441cb | --- 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.21.0",
+ "@walmart/attendance-mini-app": "3.22.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.21.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.21.0.tgz",
- "integrity": "sha512-cP1E7mEftAiMGboCSpGb0VH+hP6oED14ACH08onjbV7iv7QDMa8rJ4/yfKS8AsATZO9/SxWcSsIXjGsH6s/Jkw==",
+ "version": "3.22.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.22.0.tgz",
+ "integrity": "sha512-RpDTtBr6F2zx43eRZJzj8rsm2V6VfPPWf87+cAIRdQzYZLrZJxxNY+8FuEgWhaUavxFCgT3DyTfwL++ALf1xVA==",
"hasInstallScript": true,
"dependencies": {
"@walmart/wfm-ui": "^0.2.26",
@@ -33228,9 +33228,9 @@
}
},
"@walmart/attendance-mini-app": {
- "version": "3.21.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.21.0.tgz",
- "integrity": "sha512-cP1E7mEftAiMGboCSpGb0VH+hP6oED14ACH08onjbV7iv7QDMa8rJ4/yfKS8AsATZO9/SxWcSsIXjGsH6s/Jkw==",
+ "version": "3.22.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.22.0.tgz",
+ "integrity": "sha512-RpDTtBr6F2zx43eRZJzj8rsm2V6VfPPWf87+cAIRdQzYZLrZJxxNY+8FuEgWhaUavxFCgT3DyTfwL++ALf1xVA==",
"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.21.0",
+ "@walmart/attendance-mini-app": "3.22.0",
"@walmart/avp-feature-app": "0.0.32",
"@walmart/avp-shared-library": "0.0.53",
"@walmart/calling-mini-app": "0.1.8",
| bump attendance version | bump attendance version
|
eb6ea69bf6a40eebc2abffdb133125e6202f9315 | --- graphql.yml
@@ -80,7 +80,7 @@ applications:
tags:
- "v2"
- name: "GetTeamsByStore"
- queryTemplate: "src/queries/getTeamsbyStore.graphql"
+ queryTemplate: "src/queries/getTeamsByStore.graphql"
tags:
- "v2"
- name: "SupplyChainTeamsByBusinessUnit"
| Update graphql yml | Update graphql yml
|
125267336d28141b3dd1a923fe1680af77f0e0dc | --- ios/Podfile.lock
@@ -1215,7 +1215,7 @@ PODS:
- React-Core
- react-native-image-resizer (1.4.5):
- React-Core
- - react-native-logger (1.34.4):
+ - react-native-logger (1.34.7):
- React
- react-native-loudness (2.0.0):
- React
@@ -1467,7 +1467,7 @@ PODS:
- walmart-react-native-sumo-sdk (2.6.0):
- React
- SumoSDK (= 2.6.0)
- - wifi-store-locator (1.4.0):
+ - wifi-store-locator (1.4.1):
- React-Core
- Yoga (1.14.0)
- YogaKit (1.18.1):
@@ -1978,7 +1978,7 @@ SPEC CHECKSUMS:
react-native-get-random-values: a6ea6a8a65dc93e96e24a11105b1a9c8cfe1d72a
react-native-image-picker: 4bc9ed38c8be255b515d8c88babbaf74973f91a8
react-native-image-resizer: d9fb629a867335bdc13230ac2a58702bb8c8828f
- react-native-logger: 0db20d526938502f78c2b473714742f2e6eb6f89
+ react-native-logger: 711175822c85fa54f38607812c99f3fa233ada09
react-native-loudness: 38527e7e42c3be3e4ea3d8aace2621a8eb9cafda
react-native-maps: 085f614cf14d3637b2048bb9752da5b1c27c2886
react-native-netinfo: f80db8cac2151405633324cb645c60af098ee461
@@ -2049,7 +2049,7 @@ SPEC CHECKSUMS:
topstock-mini-app: a09544266c2952c06d82e7b576fbd196c4782f7c
VisionCamera: 4cfd685b1e671fea4aa0400905ab397f0e972210
walmart-react-native-sumo-sdk: 02719d035c1a52e951e15097fae5ea17b459f71c
- wifi-store-locator: d3fb3a630fe7d5e64cca7a8f564dcf5b14a594e2
+ wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3
Yoga: dc109b79db907f0f589fc423e991b09ec42d2295
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
--- package-lock.json
@@ -73,7 +73,7 @@
"@walmart/profile-feature-app": "0.334.0",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
- "@walmart/react-native-logger": "1.34.4",
+ "@walmart/react-native-logger": "1.34.7",
"@walmart/react-native-scanner-3.0": "0.3.0",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
@@ -8952,7 +8952,9 @@
}
},
"node_modules/@walmart/react-native-logger": {
- "version": "1.34.4",
+ "version": "1.34.7",
+ "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.34.7.tgz",
+ "integrity": "sha512-L8BuJWLP2XkhOXC8wkvaAOaiCGPTUhwLtVgpd3YYooNLHb5VH8iJzDXuNJYQTCFgVVX49ImAAdQOxmHJ1QzfuA==",
"peerDependencies": {
"lodash": "^4.17.21",
"react": "^16.8.1",
@@ -33856,7 +33858,9 @@
"version": "0.2.0"
},
"@walmart/react-native-logger": {
- "version": "1.34.4"
+ "version": "1.34.7",
+ "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.34.7.tgz",
+ "integrity": "sha512-L8BuJWLP2XkhOXC8wkvaAOaiCGPTUhwLtVgpd3YYooNLHb5VH8iJzDXuNJYQTCFgVVX49ImAAdQOxmHJ1QzfuA=="
},
"@walmart/react-native-scanner-3.0": {
"version": "0.3.0"
--- package.json
@@ -114,7 +114,7 @@
"@walmart/profile-feature-app": "0.334.0",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
- "@walmart/react-native-logger": "1.34.4",
+ "@walmart/react-native-logger": "1.34.7",
"@walmart/react-native-scanner-3.0": "0.3.0",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
| fix(crash): fix logger crash SSMP-5854 | fix(crash): fix logger crash SSMP-5854
|
9b2c4a8a4ff29d9bae1e9e15af4dcf4186e8b304 | --- package-lock.json
@@ -83,7 +83,7 @@
"@walmart/returns-mini-app": "3.9.0",
"@walmart/schedule-mini-app": "0.55.0",
"@walmart/shelfavailability-mini-app": "1.5.17",
- "@walmart/taskit-mini-app": "2.47.8",
+ "@walmart/taskit-mini-app": "2.47.9",
"@walmart/texting-mini-app": "2.0.36",
"@walmart/time-clock-mini-app": "2.175.1",
"@walmart/topstock-mini-app": "1.2.4",
@@ -9200,9 +9200,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "2.47.8",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.8.tgz",
- "integrity": "sha512-0DWc8VIl7FH+ZuClhj9GL/yRUxB3M+rpkvrZDAjceVwCAyPoL3Q/dGdZaDaIwg7b5TBRQDbhtp46XXykcJNjzw==",
+ "version": "2.47.9",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.9.tgz",
+ "integrity": "sha512-c8KoBAJH23fJc9WrhCcfu+51uRJU0+I2FzSptJcRCq70rL2Xtgy/U8UZTGVye4FlrnZN2WgsCAFfDfkArPVSeA==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -34551,9 +34551,9 @@
"integrity": "sha512-8QEs//QA9txDVmgmIFhk+9mUSZw3zn2b+9PVGB0xyyAyKZn8+LbzpMqZTuzawF1PmFqfy/UAnMdhsuS80fikIg=="
},
"@walmart/taskit-mini-app": {
- "version": "2.47.8",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.8.tgz",
- "integrity": "sha512-0DWc8VIl7FH+ZuClhj9GL/yRUxB3M+rpkvrZDAjceVwCAyPoL3Q/dGdZaDaIwg7b5TBRQDbhtp46XXykcJNjzw=="
+ "version": "2.47.9",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.9.tgz",
+ "integrity": "sha512-c8KoBAJH23fJc9WrhCcfu+51uRJU0+I2FzSptJcRCq70rL2Xtgy/U8UZTGVye4FlrnZN2WgsCAFfDfkArPVSeA=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- package.json
@@ -124,7 +124,7 @@
"@walmart/returns-mini-app": "3.9.0",
"@walmart/schedule-mini-app": "0.55.0",
"@walmart/shelfavailability-mini-app": "1.5.17",
- "@walmart/taskit-mini-app": "2.47.8",
+ "@walmart/taskit-mini-app": "2.47.9",
"@walmart/texting-mini-app": "2.0.36",
"@walmart/time-clock-mini-app": "2.175.1",
"@walmart/topstock-mini-app": "1.2.4",
| chore: bump taskit@2.47.9 | chore: bump taskit@2.47.9
|
a9512d569f03a7af46764cefac9d1458b3b3c6f6 | --- ios/Podfile
@@ -54,7 +54,7 @@ target 'AllSpark' do
pod 'FirebaseMessaging', :modular_headers => true
pod 'CocoaAsyncSocket', :modular_headers => true
pod 'Realm', :modular_headers => true
- pod 'react-native-flipper', :path => '../node_modules/react-native-flipper/react-native-flipper.podspec', :configuration => 'Debug'
+ # pod 'react-native-flipper', :path => '../node_modules/react-native-flipper/react-native-flipper.podspec', :configuration => 'Debug'
post_install do |installer|
react_native_post_install(
--- ios/Podfile.lock
@@ -508,7 +508,7 @@ PODS:
- React-Core
- react-native-encrypted-storage (1.1.3):
- React-Core
- - react-native-flipper (0.172.0):
+ - react-native-flipper (0.176.1):
- React-Core
- react-native-geolocation-service (5.3.1):
- React
@@ -829,7 +829,7 @@ DEPENDENCIES:
- react-native-blob-util (from `../node_modules/react-native-blob-util`)
- "react-native-cameraroll (from `../node_modules/@react-native-community/cameraroll`)"
- "react-native-encrypted-storage (from `../node_modules/@walmart/react-native-encrypted-storage`)"
- - react-native-flipper (from `../node_modules/react-native-flipper/react-native-flipper.podspec`)
+ - react-native-flipper (from `../node_modules/react-native-flipper`)
- react-native-geolocation-service (from `../node_modules/react-native-geolocation-service`)
- react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
- react-native-image-picker (from `../node_modules/react-native-image-picker`)
@@ -1014,7 +1014,7 @@ EXTERNAL SOURCES:
react-native-encrypted-storage:
:path: "../node_modules/@walmart/react-native-encrypted-storage"
react-native-flipper:
- :path: "../node_modules/react-native-flipper/react-native-flipper.podspec"
+ :path: "../node_modules/react-native-flipper"
react-native-geolocation-service:
:path: "../node_modules/react-native-geolocation-service"
react-native-get-random-values:
@@ -1209,7 +1209,7 @@ SPEC CHECKSUMS:
react-native-blob-util: 4ec16cc21bfc8de8f0ddfd2c81ada00f8c34b646
react-native-cameraroll: 2957f2bce63ae896a848fbe0d5352c1bd4d20866
react-native-encrypted-storage: 632e8eac25dff0b6cac14e6e0c76498c4a39e24e
- react-native-flipper: 43ecd19174184c24aba5e1ef75ae13106af871e3
+ react-native-flipper: 7e4b1c3fe1a2eecbe7304e5ff6b89231b3ec61dc
react-native-geolocation-service: 608e1da71a1ac31b4de64d9ef2815f697978c55b
react-native-get-random-values: a6ea6a8a65dc93e96e24a11105b1a9c8cfe1d72a
react-native-image-picker: 4bc9ed38c8be255b515d8c88babbaf74973f91a8
@@ -1288,6 +1288,6 @@ SPEC CHECKSUMS:
Yoga: eca980a5771bf114c41a754098cd85e6e0d90ed7
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
-PODFILE CHECKSUM: 29ede50e5b57947bf4de6cd122d710b0573ca148
+PODFILE CHECKSUM: c3652135f25526e26626b07a45c2c9959f13cda8
COCOAPODS: 1.11.3
--- react-native.config.js
@@ -3,12 +3,12 @@ module.exports = {
ios: {},
android: {},
},
- dependencies: {
- 'react-native-flipper': {
- platforms: {
- ios: null,
- },
- },
- },
+ // dependencies: {
+ // 'react-native-flipper': {
+ // platforms: {
+ // ios: null,
+ // },
+ // },
+ // },
assets: ['node_modules/@walmart/ui-components/assets'],
};
| fix flipper | fix flipper
|
5698c5eda53db0895d9836910c4d4c77b3b8f5d1 | --- package-lock.json
@@ -65,7 +65,7 @@
"@walmart/pay-stub-miniapp": "0.9.21",
"@walmart/payrollsolution_miniapp": "0.130.23",
"@walmart/price-changes-mini-app": "1.6.10",
- "@walmart/profile-feature-app": "0.139.0",
+ "@walmart/profile-feature-app": "0.140.0",
"@walmart/push-to-talk-mini-app": "1.8.59",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
@@ -5693,9 +5693,9 @@
}
},
"node_modules/@walmart/profile-feature-app": {
- "version": "0.139.0",
- "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.139.0.tgz",
- "integrity": "sha512-YFiFiwrUXTtofr+wkRl6IvK+rrQpo337lC1NrkLdAcooJZztIuZsP+i0ILETLeDw40HP6I5vD4mbQGZIaz0YrA==",
+ "version": "0.140.0",
+ "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.140.0.tgz",
+ "integrity": "sha512-j+fhEvoZkT9IcU/Ma7FXPO21uwn9o1PPhdQtTAebJdevpVUl1PXpWPZ7QyQBvHLbJ6UcT8gF/EzZucxkuVa7mQ==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/bottom-tabs": "^6.0.0",
@@ -25323,9 +25323,9 @@
"integrity": "sha512-TIzjXjT8jlsb/OrY7WPr4xUv5RsCsnNN0wwjawIwOHurrZtrFn8f/WjwkY8e6zUC3AlZ4QsHdaKqCD/pfkgGPg=="
},
"@walmart/profile-feature-app": {
- "version": "0.139.0",
- "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.139.0.tgz",
- "integrity": "sha512-YFiFiwrUXTtofr+wkRl6IvK+rrQpo337lC1NrkLdAcooJZztIuZsP+i0ILETLeDw40HP6I5vD4mbQGZIaz0YrA=="
+ "version": "0.140.0",
+ "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.140.0.tgz",
+ "integrity": "sha512-j+fhEvoZkT9IcU/Ma7FXPO21uwn9o1PPhdQtTAebJdevpVUl1PXpWPZ7QyQBvHLbJ6UcT8gF/EzZucxkuVa7mQ=="
},
"@walmart/push-to-talk-mini-app": {
"version": "1.8.59",
--- package.json
@@ -107,7 +107,7 @@
"@walmart/pay-stub-miniapp": "0.9.21",
"@walmart/payrollsolution_miniapp": "0.130.23",
"@walmart/price-changes-mini-app": "1.6.10",
- "@walmart/profile-feature-app": "0.139.0",
+ "@walmart/profile-feature-app": "0.140.0",
"@walmart/push-to-talk-mini-app": "1.8.59",
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
| Bumped profile-feature-app to 0.140.0 | Bumped profile-feature-app to 0.140.0
|
0e37eb717af2c9b6cb10200561d685def2a0568f | --- packages/allspark-foundation/src/Navigation/Elements/types.ts
@@ -2,6 +2,7 @@ import { FC, FunctionComponentElement } from 'react';
import { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native';
import { WidgetRegistry } from '@walmart/allspark-utils';
import { BadgeColor, BannerVariant } from '@walmart/gtp-shared-components';
+import { AnimatedStyle, StylesOrDefault } from 'react-native-reanimated';
export type AddBannerConfig = {
id: string;
@@ -11,7 +12,7 @@ export type AddBannerConfig = {
};
export type BannerRegistryProps = {
- style?: StyleProp<ViewStyle>;
+ style?: StyleProp<AnimatedStyle<StylesOrDefault<StyleProp<ViewStyle>>>>;
};
export type StackNavigationElements = {
@@ -29,7 +30,7 @@ export type AddBadgeConfig = {
};
export type BadgeRegistryProps = {
- style?: StyleProp<ViewStyle>;
+ style?: StyleProp<AnimatedStyle<StylesOrDefault<StyleProp<ViewStyle>>>>;
};
export type DrawerNavigationElements = {
--- packages/allspark-foundation/src/Navigation/components/DrawerButton.tsx
@@ -1,5 +1,6 @@
import React from 'react';
import { ImageStyle, StyleProp, StyleSheet, ViewStyle } from 'react-native';
+import { AnimatedStyle, StylesOrDefault } from 'react-native-reanimated';
import { HeaderBackButtonProps } from '@react-navigation/elements';
import { DrawerActions, useNavigation } from '@react-navigation/native';
import { StackNavigationOptions } from '@react-navigation/stack';
@@ -10,7 +11,7 @@ import { useDrawerConfig } from '../Config';
export type DrawerButtonProps = HeaderBackButtonProps & {
style?: StyleProp<ViewStyle>;
iconStyle?: ImageStyle | ImageStyle[];
- badgeStyle?: StyleProp<ViewStyle>;
+ badgeStyle?: StyleProp<AnimatedStyle<StylesOrDefault<StyleProp<ViewStyle>>>>;
};
const styles = StyleSheet.create({
| chore: fix type bugs | chore: fix type bugs
|
661b66bc2f4cfbafff8ed61c6ac54262fe69d52d | --- package.json
@@ -241,7 +241,7 @@
"react-native-pdf": "6.7.5",
"react-native-permissions": "^3.10.1",
"react-native-qrcode-svg": "^6.1.2",
- "react-native-reanimated": "^3.16.7",
+ "react-native-reanimated": "3.16.7",
"react-native-render-html": "^6.1.0",
"react-native-safe-area-context": "~5.1.0",
"react-native-screens": "~4.8.0",
--- yarn.lock
@@ -7886,7 +7886,7 @@ __metadata:
react-native-pdf: "npm:6.7.5"
react-native-permissions: "npm:^3.10.1"
react-native-qrcode-svg: "npm:^6.1.2"
- react-native-reanimated: "npm:^3.16.7"
+ react-native-reanimated: "npm:3.16.7"
react-native-render-html: "npm:^6.1.0"
react-native-safe-area-context: "npm:~5.1.0"
react-native-screens: "npm:~4.8.0"
@@ -19429,16 +19429,6 @@ __metadata:
languageName: node
linkType: hard
-"react-native-is-edge-to-edge@npm:1.1.7":
- version: 1.1.7
- resolution: "react-native-is-edge-to-edge@npm:1.1.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-is-edge-to-edge%2F-%2Freact-native-is-edge-to-edge-1.1.7.tgz"
- peerDependencies:
- react: "*"
- react-native: "*"
- checksum: 10c0/b7a37437f439b1e27a4d980de01994aa71b9091dc3ed00c21172d5505fb11978cd5ed3a43f97c89d502a3a08cf26e5cea6435b8d6e93d3557a92dd43563f7021
- languageName: node
- linkType: hard
-
"react-native-maps@npm:1.18.0":
version: 1.18.0
resolution: "react-native-maps@npm:1.18.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-maps%2F-%2Freact-native-maps-1.18.0.tgz"
@@ -19595,9 +19585,9 @@ __metadata:
languageName: node
linkType: hard
-"react-native-reanimated@npm:^3.16.7":
- version: 3.19.1
- resolution: "react-native-reanimated@npm:3.19.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-reanimated%2F-%2Freact-native-reanimated-3.19.1.tgz"
+"react-native-reanimated@npm:3.16.7":
+ version: 3.16.7
+ resolution: "react-native-reanimated@npm:3.16.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-reanimated%2F-%2Freact-native-reanimated-3.16.7.tgz"
dependencies:
"@babel/plugin-transform-arrow-functions": "npm:^7.0.0-0"
"@babel/plugin-transform-class-properties": "npm:^7.0.0-0"
@@ -19610,12 +19600,11 @@ __metadata:
"@babel/preset-typescript": "npm:^7.16.7"
convert-source-map: "npm:^2.0.0"
invariant: "npm:^2.2.4"
- react-native-is-edge-to-edge: "npm:1.1.7"
peerDependencies:
"@babel/core": ^7.0.0-0
react: "*"
react-native: "*"
- checksum: 10c0/82f83f8cd307dbb3d0d435a7c801fa27d06265b1eed51844013682e133072e447fd15c3f12814f4bd8d4759c89ad4b1043631611284afbd8e6eb505f57af0f12
+ checksum: 10c0/007cbec677d036e8d2c0744dfff52282ddfb9a89bb3eee82e7eaebcf731b07505e241af04ac87a38da038a18e380b32ec8a55263d1bb8559274d1c077b0b1d25
languageName: node
linkType: hard
| test: downgrade RN reanimated | test: downgrade RN reanimated
|
d56770e465a124104d2ed15fa0a2e8cd29b96237 | --- package.json
@@ -56,7 +56,6 @@
"@react-native-firebase/perf": "~22.4.0",
"@react-native-firebase/remote-config": "~22.4.0",
"@react-native-firebase/firestore": "~22.4.0",
- "@react-native/normalize-colors": "0.79.5",
"react": "19.0.0",
"react-native": "0.79.5",
"graphql": "^16.8.1"
--- yarn.lock
@@ -6083,6 +6083,20 @@ __metadata:
languageName: node
linkType: hard
+"@react-native/normalize-colors@npm:0.79.6":
+ version: 0.79.6
+ resolution: "@react-native/normalize-colors@npm:0.79.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-native%2Fnormalize-colors%2F-%2Fnormalize-colors-0.79.6.tgz"
+ checksum: 10c0/2bc662b6846a92fe62bc54be34204ad90eeceb9747fdd6f439f3262a8b93a47c1a9f574368749c07636a9a746e2d5b842e9492f55bbfcbe164a1b7385f467ac1
+ languageName: node
+ linkType: hard
+
+"@react-native/normalize-colors@npm:^0.74.1":
+ version: 0.74.89
+ resolution: "@react-native/normalize-colors@npm:0.74.89::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-native%2Fnormalize-colors%2F-%2Fnormalize-colors-0.74.89.tgz"
+ checksum: 10c0/6d0e5c91793ca5a66b4a0e5995361f474caacac56bde4772ac02b8ab470bd323076c567bd8856b0b097816d2b890e73a4040a3df01fd284adee683f5ba89d5ba
+ languageName: node
+ linkType: hard
+
"@react-native/typescript-config@npm:0.73.1":
version: 0.73.1
resolution: "@react-native/typescript-config@npm:0.73.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-native%2Ftypescript-config%2F-%2Ftypescript-config-0.73.1.tgz"
| chore: update package for @react-native/normalize-colors and yarn.lock | chore: update package for @react-native/normalize-colors and yarn.lock
|
64e3c4d42f05cd7e22b2563b2696ff944f524ec1 | --- core/__tests__/startup/AppFlowTest.ts
@@ -82,9 +82,6 @@ describe('captureMissedMiniAppEvents', () => {
expect(iterator.next(loadMiniAppsAction).value).toEqual(
select(NetworkSelectors.getNetworkType),
);
- expect(iterator.next(networkType).value).toEqual(
- call(AllsparkTranslationClient.emit, 'initialized'),
- );
expect(iterator.next().value).toEqual(
all([
put(UPDATE_NETWORK_TYPE(networkType)),
--- core/src/startup/AppFlow.ts
@@ -52,7 +52,7 @@ export function* captureMissedMiniAppEvents(): any {
// Mini apps add resources on init. The initial init happens before their
// listeners are created, so we can manually fire event again to load their resources.
// Translations should be added to Allspark feature module in the future
- yield call(AllsparkTranslationClient.emit, 'initialized');
+ AllsparkTranslationClient.emit('initialized');
yield all([
// For those mini apps expecting network actions to init services
--- packages/me-at-walmart-container/__tests__/redux/navConfig.test.ts
@@ -126,7 +126,7 @@ describe('nav config sagas', () => {
expect(iterator.next().value).toEqual(
all([
select(UserSelectors.getUserId),
- select(UserSelectors.getUserType),
+ select(UserSelectors.getEmployeeType),
select(UserSelectors.getDomain),
select(SiteSelectors.getWorkingSiteSiteId),
select(SiteSelectors.getWorkingSiteCountry),
--- packages/me-at-walmart-container/src/redux/navConfig.ts
@@ -90,7 +90,7 @@ export function* getNavConfigScope() {
deviceType,
]: string[] = yield all([
select(UserSelectors.getUserId),
- select(UserSelectors.getUserType),
+ select(UserSelectors.getEmployeeType),
select(UserSelectors.getDomain),
select(SiteSelectors.getWorkingSiteSiteId),
--- targets/US/src/features/root/codePush.tsx
@@ -6,7 +6,6 @@ import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux';
import {MeAtWalmartContainer} from '@walmart/me-at-walmart-container';
const codePushStatusDidChange = (codePushStatus: codePush.SyncStatus) => {
- console.log('rlane1 - code push status change', codePushStatus);
switch (codePushStatus) {
case codePush.SyncStatus.UP_TO_DATE:
AllsparkReduxStore.dispatch(
--- targets/US/src/setup.ts
@@ -6,6 +6,7 @@ import {MeAtWalmartContainer} from '@walmart/me-at-walmart-container';
import {AllsparkNotificationClient} from '@walmart/allspark-foundation/Notification';
import {ComponentType} from 'react';
import {Text, TextInput, TextInputProps} from 'react-native';
+import {AllsparkTranslationClient} from '@walmart/allspark-foundation/Translation';
// Set up font scaling for the app to avoid issues with settings overriding the app's font styles.
export const setFontScaling = () => {
@@ -91,6 +92,8 @@ export const USAssociateSetup = {
require('./features/associate/taskIt').TaskItFeature,
require('./features/associate/wmConnect').WMConnectFeature,
]);
+
+ AllsparkTranslationClient.emit('initialized');
},
cleanup: noop,
};
| chore: general fixes and log removal | chore: general fixes and log removal
|
0752392f2bd5a6bce3b4a22eb98d5bbef6efe5a4 | --- __tests__/communications/oneToOneChatTest.tsx
@@ -107,7 +107,7 @@ describe('One to One Chat', () => {
firestore,
'STORE_100',
);
- console.log(channelsContext.nameById);
+ console.log(channelsContext.lastMessageById);
const testComponentWithChannelsProvider = renderWithProviders(
<TestFirestoreComponent />,
{channelsContext: channelsContext},
--- __tests__/harness/firestore/channelsProvider.ts
@@ -1,6 +1,7 @@
import _ from 'lodash';
import {IChannelsContext} from '../../../src/channels';
import {decryptUserId} from '../../../src/utils';
+import {determineLastMessageText} from '../../../src/channels/transforms';
export const createMockChannelsContext = async (
mockFirestore: any,
@@ -16,10 +17,19 @@ export const createMockChannelsContext = async (
).docs;
})();
+ const getMessagesForChannel = async (channelId: string) => {
+ return await mockFirestore
+ .collection('text_channels')
+ .doc(storeDocumentID)
+ .collection('channels')
+ .doc(channelId)
+ .collection('messages')
+ .get();
+ };
+
const getRecipientsFromChannelParticipants = (participants: string[]) => {
return participants?.length > 1 ? participants.slice(1) : [];
};
-
//TODO: Give channel appropriate type
return {
ids: getStoreChannels.map((channel: any) => {
@@ -66,7 +76,42 @@ export const createMockChannelsContext = async (
},
{},
),
- lastMessageById: {},
+ lastMessageById: _.reduce(
+ await Promise.all(
+ getStoreChannels.map(async (channel: any) => {
+ const getChannelIdFromPath = (channelPath: string) => {
+ const channelPathParts = channelPath.split('/');
+ return channelPathParts[channelPathParts.length - 1];
+ };
+ const channelId = getChannelIdFromPath(channel.ref.path);
+ const channelMessages = await getMessagesForChannel(channelId);
+ const lastMessageDoc = channelMessages.docs[0];
+ const lastMessageRawData = lastMessageDoc.data();
+
+ const messageText = determineLastMessageText(lastMessageRawData);
+
+ //TODO: timestamp data field invalid. Refactor generateCreatedAt date to be valid firestore Timestamp object
+ return {
+ channelPath: channel.ref.path,
+ createdAt: lastMessageRawData.createdAt,
+ message: messageText,
+ sentFrom: lastMessageRawData.sentFrom,
+ id: lastMessageDoc.id,
+ timestamp: lastMessageRawData.createdAt,
+ };
+ }),
+ ),
+ (acc, lastMessageEntry) => {
+ return {
+ ...acc,
+ [lastMessageEntry.channelPath]: _.omit(
+ lastMessageEntry,
+ 'channelPath',
+ ),
+ };
+ },
+ {},
+ ),
unreadById: {},
totalUnread: 0,
totalUnreadChannels: 0,
--- __tests__/communications/oneToOneChatTest.tsx
@@ -107,7 +107,7 @@ describe('One to One Chat', () => {
firestore,
'STORE_100',
);
- console.log(channelsContext.nameById);
+ console.log(channelsContext.lastMessageById);
const testComponentWithChannelsProvider = renderWithProviders(
<TestFirestoreComponent />,
{channelsContext: channelsContext},
--- __tests__/harness/firestore/channelsProvider.ts
@@ -1,6 +1,7 @@
import _ from 'lodash';
import {IChannelsContext} from '../../../src/channels';
import {decryptUserId} from '../../../src/utils';
+import {determineLastMessageText} from '../../../src/channels/transforms';
export const createMockChannelsContext = async (
mockFirestore: any,
@@ -16,10 +17,19 @@ export const createMockChannelsContext = async (
).docs;
})();
+ const getMessagesForChannel = async (channelId: string) => {
+ return await mockFirestore
+ .collection('text_channels')
+ .doc(storeDocumentID)
+ .collection('channels')
+ .doc(channelId)
+ .collection('messages')
+ .get();
+ };
+
const getRecipientsFromChannelParticipants = (participants: string[]) => {
return participants?.length > 1 ? participants.slice(1) : [];
};
-
//TODO: Give channel appropriate type
return {
ids: getStoreChannels.map((channel: any) => {
@@ -66,7 +76,42 @@ export const createMockChannelsContext = async (
},
{},
),
- lastMessageById: {},
+ lastMessageById: _.reduce(
+ await Promise.all(
+ getStoreChannels.map(async (channel: any) => {
+ const getChannelIdFromPath = (channelPath: string) => {
+ const channelPathParts = channelPath.split('/');
+ return channelPathParts[channelPathParts.length - 1];
+ };
+ const channelId = getChannelIdFromPath(channel.ref.path);
+ const channelMessages = await getMessagesForChannel(channelId);
+ const lastMessageDoc = channelMessages.docs[0];
+ const lastMessageRawData = lastMessageDoc.data();
+
+ const messageText = determineLastMessageText(lastMessageRawData);
+
+ //TODO: timestamp data field invalid. Refactor generateCreatedAt date to be valid firestore Timestamp object
+ return {
+ channelPath: channel.ref.path,
+ createdAt: lastMessageRawData.createdAt,
+ message: messageText,
+ sentFrom: lastMessageRawData.sentFrom,
+ id: lastMessageDoc.id,
+ timestamp: lastMessageRawData.createdAt,
+ };
+ }),
+ ),
+ (acc, lastMessageEntry) => {
+ return {
+ ...acc,
+ [lastMessageEntry.channelPath]: _.omit(
+ lastMessageEntry,
+ 'channelPath',
+ ),
+ };
+ },
+ {},
+ ),
unreadById: {},
totalUnread: 0,
totalUnreadChannels: 0,
| adding last message text entry | adding last message text entry
|
2881545c975644eb33b1137de6b1911cc29bf495 | --- fastlane/Pluginfile
@@ -5,4 +5,4 @@
gem 'fastlane-plugin-versioning_android'
gem 'fastlane-plugin-versioning_ios'
gem 'fastlane-plugin-json'
-gem 'fastlane-plugin-appcenter'
+gem 'fastlane-plugin-appcenter', '~> 2.0'
| Update Pluginfile | Update Pluginfile |
6fd16bfd4109822b972fd3652b98483182586b9f | --- jest.config.js
@@ -23,7 +23,7 @@ module.exports = {
},
},
transformIgnorePatterns: [
- '<rootDir>/node_modules/(?!(react-native|react-redux|@react-native|expo|expo-av|react-native-flipper|@react-native-community/async-storage|axios|@lifeomic/axios-fetch|react-native-reanimated|@walmart/gtp-shared-components|@walmart/allspark-foundation|@walmart/gtp-shared-icons|@react-native-community/picker|@react-native-community/netinfo|@walmart/redux-store|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|@react-native/polyfills|@react-native/normalize-color|@walmart/ui-components|@walmart/core-services|@walmart/allspark-utils|@walmart/core-utils|@walmart/allspark-graphql-client|@walmart/allspark-http-client|@walmart/allspark-utils|@walmart/config-components|@walmart/allspark-foundation/Environment|@walmart/allspark-foundation/User|@walmart/allspark-foundation/Redux))',
+ '<rootDir>/node_modules/(?!(react-native|react-redux|@react-native|expo|expo-av|react-native-flipper|@react-native-community/async-storage|axios|@lifeomic/axios-fetch|react-native-reanimated|@walmart/gtp-shared-components|@walmart/allspark-foundation|@walmart/gtp-shared-icons|@react-native-community/picker|@react-native-community/netinfo|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|@react-native/polyfills|@react-native/normalize-color|@walmart/ui-components|@walmart/core-services|@walmart/allspark-utils|@walmart/allspark-http-client|@walmart/allspark-utils|@walmart/config-components|@walmart/allspark-foundation/Environment|@walmart/allspark-foundation/User|@walmart/allspark-foundation/Redux))',
],
testPathIgnorePatterns: [
'<rootDir>/__tests__/setup.ts',
| Adding jest config changes | Adding jest config changes
|
a2cf2112671c0d742251052c15c84b8172b1c64d | --- package-lock.json
@@ -1887,9 +1887,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.6.11",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.11.tgz",
- "integrity": "sha512-gDh97dgirUP8owP9Nj4mfpLmGCpCYRMuubCP8Vh5WmBQ18pX8REhgxLBVZgKeXqpEC3QXlklIm4x0tVxKaCg6Q==",
+ "version": "0.6.13",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.13.tgz",
+ "integrity": "sha512-pVrRFkxtCpzjxHqJTQgwBPqGj91WIw8wVoeq0SDInPWVT/FGXOdeYnDD/fEYsWEjQoWlPel0rCWjrp0RUSmQyg==",
"requires": {
"@babel/preset-typescript": "^7.10.4",
"apisauce": "^1.1.2",
@@ -9359,9 +9359,9 @@
}
},
"react-native-wm-barcode": {
- "version": "2.3.0",
- "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.3.0.tgz",
- "integrity": "sha512-B4sr2D46JndoZ16OFnL9Zs8g/SUeFo4JItAJdf58kCZ08meMwZ3svXzRyfYtR1tWMUHmK5OuXwIu6KP4WQqd1g=="
+ "version": "2.1.0",
+ "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.1.0.tgz",
+ "integrity": "sha512-hSFyGpCsQ1UbHk5lvkcPZQhwiXuJT4E28r9a2JI4PKzGqWmwNJKZA2iGkIin/QruWfORxYTCUDU0rH81HodtpQ=="
},
"react-native-wm-config": {
"version": "0.1.1",
--- package.json
@@ -39,7 +39,7 @@
"@types/lodash": "^4.14.159",
"@walmart/allspark-home-mini-app": "0.1.1",
"@walmart/allspark-me-mini-app": "0.0.5",
- "@walmart/ask-sam-mini-app": "^0.6.11",
+ "@walmart/ask-sam-mini-app": "0.6.13",
"@walmart/config-components": "^1.0.4",
"@walmart/functional-components": "^1.0.22",
"@walmart/gtp-shared-components": "^0.2.2",
@@ -84,7 +84,7 @@
"react-native-video": "^5.1.0-alpha8",
"react-native-view-shot": "^3.1.2",
"react-native-webview": "^10.7.0",
- "react-native-wm-barcode": "^2.3.0",
+ "react-native-wm-barcode": "2.1.0",
"react-native-wm-notification": "^0.1.1",
"react-native-wm-telemetry": "^0.2.0",
"react-native-wm-voice-text": "^0.3.0",
| fixed package.lock | fixed package.lock
|
422e5c2f49e5089329f196449652ee4807f6ef51 | --- src/navigation/AssociateHallwayNav/MainStackNav.tsx
@@ -65,6 +65,7 @@ import {ReturnsMiniApp} from '@walmart/returns-mini-app';
import {EmergencyBannerScreen} from '@walmart/emergency-mini-app';
import {MeganavTextingScreen} from '@walmart/texting-mini-app';
import {TopstockMiniApp} from '@walmart/topstock-mini-app';
+import {MyTeamStackNav} from './Tabs/MyTeamStackNav';
//--- Main Stack --- //
const MainStack = createStackNavigator();
@@ -141,6 +142,7 @@ export const MainStackNav = () => {
<MainStack.Screen name='tabs' component={MainTabsNav} />
<MainStack.Screen name='inbox' component={InboxScreen} />
<MainStack.Screen name='scheduleScreen' component={ScheduleMiniApp} />
+ <MainStack.Screen name='myTeam' component={MyTeamStackNav} />
<MainStack.Screen name='Feedback' component={FeedbackMiniApp} />
<MainStack.Screen
| update Mainstack nav to include MyTeamStack Nav | update Mainstack nav to include MyTeamStack Nav
|
877ad1a6d051a3e96908bf50e7bc105d65097a50 | --- src/config/HubConfig.tsx
@@ -0,0 +1,44 @@
+/**
+ * @file config/HubConfig.tsx
+ * @description Hub configuration for Roster Mini App
+ *
+ * This file registers Roster components with the Hub Framework
+ * for use in the Associate Experience Hub.
+ */
+
+import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components';
+import {SalariedOrTeamLeadRosterWidget} from '../components/MyWalmartv2/Widgets';
+
+// Hub configuration constants
+export const ROSTER_HUB_CONFIG = {
+ ID: 'associate-exp-hub',
+ WIDGET_IDS: {
+ ROSTER: 'roster-widget',
+ },
+} as const;
+
+/**
+ * Register Roster components with the Hub Framework
+ */
+export const registerRosterComponents = () => {
+ try {
+ // Register Roster Widget
+ AllsparkComponentContainers.add(
+ ROSTER_HUB_CONFIG.ID,
+ ROSTER_HUB_CONFIG.WIDGET_IDS.ROSTER,
+ SalariedOrTeamLeadRosterWidget
+ );
+
+ console.log('Roster components registered successfully');
+ } catch (error) {
+ console.error('Failed to register Roster components:', error);
+ throw error;
+ }
+};
+
+/**
+ * Initialize Roster Hub integration
+ */
+export const initializeRosterHub = () => {
+ registerRosterComponents();
+};
--- src/index.tsx
@@ -6,6 +6,9 @@ export * from './shared';
// Export widgets for external use: Remove this after testing
export * from './components/MyWalmartv2/Widgets';
+// Export hub configuration
+export * from './config/HubConfig';
+
export default RosterFeature.createModule({
...foundationModuleConfig,
});
| chore(ui): update hub config for roster | chore(ui): update hub config for roster
|
a0e42128d36855df83b0806d15ffa0c0912d69eb | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.32",
+ "version": "2.0.33",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/texting-mini-app",
- "version": "2.0.32",
+ "version": "2.0.33",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.8.4",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.32",
+ "version": "2.0.33",
"private": false,
"main": "bundle/dist/index.js",
"files": [
--- src/containers/UserHeader.tsx
@@ -48,11 +48,8 @@ export const UserHeader = () => {
const renderDoNotDisturbToggle = () => {
return (
<>
- <Switch
- isOn={presence === 'offline'}
- onValueChange={onStatusChange}
- />
- <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text>
+ <Switch isOn={presence === 'offline'} onValueChange={onStatusChange} />
+ <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text>
</>
);
};
--- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.32",
+ "version": "2.0.33",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/texting-mini-app",
- "version": "2.0.32",
+ "version": "2.0.33",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.8.4",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.32",
+ "version": "2.0.33",
"private": false,
"main": "bundle/dist/index.js",
"files": [
--- src/containers/UserHeader.tsx
@@ -48,11 +48,8 @@ export const UserHeader = () => {
const renderDoNotDisturbToggle = () => {
return (
<>
- <Switch
- isOn={presence === 'offline'}
- onValueChange={onStatusChange}
- />
- <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text>
+ <Switch isOn={presence === 'offline'} onValueChange={onStatusChange} />
+ <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text>
</>
);
};
| update version | update version
|
6643b88caa46af606ed7c6132fc0d91fd6f615ab | --- package-lock.json
@@ -89,7 +89,7 @@
"@walmart/returns-mini-app": "3.13.0",
"@walmart/schedule-mini-app": "0.63.2",
"@walmart/shelfavailability-mini-app": "1.5.19",
- "@walmart/store-feature-orders": "1.25.0",
+ "@walmart/store-feature-orders": "1.25.0-281-72e4885",
"@walmart/taskit-mini-app": "2.57.0",
"@walmart/texting-mini-app": "2.1.4",
"@walmart/time-clock-mini-app": "2.301.0",
--- package.json
@@ -130,7 +130,7 @@
"@walmart/returns-mini-app": "3.13.0",
"@walmart/schedule-mini-app": "0.63.2",
"@walmart/shelfavailability-mini-app": "1.5.19",
- "@walmart/store-feature-orders": "1.25.0",
+ "@walmart/store-feature-orders": "1.25.0-281-72e4885",
"@walmart/taskit-mini-app": "2.57.0",
"@walmart/texting-mini-app": "2.1.4",
"@walmart/time-clock-mini-app": "2.301.0",
| updated drop 19 soft build for RBAC testing | updated drop 19 soft build for RBAC testing
|
be76de333092bb27384d0f528ce5600935555f9f | --- package-lock.json
@@ -4475,9 +4475,9 @@
}
},
"@walmart/taskit-mini-app": {
- "version": "0.234.0-rc.0",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.234.0-rc.0.tgz",
- "integrity": "sha512-G/GZNvkZwnSHJPNqjeUGzQIJVTQzbxVQJ5jL71KkTmqny2cFixkDXBgPXoIpKxmow2P0tVokNkhV2lore5Tlug=="
+ "version": "0.234.0-rc.2",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.234.0-rc.2.tgz",
+ "integrity": "sha512-onm9ILJacc3Kq+uZ1wk3vFide7ob/YRMfjmfN1h9ttefycaycidFdnpxInh6i7uaxd3azf/kLnQl2zqbI3y7uA=="
},
"@walmart/time-clock-mini-app": {
"version": "0.4.30",
--- package.json
@@ -101,7 +101,7 @@
"@walmart/schedule-mini-app": "0.12.0",
"@walmart/settings-mini-app": "1.6.0",
"@walmart/shelfavailability-mini-app": "0.8.3",
- "@walmart/taskit-mini-app": "0.234.0-rc.0",
+ "@walmart/taskit-mini-app": "0.234.0-rc.2",
"@walmart/time-clock-mini-app": "0.4.30",
"@walmart/ui-components": "1.3.0-rc.14",
"@walmart/welcomeme-mini-app": "0.45.0",
| updating taskit version | updating taskit version
|
85e674551a834dbbeacfb7cacee849cd850085a4 | --- package.json
@@ -77,7 +77,7 @@
"@walmart/allspark-authentication": "6.4.10",
"@walmart/allspark-cope-key-listener": "0.0.18",
"@walmart/allspark-foundation": "6.45.2",
- "@walmart/allspark-foundation-hub": "1.9.4",
+ "@walmart/allspark-foundation-hub": "1.10.0",
"@walmart/allspark-graphql-client": "~6.3.28",
"@walmart/allspark-http-client": "~6.3.28",
"@walmart/allspark-neon-core": "0.1.31",
@@ -122,7 +122,7 @@
"@walmart/mod-flex-mini-app": "1.27.0",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "2.3.9",
- "@walmart/myteam-mini-app": "3.0.1",
+ "@walmart/myteam-mini-app": "3.0.2",
"@walmart/native-rfid-scanner": "4.0.22",
"@walmart/onewalmart-miniapp": "1.0.27",
"@walmart/online-w4-mini-app": "0.7.26",
@@ -146,7 +146,7 @@
"@walmart/rfid-scan-mini-app": "2.10.4",
"@walmart/rn-mobile-sdk-pairing": "2.1.8",
"@walmart/rn-receiving-mini-app": "2.4.97",
- "@walmart/roster-mini-app": "3.1.1",
+ "@walmart/roster-mini-app": "3.2.0",
"@walmart/schedule-mini-app": "2.1.3",
"@walmart/shelfavailability-mini-app": "1.5.45",
"@walmart/shop-gnfr-mini-app": "1.0.302",
--- yarn.lock
@@ -6263,9 +6263,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation-hub@npm:1.9.4":
- version: 1.9.4
- resolution: "@walmart/allspark-foundation-hub@npm:1.9.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.9.4.tgz"
+"@walmart/allspark-foundation-hub@npm:1.10.0":
+ version: 1.10.0
+ resolution: "@walmart/allspark-foundation-hub@npm:1.10.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0.tgz"
peerDependencies:
"@react-navigation/native": 6.x
"@walmart/allspark-foundation": ">=6.27"
@@ -6275,7 +6275,7 @@ __metadata:
react: "*"
react-native: "*"
react-native-safe-area-context: 4.x
- checksum: 10c0/0395c67a7c30da70ce38cc14a20cc6923cc38655abe2d4d5028e065c0d59931fb432774ef782abd67fa32a0d6374f38c56c1bc6aadb461c553ecd539cdc7f7b4
+ checksum: 10c0/28456d4f5eeccf96656d5fbc2a439a0665d3a8d75ab2af1a308a1379fd3d68d7f1ff19c53e8a11859d96c614013df60cdd011603e090a981c16a74b9d2911fa4
languageName: node
linkType: hard
@@ -7418,7 +7418,7 @@ __metadata:
"@walmart/allspark-authentication": "npm:6.4.10"
"@walmart/allspark-cope-key-listener": "npm:0.0.18"
"@walmart/allspark-foundation": "npm:6.45.2"
- "@walmart/allspark-foundation-hub": "npm:1.9.4"
+ "@walmart/allspark-foundation-hub": "npm:1.10.0"
"@walmart/allspark-graphql-client": "npm:~6.3.28"
"@walmart/allspark-http-client": "npm:~6.3.28"
"@walmart/allspark-neon-core": "npm:0.1.31"
@@ -7463,7 +7463,7 @@ __metadata:
"@walmart/mod-flex-mini-app": "npm:1.27.0"
"@walmart/moment-walmart": "npm:1.0.4"
"@walmart/money-auth-shared-components": "npm:2.3.9"
- "@walmart/myteam-mini-app": "npm:3.0.1"
+ "@walmart/myteam-mini-app": "npm:3.0.2"
"@walmart/native-rfid-scanner": "npm:4.0.22"
"@walmart/onewalmart-miniapp": "npm:1.0.27"
"@walmart/online-w4-mini-app": "npm:0.7.26"
@@ -7487,7 +7487,7 @@ __metadata:
"@walmart/rfid-scan-mini-app": "npm:2.10.4"
"@walmart/rn-mobile-sdk-pairing": "npm:2.1.8"
"@walmart/rn-receiving-mini-app": "npm:2.4.97"
- "@walmart/roster-mini-app": "npm:3.1.1"
+ "@walmart/roster-mini-app": "npm:3.2.0"
"@walmart/schedule-mini-app": "npm:2.1.3"
"@walmart/shelfavailability-mini-app": "npm:1.5.45"
"@walmart/shop-gnfr-mini-app": "npm:1.0.302"
@@ -7791,9 +7791,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/myteam-mini-app@npm:3.0.1":
- version: 3.0.1
- resolution: "@walmart/myteam-mini-app@npm:3.0.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmyteam-mini-app%2F-%2F%40walmart%2Fmyteam-mini-app-3.0.1.tgz"
+"@walmart/myteam-mini-app@npm:3.0.2":
+ version: 3.0.2
+ resolution: "@walmart/myteam-mini-app@npm:3.0.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmyteam-mini-app%2F-%2F%40walmart%2Fmyteam-mini-app-3.0.2.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.32.0"
expo: ~52.0.46
@@ -7804,7 +7804,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/a30fd7cc6904d9d6da2bbea49356f34851b3ac1fc8aba2f9da55ce80b15e270bf758c368f0aaf3e5b02ae72123930eb4a09ff85b3607f94991d4119e56cdfb66
+ checksum: 10c0/eca8edeae5568133ab08f689359bb44aac323b836ee0578863703bb38ddd3d5462ee8508539f47f4dbd4a6aa675523782af5e00620511b1a7f9b2e8eaa2373ef
languageName: node
linkType: hard
@@ -8160,9 +8160,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:3.1.1":
- version: 3.1.1
- resolution: "@walmart/roster-mini-app@npm:3.1.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.1.1.tgz"
+"@walmart/roster-mini-app@npm:3.2.0":
+ version: 3.2.0
+ resolution: "@walmart/roster-mini-app@npm:3.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.2.0.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.32.0"
expo: ~52.0.46
@@ -8173,7 +8173,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/c992f01a4f72a2eef06795b8a47252dca25e8016c2612a3272d1177063afdbe2f883d270548c18241214b0ee5a17664fd980b06e49a002e4a2d99135f39b0ee0
+ checksum: 10c0/ca91051c769a863628ad7d3bbbee7fcf893c88ef5e7480a503737cdf9009c8cd3ca400a9122bf6b9e8da21b945ab8ffe07dda56db2954468e299af71e1a929b1
languageName: node
linkType: hard
| fix(ui): update roster mini app for Supply chain error from Drop 30 (#4371) | fix(ui): update roster mini app for Supply chain error from Drop 30 (#4371)
* fix(ui): update roster mini app for Supply chain error from Drop 30
* feat(ui): update allspark-foundation-hub version
* feat(ui): resolve the merge conflicts for foundation-hub
* chore(ui): revert yarn.lock
* chore(ui): update yarn.lock
* chore(ui): update roster and myteam version
---------
Co-authored-by: p0d02sx <prasansuresh.dhresh@walmart.com> |
ec8fa11810c0af9413c67889dbafd0b057ccf633 | --- jest.config.js
@@ -15,10 +15,10 @@ module.exports = {
coverageReporters: ['lcov', 'text'],
coverageThreshold: {
global: {
- statements: 75,
- branches: 50,
- functions: 75,
- lines: 70,
+ statements: 40,
+ branches: 30,
+ functions: 40,
+ lines: 30,
},
},
transformIgnorePatterns: [
| fix(ui): update roster version smdv-9999 | fix(ui): update roster version smdv-9999
|
24608d7486618b247bffbdb54ac89998abcbe3e1 | --- targets/US/package.json
@@ -126,7 +126,7 @@
"@walmart/native-rfid-scanner": "3.12.1",
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.20.9",
- "@walmart/payrollsolution_miniapp": "0.145.24",
+ "@walmart/payrollsolution_miniapp": "0.145.25",
"@walmart/price-changes-mini-app": "1.10.25",
"@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch",
"@walmart/react-native-cookies": "1.0.1",
--- yarn.lock
@@ -7329,7 +7329,7 @@ __metadata:
"@walmart/native-rfid-scanner": "npm:3.12.1"
"@walmart/onewalmart-miniapp": "npm:1.0.24"
"@walmart/pay-stub-miniapp": "npm:0.20.9"
- "@walmart/payrollsolution_miniapp": "npm:0.145.24"
+ "@walmart/payrollsolution_miniapp": "npm:0.145.25"
"@walmart/price-changes-mini-app": "npm:1.10.25"
"@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch"
"@walmart/react-native-cookies": "npm:1.0.1"
@@ -7754,15 +7754,15 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/payrollsolution_miniapp@npm:0.145.24":
- version: 0.145.24
- resolution: "@walmart/payrollsolution_miniapp@npm:0.145.24"
+"@walmart/payrollsolution_miniapp@npm:0.145.25":
+ version: 0.145.25
+ resolution: "@walmart/payrollsolution_miniapp@npm:0.145.25::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.145.25.tgz"
dependencies:
crypto-js: "npm:^3.3.0"
expo: "npm:^50.0.0"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/0a98568af4b469ce02f5e9fab2fb1faadee395a46b5cf6a451c95a663d7bead1e1666388eccd052887bfbe000bbd90db25928b454253459d7b2727f5f7f97282
+ checksum: 10c0/d482dfe0028af2733f1d27784e29705707449a98eaa56fc2585a334ef8e1185f79c3228fb6c9e7a396ae60b1283b1d930cb8df89c19885bcbfe657628b882d2b
languageName: node
linkType: hard
| bump version | bump version
|
1b7ef7621942689bac49683f5aa26966623d4807 | --- packages/allspark-foundation-hub/src/HubFeature/Hooks/useHubConfig.ts
@@ -1,6 +1,7 @@
import { ConfigSelectors } from '@walmart/allspark-foundation/Config';
import { useSelector } from 'react-redux';
+//Todo: Update appropriate types here
export const useHubConfig = (ccmNamespace: string, defaultValue: any) => {
const getCCMConfig =
ConfigSelectors.createFeatureConfigSelector(ccmNamespace);
--- packages/allspark-foundation/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx
@@ -14,7 +14,6 @@ import styles from '../styles';
import { Alert, Body } from '@walmart/gtp-shared-components';
import { AllsparkComponentContainers } from '../../../../Components';
import { HubDashboardProps } from './types';
-import { isNil } from 'lodash';
import { ManagerExperienceCreators } from '../../../Redux';
import { AllsparkNavigationClient } from '../../../../Navigation';
import BottomSheet from '../../../BottomSheet/BottomSheet';
| feat(ui): Update the user onboarded condition | feat(ui): Update the user onboarded condition
|
678b6693094cc00e4e2903fde9764f2b69bb0a8f | --- src/navigation/components.tsx
@@ -1,9 +1,6 @@
import React from 'react';
import {StyleSheet, View} from 'react-native';
-import {
- MaterialTopTabBarProps,
- MaterialTopTabNavigationOptions,
-} from '@react-navigation/material-top-tabs';
+import {MaterialTopTabBarProps} from '@react-navigation/material-top-tabs';
import {TabNavigationItem} from '@walmart/gtp-shared-components';
const styles = StyleSheet.create({
@@ -17,23 +14,17 @@ const styles = StyleSheet.create({
export const LivingDesignTabBar = (props: MaterialTopTabBarProps) => {
const {state, navigation, descriptors} = props;
- const getLabel = (options: MaterialTopTabNavigationOptions, route: any) => {
- if (
- options.tabBarLabel !== undefined &&
- typeof options.tabBarLabel === 'string'
- ) {
- return options.tabBarLabel
- ? options.tabBarLabel
- : options?.title || route.name;
- } else {
- return route?.name || '';
- }
- };
const Tabs = state.routes.map((route, index) => {
const {options} = descriptors[route.key];
- const label = getLabel(options, route);
+ const label =
+ options.tabBarLabel !== undefined &&
+ typeof options.tabBarLabel === 'string'
+ ? options.tabBarLabel
+ : options.title !== undefined
+ ? options.title
+ : route.name;
const isFocused = state.index === index;
const tintColor = isFocused
| feat(ui): reverted label logic | feat(ui): reverted label logic
|
c9e9fb8564216f5abce726516e913592140abafc | --- yarn.lock
@@ -24645,11 +24645,11 @@ __metadata:
"typescript@patch:typescript@npm%3A^5.0.4#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.4.4#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.7.3#optional!builtin<compat/typescript>":
version: 5.7.3
- resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=5786d5"
+ resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=74658d"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
- checksum: 10c0/6fd7e0ed3bf23a81246878c613423730c40e8bdbfec4c6e4d7bf1b847cbb39076e56ad5f50aa9d7ebd89877999abaee216002d3f2818885e41c907caaa192cc4
+ checksum: 10c0/3b56d6afa03d9f6172d0b9cdb10e6b1efc9abc1608efd7a3d2f38773d5d8cfb9bbc68dfb72f0a7de5e8db04fc847f4e4baeddcd5ad9c9feda072234f0d788896
languageName: node
linkType: hard
| chore: update yarn.lock (#210) | chore: update yarn.lock (#210)
|
f28c8d2881e568b7392294461726b2ba5cda5527 | --- __tests__/navigation/PreHireHallwayNav/__snapshots__/indexTest.tsx.snap
@@ -3,43 +3,13 @@
exports[`PreHireHallwayNav matches snapshot 1`] = `
<Navigator>
<Screen
- component={[Function]}
- name="main"
- />
-</Navigator>
-`;
-
-exports[`TestPreHireScreen matches snapshot 1`] = `
-<SafeAreaView
- style={
- Object {
- "flex": 1,
- }
- }
->
- <SolidCard
- color="white"
- elevation={2}
- style={
+ component="WelcomeMeMiniApp"
+ name="WelcomeMeMiniApp"
+ options={
Object {
- "flex": 1,
+ "headerShown": false,
}
}
- >
- <Body>
- Pre-Hire Test Screen
- </Body>
- <Body>
- UserID is:
- </Body>
- <SecondaryButton
- onPress={[Function]}
- testID="signOutBtn"
- >
- <Body>
- Sign Out
- </Body>
- </SecondaryButton>
- </SolidCard>
-</SafeAreaView>
+ />
+</Navigator>
`;
--- __tests__/navigation/PreHireHallwayNav/indexTest.tsx
@@ -1,24 +1,7 @@
console.log('loading pre-hire hallway');
import React from 'react';
import {create} from 'react-test-renderer';
-import WMSingleSignOn from 'react-native-ssmp-sso-allspark';
-import PreHireHallwayNav, {
- TestPreHireScreen,
-} from '../../../src/navigation/PreHireHallwayNav/index';
-
-describe('TestPreHireScreen', () => {
- const component = create(<TestPreHireScreen />);
- it('matches snapshot', () => {
- expect(component.toJSON()).toMatchSnapshot();
- });
-
- it('calls sign out', () => {
- const Button = component.root.findByProps({testID: 'signOutBtn'});
- Button.props.onPress();
- expect(WMSingleSignOn.signOut).toHaveBeenCalledWith('MainActivity', false);
- });
-});
-
+import PreHireHallwayNav from '../../../src/navigation/PreHireHallwayNav/index';
describe('PreHireHallwayNav', () => {
const component = create(<PreHireHallwayNav />);
it('matches snapshot', () => {
--- package.json
@@ -80,7 +80,7 @@
"@walmart/settings-mini-app": "1.2.3",
"@walmart/time-clock-mini-app": "0.1.55",
"@walmart/ui-components": "1.1.4",
- "@walmart/welcomeme-mini-app": "0.5.27",
+ "@walmart/welcomeme-mini-app": "0.7.0",
"axios-cache-adapter": "2.7.3",
"crypto-js": "^3.3.0",
"i18next": "^19.7.0",
--- src/navigation/PreHireHallwayNav/index.tsx
@@ -1,49 +1,16 @@
-console.log('loading pre-hire hallway');
import React from 'react';
-import {StyleSheet} from 'react-native';
-import {useSelector} from 'react-redux';
import {createStackNavigator} from '@react-navigation/stack';
-import {SafeAreaView} from 'react-native-safe-area-context';
-
-import {Body, SecondaryButton, SolidCard} from '@walmart/gtp-shared-components';
-import WMSingleSignOn from 'react-native-ssmp-sso-allspark';
-import {getUser} from '../../redux/UserSelector';
-
-const styles = StyleSheet.create({
- container: {
- flex: 1,
- },
- card: {
- margin: 8,
- padding: 8,
- flex: 0,
- },
-});
-
-export const TestPreHireScreen = () => {
- const user = useSelector(getUser);
- const onPress = () => {
- WMSingleSignOn.signOut('MainActivity', false);
- };
-
- return (
- <SafeAreaView style={styles.container}>
- <SolidCard color='white' elevation={2} style={styles.container}>
- <Body>Pre-Hire Test Screen</Body>
- <Body>UserID is: {user?.userId}</Body>
- <SecondaryButton testID='signOutBtn' onPress={onPress}>
- <Body>Sign Out</Body>
- </SecondaryButton>
- </SolidCard>
- </SafeAreaView>
- );
-};
+import WelcomeMeMiniApp from '@walmart/welcomeme-mini-app';
const PreHireStack = createStackNavigator();
const PreHireHallwayNav = () => (
<PreHireStack.Navigator>
- <PreHireStack.Screen name='main' component={TestPreHireScreen} />
+ <PreHireStack.Screen
+ name='WelcomeMeMiniApp'
+ component={WelcomeMeMiniApp}
+ options={{headerShown: false}}
+ />
</PreHireStack.Navigator>
);
| Initial Integration of welcomeMe-mini | Initial Integration of welcomeMe-mini
|
8363f7b5d0d64ec141d8962fb34e3d93026c6180 | --- packages/allspark-foundation-hub/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.2.9](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.2.8...@walmart/allspark-foundation-hub@1.2.9) (2025-01-31)
+
+**Note:** Version bump only for package @walmart/allspark-foundation-hub
+
## [1.2.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.2.7...@walmart/allspark-foundation-hub@1.2.8) (2025-01-31)
**Note:** Version bump only for package @walmart/allspark-foundation-hub
--- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.2.8",
+ "version": "1.2.9",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/me-at-walmart-athena-queries/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [6.30.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.30.1...@walmart/me-at-walmart-athena-queries@6.30.2) (2025-01-31)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
+
## [6.30.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.30.0...@walmart/me-at-walmart-athena-queries@6.30.1) (2025-01-29)
**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
--- packages/me-at-walmart-athena-queries/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-athena-queries",
- "version": "6.30.1",
+ "version": "6.30.2",
"description": "> TODO: description",
"author": "rlane1 <russell.lane@walmart.com>",
"homepage": "",
| chore(version): updating package version | chore(version): updating package version
- @walmart/allspark-foundation-hub@1.2.9
- @walmart/me-at-walmart-athena-queries@6.30.2
|
7f593e11f41731926d77194430c56db757ba312a | --- packages/allspark-graphql-client/src/apollo/hooks.ts
@@ -8,7 +8,6 @@ import {
MutationHookOptions,
} from '@apollo/client';
import { useHttpClient } from '@walmart/allspark-http-client';
-
import { mergeOptionHeaders } from './utils';
// Re-exposing common hooks. Renaming to match format of other services.
@@ -22,7 +21,7 @@ export const useHttpClientOptions = <O>(options: O): NonNullable<O> => {
const queryOptions = useMemo(() => {
return mergeOptionHeaders(
options as QueryHookOptions | MutationHookOptions,
- httpClient.getHeaders()
+ httpClient.getHeaders('post')
);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [options]);
| fix: fix call to get headers | fix: fix call to get headers
|
e2b5e70821d4ac949321e444d008cbcd3f36b77a | --- android/app/build.gradle
@@ -96,8 +96,8 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 930
- versionName "1.21.1"
+ versionCode 931
+ versionName "1.21.2"
}
signingConfigs {
--- ios/AllSpark/Info.plist
@@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.21.1</string>
+ <string>1.21.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
--- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "allspark-main",
- "version": "1.21.1",
+ "version": "1.21.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "allspark-main",
- "version": "1.21.1",
+ "version": "1.21.2",
"hasInstallScript": true,
"dependencies": {
"@react-native-async-storage/async-storage": "^1.21.0",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "allspark-main",
- "version": "1.21.1",
+ "version": "1.21.2",
"private": true,
"scripts": {
"android": "react-native run-android",
| v1.21.2 bump | v1.21.2 bump
|
ad86d10b88a09da4852d112b32d88a13134d30d8 | --- src/index.tsx
@@ -10,9 +10,6 @@ import {RosterNavigation} from './navigation';
import {initi18n} from './translations';
import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard';
import {SafeAreaProvider} from 'react-native-safe-area-context';
-import {analytics} from './logger/Analytics';
-import {logger} from './logger/Logger';
-import firestore from '@react-native-firebase/firestore';
import {reducerManager} from '@walmart/redux-store';
import {rosterSlice} from './redux/reducer';
@@ -44,22 +41,8 @@ export const initialize = async (debugToken: string) => {
initi18n();
-firestore()
- .settings({
- persistence: false,
- })
- .then(() => {
- analytics(
- 'firestorePersistenceEnabled',
- {message: 'Setting firestore persistence value!'},
- 10,
- );
- })
- .catch((error: any) => {
- logger.error('Error setting firestore persistence value', {
- message: error.toString(),
- });
- });
+export {RosterScreen} from './screens/RosterScreen';
+export const RosterNavigationStack = RosterNavigation;
export const RosterMiniApp = () => {
const envConfig = useEnvironment();
| Update the roster navigation | Update the roster navigation
|
c775ae89ff33a317a129ef9aa909fb29d46a57eb | --- package-lock.json
@@ -4241,9 +4241,9 @@
"integrity": "sha512-35HAwsVAJwYNXdEpqmrceyV+sAyDNg+awpz8AY2V3BFHTZ6nwudqk5+IWjzlDd13xqIoWPgWQdlsSpNSUiC4VQ=="
},
"@walmart/feedback-all-spark-miniapp": {
- "version": "0.3.4",
- "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.3.4.tgz",
- "integrity": "sha512-MRmpF7sjigb4hI0UNjkq22xYURLAgavJ8z/5DO5HhHHv6iFoM5d978Kinrx0SsdiOfb2XlTRcHpgiMIYO6pJJw=="
+ "version": "0.3.7",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.3.7.tgz",
+ "integrity": "sha512-D9xqSfM/IiafgMjb9m26hOV0VCXuPQGZaY0IH5r5M7AjaknSLt052CXuUx82eCM+6fpqMPuHZ1sM9g8wb7/W3Q=="
},
"@walmart/functional-components": {
"version": "1.0.34",
--- package.json
@@ -78,7 +78,7 @@
"@walmart/config-components": "3.0.2",
"@walmart/counts-component-miniapp": "0.0.34",
"@walmart/exception-mini-app": "0.40.3",
- "@walmart/feedback-all-spark-miniapp": "0.3.4",
+ "@walmart/feedback-all-spark-miniapp": "0.3.7",
"@walmart/functional-components": "1.0.34",
"@walmart/gta-react-native-calendars": "0.0.15",
"@walmart/gtp-shared-components": "1.2.0",
| feedback mini version bump | feedback mini version bump
|
2995399b8c066fe0f05ac09c0980a68ae997139e | --- __tests__/setup.ts
@@ -1,5 +1,3 @@
-import 'react-native-gesture-handler/jestSetup';
-
jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter');
jest.mock('@walmart/functional-components', () => {
const mockHttpClient = {
@@ -22,4 +20,3 @@ jest.mock('react-native-reanimated', () => {
return Reanimated;
});
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
-// ------ End
--- __tests__/setup.ts
@@ -1,5 +1,3 @@
-import 'react-native-gesture-handler/jestSetup';
-
jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter');
jest.mock('@walmart/functional-components', () => {
const mockHttpClient = {
@@ -22,4 +20,3 @@ jest.mock('react-native-reanimated', () => {
return Reanimated;
});
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
-// ------ End
| remove unused code | remove unused code
|
7795aca7ca6cf92fda345089980898980fa0c126 | --- src/channels/transforms.ts
@@ -140,6 +140,7 @@ export const getChannelName = async (channel: LocalFirebaseChannel) => {
return recipients.join(',');
};
+//TODO: Double check this method and unit test it, not sure if returning/using correct types
export const getChannelNames = async (channels: LocalFirebaseChannel[]) => {
const response = await Promise.allSettled(
channels.map((channel) =>
@@ -149,5 +150,5 @@ export const getChannelNames = async (channels: LocalFirebaseChannel[]) => {
),
);
- return response.map((res) => res.value);
+ return response.map((res) => res);
};
--- src/channels/transforms.ts
@@ -140,6 +140,7 @@ export const getChannelName = async (channel: LocalFirebaseChannel) => {
return recipients.join(',');
};
+//TODO: Double check this method and unit test it, not sure if returning/using correct types
export const getChannelNames = async (channels: LocalFirebaseChannel[]) => {
const response = await Promise.allSettled(
channels.map((channel) =>
@@ -149,5 +150,5 @@ export const getChannelNames = async (channels: LocalFirebaseChannel[]) => {
),
);
- return response.map((res) => res.value);
+ return response.map((res) => res);
};
| fixing type issue | fixing type issue
|
f59bad74d8cd021573362861013fdb61835f357b | --- package-lock.json
@@ -3349,9 +3349,9 @@
"integrity": "sha512-vzirL8LmvVnJdyNGFtqfzf3Pth9kuwqnd0cxllT7Gw3Qil4+snxw6yrC9Iw49jIvUFqjGjfkkFbXPeSqOcCVzw=="
},
"@walmart/ims-print-services-ui": {
- "version": "0.0.19",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.0.19.tgz",
- "integrity": "sha512-Am5QrgtwxJ23j3GsZZivaZknjiWTuPFvFxV1J0ysrQZ3H4wZcgsxuFdsCJqA3Hzufo3pZdyMTZhNtAx4IuQjjw=="
+ "version": "0.0.27",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.0.27.tgz",
+ "integrity": "sha512-K2nA8fi2OhB/T8yxQPxnCrXDKGS2CL6wM2RkqMEHKt+36uh6c1Lgt3iJMrbf6LRJia64Qg2V9g+LtlCsTcPi/Q=="
},
"@walmart/inbox-mini-app": {
"version": "0.0.96",
@@ -12674,6 +12674,21 @@
"qrcode": "^1.3.2"
}
},
+ "react-native-radio-buttons-group": {
+ "version": "2.2.5",
+ "resolved": "https://npme.walmart.com/react-native-radio-buttons-group/-/react-native-radio-buttons-group-2.2.5.tgz",
+ "integrity": "sha512-9uS4PPwRVzDUEnaRd1EyZJGf9EKDuncu7BhoyuLNWlVexWo7HfZ+tJz8fAKgkxk/d5AVnfNBqMx2mljxNKUXUw==",
+ "requires": {
+ "lodash": "4.17.21"
+ },
+ "dependencies": {
+ "lodash": {
+ "version": "4.17.21",
+ "resolved": "https://npme.walmart.com/lodash/-/lodash-4.17.21.tgz",
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
+ }
+ }
+ },
"react-native-reanimated": {
"version": "1.13.1",
"resolved": "https://npme.walmart.com/react-native-reanimated/-/react-native-reanimated-1.13.1.tgz",
--- package.json
@@ -75,7 +75,7 @@
"@walmart/functional-components": "1.0.28",
"@walmart/gtp-shared-components": "^1.1.8",
"@walmart/impersonation-mini-app": "1.0.15",
- "@walmart/ims-print-services-ui": "0.0.19",
+ "@walmart/ims-print-services-ui": "0.0.27",
"@walmart/inbox-mini-app": "0.0.96",
"@walmart/iteminfo-mini-app": "1.0.16",
"@walmart/manager-approvals-miniapp": "0.0.39",
@@ -124,6 +124,7 @@
"react-native-popup-menu": "^0.15.9",
"react-native-ptt-module": "1.3.6",
"react-native-qrcode-svg": "^6.0.6",
+ "react-native-radio-buttons-group": "2.2.5",
"react-native-reanimated": "^1.10.2",
"react-native-safe-area-context": "^3.1.3",
"react-native-screens": "^2.10.1",
| Item Info drop 4 changes: print with backroom case label | Item Info drop 4 changes: print with backroom case label
|
3d3d2ab54efd4ed38621268038be87142aaebab3 | --- .looper.multibranch.yml
@@ -7,18 +7,6 @@ inherit: "job:///metropolis/metroloop/metroloop-parent"
node: ((osx||stable_osx)&&!dualcore)
tools:
- android:
- - tools
- - platform-tools
- - platforms;android-28
- - platforms;android-29
- - platforms;android-30
- - build-tools;28.0.3
- - build-tools;29.0.2
- - build-tools;29.0.3
- - build-tools;30.0.2
- - extras;android;m2repository
- - extras;google;m2repository
nodejs: 12.4.0
maven: 3.5.4
jdk: 8
@@ -52,6 +40,19 @@ envs:
TMPDIR: /tmp
+ ANDROID_TOOLS:
+ - tools
+ - platform-tools
+ - platforms;android-28
+ - platforms;android-29
+ - platforms;android-30
+ - build-tools;28.0.3
+ - build-tools;29.0.2
+ - build-tools;29.0.3
+ - build-tools;30.0.2
+ - extras;android;m2repository
+ - extras;google;m2repository
+
TARGET_XCODE: "12.3"
RCT_NO_LAUNCH_PACKAGER: true
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
@@ -254,14 +255,10 @@ rules:
flows:
default:
- - excludeTools():
- - tools(maven, jdk, android)
- echo "default flow not required"
pr:
- - echo "PR flow is being executed"
- - excludeTools():
- - tools(maven, jdk, android)
+ - echo "PR flow is being executed from multi branch"
- npm install
- npm run env:dev
- npm run lint
@@ -273,6 +270,8 @@ flows:
##
## @param (unnamed) env release type
build:
+ - tools(android = ${ANDROID_TOOLS}):
+ - echo "Installed android tools in a this flow"
- declare(BUILD_NUMBER)
- echo "release type ${releaseType}"
- echo "slackIcon ${slackIcon}"
| removed global android | removed global android
|
722f9932f59cc2959f8e9ec0976c2db4078d7a0c | --- package-lock.json
@@ -4331,9 +4331,9 @@
}
},
"@walmart/payrollsolution_miniapp": {
- "version": "0.72.0",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.72.0.tgz",
- "integrity": "sha512-jta5UWs+vKpZWIFQdhgqiJh+algvuUyL55MP+jqfEptSo8UGTE/DFxFET9wx5Ph7gVqKjZRpvnyJrDdua2OLow=="
+ "version": "0.73.0",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.73.0.tgz",
+ "integrity": "sha512-xZzP0cK11qOvyR0xrFoAu6xY6moyTEIUbVfiYnyQl2UmuG/2iEQ5bC5V4nZKfmTF3VDvD04FZ999xafFllQ1WQ=="
},
"@walmart/push-to-talk-mini-app": {
"version": "0.5.39",
@@ -4545,9 +4545,9 @@
}
},
"@walmart/welcomeme-mini-app": {
- "version": "0.34.0",
- "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.34.0.tgz",
- "integrity": "sha512-GzfoX0XPSy3kgHDV2mOR2N1dphqAiOPD2bx0QXag+569zAmrHxWgE6GWnpng4NoTq8En/NXanBpiXwIa3lb4Kw=="
+ "version": "0.35.0",
+ "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.35.0.tgz",
+ "integrity": "sha512-9GfuH0KD/H9q77+QxdoOoSpZG9pIdjNBdZF+2Ypynn9mi+cePwmXCyGbVMVvdh+iyXc8KVRVKjPovtJTxmqZ+Q=="
},
"@walmart/wfm-ui": {
"version": "0.1.50",
--- package.json
@@ -88,7 +88,7 @@
"@walmart/manager-approvals-miniapp": "0.0.58",
"@walmart/metrics-mini-app": "0.4.14",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/payrollsolution_miniapp": "^0.72.0",
+ "@walmart/payrollsolution_miniapp": "^0.73.0",
"@walmart/push-to-talk-mini-app": "0.5.39",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.28.0",
@@ -101,7 +101,7 @@
"@walmart/taskit-mini-app": "0.0.77-rc.0",
"@walmart/time-clock-mini-app": "0.4.24",
"@walmart/ui-components": "v1.3.0-rc.0",
- "@walmart/welcomeme-mini-app": "0.34.0",
+ "@walmart/welcomeme-mini-app": "0.35.0",
"@walmart/wfm-ui": "^0.1.50",
"axios-cache-adapter": "2.7.3",
"crypto-js": "^3.3.0",
| chore: WelcomeMe Bump version 0.35.0 -[RECRUIT-47398], Payroll version bump 0.73.0 | chore: WelcomeMe Bump version 0.35.0 -[RECRUIT-47398], Payroll version bump 0.73.0
|
84e974ff77c76f52c0ec5293cbd51fb68134992e | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/roster-mini-app",
- "version": "1.1.5",
+ "version": "1.1.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/roster-mini-app",
- "version": "1.1.5",
+ "version": "1.1.6",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.20.0",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "1.1.5",
+ "version": "1.1.6",
"private": false,
"main": "dist/index.js",
"files": [
--- src/containers/RosterFilters.tsx
@@ -5,7 +5,7 @@ import {Chip, ChipGroup, ChipId} from '@walmart/gtp-shared-components';
import {Associate} from '../types';
import {
associateIsAbsent,
- isAssociateClockedIn,
+ associateIsClockedIn,
associateIsTardy,
} from '../utils';
import {useTranslation} from 'react-i18next';
@@ -94,7 +94,7 @@ export const RosterFilters = (props: {
case FilterValue.tardy:
return associateIsTardy(associate);
case FilterValue.clockedIn:
- return isAssociateClockedIn(associate);
+ return associateIsClockedIn(associate);
default:
return true;
}
--- src/containers/StoreChatCard.tsx
@@ -28,7 +28,7 @@ import {StackNavigationProp} from '@react-navigation/stack';
import {TextingNavParamsMap} from '../navigation';
import {useSelector} from 'react-redux';
import {messageButtonEnabled, pushToTalkEnabled} from '../redux/selectors';
-import {isAssociateClockedIn} from '../utils';
+import {associateIsClockedIn} from '../utils';
import {noop} from 'lodash';
const styles = StyleSheet.create({
viewTeamStyle: {
@@ -53,7 +53,7 @@ export const StoreChatCard = (props: {style?: StyleProp<ViewStyle>}) => {
const rosterData = associateData.data?.getDailyRoster || [];
const translationContext = useSiteTranslationContext();
const clockedInCount =
- (rosterData as any)?.filter(isAssociateClockedIn)?.length || 0;
+ (rosterData as any)?.filter(associateIsClockedIn)?.length || 0;
const onViewTeam = () => {
navigation.navigate('myTeam.viewTeam', {teamRoster: rosterData});
--- src/hooks/useFilterCounts.ts
@@ -2,7 +2,7 @@ import {useMemo} from 'react';
import {Associate} from '../types';
import {
associateIsAbsent,
- isAssociateClockedIn,
+ associateIsClockedIn,
associateIsTardy,
} from '../utils';
import {FilterValue} from '../containers/RosterFilters';
@@ -16,7 +16,7 @@ export const useFilterCounts = (associates: Associate[]) => {
() =>
associates.reduce(
(accm, associate) => {
- if (isAssociateClockedIn(associate)) {
+ if (associateIsClockedIn(associate)) {
accm.clockedIn++;
}
if (associateIsAbsent(associate)) {
| Update version | Update version
|
649186117c01f826aa262491963a029ddf6a8b0f | --- packages/allspark-graphql-client/codegen/plugin.js
@@ -1,9 +1,11 @@
const fs = require('fs');
+const { addTypenameToDocument } = require('@apollo/client/utilities');
+const YAML = require('json-to-pretty-yaml');
+
const {
hashQueryString,
generateSortedQuery,
} = require('@walmart/allspark-graphql-client');
-const YAML = require('json-to-pretty-yaml');
const defaultEnvironments = ['dev', 'stage', 'prod'];
@@ -21,7 +23,8 @@ module.exports = {
const persistedQueries = documents
.map((doc) => {
return doc.document.definitions.map((def) => {
- const query = generateSortedQuery(doc.document);
+ const apolloDoc = addTypenameToDocument(doc.document);
+ const query = generateSortedQuery(apolloDoc);
const hash = hashQueryString(query);
const queryTemplate = doc.location.replace(`${process.cwd()}/`, '');
--- packages/allspark-graphql-client/src/utils.ts
@@ -27,11 +27,6 @@ export const sortSelectionArguments = (selection: SelectionNode) => ({
arguments: selection.arguments?.sort(sortByName),
});
-// @TODO - should handle undefined name?
-export const filterNotTypename = (selection: SelectionNode) =>
- // @ts-ignore - shouldn't work on InlineFragmentNode
- selection.name?.value !== '__typename';
-
export const sortDocumentNode = (document: DocumentNode) => {
return visit(document, {
enter(node) {
@@ -41,8 +36,6 @@ export const sortDocumentNode = (document: DocumentNode) => {
}
if (node.kind === 'SelectionSet') {
node.selections = node.selections
- // Filter out generated '__typename' field.
- .filter(filterNotTypename)
// Sort arguments of each selection by name
.map(sortSelectionArguments)
// Sort selections by name (fields)
| chore: add handling of typename in graphql codegen | chore: add handling of typename in graphql codegen
|
c1159808dc4a5c5dcb841745c74acb4b1ca1c31e | --- package-lock.json
@@ -84,6 +84,7 @@
"@walmart/taskit-mini-app": "0.49.6",
"@walmart/time-clock-mini-app": "0.30.0",
"@walmart/ui-components": "1.9.0",
+ "@walmart/walmart-fiscal-week": "^0.3.6",
"@walmart/welcomeme-mini-app": "0.73.0",
"@walmart/wfm-ui": "0.2.25",
"axios": "^1.2.6",
@@ -6156,6 +6157,19 @@
"lodash": "^4.17.15"
}
},
+ "node_modules/@walmart/walmart-fiscal-week": {
+ "version": "0.3.6",
+ "resolved": "https://npme.walmart.com/@walmart/walmart-fiscal-week/-/walmart-fiscal-week-0.3.6.tgz",
+ "integrity": "sha1-xw+kkgzp7kvdtLgKR0II33+467E=",
+ "license": "ISC",
+ "dependencies": {
+ "lodash": "^4.17.4",
+ "moment": "2.18.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/@walmart/welcomeme-mini-app": {
"version": "0.73.0",
"peerDependencies": {
@@ -25237,6 +25251,15 @@
"lodash": "^4.17.15"
}
},
+ "@walmart/walmart-fiscal-week": {
+ "version": "0.3.6",
+ "resolved": "https://npme.walmart.com/@walmart/walmart-fiscal-week/-/walmart-fiscal-week-0.3.6.tgz",
+ "integrity": "sha1-xw+kkgzp7kvdtLgKR0II33+467E=",
+ "requires": {
+ "lodash": "^4.17.4",
+ "moment": "^2.29.4"
+ }
+ },
"@walmart/welcomeme-mini-app": {
"version": "0.73.0"
},
--- package.json
@@ -126,6 +126,7 @@
"@walmart/taskit-mini-app": "0.49.6",
"@walmart/time-clock-mini-app": "0.30.0",
"@walmart/ui-components": "1.9.0",
+ "@walmart/walmart-fiscal-week": "^0.3.6",
"@walmart/welcomeme-mini-app": "0.73.0",
"@walmart/wfm-ui": "0.2.25",
"axios": "^1.2.6",
| Added walmart fiscal week library in package.json of allspark-core | Added walmart fiscal week library in package.json of allspark-core
|
f6e2bfc0db7b142aacad00a74a79274838174e57 | --- package.json
@@ -136,7 +136,7 @@
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.7.0",
"@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.1.11#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.1.11-31a5a73745.patch",
- "@walmart/receipt-check-miniapp": "1.22.5",
+ "@walmart/receipt-check-miniapp": "1.22.9",
"@walmart/redux-store": "6.1.4",
"@walmart/returns-mini-app": "4.6.0",
"@walmart/rfid-scan-mini-app": "2.3.10",
--- yarn.lock
@@ -6906,9 +6906,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/receipt-check-miniapp@npm:1.22.5":
- version: 1.22.5
- resolution: "@walmart/receipt-check-miniapp@npm:1.22.5"
+"@walmart/receipt-check-miniapp@npm:1.22.9":
+ version: 1.22.9
+ resolution: "@walmart/receipt-check-miniapp@npm:1.22.9"
dependencies:
"@walmart/tcnumber": "npm:^2.3.3"
"@xstate/react": "npm:^3.0.1"
@@ -6923,7 +6923,7 @@ __metadata:
react-native-device-info: ^10.3.0
react-redux: ^7.2.1
redux: ^4.1.2
- checksum: 10c0/3731b27fe5c385d451bbeca5db69065791e7e8e31ac175a38b19f8396dba496ecf12c2aa2cf244b410f82a2a46587f5fe3fbe953bf0a234f1738bc4cf11073d0
+ checksum: 10c0/f37c0de6909be549fec8668ae48dfe64050293e23fe4e6160a4a21071266041753b28f37dd0a12902e9057f8fa0ec12bdaf6da0bc6ccd6411468b8d829d5f909
languageName: node
linkType: hard
@@ -7776,7 +7776,7 @@ __metadata:
"@walmart/react-native-store-map": "npm:0.3.7"
"@walmart/react-native-sumo-sdk": "npm:2.7.0"
"@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.1.11#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.1.11-31a5a73745.patch"
- "@walmart/receipt-check-miniapp": "npm:1.22.5"
+ "@walmart/receipt-check-miniapp": "npm:1.22.9"
"@walmart/redux-store": "npm:6.1.4"
"@walmart/returns-mini-app": "npm:4.6.0"
"@walmart/rfid-scan-mini-app": "npm:2.3.10"
| update | update
|
bf85173e11c384f287edfa1ea0ec90c07e2d1e9b | --- packages/allspark-foundation-hub/__tests__/HubFeature/shared/ActionButtonGroup.test.tsx
@@ -14,7 +14,7 @@ describe('ActionButtonGroup', () => {
};
it('renders action button group component with required props', () => {
- const { getByTestId } = render(
+ const { getByTestId, toJSON } = render(
<ActionButtonGroup {...actionButtonGroupProps} />
);
const secondaryButton = getByTestId('secondary-button');
@@ -27,9 +27,10 @@ describe('ActionButtonGroup', () => {
expect(primaryButton.props.children).toStrictEqual(
actionButtonGroupProps.primaryButtonLabel
);
+ expect(toJSON()).toMatchSnapshot();
});
- it('it calls onSecondaryButtonPress when negative button is press', () => {
+ it('it calls onSecondaryButtonPress when secondary button is pressed', () => {
const { getByTestId } = render(
<ActionButtonGroup {...actionButtonGroupProps} />
);
@@ -38,7 +39,7 @@ describe('ActionButtonGroup', () => {
expect(actionButtonGroupProps.onSecondaryButtonPress).toHaveBeenCalled();
});
- it('it calls onPrimaryButtonPress when negative button is press', () => {
+ it('it calls onPrimaryButtonPress when primary button is pressed', () => {
const { getByTestId } = render(
<ActionButtonGroup {...actionButtonGroupProps} />
);
--- packages/allspark-foundation-hub/__tests__/HubFeature/shared/__snapshots__/ActionButtonGroup.test.tsx.snap
@@ -0,0 +1,51 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`ActionButtonGroup renders action button group component with required props 1`] = `
+<View
+ style={
+ {
+ "alignItems": "center",
+ "backgroundColor": "#fff",
+ "borderTopColor": "#e3e4e5",
+ "borderTopWidth": 1,
+ "bottom": 0,
+ "display": "flex",
+ "flexDirection": "row",
+ "justifyContent": "space-between",
+ "padding": 16,
+ "position": "absolute",
+ "width": "100%",
+ }
+ }
+>
+ <Button
+ accessibilityLabel="Cancel"
+ accessibilityRole="button"
+ onPress={[MockFunction]}
+ size="small"
+ testID="secondary-button"
+ variant="tertiary"
+ >
+ Cancel
+ </Button>
+ <View
+ style={
+ {
+ "width": "67%",
+ }
+ }
+ >
+ <Button
+ accessibilityLabel="Apply"
+ accessibilityRole="button"
+ isFullWidth={true}
+ onPress={[MockFunction]}
+ size="medium"
+ testID="primary-button"
+ variant="primary"
+ >
+ Apply
+ </Button>
+ </View>
+</View>
+`;
| test: fixed wording | test: fixed wording
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.