commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
6fb8139c81c79460d377bee2fbeebbd75f81ebf4
--- src/screens/MessagesScreen.tsx @@ -350,8 +350,8 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { parseInt(siteId, 10), channelId, getMessageType(), - message?.audio?.uri || message?.image?.uri, recipientsInfo.channelType, + message?.audio?.uri || message?.image?.uri, ); logger.info('PushNotifInfo', { message: `Push notification sent`, --- src/services/TextingApi.ts @@ -158,8 +158,8 @@ export const notifyRecipientsWithPush = async ( storeNumber: number, channelId: string, messageType: string, + channelType: string, url?: string, - channelType?: string, ) => { return TextingApi.post( '/directedvoice/ptt/v1/textingnotificationservice/notifyRecipients', --- src/screens/MessagesScreen.tsx @@ -350,8 +350,8 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { parseInt(siteId, 10), channelId, getMessageType(), - message?.audio?.uri || message?.image?.uri, recipientsInfo.channelType, + message?.audio?.uri || message?.image?.uri, ); logger.info('PushNotifInfo', { message: `Push notification sent`, --- src/services/TextingApi.ts @@ -158,8 +158,8 @@ export const notifyRecipientsWithPush = async ( storeNumber: number, channelId: string, messageType: string, + channelType: string, url?: string, - channelType?: string, ) => { return TextingApi.post( '/directedvoice/ptt/v1/textingnotificationservice/notifyRecipients',
update review comments
update review comments
c08d48cf5386d9ac125c2310d0588e9cf8435828
--- targets/US/package.json @@ -102,7 +102,7 @@ "@walmart/emergency-mini-app": "1.29.8", "@walmart/exception-mini-app": "1.8.11", "@walmart/facilities-management-miniapp": "0.14.6", - "@walmart/feedback-all-spark-miniapp": "0.9.70", + "@walmart/feedback-all-spark-miniapp": "0.9.71", "@walmart/financial-wellbeing-feature-app": "1.26.0", "@walmart/functional-components": "~6.3.20", "@walmart/gta-react-native-calendars": "0.7.0", --- yarn.lock @@ -6372,9 +6372,9 @@ __metadata: languageName: node linkType: hard -"@walmart/feedback-all-spark-miniapp@npm:^0.9.70": - version: 0.9.70 - resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.70" +"@walmart/feedback-all-spark-miniapp@npm:0.9.71": + version: 0.9.71 + resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.71" peerDependencies: "@react-native-async-storage/async-storage": ^1.19.0 "@react-native-community/datetimepicker": 7.6.2 @@ -6400,7 +6400,7 @@ __metadata: react-redux: ^7.2.1 reduxsauce: ^1.2.0 reselect: ^4.0.0 - checksum: 10c0/4987004cc1d24c3b7ae7768986ae9469cd1514ffb7549caea0f6cd08fd67d694bab19c783c6647f2d8ae76b010b8e6dc55dc4cb08382f8122363d94edea535be + checksum: 10c0/e1e67470c638a01de03d273699c58195e15b6c1cbc8f8e7ac9f1aeb67385f90c70ab302955e541d2c2a5073e55c6927fc1dd44e3d78293c05aa4a4fd12449339 languageName: node linkType: hard @@ -7009,7 +7009,7 @@ __metadata: "@walmart/emergency-mini-app": "npm:1.29.8" "@walmart/exception-mini-app": "npm:1.8.11" "@walmart/facilities-management-miniapp": "npm:0.14.6" - "@walmart/feedback-all-spark-miniapp": "npm:0.9.70" + "@walmart/feedback-all-spark-miniapp": "npm:0.9.71" "@walmart/financial-wellbeing-feature-app": "npm:1.26.0" "@walmart/functional-components": "npm:~6.3.20" "@walmart/gta-react-native-calendars": "npm:0.7.0"
GDVCVR-17270 new version
GDVCVR-17270 new version
651ca7ba7f552657f7aa3fef7e0f1663693c77ba
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.11.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.10.0...v2.11.0) (2024-09-12) + + +### Features + +* **ui:** bug fix for roster banner ([99522ac](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/99522ace098cca873d9d6991af377edd55f528f8)) + # [2.10.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.9.0...v2.10.0) (2024-08-29) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.10.0", + "version": "2.11.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 2.11.0 [skip ci]
chore(release): 2.11.0 [skip ci] # [2.11.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.10.0...v2.11.0) (2024-09-12) ### Features * **ui:** bug fix for roster banner ([99522ac](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/99522ace098cca873d9d6991af377edd55f528f8))
5b39833e7088855f0af98ef82b85b91aa6e9ba7e
--- packages/allspark-foundation/src/Feature/AllsparkFeature.tsx @@ -429,7 +429,7 @@ export class AllsparkFeature<ID extends string = string> { this._module = new AllsparkFeatureModule<ID, T>(this.id, config); - return this._module; + return this._module as AllsparkFeatureModule<ID, T>; }; /**
chore: incorrect return type of feature create module
chore: incorrect return type of feature create module
47588b6942f7d1695a74be1f4a96751c3c0e18bc
--- src/versions/constants.ts @@ -10,6 +10,7 @@ export const LISTED_DEPENDENCIES = [ '@walmart/ask-sam-mini-app', '@walmart/attendance-mini-app', '@walmart/counts-component-miniapp', + '@walmart/copilot-mini-app', '@walmart/emergency-mini-app', '@walmart/exception-mini-app', '@walmart/facilities-management-miniapp',
fix: add copilot to settings
fix: add copilot to settings
6b7969509f8abd60876f6524da95cf5d68cb13ef
--- package-lock.json @@ -41,7 +41,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.17.10", "@walmart/attendance-mini-app": "1.62.13", - "@walmart/avp-feature-app": "0.0.30", + "@walmart/avp-feature-app": "0.0.29", "@walmart/avp-shared-library": "0.0.50", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13", @@ -8552,9 +8552,9 @@ } }, "node_modules/@walmart/avp-feature-app": { - "version": "0.0.30", - "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.0.30.tgz", - "integrity": "sha512-oD7jYo1Ywz4QEHx88L1E8UzG30F3iyOPyMlPq9/Zv/s0mD0rCFOz/5UYiGWwskYrZuDJ4XVO6YJRQ4OR6ZGrLQ==", + "version": "0.0.29", + "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.0.29.tgz", + "integrity": "sha512-P/KM+SRl0Q/yPTy2Vc9iUyQ39BiBH7nuyblnJFI86dAoW/V4lvNvfE1zykEKV6vSOwfyLxm+Nou8DzS5led1Zw==", "hasInstallScript": true, "dependencies": { "react-native-gesture-handler": "^2.13.1" @@ -33239,9 +33239,9 @@ } }, "@walmart/avp-feature-app": { - "version": "0.0.30", - "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.0.30.tgz", - "integrity": "sha512-oD7jYo1Ywz4QEHx88L1E8UzG30F3iyOPyMlPq9/Zv/s0mD0rCFOz/5UYiGWwskYrZuDJ4XVO6YJRQ4OR6ZGrLQ==", + "version": "0.0.29", + "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.0.29.tgz", + "integrity": "sha512-P/KM+SRl0Q/yPTy2Vc9iUyQ39BiBH7nuyblnJFI86dAoW/V4lvNvfE1zykEKV6vSOwfyLxm+Nou8DzS5led1Zw==", "requires": { "react-native-gesture-handler": "^2.13.1" } --- package.json @@ -82,7 +82,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.17.10", "@walmart/attendance-mini-app": "1.62.13", - "@walmart/avp-feature-app": "0.0.30", + "@walmart/avp-feature-app": "0.0.29", "@walmart/avp-shared-library": "0.0.50", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13",
bumped avp version to 0.0.29
bumped avp version to 0.0.29
6862879b2b2a8657309e98d759a77ec1e48c0c7b
--- src/navigation/types.ts @@ -8,7 +8,7 @@ export type TextingNavParamsMap = { FirebaseChannel >['path']; details?: NewChannelDetails; - autoPlayLatestAudio: boolean; + audioMessageForAutoplay?: string; }; 'texting.newMessage': undefined; 'texting.viewTeam': {teamId: string}; --- src/notification.ts @@ -20,7 +20,10 @@ export const onTextMessageNotification = (event?: SumoPushEvent) => { screen: appContainerRootScreen, params: { screen: messagesScreen, - params: {channelPath: channelPath, autoPlayLatestAudio: true}, + params: { + channelPath: channelPath, + audioMessageForAutoplay: 'an audio uri to download and play from', + }, }, }); handled = true; --- src/screens/MessagesScreen.tsx @@ -84,7 +84,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { params: { channelPath, details = DEFAULT_DETAILS, - autoPlayLatestAudio = false, + audioMessageForAutoplay = '', }, } = route; @@ -178,7 +178,8 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { useEffect(() => { connectToChannel().then(startMessageSubscription); - if (autoPlayLatestAudio) { + //TODO: Add utility method to check this resource format and make sure it is a valid audio message + if (audioMessageForAutoplay) { console.log( 'Do automatic playback of most recent message if it is an audio message', ); @@ -187,7 +188,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { return () => { unsubscribeMessages.current?.(); }; - }, [channelPath, autoPlayLatestAudio]); + }, [channelPath, audioMessageForAutoplay]); // When scrolling to the top of the list, fetch the next set of messages const onEndReached = async () => { --- src/navigation/types.ts @@ -8,7 +8,7 @@ export type TextingNavParamsMap = { FirebaseChannel >['path']; details?: NewChannelDetails; - autoPlayLatestAudio: boolean; + audioMessageForAutoplay?: string; }; 'texting.newMessage': undefined; 'texting.viewTeam': {teamId: string}; --- src/notification.ts @@ -20,7 +20,10 @@ export const onTextMessageNotification = (event?: SumoPushEvent) => { screen: appContainerRootScreen, params: { screen: messagesScreen, - params: {channelPath: channelPath, autoPlayLatestAudio: true}, + params: { + channelPath: channelPath, + audioMessageForAutoplay: 'an audio uri to download and play from', + }, }, }); handled = true; --- src/screens/MessagesScreen.tsx @@ -84,7 +84,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { params: { channelPath, details = DEFAULT_DETAILS, - autoPlayLatestAudio = false, + audioMessageForAutoplay = '', }, } = route; @@ -178,7 +178,8 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { useEffect(() => { connectToChannel().then(startMessageSubscription); - if (autoPlayLatestAudio) { + //TODO: Add utility method to check this resource format and make sure it is a valid audio message + if (audioMessageForAutoplay) { console.log( 'Do automatic playback of most recent message if it is an audio message', ); @@ -187,7 +188,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { return () => { unsubscribeMessages.current?.(); }; - }, [channelPath, autoPlayLatestAudio]); + }, [channelPath, audioMessageForAutoplay]); // When scrolling to the top of the list, fetch the next set of messages const onEndReached = async () => {
updating logic to playback specific audio message. logical issue if it only plays the latest
updating logic to playback specific audio message. logical issue if it only plays the latest
85a74810300a0d9b712d6d8e9b33f8a86ffffc9e
--- README.md @@ -19,30 +19,35 @@ This is the core container app for the AllSpark Project (Me@Walmart redesign) - - cd to the created folder - `yarn` - `yarn build` -- `cd targets/<your target folder>` (For ex: targets/US) -- `cd ios` -- `pod install` -- `cd ..` +- `yarn run:ios` or `yarn run:android` +- Follow prompts to select environment and build target -## Run scripts +## Specify Environment or Target -To run for a specific environment/build, use the npm scripts +Environment and Target are specified through the process variables `NODE_ENV` AND `TARGET`: -### iOS (RN debug builds) +```bash +NODE_ENV=development TARGET=US yarn run command +``` -- You should already be inside the particular target folder. -- `yarn run ios:dev` (dev / lower env) -- `yarn run ios:teflon` (teflon / automated test env) -- `yarn run ios:beta` (beta prod) -- `yarn run ios:prod` (squiggly prod; i.e. app store/play store) +Most defined commands will prompt for these values via the `runWithVariablePrompt` script. Once these variables are set they are stored locally in a `build.context.json` file for use in subsequent commands. This is to ensure if running `prebuild` for a particular environment/target that the following run command uses the same combination unless specifically overridden. -### Android (RN debug builds) +To override the values in the `build.context` you can either delete the file or add the `--skipContext` flag to any command using the `runWithVariablePrompt` script. -- You should already be inside the particular target folder. -- `yarn run android:dev` (dev / lower env) -- `yarn run android:teflon` (teflon / automated test env) -- `yarn run android:beta` (beta prod) -- `yarn run android:prod` (squiggly prod; i.e. app store/play store) +### Environment Differences + +- Development: lower env +- Teflon: automated test env +- Beta: prod like environment for beta testing +- Prod: (squiggly prod; i.e. app store/play store) + +## Prebuild + +The introduction of Expo CNG (continuous native generation) adds a new step to the build process. `prebuild` occurs before the regular native project build process and is responsible for generating the native projects using the Expo app.config file and configured plugins. + +All customization needed on the native project must be done with an Expo plugin. + +Plugins can be added locally in the `plugins/` directory or as part of your npm package. Refer to the [Expo Plugin Docs](https://docs.expo.dev/config-plugins/plugins-and-mods/#create-a-plugin) to learn more about creating a plugin and adding it to your package. For examples, look to the plugins already created locally or the [expo community config plugins repo](https://github.com/expo/config-plugins/tree/main). ## Running on iOS @@ -55,20 +60,22 @@ You will also need to add your SSH key to Walmart github using [these](https://d ## Running on Android For faster consecutive builds, ensure that you have successfully run the Android app on the emulator at least once. Once this is confirmed, you can enhance the speed of consecutive builds by setting the flag below to `true` + - Navigate to `android/settings.gradle` file. - Locate the line where the `gradle.startParameter.offline` flag is set. - Change the value from `false` to `gradle.startParameter.offline=true`. - ## Resolving build issues ### Android + - Make sure that you're on the correct versions for Java, Node, etc. (See Prerequisites) - Make sure that you've enabled yarn via codepack instead of an independent installation [Yarn migration guide](https://confluence.walmart.com/display/ALLSPARK/Migration+Guide+-+Yarn) - Make sure you've built the project from the root folder. - Remove targets/< target >/android/build directory and rebuild. (You cannot use `gradle.startParameter.offline=true` when you've removed the build folder.) ### iOS + - Make sure you're on the correct versions (See Prerequisites) - Make sure you've built the project from the root folder. - Make sure you've run the `certifyBootedSim.sh` script.
docs: update readme for script and prebuild changes
docs: update readme for script and prebuild changes
642b3a5963d13e877c692b525193a665c2ca3af8
--- ios/Podfile.lock @@ -1909,6 +1909,7 @@ SPEC CHECKSUMS: abseil: ebe5b5529fb05d93a8bdb7951607be08b7fa71bc Apollo: 204819ea82022fbc59ad05056820df867f19bd02 AppAuth: 31bcec809a638d7bd2f86ea8a52bd45f6e81e7c7 + Base64: cecfb41a004124895a7bcee567a89bae5a89d49b boost: a7c83b31436843459a1961bfd74b96033dc77234 BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33 BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44 @@ -1957,6 +1958,7 @@ SPEC CHECKSUMS: "gRPC-C++": 9675f953ace2b3de7c506039d77be1f2e77a8db2 gRPC-Core: 943e491cb0d45598b0b0eb9e910c88080369290b hermes-engine: 918ec5addfbc430c9f443376d739f088b6dc96c3 + JWT: ef71dfb03e1f842081e64dc42eef0e164f35d251 leveldb-library: f03246171cce0484482ec291f88b6d563699ee06 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 Libuv-gRPC: 55e51798e14ef436ad9bc45d12d43b77b49df378 @@ -2070,6 +2072,6 @@ SPEC CHECKSUMS: Yoga: dc109b79db907f0f589fc423e991b09ec42d2295 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 5e9af5bffc9ed6ee9db34b0f1573f68bd919bf97 +PODFILE CHECKSUM: aa974c743da6f2b8f34d7624b49e605b95240d31 COCOAPODS: 1.12.0
update version for Drop 16 QE test
update version for Drop 16 QE test
931cb2fb6faeee9bf6f0d401b52cb1285f3e4862
--- .yarnrc.yml @@ -10,5 +10,4 @@ nodeLinker: node-modules # Add the following in your Local Mac's ~/.zshrc file # export REPOSOLNS_NPM_REPO=https://npm.ci.artifacts.walmart.com/artifactory/api/npm/npme-npm -# npmRegistryServer: ${REPOSOLNS_NPM_REPO} -npmRegistryServer: "https://npme.walmart.com/" +npmRegistryServer: ${REPOSOLNS_NPM_REPO}
Update hub version
Update hub version
ef1b09f2e8481e683b34cf4bab1aba862c5fb3bd
--- package.json @@ -112,7 +112,7 @@ "@walmart/global-vpi-mini-app": "1.1.30", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.7", - "@walmart/ims-print-services-ui": "2.22.0", + "@walmart/ims-print-services-ui": "2.23.0", "@walmart/inbox-mini-app": "0.103.1", "@walmart/invue-react-native-sdk": "0.1.26-alpha.12", "@walmart/iteminfo-mini-app": "8.6.1", --- yarn.lock @@ -8243,9 +8243,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ims-print-services-ui@npm:2.22.0": - version: 2.22.0 - resolution: "@walmart/ims-print-services-ui@npm:2.22.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fims-print-services-ui%2F-%2F%40walmart%2Fims-print-services-ui-2.22.0.tgz" +"@walmart/ims-print-services-ui@npm:2.23.0": + version: 2.23.0 + resolution: "@walmart/ims-print-services-ui@npm:2.23.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fims-print-services-ui%2F-%2F%40walmart%2Fims-print-services-ui-2.23.0.tgz" peerDependencies: "@react-native-firebase/analytics": ">=21.5.0" "@react-native-firebase/app": ">=21.5.0" @@ -8265,7 +8265,7 @@ __metadata: react-native: "*" react-native-wm-telemetry: ">=0.2.0" uuid: ">=3.3.2" - checksum: 10c0/af3443eedc6af81f03ba9294febc3101b7ba9af0d5e985a59aa8e11ee69765376976b8db7dce793bb106123cc9f35bcca852f358a006085eaa7263c4addb1cf6 + checksum: 10c0/81ae339e862541e8688f09089f6c50ca439faa7e4ba3fb4025ac3b23a93a79634dad892eb990c0c1bbdb1690bffdb7de45d63c41550ed014ba602b6048d74c34 languageName: node linkType: hard @@ -8655,7 +8655,7 @@ __metadata: "@walmart/global-vpi-mini-app": "npm:1.1.30" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.7" - "@walmart/ims-print-services-ui": "npm:2.22.0" + "@walmart/ims-print-services-ui": "npm:2.23.0" "@walmart/inbox-mini-app": "npm:0.103.1" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12" "@walmart/iteminfo-mini-app": "npm:8.6.1"
feat(print): SSLS-11731 Bump Print UI to v2.23.0
feat(print): SSLS-11731 Bump Print UI to v2.23.0 BREAKING CHANGE: Vizpick Backroom changes for VIZPICKCASE labels depend on this version
93e9b78b2882049be3c7aa25d77a8d1f6035bfdb
--- packages/allspark-foundation/src/Feature/validate.ts @@ -7,7 +7,7 @@ export const validateFeatureId = <ID extends string>(featureId: ID) => { if (__DEV__) { const parsedId = featureId.toLowerCase(); if (parsedId.includes('mini') || parsedId.includes('app')) { - throw new Error( + console.warn( `Do not include "mini" or "app" in an AllsparkFeature's ID: ${featureId}` ); } @@ -43,7 +43,7 @@ export const validateScreenName = ( } } else { const idealName = `${featureId}${separator}${name}`; - throw new Error( + console.warn( `${type} "${name}", registered to AllsparkFeature ${featureId}, does not include a prefix. ${type} names should be prefixed with your feature id: Ex: ${idealName}` ); }
chore: change errors to warnings for feature module validations
chore: change errors to warnings for feature module validations
a3700b0440ab18c477663bbafa2d591eb8b3f481
--- package-lock.json @@ -79,7 +79,7 @@ "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/receipt-check-miniapp": "1.15.7", - "@walmart/redux-store": "3.5.0", + "@walmart/redux-store": "3.7.0", "@walmart/returns-mini-app": "3.9.0", "@walmart/schedule-mini-app": "0.55.0", "@walmart/shelfavailability-mini-app": "1.5.17", @@ -176,6 +176,7 @@ "react-redux": "^8.0.4", "realm": "11.2.0", "redux": "^4.1.2", + "redux-dynamic-middlewares": "^2.2.0", "redux-flipper": "^2.0.2", "redux-saga": "^1.2.0", "redux-thunk": "^2.4.0", @@ -9035,9 +9036,9 @@ } }, "node_modules/@walmart/redux-store": { - "version": "3.5.0", - "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.5.0.tgz", - "integrity": "sha512-7SIxN4B/oF3ICnhh9hUyr/QtY+459mYb2o8XUF9VxsAZWlkEkDwS/+V9l3xYzG82pzKcDwWR4sr6D0LIE7FlPA==", + "version": "3.7.0", + "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.7.0.tgz", + "integrity": "sha512-0dvcVgZq0Qna3dOFH4bKrBJAT9DDacrDaDf2JRTx2xToBKdYsUASJ4xLW7C4BfAjbaXGV5M74N9RGypWfmk/rQ==", "license": "MIT", "dependencies": { "namecase": "^1.1.2", @@ -9045,6 +9046,7 @@ }, "peerDependencies": { "redux": ">=4", + "redux-dynamic-middlewares": ">=2.2.0", "redux-flipper": ">2", "redux-saga": ">=1.1.3", "redux-thunk": ">=2.3", @@ -25111,6 +25113,12 @@ "@babel/runtime": "^7.9.2" } }, + "node_modules/redux-dynamic-middlewares": { + "version": "2.2.0", + "resolved": "https://npme.walmart.com/redux-dynamic-middlewares/-/redux-dynamic-middlewares-2.2.0.tgz", + "integrity": "sha512-GHESQC+Y0PV98ZBoaC6br6cDOsNiM1Cu4UleGMqMWCXX03jIr3BoozYVrRkLVVAl4sC216chakMnZOu6SwNdGA==", + "license": "MIT" + }, "node_modules/redux-flipper": { "version": "2.0.2", "license": "MIT", @@ -34234,7 +34242,7 @@ "requires": { "@walmart/allspark-http-client": "^2.4.13", "@walmart/allspark-utils": "^1.5.2", - "@walmart/redux-store": "3.5.0", + "@walmart/redux-store": "3.7.0", "reduxsauce": "^1.2.1", "reselect": "^4.1.5", "seamless-immutable": "^7.1.4", @@ -34496,9 +34504,9 @@ } }, "@walmart/redux-store": { - "version": "3.5.0", - "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.5.0.tgz", - "integrity": "sha512-7SIxN4B/oF3ICnhh9hUyr/QtY+459mYb2o8XUF9VxsAZWlkEkDwS/+V9l3xYzG82pzKcDwWR4sr6D0LIE7FlPA==", + "version": "3.7.0", + "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.7.0.tgz", + "integrity": "sha512-0dvcVgZq0Qna3dOFH4bKrBJAT9DDacrDaDf2JRTx2xToBKdYsUASJ4xLW7C4BfAjbaXGV5M74N9RGypWfmk/rQ==", "requires": { "namecase": "^1.1.2", "reduxsauce": "^1.2.1" @@ -45078,6 +45086,11 @@ "@babel/runtime": "^7.9.2" } }, + "redux-dynamic-middlewares": { + "version": "2.2.0", + "resolved": "https://npme.walmart.com/redux-dynamic-middlewares/-/redux-dynamic-middlewares-2.2.0.tgz", + "integrity": "sha512-GHESQC+Y0PV98ZBoaC6br6cDOsNiM1Cu4UleGMqMWCXX03jIr3BoozYVrRkLVVAl4sC216chakMnZOu6SwNdGA==" + }, "redux-flipper": { "version": "2.0.2", "requires": { --- package.json @@ -120,7 +120,7 @@ "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/receipt-check-miniapp": "1.15.7", - "@walmart/redux-store": "3.5.0", + "@walmart/redux-store": "3.7.0", "@walmart/returns-mini-app": "3.9.0", "@walmart/schedule-mini-app": "0.55.0", "@walmart/shelfavailability-mini-app": "1.5.17", @@ -217,6 +217,7 @@ "react-redux": "^8.0.4", "realm": "11.2.0", "redux": "^4.1.2", + "redux-dynamic-middlewares": "^2.2.0", "redux-flipper": "^2.0.2", "redux-saga": "^1.2.0", "redux-thunk": "^2.4.0", --- src/settings/privacy/PrivacyPreferences.tsx @@ -33,9 +33,14 @@ export const onUpdateCompleted = ( resp?.upsertAssociatePreference?.meAtWalmartPreferences?.displayPreferences ?.birthday; + const newAnniversarypreference = + resp?.upsertAssociatePreference?.meAtWalmartPreferences?.displayPreferences + ?.anniversary; + userActions.updateUser({ preferences: { - birthday: newBirthdaypreference, + ...(newBirthdaypreference && {birthday: newBirthdaypreference}), + ...(newAnniversarypreference && {anniversary: newAnniversarypreference}), }, }); }; @@ -47,6 +52,9 @@ export const PrivacyPreferences = () => { const birthdayPreference: boolean | undefined = useSelector( UserSelectors.getUserBirthdayPreference, ); + const anniversaryPreference: boolean | undefined = useSelector( + UserSelectors.getUserAnniversaryPreference, + ); const [updatePreference, {loading, error}] = useUpsertAssociatePreferenceMutation({ @@ -109,7 +117,7 @@ export const PrivacyPreferences = () => { walmartIdentificationNumber: winNumber!, meAtWalmartPreferences: { displayPreferences: { - birthday: Boolean(!birthdayPreference), + birthday: Boolean(!anniversaryPreference), }, }, }, @@ -119,7 +127,7 @@ export const PrivacyPreferences = () => { loading={loading} error={!!error?.message} errorMessage={t('privacyPreferences.error')} - testID='birthday_setting' + testID='anniversary_setting' /> </View> );
add anniversary selector and update redux store.
add anniversary selector and update redux store.
b8e25ceb5cbfe821c9902b41704a81e90a5f4e70
--- packages/allspark-utils/__tests__/LayoutTest.tsx @@ -1,6 +1,6 @@ import { render } from '@testing-library/react-native'; import React from 'react'; -import { Text, View } from 'react-native'; +import { Text } from 'react-native'; import { Layout } from '../src/Layout'; describe('Layout tests', () => { @@ -38,7 +38,6 @@ describe('Layout tests', () => { [ { componentId: 'three', width: 20 }, { componentId: 'nonExistent', width: 20 }, // Changed from 'four' to 'nonExistent' - {}, ], ]; @@ -169,57 +168,4 @@ describe('Layout tests', () => { "Allspark Utils: Layout doesn't support numColumns when using nested arrays" ); }); - - const BoundaryWrapper: React.FC<{ children: React.ReactNode }> = ({ - children, - }) => <View testID='boundary-wrapper'>{children}</View>; - - it('renders a custom componentWrapper around each component', () => { - const layout = [ - [{ componentId: 'one' }, { componentId: 'two' }], - [ - { componentId: 'three' }, - { componentId: 'nonExistent' }, // Should not render - ], - ]; - const config = { - one: () => <Text testID='one'>One</Text>, - two: () => <Text testID='two'>Two</Text>, - three: () => <Text testID='three'>Three</Text>, - }; - - const { queryAllByTestId, getByTestId, queryByTestId } = render( - <Layout - layout={layout} - config={config} - props={{}} - componentWrapper={BoundaryWrapper} - /> - ); - - // Should wrap only the rendered components (not the missing one) - const wrappers = queryAllByTestId('boundary-wrapper'); - expect(wrappers.length).toBe(3); - - // Check that the original components are still rendered inside - expect(getByTestId('one')).toBeTruthy(); - expect(getByTestId('two')).toBeTruthy(); - expect(getByTestId('three')).toBeTruthy(); - expect(queryByTestId('nonExistent')).toBeNull(); - }); - - it('uses PassThrough component when no componentWrapper is provided', () => { - const layout = [{ componentId: 'one' }, { componentId: 'two' }]; - const config = { - one: () => <Text testID='one'>One</Text>, - two: () => <Text testID='two'>Two</Text>, - }; - - const { queryByTestId } = render( - <Layout layout={layout} config={config} props={{}} /> - ); - - // No wrapper should be present - expect(queryByTestId('boundary-wrapper')).toBeNull(); - }); }); --- packages/allspark-utils/__tests__/__snapshots__/LayoutTest.tsx.snap @@ -560,7 +560,6 @@ exports[`Layout tests renders row layout correctly 1`] = ` "componentId": "nonExistent", "width": 20, }, - {}, ], ] } --- packages/allspark-utils/src/Layout.tsx @@ -49,7 +49,6 @@ export type LayoutProps<P extends any> = Omit< layout: LayoutItem[]; config: Record<string, ComponentType<P>>; props: P; - componentWrapper?: ComponentType; }; const styles = StyleSheet.create({ @@ -61,10 +60,6 @@ const styles = StyleSheet.create({ }, }); -const PassThrough: React.FC<{ children: React.ReactNode }> = ({ children }) => ( - <>{children}</> -); - /** * Creates an indivdual layout item. * @param componentId - The ID of the component to render. @@ -76,10 +71,7 @@ const PassThrough: React.FC<{ children: React.ReactNode }> = ({ children }) => ( * @returns A layout item object. */ const LayoutItem = memo( - ( - props: Pick<LayoutProps<any>, 'config' | 'props' | 'componentWrapper'> & - LayoutRecordItem - ) => { + (props: Pick<LayoutProps<any>, 'config' | 'props'> & LayoutRecordItem) => { const { componentId, component, @@ -87,7 +79,6 @@ const LayoutItem = memo( config, props: componentProps, style, - componentWrapper, } = props; const id = componentId || component || ''; const Component = config[id]; @@ -96,14 +87,10 @@ const LayoutItem = memo( return null; } - const ComponentWrapper = componentWrapper ?? PassThrough; - return ( - <ComponentWrapper> - <View style={[styles.itemContainer, style]}> - <Component {...componentProps} {...metaData} /> - </View> - </ComponentWrapper> + <View style={[styles.itemContainer, style]}> + <Component {...componentProps} {...metaData} /> + </View> ); } ); @@ -119,18 +106,12 @@ const LayoutItem = memo( */ const LayoutRow = memo( ( - props: Pick<LayoutProps<any>, 'config' | 'props' | 'componentWrapper'> & { + props: Pick<LayoutProps<any>, 'config' | 'props'> & { row: LayoutColumnItem[]; columnGap?: number; } ) => { - const { - row, - config, - columnGap, - props: componentProps, - componentWrapper, - } = props; + const { row, config, columnGap, props: componentProps } = props; return ( <View style={[styles.rowContainer, { gap: columnGap }]}> @@ -141,7 +122,6 @@ const LayoutRow = memo( {...column} config={config} props={componentProps} - componentWrapper={componentWrapper} /> ); })} @@ -186,7 +166,6 @@ export const Layout = <P = {},>(props: LayoutProps<P>) => { config, props: componentProps, contentContainerStyle, - componentWrapper, ...flatListProps } = props; @@ -213,7 +192,6 @@ export const Layout = <P = {},>(props: LayoutProps<P>) => { columnGap={columnGap} config={config} props={componentProps} - componentWrapper={componentWrapper} /> ); } else { @@ -223,13 +201,12 @@ export const Layout = <P = {},>(props: LayoutProps<P>) => { key={`item-${item.componentId || index}`} config={config} props={componentProps} - componentWrapper={componentWrapper} /> ); } }, // eslint-disable-next-line react-hooks/exhaustive-deps - [config, componentProps, componentWrapper] + [config, componentProps] ); return (
refactor(layout): remove component wrapper option
refactor(layout): remove component wrapper option
bf9822485575a2bc7b4dc1cfa4bd06fe6142470d
--- src/managerExperience/screens/RosterDetailScreen/styles.tsx @@ -1,17 +1,5 @@ import {colors} from '@walmart/gtp-shared-components/dist'; -import {Dimensions, StyleSheet, ViewStyle} from 'react-native'; - -const sharedListItemContainer: ViewStyle = { - display: 'flex', - height: 98, - paddingTop: 16, - paddingBottom: 16, - width: '100%', - alignItems: 'center', - flexDirection: 'row', - gap: 8, - backgroundColor: colors.white, -}; +import {Dimensions, StyleSheet} from 'react-native'; export const rosterDetailScreenStyles = StyleSheet.create({ container: { @@ -26,23 +14,4 @@ export const rosterDetailScreenStyles = StyleSheet.create({ width: Dimensions.get('window').width, alignSelf: 'center', }, - loadingListItemContainerWithBorder: { - ...sharedListItemContainer, - borderBottomColor: colors.gray['20'], - borderBottomWidth: 1, - }, - loadingListItemContainerWithoutBorder: { - ...sharedListItemContainer, - }, - loadingImage: { - alignSelf: 'flex-start', - }, - loadingAssociateInfo: { - display: 'flex', - flexDirection: 'column', - gap: 4, - }, - loadingBottomText: { - marginTop: 4, - }, }); --- src/managerExperience/screens/RosterDetailScreen/types.tsx @@ -1,12 +1,6 @@ import {RouteProp} from '@react-navigation/native'; import {TextingNavParamsMap} from '../../../navigation'; -import {Associate} from '../../../types'; export interface RosterDetailScreenProps { route: RouteProp<TextingNavParamsMap, 'myTeam.rosterDetail'>; } - -export type AssociateListRenderItem = { - item: Associate; - index: number; -};
chore: remove unused variables
chore: remove unused variables
1bc49e5d69109dae42e21cfe44ddb5ec67dbff96
--- .looper.multibranch.yml @@ -1 +1,2 @@ inherit: job:///allspark/allspark-core/allspark-template:allspark-template.yml +
dummy commit
dummy commit
c78b65b221d8edddfcba9f11c3ac49f3e997b70e
--- packages/allspark-foundation-hub/src/HubFeature/Hub/TeamSwitcher/index.tsx @@ -115,10 +115,12 @@ export const TeamSwitcher = ({ dispatch( ManagerExperienceCreators.updateSelectedTeamIDs(selectedTeamsList) ); + onTeamChange(team.teamId, selectedTeamsList); } else { dispatch( ManagerExperienceCreators.updateSelectedTeamIDs([team.teamId]) ); + onTeamChange(team.teamId, [team.teamId]); } };
Update the team id change for selected team
Update the team id change for selected team
3328bf3ce8db56b19df1d5bda7cf6ce5f6b80c4d
--- example/src/core/index.tsx @@ -1,7 +1,7 @@ import React, {useEffect} from 'react'; import {useSelector} from 'react-redux'; import {Text, View} from 'react-native'; -import {StackHeaderProps} from '@react-navigation/stack'; +import {StackHeaderProps, createStackNavigator} from '@react-navigation/stack'; import { createDrawerNavigator, DrawerContentComponentProps, @@ -25,7 +25,7 @@ import {CoreSetup} from './setup'; const renderHeader = (props: StackHeaderProps) => <Header {...props} />; // --- Tab Stacks --- // -const HomeStack = AllsparkNavigationClient.createAllsparkStackNavigator(); +const HomeStack = createStackNavigator(); const HomeNav = () => { return ( @@ -43,7 +43,7 @@ const HomeNav = () => { ); }; -const Tab1Stack = AllsparkNavigationClient.createAllsparkStackNavigator(); +const Tab1Stack = createStackNavigator(); const Tab1Nav = () => { return ( @@ -61,7 +61,7 @@ const Tab1Nav = () => { ); }; -const Tab2Stack = AllsparkNavigationClient.createAllsparkStackNavigator(); +const Tab2Stack = createStackNavigator(); const Tab2Nav = () => { return ( @@ -93,7 +93,7 @@ const TabStack = () => { }; // --- Stack --- // -const Stack = AllsparkNavigationClient.createAllsparkStackNavigator(); +const Stack = createStackNavigator(); const MainStack = () => { return ( @@ -138,14 +138,24 @@ const Navigation = () => { useEffect(() => { AllsparkNavigationClient.setNavigationResolvers({ - feature1: (name, params) => ({ - screen: 'container.tab1', - params: { - screen: name, - initial: false, - params: params, - }, - }), + feature1: (name, params) => { + console.log('rlane1 - handling feature1 navigation', { + screen: 'container.tab1', + params: { + screen: name, + initial: false, + params: params, + }, + }); + return { + screen: 'container.tab1', + params: { + screen: name, + initial: false, + params: params, + }, + }; + }, feature2: (name, params) => ({ screen: 'container.tab2', params: {
chore: update example app
chore: update example app
b3372cbbc4a0afdb9e98220dfb8d336aaa38b3c2
--- packages/me-at-walmart-container/src/services/telemetry.ts @@ -28,8 +28,8 @@ export class TelemetryClient { constructor(id: string, config?: TelemetryConfig) { this._id = id; - this._prefix = config?.usePrefix ? config.prefix || id : ''; this._config = config; + this._prefix = config?.usePrefix === false ? '' : config?.prefix || id; } public logEvent = (event: string, params?: Record<string, string>) => {
fix: telemetry service not defaulting to use prefix
fix: telemetry service not defaulting to use prefix
a02b7d38b1d82d0eb2c08e152c9bd06d63a0f986
--- packages/allspark-foundation/src/User/selectors.ts @@ -265,8 +265,17 @@ const UserTeamSelectors = { isTeamSupervisor ), getIsUserSalaried: createSelector( - [UserDataSelectors.getWin, UserDataSelectors.getTeams], - isSalaried + [ + UserDataSelectors.getWin, + UserDataSelectors.getTeams, + UserDataSelectors.getEmployeeType, + ], + (win, teams, employeeType) => + isSalaried(win, teams) || employeeType?.toLowerCase() === 's' + ), + getIsUserHourly: createSelector( + [UserDataSelectors.getEmployeeType], + (employeeType) => employeeType?.toLowerCase() === 'h' ), getTeamsForWorkingSite: createSelector( [UserDataSelectors.getTeams, UserDataSelectors.getWorkingSite],
feat: add hourly selector. update salaried selector to fallback to employee type
feat: add hourly selector. update salaried selector to fallback to employee type
4aa478b727869bc440cf17c79e59cc6d80616733
--- src/navigation/utils.ts @@ -8,10 +8,20 @@ export const goToWeeklySchedule = (wins: string[], teamName?: string) => { }); }; +// userId, +// businessUnitNumber: parseInt(businessUnitNumber), +// displayName, +// payType, +// walmartIdentificationNumber: walmartIdentificationNumber.toString(), +// country, + export const goToIndividualSchedule = ( userId?: string | undefined | null, - displayName?: string | undefined | null, - storeNumber?: string | undefined, + businessUnitNumber?: number, + displayName?: string | null, + payType?: string, + win?: string, + countryCode?: string, ) => { navigate('scheduleScreen', { // @ts-ignore @@ -19,9 +29,31 @@ export const goToIndividualSchedule = ( params: { userInfo: { userId: userId, + businessUnitNumber: businessUnitNumber, displayName: displayName, - site: storeNumber, + payType: payType, + walmartIdentificationNumber: win, + country: countryCode, }, }, }); }; + +// export const goToIndividualSchedule = ( +// userId?: string | undefined | null, +// displayName?: string | undefined | null, +// storeNumber?: string | undefined, +// ) => { +// navigate('scheduleScreen', { +// // @ts-ignore +// screen: 'scheduleNav.associateView', +// params: { +// userInfo: { +// userId: userId, +// displayName: displayName, +// +// site: storeNumber, +// }, +// }, +// }); +// };
update the view schedule link
update the view schedule link
a9f1a0a39e0d555820b6916d65720cef0a3f9be5
--- __tests__/harness/redux/mockState/appConfigState.ts @@ -0,0 +1,7 @@ +export const appConfigState = { + data: { + texting: { + enableMessageButton: 'true', + }, + }, +}; --- __tests__/harness/redux/mockState/authState.ts @@ -0,0 +1 @@ +export const authState = {}; --- __tests__/harness/redux/mockState/deviceInfoState.ts @@ -0,0 +1 @@ +export const deviceInfoState = {}; --- __tests__/harness/redux/mockState/index.ts @@ -1,24 +1,23 @@ import {GlobalState} from '@walmart/redux-store'; import {clockStatusState} from './clockStatusState'; +import {textingState} from './textingState'; +import {userState} from './userState'; +import {appConfigState} from './appConfigState'; +import {siteState} from './siteState'; +import {localeState} from './localeState'; +import {versionsState} from './versionsState'; +import {deviceInfoState} from './deviceInfoState'; +import {authState} from './authState'; //TODO: Move this to the @walmart/redux-store project as a sharable mock or import initial state from the redux-store to use in a mock? export const initialStateMock: GlobalState = { - auth: {}, - user: { - data: { - win: '123456789', - }, - }, - site: {}, + auth: authState, + user: userState, + site: siteState, clockStatus: clockStatusState, - locale: {}, - versions: {}, - deviceInfo: {}, - appConfig: { - data: { - texting: { - enableMessageButton: 'true', - }, - }, - }, + locale: localeState, + versions: versionsState, + deviceInfo: deviceInfoState, + appConfig: appConfigState, + texting: textingState, }; --- __tests__/harness/redux/mockState/localeState.ts @@ -0,0 +1 @@ +export const localeState = {}; --- __tests__/harness/redux/mockState/siteState.ts @@ -0,0 +1 @@ +export const siteState = {}; --- __tests__/harness/redux/mockState/textingState.ts @@ -0,0 +1 @@ +export const textingState = {}; --- __tests__/harness/redux/mockState/userState.ts @@ -0,0 +1,5 @@ +export const userState = { + data: { + win: '123456789', + }, +}; --- __tests__/harness/redux/mockState/versionsState.ts @@ -0,0 +1 @@ +export const versionsState = {}; --- __tests__/harness/redux/mockState/appConfigState.ts @@ -0,0 +1,7 @@ +export const appConfigState = { + data: { + texting: { + enableMessageButton: 'true', + }, + }, +}; --- __tests__/harness/redux/mockState/authState.ts @@ -0,0 +1 @@ +export const authState = {}; --- __tests__/harness/redux/mockState/deviceInfoState.ts @@ -0,0 +1 @@ +export const deviceInfoState = {}; --- __tests__/harness/redux/mockState/index.ts @@ -1,24 +1,23 @@ import {GlobalState} from '@walmart/redux-store'; import {clockStatusState} from './clockStatusState'; +import {textingState} from './textingState'; +import {userState} from './userState'; +import {appConfigState} from './appConfigState'; +import {siteState} from './siteState'; +import {localeState} from './localeState'; +import {versionsState} from './versionsState'; +import {deviceInfoState} from './deviceInfoState'; +import {authState} from './authState'; //TODO: Move this to the @walmart/redux-store project as a sharable mock or import initial state from the redux-store to use in a mock? export const initialStateMock: GlobalState = { - auth: {}, - user: { - data: { - win: '123456789', - }, - }, - site: {}, + auth: authState, + user: userState, + site: siteState, clockStatus: clockStatusState, - locale: {}, - versions: {}, - deviceInfo: {}, - appConfig: { - data: { - texting: { - enableMessageButton: 'true', - }, - }, - }, + locale: localeState, + versions: versionsState, + deviceInfo: deviceInfoState, + appConfig: appConfigState, + texting: textingState, }; --- __tests__/harness/redux/mockState/localeState.ts @@ -0,0 +1 @@ +export const localeState = {}; --- __tests__/harness/redux/mockState/siteState.ts @@ -0,0 +1 @@ +export const siteState = {}; --- __tests__/harness/redux/mockState/textingState.ts @@ -0,0 +1 @@ +export const textingState = {}; --- __tests__/harness/redux/mockState/userState.ts @@ -0,0 +1,5 @@ +export const userState = { + data: { + win: '123456789', + }, +}; --- __tests__/harness/redux/mockState/versionsState.ts @@ -0,0 +1 @@ +export const versionsState = {};
adding blank mockState files
adding blank mockState files
6bf200a22cda37e560b2e06efc5a9760ff595209
--- .looper.multibranch.yml @@ -227,7 +227,7 @@ flows: - echo "buildType ${buildType}" - echo "workspace is ${WORKSPACE}" - echo "podfile lock is ${WORKSPACE}/ios/Podfile.lock" - - ls -l ${WORKSPACE}/ios/Podfile.lock + - ls -l "${WORKSPACE}/ios/Podfile.lock" - call: pr # - call: auto-version - node(label="stable_osx", ws="exclusive"):
add quotes around filepath
add quotes around filepath
b3ab6066f0403bf72d93557237efa035e6c7229e
--- package.json @@ -190,7 +190,6 @@ "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", - "node-pre-gyp": "0.12.0", "@react-native-community/eslint-config": "^2.0.0", "@testing-library/react-hooks": "^5.0.3", "@types/crypto-js": "^3.1.43",
remove unwanted package
remove unwanted package
d0b4bdce979cfc9551bd7999b9ca371637066b22
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -460,7 +460,7 @@ ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-AllSpark/Pods-AllSpark-frameworks.sh", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-wm-barcode/DMSDK.framework/DMSDK", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/DMSDK/DMSDK.framework/DMSDK", ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( --- ios/Podfile.lock @@ -869,7 +869,7 @@ SPEC CHECKSUMS: boost: a7c83b31436843459a1961bfd74b96033dc77234 BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 - DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 + DoubleConversion: cde416483dac037923206447da6e1454df403714 FBLazyVector: e5569e42a1c79ca00521846c223173a57aca1fe1 FBReactNativeSpec: fe08c1cd7e2e205718d77ad14b34957cce949b58 Firebase: 54cdc8bc9c9b3de54f43dab86e62f5a76b47034f @@ -884,7 +884,7 @@ SPEC CHECKSUMS: FirebasePerformance: b6a1fd3ca81f5d54c4216e43562aa9dcd4f54b19 FirebaseRemoteConfig: 0b813f093033c56fe74a91996044a239ab5acb02 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 - glog: 5337263514dd6f09803962437687240c5dc39aa4 + glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 GoogleAppMeasurement: 6b6a08fd9c71f4dbc89e0e812acca81d797aa342 GoogleDataTransport: 85fd18ff3019bb85d3f2c551d04c481dedf71fc9 GoogleUtilities: 3df19e3c24f7bbc291d8b5809aa6b0d41e642437 @@ -979,4 +979,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 0c7cc926823c750eebe424a7c0d463101c78e702 -COCOAPODS: 1.11.2 +COCOAPODS: 1.10.1 \ No newline at end of file
revert pod changes
revert pod changes (cherry picked from commit d114951d62b7f3a828e588bb79f85bcb018731b4)
4b7878bd8b04af6ac0456ece108dc20b9182626c
--- packages/associate-exp-hub-team-switcher/src/components/team-switcher/MyWalmartTeamSwitcherFilter.tsx @@ -165,13 +165,16 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ const prevTeamRef = React.useRef(teamState.selectedTeamData); // Track last synced team to prevent infinite loops - const lastSyncedTeamRef = React.useRef<{teamId: string; timestamp: number} | null>(null); + const lastSyncedTeamRef = React.useRef<{ + teamId: string; + timestamp: number; + } | null>(null); const prevShiftsRef = React.useRef<string[]>(selectedShifts); // Track if shift initialization has been attempted to prevent infinite loops const shiftInitializedRef = React.useRef(false); - const dispatch = useAllsparkDispatch(); /** + const dispatch = useAllsparkDispatch(); /** * WORK CONTEXT SYNCHRONIZATION * * This effect ensures that the Work context in @walmart/allspark-foundation @@ -205,9 +208,11 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ if (selectedTeam.teamId && selectedTeam.teamLabel) { // Check if this team was already synced to prevent circular updates const lastSync = lastSyncedTeamRef.current; - const needsSync = !lastSync || + const needsSync = + !lastSync || lastSync.teamId !== selectedTeam.teamId || - JSON.stringify(selectedShifts) !== JSON.stringify(prevShiftsRef.current); + JSON.stringify(selectedShifts) !== + JSON.stringify(prevShiftsRef.current); if (needsSync) { const teamDataWithDepts = selectedTeam as any; // Type assertion to access areaDepartments @@ -716,8 +721,9 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ // Show "All Shifts" when all available shifts are selected (no "Shift" prefix) shiftsText = translate('shifts.allShifts'); } else if (selectedShifts.length > 0) { + const shift = [...selectedShifts].sort(); // Show comma-separated list of specific shift codes with "Shift" prefix - shiftsText = `Shift ${selectedShifts.join(', ')}`; + shiftsText = `Shift ${shift.join(', ')}`; } if (teamState?.selectedTeamData?.teamLabel) {
feat(ui): sorting shifts
feat(ui): sorting shifts
4e871381137081119e64370c5047c08d43ed1e53
--- package.json @@ -157,7 +157,7 @@ "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.9.0-aplha.1", "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.9.20#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.9.20-3371a478c8.patch", - "@walmart/receipt-check-miniapp": "1.34.4", + "@walmart/receipt-check-miniapp": "1.34.11", "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.17.23", "@walmart/rfid-scan-mini-app": "2.15.5", --- yarn.lock @@ -8497,7 +8497,7 @@ __metadata: "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.9.0-aplha.1" "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.9.20#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.9.20-3371a478c8.patch" - "@walmart/receipt-check-miniapp": "npm:1.34.4" + "@walmart/receipt-check-miniapp": "npm:1.34.11" "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.17.23" "@walmart/rfid-scan-mini-app": "npm:2.15.5" @@ -9108,9 +9108,9 @@ __metadata: languageName: node linkType: hard -"@walmart/receipt-check-miniapp@npm:1.34.4": - version: 1.34.4 - resolution: "@walmart/receipt-check-miniapp@npm:1.34.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freceipt-check-miniapp%2F-%2F%40walmart%2Freceipt-check-miniapp-1.34.4.tgz" +"@walmart/receipt-check-miniapp@npm:1.34.11": + version: 1.34.11 + resolution: "@walmart/receipt-check-miniapp@npm:1.34.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freceipt-check-miniapp%2F-%2F%40walmart%2Freceipt-check-miniapp-1.34.11.tgz" dependencies: "@walmart/tcnumber": "npm:^2.3.3" "@xstate/react": "npm:^3.0.1" @@ -9119,7 +9119,7 @@ __metadata: xstate: "npm:^4.32.1" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/79c9aa2f4a7fe40380ba182020da108a583cc98bb0237ea0796751ed01363ecf472daf6aa399082da0c6320087faa0bfd99177117bfdd1b48be2743713523690 + checksum: 10c0/08ac1604895d7c18d49c4ac02b0679cccff98bd4199366dd26c8c1e260a522c8abc5fb81580f2b31cb34fa692834f9b52768c9a2f6502e0943aea3bff3787942 languageName: node linkType: hard
Feature/Receipt-Check drop35 (#5120)
Feature/Receipt-Check drop35 (#5120) Co-authored-by: r0w0759 <rohit.wadhwa@walmart.com> Co-authored-by: Talia Andrews - t0a07tn <Talia.Andrews@walmart.com> Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com>
99522ace098cca873d9d6991af377edd55f528f8
--- src/components/Roster/Roster.tsx @@ -29,7 +29,7 @@ import {ListEmptyComponent} from './ListEmptyComponent'; import {RosterHeader} from '../RosterHeader'; import {TeamChatCard} from '../TeamList'; import {Associate} from '../../types'; -import {User, UserSelectors} from '@walmart/allspark-foundation/User'; +import {UserSelectors} from '@walmart/allspark-foundation/User'; //TODO: States to verify: No Data, Loading, Error (identify all types of errors), Success export const Roster: React.FC<RosterProps> = (props) => { @@ -45,7 +45,7 @@ export const Roster: React.FC<RosterProps> = (props) => { const [associates, setAssociates] = useState<Associate[]>([]); const [isRefreshing, setIsRefreshing] = useState(false); const loaderOffset = 10; - const currentUserSite = useSelector(UserSelectors.getData) as User; + const currentUserSite = useSelector(UserSelectors.getSiteId); const userIsInRoster = useUserIsInRoster(); const selectedFilter = useRef<FilterValue>(FilterValue.all); const {bottom: bottomInset} = useSafeAreaInsets(); --- src/components/SearchHeader.tsx @@ -117,7 +117,6 @@ export const SearchHeaderBase = (props: StackHeaderProps) => { }; export const SearchHeader = (props: StackHeaderProps) => ( - //@ts-ignore <Header BaseComponent={SearchHeaderBase} {...props} /> );
feat(ui): bug fix for roster banner
feat(ui): bug fix for roster banner
1b9a33f473bd70f814d6ae16288a43e5b5532109
--- src/components/RosterWidget/useRosterWidget.ts @@ -52,18 +52,31 @@ export const useRosterWidget = ( return teamsList; }, [teamDataForStore?.getTeamsByStore]); - const transformAllsiteTeams = () => { - const teamsData = teamDataForSite?.supplyChainTeamsByBusinessUnit?.teams; - const shiftsData = props.selectedShifts; - return teamsData.filter((team) => { - return team.membership.filter((member) => { - return shiftsData.some((shift) => shift.shiftId === member.shiftCode); - }); - }); - }; + // TODO: Type this + + function filterTeamsBySite(teams, shifts) { + let shiftSiteIds = shifts.map((shift) => Number(shift.shiftId)); + + let filteredTeams = teams + .map((team) => { + let filteredMembership = team.membership.filter((member) => + shiftSiteIds.includes(Number(member.shiftCode)), + ); + + return {...team, membership: filteredMembership}; + }) + .filter((team) => team.membership.length > 0); + + return filteredTeams; + } const teamRostersiteData = useMemo(() => { - return isSiteDC ? transformAllsiteTeams(teamDataForSite) : []; + return isSiteDC + ? filterTeamsBySite( + teamDataForSite?.supplyChainTeamsByBusinessUnit?.teams, + props.selectedShifts, + ) + : []; }, [teamDataForSite, isSiteDC]); const configureRosterInfo = () => {
feat(ui): updated logic for widget
feat(ui): updated logic for widget
8dc41ce0ddef4aa7db33cf2c4cacea081bdb5429
--- __tests__/__mocks__/@walmart/redux-store.js @@ -42,8 +42,4 @@ module.exports = { deviceInfoSuccess: jest.fn(), deviceInfoError: jest.fn(), }, - SIGN_IN_SUCCESS: 'SIGN_IN_SUCCESS', - SIGN_OUT_SUCCESS: 'SIGN_OUT_SUCCESS', - SIGN_IN_ERROR: 'SIGN_IN_ERROR', - START_IMPERSONATION: 'START_IMPERSONATION', }; --- __tests__/core/storeConfigInitTest.ts @@ -14,15 +14,6 @@ jest.mock('@walmart/config-components', () => ({ }, })); -jest.mock('@walmart/redux-store', () => ({ - storeConfigActions: { - storeConfigProgress: jest.fn(), - storeConfigSuccess: jest.fn(), - storeConfigError: jest.fn(), - }, - addSagas: jest.fn(), -})); - jest.mock('../../src/redux/CreateRestartableSagas', () => ({ createRestartableSagas: (sagas: any[]) => sagas, })); --- __tests__/startup/StartupSagaTest.ts @@ -253,12 +253,12 @@ describe('loginFlow', () => { expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next().value).toEqual( take([ - AuthTypes.SIGN_IN_SUCCESS, + UserTypes.GET_USER_SUCCESS, UserTypes.START_IMPERSONATION, AuthTypes.SIGN_IN_ERROR, ]), ); - expect(iterator.next({type: AuthTypes.SIGN_IN_SUCCESS}).value).toEqual( + expect(iterator.next({type: UserTypes.GET_USER_SUCCESS}).value).toEqual( fork(handleSignIn), ); expect(iterator.next().value).toEqual(spawn(pinPromptFlow)); @@ -274,12 +274,12 @@ describe('loginFlow', () => { expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next().value).toEqual( take([ - AuthTypes.SIGN_IN_SUCCESS, + UserTypes.GET_USER_SUCCESS, UserTypes.START_IMPERSONATION, AuthTypes.SIGN_IN_ERROR, ]), ); - expect(iterator.next({type: AuthTypes.SIGN_IN_SUCCESS}).value).toEqual( + expect(iterator.next({type: UserTypes.GET_USER_SUCCESS}).value).toEqual( fork(handleSignIn), ); expect(iterator.next().value).toEqual(spawn(pinPromptFlow)); @@ -296,7 +296,7 @@ describe('loginFlow', () => { expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next(captureEventTask).value).toEqual( take([ - AuthTypes.SIGN_IN_SUCCESS, + UserTypes.GET_USER_SUCCESS, UserTypes.START_IMPERSONATION, AuthTypes.SIGN_IN_ERROR, ]), @@ -313,7 +313,7 @@ describe('loginFlow', () => { expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next(undefined).value).toEqual( take([ - AuthTypes.SIGN_IN_SUCCESS, + UserTypes.GET_USER_SUCCESS, UserTypes.START_IMPERSONATION, AuthTypes.SIGN_IN_ERROR, ]), --- package-lock.json @@ -12731,7 +12731,7 @@ "react-native-connect-sso-redux": { "version": "1.0.1", "resolved": "https://npme.walmart.com/react-native-connect-sso-redux/-/react-native-connect-sso-redux-1.0.1.tgz", - "integrity": "sha512-RJADBxeUB3qlJ6D0qyljw6ePrCWobUObZ/j7cxK1M4NTYCn/OGVm6TuVO80WzHyi3/1wVscTSNdoF/m/+10ipQ==" + "integrity": "sha1-qd4UZjKEiXDiPtd13qB/sjL988Y=" }, "react-native-device-info": { "version": "5.6.5", --- package.json @@ -118,7 +118,7 @@ "react-native-biometrics": "^2.1.4", "react-native-check-app-install": "0.0.5", "react-native-circular-progress": "^1.3.6", - "react-native-connect-sso-redux": "^1.0.1", + "react-native-connect-sso-redux": "1.0.1", "react-native-device-info": "^5.6.5", "react-native-encrypted-storage": "^4.0.2", "react-native-fast-image": "^8.3.4", --- src/redux/UserChangedActions.ts @@ -1,7 +1,10 @@ +import {UserTypes, AuthTypes} from '@walmart/redux-store'; + export const USER_CHANGED_ACTIONS = [ - 'global/SIGN_IN_SUCCESS', - 'global/START_IMPERSONATION', - 'impersonation/SET_IMPERSONATOR_DATA', + UserTypes.GET_USER_SUCCESS, + UserTypes.UPDATE_USER, + UserTypes.START_IMPERSONATION, + UserTypes.EXIT_IMPERSONATION, ]; -export const APP_CONFIG_CLEAR_ACTIONS = ['global/SIGN_OUT_SUCCESS']; +export const APP_CONFIG_CLEAR_ACTIONS = [AuthTypes.SIGN_OUT_SUCCESS]; --- src/startup/StartupSaga.ts @@ -125,7 +125,7 @@ export function* loginFlow(): any { const captureEventTask = yield fork(captureMissedMiniAppEvents); const signInAction = yield take([ - AuthTypes.SIGN_IN_SUCCESS, + UserTypes.GET_USER_SUCCESS, UserTypes.START_IMPERSONATION, AuthTypes.SIGN_IN_ERROR, ]);
Fixing startup actions
Fixing startup actions
6a8e306ceb291fdded22b61a6d7d3ce02ab968a8
--- packages/allspark-utils/src/hooks/useRegistry.ts @@ -6,7 +6,7 @@ import { useIsMounted } from './useIsMounted'; * @description * Connects registry into react lifecycle, trigger render on registry change */ -export const useRegistry = <R extends Registry>(registry: R) => { +export const useRegistry = <R extends Registry<any, any>>(registry: R) => { const [, setState] = useState<any>(null); const isMounted = useIsMounted(); @@ -31,6 +31,6 @@ export const useRegistry = <R extends Registry>(registry: R) => { * Creates a useRegistry hook for a given registry */ export const createRegistryHook = - <R extends Registry>(registry: R) => + <R extends Registry<any, any>>(registry: R) => () => useRegistry<R>(registry);
fix: fix regsitry typing on registry hooks
fix: fix regsitry typing on registry hooks
f830621a088596121f2932c88e3b5c6565a9d27b
--- package-lock.json @@ -84,7 +84,7 @@ "@walmart/schedule-mini-app": "0.55.0", "@walmart/shelfavailability-mini-app": "1.5.17", "@walmart/taskit-mini-app": "2.47.9", - "@walmart/texting-mini-app": "2.0.38", + "@walmart/texting-mini-app": "2.0.39", "@walmart/time-clock-mini-app": "2.175.1", "@walmart/topstock-mini-app": "1.2.5", "@walmart/ui-components": "1.15.1", @@ -9233,9 +9233,9 @@ } }, "node_modules/@walmart/texting-mini-app": { - "version": "2.0.38", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.38.tgz", - "integrity": "sha512-9kp35HndmImCMm3sJDWsvnuFyTfX5RyE4cQLD2hEeMDHnViVEWDPGyNo0leSUZedp38CWatuAFJj5tReo/WA0w==", + "version": "2.0.39", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.39.tgz", + "integrity": "sha512-2QqWtVK7WNpSK2fLVBIulCvvo1w4zHgLmPdv7FKZhxt/Z1ifKb63bMpQZ3jEPxUjJSHWkDtNdQsvBmDIgaFjqg==", "hasInstallScript": true }, "node_modules/@walmart/time-clock-mini-app": { @@ -34564,9 +34564,9 @@ } }, "@walmart/texting-mini-app": { - "version": "2.0.38", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.38.tgz", - "integrity": "sha512-9kp35HndmImCMm3sJDWsvnuFyTfX5RyE4cQLD2hEeMDHnViVEWDPGyNo0leSUZedp38CWatuAFJj5tReo/WA0w==" + "version": "2.0.39", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.39.tgz", + "integrity": "sha512-2QqWtVK7WNpSK2fLVBIulCvvo1w4zHgLmPdv7FKZhxt/Z1ifKb63bMpQZ3jEPxUjJSHWkDtNdQsvBmDIgaFjqg==" }, "@walmart/time-clock-mini-app": { "version": "2.175.1", --- package.json @@ -125,7 +125,7 @@ "@walmart/schedule-mini-app": "0.55.0", "@walmart/shelfavailability-mini-app": "1.5.17", "@walmart/taskit-mini-app": "2.47.9", - "@walmart/texting-mini-app": "2.0.38", + "@walmart/texting-mini-app": "2.0.39", "@walmart/time-clock-mini-app": "2.175.1", "@walmart/topstock-mini-app": "1.2.5", "@walmart/ui-components": "1.15.1",
Update the texting mini app version
Update the texting mini app version
0f4814942f5ecacea25da2c6c8b6b0496e2e60c7
--- src/components/ClockedOutScreenGuard.tsx @@ -2,7 +2,6 @@ * Return early with warning if clocked out */ import {analytics} from '../logger/Analytics'; -import {noop} from 'lodash'; import React, {ReactElement} from 'react'; import {StyleSheet} from 'react-native'; import {Alert} from '@walmart/gtp-shared-components'; @@ -14,6 +13,7 @@ import {createStackNavigator} from '@react-navigation/stack'; import {TextingNavParamsMap} from '../navigation'; import {DrawerButton, Header} from '@walmart/ui-components'; import {TEXTING_I18N_NAMESPACE} from '../translations'; +import {navigate} from '@walmart/react-native-shared-navigation'; const styles = StyleSheet.create({ warning: { @@ -39,7 +39,7 @@ export const ClockedOutScreen = () => { UNSAFE_style={styles.warning} actionButtonProps={{ children: t('clockedOutScreenGuard.viewTimeClock'), - onPress: noop, + onPress: () => navigate('timeClock'), }} /> </> --- src/components/ClockedOutScreenGuard.tsx @@ -2,7 +2,6 @@ * Return early with warning if clocked out */ import {analytics} from '../logger/Analytics'; -import {noop} from 'lodash'; import React, {ReactElement} from 'react'; import {StyleSheet} from 'react-native'; import {Alert} from '@walmart/gtp-shared-components'; @@ -14,6 +13,7 @@ import {createStackNavigator} from '@react-navigation/stack'; import {TextingNavParamsMap} from '../navigation'; import {DrawerButton, Header} from '@walmart/ui-components'; import {TEXTING_I18N_NAMESPACE} from '../translations'; +import {navigate} from '@walmart/react-native-shared-navigation'; const styles = StyleSheet.create({ warning: { @@ -39,7 +39,7 @@ export const ClockedOutScreen = () => { UNSAFE_style={styles.warning} actionButtonProps={{ children: t('clockedOutScreenGuard.viewTimeClock'), - onPress: noop, + onPress: () => navigate('timeClock'), }} /> </>
update time clock navigation
update time clock navigation
7f8d59aa384c447dc0a7b6efcb810481c2392887
--- src/auth/ErrorScreen.tsx @@ -179,6 +179,29 @@ export const ErrorScreen: FC<any> = (props) => { })} </Picker> </View> + + {errorCategory === translate('ssoError.issues.other') && ( + <View> + <Text style={styles.otherErr}> + {translate('ssoError.otherIssue.q1')} + </Text> + <CheckboxItemGroup + items={getOptions(Q1Options)} + style={styles.otherErr} + selectedIds={selectedQ1Options} + onSelect={(id) => setselectedQ1Options(id)} + /> + <Text style={styles.otherErr}> + {translate('ssoError.otherIssue.q2')} + </Text> + <RadioItemGroup + items={getOptions(Q2Options)} + style={styles.otherErr} + selectedId={selectedQ2Option} + onSelect={(id) => setSelectedQ2Option(id)} + /> + </View> + )} {missingFields && ( <View style={styles.requiredErrorContainer}> <Subheader testID='error-msg' style={styles.requiredError}> @@ -192,29 +215,6 @@ export const ErrorScreen: FC<any> = (props) => { )} </View> - {errorCategory === translate('ssoError.issues.other') && ( - <View> - <Text style={styles.otherErr}> - {translate('ssoError.otherIssue.q1')} - </Text> - <CheckboxItemGroup - items={getOptions(Q1Options)} - style={styles.otherErr} - selectedIds={selectedQ1Options} - onSelect={(id) => setselectedQ1Options(id)} - /> - <Text style={styles.otherErr}> - {translate('ssoError.otherIssue.q2')} - </Text> - <RadioItemGroup - items={getOptions(Q2Options)} - style={styles.otherErr} - selectedId={selectedQ2Option} - onSelect={(id) => setSelectedQ2Option(id)} - /> - </View> - )} - <Text style={styles.fieldTitle}> {translate('ssoError.optional')} </Text>
shift the error msg
shift the error msg
e661c637d9c202ecedcc0df886da991b70a5eca1
--- packages/associate-exp-hub-hub/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.7.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.6.1...@walmart/associate-exp-hub-hub@2.7.0) (2025-11-06) + +### Features + +- **ui:** update test fixes ([41b94c5](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/41b94c516517b677a762a793ba9ff20d9950d716)) + ## [2.6.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.6.0...@walmart/associate-exp-hub-hub@2.6.1) (2025-11-04) **Note:** Version bump only for package @walmart/associate-exp-hub-hub --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.6.1", + "version": "2.7.0", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.4.0-alpha.31](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.30...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.31) (2025-11-06) + +### Features + +- **ui:** update dependecncies ([562c21b](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/562c21bec94109a3aaaeb562beec64bd7db8c927)) +- **ui:** update test fixes ([41b94c5](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/41b94c516517b677a762a793ba9ff20d9950d716)) + # [1.4.0-alpha.30](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.29...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.30) (2025-11-04) **Note:** Version bump only for package @walmart/associate-exp-hub-mini-app --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.4.0-alpha.30", + "version": "1.4.0-alpha.31", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.6.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.5.1...@walmart/associate-exp-hub-team-switcher@2.6.0) (2025-11-06) + +### Features + +- **ui:** update test fixes ([41b94c5](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/41b94c516517b677a762a793ba9ff20d9950d716)) + ## [2.5.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.5.0...@walmart/associate-exp-hub-team-switcher@2.5.1) (2025-11-04) **Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.5.1", + "version": "2.6.0", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.7.0 - @walmart/associate-exp-hub-mini-app@1.4.0-alpha.31 - @walmart/associate-exp-hub-team-switcher@2.6.0
7ace0dbd82fd63202aa734bca5ae21477fe3818c
--- package-lock.json @@ -70,7 +70,7 @@ "@walmart/gtp-shared-components": "2.1.10", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", - "@walmart/inbox-mini-app": "0.92.9", + "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.5", "@walmart/learning-mini-app": "20.0.3", "@walmart/manager-approvals-miniapp": "0.2.4", @@ -95,8 +95,8 @@ "@walmart/react-native-shared-navigation": "6.0.7", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.6.4", - "@walmart/receipt-check-miniapp": "1.19.4", "@walmart/react-native-webex-sdk": "0.1.8", + "@walmart/receipt-check-miniapp": "1.19.4", "@walmart/redux-store": "6.0.7", "@walmart/returns-mini-app": "4.6.0", "@walmart/rfid-scan-mini-app": "2.2.8", @@ -11665,9 +11665,9 @@ } }, "node_modules/@walmart/inbox-mini-app": { - "version": "0.92.9", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.92.9.tgz", - "integrity": "sha512-A+z8a9sRIbuUERyxBtLeMVzQZKJ5rBhInljHJKnGXpio2TbLZvbYhNq6r8mqBJcXvG/gHoogEF2V+UMdhL7nYA==", + "version": "0.92.10", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.92.10.tgz", + "integrity": "sha512-aqdeQENM+O56oDqEfd/Ea2j6L/1bsuVmdnC3Whm7VJog7cJbw9QPIyRDjRLgVEkMyInpDYK/QCen7g91eUnssQ==", "dependencies": { "@walmart/moment-walmart": "^1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" --- package.json @@ -111,7 +111,7 @@ "@walmart/gtp-shared-components": "2.1.10", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", - "@walmart/inbox-mini-app": "0.92.9", + "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.5", "@walmart/learning-mini-app": "20.0.3", "@walmart/manager-approvals-miniapp": "0.2.4", @@ -136,8 +136,8 @@ "@walmart/react-native-shared-navigation": "6.0.7", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.6.4", - "@walmart/receipt-check-miniapp": "1.19.4", "@walmart/react-native-webex-sdk": "0.1.8", + "@walmart/receipt-check-miniapp": "1.19.4", "@walmart/redux-store": "6.0.7", "@walmart/returns-mini-app": "4.6.0", "@walmart/rfid-scan-mini-app": "2.2.8", @@ -376,7 +376,7 @@ "@walmart/gtp-shared-components": "2.1.10", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", - "@walmart/inbox-mini-app": "0.92.9", + "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.5", "@walmart/learning-mini-app": "20.0.3", "@walmart/manager-approvals-miniapp": "0.2.4",
update inbox version
update inbox version
44819dc73a4bf811f6bcc02df096476e3436c062
--- .github/pull_request_template.md @@ -1,5 +1,3 @@ -# Pull Request - ## Description <!-- REQUIRED: Provide a clear and concise description of the changes --> --- .github/pull_request_template_check.yml @@ -101,7 +101,6 @@ jobs: } } - // Create a detailed comment for failed checks if (missingFields.length > 0) { const comment = `## ❌ PR Template Check Failed\n\nYour PR is missing required information:\n\n${missingFields.map(field => `- ${field}`).join('\n')}\n\nPlease update your PR description to include all required information.`;
feat(ui): testing new pr template
feat(ui): testing new pr template
e0534df3ba6d8b51c368295df9b6af860c8d66c8
--- .solidarity @@ -12,7 +12,7 @@ { "rule": "cli", "binary": "npm", - "semver": "^9" + "semver": "^10" } ], "CocoaPods": [
Update solidarity npm min version
Update solidarity npm min version
77fce3168dcd111f843ae9299b27d814be0a455d
--- src/redux/selectors.ts @@ -1,8 +1,27 @@ import {createSelector} from 'reselect'; -import {UserSelectors} from '@walmart/redux-store'; +import {UserSelectors, GlobalState} from '@walmart/redux-store'; import {encryptUserId} from '../utils'; +import {CCMFallbacks} from "../ccmFallbacks"; export const getEncryptedUserId = createSelector( [UserSelectors.getUserWIN], encryptUserId, ); + +export const getTextingAppConfigData = (state: GlobalState) => + state.appConfig.data?.texting || {}; + +export const warningMessageContent = createSelector( + [getTextingAppConfigData], + (state) => + state?.warningMessageContent?.toString() ?? + CCMFallbacks.warningMessageContent, +); + + +export const shouldDisplayWarningBanner = createSelector( + [getTextingAppConfigData], + (state) => + state?.shouldDisplayWarningBanner?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.shouldDisplayWarningBanner, +);
add back missing selector for banner
add back missing selector for banner
41c3e7441afba1676f0ea4158ce9aac0f236b80b
--- package-lock.json @@ -3367,9 +3367,9 @@ "integrity": "sha512-MJmjSVMnUBuBWxcUbW+DECg4nKTOR3L56U6PciAo3fhzzir2PTRfvepFgEf4AUezHGE9iTfKYwM3Vumzsutuow==" }, "@walmart/inbox-mini-app": { - "version": "0.0.104", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.104.tgz", - "integrity": "sha512-wf8H1YIc0ngWt1GsqUlFqOU8HF+PlmxkmHo6NCSL/qDcSIS6VqVOQmU0p6ZPdFhhhS5opazBZXV3wVZSpSel4A==" + "version": "0.0.105", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.105.tgz", + "integrity": "sha512-cKvZIhfn+NPDhdwFONeRyOmj81FOh7Qmne00KJ4gah40L3T2cWvNR1lXRmC0ORLQ/cK0orrDvXfVpVTIa06CKQ==" }, "@walmart/iteminfo-mini-app": { "version": "2.0.1", --- package.json @@ -75,7 +75,7 @@ "@walmart/gtp-shared-components": "^1.2.0", "@walmart/impersonation-mini-app": "1.0.18", "@walmart/ims-print-services-ui": "0.0.30", - "@walmart/inbox-mini-app": "0.0.104", + "@walmart/inbox-mini-app": "0.0.105", "@walmart/iteminfo-mini-app": "2.0.1", "@walmart/manager-approvals-miniapp": "0.0.45", "@walmart/metrics-mini-app": "0.4.11",
inbox version bump
inbox version bump SSMP-1945 SSMP-1872
01ab7187afd8133a256fa1a1004b1bd325a794e7
--- packages/allspark-foundation/src/Components/Banners/AllsparkBanner.tsx @@ -16,8 +16,8 @@ const styles = StyleSheet.create({ }, alert: { borderLeftWidth: 0, - alignItems: 'center', borderRadius: 0, + alignItems: 'center', }, closeButton: { position: 'absolute',
resolving commit
resolving commit
b67898696cf0736a5f54c3fb5df1aa1f1048f7b6
--- ios/Podfile.lock @@ -395,7 +395,7 @@ PODS: - RNPermissions - PromisesObjC (1.2.11) - Protobuf (3.14.0) - - PTT (0.5.5-stg): + - PTT (0.5.10): - BinaryCodable (~> 0.2.1) - CocoaAsyncSocket (~> 7.6.3) - Starscream (~> 3.0.2) @@ -575,8 +575,8 @@ PODS: - React-Core - react-native-pdf (6.2.2): - React-Core - - react-native-ptt-module (1.2.0): - - PTT (= 0.5.5-stg) + - react-native-ptt-module (1.2.4): + - PTT (= 0.5.10) - React - react-native-safe-area-context (3.1.8): - React-Core @@ -997,7 +997,7 @@ SPEC CHECKSUMS: Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef PromisesObjC: 8c196f5a328c2cba3e74624585467a557dcb482f Protobuf: 0cde852566359049847168e51bd1c690e0f70056 - PTT: 1808e3d2c39c366bc8511a6f23e31f57e5d90bdd + PTT: 08364784aae6db4fb960f97b16ef678126bd482c RCTRequired: f13f25e7b12f925f1f6a6a8c69d929a03c0129fe RCTTypeSafety: 44982c5c8e43ff4141eb519a8ddc88059acd1f3a React: e1c65dd41cb9db13b99f24608e47dd595f28ca9a @@ -1013,7 +1013,7 @@ SPEC CHECKSUMS: react-native-logger: d8dbc89c45a53bfcc97c8a3d932cca695851406d react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f - react-native-ptt-module: 11caa0ac31398e155aa89c4cc9b87662fc5cf904 + react-native-ptt-module: 9d699df88a3d33dd00f654f31bad7cdd47734a49 react-native-safe-area-context: 01158a92c300895d79dee447e980672dc3fb85a6 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-sumo-sdk: 8a034fe724417d8c9465951630e229edef2f738f --- package-lock.json @@ -3112,9 +3112,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.0.76", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.76.tgz", - "integrity": "sha512-ldhJHoHL7TH7USxDG/N3bkGukpy6edzLO+vdZlnWWUwWsOdNg2Irvr3V911T5OiwiBsmcLBc4QXL202kg6zZdg==" + "version": "0.0.79", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.79.tgz", + "integrity": "sha512-OM7sbtjMy6wbuw7iOhTCcSjfJs3fhAnGC861f8xTdfS2u1tPrvvKw7PP8AzOGPcD5D8+BGiKNgY5wh7v33tDFg==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", @@ -12235,9 +12235,9 @@ "integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w==" }, "react-native-ptt-module": { - "version": "1.2.0", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.2.0.tgz", - "integrity": "sha512-5h9rsUuX1vVhjZiiojxv26mrzI0kcynmsNYJad9Qt8nE+923Z/1Am1DoyfTvYU56/PxKYUx/Tryod18QpW8Y6g==" + "version": "1.2.4", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.2.4.tgz", + "integrity": "sha512-fsdmoq9Be+0nlyTAQEw2M+8+sFyHPhsy5dVp6K8lp7sFjjfUL0/+6F4jcoojKefDDfq/YJH+L3jNcmoqNcTWpA==" }, "react-native-qrcode-svg": { "version": "6.0.6", --- package.json @@ -57,7 +57,7 @@ "@walmart/impersonation-mini-app": "1.0.9", "@walmart/inbox-mini-app": "0.0.44", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.0.76", + "@walmart/push-to-talk-mini-app": "0.0.79", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.18.0", "@walmart/react-native-shared-navigation": "^0.3.0", @@ -86,7 +86,7 @@ "react-native-pdf": "^6.2.0", "react-native-permissions": "3.0.0", "react-native-popup-menu": "^0.15.9", - "react-native-ptt-module": "1.2.0", + "react-native-ptt-module": "1.2.4", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "^1.10.2", "react-native-safe-area-context": "^3.1.3",
Updated PTT version (#304)
Updated PTT version (#304)
e1b9a846cdc60e7e3af2f5349b502c0822b821d6
--- packages/allspark-foundation-hub/src/HubFeature/Store/Hub/Container/HubDashboard.tsx @@ -170,7 +170,7 @@ export const HubDashboard = ({ }); setAllowedWidgetsList(allowedWidgets); // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + }, [teamState]); /** Bottom sheet update */ const navigation = useNavigation();
Update the hub dashboard for changes
Update the hub dashboard for changes
8c088853c2e820bfa17be16d291ebd4889de78f7
--- lerna.json @@ -1,5 +1,5 @@ { - "version": "5.0.0", + "version": "5.0.0-beta.78", "npmClient": "npm", "changelogPreset": "angular", "command": {
chore: reverting version back for correct lerna publish process
chore: reverting version back for correct lerna publish process
5c5861ecbbb4fc1fe5d79f3e168fe93731643b2c
--- package.json @@ -103,7 +103,7 @@ "@walmart/emergency-mini-app": "1.27.1", "@walmart/exception-mini-app": "1.8.3", "@walmart/facilities-management-miniapp": "0.11.7", - "@walmart/feedback-all-spark-miniapp": "0.9.63", + "@walmart/feedback-all-spark-miniapp": "v0.9.66", "@walmart/financial-wellbeing-feature-app": "1.23.3", "@walmart/functional-components": "6.1.4", "@walmart/gta-react-native-calendars": "0.7.0", --- yarn.lock @@ -6112,9 +6112,9 @@ __metadata: languageName: node linkType: hard -"@walmart/feedback-all-spark-miniapp@npm:0.9.63": - version: 0.9.63 - resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.63" +"@walmart/feedback-all-spark-miniapp@npm:v0.9.66": + version: 0.9.66 + resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.66" peerDependencies: "@react-native-async-storage/async-storage": ^1.19.0 "@react-native-community/datetimepicker": 7.6.2 @@ -7818,7 +7818,7 @@ __metadata: "@walmart/emergency-mini-app": "npm:1.27.1" "@walmart/exception-mini-app": "npm:1.8.3" "@walmart/facilities-management-miniapp": "npm:0.11.7" - "@walmart/feedback-all-spark-miniapp": "npm:0.9.63" + "@walmart/feedback-all-spark-miniapp": "npm:v0.9.66" "@walmart/financial-wellbeing-feature-app": "npm:1.23.3" "@walmart/functional-components": "npm:6.1.4" "@walmart/gta-react-native-calendars": "npm:0.7.0"
feedback mini version bump
feedback mini version bump
a62585ddbab4595ea0d68576925e6da766b342b0
--- package.json @@ -91,7 +91,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.101.0", "@walmart/price-changes-mini-app": "1.0.6", - "@walmart/push-to-talk-mini-app": "0.5.103", + "@walmart/push-to-talk-mini-app": "0.5.104", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0", @@ -145,7 +145,7 @@ "react-native-pdf": "^6.2.0", "react-native-permissions": "3.0.0", "react-native-popup-menu": "^0.15.9", - "react-native-ptt-module": "1.5.75", + "react-native-ptt-module": "1.5.78", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "^1.10.2", "react-native-safe-area-context": "^3.3.0",
updating versions to what is publishing currently
updating versions to what is publishing currently
f2711e3ac4bc7132591a55220780276050f5f017
--- packages/allspark-foundation/src/Redux/reducer.ts @@ -1,4 +1,6 @@ -import { WorkState, IWorkAction, workSlice } from '../Work/redux'; +const INITIAL_STATE = { + version: '7.0.0', +}; /** * The root reducer for the Allspark framework. @@ -6,20 +8,5 @@ import { WorkState, IWorkAction, workSlice } from '../Work/redux'; * @todo - with module pattern implementation, reducers will be added dynamically by modules. */ export const AllsparkRootReducer = { - [workSlice.name]: workSlice.reducer, + allspark: (state = INITIAL_STATE) => state, }; - -/** - * @todo - with module pattern implementation, the global namespace will be augmented by modules. - */ -declare global { - namespace Allspark { - interface ReduxState { - [workSlice.name]: WorkState; - } - - interface ReduxActions { - [workSlice.name]: IWorkAction; - } - } -}
fix(redux): work reducer still added in root reducer
fix(redux): work reducer still added in root reducer
c7462ef5d28a68abe9346002fca16fc5489f52df
--- packages/allspark-foundation/src/Navigation/utils.tsx @@ -1,4 +1,9 @@ -import React, { PropsWithChildren, useEffect, forwardRef, useImperativeHandle } from 'react'; +import React, { + PropsWithChildren, + useEffect, + forwardRef, + useImperativeHandle, +} from 'react'; import { NavigationContainerRef, ParamListBase,
fix: lint error
fix: lint error
55912616c921aaa8ab24dd24df6d2089d542972e
--- __tests__/auth/ErrorScreenTest.tsx @@ -19,6 +19,7 @@ import WmConfig from 'react-native-wm-config'; jest.mock('react', () => ({ ...(jest.requireActual('react') as any), useState: jest.fn(), + useEffect: jest.fn((fn) => fn()), })); jest.mock('../../src/services/Logger', () => ({ @@ -31,9 +32,9 @@ jest.mock('../../src/services/MaskUserId', () => ({ encryptUserId: jest.fn((user, site) => `Encrypted-${user}-${site}`), })); -(WmConfig.getValue as jest.Mock).mockReturnValueOnce( - JSON.stringify(defaultConfig), -); +(WmConfig.getValue as jest.Mock).mockReturnValue({ + asString: jest.fn().mockReturnValue(JSON.stringify(defaultConfig)), +}); const mockUseState = useState as jest.Mock; const mockNavigation = { @@ -161,9 +162,6 @@ describe('ErrorScreen', () => { }, {language: 'en-US'}, ]); - (WmConfig.getValue as jest.Mock).mockReturnValueOnce( - JSON.stringify(defaultConfig), - ); mockUseState.mockReturnValueOnce(['swalton3', setUserId]); mockUseState.mockReturnValueOnce(['1234', setSiteId]); mockUseState.mockReturnValueOnce(['', setDetail]);
update mock for WmConfig.getValue
update mock for WmConfig.getValue
b5ccb4eaafb4035e5c98001f2f2a167f1c11113d
--- .yarnrc.yml @@ -9,4 +9,4 @@ packageExtensions: "react-native-elements": optional: true "react-native-vector-icons": - optional: true \ No newline at end of file + optional: true
feat(ui): update associate exp hub version
feat(ui): update associate exp hub version
398c4e270738c31c44608182d5653da96a1a497c
--- package-lock.json @@ -3499,9 +3499,9 @@ "integrity": "sha512-xXCe5sJeytOO9HAKLaTiQQMzomfUS2wUP6ICLYv9BGtdJUDmoKNT7aFYeRDGPgvPvkc1A8oFrqJIrOshjLnxSg==" }, "@walmart/react-native-sumo-sdk": { - "version": "2.0.0-beta-6", - "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.0.0-beta-6.tgz", - "integrity": "sha512-V8nPGHHR5zkqsH1wkZjcSxCX9GFeA4y2xITiaWOLE+Z5hr9ACYaYPc7YjOyrVptuAEpYVWiLq6kUNGKFatHSwQ==" + "version": "2.0.0-beta-7", + "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.0.0-beta-7.tgz", + "integrity": "sha512-L7YU/qKWInPizJnasQGk7/fBQ9PyNXJBVdkj0HcdSt4+81RgvQSC/I4BWdsvWoYcgbQai8y/Nfk6XpNGLxXU7w==" }, "@walmart/redux-store": { "version": "1.0.15", --- package.json @@ -92,7 +92,7 @@ "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.27.0", "@walmart/react-native-shared-navigation": "^0.4.0", - "@walmart/react-native-sumo-sdk": "^2.0.0-beta-6", + "@walmart/react-native-sumo-sdk": "^2.0.0-beta-7", "@walmart/redux-store": "^1.0.15", "@walmart/schedule-mini-app": "0.3.0", "@walmart/settings-mini-app": "1.3.7",
update the sumo version
update the sumo version
721d0763e8d8538db25885f894ea112a237a66ff
--- docs/CHANGELOG.md @@ -1,3 +1,11 @@ +# [2.33.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.32.0...v2.33.0) (2025-05-01) + + +### Features + +* **ui:** update graphql yml ([6d8266c](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/6d8266c98b18c4cffda5dda70ebe2bf64e9a3082)) +* **ui:** update query ([fe4c6ff](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/fe4c6ffd34afb1814fb4f288f5173dbee21a1b4b)) + # [2.32.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.31.0...v2.32.0) (2025-05-01) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "2.32.0", + "version": "2.33.0", "main": "dist/index.js", "files": [ "dist/"
chore(release): 2.33.0 [skip ci]
chore(release): 2.33.0 [skip ci] # [2.33.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.32.0...v2.33.0) (2025-05-01) ### Features * **ui:** update graphql yml ([6d8266c](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/6d8266c98b18c4cffda5dda70ebe2bf64e9a3082)) * **ui:** update query ([fe4c6ff](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/fe4c6ffd34afb1814fb4f288f5173dbee21a1b4b))
1961db15d8d21b7ee1b27295c00b672f74470b3b
--- .looper.multibranch.yml @@ -54,7 +54,7 @@ flows: app-build-init: - call: initialize - - (name Set NPM Env) yarn run env:${ENV} + - (name Set NPM Env) yarn run env:${ENV} # added to run before set-build-number # - call: initialize-fastlane - withcache('yarn-cache'): - call: yarn-steps @@ -76,7 +76,7 @@ flows: - var(start_time): date +%s - call: app-build-init - (name Jetifier) npm run jetifier - # - var(GRADLE_BUILD_FLAVOUR = ${value}) + # - var(GRADLE_BUILD_FLAVOUR = ${value}) # removed due to removal of build flavors - call: keys-setup - call: native-common($value) @@ -94,14 +94,14 @@ flows: then: - call: log-parser else: - # - var(GRADLE_BUILD_FLAVOUR = ${ENV}) + # - var(GRADLE_BUILD_FLAVOUR = ${ENV}) # removed due to removal of build flavors - (name Build Android) export FASTLANE_DISABLE_COLORS=1 && $RUBY_PATH/bundle exec fastlane build_android # set GRADLE_BUILD_FLAVOUR as Capitalized Env catch: - var(errorMessage = ${flowErrorMessage}) - call: build-notification(failure) - fail("${flowErrorMessage}") - native-common: + native-common: # added to remove npm run env:${ENV} which occurs too late - call: build-app # - call: app-size-operations - exposeVars(package.json) --- plugins/withDevelopmentTeam.ts @@ -3,13 +3,12 @@ import { withXcodeProject, XcodeProject, } from "expo/config-plugins"; -import fs from "node:fs"; -// @ts-ignore - no type definition -import xcode, { type XCBuildConfiguration } from "xcode"; -import { getAllPBXProjectPaths } from "@expo/config-plugins/build/ios/Paths"; import { getNativeTargets } from "@expo/config-plugins/build/ios/Target"; -import { getBuildConfigurationsForListId } from "@expo/config-plugins/build/ios/utils/Xcodeproj"; +import { + ConfigurationSectionEntry, + getBuildConfigurationsForListId, +} from "@expo/config-plugins/build/ios/utils/Xcodeproj"; import { trimQuotes } from "@expo/config-plugins/build/ios/utils/string"; /** @@ -32,7 +31,7 @@ export const withDevelopmentTeam: ConfigPlugin< /** Set the Apple development team ID for an XCBuildConfiguration object */ export function setDevelopmentTeamForBuildConfiguration( - xcBuildConfiguration: XCBuildConfiguration, + xcBuildConfiguration: ConfigurationSectionEntry[1], developmentTeam?: string ): void { if (developmentTeam) { @@ -69,25 +68,4 @@ export function updateDevelopmentTeamForPbxproj( return project; } -/** - * Updates the Apple development team ID for pbx projects inside the ios directory of the given project root - * - * @param {string} projectRoot Path to project root containing the ios directory - * @param {[string]} appleTeamId Desired Apple development team ID - */ -export function setDevelopmentTeamForPbxproj( - projectRoot: string, - appleTeamId?: string -): void { - // Get all pbx projects in the ${projectRoot}/ios directory - const pbxprojPaths = getAllPBXProjectPaths(projectRoot); - - for (const pbxprojPath of pbxprojPaths) { - let project = xcode.project(pbxprojPath); - project.parseSync(); - project = updateDevelopmentTeamForPbxproj(project, appleTeamId); - fs.writeFileSync(pbxprojPath, project.writeSync()); - } -} - export default withDevelopmentTeam;
chore: cleanup dev team plugin and add looper comments
chore: cleanup dev team plugin and add looper comments
3e2a0e6d498426771ee8d556b817e590465080ac
--- packages/allspark-foundation/src/Config/redux.ts @@ -2,7 +2,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { AuthActionCreators } from '../Auth/redux'; import { createSliceActionUtils } from '../Redux/utils'; import { InferActionTypes } from '../Redux/types'; -import { ConfigData, FeatureConfig } from './types'; +import { ConfigData } from './types'; export type ConfigState = { initializing: boolean; @@ -58,34 +58,11 @@ export const configSlice = createSlice({ state.error = false; state.data = action.payload; }, - OVERRIDE_VALUE: ( - state, - action: PayloadAction<{ key: string; value: string | number | boolean }> - ) => { - const { key, value } = action.payload; - - if (!state.data) { - return; - } - - // Check if the key is a top-level key in the data object - if (state.data[key]) { - (state.data as FeatureConfig)[key] = value; - } else { - // Use reduce to traverse the nested object structure by the split key - // and set the value at the correct location - key.split('.').reduce((acc, part, index, arr) => { - if (index === arr.length - 1) { - acc[part] = value; - return acc; - } else { - if (!acc[part]) { - acc[part] = {}; - } - return acc[part]; - } - }, state.data as FeatureConfig); - } + OVERRIDE_STATE: (state, action: PayloadAction<ConfigData | null>) => { + state.loading = false; + state.loaded = true; + state.error = false; + state.data = action.payload; }, }, extraReducers: (builder) => { --- packages/allspark-foundation/src/Redux/client.ts @@ -40,7 +40,7 @@ export class ReduxStoreClient { private _dynamicMiddleware: DynamicMiddleware<IAllsparkReduxState>; private _listenerMiddleware: ListenerMiddlewareInstance<IAllsparkReduxState>; private _keysToRemove: string[] = []; - private _store: EnhancedStore; + private _store: EnhancedStore<IAllsparkReduxState>; private _storeOptions: ConfigureStoreOptions; constructor(_?: { devTools?: boolean | DevToolsEnhancerOptions }) {
refactor(config): replace override_value with simple override_state
refactor(config): replace override_value with simple override_state
6983a8be66d822436ae5aba1f2c9250b3f7fa33e
--- packages/allspark-graphql-client/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "0.2.0", + "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { --- packages/allspark-graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "0.2.0", + "version": "1.0.0", "description": "> TODO: description", "license": "ISC", "main": "lib/index.js",
chore: manual breaking change version bump
chore: manual breaking change version bump
6943bdaab462d4b71215bb4b998e718a71c369f1
--- packages/allspark-foundation/src/Container/README.md @@ -1,8 +1,8 @@ # Allspark Container -An `AllsparkContainer` acts as the provider for a set of AllsparkFeatures. It sets the implementation of [dynamic allspark services]() and configures [static allspark services](). Features inherit these implementations and configurations automatically. +An `AllsparkContainer` acts as the provider for a set of `AllsparkFeatures`. It sets the implementation of [dynamic allspark services]() and configures [static allspark services](). Features inherit these implementations and configurations automatically. -An AllsparkContainer provides two primary functions, a [Provider]() and [FeatureRunner](). +An `AllsparkContainer` creates a context that should wrap the root of your app. It will setup all necessary context and initialize environment, services, and features. An app should only have one AllsparkContainer. @@ -62,34 +62,6 @@ const AppRoot = () => { } ``` -## Feature Runner - -A container's feature runner can be used by an AllsparkFeature for easy testing outside the container app. - -The feature runner will not only setup the containers context, but also generate a basic UI to facilitate testing. - -### createFeatureRunner - -```js -// Container specific environment object -const ENV = { env: 'dev', ... }; - -const App = MyAppContainer.createFeatureRunner( - Feature1, // AllsparkFeature to test standalone - { - environment: ENV, // Container specific environment object - siteIdRequired: true, // Should UI prompt for site id if none found - authConfigs: [...] // AuthConfigurations required for sign in - } -); -``` - -The result of the `createFeatureRunner()` method is a complete "ready-to-go" app. So it should regsitered directly on the AppRegistry in your root `index.js`` file. - -```js -AppRegistry.registerComponent('appName', () => App); -``` - ### AllsparkServices | Property | Type | --- packages/allspark-foundation/src/FeatureRunner/README.md @@ -1 +1,45 @@ # Allspark Feature Runner + +An `AllsparkFeatureRunner` is for testing a feature for a specific container. It will setup the container context and provide a basic UI for testing. + +## How does it work? + +### Step 1: Install Container & Dependencies + +An `AllsparkContainer` instance is needed to create a feature runner. + +A container instance should be published to npm, so install it and any of its dependencies. + +A container may also utilize an `allspark.config` file so try the `allspark link` command for connecting an native dependencies. + +```bash +npm install --save-dev @walmart/some-container-package + +npx allspark link +``` + +### Step 2: Create a Feature Runner + +Use the `AllsparkFeatureRunner` class to create a feature runner instance for a give container and feature. + +```typescript +const FeatureRunner = new AllsparkFeatureRunner( + MyAllsparkContainer, // AllsparkContainer instance + MyAllsparkFeature, // Allspark Feature instance + {environment: 'dev'} // Runner config +) +``` + +### Step 2: Register App + +In the root `index.js` file, register the feature runner app with the AppRegistry. + +```js +AppRegistry.registerComponent(name, FeatureRunner.App); +``` + +### Step 4: Try it Out + +The feature runner app generate some basic UI for the various feature capabilities as well as common container functionality. + +Try it out and if you think of functionality that should be added, please submit a feature request to the [Allspark Service Portal](https://jira.walmart.com/servicedesk/customer/portal/9085).
chore: update documentation
chore: update documentation
7947e6f046be28d29abdb30a814b19df08ec6532
--- android/app/build.gradle @@ -144,7 +144,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 856 + versionCode 860 versionName "1.4.2" } splits { --- ios/AllSpark/Info.plist @@ -36,7 +36,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>856</string> + <string>860</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
version code bump.
version code bump.
e230e5412d29f617d9be37d6e858aaa5852f1457
--- package-lock.json @@ -95,7 +95,7 @@ "@walmart/time-clock-mini-app": "2.301.0", "@walmart/topstock-mini-app": "1.4.14", "@walmart/ui-components": "1.15.6", - "@walmart/welcomeme-mini-app": "0.86.0-746-551fcb6", + "@walmart/welcomeme-mini-app": "0.87.0", "@walmart/wfm-ui": "0.2.26", "@walmart/wm-plus-mini-app": "0.12.19", "axios": "~1.2.6", @@ -10071,9 +10071,9 @@ } }, "node_modules/@walmart/welcomeme-mini-app": { - "version": "0.86.0-746-551fcb6", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.86.0-746-551fcb6.tgz", - "integrity": "sha512-+Pu7mM/acAWFwax9m+L6YUiopkJsc/CGVpOJG/5jbHrDCBNiCQvTc12TQ0TOOod88Vf0YZj/+q9TpU7tNNeCgw==", + "version": "0.87.0", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.87.0.tgz", + "integrity": "sha512-eywJJXRpezRSi9vYz/u918tEsSUy2k99iTcAuu7p7defe91re82tNCxI8rLAYYMIkYXLMwCp+D8DPHM+TYFpGg==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -33749,9 +33749,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.86.0-746-551fcb6", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.86.0-746-551fcb6.tgz", - "integrity": "sha512-+Pu7mM/acAWFwax9m+L6YUiopkJsc/CGVpOJG/5jbHrDCBNiCQvTc12TQ0TOOod88Vf0YZj/+q9TpU7tNNeCgw==" + "version": "0.87.0", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.87.0.tgz", + "integrity": "sha512-eywJJXRpezRSi9vYz/u918tEsSUy2k99iTcAuu7p7defe91re82tNCxI8rLAYYMIkYXLMwCp+D8DPHM+TYFpGg==" }, "@walmart/wfm-ui": { "version": "0.2.26", --- package.json @@ -136,7 +136,7 @@ "@walmart/time-clock-mini-app": "2.301.0", "@walmart/topstock-mini-app": "1.4.14", "@walmart/ui-components": "1.15.6", - "@walmart/welcomeme-mini-app": "0.86.0-746-551fcb6", + "@walmart/welcomeme-mini-app": "0.87.0", "@walmart/wfm-ui": "0.2.26", "@walmart/wm-plus-mini-app": "0.12.19", "axios": "~1.2.6",
chore: welcome me mini app version bump
chore: welcome me mini app version bump
0f251cd9431d3763451dcb9fbe42ecf39495ca42
--- __tests__/navigation/AssociateHallwayNav/DrawerNavTest.tsx @@ -10,6 +10,7 @@ import { } from '../../../src/navigation/AssociateHallwayNav/DrawerNav'; import {PinAccessActionCreators} from '../../../src/PinAccess/PinAccessRedux'; import {registerBannerComponents} from '../../../src/navigation/AssociateHallwayNav/Banners'; +import {getCurrentRouteName} from '@walmart/react-native-shared-navigation'; jest.mock('react', () => ({ ...(jest.requireActual('react') as any), @@ -42,6 +43,8 @@ jest.mock( }), ); +const mockGetCurrentRoute = getCurrentRouteName as jest.Mock; + const mockUseState = useState as jest.Mock; const mockUseSelector = useSelector as jest.Mock; // eslint-disable-next-line react-hooks/rules-of-hooks @@ -69,6 +72,7 @@ describe('DrawerNav', () => { siteIdPresent: false, pinFeatureEnabled: true, }); // activityMonitorProps + mockUseSelector.mockReturnValueOnce(['learning.webview']); // noInActiveTimerList const component = create(<DrawerNav />); it('matches default snapshot for initial render', () => { @@ -86,6 +90,7 @@ describe('DrawerNav', () => { siteIdPresent: true, pinFeatureEnabled: true, }); // activityMonitorProps + mockUseSelector.mockReturnValueOnce(['learning.webview']); // noInActiveTimerList component.update(<DrawerNav />); expect(component.toJSON()).toMatchSnapshot(); }); @@ -99,6 +104,8 @@ describe('DrawerNav', () => { siteIdPresent: false, pinFeatureEnabled: true, }); // activityMonitorProps + mockUseSelector.mockReturnValueOnce(['learning.webview']); // noInActiveTimerList + component.update(<DrawerNav />); const DrawerPovider = component.root.findByType(DrawerButton.Provider); @@ -122,6 +129,8 @@ describe('DrawerNav', () => { siteIdPresent: true, pinFeatureEnabled: true, }); // activityMonitorProps + mockUseSelector.mockReturnValueOnce(['learning.webview']); // noInActiveTimerList + mockGetCurrentRoute.mockReturnValue('Chat'); // different screen than blocked one. component.update(<DrawerNav />); const ActivityWrapper = component.root.findByType(ActivityMonitor); @@ -130,5 +139,26 @@ describe('DrawerNav', () => { expect(mockDispatch).toHaveBeenCalledWith( PinAccessActionCreators.promptForPasscode('foreground_inactivity'), ); + expect(mockDispatch).toBeCalledTimes(1); + }); + it('does not dispatch user inactive for some screens', () => { + mockUseState.mockReturnValueOnce([false, setInitRender]); + mockUseState.mockReturnValueOnce([false, setDrawerLocked]); + mockUseSelector.mockReturnValueOnce({ + inactivityTime: 30000, + backgroundIdleTime: 60000, + siteIdPresent: true, + pinFeatureEnabled: true, + }); // activityMonitorProps + mockUseSelector.mockReturnValueOnce(['learning.webview']); // noInActiveTimerList + mockGetCurrentRoute.mockReturnValue('learning.webview'); // same screen that is blocked one. + + component.update(<DrawerNav />); + + const ActivityWrapper = component.root.findByType(ActivityMonitor); + ActivityWrapper.props.onIdleTimeLapsed('foreground_inactivity'); + + // PIN is disabled so dispatch will not be called second time + expect(mockDispatch).not.toBeCalledTimes(2); }); }); --- __tests__/redux/SharedSelectorsTest.ts @@ -4,6 +4,7 @@ import { getUpdateChecksState, getSettingsAppConfig, getActivityMonitorConfig, + getNoInActiveTimerScreenList, } from '../../src/redux/SharedSelectors'; const appConfigState = { @@ -16,6 +17,7 @@ const appConfigState = { inactivityTimeMs: 1000, backgroundIdleTimeMs: 5000, pinFeatureEnabled: true, + noInactiveTimerScreenList: ['leaning.webViewScreen'], }, settings: { settingsKey: 'settingsValue', @@ -68,6 +70,18 @@ describe('shared selelctors', () => { }); }); + describe('getNoInActiveTimerScreenList', () => { + it('returns list when data is defined', () => { + const data = getNoInActiveTimerScreenList(appState); + expect(data).toEqual(appConfigState.data.core.noInactiveTimerScreenList); + }); + + it('handles undefined data', () => { + const data = getNoInActiveTimerScreenList(nullAppConfigData); + expect(data).toEqual([]); + }); + }); + describe('getCoreAppConfigValue', () => { it('returns selector; selector returns expected value if defined', () => { const valueSelector = getCoreAppConfigValue('coreKey'); --- src/navigation/AssociateHallwayNav/DrawerNav.tsx @@ -6,8 +6,12 @@ import {StackHeaderProps} from '@react-navigation/stack'; import {createDrawerNavigator} from '@react-navigation/drawer'; import {ActivityMonitor, DrawerButton, Header} from '@walmart/ui-components'; import {Providers as PTTProviders} from '@walmart/push-to-talk-mini-app'; +import {getCurrentRouteName} from '@walmart/react-native-shared-navigation'; -import {getActivityMonitorConfig} from '../../redux/SharedSelectors'; +import { + getActivityMonitorConfig, + getNoInActiveTimerScreenList, +} from '../../redux/SharedSelectors'; import {PinAccessActionCreators} from '../../PinAccess/PinAccessRedux'; import {SideMenuContent} from './SideMenuContent'; import {MainStackNav} from './MainStackNav'; @@ -41,6 +45,7 @@ export const DrawerNav = () => { const [initRender, setInitRender] = useState(true); const [drawerLocked, setDrawerLocked] = useState(false); const activityMonitorConfig = useSelector(getActivityMonitorConfig); + const noInActiveTimerList = useSelector(getNoInActiveTimerScreenList); const DrawerContext = useMemo( () => ({ @@ -54,7 +59,10 @@ export const DrawerNav = () => { ); const onIdleTimeLapsed = debounce((reason: string) => { - dispatch(PinAccessActionCreators.promptForPasscode(reason)); + const route = getCurrentRouteName(); + if (!noInActiveTimerList?.includes(route)) { + dispatch(PinAccessActionCreators.promptForPasscode(reason)); + } }, 500); useEffect(() => { --- src/redux/SharedSelectors.ts @@ -57,6 +57,11 @@ export const getBiometricsEnabled = getCoreAppConfigValue('biometricsEnabled'); export const getLogLevel = getCoreAppConfigValue('logLevel'); +export const getNoInActiveTimerScreenList = getCoreAppConfigValue( + 'noInactiveTimerScreenList', + [], +); + export const getSettingsAppConfig = createSelector( [AppConfigSelectors.getAppConfigData], (data) => data?.settings,
disable timer for few screens in CCM
disable timer for few screens in CCM
d3a60572df9fccf9ae650f4e4af8259d99151c76
--- ios/Podfile.lock @@ -1467,9 +1467,9 @@ PODS: - FirebaseMessaging (<= 10.1.0) - StructuredLogAssistantIOS (= 0.0.7) - TOCropViewController (2.6.1) - - topstock-mini-app (1.2.5): + - topstock-mini-app (1.2.6): - React - - VisionCamera (2.15.2): + - VisionCamera (2.16.2): - React - React-callinvoker - React-Core @@ -2065,13 +2065,13 @@ SPEC CHECKSUMS: StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 SumoSDK: fef064694cb7fd0f4d8c633f03d2d9e11876fdda TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 - topstock-mini-app: df17d39160a46df6b2fd035088804a62542269e4 - VisionCamera: 4cfd685b1e671fea4aa0400905ab397f0e972210 + topstock-mini-app: cb36b2ca552b8c0ef18f72adaa3cba6817b1ab2a + VisionCamera: e665d4459abe1f243e95707f651cd1d10346b382 walmart-react-native-sumo-sdk: 02719d035c1a52e951e15097fae5ea17b459f71c wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 Yoga: dc109b79db907f0f589fc423e991b09ec42d2295 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: aa974c743da6f2b8f34d7624b49e605b95240d31 +PODFILE CHECKSUM: bc85f0ecab1b1b7585482122a8b5d7888548d44d -COCOAPODS: 1.12.0 +COCOAPODS: 1.12.1 --- package-lock.json @@ -165,7 +165,7 @@ "react-native-vector-icons": "^9.2.0", "react-native-video": "^5.2.1", "react-native-view-shot": "^3.4.0", - "react-native-vision-camera": "^2.15.1", + "react-native-vision-camera": "2.16.2", "react-native-webview": "^11.23.1", "react-native-wm-app-review": "0.4.0-rc.1", "react-native-wm-config": "0.1.1", @@ -23758,7 +23758,9 @@ } }, "node_modules/react-native-vision-camera": { - "version": "2.15.2", + "version": "2.16.2", + "resolved": "https://npme.walmart.com/react-native-vision-camera/-/react-native-vision-camera-2.16.2.tgz", + "integrity": "sha512-QIpG33l3QB0AkTfX/ccRknwNRu1APNUkokVKF1lpRO2+tBnkXnGL0UapgXg5u9KIONZtrpupeDeO+J5B2TeQVw==", "license": "MIT", "peerDependencies": { "react": "*", @@ -44797,7 +44799,9 @@ "version": "3.5.0" }, "react-native-vision-camera": { - "version": "2.15.2" + "version": "2.16.2", + "resolved": "https://npme.walmart.com/react-native-vision-camera/-/react-native-vision-camera-2.16.2.tgz", + "integrity": "sha512-QIpG33l3QB0AkTfX/ccRknwNRu1APNUkokVKF1lpRO2+tBnkXnGL0UapgXg5u9KIONZtrpupeDeO+J5B2TeQVw==" }, "react-native-webview": { "version": "11.23.1", --- package.json @@ -206,7 +206,7 @@ "react-native-vector-icons": "^9.2.0", "react-native-video": "^5.2.1", "react-native-view-shot": "^3.4.0", - "react-native-vision-camera": "^2.15.1", + "react-native-vision-camera": "2.16.2", "react-native-webview": "^11.23.1", "react-native-wm-app-review": "0.4.0-rc.1", "react-native-wm-config": "0.1.1",
fix: updated react-native-vision-camera@2.16.2
fix: updated react-native-vision-camera@2.16.2
8788f78fc7ac0fc6c2a0585ec5fb76dae9d774cf
--- packages/allspark-foundation-hub/__tests__/HubFeature/Hub/TeamSwitcher.test.tsx @@ -111,7 +111,7 @@ describe.skip('TeamSwitcher', () => { }); //Todo: Fix the test since we are not passing the teamData anymore - it.skip('changes the selected team when a team is pressed', () => { + it('changes the selected team when a team is pressed', () => { const { getByTestId, getByText } = render( <TeamSwitcher onTeamChange={onTeamChange} refetch={refetch} /> ); @@ -127,7 +127,7 @@ describe.skip('TeamSwitcher', () => { ); }); - it.skip('renders the vertical divider correctly', () => { + it('renders the vertical divider correctly', () => { const { getAllByTestId } = render( <TeamSwitcher onTeamChange={onTeamChange} refetch={refetch} /> ); @@ -161,7 +161,7 @@ describe.skip('TeamSwitcher', () => { }); //Todo: Fix the test since we are not passing the teamData anymore - it.skip('displays the selector line and pointer when a team is selected', () => { + it('displays the selector line and pointer when a team is selected', () => { const { getByText, getByTestId } = render( <TeamSwitcher onTeamChange={onTeamChange} refetch={refetch} /> ); @@ -188,7 +188,7 @@ describe.skip('TeamSwitcher', () => { expect(queryByText('No teams available')).toBeNull(); }); - it.skip('ensures flatList is rendering the correct items', () => { + it('ensures flatList is rendering the correct items', () => { const { getByTestId } = render( <TeamSwitcher onTeamChange={onTeamChange} refetch={refetch} /> );
feat(ui): Skip tests for now
feat(ui): Skip tests for now
06d26efd1ac9011c6be836937c2f1293a0f20bd3
--- __tests__/App-test.tsx @@ -1,14 +0,0 @@ -/** - * @format - */ - -import 'react-native'; -import React from 'react'; -import App from '../App'; - -// Note: test renderer must be required after react-native. -import renderer from 'react-test-renderer'; - -it('renders correctly', () => { - renderer.create(<App />); -});
adding test
adding test
38c1cc409fa3ee571bb87c97a1210219c05b2314
--- package-lock.json @@ -54,7 +54,7 @@ "@walmart/impersonation-mini-app": "1.11.0", "@walmart/ims-print-services-ui": "2.1.0", "@walmart/inbox-mini-app": "0.81.13", - "@walmart/iteminfo-mini-app": "7.1.1", + "@walmart/iteminfo-mini-app": "7.1.2", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.44", @@ -5336,9 +5336,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "7.1.1", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.1.1.tgz", - "integrity": "sha512-Ap4ZUkesH0izmavQ5r1HdT5QId2xcGe09H0yA85mdcFwenexycGJTNoHFtapCFC9npvSMQ7a+n70aE5v2qXxYw==", + "version": "7.1.2", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.1.2.tgz", + "integrity": "sha512-IHosBgCd6Kq/rsnEPiF0YlXaF4vyRw8tbCLbFQXgr1Xml0JL6TsD6ZZZy04Y83XxH5bSE/apwmNI+uPKCY/NwA==", "peerDependencies": { "@react-native-community/async-storage": ">=1.12.1", "@react-native-community/netinfo": ">=9.3.6", @@ -25147,9 +25147,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "7.1.1", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.1.1.tgz", - "integrity": "sha512-Ap4ZUkesH0izmavQ5r1HdT5QId2xcGe09H0yA85mdcFwenexycGJTNoHFtapCFC9npvSMQ7a+n70aE5v2qXxYw==" + "version": "7.1.2", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.1.2.tgz", + "integrity": "sha512-IHosBgCd6Kq/rsnEPiF0YlXaF4vyRw8tbCLbFQXgr1Xml0JL6TsD6ZZZy04Y83XxH5bSE/apwmNI+uPKCY/NwA==" }, "@walmart/manager-approvals-miniapp": { "version": "0.2.1" --- package.json @@ -96,7 +96,7 @@ "@walmart/impersonation-mini-app": "1.11.0", "@walmart/ims-print-services-ui": "2.1.0", "@walmart/inbox-mini-app": "0.81.13", - "@walmart/iteminfo-mini-app": "7.1.1", + "@walmart/iteminfo-mini-app": "7.1.2", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.44",
bumped up ItemInfo to fix the httpclient issue
bumped up ItemInfo to fix the httpclient issue
018c34c0a2ce05478af55a3baba05e64fae780ec
--- package.json @@ -87,7 +87,7 @@ "@walmart/core-widget-registry": "0.3.2", "@walmart/counts-component-miniapp": "0.0.39", "@walmart/exception-mini-app": "0.42.3", - "@walmart/facilities-management-miniapp": "0.2.3-1", + "@walmart/facilities-management-miniapp": "0.2.3-2", "@walmart/feedback-all-spark-miniapp": "0.6.0", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15",
Updated FM app version;
Updated FM app version;
2808f7717a72438a26823beac2b3200fe4a078eb
--- packages/expo-config-plugins/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. +## [0.1.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.1.7...@walmart/expo-config-plugins@0.1.8) (2025-04-11) + +**Note:** Version bump only for package @walmart/expo-config-plugins + ## [0.1.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.1.6...@walmart/expo-config-plugins@0.1.7) (2025-04-08) **Note:** Version bump only for package @walmart/expo-config-plugins --- packages/expo-config-plugins/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/expo-config-plugins", "packageManager": "yarn@4.1.1", - "version": "0.1.7", + "version": "0.1.8", "description": "Expo config plugins for me@apps", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/expo-config-plugins@0.1.8
5df6de4a320d185d9ee64be5798d9690c042f9ad
--- .looper.multibranch.yml @@ -1 +1,9 @@ inherit: job:///allspark/allspark-core/allspark-template:allspark-template.yml + +envs: + ios: + variables: + IOS_BASE_PATH: ios + android: + variables: + ANDROID_BASE_PATH: android
chore: looper template path fix attempt
chore: looper template path fix attempt
2b1b9c5cbd1ae4a957887d02188d16a368400ac6
--- .looper.multibranch.yml @@ -64,6 +64,7 @@ envs: SIZE_REPO_GITHUB_BRANCH: main SIZE_JSON_PATH: SIZE_REPO/size.json # ------ Values for Target based Paths ------ + market: INTL XCODE_PROJECT_PATH: targets/${market}/ios/AllSpark.xcodeproj ANDROID_GRADLE_PATH: targets/${market}/android/app/build.gradle IOS_BASE_PATH: targets/${market}/ios @@ -365,11 +366,6 @@ envs: skipFailedNode: true scheduling: concurrent # all builds can run in parallel triggers: - - manual: - - parameters: - - market: - label: "Enter Market from the following - US, INTL " - type: STRING - pr: scheduling: cancelRunning # no more than one concurrent build for the same pull request ignoredLabels: @@ -563,135 +559,83 @@ branches: - manual: name: Build Android Prod call: android-prod(releasecandidate) - # - spec: feature/* - # triggers: - # - push: - # manualOnly: true - # - manual: - # name: Publish Packages (Pre-Release) - # call: publishPrerelease - # - manual: - # name: Publish Packages (Graduate) - # call: publishGraduate - # - manual: - # name: Build All - # call: build-selector(market=$market, branch=feature, env_selected=all, os_type=all) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build Both Dev - # call: build-selector(market=$market, branch=feature, env_selected=dev, os_type=all) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build Android Dev - # call: build-selector(market=$market, branch=feature, env_selected=dev, os_type=android) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build iOS Dev - # call: build-selector(market=$market, branch=feature, env_selected=dev, os_type=ios) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build Both Beta - # call: build-selector(market=$market, branch=feature, env_selected=beta, os_type=all) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build Android Beta - # call: build-selector(market=$market, branch=feature, env_selected=beta, os_type=android) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build iOS Beta - # call: build-selector(market=$market, branch=feature, env_selected=beta, os_type=ios) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build Both Teflon - # call: build-selector(market=$market, branch=feature, env_selected=teflon, os_type=all) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build Android Teflon - # call: build-selector(market=$market, branch=feature, env_selected=teflon, os_type=android) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build iOS Teflon - # call: build-selector(market=$market, branch=feature, env_selected=teflon, os_type=ios) - # parameters: - # - market: - # label: "Enter Market from the following - US, INTL " - # type: STRING - # - manual: - # name: Build Simulator - # call: push(simulator) - -# ------------------------- - spec: feature/* triggers: - push: manualOnly: true - - manual: - name: Publish Packages (Pre-Release) - call: publishPrerelease - - manual: - name: Publish Packages (Graduate) - call: publishGraduate - manual: name: Build All call: build-selector(market=$market, branch=feature, env_selected=all, os_type=all) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build Both Dev - call: dev(test) + call: build-selector(market=$market, branch=feature, env_selected=dev, os_type=all) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build Android Dev call: build-selector(market=$market, branch=feature, env_selected=dev, os_type=android) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build iOS Dev - call: ios-dev(test) + call: build-selector(market=$market, branch=feature, env_selected=dev, os_type=ios) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build Both Beta - call: beta(test) + call: build-selector(market=$market, branch=feature, env_selected=beta, os_type=all) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build Android Beta - call: android-beta(test) + call: build-selector(market=$market, branch=feature, env_selected=beta, os_type=android) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build iOS Beta - call: ios-beta(test) + call: build-selector(market=$market, branch=feature, env_selected=beta, os_type=ios) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build Both Teflon - call: teflon(test) + call: build-selector(market=$market, branch=feature, env_selected=teflon, os_type=all) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build Android Teflon - call: android-teflon(test) + call: build-selector(market=$market, branch=feature, env_selected=teflon, os_type=android) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build iOS Teflon - call: ios-teflon(test) + call: build-selector(market=$market, branch=feature, env_selected=teflon, os_type=ios) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build Simulator call: push(simulator) -# ----- flows: build-selector: @@ -699,7 +643,6 @@ flows: then: - var(market="US") - (name Just to Check Market) echo ${IOS_BASE_PATH} - # -------1---- - switch(${os_type}): case(ios): - switch(${env_selected}): @@ -737,7 +680,7 @@ flows: - call: prod(${branch}) otherwise: # when option 'all' is selected for env_selected - call: push(${branch}) - + native-ios: - node(label=${NODES}): - call: build-ios(ios)
Update .looper.multibranch.yml
Update .looper.multibranch.yml
2f2d31d9c49aab751e89f48ef9fec66f0dffe338
--- packages/allspark-foundation/src/Navigation/client.tsx @@ -44,6 +44,17 @@ import { DefaultModalOptions } from './constants'; import { getDrawerContext } from './context'; import { DefaultModalStack } from './modals'; +export type AllsparkStackNavigatorProps = { + initialRouteName: string; + children: React.ReactNode; + screenOptions?: + | StackNavigationOptions + | ((props: { route: any; navigation: any }) => StackNavigationOptions); + id?: string; + detachInactiveScreens?: boolean; + // Only allow specific props that StackView can handle +}; + /** * Allspark's Navigation client. A combination of react navigation * and modalfy that enables global navigation, configuration, modal management, etc. @@ -734,17 +745,6 @@ export class NavigationClient< }; }; - type AllsparkStackNavigatorProps = { - initialRouteName: string; - children: React.ReactNode; - screenOptions?: - | StackNavigationOptions - | ((props: { route: any; navigation: any }) => StackNavigationOptions); - id?: string; - detachInactiveScreens?: boolean; - // Only allow specific props that StackView can handle - }; - const AllsparkStackNavigator = ({ initialRouteName, children,
refactor: move type declaration to top of file
refactor: move type declaration to top of file
7e533c7225fb8778e5b872f30aeb62d2a22d1f27
--- package-lock.json @@ -45,7 +45,7 @@ "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.9.0", - "@walmart/exception-mini-app": "1.0.13", + "@walmart/exception-mini-app": "1.0.14", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.7", "@walmart/financial-wellbeing-feature-app": "1.0.64", @@ -5076,9 +5076,9 @@ } }, "node_modules/@walmart/exception-mini-app": { - "version": "1.0.13", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.13.tgz", - "integrity": "sha512-EDsf5anfmxACiPzg1JOWuyOhrgVkRw0C34QpEFRDaTjv8sBboM9sXosxLFlcwavJ4wfb4CNoDRc65v2mLwWq0g==", + "version": "1.0.14", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.14.tgz", + "integrity": "sha512-SaexB86EUhjf0oQiOc3RbsEMz9TsSM3av62l46CVznEOOVGmdcrm3naA37GxXSX5LeD0Brft2bWJ5xJbRkqwKg==", "peerDependencies": { "@walmart/functional-components": ">=2.0.6", "@walmart/gtp-shared-components": "^2.0.0-rc.1", @@ -25199,9 +25199,9 @@ } }, "@walmart/exception-mini-app": { - "version": "1.0.13", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.13.tgz", - "integrity": "sha512-EDsf5anfmxACiPzg1JOWuyOhrgVkRw0C34QpEFRDaTjv8sBboM9sXosxLFlcwavJ4wfb4CNoDRc65v2mLwWq0g==" + "version": "1.0.14", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.14.tgz", + "integrity": "sha512-SaexB86EUhjf0oQiOc3RbsEMz9TsSM3av62l46CVznEOOVGmdcrm3naA37GxXSX5LeD0Brft2bWJ5xJbRkqwKg==" }, "@walmart/facilities-management-miniapp": { "version": "0.4.2", --- package.json @@ -88,7 +88,7 @@ "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.9.0", - "@walmart/exception-mini-app": "1.0.13", + "@walmart/exception-mini-app": "1.0.14", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.7", "@walmart/financial-wellbeing-feature-app": "1.0.64",
@walmart/exception-mini-app 1.0.14
@walmart/exception-mini-app 1.0.14
de16bff72025d2643854992cab03c6d12653ea01
--- package.json @@ -98,7 +98,7 @@ "@walmart/attendance-mini-app": "3.181.0", "@walmart/avp-feature-app": "0.28.47", "@walmart/avp-shared-library": "0.27.26", - "@walmart/ax-components": "1.4.4", + "@walmart/ax-components": "1.4.5", "@walmart/backroom-mini-app": "1.17.11", "@walmart/beneficiary-online-mini-app": "0.1.26", "@walmart/beneficiary-online-shared-library": "1.2.7", --- yarn.lock @@ -7945,9 +7945,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ax-components@npm:1.4.4": - version: 1.4.4 - resolution: "@walmart/ax-components@npm:1.4.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.4.4.tgz" +"@walmart/ax-components@npm:1.4.5": + version: 1.4.5 + resolution: "@walmart/ax-components@npm:1.4.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.4.5.tgz" peerDependencies: "@expo/vector-icons": ~14.1.0 "@walmart/gtp-shared-components-3": "*" @@ -7956,7 +7956,7 @@ __metadata: react-dom: 19.x react-native: 0.79.x react-native-markdown-display: ^7.0.2 - checksum: 10c0/16a9159a66a017ced5f32717f0b74645cbffeda5bc72d26820296470f29632b2d530c9fab5b1e2a5373fe5da9eea8ec3606e03173b2efec34de11db62585899c + checksum: 10c0/46ecb875bc440450de55df72927605a9e3233961cf3b5eec6f8aa2ab4087d2b5d854a7f1232bc94c62c353adcb213b602968fc244964e34ee7b385d6d776742d languageName: node linkType: hard @@ -8832,7 +8832,7 @@ __metadata: "@walmart/attendance-mini-app": "npm:3.181.0" "@walmart/avp-feature-app": "npm:0.28.47" "@walmart/avp-shared-library": "npm:0.27.26" - "@walmart/ax-components": "npm:1.4.4" + "@walmart/ax-components": "npm:1.4.5" "@walmart/backroom-mini-app": "npm:1.17.11" "@walmart/beneficiary-online-mini-app": "npm:0.1.26" "@walmart/beneficiary-online-shared-library": "npm:1.2.7"
chore: bump ax components (#5412)
chore: bump ax components (#5412)
aa9df31efe4f596fcceda19fff709f20d20ef47b
--- package-lock.json @@ -58,9 +58,9 @@ "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.10", "@walmart/impersonation-mini-app": "1.20.2", - "@walmart/ims-print-services-ui": "2.5.6", + "@walmart/ims-print-services-ui": "2.5.7", "@walmart/inbox-mini-app": "0.86.1", - "@walmart/iteminfo-mini-app": "7.5.4", + "@walmart/iteminfo-mini-app": "7.5.5", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", "@walmart/metrics-mini-app": "0.13.11", @@ -8460,9 +8460,9 @@ } }, "node_modules/@walmart/ims-print-services-ui": { - "version": "2.5.6", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.5.6.tgz", - "integrity": "sha512-ZE3tFpJPSTy8sbWd1Z5dGWHJr1N6Rx/J89+vhC+8Ecyq2RtOOaHZiQiLFLnegGji+JIj9BJQeTuuw843Qsy7XA==", + "version": "2.5.7", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.5.7.tgz", + "integrity": "sha512-loUP5TJ991efk+7jusBjMH4CqBM59veNmbDUTah02+sfjBA1sWZlseHanIu9hNPkLf9O0wK8RzfbpMCbRv10Nw==", "peerDependencies": { "@react-native-firebase/analytics": ">=10.5.1", "@react-native-firebase/app": ">=10.5.0", @@ -8503,9 +8503,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "7.5.4", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.4.tgz", - "integrity": "sha512-e3XHe0fvNvV4whcmDyO/pcOigvy0dgYdUY4BxEr7p9HefdSSNCGdF4kN6nL8ona2yO4n/De7VSIdmfIDqleSzg==", + "version": "7.5.5", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.5.tgz", + "integrity": "sha512-mT+qJ8FoOMoFLkdCIcRkUdxGXY0JxG4okOxzk3RmDx1D1i79+rvuFFY2xXpn5dy0qk1I4IU6SVd5RXT0TgFXnA==", "peerDependencies": { "@react-native-community/netinfo": ">=9.3.6", "@react-native-firebase/analytics": ">=15.1.1", @@ -33653,9 +33653,9 @@ "integrity": "sha512-Eubyowsouh6ZEZEfJ4je0i+GwZzSFc36p5q1JeUfjrkLWNt/lJZUnIZ1cNKnEHVqCR+y5HwJ9JuRiioWyJ5sfQ==" }, "@walmart/ims-print-services-ui": { - "version": "2.5.6", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.5.6.tgz", - "integrity": "sha512-ZE3tFpJPSTy8sbWd1Z5dGWHJr1N6Rx/J89+vhC+8Ecyq2RtOOaHZiQiLFLnegGji+JIj9BJQeTuuw843Qsy7XA==" + "version": "2.5.7", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.5.7.tgz", + "integrity": "sha512-loUP5TJ991efk+7jusBjMH4CqBM59veNmbDUTah02+sfjBA1sWZlseHanIu9hNPkLf9O0wK8RzfbpMCbRv10Nw==" }, "@walmart/inbox-mini-app": { "version": "0.86.1", @@ -33667,9 +33667,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "7.5.4", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.4.tgz", - "integrity": "sha512-e3XHe0fvNvV4whcmDyO/pcOigvy0dgYdUY4BxEr7p9HefdSSNCGdF4kN6nL8ona2yO4n/De7VSIdmfIDqleSzg==" + "version": "7.5.5", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.5.tgz", + "integrity": "sha512-mT+qJ8FoOMoFLkdCIcRkUdxGXY0JxG4okOxzk3RmDx1D1i79+rvuFFY2xXpn5dy0qk1I4IU6SVd5RXT0TgFXnA==" }, "@walmart/manager-approvals-miniapp": { "version": "0.2.4" --- package.json @@ -99,9 +99,9 @@ "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.10", "@walmart/impersonation-mini-app": "1.20.2", - "@walmart/ims-print-services-ui": "2.5.6", + "@walmart/ims-print-services-ui": "2.5.7", "@walmart/inbox-mini-app": "0.86.1", - "@walmart/iteminfo-mini-app": "7.5.4", + "@walmart/iteminfo-mini-app": "7.5.5", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", "@walmart/metrics-mini-app": "0.13.11",
upgrade print and iteminfo version for drop 15
upgrade print and iteminfo version for drop 15
d9f91e1ca25f9987105f712b35b880402edf3571
--- package.json @@ -88,7 +88,7 @@ "@walmart/allspark-utils": "6.9.0", "@walmart/amp-mini-app": "1.2.10", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.33.40", + "@walmart/ask-sam-mini-app": "1.34.12", "@walmart/associate-listening-mini-app": "1.2.39", "@walmart/attendance-mini-app": "3.174.5", "@walmart/avp-feature-app": "0.25.32", --- yarn.lock @@ -7662,13 +7662,12 @@ __metadata: languageName: node linkType: hard -"@walmart/ask-sam-mini-app@npm:1.33.40": - version: 1.33.40 - resolution: "@walmart/ask-sam-mini-app@npm:1.33.40::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fask-sam-mini-app%2F-%2F%40walmart%2Fask-sam-mini-app-1.33.40.tgz" +"@walmart/ask-sam-mini-app@npm:1.34.12": + version: 1.34.12 + resolution: "@walmart/ask-sam-mini-app@npm:1.34.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fask-sam-mini-app%2F-%2F%40walmart%2Fask-sam-mini-app-1.34.12.tgz" dependencies: apisauce: "npm:^1.1.2" numeral: "npm:^2.0.6" - react-native-markdown-display: "npm:^7.0.2" reduxsauce: "npm:^1.2.0" peerDependencies: "@apollo/client": ">=3.7.3" @@ -7679,7 +7678,6 @@ __metadata: "@walmart/allspark-foundation": "*" "@walmart/ask-sam-chat-components": ">=0.2.9" "@walmart/gtp-shared-components": ">=2.2.1" - "@walmart/redux-store": ">=3.1.4" "@walmart/schedule-mini-app": "*" "@walmart/ui-components": ">=1.5" "@walmart/wfm-ui": "*" @@ -7709,7 +7707,7 @@ __metadata: react-native-wm-voice-text: ">=0.3" reselect: ">=4" victory-native: ">=36.5" - checksum: 10c0/db3a379545acad14e4cb88202d16236094e4e07b8483637e7b6724454a199d6f47445e668a4dcf0aff2b5baccbb04d6b782b2a4e8e7d7cd9d84e422596f1dcfc + checksum: 10c0/a1b7c6c89ff65895df470879181cb7b4f22cb9a941c293a0adda3f78434abc201e672adb8e4d7f68aadae7a3789f9cd0634616ffe1181204c3d5447309082a3f languageName: node linkType: hard @@ -8679,7 +8677,7 @@ __metadata: "@walmart/allspark-utils": "npm:6.9.0" "@walmart/amp-mini-app": "npm:1.2.10" "@walmart/ask-sam-chat-components": "npm:^0.2.7" - "@walmart/ask-sam-mini-app": "npm:1.33.40" + "@walmart/ask-sam-mini-app": "npm:1.34.12" "@walmart/associate-listening-mini-app": "npm:1.2.39" "@walmart/attendance-mini-app": "npm:3.174.5" "@walmart/avp-feature-app": "npm:0.25.32" @@ -13311,13 +13309,6 @@ __metadata: languageName: node linkType: hard -"entities@npm:~2.0.0": - version: 2.0.3 - resolution: "entities@npm:2.0.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fentities%2F-%2Fentities-2.0.3.tgz" - checksum: 10c0/81463fde5f1e4432df6faa65afa00021f3979ac8387f81d3d111beeb08179e626130a4b7488e8c3cc3d74e0d04e99d3033ff7db80e05f4a1e961b5e1efe17731 - languageName: node - linkType: hard - "env-editor@npm:^0.4.1": version: 0.4.2 resolution: "env-editor@npm:0.4.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fenv-editor%2F-%2Fenv-editor-0.4.2.tgz" @@ -18124,15 +18115,6 @@ __metadata: languageName: node linkType: hard -"linkify-it@npm:^2.0.0": - version: 2.2.0 - resolution: "linkify-it@npm:2.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Flinkify-it%2F-%2Flinkify-it-2.2.0.tgz" - dependencies: - uc.micro: "npm:^1.0.1" - checksum: 10c0/640f926fa71d46f9451b4dc999c94b2dcad920abf5fe174a85f120b420cbb34b8f950e251846ed73db715ec9aaadadf1f2482d27088dddd21b1c84761f6a0b5a - languageName: node - linkType: hard - "linkify-it@npm:^3.0.2": version: 3.0.3 resolution: "linkify-it@npm:3.0.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Flinkify-it%2F-%2Flinkify-it-3.0.3.tgz" @@ -18530,21 +18512,6 @@ __metadata: languageName: node linkType: hard -"markdown-it@npm:^10.0.0": - version: 10.0.0 - resolution: "markdown-it@npm:10.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmarkdown-it%2F-%2Fmarkdown-it-10.0.0.tgz" - dependencies: - argparse: "npm:^1.0.7" - entities: "npm:~2.0.0" - linkify-it: "npm:^2.0.0" - mdurl: "npm:^1.0.1" - uc.micro: "npm:^1.0.5" - bin: - markdown-it: bin/markdown-it.js - checksum: 10c0/7b2876599adb4c8bed0b45030db835d6e3e352e20b1c26624975d1b0f6d9ef54bbf6b63d29cb31b0cebb65b5ad7300aad063dc5d586a03c3745345bfc945c8fd - languageName: node - linkType: hard - "marky@npm:^1.2.2": version: 1.3.0 resolution: "marky@npm:1.3.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmarky%2F-%2Fmarky-1.3.0.tgz" @@ -21257,15 +21224,6 @@ __metadata: languageName: node linkType: hard -"react-native-fit-image@npm:^1.5.5": - version: 1.5.5 - resolution: "react-native-fit-image@npm:1.5.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-fit-image%2F-%2Freact-native-fit-image-1.5.5.tgz" - dependencies: - prop-types: "npm:^15.5.10" - checksum: 10c0/04d1cb35f2acacda593c80f2d9845f7dc0ed5e0e1fb62043ba5351f914162dcd92f1ae98e80ebf9752f6b4131b1634f6a9ac90e9c649f30b5591f3187d99811f - languageName: node - linkType: hard - "react-native-fs@npm:^2.18.0": version: 2.20.0 resolution: "react-native-fs@npm:2.20.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-fs%2F-%2Freact-native-fs-2.20.0.tgz" @@ -21409,21 +21367,6 @@ __metadata: languageName: node linkType: hard -"react-native-markdown-display@npm:^7.0.2": - version: 7.0.2 - resolution: "react-native-markdown-display@npm:7.0.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-markdown-display%2F-%2Freact-native-markdown-display-7.0.2.tgz" - dependencies: - css-to-react-native: "npm:^3.0.0" - markdown-it: "npm:^10.0.0" - prop-types: "npm:^15.7.2" - react-native-fit-image: "npm:^1.5.5" - peerDependencies: - react: ">=16.2.0" - react-native: ">=0.50.4" - checksum: 10c0/b90b75401340cd79c42e07e6e8961551e8b98acfbc53bc0b651174aea2a86b92430be767da7c813e54b08e7bbd8af6c09dbeb4f9369d925984979cc28b6ba8fb - languageName: node - linkType: hard - "react-native-mask-input@npm:^1.2.3": version: 1.2.3 resolution: "react-native-mask-input@npm:1.2.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-mask-input%2F-%2Freact-native-mask-input-1.2.3.tgz" @@ -24708,7 +24651,7 @@ __metadata: languageName: node linkType: hard -"uc.micro@npm:^1.0.1, uc.micro@npm:^1.0.5": +"uc.micro@npm:^1.0.1": version: 1.0.6 resolution: "uc.micro@npm:1.0.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fuc.micro%2F-%2Fuc.micro-1.0.6.tgz" checksum: 10c0/9bde2afc6f2e24b899db6caea47dae778b88862ca76688d844ef6e6121dec0679c152893a74a6cfbd2e6fde34654e6bd8424fee8e0166cdfa6c9ae5d42b8a17b
chore(sidekick): remove deprecated library & moving assets to CDN (#4718)
chore(sidekick): remove deprecated library & moving assets to CDN (#4718) Co-authored-by: j0z09av <j0z09av@homeoffice.wal-mart.com> Co-authored-by: Sowmya Munaganuri <Sowmya.Munaganuri+walmart@walmart.com> Co-authored-by: Talia Andrews - t0a07tn <Talia.Andrews@walmart.com> Co-authored-by: Sowmya Munaganuri <Sowmya.Munaganuri@walmart.com>
01c6a55c23555ae526b389015e4ee655890bc1cf
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.11-alpha.1", + "version": "1.0.11-alpha.2", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Update version
Update version
1b5b77024514fea4b545d6dc502b6438443c0e6f
--- __tests__/sumo/SumoSagasTest.ts @@ -9,6 +9,7 @@ import { takeLeading, fork, retry, + delay, } from 'redux-saga/effects'; import WmNotification, { Domain, @@ -523,6 +524,7 @@ describe('onMiniAppReplay', () => { NotificationRef.startupNotification = startupNotification; const iterator = onMiniAppReplay(); + expect(iterator.next().value).toEqual(delay(10)); expect(iterator.next().value).toEqual( call( WmNotification.runListeners,
updating test
updating test
f3054d37c938c65ee30f41c2762a9a17a1d708ae
--- src/containers/ChatInput/AudioPlayback.tsx @@ -55,20 +55,15 @@ export const AudioPlayback = (props: { } }, [playerStatus, playbackStatusUpdate]); - // Unload audio once component is unmounted + // Track component mount state useEffect(() => { - // Set mounted flag isMountedRef.current = true; return () => { - // Mark as unmounted isMountedRef.current = false; - // Ensure player is cleaned up - if (player) { - player.remove(); - } + // The useAudioPlayer hook from expo-audio manages the player lifecycle internally. }; - }, [player]); + }, []); useEffect(() => { if (!!currentPlaying && currentPlaying !== audio.uri) { --- src/notification/notification.ts @@ -31,14 +31,11 @@ export const triggerSoundFeedback = async () => { require('../assets/media/corevoice_src_main_res_raw_textingsound.wav') ); - // Listen for when playback finishes to clean up - player.addListener('playbackStatusUpdate', (status) => { - if (status.didJustFinish) { - player.remove(); - } - }); - + // Play the audio - expo-audio will handle cleanup automatically + // when the audio finishes or when the player is garbage collected player.play(); + + // The expo-audio library manages player lifecycle internally } catch (e) { logger.error('audio error', { message: `'error while loading and playing audio from notification: ${e}'`,
fix(ui): audio playback remove error
fix(ui): audio playback remove error
df2bc1fda09f01423fe32871043c8fadca5f8911
--- Gemfile.lock @@ -7,8 +7,8 @@ GEM artifactory (3.0.15) atomos (0.1.3) aws-eventstream (1.1.1) - aws-partitions (1.467.0) - aws-sdk-core (3.114.2) + aws-partitions (1.468.0) + aws-sdk-core (3.114.3) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.239.0) aws-sigv4 (~> 1.1) @@ -199,7 +199,7 @@ GEM xcpretty (~> 0.2, >= 0.0.7) PLATFORMS - ruby + universal-darwin-20 DEPENDENCIES fastlane
updating gem lock file
updating gem lock file
07379095df5ddc8faf1544c5ce4708b09488446c
--- __tests__/auth/LoginErrorScreen/__snapshots__/TwoFactorGuideScreenTest.tsx.snap @@ -1,110 +1,112 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`shows two factor screen 1`] = ` -<View - style={ +<RCTScrollView + contentContainerStyle={ { "backgroundColor": "#FFFFFF", - "height": "100%", + "flexGrow": 1, "padding": 16, } } > - <Body - UNSAFE_style={ - { - "marginBottom": 16, - "marginTop": 8, - } - } - > - loginErrorGuide.twoStepTitleDesc - </Body> - <Heading - UNSAFE_style={ - { - "fontSize": 16, - } - } - size="small" - > - loginErrorGuide.whatIsTwoStepTitle - </Heading> - <Body - UNSAFE_style={ - { - "paddingBottom": 16, - "paddingTop": 4, - } - } - > - loginErrorGuide.whatIsTwoStepDesc - </Body> - <Heading - UNSAFE_style={ - { - "fontSize": 16, + <View> + <Body + UNSAFE_style={ + { + "marginBottom": 16, + "marginTop": 8, + } } - } - size="small" - > - loginErrorGuide.whyTwoStepTitle - </Heading> - <Body - UNSAFE_style={ - { - "paddingBottom": 16, - "paddingTop": 4, + > + loginErrorGuide.twoStepTitleDesc + </Body> + <Heading + UNSAFE_style={ + { + "fontSize": 16, + } } - } - > - loginErrorGuide.whyTwoStepDesc - </Body> - <Heading - UNSAFE_style={ - { - "fontSize": 16, + size="small" + > + loginErrorGuide.whatIsTwoStepTitle + </Heading> + <Body + UNSAFE_style={ + { + "paddingBottom": 16, + "paddingTop": 4, + } } - } - size="small" - > - loginErrorGuide.enrollTwoStep - </Heading> - <View - style={ - { - "paddingBottom": 16, - "paddingTop": 4, + > + loginErrorGuide.whatIsTwoStepDesc + </Body> + <Heading + UNSAFE_style={ + { + "fontSize": 16, + } } - } - > - <Trans - components={ + size="small" + > + loginErrorGuide.whyTwoStepTitle + </Heading> + <Body + UNSAFE_style={ { - "bold": <Body - weight="700" - />, + "paddingBottom": 16, + "paddingTop": 4, } } - defaults="loginErrorGuide.twoStepDesc" - parent="Body" - /> - </View> - <Body> - loginErrorGuide.linkDescZero - - <Link + > + loginErrorGuide.whyTwoStepDesc + </Body> + <Heading UNSAFE_style={ { - "color": "#0071dc", + "fontSize": 16, } } - onPress={[Function]} - testID="link_button" + size="small" > - https://one.walmart.com/2sv - </Link> - loginErrorGuide.linkDescOne - </Body> -</View> + loginErrorGuide.enrollTwoStep + </Heading> + <View + style={ + { + "paddingBottom": 16, + "paddingTop": 4, + } + } + > + <Trans + components={ + { + "bold": <Body + weight="700" + />, + } + } + defaults="loginErrorGuide.twoStepDesc" + parent="Body" + /> + </View> + <Body> + loginErrorGuide.linkDescZero + + <Link + UNSAFE_style={ + { + "color": "#0071dc", + } + } + onPress={[Function]} + testID="link_button" + > + https://one.walmart.com/2sv + </Link> + loginErrorGuide.linkDescOne + </Body> + </View> +</RCTScrollView> `; --- src/auth/LoginErrorScreen/TwoFactorGuideScreen.tsx @@ -1,7 +1,7 @@ import {StackScreenProps} from '@react-navigation/stack'; import {RootStackMap} from '../../navigation/types'; import React, {FC, useEffect} from 'react'; -import {View, StyleSheet, Linking} from 'react-native'; +import {View, StyleSheet, Linking, ScrollView} from 'react-native'; import {Body, colors, Heading, Link} from '@walmart/gtp-shared-components'; import {SSO_APP} from '../../types/telemetryConstants'; import {useTelemetry} from '@walmart/core-services/Telemetry'; @@ -16,9 +16,9 @@ import {Trans} from 'react-i18next'; const styles = StyleSheet.create({ container: { - height: '100%', backgroundColor: colors.white, padding: 16, + flexGrow: 1, }, title: { fontSize: 16, @@ -59,7 +59,7 @@ export const TwoFactorGuideScreen: FC< }; return ( - <View style={styles.container}> + <ScrollView contentContainerStyle={styles.container}> <Body UNSAFE_style={styles.titleDesc}> {translate('loginErrorGuide.twoStepTitleDesc')} </Body> @@ -97,6 +97,6 @@ export const TwoFactorGuideScreen: FC< </Link> {translate('loginErrorGuide.linkDescOne')} </Body> - </View> + </ScrollView> ); };
added scroll view
added scroll view
f8ce87b94bb6272a246ad2fbd6ced32d007c23dc
--- lerna.json @@ -1,5 +1,5 @@ { - "version": "5.0.0-beta.15", + "version": "5.0.0-beta.14", "npmClient": "npm", "changelogPreset": "angular", "command": {
chore: correcting version
chore: correcting version
004229125ccbd71de2f30058296eaef867328971
--- src/components/TeamList.tsx @@ -204,7 +204,7 @@ const StoreTeamItem = () => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [associateData.data?.getDailyRoster]); const clockedInCount = - (rosterData as any)?.filter(associateIsClockedIn)?.length ?? 0; + (rosterData as any)?.filter(associateIsClockedIn)?.length ?? 0; const startStoreText = useStartStoreText(); --- src/components/TeamList.tsx @@ -204,7 +204,7 @@ const StoreTeamItem = () => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [associateData.data?.getDailyRoster]); const clockedInCount = - (rosterData as any)?.filter(associateIsClockedIn)?.length ?? 0; + (rosterData as any)?.filter(associateIsClockedIn)?.length ?? 0; const startStoreText = useStartStoreText();
fix lint
fix lint
37daef10b4f26aee0e9ecf793707330e752ee3ed
--- app.config.US.ts @@ -7,11 +7,11 @@ import pkg from "./package.json"; */ const AppVariant = { select: < - T extends { [key in NonNullable<typeof process.env['APP_VARIANT']>]?: any } & { default: any } + T extends { [key in NonNullable<typeof process.env['EXPO_PUBLIC_APP_VARIANT']>]?: any } & { default: any } >( config: T ): T["default"] => { - return config[process.env.APP_VARIANT!] || config.default; + return config[process.env.EXPO_PUBLIC_APP_VARIANT!] || config.default; } };
fix: app variant select using incorrect env value
fix: app variant select using incorrect env value
86ecf450764c7b226e96a1cbe6acd85b628587ec
--- .looper.multibranch.yml @@ -514,7 +514,6 @@ flows: then: - echo "Skipping uploading AppStore/PlayStore builds to MS App Center and publishing to Slack." else: - - call: setup-fastlane - call: appcenter-upload # uploads iOS and android builds to MS App Center
removing fastlane setup step
removing fastlane setup step
66eb33081b1798fdd779d6f56fb3f2e6f26890a5
--- __tests__/navigation/AssociateHallwayNav/DrawerNavTest.tsx @@ -2,13 +2,12 @@ import React, {useState} from 'react'; import {Dimensions, ScaledSize} from 'react-native'; import {useDispatch, useSelector} from 'react-redux'; import {create} from 'react-test-renderer'; -import {ActivityMonitor, DrawerButton} from '@walmart/ui-components'; +import {ActivityMonitor} from '@walmart/ui-components'; import { DrawerNav, renderSideMenuContent, } from '../../../src/navigation/AssociateHallwayNav/DrawerNav'; -import {PinAccessActionCreators} from '../../../src/PinAccess/PinAccessRedux'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; jest.mock('react', () => ({
chore: lint fix
chore: lint fix
93bcf52c708ddba1b19448e620784aa12ebf872b
--- packages/allspark-foundation-hub/src/Store/Utils/utils.ts @@ -55,11 +55,31 @@ export const findTeamById = ( return teamList.find((team) => team.teamId === teamPreference); }; +const createTeamMap = (teamList: TeamSwitcherTypes[]) : Map<string, TeamSwitcherTypes> => { + const teamMap: Map<string, TeamSwitcherTypes> = new Map(); + teamList.forEach((team) => { + teamMap.set(team.teamLabel, team); + }); + return teamMap; +} + +let teamMap: Map<string, TeamSwitcherTypes> | null = null + +/** + * Finds the team by label + * + * @param teamList given switchers + * @param teamPreference given label + * @returns the team object if found + */ export const findTeamByLabel = ( teamList: TeamSwitcherTypes[], teamPreference: string ) => { - return teamList.find((team) => team.teamLabel === teamPreference); + if (!teamMap) { + teamMap = createTeamMap(teamList); + } + return teamMap.get(teamPreference); }; /**
pr comments
pr comments
acc12f72219e6a153dbfa76f1d7768aa32b4fcb5
--- __tests__/whatsNew/WhatsNewItemTest.tsx @@ -1,11 +1,15 @@ import React from 'react'; import {create} from 'react-test-renderer'; +import {useNavigation} from '@react-navigation/native'; import {WhatsNewItem} from '../../src/whatsNew/WhatsNewItem'; jest.mock('../../src/transforms/language', () => ({ getValueForCurrentLanguage: (value) => value?.['en-US'], })); +// eslint-disable-next-line react-hooks/rules-of-hooks +const navigation = useNavigation(); + const baseProps = { image: 'walkieIllustration', title: 'My Team', @@ -13,9 +17,46 @@ const baseProps = { }; describe('WhatsNewItem', () => { + afterEach(jest.clearAllMocks); + const component = create(<WhatsNewItem {...baseProps} />); it('matches snapshot', () => { expect(component.toJSON()).toMatchSnapshot(); }); + + it('handles navigation link', () => { + const newProps = { + ...baseProps, + link: { + title: 'Go Somewhere!', + type: 'NAVIGATE', + data: {screen: 'Screen1'}, + }, + }; + + component.update(<WhatsNewItem {...newProps} />); + expect(component.toJSON()).toMatchSnapshot(); + + const LinkButton = component.root.findByProps({testID: 'itemLink'}); + LinkButton.props.onPress(); + expect(navigation.navigate).toHaveBeenCalledWith(newProps.link.data); + }); + + it('handles unexpected link type', () => { + const newProps = { + ...baseProps, + link: { + title: 'Do Something!', + type: 'UNEXPECTED', + data: {specal: true}, + }, + }; + + component.update(<WhatsNewItem {...newProps} />); + + const LinkButton = component.root.findByProps({testID: 'itemLink'}); + LinkButton.props.onPress(); + expect(navigation.navigate).not.toHaveBeenCalled(); + }); }); --- __tests__/whatsNew/__snapshots__/WhatsNewItemTest.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`WhatsNewItem matches snapshot 1`] = ` +exports[`WhatsNewItem handles navigation link 1`] = ` <View style={ Object { @@ -28,6 +28,7 @@ exports[`WhatsNewItem matches snapshot 1`] = ` Object { "alignItems": "flex-start", "flex": 1, + "flexDirection": "column", } } > @@ -51,7 +52,98 @@ exports[`WhatsNewItem matches snapshot 1`] = ` "marginTop": 8, } } + > + + <View + accessible={true} + collapsable={false} + focusable={true} + onClick={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} + style={ + Object { + "opacity": 1, + } + } + testID="itemLink" + > + <Text + style={ + Object { + "color": "#2e2f32", + "fontFamily": "Bogle-Regular", + "fontSize": 14, + "lineHeight": 20, + "textDecorationLine": "underline", + } + } + /> + </View> + </Text> + </View> +</View> +`; + +exports[`WhatsNewItem matches snapshot 1`] = ` +<View + style={ + Object { + "flexDirection": "row", + "paddingBottom": 24, + } + } +> + <Image + source={ + Object { + "testUri": "../../../src/images/assets/ask-sam-illustration.png", + } + } + style={ + Object { + "height": 64, + "marginRight": 25, + "width": 64, + } + } + /> + <View + style={ + Object { + "alignItems": "flex-start", + "flex": 1, + "flexDirection": "column", + } + } + > + <Text + style={ + Object { + "color": "#2e2f32", + "fontFamily": "Bogle-Bold", + "fontSize": 16, + "lineHeight": 24, + } + } /> + <Text + style={ + Object { + "color": "#2e2f32", + "fontFamily": "Bogle-Regular", + "fontSize": 14, + "lineHeight": 20, + "marginTop": 8, + } + } + > + + </Text> </View> </View> `; --- __tests__/whatsNew/__snapshots__/utilsTest.ts.snap @@ -28,6 +28,7 @@ exports[`renderWhatsNewItem 1`] = ` Object { "alignItems": "flex-start", "flex": 1, + "flexDirection": "column", } } > @@ -51,7 +52,9 @@ exports[`renderWhatsNewItem 1`] = ` "marginTop": 8, } } - /> + > + + </Text> </View> </View> `; --- src/whatsNew/WhatsNewItem.tsx @@ -1,11 +1,11 @@ import React from 'react'; import {Image, View, Text, TouchableOpacity} from 'react-native'; +import {useNavigation} from '@react-navigation/native'; import {getValueForCurrentLanguage} from '../transforms/language'; import {Images} from '../images'; import {WhatsNewConfig} from './types'; import {WhatsNewItemStyles as styles} from './styles'; -import {useNavigation} from '@react-navigation/native'; export const WhatsNewItem = (props: WhatsNewConfig) => { const {title, text, image, link} = props; @@ -13,12 +13,8 @@ export const WhatsNewItem = (props: WhatsNewConfig) => { const ImageSource = Images[image] || Images.AskSamIllustration; const onLinkPress = () => { - switch (link.type) { - case 'NAVIGATE': - navigation.navigate(link.data); - break; - default: - break; + if (link!.type === 'NAVIGATE') { + navigation.navigate(link!.data); } }; @@ -34,7 +30,7 @@ export const WhatsNewItem = (props: WhatsNewConfig) => { <Text style={styles.itemSubtitle}> {getValueForCurrentLanguage(text)}{' '} {!!link && ( - <TouchableOpacity onPress={onLinkPress}> + <TouchableOpacity testID='itemLink' onPress={onLinkPress}> <Text style={styles.itemLink}> {getValueForCurrentLanguage(link.title)} </Text> --- src/whatsNew/types.ts @@ -9,7 +9,7 @@ export type RecordText = string | TranslationConfig; export type RecordLink = { title: RecordText; - type: 'NAVIGATE'; + type: string; data: any; }; @@ -24,7 +24,7 @@ export interface WhatsNewConfig { image: string; title: RecordText; text: RecordText; - link: RecordLink; + link?: RecordLink; } export interface WhatsNewSection extends SectionListData<WhatsNewConfig> {
updating whats new item changes for coverage
updating whats new item changes for coverage
e592e8accc4561189904dca78fc16e9712bd910d
--- package.json @@ -87,7 +87,7 @@ "@walmart/allspark-utils": "6.9.0", "@walmart/amp-mini-app": "1.2.10", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.32.21", + "@walmart/ask-sam-mini-app": "1.33.40", "@walmart/associate-listening-mini-app": "1.2.37", "@walmart/attendance-mini-app": "3.174.2", "@walmart/avp-feature-app": "0.25.32", --- yarn.lock @@ -7645,9 +7645,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ask-sam-mini-app@npm:1.32.21": - version: 1.32.21 - resolution: "@walmart/ask-sam-mini-app@npm:1.32.21::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fask-sam-mini-app%2F-%2F%40walmart%2Fask-sam-mini-app-1.32.21.tgz" +"@walmart/ask-sam-mini-app@npm:1.33.40": + version: 1.33.40 + resolution: "@walmart/ask-sam-mini-app@npm:1.33.40::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fask-sam-mini-app%2F-%2F%40walmart%2Fask-sam-mini-app-1.33.40.tgz" dependencies: apisauce: "npm:^1.1.2" numeral: "npm:^2.0.6" @@ -7668,6 +7668,7 @@ __metadata: "@walmart/wfm-ui": "*" axios: ">=1.2.6" expo: 50.0.17 + expo-av: ">=13.10.6" expo-linear-gradient: ">=12.7.2" lodash: ">=4.17" moment: ">=2.26" @@ -7691,7 +7692,7 @@ __metadata: react-native-wm-voice-text: ">=0.3" reselect: ">=4" victory-native: ">=36.5" - checksum: 10c0/c3df9e7dab24074f27078988efe4d43e7f589cbe05ca9ac2d9efdab93ede31f08b19a02337440c8b34ca148d8156811c713dc0d4c7e45f137ebcbe52a82b54d5 + checksum: 10c0/db3a379545acad14e4cb88202d16236094e4e07b8483637e7b6724454a199d6f47445e668a4dcf0aff2b5baccbb04d6b782b2a4e8e7d7cd9d84e422596f1dcfc languageName: node linkType: hard @@ -8638,7 +8639,7 @@ __metadata: "@walmart/allspark-utils": "npm:6.9.0" "@walmart/amp-mini-app": "npm:1.2.10" "@walmart/ask-sam-chat-components": "npm:^0.2.7" - "@walmart/ask-sam-mini-app": "npm:1.32.21" + "@walmart/ask-sam-mini-app": "npm:1.33.40" "@walmart/associate-listening-mini-app": "npm:1.2.37" "@walmart/attendance-mini-app": "npm:3.174.2" "@walmart/avp-feature-app": "npm:0.25.32"
feat(asksam): SMBLV-9055 upgrade scanner to 0.16.0 (#4630)
feat(asksam): SMBLV-9055 upgrade scanner to 0.16.0 (#4630) Co-authored-by: j0z09av <j0z09av@homeoffice.wal-mart.com> Co-authored-by: Sowmya Munaganuri <Sowmya.Munaganuri@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
1f31f9f8ddb16936bdde9dbd6d88e4d293f4b70a
--- package.json @@ -96,7 +96,7 @@ "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/react-native-sumo-sdk": "2.1.0", "@walmart/redux-store": "1.1.25", - "@walmart/refrigeration-alarms-mini-app": "1.22.0", + "@walmart/refrigeration-alarms-mini-app": "1.23.0", "@walmart/schedule-mini-app": "0.10.0", "@walmart/settings-mini-app": "1.3.9", "@walmart/taskit-mini-app": "0.143.0-rc.0",
Version bump
Version bump
92e07ec9c251123864e70e696ee71515e52aafab
--- package-lock.json @@ -117,7 +117,7 @@ "react-native-flipper": "0.182.0", "react-native-fs": "^2.20.0", "react-native-geolocation-service": "^5.3.1", - "react-native-gesture-handler": "^2.9.0", + "react-native-gesture-handler": "2.9.0", "react-native-get-random-values": "^1.8.0", "react-native-haptic-feedback": "^1.14.0", "react-native-html-parser": "^0.1.0", --- package.json @@ -159,7 +159,7 @@ "react-native-flipper": "0.182.0", "react-native-fs": "^2.20.0", "react-native-geolocation-service": "^5.3.1", - "react-native-gesture-handler": "^2.9.0", + "react-native-gesture-handler": "2.9.0", "react-native-get-random-values": "^1.8.0", "react-native-haptic-feedback": "^1.14.0", "react-native-html-parser": "^0.1.0",
removed carat from gesture handler.
removed carat from gesture handler.
ff51e5a8df6c965c0986c0962b95bfbf9894ba51
--- src/redux/selectors.ts @@ -37,13 +37,21 @@ export const getTextingAppConfigData = (state: GlobalState) => export const codeOfConductLink = createSelector( [getTextingAppConfigData], - (state) => state?.codeOfConductLink, + (state) => state?.codeOfConductLink ?? CCMFallbacks.codeOfConductLink, ); export const pushToTalkEnabled = createSelector( [getTextingAppConfigData], (state) => - state?.pushToTalkEnabled?.toString()?.toLowerCase() === 'true' ?? false, + state?.pushToTalkEnabled?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.pushToTalkEnabled, +); + +export const enableMessageButton = createSelector( + [getTextingAppConfigData], + (state) => + state?.enableMessageButton?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.enableMessageButton, ); export const teamLeadJobDescriptions = createSelector( --- src/redux/selectors.ts @@ -37,13 +37,21 @@ export const getTextingAppConfigData = (state: GlobalState) => export const codeOfConductLink = createSelector( [getTextingAppConfigData], - (state) => state?.codeOfConductLink, + (state) => state?.codeOfConductLink ?? CCMFallbacks.codeOfConductLink, ); export const pushToTalkEnabled = createSelector( [getTextingAppConfigData], (state) => - state?.pushToTalkEnabled?.toString()?.toLowerCase() === 'true' ?? false, + state?.pushToTalkEnabled?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.pushToTalkEnabled, +); + +export const enableMessageButton = createSelector( + [getTextingAppConfigData], + (state) => + state?.enableMessageButton?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.enableMessageButton, ); export const teamLeadJobDescriptions = createSelector(
updating selectors
updating selectors
e993e03313f8c494be9bc37316a4adfdc75beb41
--- __tests__/harness/utils.ts @@ -2,9 +2,3 @@ import {waitFor} from '@testing-library/react-native'; export const finishPendingRequests = async () => await waitFor(() => new Promise((res) => setTimeout(res, 0))); - -//TODO: Strong check will be to parse string to check for ending </Text> tag -export const queryByTextInSnapshot = (component: any, text: string) => { - const snapshot = JSON.stringify(component.toJSON()); - return snapshot.includes(text); -};
feat: remove unused test util
feat: remove unused test util
b211e43d2e3d95458c704cefeb29a8781b3edf5c
--- container/ReactotronConfig.js @@ -9,7 +9,7 @@ const reactotron = Reactotron.configure() // controls connection & communication // Add Reactotron enhancer for redux integration -ReduxModule.addEnhancers([reactotron.createEnhancer()]); +ReduxModule.manager.addEnhancers([reactotron.createEnhancer()]); // Custom Command to print Apollo Cache Reactotron.onCustomCommand({
fix: update env and logger modules
fix: update env and logger modules
7af7e5b63b2edb74e210d86b207f561338a8fd5e
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.41.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.40.0...v2.41.0) (2025-06-02) + + +### Features + +* **ui:** updating version ([11ed19e](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/11ed19eacf97608f26f0f2a8f5eb7aa64816504b)) + # [2.40.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.39.0...v2.40.0) (2025-05-29) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.40.0", + "version": "2.41.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 2.41.0 [skip ci]
chore(release): 2.41.0 [skip ci] # [2.41.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.40.0...v2.41.0) (2025-06-02) ### Features * **ui:** updating version ([11ed19e](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/11ed19eacf97608f26f0f2a8f5eb7aa64816504b))
452d06f26d7779d0465572af04d90f7471b41c4d
--- src/components/MessageList.tsx @@ -1,5 +1,5 @@ -import {FlatList, ListRenderItem, StyleSheet, AccessibilityInfo} from 'react-native'; -import React, {useState, useEffect} from 'react'; +import {FlatList, ListRenderItem, StyleSheet} from 'react-native'; +import React, {useRef, useEffect} from 'react'; import {Associate, LocalMessage} from '../common/types'; import {MessageTimeSectionHeader} from './MessageTimeSectionHeader'; import {Message} from '../containers/Message'; @@ -27,18 +27,11 @@ export const MessageList = ({ allRosterAssociates, }: MessageListProps) => { const channelData = useChannelData(channelPath); - const [isScreenReaderEnabled, setIsScreenReaderEnabled] = useState(false); + const flatListRef = useRef<FlatList>(null); useEffect(() => { - AccessibilityInfo.isScreenReaderEnabled().then(setIsScreenReaderEnabled); - - const subscription = AccessibilityInfo.addEventListener( - 'screenReaderChanged', - setIsScreenReaderEnabled - ); - - return () => subscription?.remove(); - }, []); + flatListRef.current?.scrollToEnd({ animated: false }); + }, [messages.length]); const renderItem: ListRenderItem<LocalMessage | string> = ({ item, index, @@ -46,15 +39,11 @@ export const MessageList = ({ item: LocalMessage | string; index: number; }) => { - // Calculate accessibility sort order (reverse for screen readers) - const accessibilitySortOrder = isScreenReaderEnabled ? messages.length - index : undefined; - if (typeof item === 'string') { return ( <MessageTimeSectionHeader time={item} - isFirstMessage={index === messages.length - 1} - accessibilitySortOrder={accessibilitySortOrder} + isFirstMessage={index === 0} /> ); } @@ -66,14 +55,13 @@ export const MessageList = ({ index={index} isLoading={isLoading} allRosterAssociates={allRosterAssociates} - accessibilitySortOrder={accessibilitySortOrder} /> ); }; return ( <FlatList - inverted={true} + ref={flatListRef} data={messages} renderItem={renderItem} onEndReachedThreshold={0.2}
fix(wmconnect): implement programmatic scrolling for ADA compliance (SMDV-7820)
fix(wmconnect): implement programmatic scrolling for ADA compliance (SMDV-7820)
1433bb64b503001dc9ff40b08b163375ca730422
--- __tests__/components/SearchHeaderTest.tsx @@ -18,10 +18,6 @@ jest.mock('react-redux', () => ({ useSelector: jest.fn(), useDispatch: jest.fn(), })); -jest.mock('React', () => ({ - ...jest.requireActual('React'), - useEffect: jest.fn(), -})); const onPressMock = jest.fn();
build fix
build fix
1c3d1c74e962504a152be642a3005585e41716fa
--- packages/allspark-foundation/src/Auth/types.ts @@ -80,6 +80,7 @@ export type AuthResult = { export interface AuthError extends Error { code: string; + category?: string; } /**
fix: category missing from auth error type
fix: category missing from auth error type
513f451b28150bcad32da95ca2ba2dc91e50b1f4
--- __tests__/screens/MessagesScreen/__snapshots__/OneToOneChatTests.tsx.snap @@ -507,7 +507,6 @@ exports[`Messages Screen One To One Chat should load list empty state when no me } > <Image - accessibilityLabel="error icon" accessibilityRole="image" source={ { @@ -1344,7 +1343,6 @@ exports[`Messages Screen One To One Chat should send a text message and push not } > <Image - accessibilityLabel="error icon" accessibilityRole="image" source={ {
test: snapshot update
test: snapshot update
eb09647a26cdb9ff2bd225213dd2a94a44878c9e
--- packages/allspark-foundation/src/Site/types.ts @@ -90,7 +90,7 @@ export type Site = { division: Division; timeZone: TimeZone; currency: Currency; - language: Language; + language?: Language; specialHours: SpecialHour[]; isStoreOpen: boolean; hoursOpen: string;
chore: fixing type for site
chore: fixing type for site
f69a2c82ffc7891272b797b27054a3b92dad65b4
--- package.json @@ -97,7 +97,7 @@ "@walmart/impersonation-mini-app": "1.10.0", "@walmart/ims-print-services-ui": "1.2.2", "@walmart/inbox-mini-app": "0.81.3", - "@walmart/iteminfo-mini-app": "^5.3.4", + "@walmart/iteminfo-mini-app": "5.3.4", "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.36", "@walmart/metrics-mini-app": "0.9.38",
remove the caret for iteminfo mini app version
remove the caret for iteminfo mini app version
25c4942e22101a36ec8e60157dd38cd640db7d56
--- package.json @@ -271,7 +271,7 @@ "pre-push": "run-p solidarity coverage" } }, - "packageManager": "yarn@4.4.0", + "packageManager": "yarn@4.1.1", "engines": { "node": ">=18" } --- yarn.lock @@ -22955,16 +22955,7 @@ __metadata: languageName: node linkType: hard -"use-sync-external-store@npm:1.2.2": - version: 1.2.2 - resolution: "use-sync-external-store@npm:1.2.2" - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/23b1597c10adf15b26ade9e8c318d8cc0abc9ec0ab5fc7ca7338da92e89c2536abd150a5891bf076836c352fdfa104fc7231fb48f806fd9960e0cbe03601abaf - languageName: node - linkType: hard - -"use-sync-external-store@npm:^1.0.0": +"use-sync-external-store@npm:1.2.0, use-sync-external-store@npm:^1.0.0": version: 1.2.0 resolution: "use-sync-external-store@npm:1.2.0" peerDependencies: @@ -24133,10 +24124,10 @@ __metadata: linkType: hard "zustand@npm:^4.3.9": - version: 4.5.5 - resolution: "zustand@npm:4.5.5" + version: 4.5.2 + resolution: "zustand@npm:4.5.2" dependencies: - use-sync-external-store: "npm:1.2.2" + use-sync-external-store: "npm:1.2.0" peerDependencies: "@types/react": ">=16.8" immer: ">=9.0.6" @@ -24148,6 +24139,5 @@ __metadata: optional: true react: optional: true - checksum: 10c0/d04469d76b29c7e4070da269886de4efdadedd3d3824dc2a06ac4ff62e3b5877f925e927afe7382de651829872b99adec48082f1bd69fe486149be666345e626 - languageName: node + checksum: 10c0/aee26f11facebb39b016e89539f72a72c2c00151208907fc909c3cedd455728240e09e01d98ebd3b63a2a3518a5917eac5de6c853743ca55a1655296d750bb48 linkType: hard
Unit test update
Unit test update
203fb0d357d58138447659aab84100156050ede9
--- src/navigation/ErrorLogBoundary.ts @@ -1,15 +1,16 @@ import {Component, PropsWithChildren} from 'react'; import {Logger} from '../core/Logger'; import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; -import { EnvironmentSelectors } from "@walmart/allspark-foundation/Environment"; +import {EnvironmentSelectors} from '@walmart/allspark-foundation/Environment'; export class ErrorLogBoundary extends Component<PropsWithChildren<{}>> { componentDidCatch(e: Error) { Logger.error('BOUNDARY_ERROR', { message: e.message, }); - const deploymentEnv = - AllsparkReduxStore.select(EnvironmentSelectors.getState).deployment; + const deploymentEnv = AllsparkReduxStore.select( + EnvironmentSelectors.getState, + ).deployment; // We will let app crash by rethrowing the error if (deploymentEnv !== 'prod') { throw new Error(e.message); --- src/settings/versions/utils.ts @@ -1,6 +1,5 @@ import i18n from 'i18next'; import DeviceInfo from 'react-native-device-info'; -import {memoize} from 'lodash'; import packageJson from '../../../package.json'; export const ALL_DEPENDENCIES: {
lint fix
lint fix
b340423470d3603335cd98b77689506cd60c95da
--- __tests__/settings/privacy/__snapshots__/PrivacyPreferencesTest.tsx.snap @@ -68,5 +68,18 @@ exports[`PrivacyPreferences renders 1`] = ` testID="anniversary_setting" value={true} /> + <View + style={ + { + "flex": 1, + "justifyContent": "flex-end", + "paddingBottom": 16, + } + } + > + <Body> + privacyPreferences.footerTitle + </Body> + </View> </View> `; --- src/settings/privacy/PrivacyPreferences.tsx @@ -25,6 +25,11 @@ const styles = StyleSheet.create({ header: { paddingTop: 16, }, + footer: { + paddingBottom: 16, + flex: 1, + justifyContent: 'flex-end', + }, divider: { marginTop: 24, backgroundColor: colors.gray[20], @@ -166,6 +171,9 @@ export const PrivacyPreferences = ( errorMessage={t('privacyPreferences.error')} testID='anniversary_setting' /> + <View style={styles.footer}> + <Body>{t('privacyPreferences.footerTitle')}</Body> + </View> </View> ); }; --- src/settings/translations.ts @@ -64,6 +64,7 @@ export const enUS = { subTitle: 'Decide which information your manager and peers can view about you in Me@Walmart', title: 'What do you want others to see?', + footerTitle: 'Changes to settings may take up to 24 hours.', }, pushNotificationWarning: "Sorry, we're currently unable to update your push notifications settings. Please try again later.", @@ -163,6 +164,7 @@ export const esMX = { subTitle: 'Decide qué información pueden ver tu gerente y tus compañeros en Me@Walmart.', title: '¿Qué quieres que vean los demás?', + footerTitle: 'Los cambios en la configuración pueden tardar hasta 24 horas', }, pushNotificationWarning: 'No pudimos activar las notificaciones. Intenta de nuevo más tarde.',
Add privacy footer for verbiage update
Add privacy footer for verbiage update