commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
8ad0cc5207fd425ce930f6af02c780acf6138a30
--- packages/core-services-allspark/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.12.7](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.12.6...@walmart/core-services-allspark@2.12.7) (2023-09-21) + + +### Bug Fixes + +* update permission check logic to account for android denied status on check ([509d896](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/509d89667b85387b00b4e78e13302c48902943e3)) + + + + + ## [2.12.6](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.12.5...@walmart/core-services-allspark@2.12.6) (2023-09-11) --- packages/core-services-allspark/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "2.12.6", + "version": "2.12.7", "lockfileVersion": 1, "requires": true, "packages": { --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "2.12.6", + "version": "2.12.7", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -26,7 +26,7 @@ "@walmart/allspark-graphql-client": "^1.4.10", "@walmart/allspark-http-client": "^2.4.17", "@walmart/allspark-utils": "^1.6.1", - "@walmart/core-services": "^2.2.0", + "@walmart/core-services": "^2.2.1", "@walmart/me-at-walmart-athena-queries": "^1.7.0", "crypto-js": "~4.1.1", "jwt-decode": "^3.1.2", --- packages/core-services/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.2.1](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services@2.2.0...@walmart/core-services@2.2.1) (2023-09-21) + + +### Bug Fixes + +* update permission check logic to account for android denied status on check ([509d896](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/509d89667b85387b00b4e78e13302c48902943e3)) + + + + + # [2.2.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services@2.1.2...@walmart/core-services@2.2.0) (2023-08-15) --- packages/core-services/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services", - "version": "2.2.0", + "version": "2.2.1", "lockfileVersion": 2, "requires": true, "packages": { --- packages/core-services/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services", - "version": "2.2.0", + "version": "2.2.1", "description": "", "main": "index.js", "types": "index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/core-services@2.2.1 - @walmart/core-services-allspark@2.12.7
49360c24b08a219af0fa8aafd7196f2d1c872796
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.25.17](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.16...@walmart/allspark-foundation-hub@1.25.17) (2025-12-11) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.25.16](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.15...@walmart/allspark-foundation-hub@1.25.16) (2025-12-11) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.25.16", + "version": "1.25.17", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/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. +## [7.16.15](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.16.14...@walmart/allspark-foundation@7.16.15) (2025-12-11) + +### Bug Fixes + +- **work:** top level context was missing. add back as general context ([#530](https://gecgithub01.walmart.com/allspark/allspark/issues/530)) ([c378a06](https://gecgithub01.walmart.com/allspark/allspark/commit/c378a0661c785cbbde1beac4e9758599fa6d9548)) + ## [7.16.14](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.16.13...@walmart/allspark-foundation@7.16.14) (2025-12-11) **Note:** Version bump only for package @walmart/allspark-foundation --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.16.14", + "version": "7.16.15", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/my-walmart-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.7.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.7.2...@walmart/my-walmart-hub@1.7.3) (2025-12-11) + +**Note:** Version bump only for package @walmart/my-walmart-hub + ## [1.7.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.7.1...@walmart/my-walmart-hub@1.7.2) (2025-12-11) **Note:** Version bump only for package @walmart/my-walmart-hub --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.7.2", + "version": "1.7.3", "description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation@7.16.15 - @walmart/allspark-foundation-hub@1.25.17 - @walmart/my-walmart-hub@1.7.3
5c04c96f81400d4b0c0c7fd012dec31168e67100
--- package.json @@ -51,6 +51,7 @@ "dependencies": { "@react-native-community/art": "^1.2.0", "@react-native-community/async-storage": "^1.11.0", + "@react-native-camera-roll/camera-roll": "^5.0.2", "@react-native-community/cameraroll": "4.1.2", "@react-native-community/clipboard": "^1.5.0", "@react-native-community/datetimepicker": "^3.0.9",
Update package.json
Update package.json
fc142b4315350c98a6812343b2da75dfbb19c716
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.1-alpha.3", + "version": "2.12.1-alpha.4", "main": "dist/index.js", "files": [ "dist" @@ -104,7 +104,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "6.1.4", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.8.0-alpha.6", + "@walmart/wmconnect-mini-app": "2.8.0-alpha.7", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- src/managerExperience/components/AssociateList/AssociateListItem.tsx @@ -151,7 +151,7 @@ export const AssociateListItem = ({ <View /> )} <AllsparkSharedComponents.Component - id='wmConnect.MessageButton' + id='wmConnect.RosterMessageButton' props={{associate: associate}} /> </View> --- src/managerExperience/components/RosterWidget/RosterWidget.tsx @@ -85,7 +85,7 @@ export const RosterWidget = (props: TeamHubWidgetProps) => { const onRefresh = useCallback(async () => { logger.info('on_refresh_event', { - message: 'On refresh event event triggered', + message: 'On refresh event triggered', }); setWidgetRefresh(true); await refetchRoster().catch((err: any) => { --- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -191,7 +191,7 @@ export const RosterDetailScreen = () => { const onRefresh = useCallback(async () => { logger.info('on_refresh_event', { - message: 'On refresh event event triggered', + message: 'On refresh event triggered', }); setState((prev) => ({ ...prev, @@ -413,7 +413,7 @@ export const RosterDetailScreen = () => { /> {!dataLoading && ( <AllsparkSharedComponents.Component - id='wmConnect.MessageButton' + id='wmConnect.GroupMessageButton' props={{teamIds: selectedTeamIds}} /> )} --- src/screens/index.tsx @@ -8,7 +8,6 @@ import { TextingNavParamsMap, } from '../navigation'; -import {APP_CONTAINER_SCREEN_NAME} from '../constants'; import {ClockGuard} from '@walmart/allspark-foundation/Clock/withClockGuard'; import {PresenceProvider} from '@walmart/wmconnect-mini-app'; @@ -32,13 +31,6 @@ export const RosterMiniAppForManagerExperience = () => { ); }; -const rosterAppScreen = RosterFeature.createScreen< - TextingNavParamsMap, - 'myTeam' ->(RosterMiniApp, { - tags: [ScreenTags.MyTeamTab], -}); - const rosterExperienceScreen = RosterFeature.createScreen< TextingNavParamsMap, 'myTeam' @@ -47,6 +39,5 @@ const rosterExperienceScreen = RosterFeature.createScreen< }); export default RosterFeature.createScreens({ - [APP_CONTAINER_SCREEN_NAME]: rosterAppScreen, - ['myTeam.managerExperience']: rosterExperienceScreen, + ['myTeam.roster']: rosterExperienceScreen, }); --- yarn.lock @@ -6373,7 +6373,7 @@ __metadata: "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:6.1.4" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.6" + "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.7" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" eslint: "npm:8.22.0" @@ -6506,9 +6506,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.8.0-alpha.6": - version: 2.8.0-alpha.6 - resolution: "@walmart/wmconnect-mini-app@npm:2.8.0-alpha.6" +"@walmart/wmconnect-mini-app@npm:2.8.0-alpha.7": + version: 2.8.0-alpha.7 + resolution: "@walmart/wmconnect-mini-app@npm:2.8.0-alpha.7" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6548,7 +6548,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/e03fc87a25ffa31e45cac58e6898175f7296fef0667b24c2bb94fe6aae59cd729ff8c42592473deb51d68c4412f0efba2c66d87b7a63a406bf4c005e7ac3d257 + checksum: 10c0/530606ff52c3557a3832e1074719d1fc07e78f5f5991f49d3809fa2462e438a69f83ffc48c0a4a5b0cbff0411e42c5b3adf6d417014e1a0bc67ba3482e3c1b7d languageName: node linkType: hard
Update roster mini app version
Update roster mini app version
280f7ddd17ab53e25175eccc9c59c51db421e886
--- ios/Podfile.lock @@ -427,7 +427,7 @@ PODS: - React - react-native-safe-area-context (3.3.2): - React-Core - - react-native-scanner-3.0 (0.1.1): + - react-native-scanner-3.0 (0.1.2): - Firebase/Analytics - React - ScanditBarcodeCapture (= 6.14.0-beta.3) @@ -963,7 +963,7 @@ SPEC CHECKSUMS: FirebaseRemoteConfig: 2d6e2cfdb49af79535c8af8a80a4a5009038ec2b fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4 - glog: 5337263514dd6f09803962437687240c5dc39aa4 + glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85 GoogleAppMeasurement: 4c19f031220c72464d460c9daa1fb5d1acce958e GoogleDataTransport: 5fffe35792f8b96ec8d6775f5eccd83c998d5a3b GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1 @@ -975,7 +975,7 @@ SPEC CHECKSUMS: Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72 PTT: ad0e445a1953114d2f5dd57b13de6fe1ed070fc5 - RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 + RCT-Folly: 803a9cfd78114b2ec0f140cfa6fa2a6bafb2d685 RCTRequired: 0aa6c1c27e1d65920df35ceea5341a5fe76bdb79 RCTTypeSafety: d76a59d00632891e11ed7522dba3fd1a995e573a React: ab8c09da2e7704f4b3ebad4baa6cfdfcc852dcb5 @@ -1005,7 +1005,7 @@ SPEC CHECKSUMS: react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa react-native-ptt-module: 8548d9a0d613fe775bc56b5cd83b5c024114f6b7 react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5 - react-native-scanner-3.0: 99ce80708397b0ed390ce88aabc95eb64098c574 + react-native-scanner-3.0: 8f4aff19b01ddefd273fff624b67c1e258457186 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 --- package-lock.json @@ -5146,6 +5146,15 @@ "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.42.1.tgz", "integrity": "sha512-3JQgXUmCEw8vPdrNdWxXHmSyz0wz1xOB06rUsBUouCxVtLghC9FoSZM7Q5azFKQ0QFFKUki/hjuv/fkakzCZyA==" }, + "@walmart/facilities-management-miniapp": { + "version": "0.0.7", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.0.7.tgz", + "integrity": "sha512-Eitp6IjqsLqn1Nf9pHZf1D15KEnVYdZ+5MTzHAZGI1NtCSyTFcSMBQaOhG+Fs6/hchC+f5B1fIXvdqxzps3TEg==", + "requires": { + "@walmart/moment-walmart": "^1.0.4", + "xdate": "^0.8.2" + } + }, "@walmart/feedback-all-spark-miniapp": { "version": "0.6.0", "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.6.0.tgz", @@ -5201,9 +5210,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "5.0.5", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.0.5.tgz", - "integrity": "sha512-P1ag667wiagR8JaXaegHqRGeFK4RTQN2RQXsZjEP6hGaPI2hejiPNRWUe8hClBI4dQS3Or+ImIkrkPvAP6sQ8g==" + "version": "5.0.6", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.0.6.tgz", + "integrity": "sha512-HYS5FOxpNR8hd6O55pDvGwdZmDspdu1NrYG61PVz+FxokWNtr6BeghhzIxram9tn1n/P2YYaOgkVmZo5Iyu62A==" }, "@walmart/manager-approvals-miniapp": { "version": "0.0.62", @@ -5343,9 +5352,9 @@ "integrity": "sha512-qxVserzdiG4xsZCLRIwYfRq/KuHsYSPkrl02tKHNhF5bhtWWo6oEUatBoSsY5BL8EVGOHk2ezsPWb2o5pg9Ryw==" }, "@walmart/react-native-scanner-3.0": { - "version": "0.1.1", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.1.tgz", - "integrity": "sha512-zd3DoKSyzsOMgLg55iUOkkjy9u5u82mh1VoOug1jk+tDhfc4sn2hyGEChkCvsouTMQR+s/9wRPMd5uwajqWyDw==" + "version": "0.1.2", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.2.tgz", + "integrity": "sha512-1YlTZ/tq4hdvht1VF9IALnBG5OelrTORYMtI2GYddpTyKJf8dOBEx8Bix8eEcDPuSora62ZCi3ERe5ZDAg4s5A==" }, "@walmart/react-native-shared-navigation": { "version": "1.0.2", --- package.json @@ -91,7 +91,7 @@ "@walmart/impersonation-mini-app": "1.2.0", "@walmart/ims-print-services-ui": "1.1.1", "@walmart/inbox-mini-app": "0.40.0-inbox3.33", - "@walmart/iteminfo-mini-app": "5.0.5", + "@walmart/iteminfo-mini-app": "5.0.6", "@walmart/manager-approvals-miniapp": "0.0.62", "@walmart/me-field-mini-app": "1.1.11", "@walmart/metrics-mini-app": "0.9.5", @@ -103,7 +103,7 @@ "@walmart/push-to-talk-mini-app": "1.8.4", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.29.0", - "@walmart/react-native-scanner-3.0": "0.1.1", + "@walmart/react-native-scanner-3.0": "0.1.2", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "^0.3.7", "@walmart/react-native-sumo-sdk": "2.2.2-beta.2",
Project: scanner3 ios build fix
Project: scanner3 ios build fix
a5ddb28af4189b5939d97b9b9f94f169f16ced20
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.19.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.7...@walmart/allspark-foundation-hub@1.19.8) (2025-10-27) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.19.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.6...@walmart/allspark-foundation-hub@1.19.7) (2025-10-27) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.19.7", + "version": "1.19.8", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/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. +# [7.5.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.4.2...@walmart/allspark-foundation@7.5.0) (2025-10-27) + +### Features + +- **nudge:** Adding nudge screen ([#441](https://gecgithub01.walmart.com/allspark/allspark/issues/441)) ([624c52b](https://gecgithub01.walmart.com/allspark/allspark/commit/624c52bde38ea229bf1965afd0d43eca395efe6b)) + ## [7.4.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.4.1...@walmart/allspark-foundation@7.4.2) (2025-10-27) ### Bug Fixes --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.4.2", + "version": "7.5.0", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/components-library/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.4.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-components@1.3.1...@walmart/my-walmart-components@1.4.0) (2025-10-27) + +### Features + +- **nudge:** Adding nudge screen ([#441](https://gecgithub01.walmart.com/allspark/allspark/issues/441)) ([624c52b](https://gecgithub01.walmart.com/allspark/allspark/commit/624c52bde38ea229bf1965afd0d43eca395efe6b)) + ## [1.3.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-components@1.3.0...@walmart/my-walmart-components@1.3.1) (2025-10-21) **Note:** Version bump only for package @walmart/my-walmart-components --- packages/components-library/package.json @@ -56,7 +56,7 @@ "test:update": "jest --updateSnapshot", "expo:check": "expo install --check" }, - "version": "1.3.1", + "version": "1.4.0", "main": "lib/index.js", "types": "lib/index.d.ts", "name": "@walmart/my-walmart-components", --- packages/me-at-walmart-geolocation/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.7...@walmart/me-at-walmart-geolocation@1.3.8) (2025-10-27) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + ## [1.3.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.6...@walmart/me-at-walmart-geolocation@1.3.7) (2025-10-27) **Note:** Version bump only for package @walmart/me-at-walmart-geolocation --- packages/me-at-walmart-geolocation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-geolocation", - "version": "1.3.7", + "version": "1.3.8", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation@7.5.0 - @walmart/allspark-foundation-hub@1.19.8 - @walmart/my-walmart-components@1.4.0 - @walmart/me-at-walmart-geolocation@1.3.8
04a89e3ecbbe373aff1e352f964366fb277049b4
--- src/components/AssociateRosterItem/index.tsx @@ -20,7 +20,7 @@ import { associateIsClockedIn, encryptUserId, } from '../../utils'; -import {useStartAssociateText} from '../../hooks'; +import {useIsSalariedOrTeamLead, useStartAssociateText} from '../../hooks'; import {Associate} from '../../types'; import {StatusChip} from '../StatusChip'; import {AssociateItemProps} from './types'; @@ -37,6 +37,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { SiteSelectors.getUserWorkingSite, ); const currentUser = useSelector(UserSelectors.getUser) as Associate; + const isSalariedOrTeamLead = useIsSalariedOrTeamLead(); if (!associate) { return null; @@ -85,20 +86,22 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { <Body weight='400' size='small' numberOfLines={1}> {namecase(associate?.jobCategoryCodeDesc)} </Body> - <Button - variant='tertiary' - size='small' - onPress={() => { - goToIndividualSchedule( - associate.userId, - associate.fullName, - siteId, - ); - }} - disabled={!associate.userId} - UNSAFE_style={styles.viewScheduleButton}> - {t('rosterScreen.associateRosterItem.viewSchedule')} - </Button> + {isSalariedOrTeamLead && ( + <Button + variant='tertiary' + size='small' + onPress={() => { + goToIndividualSchedule( + associate.userId, + associate.fullName, + siteId, + ); + }} + disabled={!associate.userId} + UNSAFE_style={styles.viewScheduleButton}> + {t('rosterScreen.associateRosterItem.viewSchedule')} + </Button> + )} </ListItem> </CardContent> </Card> --- src/components/AssociateRosterItem/index.tsx @@ -20,7 +20,7 @@ import { associateIsClockedIn, encryptUserId, } from '../../utils'; -import {useStartAssociateText} from '../../hooks'; +import {useIsSalariedOrTeamLead, useStartAssociateText} from '../../hooks'; import {Associate} from '../../types'; import {StatusChip} from '../StatusChip'; import {AssociateItemProps} from './types'; @@ -37,6 +37,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { SiteSelectors.getUserWorkingSite, ); const currentUser = useSelector(UserSelectors.getUser) as Associate; + const isSalariedOrTeamLead = useIsSalariedOrTeamLead(); if (!associate) { return null; @@ -85,20 +86,22 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { <Body weight='400' size='small' numberOfLines={1}> {namecase(associate?.jobCategoryCodeDesc)} </Body> - <Button - variant='tertiary' - size='small' - onPress={() => { - goToIndividualSchedule( - associate.userId, - associate.fullName, - siteId, - ); - }} - disabled={!associate.userId} - UNSAFE_style={styles.viewScheduleButton}> - {t('rosterScreen.associateRosterItem.viewSchedule')} - </Button> + {isSalariedOrTeamLead && ( + <Button + variant='tertiary' + size='small' + onPress={() => { + goToIndividualSchedule( + associate.userId, + associate.fullName, + siteId, + ); + }} + disabled={!associate.userId} + UNSAFE_style={styles.viewScheduleButton}> + {t('rosterScreen.associateRosterItem.viewSchedule')} + </Button> + )} </ListItem> </CardContent> </Card>
adding isSalariedOrTeamLead check
adding isSalariedOrTeamLead check
9d9cb5b0945e7589802e3ebab60a63a0e180b47e
--- src/context/FirestoreProvider.tsx @@ -1,13 +0,0 @@ -import React, {PropsWithChildren} from 'react'; -import {PresenceProvider} from '../presence'; -import {ChannelsProvider} from '../channels'; - -export const FirestoreProvider = (props: PropsWithChildren<{}>) => { - const {children} = props; - - return ( - <PresenceProvider> - <ChannelsProvider>{children}</ChannelsProvider> - </PresenceProvider> - ); -}; --- src/index.tsx @@ -2,17 +2,11 @@ import React, {Dispatch, useMemo, useReducer} from 'react'; import {useSelector} from 'react-redux'; import {firebase} from '@react-native-firebase/app-check'; -import {SiteSelectors, reducerManager} from '@walmart/redux-store'; -import {useAppStateEffect} from '@walmart/allspark-utils'; +import {SiteSelectors} from '@walmart/redux-store'; import {useEnvironment} from '@walmart/core-services/Environment'; import {LoggerCloneProvider} from '@walmart/core-services/Logger'; -import { - setUserOffline, - setUserOnline, - createLocalBlobStorageDirIfNot, - fetchSasToken, -} from './utils'; +import {createLocalBlobStorageDirIfNot, fetchSasToken} from './utils'; import {getClientConfig, HTTP_CLIENT_KEY} from './services'; import {TextingNavigation} from './navigation'; import {HttpClientCloneProvider} from '@walmart/core-services/HttpClient'; @@ -24,7 +18,8 @@ import { UPDATE_LOCAL_BLOB_STORAGE_AVAILABILITY, UPDATE_TOKEN, } from './reducer'; -import {FirestoreProvider} from './context/FirestoreProvider'; +import {PresenceProvider} from './presence'; +import {ChannelsProvider} from './channels'; export const LOGGER_FIELDS = {id: 'texting-mini-app'}; @@ -90,11 +85,13 @@ export const TextingMiniApp = () => { return ( <LoggerCloneProvider fields={LOGGER_FIELDS}> <HttpClientCloneProvider id={HTTP_CLIENT_KEY} config={clientConfig}> - <FirestoreProvider> - <TextingReducerProvider value={{textingState, dispatch}}> - <TextingNavigation /> - </TextingReducerProvider> - </FirestoreProvider> + <PresenceProvider> + <ChannelsProvider> + <TextingReducerProvider value={{textingState, dispatch}}> + <TextingNavigation /> + </TextingReducerProvider> + </ChannelsProvider> + </PresenceProvider> </HttpClientCloneProvider> </LoggerCloneProvider> ); --- src/context/FirestoreProvider.tsx @@ -1,13 +0,0 @@ -import React, {PropsWithChildren} from 'react'; -import {PresenceProvider} from '../presence'; -import {ChannelsProvider} from '../channels'; - -export const FirestoreProvider = (props: PropsWithChildren<{}>) => { - const {children} = props; - - return ( - <PresenceProvider> - <ChannelsProvider>{children}</ChannelsProvider> - </PresenceProvider> - ); -}; --- src/index.tsx @@ -2,17 +2,11 @@ import React, {Dispatch, useMemo, useReducer} from 'react'; import {useSelector} from 'react-redux'; import {firebase} from '@react-native-firebase/app-check'; -import {SiteSelectors, reducerManager} from '@walmart/redux-store'; -import {useAppStateEffect} from '@walmart/allspark-utils'; +import {SiteSelectors} from '@walmart/redux-store'; import {useEnvironment} from '@walmart/core-services/Environment'; import {LoggerCloneProvider} from '@walmart/core-services/Logger'; -import { - setUserOffline, - setUserOnline, - createLocalBlobStorageDirIfNot, - fetchSasToken, -} from './utils'; +import {createLocalBlobStorageDirIfNot, fetchSasToken} from './utils'; import {getClientConfig, HTTP_CLIENT_KEY} from './services'; import {TextingNavigation} from './navigation'; import {HttpClientCloneProvider} from '@walmart/core-services/HttpClient'; @@ -24,7 +18,8 @@ import { UPDATE_LOCAL_BLOB_STORAGE_AVAILABILITY, UPDATE_TOKEN, } from './reducer'; -import {FirestoreProvider} from './context/FirestoreProvider'; +import {PresenceProvider} from './presence'; +import {ChannelsProvider} from './channels'; export const LOGGER_FIELDS = {id: 'texting-mini-app'}; @@ -90,11 +85,13 @@ export const TextingMiniApp = () => { return ( <LoggerCloneProvider fields={LOGGER_FIELDS}> <HttpClientCloneProvider id={HTTP_CLIENT_KEY} config={clientConfig}> - <FirestoreProvider> - <TextingReducerProvider value={{textingState, dispatch}}> - <TextingNavigation /> - </TextingReducerProvider> - </FirestoreProvider> + <PresenceProvider> + <ChannelsProvider> + <TextingReducerProvider value={{textingState, dispatch}}> + <TextingNavigation /> + </TextingReducerProvider> + </ChannelsProvider> + </PresenceProvider> </HttpClientCloneProvider> </LoggerCloneProvider> );
chore: removing uneeded firestore context
chore: removing uneeded firestore context
9b039ebfe7f417caad084dbdc60b3b081c1cc83f
--- targets/US/package.json @@ -120,7 +120,7 @@ "@walmart/metrics-mini-app": "1.27.3", "@walmart/mod-flex-mini-app": "1.24.5", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "2.2.1", + "@walmart/money-auth-shared-components": "2.0.14", "@walmart/myteam-mini-app": "1.12.0", "@walmart/native-rfid-scanner": "3.12.1", "@walmart/onewalmart-miniapp": "1.0.24", --- yarn.lock @@ -7417,7 +7417,7 @@ __metadata: "@walmart/metrics-mini-app": "npm:1.27.3" "@walmart/mod-flex-mini-app": "npm:1.24.5" "@walmart/moment-walmart": "npm:1.0.4" - "@walmart/money-auth-shared-components": "npm:2.2.1" + "@walmart/money-auth-shared-components": "npm:2.0.14" "@walmart/myteam-mini-app": "npm:1.12.0" "@walmart/native-rfid-scanner": "npm:3.12.1" "@walmart/onewalmart-miniapp": "npm:1.0.24" @@ -7743,9 +7743,9 @@ __metadata: languageName: node linkType: hard -"@walmart/money-auth-shared-components@npm:2.2.1": - version: 2.2.1 - resolution: "@walmart/money-auth-shared-components@npm:2.2.1" +"@walmart/money-auth-shared-components@npm:2.0.14": + version: 2.0.14 + resolution: "@walmart/money-auth-shared-components@npm:2.0.14::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmoney-auth-shared-components%2F-%2Fmoney-auth-shared-components-2.0.14.tgz" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -7760,7 +7760,7 @@ __metadata: react-native-wm-telemetry: ^0.3.0 react-redux: ^7.2.1 redux: ^4.0.5 - checksum: 10c0/fb7196a12b99d85c22842d8d5885cca26586d9d27a193c301aed59bb03f3fb4dd4303b5afe615734c7034ff8fffaecea9d8888ec22ec43bbe826e5a8cb90a5b3 + checksum: 10c0/338bf8275f52fa37f49dc9bfb24f4cdfcafdb250c86a44faa2f61214540e84e41943a84455d8340f4e727fa3c14368bc06304ac03e3a44db8f1ce0d5831f508d languageName: node linkType: hard
reverted money-auth-shared-components to 2.0.14
reverted money-auth-shared-components to 2.0.14
c193e38ace348ff89ef48f763e6c548087985416
--- 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", + "@walmart/welcomeme-mini-app": "0.86.0-746-551fcb6", "@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", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.86.0.tgz", - "integrity": "sha512-U08nL/9ZXyliotY3eXqMEpjTtGTzqU39hAr7not7Ko52ussUg4V1rbFDpUUZ9L9B8cboLC22R6e5CL/SvH9QPw==", + "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==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -33749,9 +33749,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.86.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.86.0.tgz", - "integrity": "sha512-U08nL/9ZXyliotY3eXqMEpjTtGTzqU39hAr7not7Ko52ussUg4V1rbFDpUUZ9L9B8cboLC22R6e5CL/SvH9QPw==" + "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==" }, "@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", + "@walmart/welcomeme-mini-app": "0.86.0-746-551fcb6", "@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
24f7b93a0d6db91cf3ddb2734c102c50c9276da2
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/gta-react-native-calendars": "0.1.0", "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", - "@walmart/ims-print-services-ui": "2.7.3", + "@walmart/ims-print-services-ui": "2.7.5-alpha.0", "@walmart/inbox-mini-app": "0.89.2", "@walmart/iteminfo-mini-app": "7.7.4", "@walmart/learning-mini-app": "17.0.4", @@ -9003,9 +9003,9 @@ } }, "node_modules/@walmart/ims-print-services-ui": { - "version": "2.7.3", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.3.tgz", - "integrity": "sha512-wZIf4S2Vh4IHOXocsDZFeGJbPSyhyN2SpdbTzRjFNsWj94us4TnOXAM04oy/nrX3lUcrKR2CN3WupwhfqZ42PQ==", + "version": "2.7.5-alpha.0", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.5-alpha.0.tgz", + "integrity": "sha512-r9nZncplcsvzOLzVK2pK0epxaxxxqngKADHTB7lWcC7qWBvbfqCLeTvRcdBU2fLkuBwwwD4GRyg102WgY/JzPw==", "peerDependencies": { "@react-native-firebase/analytics": ">=10.5.1", "@react-native-firebase/app": ">=10.5.0", @@ -29418,7 +29418,7 @@ "requires": { "mv": "~2", "safe-json-stringify": "~1", - "uuid": "^8.0.0" + "uuid": "^3.3.2" } }, "@expo/cli": { @@ -30108,7 +30108,7 @@ "md5": "^2.2.1", "node-fetch": "^2.6.1", "remove-trailing-slash": "^0.1.0", - "uuid": "^8.3.2" + "uuid": "^3.3.2" } }, "@expo/sdk-runtime-versions": { @@ -33352,9 +33352,9 @@ "integrity": "sha512-nQdm2UHmllwsY5jYGxdebgT2oXBvrhIVWutDvz1xtYHcD1ZkcSZpa8CQpnltTdeSRy0bJ8K8hfqtPSGTybum5g==" }, "@walmart/ims-print-services-ui": { - "version": "2.7.3", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.3.tgz", - "integrity": "sha512-wZIf4S2Vh4IHOXocsDZFeGJbPSyhyN2SpdbTzRjFNsWj94us4TnOXAM04oy/nrX3lUcrKR2CN3WupwhfqZ42PQ==" + "version": "2.7.5-alpha.0", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.5-alpha.0.tgz", + "integrity": "sha512-r9nZncplcsvzOLzVK2pK0epxaxxxqngKADHTB7lWcC7qWBvbfqCLeTvRcdBU2fLkuBwwwD4GRyg102WgY/JzPw==" }, "@walmart/inbox-mini-app": { "version": "0.89.2", --- package.json @@ -99,7 +99,7 @@ "@walmart/gta-react-native-calendars": "0.1.0", "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", - "@walmart/ims-print-services-ui": "2.7.3", + "@walmart/ims-print-services-ui": "2.7.5-alpha.0", "@walmart/inbox-mini-app": "0.89.2", "@walmart/iteminfo-mini-app": "7.7.4", "@walmart/learning-mini-app": "17.0.4",
bump print ui version
bump print ui version
9f0525b969152bab845e968dba3b0cd90ce83d6d
--- targets/US/package.json @@ -110,7 +110,7 @@ "@walmart/ims-print-services-ui": "2.15.3", "@walmart/inbox-mini-app": "0.96.6", "@walmart/iteminfo-mini-app": "7.16.2", - "@walmart/learning-mini-app": "20.0.36", + "@walmart/learning-mini-app": "20.0.37", "@walmart/manager-approvals-miniapp": "0.3.0", "@walmart/me-at-walmart-athena-queries": "6.26.1", "@walmart/me-at-walmart-common": "workspace:^", --- yarn.lock @@ -6587,9 +6587,9 @@ __metadata: languageName: node linkType: hard -"@walmart/learning-mini-app@npm:20.0.36": - version: 20.0.36 - resolution: "@walmart/learning-mini-app@npm:20.0.36" +"@walmart/learning-mini-app@npm:20.0.37": + version: 20.0.37 + resolution: "@walmart/learning-mini-app@npm:20.0.37" peerDependencies: "@atmt/feedback-component-native": ^8.0.0 "@react-native-firebase/analytics": 17.4.2 @@ -6663,7 +6663,7 @@ __metadata: reduxsauce: ^1.2.0 reselect: ^4.0.0 wifi-store-locator: ^1.0.0-alpha2 - checksum: 10c0/706b6ff258a4b7638224134633b5d3252408af422d44ff3a1b66be45e093cce98b249f173fec9cc39dd0e81315a76aab647ae277db28efd9437ccdf2630e3ddd + checksum: 10c0/14553dc2a5af8270d408064dd70955ceccfe9abaef590fcd90bc4627b241714d035922665b02d1ade1367ff2050cf39c7fe86d412d49462478fb2333d6eb18f5 languageName: node linkType: hard @@ -7026,7 +7026,7 @@ __metadata: "@walmart/ims-print-services-ui": "npm:2.15.3" "@walmart/inbox-mini-app": "npm:0.96.6" "@walmart/iteminfo-mini-app": "npm:7.16.2" - "@walmart/learning-mini-app": "npm:20.0.36" + "@walmart/learning-mini-app": "npm:20.0.37" "@walmart/manager-approvals-miniapp": "npm:0.3.0" "@walmart/me-at-walmart-athena-queries": "npm:6.26.1" "@walmart/me-at-walmart-common": "workspace:^"
feat: :sparkles: Bump learning mini app version to 20.0.37
feat: :sparkles: Bump learning mini app version to 20.0.37
264ee56e54f2008977864b540072691dcbf0ebf7
--- package-lock.json @@ -3393,9 +3393,9 @@ "integrity": "sha512-DMXzHrlFBvd5qOHxju7irJ+4UkclgpwJVlEKzPqmL4oQPYXkjCydvbJR0O5FmZtDDyBrKxKtofD2vD4nyBeHPA==" }, "@walmart/inbox-mini-app": { - "version": "0.8.0", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.8.0.tgz", - "integrity": "sha512-XIe9NBjtk/zGaLjqebff1Rlg00DaorQvmmzcCZ52ADC7keuhy9AoZahOw83qR3w1B+d9aImaciBoov0FrwOtwQ==" + "version": "0.13.0", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.13.0.tgz", + "integrity": "sha512-aAJuqyGIgPc1gypjY7JgtkqudW7wOydSJYfQrNkcoY9UIIP1w5nXJDGP0hFMxzxS6Nz5yMlYWAcGbecaJbCMFA==" }, "@walmart/iteminfo-mini-app": { "version": "2.0.9", --- package.json @@ -83,7 +83,7 @@ "@walmart/gtp-shared-components": "^1.2.0", "@walmart/impersonation-mini-app": "1.0.20", "@walmart/ims-print-services-ui": "0.0.36", - "@walmart/inbox-mini-app": "0.8.0", + "@walmart/inbox-mini-app": "0.13.0", "@walmart/iteminfo-mini-app": "2.0.9", "@walmart/manager-approvals-miniapp": "0.0.54", "@walmart/metrics-mini-app": "0.4.12",
inbox version bump
inbox version bump
870570971acf3f0d23c5ba526487720255a98fcb
--- src/containers/ChatInput/index.tsx @@ -243,8 +243,6 @@ export const ChatInput = (props: { { mediaTypes: MediaTypeOptions.Images, selectionLimit: 1, - quality: 0.5, - allowsEditing: true, }, ).catch((e) => logger.error('pick image error', {
feat(ui): update the image attachment editing section
feat(ui): update the image attachment editing section
311be742c0ac40d3ebfe34fa3684b37ceef6f11a
--- package.json @@ -89,7 +89,7 @@ "react-native-video": "^5.1.0-alpha8", "react-native-view-shot": "^3.1.2", "react-native-webview": "^10.7.0", - "react-native-wm-barcode": "^2.3.0", + "react-native-wm-barcode": "2.3.0", "react-native-wm-config": "^0.1.1", "react-native-wm-notification": "^0.1.1", "react-native-wm-telemetry": "^0.2.0",
setting scanner to v2.3.0 (#124)
setting scanner to v2.3.0 (#124)
7a1765bd6363b7974bb20e5d52b79343227de190
--- .yarn/patches/react-native-modalfy-npm-3.7.0-a3af8847e5.patch @@ -1,5 +1,5 @@ diff --git a/lib/commonjs/lib/ModalStack.js b/lib/commonjs/lib/ModalStack.js -index 34a9127520914af5760dbeb23197d637ea0251dc..21e11613a42b414b1cb858356726333a438a0036 100644 +index 34a9127520914af5760dbeb23197d637ea0251dc..6b34d054c8dad9b375003a2102bad64c41e78fb5 100644 --- a/lib/commonjs/lib/ModalStack.js +++ b/lib/commonjs/lib/ModalStack.js @@ -77,9 +77,10 @@ const ModalStack = props => { @@ -11,7 +11,7 @@ index 34a9127520914af5760dbeb23197d637ea0251dc..21e11613a42b414b1cb858356726333a (0, _utils.queueMacroTask)(() => { - setModalStackOptions((0, _utils.getStackItemOptions)(Array.from(stack.openedItems).pop(), stack)); + const stackToUse = dynamicStack || stack; -+ setModalStackOptions((0, _utils.getStackItemOptions)(Array.from(stackToUse.openedItems).pop(), stack)); ++ setModalStackOptions((0, _utils.getStackItemOptions)(Array.from(stackToUse.openedItems).pop(), stackToUse)); }); }, []); @@ -25,7 +25,7 @@ index 34a9127520914af5760dbeb23197d637ea0251dc..21e11613a42b414b1cb858356726333a (0, _react.useEffect)(() => { if (stack.openedItems.size && backdropColor && backdropColor !== 'black' && !hasChangedBackdropColor) { diff --git a/lib/module/lib/ModalStack.js b/lib/module/lib/ModalStack.js -index b98ab09e8c2b7c3e20e1f96f30344dc919ca200f..2aaf5585f9629061d08c259c8514e9f3654ee83d 100644 +index b98ab09e8c2b7c3e20e1f96f30344dc919ca200f..e5055a9ec41c7c1efc8f4412c367ec5c6d55ea57 100644 --- a/lib/module/lib/ModalStack.js +++ b/lib/module/lib/ModalStack.js @@ -59,9 +59,10 @@ const ModalStack = props => { @@ -37,7 +37,7 @@ index b98ab09e8c2b7c3e20e1f96f30344dc919ca200f..2aaf5585f9629061d08c259c8514e9f3 queueMacroTask(() => { - setModalStackOptions(getStackItemOptions(Array.from(stack.openedItems).pop(), stack)); + const stackToUse = dynamicStack || stack; -+ setModalStackOptions(getStackItemOptions(Array.from(stackToUse.openedItems).pop(), stack)); ++ setModalStackOptions(getStackItemOptions(Array.from(stackToUse.openedItems).pop(), stackToUse)); }); }, []); --- yarn.lock @@ -20789,7 +20789,7 @@ __metadata: "react-native-modalfy@patch:react-native-modalfy@npm%3A3.7.0#~/.yarn/patches/react-native-modalfy-npm-3.7.0-a3af8847e5.patch": version: 3.7.0 - resolution: "react-native-modalfy@patch:react-native-modalfy@npm%3A3.7.0%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Freact-native-modalfy%252F-%252Freact-native-modalfy-3.7.0.tgz#~/.yarn/patches/react-native-modalfy-npm-3.7.0-a3af8847e5.patch::version=3.7.0&hash=9f3ae9" + resolution: "react-native-modalfy@patch:react-native-modalfy@npm%3A3.7.0%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Freact-native-modalfy%252F-%252Freact-native-modalfy-3.7.0.tgz#~/.yarn/patches/react-native-modalfy-npm-3.7.0-a3af8847e5.patch::version=3.7.0&hash=8d2f80" dependencies: hoist-non-react-statics: "npm:^3.3.2" react-is: "npm:^17.0.2" @@ -20798,7 +20798,7 @@ __metadata: react: ">=16.8.3" react-native: ">=0.59.0" react-native-gesture-handler: ">=2.2.1" - checksum: 10c0/abb8ffa14d376a3642a3a2dc528fba279fe36d152620e3f284f7269d6ea3f7703f74467797497f04125bd51b9a3b05e221f8aea9fbbb171c844e30b70271919b + checksum: 10c0/4c8ccf60dd4f0e117ffaf13c04b65be8b7080c88c5306e3d52764ab55f027f0ef8d216e91636a238aad95797bd33385bc9e11a04f8772cce815562aa074bff15 languageName: node linkType: hard
fix(modalfy): ALLSPARK-7291 re-apply patch (#5312)
fix(modalfy): ALLSPARK-7291 re-apply patch (#5312) Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com>
db4fca921b8438a0ba7f8dfc4880a38c67659a9d
--- packages/allspark-foundation/src/Feature/AllsparkFeatureManager.ts @@ -1,7 +1,11 @@ import { EventManager } from '@walmart/allspark-utils'; import { memoize } from 'lodash'; import { AllsparkFeatureModule } from './AllsparkFeatureModule'; -import { BuildScreenConfig, ConnectCapabilities } from './types'; +import { + BuildScreenConfig, + ConnectCapabilities, + DisconnectCapabilities, +} from './types'; /** * Manages a collection of AllsparkFeatureModule instances, allowing for adding, retrieving, and connecting features. @@ -134,7 +138,7 @@ export class FeatureModuleManager { return feature?.onDisconnect(listener); }; - // --- Connection --- // + // --- Connection/Disconnection --- // /** * Connects the given features in the order of their dependencies. @@ -197,6 +201,44 @@ export class FeatureModuleManager { this.connected = true; } + /** + * Disconnects feature with the given id. + * @param featureId - The id of the feature to disconnect. + * @param capability - The capability to disconnect. + */ + public disconnectById( + featureId: string, + capability?: DisconnectCapabilities + ) { + const feature = this.getFeature(featureId); + if (feature) { + feature.disconnect(capability); + } + } + + /** + * Disconnects feature with the given tag. + * @param tag - The tag of the feature to disconnect. + * @param capability - The capability to disconnect. + */ + public disconnectByTag(tag: string, capability?: DisconnectCapabilities) { + const features = this.getFeaturesByTag(tag); + features.forEach((feature) => { + feature.disconnect(capability); + }); + } + + /** + * Disconnects all features in the manager. + * @param capability - The capability to disconnect. + */ + public disconnectAll(capability?: DisconnectCapabilities) { + const features = this.getAllFeatures(); + features.forEach((feature) => { + feature.disconnect(capability); + }); + } + // --- Screen Building --- // /**
feat: add disconnect methods to feature manager
feat: add disconnect methods to feature manager
9dd5662a4ff1c273928ccdcd85729184afd1ef5b
--- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.4.0-alpha.33](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.32...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.33) (2025-11-06) + +**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app + # [1.4.0-alpha.32](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.31...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.32) (2025-11-06) **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.32", + "version": "1.4.0-alpha.33", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.7.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.6.1...@walmart/associate-exp-hub-team-switcher@2.7.0) (2025-11-06) + +**Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher + ## [2.6.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.6.0...@walmart/associate-exp-hub-team-switcher@2.6.1) (2025-11-06) **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.6.1", + "version": "2.7.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-mini-app@1.4.0-alpha.33 - @walmart/associate-exp-hub-team-switcher@2.7.0
edf4a0e608edc154fc41f4f205dc81a967d5327d
--- package-lock.json @@ -4983,9 +4983,9 @@ "integrity": "sha512-cN6NCvTVApgS+XbQXhGS5J7W7rjoa26sh7/5qERnAedZzvZPoHY9gHobC8bdSdzBqImHaGQkaoNvjhq7uihJZw==" }, "@walmart/amp-mini-app": { - "version": "0.2.7", - "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-0.2.7.tgz", - "integrity": "sha512-cXFiCEQA6Bp3i/2P1EAg9FFQF6TKI1f5sPzFn3ugjKSW+1yhFhk30k5lQnLdA05LB1kLAsfe1lYQrm42AclpQw==" + "version": "0.2.10", + "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-0.2.10.tgz", + "integrity": "sha512-BKmYmlma1idy+z+xwgQakR7KhzY5MHWeb3Xnlfs3zfgEcUN+/GmYwmUsF1S2FgC0+l9lwZuHuXTiAVyA4eG6cw==" }, "@walmart/ask-sam-mini-app": { "version": "1.0.4", @@ -5191,15 +5191,6 @@ "moment": "^2.29.4" } }, - "@walmart/gtp-shared-icons": { - "version": "1.0.2", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.2.tgz", - "integrity": "sha512-kFr5OI0nnp5mLpVeJud2uCuRsTogXCG5W7K1eYHiu++wqseWM7xoMuxESt3l4vdPUUmCG0bVXe563ubdnCyA/w==", - "requires": { - "lodash": "^4.17.15", - "moment": "^2.27.0" - } - }, "@walmart/impersonation-mini-app": { "version": "1.2.0", "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.2.0.tgz", @@ -5333,12 +5324,9 @@ "integrity": "sha512-YE0jalslBrDzd7mpdsW4fs9GGdaoWK83fHACA8xNFg6+w5eX3Ej6QWIdgQlqMilsSMcdjmXPuO+ERadEG3eMRA==" }, "@walmart/profile-feature-app": { - "version": "0.0.45", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.45.tgz", - "integrity": "sha512-iHTU3OtnqbapNpGBSBLZzA54deu6sTbQJxcGVTjuopy9nS6Iqro3kKYCeCelttr3/g4nMqg1BDDpPb8EsKV9YA==", - "requires": { - "@walmart/gtp-shared-icons": "^1.0.1" - } + "version": "0.0.46", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.46.tgz", + "integrity": "sha512-vxgXehMarv+sMEEi3kWEtD+Lon+a1VNhIcD/tLkOaGgD475hGvABZnrKlZMSdZe0Y22Lmb/M7buZBSZ7HlXZNA==" }, "@walmart/push-to-talk-mini-app": { "version": "1.8.4", --- package.json @@ -99,7 +99,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.125.8", "@walmart/price-changes-mini-app": "^1.4.6", - "@walmart/profile-feature-app": "0.0.45", + "@walmart/profile-feature-app": "0.0.46", "@walmart/push-to-talk-mini-app": "1.8.4", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.29.0",
Updated to profile 0.0.46
Updated to profile 0.0.46
886bf29d94affb0d3eecc303a5709b187193f348
--- ios/Podfile.lock @@ -178,7 +178,7 @@ PODS: - RNPermissions - PromisesObjC (2.1.0) - Protobuf (3.20.0) - - PTT (0.7.14-rc.12): + - PTT (0.7.14-rc.13): - BinaryCodable (~> 0.2.1) - CocoaAsyncSocket (~> 7.6.3) - RealmSwift (= 10.15.0) @@ -406,8 +406,8 @@ PODS: - React-Core - react-native-pdf (6.2.2): - React-Core - - react-native-ptt-module (1.5.81): - - PTT (= 0.7.14-rc.12) + - react-native-ptt-module (1.5.83): + - PTT (= 0.7.14-rc.13) - React - react-native-safe-area-context (3.3.2): - React-Core @@ -945,7 +945,7 @@ SPEC CHECKSUMS: Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72 Protobuf: 66e2f3b26a35e4cc379831f4ced538274ee4b923 - PTT: 9b948d24280ca3c174bed57a9e185ec761f9ef16 + PTT: c719bc3b2dca38cc04a69433298dcae91083b14c RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 RCTRequired: 4bf86c70714490bca4bf2696148638284622644b RCTTypeSafety: c475a7059eb77935fa53d2c17db299893f057d5d @@ -970,7 +970,7 @@ SPEC CHECKSUMS: react-native-netinfo: 77d133105df525d4a11f10fcaa8d0b8883ea6429 react-native-pager-view: 311c10a4eead1be627cad59062aa059d8108b943 react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f - react-native-ptt-module: ad32226179b4f13ff1d50e3388edba0bcac2952f + react-native-ptt-module: 9d94e3992651d6289fe16fb84f46934aa1d17f6b react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 --- package-lock.json @@ -4343,9 +4343,9 @@ "integrity": "sha512-qJaaKPSs5rNbukmidrZoqqWylzPX1nos0NwavGpgMjfCIvRuAE83yxNgNMV2KNP8y42YfNhEQlMJ5dCnsg/vWw==" }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.109", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.109.tgz", - "integrity": "sha512-ERILzP0Mj77++rmtG3ezppvJielSNrgXC+sRkOz456vVUeVgKsLaKttTqhi6jUkEHC9iMPhGyQ4HG61w9j8OLw==" + "version": "0.5.110", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.110.tgz", + "integrity": "sha512-y1p+sSkP9mKS3teKi6z/shLaTruTlr8oXrvuzylPfFWPMl58xOrnmVGZCpNaeHvYgd0/LhvbUI6dPFMR2GL8pw==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", @@ -16978,9 +16978,9 @@ "integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w==" }, "react-native-ptt-module": { - "version": "1.5.81", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.5.81.tgz", - "integrity": "sha512-LAWG5/xPZl5LBRjfV5f+Z8jS+fut945oC5KiOJdasCFGtv8GVJRAty9gqfelTl75QgMB2O97OMBl4k/NhSYi0w==" + "version": "1.5.83", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.5.83.tgz", + "integrity": "sha512-58Vg1lonn0GUdy3lQWMZcc1oXk8Ax+k0xUY73KwOAe+UZNAwjzRH4AecuZz6upmbUay3UU8F8hLtA6otC0DDhA==" }, "react-native-qrcode-svg": { "version": "6.0.6", --- 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.109", + "@walmart/push-to-talk-mini-app": "0.5.110", "@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.81", + "react-native-ptt-module": "1.5.83", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "^1.10.2", "react-native-safe-area-context": "^3.3.0",
ptt package version update
ptt package version update
3b08ee2c5bb762d69630e46a2e08953d0f214989
--- .looper-pr.yml @@ -32,3 +32,4 @@ envs: AUTHOR: temp SLACK_CHANNEL: 'smdv-miniapp' +
feat(ui): adding extra space
feat(ui): adding extra space
faf269856775ec9b0a6d6f0a2e2e254bbaec5bba
--- app.config.US.ts @@ -257,6 +257,13 @@ const CONFIG: ExpoConfig = { 'imageWidth': 190, } ], + [ + 'expo-video', + { + 'supportsBackgroundPlayback': true, + 'supportsPictureInPicture': true + } + ], [ 'react-native-vision-camera', { --- package.json @@ -191,6 +191,7 @@ "expo-status-bar": "~2.0.1", "expo-store-review": "~8.0.1", "expo-system-ui": "~4.0.9", + "expo-video": "~2.0.6", "graphql": "^16.8.1", "i18n-iso-countries": "^7.5.0", "i18next": "^23.6.0", --- yarn.lock @@ -7709,6 +7709,7 @@ __metadata: expo-status-bar: "npm:~2.0.1" expo-store-review: "npm:~8.0.1" expo-system-ui: "npm:~4.0.9" + expo-video: "npm:~2.0.6" find-yarn-workspace-root: "npm:^2.0.0" fs-extra: "npm:^11.2.0" glob: "npm:^11.0.0" @@ -12980,6 +12981,17 @@ __metadata: languageName: node linkType: hard +"expo-video@npm:~2.0.6": + version: 2.0.6 + resolution: "expo-video@npm:2.0.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fexpo-video%2F-%2Fexpo-video-2.0.6.tgz" + peerDependencies: + expo: "*" + react: "*" + react-native: "*" + checksum: 10c0/46c5efea19c693ec4b3f1218acb499aa259fd4ae164e5301e09c81a7c577f3a5df3fd259f3bf94e75c89e463c466c81acaea66a55c7bbd47dcd725b9115c8684 + languageName: node + linkType: hard + "expo@npm:~52.0.46": version: 52.0.47 resolution: "expo@npm:52.0.47::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fexpo%2F-%2Fexpo-52.0.47.tgz"
feat(pkg): add expo-video dependency (#4512)
feat(pkg): add expo-video dependency (#4512) Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com>
44a52b601b8ed7c821353130a97ba8d2c0f23a2e
--- package.json @@ -16,7 +16,8 @@ "lint": "yarn workspaces foreach --all -p run lint", "lint:fix": "yarn workspaces foreach --all -p run lint:fix", "prepare": "husky", - "test": "npm run build && jest --no-watchman -u", + "test": "npm run build && jest --no-watchman", + "update:snapshots": "npm run build && jest --no-watchman -u", "coverage:hub": "yarn workspace @walmart/allspark-foundation-hub coverage" }, "repository": {
chore: add update snapshots npm script
chore: add update snapshots npm script
4dd8226407bff97df52459439cb6209f0aaae792
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/attendance-mini-app": "1.62.13", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13", - "@walmart/copilot-mini-app": "3.26.3", + "@walmart/copilot-mini-app": "^3.26.4", "@walmart/core-services": "~2.3.0", "@walmart/core-services-allspark": "~2.13.1", "@walmart/core-utils": "~2.0.5", @@ -8592,9 +8592,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "3.26.3", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.26.3.tgz", - "integrity": "sha512-p2rHS45LjrZLUa8HY0yUuH3sTNl+7wHLwK0c2pKFqpGOzJjEuQJhHs473HB6xociAZmuCugQf8fOMaw6wC8E3w==", + "version": "3.26.4", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.26.4.tgz", + "integrity": "sha512-tI2LMVq9Aosut0GG1j+3sPN7BQyUgoIyAzdk6gySTaB12p2i1UB9/fnf/VDD0tWNY6I7ckLmp1BOFSybihhUaA==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -9195,6 +9195,31 @@ "wifi-store-locator": "^1.0.0-alpha2" } }, + "node_modules/@walmart/manager-approvals-miniapp": { + "version": "0.2.4", + "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.2.4.tgz", + "integrity": "sha512-IjgpoS1xzZAm8jtEI5fpTqpwRHQXC8FORd2OpRD5vCpJ2QIKVUzhH3iCEhyjZSOWQ5rmc9miUxt5HGtLABYhTg==", + "hasInstallScript": true, + "peerDependencies": { + "@react-navigation/native": "^6.0.0", + "@react-navigation/stack": "^6.1.0", + "@walmart/core-services-allspark": "~1.10.11", + "@walmart/core-utils": "~1.3.0", + "@walmart/gtp-shared-components": "2.0.2", + "@walmart/react-native-logger": "1.31.0-rc.1", + "@walmart/react-native-shared-navigation": "1.0.2", + "i18next": "^22.0.1", + "jwt-decode": "^3.1.2", + "react": "^18.2.0", + "react-i18next": "^12.0.0", + "react-native": "0.70.5", + "react-native-app-auth": "^6.4.3", + "react-native-device-info": "^10.3.0", + "react-native-wm-telemetry": "0.3.0", + "react-redux": "^8.0.4", + "reselect": "^4.1.0" + } + }, "node_modules/@walmart/me-at-homeoffice-ui-components": { "version": "1.2.140", "resolved": "https://npme.walmart.com/@walmart/me-at-homeoffice-ui-components/-/me-at-homeoffice-ui-components-1.2.140.tgz", @@ -9215,6 +9240,15 @@ "react-native-webview": "^11.23.1" } }, + "node_modules/@walmart/me-at-walmart-athena-queries": { + "version": "1.7.3", + "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.7.3.tgz", + "integrity": "sha512-3ioO6FPcVDOxb609WaxlpeaOn4ojiV/htuzzTPKM5ygQb0R58LwdpypVj0oAx7OVHiKidERYWN/952+YGXlqtg==", + "license": "ISC", + "dependencies": { + "@walmart/allspark-graphql-client": "^1.4.12" + } + }, "node_modules/@walmart/metrics-mini-app": { "version": "0.17.9", "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.9.tgz", @@ -33189,9 +33223,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "3.26.3", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.26.3.tgz", - "integrity": "sha512-p2rHS45LjrZLUa8HY0yUuH3sTNl+7wHLwK0c2pKFqpGOzJjEuQJhHs473HB6xociAZmuCugQf8fOMaw6wC8E3w==" + "version": "3.26.4", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.26.4.tgz", + "integrity": "sha512-tI2LMVq9Aosut0GG1j+3sPN7BQyUgoIyAzdk6gySTaB12p2i1UB9/fnf/VDD0tWNY6I7ckLmp1BOFSybihhUaA==" }, "@walmart/core-services": { "version": "2.3.2", @@ -33346,7 +33380,9 @@ } }, "@walmart/manager-approvals-miniapp": { - "version": "0.2.4" + "version": "0.2.4", + "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.2.4.tgz", + "integrity": "sha512-IjgpoS1xzZAm8jtEI5fpTqpwRHQXC8FORd2OpRD5vCpJ2QIKVUzhH3iCEhyjZSOWQ5rmc9miUxt5HGtLABYhTg==" }, "@walmart/me-at-homeoffice-ui-components": { "version": "1.2.140", --- package.json @@ -84,7 +84,7 @@ "@walmart/attendance-mini-app": "1.62.13", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13", - "@walmart/copilot-mini-app": "3.26.3", + "@walmart/copilot-mini-app": "3.26.4", "@walmart/core-services": "~2.3.0", "@walmart/core-services-allspark": "~2.13.1", "@walmart/core-utils": "~2.0.5",
fix: bump copilot@3.26.4
fix: bump copilot@3.26.4
857ef2b3635436c733518648af2bc5c4d9062e3a
--- core/src/manifest.ts @@ -44,6 +44,8 @@ export const getRootFeatures = (): AllsparkFeatureModule[] => { export const getCandiateFeatures = (): AllsparkFeatureModule[] => { const Features = [ require('@walmart/welcomeme-mini-app').default, + require('@walmart/payrollsolution_miniapp').default, + require('@walmart/ask-sam-mini-app').default, // Add ask same once on foundation // Add payment selection onc on foundation ]; --- core/src/navigation/USHallway/PreHireHallwayNav/index.tsx @@ -2,11 +2,8 @@ __DEV__ && console.log('loading pre-hire hallway'); import React, {useEffect} from 'react'; import {createStackNavigator} from '@react-navigation/stack'; -import {AskSamMiniApp} from '@walmart/ask-sam-mini-app'; -import { - Header, - ModalTransitionOptions, -} from '@walmart/allspark-foundation/Navigation'; +import AskSamMiniApp from '@walmart/ask-sam-mini-app'; +import {Header} from '@walmart/allspark-foundation/Navigation'; import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; import { ActiveAllsparkContainer, @@ -35,25 +32,12 @@ export default () => { {WelcomeMeModule.buildAllScreens({ Navigator: PreHireStack as any, })} - - <PreHireStack.Screen - name='askSam' - component={AskSamMiniApp} - options={{ - gestureEnabled: true, - gestureDirection: 'vertical', - presentation: 'transparentModal', - ...ModalTransitionOptions, - }} - /> - - <PreHireStack.Screen - name='paymentselection' - component={PaymentSelectionMiniApp} - options={{ - headerShown: false, - }} - /> + {PaymentSelectionMiniApp.buildAllScreens({ + Navigator: PreHireStack as any, + })} + {AskSamMiniApp.buildAllScreens({ + Navigator: PreHireStack as any, + })} </PreHireStack.Navigator> </ActiveAllsparkContainer.FeatureGuard> ); --- targets/US/ios/Podfile.lock @@ -2957,4 +2957,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: f89f8fd084718a8459bfad1ed1081b9af51bc555 -COCOAPODS: 1.15.2 +COCOAPODS: 1.14.3 --- yarn.lock @@ -2624,6 +2624,18 @@ __metadata: languageName: node linkType: hard +"@expo/json-file@npm:8.2.30": + version: 8.2.30 + resolution: "@expo/json-file@npm:8.2.30" + dependencies: + "@babel/code-frame": "npm:~7.10.4" + fs-extra: "npm:9.0.0" + json5: "npm:^1.0.1" + write-file-atomic: "npm:^2.3.0" + checksum: 10c0/623bc7c08e3406ba3675112666d79523ba47a247f7d2c135a80fdba7d6c7f2c7d5775c97fcc9d361dfaf616a70dfd7532e625879664514943cd6a55d4f3f9e17 + languageName: node + linkType: hard + "@expo/json-file@npm:^8.2.37, @expo/json-file@npm:~8.3.0": version: 8.3.3 resolution: "@expo/json-file@npm:8.3.3" @@ -2706,6 +2718,17 @@ __metadata: languageName: node linkType: hard +"@expo/plist@npm:0.0.13": + version: 0.0.13 + resolution: "@expo/plist@npm:0.0.13" + dependencies: + base64-js: "npm:^1.2.3" + xmlbuilder: "npm:^14.0.0" + xmldom: "npm:~0.5.0" + checksum: 10c0/4b139e6e7e87d41f3426d378210b04da231b5876e11ef0d5b9be2545e50aeaf50bfda19eef492b09a63b3bc97c0bce249cf210e272c9b0fad2637c2ec7efe09e + languageName: node + linkType: hard + "@expo/plist@npm:^0.1.0": version: 0.1.3 resolution: "@expo/plist@npm:0.1.3" @@ -4862,6 +4885,18 @@ __metadata: languageName: node linkType: hard +"@react-native-voice/voice@npm:^3.2.4": + version: 3.2.4 + resolution: "@react-native-voice/voice@npm:3.2.4" + dependencies: + "@expo/config-plugins": "npm:^2.0.0" + invariant: "npm:^2.2.4" + peerDependencies: + react-native: ">= 0.60.2" + checksum: 10c0/841c3ece3534688f9518ba0890740cad89e37bd3feb9d5f9c01991d65304885983ca01eb55590cec3b333f91c040e4ee90492ede3242989a922eee0f8a08bd04 + languageName: node + linkType: hard + "@react-native/assets-registry@npm:0.73.1, @react-native/assets-registry@npm:~0.73.1": version: 0.73.1 resolution: "@react-native/assets-registry@npm:0.73.1" @@ -6736,25 +6771,27 @@ __metadata: version: 1.27.5 resolution: "@walmart/ask-sam-mini-app@npm:1.27.5" dependencies: + "@react-native-voice/voice": "npm:^3.2.4" apisauce: "npm:^1.1.2" numeral: "npm:^2.0.6" + react-native-fs: "npm:^2.20.0" + react-native-sound: "npm:^0.11.2" reduxsauce: "npm:^1.2.0" peerDependencies: + "@apollo/client": ">=3.7.3" "@react-native/gradle-plugin": ">=0.73.4" "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.0.0" "@terrylinla/react-native-sketch-canvas": "*" + "@walmart/allspark-foundation": "*" "@walmart/ask-sam-chat-components": ">=0.2.9" - "@walmart/core-services": ">=1.4.11" - "@walmart/core-utils": ">=1.2" - "@walmart/core-widget-registry": ">=0.2" + "@walmart/core-services": ">=6.1.0" "@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": "*" axios: ">=1.2.6" - axios-cache-adapter: ">=2.7.3" expo: 50.0.17 expo-linear-gradient: ">=12.7.2" lodash: ">=4.17" @@ -16403,6 +16440,17 @@ __metadata: languageName: node linkType: hard +"json5@npm:^1.0.1": + version: 1.0.2 + resolution: "json5@npm:1.0.2" + dependencies: + minimist: "npm:^1.2.0" + bin: + json5: lib/cli.js + checksum: 10c0/9ee316bf21f000b00752e6c2a3b79ecf5324515a5c60ee88983a1910a45426b643a4f3461657586e8aeca87aaf96f0a519b0516d2ae527a6c3e7eed80f68717f + languageName: node + linkType: hard + "json5@npm:^2.2.2, json5@npm:^2.2.3": version: 2.2.3 resolution: "json5@npm:2.2.3" @@ -20088,6 +20136,15 @@ __metadata: languageName: node linkType: hard +"react-native-sound@npm:^0.11.2": + version: 0.11.2 + resolution: "react-native-sound@npm:0.11.2" + peerDependencies: + react-native: ">=0.8.0" + checksum: 10c0/823014876fead0034c4aecaab70c1cd32b26a1bfaef2283d5d689ceff20b226e1d53de991cc5baa98f21bd1081d3322d027093a70ea31336c4da95cb4bc03bab + languageName: node + linkType: hard + "react-native-splash-screen@npm:^3.3.0": version: 3.3.0 resolution: "react-native-splash-screen@npm:3.3.0" @@ -24617,6 +24674,16 @@ __metadata: languageName: node linkType: hard +"xml2js@npm:^0.4.23": + version: 0.4.23 + resolution: "xml2js@npm:0.4.23" + dependencies: + sax: "npm:>=0.6.0" + xmlbuilder: "npm:~11.0.0" + checksum: 10c0/a3f41c9afc46d5bd0bea4070e5108777b605fd5ce2ebb978a68fd4c75513978ad5939f8135664ffea6f1adb342f391b1ba1584ed7955123b036e9ab8a1d26566 + languageName: node + linkType: hard + "xml@npm:^1.0.1": version: 1.0.1 resolution: "xml@npm:1.0.1" @@ -24652,6 +24719,13 @@ __metadata: languageName: node linkType: hard +"xmldom@npm:~0.5.0": + version: 0.5.0 + resolution: "xmldom@npm:0.5.0" + checksum: 10c0/68e81d96ffdae8366d0d8888196b960aadd526896897aab3c579a70625e396fdc2e14305aeb77a786598c6a46a2df36276dc9cfe0b8f22ccab68cff543d5fec7 + languageName: node + linkType: hard + "xpath@npm:^0.0.34": version: 0.0.34 resolution: "xpath@npm:0.0.34"
added navigation for payroll and asksam
added navigation for payroll and asksam
d49bef88bb8fa845944e47c86f8fe28700b71f57
--- packages/allspark-authentication/src/Authentication.ts @@ -233,9 +233,9 @@ export class AllsparkAuthentication { const newAuthResult: AuthorizeResult = { ...authResult, - ...(refreshResult.refreshToken && {refreshToken: refreshResult.refreshToken}), accessToken: refreshResult.accessToken, accessTokenExpirationDate: refreshResult.accessTokenExpirationDate, + refreshToken: refreshResult.refreshToken || authResult.refreshToken, }; this._cachedResult.set(newAuthResult);
fix: refresh token from refresh call not on refresh response
fix: refresh token from refresh call not on refresh response
0099c354039798f97b3305db57c1ed45d56a5b6d
--- packages/allspark-graphql-client/codegen/generate.js @@ -7,18 +7,46 @@ const path = require('path'); const processPath = process.cwd(); const allsparkConfig = require(`${processPath}/allspark.config.js`); -// If no allspark config defined exist script +// If no allspark config, defined exit script if (!allsparkConfig) { throw new Error(`allspark.config.js not found at ${processPath}`); } +// If no id, defined exit script +if (!allsparkConfig.id) { + throw new Error( + `id not found in allspark.config.js, but required for code generation` + ); +} + +// Create codgen config based on allpsark config +const config = allsparkConfig.graphql.codegen; + +// If no codegen config defined, exit script +if (!config) { + throw new Error( + `graphql.codegen not found in allspark.config.js, but required for code generation` + ); +} + +// If no query path defined, exit script +if (!config.queries) { + throw new Error( + `graphql.codegen.queries not found in allspark.config.js, but required for code generation` + ); +} + +// If no product id defined, exit script +if (!config.yml.teamRostersProductId) { + throw new Error( + `graphql.codegen.yml.teamRostersProductId not found in allspark.config.js, but required for code generation` + ); +} + // Direct paths to custom plugins, script is executed at project root so // relative paths in this file would be skewed const generateYmlPlugin = path.resolve(__dirname, 'generateYml.js'); const generateQueryPlugin = path.resolve(__dirname, 'generateQuery.js'); - -// Create codgen config based on allpsark config -const config = allsparkConfig.graphql.codegen; const queryPath = `${processPath}/${config.queries}`; const codegenConfig = { @@ -71,7 +99,11 @@ cli // Generate graphql yml file that will be used to register queries with Athena [`${processPath}/graphql.yml`]: { plugins: [generateYmlPlugin], - config: config.yml, + config: { + name: allsparkConfig.id, + applicationKey: allsparkConfig.id, + ...config.yml, + }, }, }, hooks: {
chore: update codegen script
chore: update codegen script
5ecb3b5b6bcf64adcdd2650f1b77c0a9b4c8d22c
--- __tests__/home/services/HomeApi/cacheStoreTest.ts @@ -1,4 +1,4 @@ -import AsyncStorage from '@react-native-community/async-storage'; +import AsyncStorage from '@react-native-async-storage/async-storage'; import { CACHE_NAME, getAllCacheKeys, --- package-lock.json @@ -9,8 +9,8 @@ "version": "1.12.0", "hasInstallScript": true, "dependencies": { + "@react-native-async-storage/async-storage": "^1.19.0", "@react-native-community/art": "^1.2.0", - "@react-native-community/async-storage": "^1.12.1", "@react-native-community/cameraroll": "^4.1.2", "@react-native-community/clipboard": "^1.5.1", "@react-native-community/datetimepicker": "6.7.5", @@ -2621,6 +2621,18 @@ "node": ">= 8" } }, + "node_modules/@react-native-async-storage/async-storage": { + "version": "1.19.0", + "resolved": "https://npme.walmart.com/@react-native-async-storage/async-storage/-/async-storage-1.19.0.tgz", + "integrity": "sha512-xOFkz/FaQctD6yNJDur+WnHdSTigOs3pTz6HmfC8X8PYwcnnN3R9UxuWiwsfK8vvT2WioAxUkQt3lB7GySNA2w==", + "license": "MIT", + "dependencies": { + "merge-options": "^3.0.4" + }, + "peerDependencies": { + "react-native": "^0.0.0-0 || 0.60 - 0.72 || 1000.0.0" + } + }, "node_modules/@react-native-community/art": { "version": "1.2.0", "license": "MIT", @@ -2634,17 +2646,6 @@ "react-native": "*" } }, - "node_modules/@react-native-community/async-storage": { - "version": "1.12.1", - "license": "MIT", - "dependencies": { - "deep-assign": "^3.0.0" - }, - "peerDependencies": { - "react": "^16.8", - "react-native": ">=0.59" - } - }, "node_modules/@react-native-community/cameraroll": { "version": "4.1.2", "license": "MIT", @@ -8362,16 +8363,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/deep-assign": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "is-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/deep-extend": { "version": "0.6.0", "license": "MIT", @@ -11862,13 +11853,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-obj": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/is-observable": { "version": "1.1.0", "dev": true, @@ -11880,6 +11864,15 @@ "node": ">=4" } }, + "node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://npme.walmart.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/is-plain-object": { "version": "2.0.4", "license": "MIT", @@ -15125,6 +15118,18 @@ "node": ">= 0.10.0" } }, + "node_modules/merge-options": { + "version": "3.0.4", + "resolved": "https://npme.walmart.com/merge-options/-/merge-options-3.0.4.tgz", + "integrity": "sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==", + "license": "MIT", + "dependencies": { + "is-plain-obj": "^2.1.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/merge-stream": { "version": "2.0.0", "license": "MIT" @@ -23778,6 +23783,14 @@ "fastq": "^1.6.0" } }, + "@react-native-async-storage/async-storage": { + "version": "1.19.0", + "resolved": "https://npme.walmart.com/@react-native-async-storage/async-storage/-/async-storage-1.19.0.tgz", + "integrity": "sha512-xOFkz/FaQctD6yNJDur+WnHdSTigOs3pTz6HmfC8X8PYwcnnN3R9UxuWiwsfK8vvT2WioAxUkQt3lB7GySNA2w==", + "requires": { + "merge-options": "^3.0.4" + } + }, "@react-native-community/art": { "version": "1.2.0", "requires": { @@ -23786,12 +23799,6 @@ "prop-types": "^15.7.2" } }, - "@react-native-community/async-storage": { - "version": "1.12.1", - "requires": { - "deep-assign": "^3.0.0" - } - }, "@react-native-community/cameraroll": { "version": "4.1.2" }, @@ -26838,12 +26845,6 @@ "mimic-response": "^3.1.0" } }, - "deep-assign": { - "version": "3.0.0", - "requires": { - "is-obj": "^1.0.0" - } - }, "deep-extend": { "version": "0.6.0" }, @@ -29009,9 +29010,6 @@ "has-tostringtag": "^1.0.0" } }, - "is-obj": { - "version": "1.0.1" - }, "is-observable": { "version": "1.1.0", "dev": true, @@ -29019,6 +29017,11 @@ "symbol-observable": "^1.1.0" } }, + "is-plain-obj": { + "version": "2.1.0", + "resolved": "https://npme.walmart.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" + }, "is-plain-object": { "version": "2.0.4", "requires": { @@ -31239,6 +31242,14 @@ "version": "0.3.1", "dev": true }, + "merge-options": { + "version": "3.0.4", + "resolved": "https://npme.walmart.com/merge-options/-/merge-options-3.0.4.tgz", + "integrity": "sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==", + "requires": { + "is-plain-obj": "^2.1.0" + } + }, "merge-stream": { "version": "2.0.0" }, --- package.json @@ -51,8 +51,8 @@ "verifyBranchName": "sh ./scripts/verifyBranchName.sh" }, "dependencies": { + "@react-native-async-storage/async-storage": "^1.19.0", "@react-native-community/art": "^1.2.0", - "@react-native-community/async-storage": "^1.12.1", "@react-native-community/cameraroll": "^4.1.2", "@react-native-community/clipboard": "^1.5.1", "@react-native-community/datetimepicker": "6.7.5", --- src/home/services/HomeApi/cacheStore.ts @@ -1,4 +1,4 @@ -import AsyncStorage from '@react-native-community/async-storage'; +import AsyncStorage from '@react-native-async-storage/async-storage'; export const CACHE_NAME = 'home_axios_cache';
remove old async
remove old async
e2b9c03c0fed736494440e5c904a2ea7fb276cf2
--- package-lock.json @@ -66,7 +66,7 @@ "@walmart/payrollsolution_miniapp": "0.130.4", "@walmart/price-changes-mini-app": "1.6.8", "@walmart/profile-feature-app": "0.76.0", - "@walmart/push-to-talk-mini-app": "1.9.6", + "@walmart/push-to-talk-mini-app": "1.9.7", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.31.0-rc.1", @@ -5775,9 +5775,9 @@ } }, "node_modules/@walmart/push-to-talk-mini-app": { - "version": "1.9.6", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.6.tgz", - "integrity": "sha512-/ZD7S6gwmV2biGwnD/VpXsMSC4itpi6HFarEmqYLHENJ75smqGyA+15bw4Nu2b2Mle2QxOcmOVJ/IXqn8fIOgA==", + "version": "1.9.7", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.7.tgz", + "integrity": "sha512-EnpaaZ58wU3skxTAdBbeijChWt3kS8mJzyBmXl+6FJP8x6FRXA4VN9vwhG/0DR/J7Ntg0G8F5WZT8RuI8wmeFA==", "license": "UNLICENSED", "peerDependencies": { "@react-native-community/async-storage": "^1.11.0", @@ -25382,9 +25382,9 @@ "integrity": "sha512-P4fXm0HihY3jsOkUX7ZVICRiLOUIDo16FVOZHeie7o611ZmslNScFNWwuzEcFulKsLRq4jSU+XQKrOlUqQlW2g==" }, "@walmart/push-to-talk-mini-app": { - "version": "1.9.6", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.6.tgz", - "integrity": "sha512-/ZD7S6gwmV2biGwnD/VpXsMSC4itpi6HFarEmqYLHENJ75smqGyA+15bw4Nu2b2Mle2QxOcmOVJ/IXqn8fIOgA==" + "version": "1.9.7", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.7.tgz", + "integrity": "sha512-EnpaaZ58wU3skxTAdBbeijChWt3kS8mJzyBmXl+6FJP8x6FRXA4VN9vwhG/0DR/J7Ntg0G8F5WZT8RuI8wmeFA==" }, "@walmart/react-native-encrypted-storage": { "version": "1.1.3", --- package.json @@ -108,7 +108,7 @@ "@walmart/payrollsolution_miniapp": "0.130.4", "@walmart/price-changes-mini-app": "1.6.8", "@walmart/profile-feature-app": "0.76.0", - "@walmart/push-to-talk-mini-app": "1.9.6", + "@walmart/push-to-talk-mini-app": "1.9.7", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.31.0-rc.1",
resolving delete message bugs
resolving delete message bugs
cd338b852ba3116f7878c592b085fc0f8085397a
--- package-lock.json @@ -2689,6 +2689,11 @@ "@babel/types": "^7.3.0" } }, + "@types/base-64": { + "version": "1.0.0", + "resolved": "https://npme.walmart.com/@types/base-64/-/base-64-1.0.0.tgz", + "integrity": "sha512-AvCJx/HrfYHmOQRFdVvgKMplXfzTUizmh0tz9GFTpDePWgCY4uoKll84zKlaRoeiYiCr7c9ZnqSTzkl0BUVD6g==" + }, "@types/btoa-lite": { "version": "1.0.0", "resolved": "https://npme.walmart.com/@types/btoa-lite/-/btoa-lite-1.0.0.tgz", @@ -3039,9 +3044,9 @@ } }, "@walmart/allspark-home-mini-app": { - "version": "0.4.0", - "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.0.tgz", - "integrity": "sha512-MccFfk+3k/0sxOAgg5ixgO2jB3JJXVVMGg0OyulxJeTi1CjeSfWLk1RMHnGZ0d2gT4iWyXVuQBNKkcw7zwvhkQ==", + "version": "0.4.9", + "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.9.tgz", + "integrity": "sha512-0zQcHkU0tR4k8LgJigh/pAHsGmVLgOD8JSB573+FzpHmqz3NJNAp7qlu29jGTVp1v+Dd192H7bk0piLWBoHeig==", "requires": { "moment": "^2.29.0", "uuid": "^8.3.1" @@ -3151,6 +3156,36 @@ "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.32.tgz", "integrity": "sha512-XSCO6S7sWn9s3IUiBnthIm7hf9YDXeFGExQcDnTJkRsrhENYWMO+fCUNpVOx7EX1R1aH65kQMoE1vLFoHdE35Q==" }, + "@walmart/metrics-mini-app": { + "version": "0.0.27", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.0.27.tgz", + "integrity": "sha512-EA1jNiBxr8ZiVdIttuIOphv0RPG7RzdTUw5aADE0UBkveBoSDIsMjgHKOArFMQzRW1JHlqCIYSskmJqZ5AF5fg==", + "requires": { + "@types/base-64": "^1.0.0", + "@walmart/react-native-env": "^0.1.0", + "apisauce": "^1.1.2", + "axios-cache-adapter": "^2.7.0", + "base-64": "^1.0.0", + "lodash": "^4.17.19", + "moment": "2.26.0", + "moment-timezone": "^0.5.33", + "numeral": "^2.0.6", + "reduxsauce": "^1.2.0", + "reselect": "^4.0.0" + }, + "dependencies": { + "base-64": { + "version": "1.0.0", + "resolved": "https://npme.walmart.com/base-64/-/base-64-1.0.0.tgz", + "integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==" + }, + "moment": { + "version": "2.26.0", + "resolved": "https://npme.walmart.com/moment/-/moment-2.26.0.tgz", + "integrity": "sha512-oIixUO+OamkUkwjhAVE18rAMfRJNsNe/Stid/gwHSOfHrOtw9EhAY2AHvdKZ/k/MggcYELFCJz/Sn2pL8b8JMw==" + } + } + }, "@walmart/moment-walmart": { "version": "1.0.4", "resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.4.tgz", --- package.json @@ -64,7 +64,8 @@ "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@walmart/allspark-health-survey-mini-app": "0.0.41", - "@walmart/allspark-home-mini-app": "0.4.0", + "@walmart/allspark-home-mini-app": "0.4.9", + "@walmart/metrics-mini-app": "0.0.27", "@walmart/allspark-me-mini-app": "0.1.0", "@walmart/ask-sam-mini-app": "0.29.19", "@walmart/config-components": "^1.0.26",
updating package files
updating package files
09b1a9d77f5d693aec5714ca45f29460e7588d15
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.8.0-beta.8", + "version": "3.8.1", "main": "dist/index.js", "files": [ "dist", @@ -93,7 +93,7 @@ "@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.15.8#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.15.8-6fb92a01bb.patch", "@walmart/react-native-sumo-sdk": "patch:@walmart/react-native-sumo-sdk@npm%3A2.8.0#~/.yarn/patches/@walmart-react-native-sumo-sdk-npm-2.8.0-31dfe1d845.patch", "@walmart/ui-components": "1.26.3-423-05e66f8", - "@walmart/wmconnect-mini-app": "3.7.0-beta.4", + "@walmart/wmconnect-mini-app": "3.7.1", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", @@ -200,10 +200,5 @@ "skipScope": false, "jiraPrefix": "JIRA_PROJECT" } - }, - "dependencies": { - "expo": "~52.0.46", - "react": "18.3.1", - "react-native": "0.76.9" } } --- yarn.lock @@ -8429,7 +8429,7 @@ __metadata: "@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.15.8#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.15.8-6fb92a01bb.patch" "@walmart/react-native-sumo-sdk": "patch:@walmart/react-native-sumo-sdk@npm%3A2.8.0#~/.yarn/patches/@walmart-react-native-sumo-sdk-npm-2.8.0-31dfe1d845.patch" "@walmart/ui-components": "npm:1.26.3-423-05e66f8" - "@walmart/wmconnect-mini-app": "npm:3.7.0-beta.4" + "@walmart/wmconnect-mini-app": "npm:3.7.1" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -8521,9 +8521,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.7.0-beta.4": - version: 3.7.0-beta.4 - resolution: "@walmart/wmconnect-mini-app@npm:3.7.0-beta.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.7.0-beta.4.tgz" +"@walmart/wmconnect-mini-app@npm:3.7.1": + version: 3.7.1 + resolution: "@walmart/wmconnect-mini-app@npm:3.7.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.7.1.tgz" peerDependencies: "@walmart/allspark-foundation": ">=7.12.0" "@walmart/gtp-shared-components": ^2.3.0-rc.0 @@ -8535,7 +8535,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/ba3d10cf05100344a12850fc3271b87ba1dbfc4c3f3fc5452c09a9d459d834da49dc15448cc6d41438cb1268db41b882a30793356d85a28ad82fdc0fb60d40b9 + checksum: 10c0/f4ccc96b90f37971c3c253c95db01407513ab779c184e93f012faa05b2802de5a80ffc8d995eac551d8497227b2f5ba194e0a99d470ee813cd0710b99b8321b4 languageName: node linkType: hard
feat(ui): update packages json
feat(ui): update packages json
c6dd80df873e7c3067e5a6175dd5edb9c87eceed
--- __tests__/__mocks__/@walmart/mod-flex-mini-app.js @@ -0,0 +1,3 @@ +module.exports = { + ModFlexMiniApp: 'ModFlexMiniApp', +}; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -86,6 +86,10 @@ Array [ component="GuardedRefrigerationApp" name="fixIt.alarms" /> + <Screen + component="GuardedModFlexMiniApp" + name="modFlex" + /> </Group> <Screen component="TimeClockScreen" --- android/app/src/main/res/raw/beep_error.mp3 Binary files /dev/null and b/android/app/src/main/res/raw/beep_error.mp3 differ --- ios/AllSpark.xcodeproj/project.pbxproj @@ -38,6 +38,7 @@ F049B46226E00E1400F817E3 /* LaunchScreen-Teflon.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F049B46126E00E1400F817E3 /* LaunchScreen-Teflon.storyboard */; }; F0C92FC2252B9F1E000B5582 /* Temp.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0C92FC1252B9F1E000B5582 /* Temp.swift */; }; F0F40C0D24DDA8F00001739F /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = F0F40C0C24DDA8F00001739F /* GoogleService-Info.plist */; }; + F36CF5E028A591F200C0FB4F /* beep_error.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = F36CF5DF28A591F200C0FB4F /* beep_error.mp3 */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -88,6 +89,7 @@ F0C92FC3252E3D2F000B5582 /* icomoon.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = icomoon.ttf; sourceTree = "<group>"; }; F0F40C0B24DCA31B0001739F /* AllSpark.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = AllSpark.entitlements; path = AllSpark/AllSpark.entitlements; sourceTree = "<group>"; }; F0F40C0C24DDA8F00001739F /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; }; + F36CF5DF28A591F200C0FB4F /* beep_error.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = beep_error.mp3; sourceTree = "<group>"; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -125,6 +127,7 @@ 06FF016091624EA0B919BA1E /* Resources */ = { isa = PBXGroup; children = ( + F36CF5DF28A591F200C0FB4F /* beep_error.mp3 */, AABEB98E27F3A824002C5BFB /* walmart_achievement_01.mp3 */, E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */, E9AD4B152679309900D8DDD4 /* clockin.mp3 */, @@ -316,6 +319,7 @@ 31E1724A255A601A0039C18F /* Bogle-MediumItalic.otf in Resources */, F0F40C0D24DDA8F00001739F /* GoogleService-Info.plist in Resources */, 9DAAFC32260A8C2900AE7889 /* LaunchScreen-Dev.storyboard in Resources */, + F36CF5E028A591F200C0FB4F /* beep_error.mp3 in Resources */, F049B46226E00E1400F817E3 /* LaunchScreen-Teflon.storyboard in Resources */, 31E1724D255A601A0039C18F /* Bogle-Thin.otf in Resources */, 31E1724E255A601A0039C18F /* Bogle-ThinItalic.otf in Resources */, --- ios/beep_error.mp3 Binary files /dev/null and b/ios/beep_error.mp3 differ --- package-lock.json @@ -5268,6 +5268,11 @@ } } }, + "@walmart/mod-flex-mini-app": { + "version": "1.0.0", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.0.0.tgz", + "integrity": "sha512-8Uk8Gri2BkVBk1gQDjjfDKJEpDG8RMtKZlBD0lO0QTXUp9MlJHFCvFNPVLE+o9fXRt8srxKdNqBkUOBlNrC6qA==" + }, "@walmart/moment-walmart": { "version": "1.0.4", "resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.4.tgz", @@ -19093,6 +19098,11 @@ "mdurl": "^1.0.0" } }, + "react-native-image-pan-zoom": { + "version": "2.1.12", + "resolved": "https://npme.walmart.com/react-native-image-pan-zoom/-/react-native-image-pan-zoom-2.1.12.tgz", + "integrity": "sha512-BF66XeP6dzuANsPmmFsJshM2Jyh/Mo1t8FsGc1L9Q9/sVP8MJULDabB1hms+eAoqgtyhMr5BuXV3E1hJ5U5H6Q==" + }, "react-native-image-picker": { "version": "4.7.3", "resolved": "https://npme.walmart.com/react-native-image-picker/-/react-native-image-picker-4.7.3.tgz", --- package.json @@ -94,6 +94,7 @@ "@walmart/manager-approvals-miniapp": "0.0.62", "@walmart/me-field-mini-app": "1.1.11", "@walmart/metrics-mini-app": "0.9.5", + "@walmart/mod-flex-mini-app": "1.0.0", "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.125.3", "@walmart/price-changes-mini-app": "^1.4.6", @@ -147,6 +148,7 @@ "react-native-get-random-values": "^1.5.1", "react-native-haptic-feedback": "^1.10.0", "react-native-hyperlink": "0.0.19", + "react-native-image-pan-zoom": "^2.1.12", "react-native-image-picker": "^4.0.6", "react-native-image-resizer": "1.4.5", "react-native-linear-gradient": "^2.5.6", --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -26,6 +26,7 @@ import {PriceChangesMiniApp} from '@walmart/price-changes-mini-app'; import {RefrigerationApp} from '@walmart/refrigeration-alarms-mini-app'; import {TimeClockScreen} from '@walmart/time-clock-mini-app'; import {InboxScreen} from '@walmart/inbox-mini-app'; +import {ModFlexMiniApp} from '@walmart/mod-flex-mini-app'; import {WhatsNewModal} from '../../whatsNew/WhatsNewModal'; import {WhatsNewScreen} from '../../whatsNew/WhatsNewScreen'; @@ -76,6 +77,10 @@ const WorkMiniApps = [ screenName: 'fixIt.alarms', component: RefrigerationApp, }, + { + screenName: 'modFlex', + component: ModFlexMiniApp, + }, ]; const ClockOutGuardedTaskItQuickAction = withClockOutGuard(TaskItQuickActions); --- src/translations/en-US.ts @@ -13,6 +13,7 @@ export const enUS = { '@walmart/iteminfo-mini-app': 'Item information', '@walmart/manager-approvals-miniapp': 'Manager Approvals', '@walmart/metrics-mini-app': 'Metrics', + '@walmart/mod-flex-mini-app': 'Mod Flex', '@walmart/payrollsolution_miniapp': 'Payroll', '@walmart/price-changes-mini-app': 'Price Changes', '@walmart/push-to-talk-mini-app': 'Push To Talk', --- src/translations/es-MX.ts @@ -13,6 +13,7 @@ export const esMX = { '@walmart/iteminfo-mini-app': 'Item information', '@walmart/manager-approvals-miniapp': 'Manager Approvals', '@walmart/metrics-mini-app': 'Metrics', + '@walmart/mod-flex-mini-app': 'Mod Flex', '@walmart/payrollsolution_miniapp': 'Payroll', '@walmart/price-changes-mini-app': 'Cambios de precios', '@walmart/push-to-talk-mini-app': 'Push To Talk', --- src/versions/constants.ts @@ -17,6 +17,7 @@ export const LISTED_DEPENDENCIES = [ '@walmart/iteminfo-mini-app', '@walmart/manager-approvals-miniapp', '@walmart/metrics-mini-app', + '@walmart/mod-flex-mini-app', '@walmart/payrollsolution_miniapp', '@walmart/price-changes-mini-app', '@walmart/push-to-talk-mini-app',
Integrate mod-flex-mini-app
Integrate mod-flex-mini-app
fbb766c338d0ed0b1191498a303d5000ea216c75
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", "@walmart/me-field-mini-app": "1.3.0", - "@walmart/metrics-mini-app": "0.12.5", + "@walmart/metrics-mini-app": "0.12.6", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", @@ -5524,9 +5524,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.12.5", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.12.5.tgz", - "integrity": "sha512-KNhI7lZOg1YkpjJ0VOAmqjFz8kpLoaafob/R90ot8/bE4RbouRosJQAbQDO8q7qbvI+/tNuO7g3cgx2rav9xyA==", + "version": "0.12.6", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.12.6.tgz", + "integrity": "sha512-1I1TQqxkIldPsVNSCqQZMUlDoJU34IguNEq5LZJgXekxjetNDmfpaPFV1RC1CnDlSX1S9/sFzR/PrwD+aZKkxA==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25347,9 +25347,9 @@ "version": "1.3.0" }, "@walmart/metrics-mini-app": { - "version": "0.12.5", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.12.5.tgz", - "integrity": "sha512-KNhI7lZOg1YkpjJ0VOAmqjFz8kpLoaafob/R90ot8/bE4RbouRosJQAbQDO8q7qbvI+/tNuO7g3cgx2rav9xyA==", + "version": "0.12.6", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.12.6.tgz", + "integrity": "sha512-1I1TQqxkIldPsVNSCqQZMUlDoJU34IguNEq5LZJgXekxjetNDmfpaPFV1RC1CnDlSX1S9/sFzR/PrwD+aZKkxA==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -100,7 +100,7 @@ "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", "@walmart/me-field-mini-app": "1.3.0", - "@walmart/metrics-mini-app": "0.12.5", + "@walmart/metrics-mini-app": "0.12.6", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14",
Bumping metrics version to 0.12.6
Bumping metrics version to 0.12.6
c9f979e74b9990d60beed0dbee28dfac4dfa8168
--- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx @@ -130,16 +130,6 @@ export const TeamSwitcher = ({ handleScrollToIndex(); }); - const handleScrollToIndexFailed = () => { - if (flatListRef.current) { - flatListRef.current.scrollToIndex({ - animated: false, - index: 0, - viewOffset: 0.5, - }); - } - }; - const isSalariedAndNotHomeOffice = isOffSite && empType === EMP_TYPE_SALARIED && !isHomeOffice; const isHourlyAndHomeOffice = @@ -205,7 +195,7 @@ export const TeamSwitcher = ({ setTeamSwitcherList(evaluatedTeamList); selectTeam( - findTeamByLabel(evaluatedTeamList, selectedTeamPreference) || + findTeamByLabel(evaluatedTeamList, selectedTeamPreference) ?? evaluatedSelectTeam ); }; @@ -375,7 +365,6 @@ export const TeamSwitcher = ({ horizontal={true} showsHorizontalScrollIndicator={false} ListEmptyComponent={renderEmptyList} - onScrollToIndexFailed={handleScrollToIndexFailed} onContentSizeChange={handleScrollToIndex} ListFooterComponent={ isOffSite ? <></> : <AddEditButton onPress={handleAddEditPress} />
pr comments fixed
pr comments fixed
e9608a0e8818ae3942e017a2b2d177d10e03d5f7
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.11-alpha.2", + "version": "1.0.11-alpha.3", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Update the hub version
Update the hub version
3ec5b804ec85df4bc38aa269947b6c651e8e2587
--- __mocks__/react-hook-form.js @@ -0,0 +1,9 @@ +module.exports = { + useForm: jest.fn(() => ({ + control: {}, + handleSubmit: jest.fn(), + formState: {isValid: true} + })), + Controller: jest.fn(({render}) => render({field: {}, fieldState: {}})), + useWatch: jest.fn(() => ({text: 'other'})), + }; \ No newline at end of file --- __tests__/appBlock/AppBlockingScreen.test.tsx @@ -56,4 +56,15 @@ describe('AppBlockingScreen', () => { {}, ); }); + + test('should not render update button when there is no urls', () => { + const data = {}; + (useSelector as jest.Mock).mockReturnValue(data); + + const {queryByTestId} = render(<AppBlockingScreen />); + + expect(queryByTestId('downloadButton')).toBeNull(); + expect(Telemetry.logScreenView).toHaveBeenCalledWith('core.appDisabledScreen'); + expect(Logger.info).toHaveBeenCalledWith('app disabled, prompting user', {}); + }); }); --- __tests__/auth/ConfirmSignoutPromptTest.tsx @@ -61,4 +61,15 @@ describe('ConfirmSignoutPrompt', () => { {}, ); }); + + it('renders correctly when modal.params is not provided', () => { + ConfirmSignoutPromptProps.modal.params = undefined + const {getByTestId, getByText} = render( + <ConfirmSignoutPrompt {...ConfirmSignoutPromptProps} />, + ); + expect(getByText(/signoutConfirmationDialog.header/i)).toBeTruthy(); + expect(getByText(/signoutConfirmationDialog.ios|signoutConfirmationDialog.android/i)).toBeTruthy(); + fireEvent.press(getByTestId('got_it_btn')); + expect(ConfirmSignoutPromptProps.modal.closeModal).toHaveBeenCalled(); + }); }); --- __tests__/auth/LoginErrorScreenTest.tsx @@ -14,8 +14,16 @@ import {Logger} from '../../src/core/Logger'; {code: 'ISSUE_2', 'en-US': 'Issue 2', 'es-MX': 'Problema 2'}, ], otherIssues: [ - {code: 'OTHER_1', 'en-US': 'Other 1', 'es-MX': 'Otro 1'}, - {code: 'OTHER_2', 'en-US': 'Other 2', 'es-MX': 'Otro 2'}, + {title: {'en-US': 'Other 2'}, + options: [ + {code: 'OPTION_1', 'en-US': 'Option 1'} + ], + code: 'OTHER_1', 'en-US': 'Other 1', 'es-MX': 'Otro 1'}, + {title: {'es-MX': 'Otro 2'}, + options: [ + {code: 'OPTION_1', 'en-US': 'Option 1'} + ], + code: 'OTHER_2', 'en-US': 'Other 2', 'es-MX': 'Otro 2'}, ], }), ), --- __tests__/auth/SectionCardTest.tsx @@ -0,0 +1,40 @@ +import React from 'react'; +import {render, fireEvent} from '@testing-library/react-native'; +import {SectionCard} from '../../src/auth/SectionCard'; + +const defaultProps = { + label: 'Test Label', + title: 'Test Title', + action: 'Test Action', + onAction: jest.fn(), + image: {uri: 'test-image'}, + testID: 'test-button', +}; + +describe('SectionCard', () => { + + it('sets accessibilityLabel to action when accessibilityActionLabel is not provided', () => { + const {getByTestId} = render(<SectionCard {...defaultProps} />); + + const button = getByTestId('test-button'); + expect(button.props.accessibilityLabel).toBe(defaultProps.action); + }); + + it('sets accessibilityLabel to accessibilityActionLabel when provided', () => { + const accessibilityActionLabel = 'Custom Accessibility Label'; + const {getByTestId} = render( + <SectionCard {...defaultProps} accessibilityActionLabel={accessibilityActionLabel} /> + ); + + const button = getByTestId('test-button'); + expect(button.props.accessibilityLabel).toBe(accessibilityActionLabel); + }); + + it('calls onAction when button is pressed', () => { + const {getByTestId} = render(<SectionCard {...defaultProps} />); + + const button = getByTestId('test-button'); + fireEvent.press(button); + expect(defaultProps.onAction).toHaveBeenCalled(); + }); +}); --- __tests__/changeStore/ChangeStoreModalTest.tsx @@ -114,12 +114,6 @@ describe('ChangeStoreModalTest', () => { mockStoreInfo.data.siteId = nextSite; await act(() => fireEvent.press(storeUpdateButton)); - // New Store info is fetched - expect(mockStoreInfo.fetch).toHaveBeenCalledWith({ - businessUnitNbr: nextSite, - countryCode: 'US' - }); - // Close Modal const closeButton = getByTestId('closeButton'); await act(() => fireEvent.press(closeButton));
test(ui): ALLSPARK-5941 add test case for auth files (#4113)
test(ui): ALLSPARK-5941 add test case for auth files (#4113) * test(ui): ALLSPARK-5941 add test case for auth files * test(ui): ALLSPARK-5941 lint fix
0c0be80e4f45e4b745c31b271ee3183e9daf4aee
--- package-lock.json @@ -5625,9 +5625,9 @@ } }, "@walmart/ui-components": { - "version": "1.5.0-beta.2", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.5.0-beta.2.tgz", - "integrity": "sha512-YxWYZtl9MKz3xzFesOZcGQw7hNyv9FoCO3av9jtRshqIlKEQoOO1OW3XBe1E1Ylrx7S4k9MbiyUURGhWMsMcng==", + "version": "1.5.0-rc.0", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.5.0-rc.0.tgz", + "integrity": "sha512-mZMI/EjTqSssI/5nC8ObPQpAvOJQGlg/1EjcQQYueADYV/au93u9Ua1qUcNifOEWWeJMBIYPJOwggHCfklxJ4A==", "requires": { "react-hook-form": "^7.33.1", "react-native-calendars": "1.299.0", --- package.json @@ -119,7 +119,7 @@ "@walmart/shelfavailability-mini-app": "1.2.3", "@walmart/taskit-mini-app": "0.34.5-beta.1", "@walmart/time-clock-mini-app": "0.13.4", - "@walmart/ui-components": "1.5.0-beta.2", + "@walmart/ui-components": "v1.5.0-rc.0", "@walmart/welcomeme-mini-app": "0.71.0", "@walmart/wfm-ui": "0.2.23", "axios": "^0.26.1",
update ui-component version
update ui-component version
9967d323964203f9f1d5c49587530ac3f3645f2a
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.23.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.22.0...v1.23.0) (2025-03-31) + + +### Features + +* **ui:** update roster and wmconnect mini app version ([95da794](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/95da79459f1b8d20be820c26dbad40af44372916)) + # [1.22.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.21.0...v1.22.0) (2025-03-28) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.22.0", + "version": "1.23.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 1.23.0 [skip ci]
chore(release): 1.23.0 [skip ci] # [1.23.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.22.0...v1.23.0) (2025-03-31) ### Features * **ui:** update roster and wmconnect mini app version ([95da794](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/95da79459f1b8d20be820c26dbad40af44372916))
12bc01d77d4ade3a31160062a1ef3b0f8590d7ac
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/HubHeader/HubHeader.tsx @@ -19,6 +19,7 @@ export const RosterPageHeader = ({ rightTextLink = false, onPressRightTextLink = () => {}, textLinkLabel = '', + backgroundColorOverride, }: RosterHeaderProps) => { const TeamImage = useAllsparkImage(); const styles = useMemo( @@ -32,7 +33,10 @@ export const RosterPageHeader = ({ ); return ( <> - <View testID='pageHeader-container' style={styles.container}> + <View + testID='pageHeader-container' + style={{ ...styles.container, ...backgroundColorOverride }} + > <View style={styles.contentWrapper}> <View style={styles.headerOuterContainer}> <Heading testID='pageHeader-title' UNSAFE_style={styles.header}> --- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/HubHeader/types.ts @@ -15,4 +15,5 @@ export default interface RosterHeaderProps extends RightPanelConfig { onPress: () => void; Icon: React.ReactElement; }>; + backgroundColorOverride?: { backgroundColor: string }; } --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/AllSupplyTeamsList/AllSupplyTeamsList.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import { RosterPageHeader } from '../../../Shared/Components/HubHeader'; +import { SectionList, View } from 'react-native'; +import { SupplyChainTeam } from '../../Screens/EditSavedTeamModal/types'; +import { Body } from '@walmart/gtp-shared-components'; +import { PillTeamListItem } from '../../../Shared/Components/PillTeamListItem/PillTeamListItem'; +import { sortedSections } from '../../Screens/EditSavedTeamModal/mockTeamsData'; +import { Images } from '../../Images/images'; +import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; +import style from './style'; + +interface AllSupplyTeamListProps { + sections: Array<{ title: string; data: SupplyChainTeam[] }>; + handleSelection: (item: SupplyChainTeam) => void; + selectedItems: string[]; +} + +export const AllSupplyTeamList: React.FC<AllSupplyTeamListProps> = ({ + sections = sortedSections, + handleSelection, + selectedItems, +}) => { + const { t } = useAllsparkTranslation(); + + return ( + <> + <RosterPageHeader + title={t('expandedTeamShiftModal.AllTeams.title')} + subText={t('expandedTeamShiftModal.AllTeams.subText')} + backgroundColorOverride={style.headerContainer} + /> + <SectionList + style={style.sectionContainer} + sections={sections} + keyExtractor={(item, index) => item.teamName + index} + stickySectionHeadersEnabled={false} + contentContainerStyle={{}} + renderSectionHeader={({ section }) => ( + <View testID='all-teams-list-section'> + <Body UNSAFE_style={style.title}>{section.title}</Body> + </View> + )} + renderItem={({ item, index }) => ( + <PillTeamListItem + isSelected={selectedItems.includes(item.teamName)} + key={`team-${item.teamName}-${index}`} + teamName={item.teamName} + teamId={item.teamId} + onSelect={() => handleSelection(item)} + teamImage={Images['TEAM001']} + /> + )} + ItemSeparatorComponent={() => <View style={style.divider} />} + /> + </> + ); +}; --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/AllSupplyTeamsList/style.ts @@ -0,0 +1,25 @@ +import { colors } from '@walmart/gtp-shared-components/dist'; +import { StyleSheet } from 'react-native'; + +export default StyleSheet.create({ + sectionContainer: { + flex: 1, + marginHorizontal: 10, + }, + headerContainer: { + backgroundColor: colors.white, + }, + title: { + fontSize: 16, + fontWeight: 'bold', + marginStart: 10, + marginVertical: 10, + }, + headerContent: { + backgroundColor: colors.white, + paddingBottom: 20, + }, + divider: { + margin: 5, + }, +}); --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ExpandedTeamShift/style.ts @@ -1,9 +1,11 @@ +import { colors } from '@walmart/gtp-shared-components'; import { StyleSheet } from 'react-native'; export default StyleSheet.create({ container: { marginLeft: 16, marginRight: 16, + backgroundColor: colors.white, }, divider: { marginTop: 40, --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/EditSavedTeamModal/mockTeamsData.ts @@ -1,4 +1,5 @@ import { SupplyChainTeam } from './types'; +import { customSorter } from '../../Utils/utils'; export const mockGetSupplyChainTeamsByStoreQueryResponse = { data: { @@ -167,5 +168,13 @@ const createTeamsSectionsByOpsArea = (teams: SupplyChainTeam[]) => { }; export const mockSections = createTeamsSectionsByOpsArea( - mockGetSupplyChainTeamsByStoreQueryResponse.data.supplyChainTeamsByStore.teams + mockGetSupplyChainTeamsByStoreQueryResponse.data.supplyChainTeamsByStore + .teams as unknown as SupplyChainTeam[] ); + +export const sortedSections = mockSections + .sort((a, b) => customSorter(a, b, 'title')) + .map((section) => ({ + ...section, + data: section.data.sort((a, b) => customSorter(a, b, 'teamName')), + })); --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/EditSavedTeamModal/types.ts @@ -27,4 +27,6 @@ export interface EditSavedTeamSectionProps { sections?: Array<{ title: string; data: SupplyChainTeam[] }>; selectedTeams: string[]; handleSelection: (name: string) => void; + headerTitle: string; + subTitle: string; } --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Utils/utils.ts @@ -0,0 +1,25 @@ +export const ASC_SORT = -1; +export const DESC_SORT = 1; +export const NO_SORT = 0; + +/** + * + * @param ObjA + * @param ObjB + * @param key - values will be compared based on passed in key (key must be keyof ObjA) + * @returns + */ + +export const customSorter = <T>(objA: T, ObjB: T, key: keyof T): number => { + if (objA[key] && ObjB[key]) { + if (objA[key] > ObjB[key]) { + return DESC_SORT; + } else if (objA[key] < ObjB[key]) { + return ASC_SORT; + } else { + return NO_SORT; + } + } else { + return NO_SORT; + } +}; --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts @@ -40,7 +40,7 @@ export const enUS = { subText: 'Choose the team or group you would like to view', }, AllTeams: { - title: 'All Teams', + title: 'All Teams in your store', subText: 'View any team, anytime, by selecting one below.', }, }, @@ -88,7 +88,7 @@ export const esMX: typeof enUS = { subText: 'Elija el equipo o grupo que desea ver', }, AllTeams: { - title: 'Todos los equipos', + title: 'Todos los equipos de tu tienda', subText: 'Vea cualquier equipo, en cualquier momento, seleccionando uno a continuación.', },
feat(ui): UI component implementation
feat(ui): UI component implementation
a36e7adbae668b25f75f11400c69568d69dacaf0
--- react-native.config.js @@ -1,7 +1,7 @@ module.exports = { project: { - ios: { }, - android: { }, + ios: {}, + android: {}, }, dependencies: { ...(process.env.CI --- scripts/updateAndroidProjectConfig.sh @@ -16,7 +16,7 @@ STRINGS_XML="android/app/src/main/res/values/strings.xml" RN_CONFIG_JS="react-native.config.js" RN_CONFIG_PROD_APP_MANIFEST_PATH="{manifestPath: '\/app\/src\/main\/AndroidManifest.xml'}," -RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH="{ }," +RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH="{}," RN_CONFIG_JS_PROD="react-native-prod.config.js" RN_CONFIG_JS_DEV_BETA="react-native-dev_beta.config.js" @@ -90,8 +90,7 @@ echo "Updating CodePushDeploymentKey to ${CODE_PUSH_KEY} in ${STRINGS_XML}" sed -Ei'' "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/" ${STRINGS_XML} echo "Updating Manifest path in react-native.config.js to ${RN_CONFIG_MANIFEST_PATH} in ${RN_CONFIG_JS}" -sed -Ei'' "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/" ${RN_CONFIG_JS} -# cat ${RN_CONFIG_JS_SELECTED} > ${RN_CONFIG_JS} +cat ${RN_CONFIG_JS_SELECTED} > ${RN_CONFIG_JS} fi echo "Printing ${APP_GRADLE}"
Reverting RN Config JS back to working code
Reverting RN Config JS back to working code
cf75577bbd15c9d66e28e257e4c953e5cc463d2c
--- package-lock.json @@ -3385,9 +3385,9 @@ } }, "@walmart/manager-approvals-miniapp": { - "version": "0.0.47", - "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.47.tgz", - "integrity": "sha512-tgfIOdmbb+3h2/PZDpzkdh+0tK8HsokY+F971IMjXLffgiSZ+uqd6yklRUFNCLmL5Uv6hlvmNltUGHxJRXSBiQ==" + "version": "0.0.49", + "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.49.tgz", + "integrity": "sha512-gIYsNFhVWVo9VUTC+SePfXI5y8ERj0Z/mR7Q26qn7yHCcCvn9nCU6a1b8HHx6jzBwsGOPSum2gFG9pYMc+478g==" }, "@walmart/metrics-mini-app": { "version": "0.4.11", --- package.json @@ -84,7 +84,7 @@ "@walmart/ims-print-services-ui": "0.0.32", "@walmart/inbox-mini-app": "0.0.105", "@walmart/iteminfo-mini-app": "2.0.6", - "@walmart/manager-approvals-miniapp": "0.0.47", + "@walmart/manager-approvals-miniapp": "0.0.49", "@walmart/metrics-mini-app": "0.4.11", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.34",
Manager approval version bump
Manager approval version bump
68a0870bab2242bf8d4a923fdba635d8b119bcd5
--- packages/allspark-foundation-hub/src/SupplyChain/Screens/EditSavedTeamModal/mockTeamsData.ts @@ -745,8 +745,8 @@ export const mockGetSupplyChainTeamsByStoreQueryResponse = { }, }; -const createTeamsSectionsByOpsArea = (teams: SupplyChainTeam[]) => { - const groupedTeams = teams.reduce( +const createTeamsSectionsByOpsArea = (supplyChainTeams: SupplyChainTeam[]) => { + const groupedTeams = supplyChainTeams.reduce( (acc: Record<string, SupplyChainTeam[]>, team: SupplyChainTeam) => { const opsareaName = team.opsareaName || 'Others'; if (!acc[opsareaName]) {
Update lint error
Update lint error
de08b5b2ae255931603d31ca111e5ab9ce69d5ec
--- ios/Podfile.lock @@ -584,7 +584,7 @@ PODS: - React - react-native-get-random-values (1.5.1): - React-Core - - react-native-logger (1.22.0): + - react-native-logger (1.23.0): - React - react-native-netinfo (5.9.7): - React-Core @@ -740,14 +740,14 @@ PODS: - RNWMSSOLibrary (1.1.0): - AppAuth - React - - SSO (= 1.2.2) + - SSO (= 1.2.4) - SDWebImage (5.10.4): - SDWebImage/Core (= 5.10.4) - SDWebImage/Core (5.10.4) - SDWebImageWebPCoder (0.6.1): - libwebp (~> 1.0) - SDWebImage/Core (~> 5.7) - - SSO (1.2.2): + - SSO (1.2.4): - AppAuth - Starscream (3.0.6) - Yoga (1.14.0) @@ -1051,7 +1051,7 @@ SPEC CHECKSUMS: React-jsinspector: b14e62ebe7a66e9231e9581279909f2fc3db6606 react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a react-native-get-random-values: 41f0c91ac0da870e47b307e07752e9e54bc2dc7e - react-native-logger: 88537463b366327369573223d504dc806fccde02 + react-native-logger: c8aea916970f0e4a15f991fdc1ecd7af13896936 react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f react-native-ptt-module: 5349e9414aa2cbf015aeae856d873767368a0287 @@ -1098,10 +1098,10 @@ SPEC CHECKSUMS: RNSketchCanvas: 6939b18677cd1794151cc3d8eb5a0a2158a4a05b RNSVG: ce9d996113475209013317e48b05c21ee988d42e RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59 - RNWMSSOLibrary: 8b28f6357a0570a2896a0d13a0ef6b3c03508394 + RNWMSSOLibrary: b72131bc9f9869ba1a2055d077ecc1c04076aad6 SDWebImage: c666b97e1fa9c64b4909816a903322018f0a9c84 SDWebImageWebPCoder: d0dac55073088d24b2ac1b191a71a8f8d0adac21 - SSO: 3a9b51aaaab6c365845286cf0a456f586cc35d95 + SSO: fb8058025a3067a9df2a0b0e6abe6d361674437f Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 Yoga: 7740b94929bbacbddda59bf115b5317e9a161598 --- package-lock.json @@ -12305,9 +12305,9 @@ "integrity": "sha512-Ls9qiNZzW/OLFoI25wfjjAcrf2DZ975hn2vr6U9gyuxi2nooVbzQeFoQS5vQcbCt9QX5NY8ASEEAtlLdIa6KVg==" }, "react-native-ssmp-sso-allspark": { - "version": "1.0.2", - "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.0.2.tgz", - "integrity": "sha512-pFLFOALEOoeDbiqZH8A79AgpvOMUxW9bi6EKV2mURZMt0VA08E3KKcz0DJTVQJElPhmpb8FhcOFn7hIOA/9JFg==" + "version": "1.0.3", + "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.0.3.tgz", + "integrity": "sha512-cqAFlqmHNOaNOBrLvZOX7B35lkzjtLBBd93aL1CFLtSZfxoj8FRfBv1k58NzBkD/rMEYnN6UG+lAROjfltroVg==" }, "react-native-sumo-sdk": { "version": "2.7.4-rc.9", --- package.json @@ -96,7 +96,7 @@ "react-native-screens": "^2.10.1", "react-native-sha256": "^1.3.6", "react-native-splash-screen": "^3.2.0", - "react-native-ssmp-sso-allspark": "1.0.2", + "react-native-ssmp-sso-allspark": "1.0.3", "react-native-sumo-sdk": "^2.7.4-rc.9", "react-native-svg": "^12.1.0", "react-native-tab-view": "^2.15.2",
Update SSO version to 1.0.3 (#403)
Update SSO version to 1.0.3 (#403) Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
60bf0dfca18c65e106ac83832678d9fc5a2b5f44
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.2.0-alpha.10", + "version": "3.2.0-alpha.11", "main": "dist/index.js", "files": [ "dist",
feat(ui): update roster version
feat(ui): update roster version
1355732c5ef9d32ab15f19da564a64d297d859f2
--- targets/US/android/app/build.gradle @@ -106,8 +106,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 930 - versionName "1.22.0" + versionCode 932 + versionName "1.24.0" } signingConfigs { debug { --- targets/US/ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <string>APPL</string> <key>CFBundleShortVersionString</key> <!-- @customization - default: <string>$(MARKETING_VERSION)</string> --> - <string>1.22.0</string> + <string>1.24.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> --- targets/US/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-us", - "version": "1.22.0", + "version": "1.24.0", "private": true, "scripts": { "android": "react-native run-android",
version bump to 1.24.0
version bump to 1.24.0
359e00a05674eef54645f464dd5dbe0defcaba6c
--- packages/allspark-foundation-hub/src/Store/Hooks/useGetAllTeamsOfStore.ts @@ -31,6 +31,7 @@ export const allTeamsSorter = ( export const useGetAllTeamsOfStore = () => { const logger = LoggerService.getContainerInstance(); + const isSiteDC: boolean = useSelector(SiteSelectors.getWorkingSiteIsDC); const homeSite = useSelector(UserSelectors.getHomeSite); const workingSite = useSelector(UserSelectors.getWorkingSite); const appVersion = useSelector(DeviceSelectors.getAppVersion); @@ -56,7 +57,7 @@ export const useGetAllTeamsOfStore = () => { date: moment().format('YYYY-MM-DD'), storeNbr: workingSite as string, }, - skip: !isOffSite, + skip: !isOffSite || isSiteDC || !workingSite || !countryCode, errorPolicy: 'all', onCompleted: (response: any) => { logger.info('useGetTeamsByStoreQuery response', { --- packages/allspark-foundation-hub/src/Store/Hooks/useTeamsByStore.ts @@ -9,6 +9,7 @@ import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { Team, PLATFORM_NAME } from '../../Shared'; import { useUserPersonaType } from '../../Shared/Hooks/useUserPersonaType'; import { useState } from 'react'; +import { SiteSelectors } from '@walmart/allspark-foundation/Site'; export const useTeamsByStore = () => { const logger = LoggerService.getContainerInstance(); @@ -21,6 +22,8 @@ export const useTeamsByStore = () => { UserSelectors.getCountryCode ); const appVersion = useSelector(DeviceSelectors.getAppVersion); + const isSiteDC: boolean = useSelector(SiteSelectors.getWorkingSiteIsDC); + const [error, setError] = useState<any>(undefined); const { data, loading, refetch, networkStatus } = useGetTeamsByStoreQuery({ @@ -31,6 +34,7 @@ export const useTeamsByStore = () => { includeManagement: true, }, errorPolicy: 'all', + skip: isSiteDC || !storeNbr || !countryCode, onCompleted: () => { logger.info('useGetTeamsByStoreQuery', { message: 'useGetTeamsByStoreQuery completed', --- packages/allspark-foundation-hub/src/Store/Hooks/useUserPreferences.ts @@ -7,6 +7,7 @@ import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; import { StoreImages as Images, PLATFORM_NAME } from '../../Shared'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { TeamSwitcherTypes } from '../Modules'; +import { SiteSelectors } from '@walmart/allspark-foundation/Site'; export const preferenceSorter = ( data: TeamSwitcherTypes[] @@ -35,6 +36,7 @@ export const preferenceSorter = ( export const useUserPreferences = () => { const logger = LoggerService.getContainerInstance(); const storeId: string | undefined = useSelector(UserSelectors.getWorkingSite); + const isSiteDC: boolean = useSelector(SiteSelectors.getWorkingSiteIsDC); const win = useSelector(UserSelectors.getWin); const appVersion = useSelector(DeviceSelectors.getAppVersion); const [teamData, setTeamData] = useState<Array<any>>([]); @@ -51,6 +53,7 @@ export const useUserPreferences = () => { }, fetchPolicy: 'cache-and-network', errorPolicy: 'all', + skip: isSiteDC || !storeId || !win, context: { headers: { 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, --- packages/allspark-foundation-hub/src/SupplyChain/Hooks/useGetSupplyChainTeamPreference.ts @@ -10,11 +10,14 @@ import { SC_ManagerExperienceSelectors, } from '../Redux'; import { useState } from 'react'; +import { SiteSelectors } from '@walmart/allspark-foundation/Site'; export const useGetSupplyChainTeamsPreferenceQuery = () => { const dispatch = useDispatch(); const workingSite: string | undefined = useSelector( UserSelectors.getWorkingSite ); + const isSiteDC: boolean = useSelector(SiteSelectors.getWorkingSiteIsDC); + const [onCompleted, setOnCompleted] = useState(false); const win = useSelector(UserSelectors.getWin); const logger = LoggerService.getContainerInstance(); @@ -35,6 +38,7 @@ export const useGetSupplyChainTeamsPreferenceQuery = () => { }, errorPolicy: 'all', fetchPolicy: 'cache-and-network', + skip: !isSiteDC || !workingSite || !win, variables: { businessUnitNumber: Number(workingSite), walmartIdentificationNumber: String(win), --- packages/allspark-foundation-hub/src/SupplyChain/Hooks/useGetSupplyChainTeamsByStore.ts @@ -13,6 +13,7 @@ import { SC_ManagerExperienceSelectors, } from '../Redux'; import { useState } from 'react'; +import { SiteSelectors } from '@walmart/allspark-foundation/Site'; export const createTeamsSectionsByOpsArea = ( supplyChainTeams: SupplyChainTeam[] @@ -52,6 +53,7 @@ export const sortedSections = ( export const useGetSupplyChainAllTeamsBySite = () => { const dispatch = useDispatch(); const logger = LoggerService.getContainerInstance(); + const isSiteDC: boolean = useSelector(SiteSelectors.getWorkingSiteIsDC); const homeSite = useSelector(UserSelectors.getHomeSite); const workingSite = useSelector(UserSelectors.getWorkingSite); const isOffSite = homeSite && workingSite && homeSite !== workingSite; @@ -81,7 +83,7 @@ export const useGetSupplyChainAllTeamsBySite = () => { date: moment().format('YYYY-MM-DD'), }, errorPolicy: 'all', - // skip: !isOffSite, + skip: !isOffSite || !isSiteDC || !workingSite || !countryCode, fetchPolicy: 'cache-first', onCompleted: (response) => { const sections = createTeamsSectionsByOpsArea( --- packages/allspark-foundation-hub/src/SupplyChain/Hooks/useSupplyChainShifts.tsx @@ -6,6 +6,7 @@ import { UserSelectors } from '@walmart/allspark-foundation/User'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; import { DeviceSelectors } from '@walmart/allspark-foundation/Device'; +import { SiteSelectors } from '@walmart/allspark-foundation/Site'; export type SupplyChainShifts = { number: number; @@ -20,6 +21,7 @@ export const useGetSupplyChainShifts = () => { const countryCode: string | undefined = useSelector( UserSelectors.getCountryCode ); + const isSiteDC: boolean = useSelector(SiteSelectors.getWorkingSiteIsDC); const handleErrorObj = (response: any) => { logger.error('useGetSupplyChainShiftsQuery error', { @@ -43,6 +45,7 @@ export const useGetSupplyChainShifts = () => { errorPolicy: 'all', notifyOnNetworkStatusChange: true, fetchPolicy: 'cache-first', + skip: !isSiteDC || !countryCode, onCompleted: (data) => { if (!data?.supplyChainShifts?.length) { handleErrorObj(response);
feat(ui): update manager experience queries for Drop 31
feat(ui): update manager experience queries for Drop 31
ea4c24a64c5ccca95b9a80c4dd791efac27238f2
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.10", + "version": "1.15.11", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.13", + "@walmart/roster-mini-app": "2.12.14", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -6473,7 +6473,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.12.13" + "@walmart/roster-mini-app": "npm:2.12.14" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6654,9 +6654,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.12.13": - version: 2.12.13 - resolution: "@walmart/roster-mini-app@npm:2.12.13" +"@walmart/roster-mini-app@npm:2.12.14": + version: 2.12.14 + resolution: "@walmart/roster-mini-app@npm:2.12.14" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6698,7 +6698,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/3c52bdff6d16f0d830fda60520adfb24d6e630fca85122c21299c4c0c2e4528abd5c9fcd280428493dcfa40770a0d7f1fdd10590a1f6c26d392d0458409f6c51 + checksum: 10c0/994b793474b8ad0331998ed6b3bf1b032ad77ce4b31ad4db6c1f3a06b2e80ae6f4a72864522213895d747f29bb4f1332af530a451fc738321142df881cdb3fa1 languageName: node linkType: hard
Update roster and myteam version
Update roster and myteam version
3083206bc74f2eb68a08e976ecc7288f8a5a80bb
--- __tests__/navigation/utils.test.ts @@ -3,7 +3,6 @@ import { goToIndividualSchedule, } from '../../src/navigation/utils'; import {navigate} from '@walmart/react-native-shared-navigation'; -import { after } from "lodash"; jest.mock('@walmart/react-native-shared-navigation', () => ({ ...jest.requireActual('@walmart/react-native-shared-navigation'), @@ -13,7 +12,7 @@ jest.mock('@walmart/react-native-shared-navigation', () => ({ describe('Navigation Utils', () => { afterEach(() => { jest.resetAllMocks(); - }) + }); it('calls goToWeeklySchedule with params', () => { goToWeeklySchedule(['11111', '00900900'], 'testTeam');
fix lint
fix lint
fc0b475f7d15543345156f1e3a6b5663aa45ba56
--- __tests__/harness/firestore/channelsProvider.ts --- __tests__/harness/firestore/presenceProvider.ts --- __tests__/harness/index.tsx @@ -16,6 +16,7 @@ import { } from '@walmart/core-services/Environment/index'; import {EnvType} from '@walmart/core-services/Environment/types'; import {ChannelsContext} from '../../src/channels/context'; +import {PresenceContext} from '../../src/presence/context'; const rootReducer = reducerManager.getRootReducer(); @@ -63,9 +64,11 @@ export const renderWithProviders: typeof render = ( <EnvironmentProvider env={envType ? {...envConfig, envType} : envConfig}> <I18nextProvider i18n={i18n}> - <ChannelsContext.Provider value={{}}> - {children} - </ChannelsContext.Provider> + <PresenceContext.Provider value={{}}> + <ChannelsContext.Provider value={{}}> + {children} + </ChannelsContext.Provider> + </PresenceContext.Provider> </I18nextProvider> </EnvironmentProvider> </ReduxProvider> --- container/index.tsx @@ -77,7 +77,7 @@ const MyTeamStackNav = () => { <MyTeam.Navigator screenOptions={{headerMode: 'float', headerShown: false}}> <MyTeam.Screen name={APP_CONTAINER_SCREEN_NAME} component={TextingMiniApp} options={{headerShown: false}} /> </MyTeam.Navigator> - )x + ) } const RootApp = () => ( --- __tests__/harness/firestore/channelsProvider.ts --- __tests__/harness/firestore/presenceProvider.ts --- __tests__/harness/index.tsx @@ -16,6 +16,7 @@ import { } from '@walmart/core-services/Environment/index'; import {EnvType} from '@walmart/core-services/Environment/types'; import {ChannelsContext} from '../../src/channels/context'; +import {PresenceContext} from '../../src/presence/context'; const rootReducer = reducerManager.getRootReducer(); @@ -63,9 +64,11 @@ export const renderWithProviders: typeof render = ( <EnvironmentProvider env={envType ? {...envConfig, envType} : envConfig}> <I18nextProvider i18n={i18n}> - <ChannelsContext.Provider value={{}}> - {children} - </ChannelsContext.Provider> + <PresenceContext.Provider value={{}}> + <ChannelsContext.Provider value={{}}> + {children} + </ChannelsContext.Provider> + </PresenceContext.Provider> </I18nextProvider> </EnvironmentProvider> </ReduxProvider> --- container/index.tsx @@ -77,7 +77,7 @@ const MyTeamStackNav = () => { <MyTeam.Navigator screenOptions={{headerMode: 'float', headerShown: false}}> <MyTeam.Screen name={APP_CONTAINER_SCREEN_NAME} component={TextingMiniApp} options={{headerShown: false}} /> </MyTeam.Navigator> - )x + ) } const RootApp = () => (
adding blank providers to harness
adding blank providers to harness
ca3c4eea7979e22df3e68e9f0f69ae17da341019
--- targets/US/package.json @@ -84,7 +84,7 @@ "@walmart/allspark-utils": "6.5.0", "@walmart/amp-mini-app": "1.1.98", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.28.17", + "@walmart/ask-sam-mini-app": "1.28.21", "@walmart/associate-listening-mini-app": "1.2.10", "@walmart/attendance-mini-app": "3.96.2", "@walmart/avp-feature-app": "0.10.19", --- yarn.lock @@ -6292,9 +6292,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ask-sam-mini-app@npm:1.28.17": - version: 1.28.17 - resolution: "@walmart/ask-sam-mini-app@npm:1.28.17::__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.28.17.tgz" +"@walmart/ask-sam-mini-app@npm:1.28.21": + version: 1.28.21 + resolution: "@walmart/ask-sam-mini-app@npm:1.28.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.28.21.tgz" dependencies: apisauce: "npm:^1.1.2" numeral: "npm:^2.0.6" @@ -6339,7 +6339,7 @@ __metadata: react-native-wm-voice-text: ">=0.3" reselect: ">=4" victory-native: ">=36.5" - checksum: 10c0/43da61568abdb0b94d9e120204d79efa968629c9a8e7e9a20859f6997b8804efb6af21aeaf0b9a18ea73ffa9fa70face713e72bd9eca032a6b61bfd8701ebe2d + checksum: 10c0/c6190d3a023559c46b56ce39ae07dbf0db6e8033b4018cc13606cac8783d4f84640e3b308ba8661e6db4b31891d189d666bd07c9c34c06e8a3541da093d77db7 languageName: node linkType: hard @@ -7381,7 +7381,7 @@ __metadata: "@walmart/allspark-utils": "npm:6.5.0" "@walmart/amp-mini-app": "npm:1.1.98" "@walmart/ask-sam-chat-components": "npm:^0.2.7" - "@walmart/ask-sam-mini-app": "npm:1.28.17" + "@walmart/ask-sam-mini-app": "npm:1.28.21" "@walmart/associate-listening-mini-app": "npm:1.2.10" "@walmart/attendance-mini-app": "npm:3.96.2" "@walmart/avp-feature-app": "npm:0.10.19"
version bump to 21 - asksam - ios nearby locations bug fix
version bump to 21 - asksam - ios nearby locations bug fix
b24ef11d4204dfadb3b8cca669df9e6606e8c342
--- app.config.US.ts @@ -138,6 +138,7 @@ const CONFIG: ExpoConfig = { 'com.zebra.rfd8X00_easytext', 'com.zebra.scanner.SSI', ], + ITSAppUsesNonExemptEncryption: false, }, privacyManifests: { NSPrivacyAccessedAPITypes: [
chore(config): ALLSPARK-5708 update Info.plist (#4063)
chore(config): ALLSPARK-5708 update Info.plist (#4063) * chore(config): ALLSPARK-5708 update Info.plist * chore(config): ALLSPARK-5708 lint fix
90ee9f7873593bbb4536aab86328d9f6a5ab64f0
--- core/__tests__/startup/AuthFlowTest.ts @@ -10,13 +10,17 @@ import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation' describe('isSilentSignInError', () => { it('returns true for silent error', () => { - const error = new Error('Oh boy...Get user failed. Thats not good!'); - expect(isSilentSignInError(error)).toEqual(true); + const {name, message} = new Error( + 'Oh boy...Get user failed. Thats not good!', + ); + expect(isSilentSignInError({name, message})).toEqual(true); }); it('returns false for not silent error', () => { - const error = new Error('Oh no! SSO is infected with a malicious virus!'); - expect(isSilentSignInError(error)).toEqual(false); + const {name, message} = new Error( + 'Oh no! SSO is infected with a malicious virus!', + ); + expect(isSilentSignInError({name, message})).toEqual(false); }); it('returns false for undefined error', () => {
Fix unit test for isSilentError
Fix unit test for isSilentError
40ab0c806e030c9c36f85b638e5b3b2a39c016d5
--- __tests__/components/ShiftSwitcherModal.test.tsx @@ -3,7 +3,6 @@ import {fireEvent, waitFor} from '@testing-library/react-native'; import {renderWithProviders} from '../harness'; import {ShiftSwitcherModal} from '../../src/components/ShiftSwitcherModal/ShiftSwitcherModal'; import * as hooks from '../../src/hooks'; -import {GetSupplyChainShiftsQueryResult} from '../../src/queries/getSupplyChainShifts'; // Mock the utility function used by the component jest.mock('../../src/utils/allTeams', () => ({ @@ -16,12 +15,12 @@ jest.mock('../../src/utils/allTeams', () => ({ // Mock GTP shared components jest.mock('@walmart/gtp-shared-components', () => { - const React = require('react'); + const ReactModule = require('react'); const {Text, TouchableOpacity, View} = require('react-native'); return { Button: ({onPress, testID, disabled, children, ...props}) => - React.createElement( + ReactModule.createElement( TouchableOpacity, { onPress, @@ -31,11 +30,11 @@ jest.mock('@walmart/gtp-shared-components', () => { accessibilityState: {disabled}, ...props, }, - React.createElement(Text, null, children), + ReactModule.createElement(Text, null, children), ), Radio: ({label, checked, onPress, testID}) => - React.createElement( + ReactModule.createElement( TouchableOpacity, { testID: testID, @@ -43,16 +42,16 @@ jest.mock('@walmart/gtp-shared-components', () => { accessibilityRole: 'radio', accessibilityState: {checked}, }, - React.createElement(Text, null, label), + ReactModule.createElement(Text, null, label), ), Body: ({children, UNSAFE_style}) => - React.createElement(Text, {style: UNSAFE_style}, children), + ReactModule.createElement(Text, {style: UNSAFE_style}, children), - CloseIcon: () => React.createElement(View, {}), + CloseIcon: () => ReactModule.createElement(View, {}), IconButton: ({onPress, testID, children}) => - React.createElement( + ReactModule.createElement( TouchableOpacity, { testID, @@ -62,7 +61,7 @@ jest.mock('@walmart/gtp-shared-components', () => { children, ), - FormGroup: ({children}) => React.createElement(View, null, children), + FormGroup: ({children}) => ReactModule.createElement(View, null, children), colors: { white: '#FFFFFF', @@ -103,19 +102,19 @@ jest.mock('@walmart/allspark-foundation-hub', () => ({ primaryButtonText, handlePrimaryButtonPress, }) => { - const React = require('react'); + const ReactModule = require('react'); const {View, Text, TouchableOpacity} = require('react-native'); - return React.createElement(View, {testID: 'error-screen'}, [ - React.createElement(Text, {key: 'title'}, errorTitle), - React.createElement(Text, {key: 'message'}, errorMessage), - React.createElement( + return ReactModule.createElement(View, {testID: 'error-screen'}, [ + ReactModule.createElement(Text, {key: 'title'}, errorTitle), + ReactModule.createElement(Text, {key: 'message'}, errorMessage), + ReactModule.createElement( TouchableOpacity, { key: 'button', onPress: handlePrimaryButtonPress, testID: 'refresh-button', }, - React.createElement(Text, null, primaryButtonText), + ReactModule.createElement(Text, null, primaryButtonText), ), ]); }, @@ -176,21 +175,24 @@ describe('ShiftSwitcherModal Component', () => { }); beforeEach(() => { - jest.spyOn(hooks, 'useSupplyChainShifts').mockReturnValue({ - loading: false, - error: undefined, - refetch: jest.fn(), - data: { - supplyChainShifts: [ - {shiftId: '1', shiftName: 'A1'}, - {shiftId: '2', shiftName: 'A2'}, - {shiftId: '3', shiftName: 'A3'}, - {shiftId: '4', shiftName: 'B1'}, - {shiftId: '5', shiftName: 'B2'}, - {shiftId: '6', shiftName: 'B3'}, - ], - }, - } as unknown as GetSupplyChainShiftsQueryResult); + jest + .spyOn(hooks, 'useSupplyChainShifts') + // @ts-ignore - We only need partial implementation for tests + .mockReturnValue({ + loading: false, + error: undefined, + refetch: jest.fn(), + data: { + supplyChainShifts: [ + {__typename: 'SupplyChainShift', number: 1, name: 'A1'}, + {__typename: 'SupplyChainShift', number: 2, name: 'A2'}, + {__typename: 'SupplyChainShift', number: 3, name: 'A3'}, + {__typename: 'SupplyChainShift', number: 4, name: 'B1'}, + {__typename: 'SupplyChainShift', number: 5, name: 'B2'}, + {__typename: 'SupplyChainShift', number: 6, name: 'B3'}, + ], + }, + }); }); afterEach(() => {
fix(bug): fix linting warnings
fix(bug): fix linting warnings
7aa576d87c3a8d09e6495facba5070d5aa161b07
--- package.json @@ -85,7 +85,7 @@ "@walmart/amp-mini-app": "1.2.8", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.31.5", - "@walmart/associate-listening-mini-app": "1.2.32", + "@walmart/associate-listening-mini-app": "1.2.37", "@walmart/attendance-mini-app": "3.170.0", "@walmart/avp-feature-app": "0.16.19", "@walmart/avp-shared-library": "0.10.12", --- yarn.lock @@ -6516,11 +6516,11 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-listening-mini-app@npm:1.2.32": - version: 1.2.32 - resolution: "@walmart/associate-listening-mini-app@npm:1.2.32::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2F%40walmart%2Fassociate-listening-mini-app-1.2.32.tgz" +"@walmart/associate-listening-mini-app@npm:1.2.37": + version: 1.2.37 + resolution: "@walmart/associate-listening-mini-app@npm:1.2.37::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2F%40walmart%2Fassociate-listening-mini-app-1.2.37.tgz" dependencies: - "@walmart/associate-listening-utils": "npm:5.0.87" + "@walmart/associate-listening-utils": "npm:6.1.2" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -6529,17 +6529,17 @@ __metadata: "@walmart/gtp-shared-components": 2.0.5 react: ^18.2.0 react-native: 0.70.9 - checksum: 10c0/a5abe80e6c7a0f7fb5f5931bd71079fdf2cc7e36cd2c3da661e78cd57322b919e9a6e3e7de238dcc1e014aa9548f530388648e21b98f7d0cad3bcb579d6c31c1 + checksum: 10c0/f62a65ee3f29a703761e8643ae46614c3c622c8f7ba1bbd35f18dc780cfb9942b6d8fb945277af6a71db2e5a632abe922740ad9514c9700572d78a3045565b86 languageName: node linkType: hard -"@walmart/associate-listening-utils@npm:5.0.87": - version: 5.0.87 - resolution: "@walmart/associate-listening-utils@npm:5.0.87::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-utils%2F-%2F%40walmart%2Fassociate-listening-utils-5.0.87.tgz" +"@walmart/associate-listening-utils@npm:6.1.2": + version: 6.1.2 + resolution: "@walmart/associate-listening-utils@npm:6.1.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-utils%2F-%2F%40walmart%2Fassociate-listening-utils-6.1.2.tgz" dependencies: "@types/semver": "npm:^7.3.4" semver: "npm:^7.3.4" - checksum: 10c0/6de58078e566385cec487f27b10d9f742fa87479b50e92c0bc8cdd77c90690acd865ecaedd740d8a76e1a33bcf28c934ffa6a920a8d4372abfd761437b5b012d + checksum: 10c0/494ae5e38afb13c7cc7f50b7d7ff69ac189c911ee421933448daff770bd0e982bf1d2ac04a04062d31f293b96f3ebe9ce3d031325f0e3abf8cef04629ad239dc languageName: node linkType: hard @@ -7417,7 +7417,7 @@ __metadata: "@walmart/amp-mini-app": "npm:1.2.8" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.31.5" - "@walmart/associate-listening-mini-app": "npm:1.2.32" + "@walmart/associate-listening-mini-app": "npm:1.2.37" "@walmart/attendance-mini-app": "npm:3.170.0" "@walmart/avp-feature-app": "npm:0.16.19" "@walmart/avp-shared-library": "npm:0.10.12"
fix: OPIF-192588 Drop 31 Manager Insight feature bug (#4390)
fix: OPIF-192588 Drop 31 Manager Insight feature bug (#4390) * fix: OPIF-192588 Drop 31 Manager Insight feature bug * fix: OPIF-192588 Drop 31 Manager Insight feature disclaimer bug * fix: OPIF-192588 Drop 31 Manager Insight feature bug * fix: OPIF-192588 Drop 31 Manager Insight feature bug --------- Co-authored-by: a0a0b8c <Aishwarya.anand@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
57054bb7f69822dc9919461def420189f30f5005
--- package.json @@ -152,7 +152,7 @@ "@walmart/shop-gnfr-mini-app": "1.0.417", "@walmart/sidekick-mini-app": "4.201.13", "@walmart/store-feature-orders": "1.33.3", - "@walmart/taskit-mini-app": "5.39.2", + "@walmart/taskit-mini-app": "5.39.1", "@walmart/time-clock-mini-app": "3.19.2", "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.25.4", --- yarn.lock @@ -7665,7 +7665,7 @@ __metadata: "@walmart/shop-gnfr-mini-app": "npm:1.0.417" "@walmart/sidekick-mini-app": "npm:4.201.13" "@walmart/store-feature-orders": "npm:1.33.3" - "@walmart/taskit-mini-app": "npm:5.39.2" + "@walmart/taskit-mini-app": "npm:5.39.1" "@walmart/time-clock-mini-app": "npm:3.19.2" "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.25.4" @@ -8495,12 +8495,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.39.2": - version: 5.39.2 - resolution: "@walmart/taskit-mini-app@npm:5.39.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.39.2.tgz" +"@walmart/taskit-mini-app@npm:5.39.1": + version: 5.39.1 + resolution: "@walmart/taskit-mini-app@npm:5.39.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.39.1.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/77e9273eb94f4c7ab583f74a373f1a51099db0c65b9783ecca20d434865c483b0acb6bf331d4f9b3ae9d8e98cd644b878901953aa0fb4553e32aa51655b57b02 + checksum: 10c0/1e381ce284de23f57f585bad25aeb1fb236846510e9c116cf9892b41000def68d9705b9923b44289b033825bfbb359bc5e151fe6e3d727bdece1ecb4fef01584 languageName: node linkType: hard
Revert "chore: bump taskit version TASKIT-6698 (#4519)" (#4528)
Revert "chore: bump taskit version TASKIT-6698 (#4519)" (#4528) This reverts commit 559ee2d753b97b73f66afb40679149e9ac028ad4.
0b86b7ec96139f60e23a178fd7eeb91121b44223
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.13", + "version": "2.0.14", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.13", + "version": "2.0.14", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
9cf9edbff436fa44a2f36fe25f57e93e8c9ab62d
--- packages/allspark-foundation/src/Components/Hub/Container/index.tsx @@ -65,9 +65,6 @@ const jsonData = {"teamWidgetMapping": return validatedData; } -const validatedWidgets = validateWidgets(jsonData) - console.log('WIDGETS LIST--', validatedWidgets); - export const Container = () => {
removed console
removed console
de80a1c33102aa532c80f4f0201f3cd756d277ce
--- __mocks__/feature.ts @@ -0,0 +1,16 @@ +import React from 'react'; +import { createMockTelemetry } from './telemetryMocks'; + +// Mock implementation of AssociateExpHubFeature +export const AssociateExpHubFeature = { + createModal: jest.fn((Component: React.ComponentType) => (props: any) => + React.createElement(Component, props) + ), + createScreen: jest.fn((Component: React.ComponentType) => (props: any) => + React.createElement(Component, props) + ), + createTelemetry: jest.fn(() => createMockTelemetry()), + // Add other methods as needed +}; + +export default AssociateExpHubFeature; --- __mocks__/telemetryMocks.ts @@ -0,0 +1,29 @@ +// Mock telemetry functions for testing +export const mockLogEvent = jest.fn(); + +export const mockTelemetry = { + logEvent: mockLogEvent, + logNavigationEvent: jest.fn(), + logInteractionEvent: jest.fn(), + logPerformanceEvent: jest.fn(), + logErrorEvent: jest.fn(), + logTeamEvent: jest.fn(), + logHubLifecycleEvent: jest.fn(), + logWidgetLifecycleEvent: jest.fn(), +}; + +export const mockTelemetryHelpers = { + logNavigation: jest.fn(), + logUserInteraction: jest.fn(), + logPerformance: jest.fn(), + logError: jest.fn(), + logTeamAction: jest.fn(), + logWidgetAction: jest.fn(), + logHubRefresh: jest.fn(), + logWidgetRefresh: jest.fn(), +}; + +export const createMockTelemetry = () => ({ + ...mockTelemetry, + logEvent: mockLogEvent, +}); --- __tests__/components/MyWalmartTeamSwitcher.test.tsx @@ -6,11 +6,25 @@ import {AssociateExpHubLogger} from '../../src/utils/logger'; import {useTeamSwitcher} from '../../src/hooks'; import {MyWalmartTeamSwitcher} from '../../src/components/team-switcher/MyWalmartTeamSwitcher'; +// Mock the telemetry module +jest.mock('../../src/services/telemetry/telemetry', () => ({ + TelemetryHelpers: { + logUserInteraction: jest.fn(), + logNavigation: jest.fn(), + logTeamAction: jest.fn(), + }, +})); + jest.mock('../../src/utils/feature', () => ({ AssociateExpHubFeature: { createTranslationClient: jest.fn().mockReturnValue({ useTranslation: jest.fn().mockReturnValue([jest.fn(key => key)]), }), + createTelemetry: jest.fn(() => ({ + logEvent: jest.fn(), + logNavigationEvent: jest.fn(), + logInteractionEvent: jest.fn(), + })), }, })); --- __tests__/components/modals/hoc/EditTeamsModal.test.tsx @@ -18,6 +18,14 @@ import {useUpsertSupplyChainAssociatePreference} from '../../../../src/hooks/use import {MODALS} from '../../../../src/constants'; import {useUpsertStoreAssociatePreference} from '../../../../src/hooks'; +jest.mock('../../../../src/services/telemetry/telemetry', () => ({ + TelemetryHelpers: { + logUserInteraction: jest.fn(), + logNavigation: jest.fn(), + logTeamAction: jest.fn(), + }, +})); + jest.mock('@walmart/gtp-shared-components', () => ({ Body: ({children, testID, ...props}: any) => { const MockText = require('react-native').Text; --- __tests__/components/modals/hoc/UpdateTeamsModal.test.tsx @@ -25,6 +25,16 @@ import UpdateTeamsModal from '../../../../src/components/modals/hoc/UpdateModal' import {MODALS} from '../../../../src/constants'; import {AssociateExpHubTranslationClient} from '../../../../src/utils/translation'; import {useGetTeamsAdapter} from '../../../../src/services'; +import {AssociateExpHubFeature} from '../../../../src/utils/feature'; + +// Mock the telemetry module +jest.mock('../../../../src/services/telemetry/telemetry', () => ({ + TelemetryHelpers: { + logUserInteraction: jest.fn(), + logNavigation: jest.fn(), + logTeamAction: jest.fn(), + }, +})); jest.mock('@walmart/gtp-shared-components', () => ({ Body: ({children, testID, ...props}: any) => { @@ -81,6 +91,11 @@ jest.mock('../../../../src/utils/feature', () => ({ AssociateExpHubFeature: { createModal: (Component: React.ComponentType) => (props: any) => <Component {...props} />, + createTelemetry: jest.fn(() => ({ + logEvent: jest.fn(), + logNavigationEvent: jest.fn(), + logInteractionEvent: jest.fn(), + })), }, })); --- __tests__/components/modals/smartModal/ModalContent.test.tsx @@ -4,6 +4,29 @@ import {ModalContent} from '../../../../src/components/modals/smartModal/ModalCo import {render} from '@testing-library/react-native'; import {View} from 'react-native'; +// Mock the telemetry module +jest.mock('../../../../src/services/telemetry/telemetry', () => ({ + TelemetryHelpers: { + logUserInteraction: jest.fn(), + logNavigation: jest.fn(), + logTeamAction: jest.fn(), + }, +})); + +// Mock the feature module +jest.mock('../../../../src/utils/feature', () => ({ + AssociateExpHubFeature: { + createTranslationClient: jest.fn().mockReturnValue({ + useTranslation: jest.fn().mockReturnValue([jest.fn(key => key)]), + }), + createTelemetry: jest.fn(() => ({ + logEvent: jest.fn(), + logNavigationEvent: jest.fn(), + logInteractionEvent: jest.fn(), + })), + }, +})); + jest.mock('@walmart/gtp-shared-components', () => ({ Body: ({children, testID, ...props}: any) => { const MockText = require('react-native').Text; --- __tests__/components/modals/smartModal/__snapshots__/ModalContent.test.tsx.snap @@ -23,7 +23,7 @@ exports[`ModalContent renders Edit Modal for passed in config 1`] = ` </Text> </View> <AssociateTeamSearchInput - handleChange={[MockFunction]} + handleChange={[Function]} handleChangeText={[MockFunction]} headerSubTitle="searchSection.subTitle" headerTitle="searchSection.headerTitle" @@ -78,7 +78,7 @@ exports[`ModalContent renders Edit saved teams Skeleton component if preference testID="associate-modal-container" > <AssociateTeamSearchInput - handleChange={[MockFunction]} + handleChange={[Function]} handleChangeText={[MockFunction]} headerSubTitle="searchSection.subTitle" headerTitle="searchSection.headerTitle" @@ -144,7 +144,7 @@ exports[`ModalContent renders Loader is AllTeams data is pending 1`] = ` testID="associate-modal-container" > <AssociateTeamSearchInput - handleChange={[MockFunction]} + handleChange={[Function]} handleChangeText={[MockFunction]} headerSubTitle="searchSection.subTitle" headerTitle="searchSection.headerTitle" @@ -222,7 +222,7 @@ exports[`ModalContent renders basic component with all teams section 1`] = ` testID="associate-modal-container" > <AssociateTeamSearchInput - handleChange={[MockFunction]} + handleChange={[Function]} handleChangeText={[MockFunction]} headerSubTitle="searchSection.subTitle" headerTitle="searchSection.headerTitle"
feat(ui): updated tests #SMDV-8337
feat(ui): updated tests #SMDV-8337
c510dcaf07e0266a332849f83e5e01d6533c3fa2
--- core/__tests__/__mocks__/@walmart/ask-sam-mini-app.js @@ -1,3 +1,6 @@ module.exports = { - AskSamMiniApp: 'AskSamMiniApp', + __esModule: true, + default: { + buildAllScreens: () => 'AskSamScreens', + }, }; --- core/__tests__/__mocks__/@walmart/payrollsolution_miniapp.js @@ -1,6 +1,8 @@ module.exports = { __esModule: true, - default: 'PaymentSelectionMiniApp', + default: { + buildAllScreens: () => 'PaymentSelectionMiniApp', + }, }; jest.mock('@walmart/payrollsolution_miniapp', () => ({ --- core/__tests__/__mocks__/@walmart/welcomeme-mini-app.js @@ -1,4 +1,6 @@ module.exports = { __esModule: true, - default: 'WelcomeMeMiniApp', + default: { + buildAllScreens: () => 'WelcomeMeMiniApp', + }, }; --- core/__tests__/features/welcomeMeTest.ts @@ -1,12 +0,0 @@ -import {WelcomeMeFeature} from '../../src/features/welcomeMe'; - -describe('WelcomeMeFeature', () => { - it('should have the correct name', () => { - expect(WelcomeMeFeature.name).toBe('WelcomeMe'); - }); - - it('has expected screen components', () => { - const screenConfig = WelcomeMeFeature.getScreenConfig('WelcomeMeMiniApp'); - expect(screenConfig?.getComponent()).toBeDefined(); - }); -}); --- core/__tests__/navigation/USHallway/PreHireHallwayNav/__snapshots__/PreHireHallwayNavTest.tsx.snap @@ -1,54 +1,20 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`PreHireHallwayNav matches snapshot 1`] = ` -<Navigator - initialRouteName="welcomeMe.CandidateHome" +<RenderGuard + preRender={[Function]} > - <Screen - component={[Function]} - listeners={ + <Navigator + initialRouteName="welcomeMe.CandidateHome" + screenOptions={ { - "focus": [Function], + "header": [Function], } } - name="WelcomeMeMiniApp" - options={ - { - "animationTypeForReplace": "push", - "gestureEnabled": false, - "headerShown": false, - } - } - /> - <Screen - component="AskSamMiniApp" - name="askSam" - options={ - { - "cardOverlayEnabled": true, - "cardStyle": { - "backgroundColor": "rgba(0, 0, 0, 0)", - }, - "cardStyleInterpolator": [Function], - "gestureDirection": "vertical", - "gestureEnabled": true, - "headerShown": false, - "presentation": "transparentModal", - } - } - /> - <Screen - component={ - { - "buildAllScreens": [Function], - } - } - name="paymentselection" - options={ - { - "headerShown": false, - } - } - /> -</Navigator> + > + WelcomeMeMiniApp + PaymentSelectionMiniApp + AskSamScreens + </Navigator> +</RenderGuard> `; --- core/__tests__/navigation/__snapshots__/RootStackTest.tsx.snap @@ -80,22 +80,6 @@ exports[`RootNav matches snapshot when app accessible 1`] = ` } } /> - <Screen - component={[Function]} - listeners={ - { - "focus": [Function], - } - } - name="WelcomeMeMiniApp" - options={ - { - "animationTypeForReplace": "push", - "gestureEnabled": false, - "headerShown": false, - } - } - /> <Screen component={[Function]} name="Core.PermissionsWelcome" --- core/src/navigation/USHallway/PreHireHallwayNav/types.ts @@ -7,6 +7,7 @@ export type PrehireStackMap = { WelcomeMeMiniApp: undefined; askSam: undefined; paymentselection: undefined; + 'welcomeMe.CandidateHome': undefined; }; // The type of screen props for a pre hire stack screen, passed to the screen component as props
updated failing test cases
updated failing test cases
964822364e31e0f1483b0cbb68548a2ce37f0ca1
--- src/components/AssociateList/AssociateListItem.tsx @@ -29,6 +29,7 @@ import { import {translationClient, WFMSchedule} from '../../common'; import {AssociateAvatar} from './AssociateAvatar'; import {AllsparkSharedComponents} from '@walmart/allspark-foundation/Components'; +import {UserSelectors} from '@walmart/allspark-foundation/User'; export const AssociateListItem = ({ associate, @@ -58,6 +59,9 @@ export const AssociateListItem = ({ useRbacConfigWithJobCode(); const userIsInRoster = useUserIsInRoster(); const userIsImpersonatedOnDev = useIsImpersonatedOnDev(); + const currentUserAssociateId = useSelector(UserSelectors.getWin); + const shouldShowMessageButton = + associate?.associateId !== currentUserAssociateId?.toString(); const isWfmScheduleValid = associate?.wfmSchedule && associate?.wfmSchedule?.scheduleWeeks && @@ -144,7 +148,7 @@ export const AssociateListItem = ({ ) : ( <View /> )} - {isMessageButtonEnabled && ( + {isMessageButtonEnabled && shouldShowMessageButton && ( <AllsparkSharedComponents.Component id='wmConnect.RosterMessageButton' props={{
Update the roster message button condition
Update the roster message button condition
5c8559f883ef062476dd2894b98a1ed974c405d9
--- package.json @@ -95,7 +95,7 @@ "@walmart/react-native-sumo-sdk": "2.7.4", "@walmart/redux-store": "6.3.29", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.33.0", + "@walmart/wmconnect-mini-app": "2.35.0", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6653,7 +6653,7 @@ __metadata: "@walmart/react-native-sumo-sdk": "npm:2.7.4" "@walmart/redux-store": "npm:6.3.29" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.33.0" + "@walmart/wmconnect-mini-app": "npm:2.35.0" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6736,9 +6736,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.33.0": - version: 2.33.0 - resolution: "@walmart/wmconnect-mini-app@npm:2.33.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.33.0.tgz" +"@walmart/wmconnect-mini-app@npm:2.35.0": + version: 2.35.0 + resolution: "@walmart/wmconnect-mini-app@npm:2.35.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.35.0.tgz" dependencies: expo: "npm:^51.0.0" react: "npm:18.2.0" @@ -6753,7 +6753,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/10c8add5a3f3ccbf48a37ac00c57e319f762568b28a660191a41df82004fc4e9935e01d5117e6f2a1e334f0ad855e08caf3420a8b9a1d37e584fc6053d2e055e + checksum: 10c0/f420d2a74c8f9e32a66fef1a02a848d17d735a537f6d1e0657c3f1bd7246c8dbaf6a9daf74e3dafc0d9bcf1534a363faf4e65e4a258b63c282484ec6720c843f languageName: node linkType: hard
feat(ui): update package
feat(ui): update package
70a87a795257d7edc789111eb6a582530188cf5a
--- package-lock.json @@ -71,7 +71,7 @@ "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", - "@walmart/iteminfo-mini-app": "7.10.7", + "@walmart/iteminfo-mini-app": "7.10.8", "@walmart/learning-mini-app": "20.0.3", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.12", @@ -11684,9 +11684,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "7.10.7", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.10.7.tgz", - "integrity": "sha512-gWFTWpAdvzltp6igWHLDMg1WAFi910Fo+4TGXOuc5nQFP0fiFOkO1wGnZatN8PgfKvT1DjWbT0tq4TxTzhlCkw==", + "version": "7.10.8", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.10.8.tgz", + "integrity": "sha512-TcqVZi076SC+mpWhc+5+7YHU8h9MrwdONJ6U+3AeISPBDZobbpD9dmpkfJC6IJ3bq9+UOUpPcY5XKgNLaAhiCg==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/drawer": ">=6.3.0", --- package.json @@ -112,7 +112,7 @@ "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", - "@walmart/iteminfo-mini-app": "7.10.7", + "@walmart/iteminfo-mini-app": "7.10.8", "@walmart/learning-mini-app": "20.0.3", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.12", @@ -377,7 +377,7 @@ "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", - "@walmart/iteminfo-mini-app": "7.10.7", + "@walmart/iteminfo-mini-app": "7.10.8", "@walmart/learning-mini-app": "20.0.3", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.12",
iteminfo version bump 7.10.8 scanner fix
iteminfo version bump 7.10.8 scanner fix
69cfccc7cf471ed29baa2cec5d25c2668a741d17
--- package.json @@ -89,7 +89,7 @@ "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.4.0", + "@walmart/wmconnect-mini-app": "3.5.0", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6368,7 +6368,7 @@ __metadata: "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.4.0" + "@walmart/wmconnect-mini-app": "npm:3.5.0" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6451,9 +6451,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.4.0": - version: 3.4.0 - resolution: "@walmart/wmconnect-mini-app@npm:3.4.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.4.0.tgz" +"@walmart/wmconnect-mini-app@npm:3.5.0": + version: 3.5.0 + resolution: "@walmart/wmconnect-mini-app@npm:3.5.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.5.0.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6464,7 +6464,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/6b9ababd18c0706138e32c5e55bf85831753a6c4e5f334c806e0e3b2169c4a4a27c4102d2aba974394a763ee9feb208db192c05424bd12ae5a1225b4873196f8 + checksum: 10c0/9241abf7dc5c5a3732c1fc144097600bcf758514d1e64a2b7c36262709dbd28bcec92c06b2b8077be8b5fc764a2e690e387ca8c21808bc2776392e4d1f7143f1 languageName: node linkType: hard
feat(ui): updating wmconnect version with firestore changes
feat(ui): updating wmconnect version with firestore changes
ce2518f6a080a5eadc9b37034e1923070f3127f9
--- .looper.multibranch.yml @@ -694,111 +694,82 @@ branches: flows: build-selector: - - if: | - %{ market == "us" } + - if: '%{ market == "us" }' then: - - if: | - %{ branch == "feature" } + - if: '%{ branch == "feature" }' then: - - if: | - %{ os_type == "all" } + - if: '%{ os_type == "all" }' then: - - if: | - %{ env_selected == "all" } + - if: '%{ env_selected == "all" }' then: - call: push(test) - - if: | - %{ env_selected == "dev" } + - if: '%{ env_selected == "dev" }' then: - call: dev(test) - - if: | - %{ env_selected == "beta" } + - if: '%{ env_selected == "beta" }' then: - call: beta(test) - - if: | - %{ env_selected == "teflon" } + - if: '%{ env_selected == "teflon" }' then: - call: teflon(test) - - if: | - %{ os_type == "ios" } + - if: '%{ os_type == "ios" }' then: - - if: | - %{ env_selected == "dev" } + - if: '%{ env_selected == "dev" }' then: - call: ios-dev(test) - - if: | - %{ env_selected == "beta" } + - if: '%{ env_selected == "beta" }' then: - call: ios-beta(test) - - if: | - %{ env_selected == "teflon" } + - if: '%{ env_selected == "teflon" }' then: - call: ios-teflon(test) - - if: | - %{ os_type == "android" } + - if: '%{ os_type == "android" }' then: - - if: | - %{ env_selected == "dev" } + - if: '%{ env_selected == "dev" }' then: - call: android-dev(test) - - if: | - %{ env_selected == "beta" } + - if: '%{ env_selected == "beta" }' then: - call: android-beta(test) - - if: | - %{ env_selected == "teflon" } + - if: '%{ env_selected == "teflon" }' then: - call: android-teflon(test) - - if: | - %{ branch == "develop" } + - if: '%{ branch == "develop" }' then: - - if: | - %{ os_type == "all" } + - if: '%{ os_type == "all" }' then: - - if: | - %{ env_selected == "all" } + - if: '%{ env_selected == "all" }' then: - call: push(develop) - - if: | - %{ env_selected == "dev" } + - if: '%{ env_selected == "dev" }' then: - call: dev(develop) - - if: | - %{ env_selected == "beta" } + - if: '%{ env_selected == "beta" }' then: - call: beta(develop) - - if: | - %{ env_selected == "teflon" } + - if: '%{ env_selected == "teflon" }' then: - call: teflon(develop) - - if: | - %{ os_type == "ios" } + - if: '%{ os_type == "ios" }' then: - - if: | - %{ env_selected == "dev" } + - if: '%{ env_selected == "dev" }' then: - call: ios-dev(develop) - - if: | - %{ env_selected == "beta" } + - if: '%{ env_selected == "beta" }' then: - call: ios-beta(develop) - - if: | - %{ env_selected == "teflon" } + - if: '%{ env_selected == "teflon" }' then: - call: ios-teflon(develop) - - if: | - %{ os_type == "android" } + - if: '%{ os_type == "android" }' then: - - if: | - %{ env_selected == "dev" } + - if: '%{ env_selected == "dev" }' then: - call: android-dev(develop) - - if: | - %{ env_selected == "beta" } + - if: '%{ env_selected == "beta" }' then: - call: android-beta(develop) - - if: | - %{ env_selected == "teflon" } + - if: '%{ env_selected == "teflon" }' then: - call: android-teflon(develop)
Update .looper.multibranch.yml
Update .looper.multibranch.yml
eb76ed580cfa17726851b7d788643207c5e619dd
--- packages/allspark-foundation/src/User/components/ImpersonationForm.tsx @@ -300,7 +300,7 @@ export const ImpersonationForm = (props: ImpersonationFormProps) => { disabled={!formState.isValid} testID='start-impersonation-btn' accessibilityLabel={t('ImpersonationForm.startButton', { - defaultValue: 'Start Impersonation', + defaultValue: 'start impersonation', fallbackLng: 'en-US', })} onPress={handleSubmit(onStartImpersonation)}
chore: update translation to maintain snapshot value
chore: update translation to maintain snapshot value
a3bc6def961c5612daff322b71d3fccbcce24863
--- package-lock.json @@ -3431,22 +3431,22 @@ "integrity": "sha512-yFTYK4fVYd4wEBZugBt/5A5lWCJnuUecdAQrUQmbqwY3iTpnKlL+MuAJwYYBXM7ISwmH2OYJcRItOZLQZHImQQ==" }, "@walmart/schedule-mini-app": { - "version": "0.2.76", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.76.tgz", - "integrity": "sha512-fFBvhVhJ0w/wldj3iyDfe6jw95bazPBi3R4g5d+3vDOazM89sFPYItaZSmSrlD5qn6BWFSLbHrh5GnhjePBVTA==", + "version": "0.2.76-1", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.76-1.tgz", + "integrity": "sha512-hRRxZZCpoOmemMvZZFsZbZ/E2v7L3yC2SjNAhtcpoT85YYUBS+dK4OvLXI15JpS/o8Eo+9jM3ijWlxD2qXgG1A==", "requires": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "0.1.50", "crypto-js": "^3.3.0", "react-native-tab-view": "^2.15.2", "reselect": "^4.0.0", - "wfm-allspark-data-library": "0.0.19" + "wfm-allspark-data-library": "0.0.19-1" }, "dependencies": { "wfm-allspark-data-library": { - "version": "0.0.19", - "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.19.tgz", - "integrity": "sha512-oSOCmyqrck/dJBNhry3TvzVgjBOhFTvW/hr46SGL5dV6EPSdlDPoAvMPfn2sk1bYGNC3T8KR/NQLS7vy1wh37w==", + "version": "0.0.19-1", + "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.19-1.tgz", + "integrity": "sha512-BbSl85EfjvvBtaV5Kufz+fFrmPxBb7OEJZ2DJTFTVuMs1FmUIrWjqDiq+p1VLeY90nZcdzsB2tTy2BPtSsvDZg==", "requires": { "azure-storage": "2.10.3", "crypto-js": "^3.3.0", --- package.json @@ -84,7 +84,7 @@ "@walmart/react-native-logger": "^1.27.0", "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/redux-store": "^1.0.14", - "@walmart/schedule-mini-app": "0.2.76", + "@walmart/schedule-mini-app": "0.2.76-1", "@walmart/settings-mini-app": "1.2.3", "@walmart/time-clock-mini-app": "0.3.10", "@walmart/ui-components": "1.1.41",
Disable schedule edit options for demo accounts
Disable schedule edit options for demo accounts
233f360b7788b69f850512667fca826f87896688
--- yarn.lock @@ -6906,9 +6906,9 @@ __metadata: languageName: node linkType: hard -"@walmart/receipt-check-miniapp@npm:1.22.7": - version: 1.22.7 - resolution: "@walmart/receipt-check-miniapp@npm:1.22.7" +"@walmart/receipt-check-miniapp@npm:1.22.5": + version: 1.22.5 + resolution: "@walmart/receipt-check-miniapp@npm:1.22.5" dependencies: "@walmart/tcnumber": "npm:^2.3.3" "@xstate/react": "npm:^3.0.1" @@ -6923,28 +6923,7 @@ __metadata: react-native-device-info: ^10.3.0 react-redux: ^7.2.1 redux: ^4.1.2 - checksum: 10c0/a95d80d605249943eca54b90a0bc1aef3af6669565d6bfe4900aa1c75a7cb94c97fc84d3929c967a3adfa4643d79772bf046a436356b04680326af31d0b07313 - languageName: node - linkType: hard - -"@walmart/receipt-check-miniapp@patch:@walmart/receipt-check-miniapp@npm%3A1.22.7#~/.yarn/patches/@walmart-receipt-check-miniapp-npm-1.22.7-b46b7175e3.patch": - version: 1.22.7 - resolution: "@walmart/receipt-check-miniapp@patch:@walmart/receipt-check-miniapp@npm%3A1.22.7#~/.yarn/patches/@walmart-receipt-check-miniapp-npm-1.22.7-b46b7175e3.patch::version=1.22.7&hash=5302a3" - dependencies: - "@walmart/tcnumber": "npm:^2.3.3" - "@xstate/react": "npm:^3.0.1" - cpc-input: "npm:^1.7.28" - dayjs: "npm:^1.11.1" - rxjs: "npm:^7.5.5" - uuid: "npm:^3.3.2" - xstate: "npm:^4.32.1" - peerDependencies: - "@walmart/core-services": ^1.4.11 - "@walmart/redux-store": ^2.0.4 - react-native-device-info: ^10.3.0 - react-redux: ^7.2.1 - redux: ^4.1.2 - checksum: 10c0/6c5ab5ff6e01e641f6e7c95c979119b888f322fbaedc545cb412a1211f64f3de8f0b66289d57549f565735de8322db0d1550de187f000f07261e154bc027b59d + checksum: 10c0/3731b27fe5c385d451bbeca5db69065791e7e8e31ac175a38b19f8396dba496ecf12c2aa2cf244b410f82a2a46587f5fe3fbe953bf0a234f1738bc4cf11073d0 languageName: node linkType: hard @@ -7797,7 +7776,7 @@ __metadata: "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.7.0" "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.1.11#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.1.11-31a5a73745.patch" - "@walmart/receipt-check-miniapp": "patch:@walmart/receipt-check-miniapp@npm%3A1.22.7#~/.yarn/patches/@walmart-receipt-check-miniapp-npm-1.22.7-b46b7175e3.patch" + "@walmart/receipt-check-miniapp": "npm:1.22.5" "@walmart/redux-store": "npm:6.1.4" "@walmart/returns-mini-app": "npm:4.6.0" "@walmart/rfid-scan-mini-app": "npm:2.3.10"
update
update
44704316431af1be8d71429a7eabdffa7e20d8e0
--- package-lock.json @@ -3080,9 +3080,9 @@ "integrity": "sha512-/2QStrLatWqZuSGvGhosemz4kt3dg95Zo5TAvE2AV+GOod1Qyuqzbz70/5CAifuAOPTtK/ihXMCj5xwlMA5SVw==" }, "@walmart/schedule-mini-app": { - "version": "0.2.33", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.33.tgz", - "integrity": "sha512-BcEyL7FDKBTGBXR5r6LyMAsqRiUTpKBPX2WZivh3eR43cioI/KlmN3Du3P2OqIP3nXKj3JRzY34gPgYtFfwIdg==", + "version": "0.2.34", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.34.tgz", + "integrity": "sha512-1M5vZiloqdpktRgGZbxY5cJ3iEzS30+dwbdAqCkPwQFrlcQz+aesGQiFyBc9Fd3WERm8PmThv1wlNLlNAIWMHQ==", "requires": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "^0.1.29", --- package.json @@ -60,7 +60,7 @@ "@walmart/react-native-logger": "^1.17.0", "@walmart/react-native-shared-navigation": "^0.2.0", "@walmart/redux-store": "^1.0.7", - "@walmart/schedule-mini-app": "0.2.33", + "@walmart/schedule-mini-app": "0.2.34", "@walmart/settings-mini-app": "1.1.8", "@walmart/time-clock-mini-app": "0.0.23", "@walmart/ui-components": "^1.0.81",
bump (#235)
bump (#235)
75d17a77ff29b9b2661b65e4a22c311eadb4dce0
--- src/cafeOrders/components/messages/ChannelRow.tsx @@ -24,9 +24,9 @@ export const ChannelRow = (props: Channel & {storeDocumentId: string}) => { */ useEffect(() => { // @todo - determine better channel name approach - setChannelName(participants[0]); + setChannelName(participants.length > 1 ? 'Group' : participants[0]); - const unsubscribe = lastMessage.onSnapshot((snapshot) => { + const unsubscribe = lastMessage?.onSnapshot((snapshot) => { setLastMessageData(snapshot.data() as Message); }); --- src/cafeOrders/screens/ChannelsScreen.tsx @@ -8,6 +8,9 @@ import {UserSelectors, SiteSelectors} from '@walmart/redux-store'; import {ChannelRow} from '../components/messages/ChannelRow'; import {createStoreDocumentId} from '../utils'; import {Channel} from '../types'; +import {Button, ChatBubbleIcon} from '@walmart/gtp-shared-components/dist'; +import {useSafeAreaInsets} from 'react-native-safe-area-context'; +import {noop} from 'lodash'; const renderChannel: ListRenderItem<Channel> = ({item: channel}) => ( <ChannelRow {...channel} /> @@ -18,6 +21,8 @@ export interface Props { } export const ChannelsScreen: React.FC<Props> = () => { + const {right, bottom} = useSafeAreaInsets(); + const [channels, setChannels] = useState<any>([]); const user = useSelector(UserSelectors.getOriginalUser); const workingSite = useSelector(SiteSelectors.getUserWorkingSite); @@ -52,5 +57,21 @@ export const ChannelsScreen: React.FC<Props> = () => { return unsubscribe; }, [user.userId, workingSite]); - return <FlatList data={channels} renderItem={renderChannel} />; + return ( + <> + <FlatList data={channels} renderItem={renderChannel} /> + <Button + UNSAFE_style={{ + position: 'absolute', + bottom: bottom + 15, + right: right + 18, + }} + variant='primary' + size='large' + leading={<ChatBubbleIcon size={24} />} + onPress={noop}> + New message + </Button> + </> + ); }; --- src/cafeOrders/screens/MessagesScreen.tsx @@ -8,6 +8,7 @@ import { ListRenderItem, KeyboardAvoidingView, } from 'react-native'; +import {throttle} from 'lodash'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; import {Body, Caption, CloseIcon, colors} from '@walmart/gtp-shared-components'; import {useNavigation, useRoute} from '@react-navigation/native'; @@ -21,7 +22,6 @@ import {TouchableOpacity} from 'react-native-gesture-handler'; import {Images} from '../themes'; import {MessageRow} from '../components/messages/MessageRow'; import {PresenceIndicator} from '../components/messages/PresenceIndicator'; -import {throttle} from 'lodash'; const styles = StyleSheet.create({ container: { @@ -109,9 +109,9 @@ type Message = { export const keyExtractor = (message: Message) => String(message.id); -export const renderItem: ListRenderItem<Message> = ({item: message}) => { - return <MessageRow {...message} />; -}; +export const renderItem: ListRenderItem<Message> = ({item: message}) => ( + <MessageRow {...message} /> +); const ListEmptyComponent = () => <Body>No messages found</Body>; @@ -166,6 +166,8 @@ export const MessagesScreen = () => { const [messages, setMessages] = useState<any>([]); const user = useSelector(UserSelectors.getOriginalUser); + const title = + channelName || participants.length > 1 ? 'Group' : participants[0]; const flatListRef = useRef<FlatList>(null); const channelDoc = useRef( @@ -234,7 +236,7 @@ export const MessagesScreen = () => { </TouchableOpacity> <View style={styles.titleRow}> <Body weight='700' size='large'> - {channelName || participants[0]} + {title} </Body> <View style={styles.statusRow}> <PresenceIndicator isOnline={true} style={styles.headerPresense} /> --- src/cafeOrders/components/messages/ChannelRow.tsx @@ -24,9 +24,9 @@ export const ChannelRow = (props: Channel & {storeDocumentId: string}) => { */ useEffect(() => { // @todo - determine better channel name approach - setChannelName(participants[0]); + setChannelName(participants.length > 1 ? 'Group' : participants[0]); - const unsubscribe = lastMessage.onSnapshot((snapshot) => { + const unsubscribe = lastMessage?.onSnapshot((snapshot) => { setLastMessageData(snapshot.data() as Message); }); --- src/cafeOrders/screens/ChannelsScreen.tsx @@ -8,6 +8,9 @@ import {UserSelectors, SiteSelectors} from '@walmart/redux-store'; import {ChannelRow} from '../components/messages/ChannelRow'; import {createStoreDocumentId} from '../utils'; import {Channel} from '../types'; +import {Button, ChatBubbleIcon} from '@walmart/gtp-shared-components/dist'; +import {useSafeAreaInsets} from 'react-native-safe-area-context'; +import {noop} from 'lodash'; const renderChannel: ListRenderItem<Channel> = ({item: channel}) => ( <ChannelRow {...channel} /> @@ -18,6 +21,8 @@ export interface Props { } export const ChannelsScreen: React.FC<Props> = () => { + const {right, bottom} = useSafeAreaInsets(); + const [channels, setChannels] = useState<any>([]); const user = useSelector(UserSelectors.getOriginalUser); const workingSite = useSelector(SiteSelectors.getUserWorkingSite); @@ -52,5 +57,21 @@ export const ChannelsScreen: React.FC<Props> = () => { return unsubscribe; }, [user.userId, workingSite]); - return <FlatList data={channels} renderItem={renderChannel} />; + return ( + <> + <FlatList data={channels} renderItem={renderChannel} /> + <Button + UNSAFE_style={{ + position: 'absolute', + bottom: bottom + 15, + right: right + 18, + }} + variant='primary' + size='large' + leading={<ChatBubbleIcon size={24} />} + onPress={noop}> + New message + </Button> + </> + ); }; --- src/cafeOrders/screens/MessagesScreen.tsx @@ -8,6 +8,7 @@ import { ListRenderItem, KeyboardAvoidingView, } from 'react-native'; +import {throttle} from 'lodash'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; import {Body, Caption, CloseIcon, colors} from '@walmart/gtp-shared-components'; import {useNavigation, useRoute} from '@react-navigation/native'; @@ -21,7 +22,6 @@ import {TouchableOpacity} from 'react-native-gesture-handler'; import {Images} from '../themes'; import {MessageRow} from '../components/messages/MessageRow'; import {PresenceIndicator} from '../components/messages/PresenceIndicator'; -import {throttle} from 'lodash'; const styles = StyleSheet.create({ container: { @@ -109,9 +109,9 @@ type Message = { export const keyExtractor = (message: Message) => String(message.id); -export const renderItem: ListRenderItem<Message> = ({item: message}) => { - return <MessageRow {...message} />; -}; +export const renderItem: ListRenderItem<Message> = ({item: message}) => ( + <MessageRow {...message} /> +); const ListEmptyComponent = () => <Body>No messages found</Body>; @@ -166,6 +166,8 @@ export const MessagesScreen = () => { const [messages, setMessages] = useState<any>([]); const user = useSelector(UserSelectors.getOriginalUser); + const title = + channelName || participants.length > 1 ? 'Group' : participants[0]; const flatListRef = useRef<FlatList>(null); const channelDoc = useRef( @@ -234,7 +236,7 @@ export const MessagesScreen = () => { </TouchableOpacity> <View style={styles.titleRow}> <Body weight='700' size='large'> - {channelName || participants[0]} + {title} </Body> <View style={styles.statusRow}> <PresenceIndicator isOnline={true} style={styles.headerPresense} />
fix: fix last message reference
fix: fix last message reference
73f04da2188bea706436438f197b551444c5b702
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.9", + "version": "2.12.10", "main": "dist/index.js", "files": [ "dist" --- src/navigation/index.tsx @@ -11,7 +11,6 @@ export * from './types'; export const RosterNavigation = () => { return ( <RosterStack.Navigator> - {/* TODO: update stack navigation for new roster experience */} <RosterStack.Screen name='myTeam.rosterDetail' options={{ --- src/shared/index.tsx @@ -1,3 +1,4 @@ export {RosterDetailScreen} from '../screens/RosterDetailScreen'; export {AllTeamsScreen} from '../screens//AllTeamsScreen'; export {RosterWidget} from '../components/RosterWidget'; +export {RosterMiniApp} from '../screens';
Update roster navigation
Update roster navigation
5e25faedf3bba5ac8b3731b351fbab6e6be97eb5
--- Allspark_MeAtWM_Beta_InHouse_Profile.mobileprovision Binary files /dev/null and b/Allspark_MeAtWM_Beta_InHouse_Profile.mobileprovision differ
updating provisioning profile
updating provisioning profile
c2bdf8d37db1d0318194d5923ea7981e5b3d1a1e
--- CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) + + +### Features + +* **logs:** ALLSPARK-6732 enhance graphql logs ([#4688](https://gecgithub01.walmart.com/allspark/allspark-core/issues/4688)) ([b4652d6](https://gecgithub01.walmart.com/allspark/allspark-core/commit/b4652d664b27c56f7c0f8d4b38cc55fb4bbce983)) + + + + + # [6.36.0-alpha.2](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.1...v6.36.0-alpha.2) (2025-09-04) --- lerna.json @@ -1,5 +1,5 @@ { - "version": "6.36.0-alpha.2", + "version": "6.36.0-alpha.3", "npmClient": "yarn", "changelogPreset": "angular", "command": { --- packages/core-services-allspark/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) + +**Note:** Version bump only for package @walmart/core-services-allspark + + + + + # [6.36.0-alpha.2](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.1...v6.36.0-alpha.2) (2025-09-04) **Note:** Version bump only for package @walmart/core-services-allspark --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "6.36.0-alpha.2", + "version": "6.36.0-alpha.3", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/core-widget-registry/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) + +**Note:** Version bump only for package @walmart/core-widget-registry + + + + + # [6.36.0-alpha.2](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.1...v6.36.0-alpha.2) (2025-09-04) **Note:** Version bump only for package @walmart/core-widget-registry --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "6.36.0-alpha.2", + "version": "6.36.0-alpha.3", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", --- packages/me-at-walmart-common/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) + +**Note:** Version bump only for package @walmart/me-at-walmart-common + + + + + # [6.36.0-alpha.2](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.1...v6.36.0-alpha.2) (2025-09-04) **Note:** Version bump only for package @walmart/me-at-walmart-common --- packages/me-at-walmart-common/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-common", - "version": "6.36.0-alpha.2", + "version": "6.36.0-alpha.3", "description": "Common utilities and components for Me@Walmat mini apps", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-container/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) + + +### Features + +* **logs:** ALLSPARK-6732 enhance graphql logs ([#4688](https://gecgithub01.walmart.com/allspark/allspark-core/issues/4688)) ([b4652d6](https://gecgithub01.walmart.com/allspark/allspark-core/commit/b4652d664b27c56f7c0f8d4b38cc55fb4bbce983)) + + + + + # [6.36.0-alpha.2](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.1...v6.36.0-alpha.2) (2025-09-04) **Note:** Version bump only for package @walmart/me-at-walmart-container --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "6.36.0-alpha.2", + "version": "6.36.0-alpha.3", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version
a84fe559c3fa53112cf581ee359e3f1929787c84
--- packages/allspark-graphql-client/codegen/generate.js @@ -91,14 +91,12 @@ cli plugins: ['typescript-operations', 'typescript-react-apollo'], config: { withHooks: true, - defaultBaseOptions: { - context: { - headers: config.apollo.headers, - }, - }, // Merge apollo codegen config with allspark config ...(config.apollo || {}), ...(config.typescriptOperations || {}), + gqlImport: '@walmart/allspark-graphql-client', + apolloReactCommonImportFrom: '@walmart/allspark-graphql-client', + apolloReactHooksImportFrom: '@walmart/allspark-graphql-client', }, }, // Generate graphql yml file that will be used to register queries with Athena --- packages/allspark-graphql-client/src/apollo/hooks.ts @@ -1,49 +1,26 @@ -import { useApolloClient } from '@apollo/client'; -// Will eventually replace with @walmart/allspark-http-client +import { + useApolloClient, + useQuery as useQueryBase, + useLazyQuery as useLazyQueryBase, + useMutation as useMutationBase, +} from '@apollo/client'; +import { useHttpClientOptions } from './utils'; // Re-exposing common hooks. Renaming to match format of other services. export const useGraphQLClient = useApolloClient; -export { useQuery, useLazyQuery, useMutation } from '@apollo/client'; -// import { useQuery } from '@apollo/client'; - -// const useHttpClientHeaders = (method: string) => { -// const httpClient = useHttpClient(); - -// const headers = useMemo(() => { -// const clientHeaders = { -// ...httpClient.defaults.headers, -// ...httpClient.defaults.headers.common, -// ...httpClient.defaults.headers[method as keyof HeadersDefaults], -// }; - -// ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'].forEach( -// (key: string) => { -// delete clientHeaders[key as keyof typeof clientHeaders]; -// } -// ); - -// return clientHeaders; -// }, []); - -// return headers; -// }; - -// const useQuery2: typeof useQuery = (document, options) => { -// const httpClientHeaders = useHttpClientHeaders('get'); - -// const modifiedOptions = useMemo(() => { -// return { -// ...(options || {}), -// context: { -// ...(options?.context || {}), -// headers: { -// ...httpClientHeaders, -// ...(options?.context?.headers || {}), -// }, -// }, -// }; -// }, []); - -// return useQuery(document, modifiedOptions); -// }; +// Re-exposing base hooks with http client integration +export const useQuery: typeof useQueryBase = (document, options) => { + const modifiedOptions = useHttpClientOptions(options); + return useQueryBase(document, modifiedOptions); +}; + +export const useLazyQuery: typeof useLazyQueryBase = (document, options) => { + const modifiedOptions = useHttpClientOptions(options); + return useLazyQueryBase(document, modifiedOptions); +}; + +export const useMutation: typeof useMutationBase = (document, options) => { + const modifiedOptions = useHttpClientOptions(options); + return useMutationBase(document, modifiedOptions); +}; --- packages/allspark-graphql-client/src/apollo/index.ts @@ -1,4 +1,4 @@ export * from './hooks'; export * from './provider'; export * from './types'; -export * from './utils'; +export { gql } from './utils'; --- packages/allspark-graphql-client/src/apollo/utils.ts @@ -1 +1,74 @@ +import { MutationHookOptions, QueryHookOptions } from '@apollo/client'; +import { + HttpClientInstance, + useHttpClient, +} from '@walmart/core-services/HttpClient'; +import { useMemo } from 'react'; + export { gql } from '@apollo/client'; + +// Below is to integrate http client context into apollo query options +// Can simplify at some point when get headers is added to http client +const NON_HEADER_KEYS = [ + 'delete', + 'get', + 'head', + 'post', + 'put', + 'patch', + 'common', + 'link', + 'unlink', + 'options', + 'purge', +] as const; + +export const getHttpClientHeaders = ( + httpClient: HttpClientInstance, + method: string +) => { + const clientHeaders = { + ...httpClient.defaults.headers, + ...httpClient.defaults.headers.common, + // @ts-ignore + ...(httpClient.defaults.headers[method] || {}), + }; + + NON_HEADER_KEYS.forEach((key) => { + delete clientHeaders[key]; + }); + + return clientHeaders as Record<string, string>; +}; + +export const mergeOptionHeaders = ( + options: QueryHookOptions | MutationHookOptions, + headers: Record<string, string> +) => { + return { + ...(options || {}), + context: { + ...(options?.context || {}), + headers: { + ...headers, + ...(options?.context?.headers || {}), + }, + }, + }; +}; + +export const useHttpClientOptions = <O>(options: O): NonNullable<O> => { + const httpClient = useHttpClient(); + + const queryOptions = useMemo(() => { + const headers = getHttpClientHeaders(httpClient, 'post'); + return mergeOptionHeaders( + options as QueryHookOptions | QueryHookOptions, + headers + ); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [options]); + + // @ts-ignore + return queryOptions as O; +};
feat: add http client integration
feat: add http client integration
71faf245a90219c328e67be0787554dd45381734
--- ios/Podfile.lock @@ -139,40 +139,40 @@ PODS: - GoogleUtilities/Network (~> 7.7) - "GoogleUtilities/NSData+zlib (~> 7.7)" - nanopb (~> 2.30908.0) - - GoogleDataTransport (9.2.0): + - GoogleDataTransport (9.1.4): - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/AppDelegateSwizzler (7.8.0): + - GoogleUtilities/AppDelegateSwizzler (7.7.0): - GoogleUtilities/Environment - GoogleUtilities/Logger - GoogleUtilities/Network - - GoogleUtilities/Environment (7.8.0): + - GoogleUtilities/Environment (7.7.0): - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/ISASwizzler (7.8.0) - - GoogleUtilities/Logger (7.8.0): + - GoogleUtilities/ISASwizzler (7.7.0) + - GoogleUtilities/Logger (7.7.0): - GoogleUtilities/Environment - - GoogleUtilities/MethodSwizzler (7.8.0): + - GoogleUtilities/MethodSwizzler (7.7.0): - GoogleUtilities/Logger - - GoogleUtilities/Network (7.8.0): + - GoogleUtilities/Network (7.7.0): - GoogleUtilities/Logger - "GoogleUtilities/NSData+zlib" - GoogleUtilities/Reachability - - "GoogleUtilities/NSData+zlib (7.8.0)" - - GoogleUtilities/Reachability (7.8.0): + - "GoogleUtilities/NSData+zlib (7.7.0)" + - GoogleUtilities/Reachability (7.7.0): - GoogleUtilities/Logger - - GoogleUtilities/UserDefaults (7.8.0): + - GoogleUtilities/UserDefaults (7.7.0): - GoogleUtilities/Logger - leveldb-library (1.22.1) - - libwebp (1.2.3): - - libwebp/demux (= 1.2.3) - - libwebp/mux (= 1.2.3) - - libwebp/webp (= 1.2.3) - - libwebp/demux (1.2.3): + - libwebp (1.2.1): + - libwebp/demux (= 1.2.1) + - libwebp/mux (= 1.2.1) + - libwebp/webp (= 1.2.1) + - libwebp/demux (1.2.1): - libwebp/webp - - libwebp/mux (1.2.3): + - libwebp/mux (1.2.1): - libwebp/demux - - libwebp/webp (1.2.3) + - libwebp/webp (1.2.1) - nanopb (2.30908.0): - nanopb/decode (= 2.30908.0) - nanopb/encode (= 2.30908.0) @@ -184,7 +184,7 @@ PODS: - RNPermissions - Permission-Notifications (3.0.0): - RNPermissions - - PromisesObjC (2.1.1) + - PromisesObjC (2.1.0) - PTT (0.7.17-rc.2): - BinaryCodable (~> 0.2.1) - CocoaAsyncSocket (~> 7.6.3) @@ -441,8 +441,8 @@ PODS: - React - react-native-view-shot (3.1.2): - React - - react-native-webview (10.7.0): - - React + - react-native-webview (10.10.0): + - React-Core - react-native-wm-app-review (0.3.0): - React-Core - react-native-wm-barcode (2.36.6): @@ -606,7 +606,7 @@ PODS: - Apollo/SQLite (= 0.42.0) - Firebase/Messaging (~> 8.4) - StructuredLogAssistantIOS (= 0.0.7) - - SwiftProtobuf (1.20.2) + - SwiftProtobuf (1.19.0) - TextServiceProto (0.0.12): - SwiftProtobuf - VisionCamera (1.0.10): @@ -965,15 +965,15 @@ SPEC CHECKSUMS: GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4 glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85 GoogleAppMeasurement: 4c19f031220c72464d460c9daa1fb5d1acce958e - GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f - GoogleUtilities: 1d20a6ad97ef46f67bbdec158ce00563a671ebb7 + GoogleDataTransport: 5fffe35792f8b96ec8d6775f5eccd83c998d5a3b + GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1 leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729 - libwebp: 60305b2e989864154bd9be3d772730f08fc6a59c + libwebp: 98a37e597e40bfdb4c911fc98f2c53d0b12d05fc nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96 Permission-Camera: 358081c7b8210849958af181ce9ddeb11932aa82 Permission-LocationWhenInUse: e09ae67e8db2b1eeefb35f18ca59848d0785de5b Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef - PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb + PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72 PTT: ad0e445a1953114d2f5dd57b13de6fe1ed070fc5 RCT-Folly: 803a9cfd78114b2ec0f140cfa6fa2a6bafb2d685 RCTRequired: 0aa6c1c27e1d65920df35ceea5341a5fe76bdb79 @@ -1009,7 +1009,7 @@ SPEC CHECKSUMS: react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 - react-native-webview: 67b9024de02e7c0af9400283b0e3ca6eec55dc26 + react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 react-native-wm-app-review: f3539e622411158d5f25926bcb505cfad87ea7a8 react-native-wm-barcode: c29f14f511476c7ce29532843f696c2447670aef react-native-wm-voice-text: e41ea4227df3f52f3e2cab2f08fd89fbdcd02cfd @@ -1061,7 +1061,7 @@ SPEC CHECKSUMS: Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 SumoSDK: 2fa93ab09e028a4acd80d97914687d23fa1405b6 - SwiftProtobuf: 9f458aaa7844a2fc0b910053e66578bc4e2da9c1 + SwiftProtobuf: 6ef3f0e422ef90d6605ca20b21a94f6c1324d6b3 TextServiceProto: 07782a63b28a91b30d9a008ffd925768f6da6a2d VisionCamera: 60b74823ece943da919e2eb6dde62a676c486382 walmart-react-native-sumo-sdk: 591bc10e53b61d64285a694248e8f652585bfcb9
revert Podfile.lock
revert Podfile.lock
baddcf7e3698dc860b3ec528782e686410d527a4
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +## [2.42.1](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.42.0...v2.42.1) (2025-06-05) + + +### Bug Fixes + +* **ui:** update message team button for hourly users ([5b7109b](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/5b7109bd23a65d208a19e5a6bcbee9053e3143c0)) + # [2.42.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.41.0...v2.42.0) (2025-06-03) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.42.0", + "version": "2.42.1", "main": "dist/index.js", "files": [ "dist",
chore(release): 2.42.1 [skip ci]
chore(release): 2.42.1 [skip ci] ## [2.42.1](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.42.0...v2.42.1) (2025-06-05) ### Bug Fixes * **ui:** update message team button for hourly users ([5b7109b](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/5b7109bd23a65d208a19e5a6bcbee9053e3143c0))
84a38fd8d1e6eb3a860b1573f60bda2168210388
--- packages/allspark-graphql-client/package.json @@ -54,7 +54,7 @@ "@graphql-codegen/typescript-operations": "^2.5.10", "@graphql-codegen/typescript-react-apollo": "^3.3.7", "json-to-pretty-yaml": "^1.2.2", - "react": "^18.2.0", + "react": "*", "react-native-apollo-devtools-client": "^1.0.4" } } --- packages/allspark-http-client/package.json @@ -26,7 +26,6 @@ "axios": "~1.2.4" }, "peerDependencies": { - "react": "^18.2.0", - "react-native": "~0.70.5" + "react": "*" } } --- packages/allspark-utils/package.json @@ -43,7 +43,7 @@ "react-native": "~0.70.5" }, "peerDependencies": { - "react": ">=18.1", - "react-native": "~0.70.5" + "react": "*", + "react-native": "*" } } --- packages/core-services-allspark/package.json @@ -88,9 +88,9 @@ "@walmart/react-native-shared-navigation": ">=1.0.0", "@walmart/react-native-sumo-sdk": ">=2.4.0", "i18next": "^22.0.1", - "react": "^18.2.0", + "react": "*", "react-i18next": "^12.0.0", - "react-native": "~0.70.5", + "react-native": "*", "react-native-app-auth": "^6.4.3", "react-native-device-info": "^10.3.0", "react-native-permissions": "^3.6.0", --- packages/core-services/package.json @@ -39,9 +39,9 @@ }, "peerDependencies": { "i18next": "^22.0.1", - "react": "^18.2.0", + "react": "*", "react-i18next": "^12.0.0", - "react-native": "~0.70.5", + "react-native": "*", "react-redux": "^8.0.5", "redux": "^4.2.0", "redux-saga": "^1.2.2" --- packages/core-utils/package.json @@ -35,8 +35,8 @@ "peerDependencies": { "@react-navigation/native": "^6.0.0", "@react-navigation/stack": "^6.3.1", - "react": "^18.2.0", - "react-native": "~0.70.5", + "react": "*", + "react-native": "*", "redux": "^4.2.0", "redux-saga": "^1.2.2" } --- packages/core-widget-registry/package.json @@ -25,7 +25,7 @@ "@walmart/allspark-utils": "^1.6.1" }, "peerDependencies": { - "react": "^18.2.0", - "react-native": "~0.70.5" + "react": "*", + "react-native": "*" } }
Relax React peer dependencies ranges
Relax React peer dependencies ranges
2519a98fc5580cba307599e9f88facdecb678a89
--- packages/allspark-foundation-hub/src/SupplyChain/Hooks/useGetSupplyChainTeamsByStore.ts @@ -65,7 +65,7 @@ export const useGetSupplyChainAllTeamsBySite = () => { ) || []) as AllTeamsSections[]; const countryCode: string | undefined = useSelector( - SiteSelectors.getWorkingSiteCountryCode + UserSelectors.getCountryCode ); const { ...rest } = useGetSupplyChainTeamsByStoreQuery({
Update country code for supply chain query
Update country code for supply chain query
21274e590fb2ae3dce721376e734637f4e0632d8
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.1.0", + "version": "3.1.0-alpha.1", "main": "dist/index.js", "files": [ "dist", @@ -88,9 +88,9 @@ "@walmart/react-native-logger": "1.35.0", "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", - "@walmart/roster-mini-app": "3.3.0", + "@walmart/roster-mini-app": "3.3.0-alpha.1", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.2.0", + "@walmart/wmconnect-mini-app": "3.2.0-alpha.1", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6318,9 +6318,9 @@ __metadata: "@walmart/react-native-logger": "npm:1.35.0" "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" - "@walmart/roster-mini-app": "npm:3.3.0" + "@walmart/roster-mini-app": "npm:3.3.0-alpha.1" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.2.0" + "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.1" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6425,9 +6425,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:3.3.0": - version: 3.3.0 - resolution: "@walmart/roster-mini-app@npm:3.3.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.3.0.tgz" +"@walmart/roster-mini-app@npm:3.3.0-alpha.1": + version: 3.3.0-alpha.1 + resolution: "@walmart/roster-mini-app@npm:3.3.0-alpha.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.3.0-alpha.1.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6438,7 +6438,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/40367b5ee42816916d9487a60775ed66e3abd2f12a5d176ee105e357f74b634b00f7dc778dd3d8934a44b0a8d165d6c290e3f6a7e249b268a9d7cc066f5c279f + checksum: 10c0/8c401a6242125cff1ad29df4be5ecb3b8033eacbcee279486b4396b11ee25b266580f8091925114eaaf3291447bfe5bac28ddf74f6652af4dd4f84707b2646fe languageName: node linkType: hard @@ -6462,9 +6462,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.2.0": - version: 3.2.0 - resolution: "@walmart/wmconnect-mini-app@npm:3.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0.tgz" +"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.1": + version: 3.2.0-alpha.1 + resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.1.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6475,7 +6475,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/4498eb836e4cd74becc4197781a8e2d245acb7b0204c0058ca5c27ea45ba2a18a076a26eb54def2413e3e1b831f656bc7eb37321d6b6b2e3a62b82da8003bfb6 + checksum: 10c0/98f0be0e6c7653e775c5364b881059d526cbb9d942d2fb632d706e7c28543696ba68b65ea786742c5a0a9a70e7e6db12af3a63482a8593e934fab90e75f5607e languageName: node linkType: hard
feat(ui): updating roster wmconnect version for drop 33
feat(ui): updating roster wmconnect version for drop 33
9b5a8ff9b357ba85ed15729bc99b201d8dcd4fab
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.24.14](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.24.13...@walmart/allspark-foundation-hub@1.24.14) (2025-11-26) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.24.13](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.24.12...@walmart/allspark-foundation-hub@1.24.13) (2025-11-26) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.24.13", + "version": "1.24.14", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/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. +# [7.15.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.14.4...@walmart/allspark-foundation@7.15.0) (2025-11-26) + +### Features + +- **work:** add support for nested workflows ([3bd4c6d](https://gecgithub01.walmart.com/allspark/allspark/commit/3bd4c6df215360c1d3019397e38bb4dfa1a6887c)) + ## [7.14.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.14.3...@walmart/allspark-foundation@7.14.4) (2025-11-26) ### Bug Fixes --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.14.4", + "version": "7.15.0", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/me-at-walmart-geolocation/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.4.17](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.16...@walmart/me-at-walmart-geolocation@1.4.17) (2025-11-26) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + ## [1.4.16](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.15...@walmart/me-at-walmart-geolocation@1.4.16) (2025-11-26) **Note:** Version bump only for package @walmart/me-at-walmart-geolocation --- packages/me-at-walmart-geolocation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-geolocation", - "version": "1.4.16", + "version": "1.4.17", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js", --- packages/me-at-walmart-location/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.17](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.16...@walmart/me-at-walmart-location@1.2.17) (2025-11-26) + +**Note:** Version bump only for package @walmart/me-at-walmart-location + ## [1.2.16](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.15...@walmart/me-at-walmart-location@1.2.16) (2025-11-26) **Note:** Version bump only for package @walmart/me-at-walmart-location --- packages/me-at-walmart-location/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-location", - "version": "1.2.16", + "version": "1.2.17", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js", --- packages/my-walmart-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.4.14](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.4.13...@walmart/my-walmart-hub@1.4.14) (2025-11-26) + +**Note:** Version bump only for package @walmart/my-walmart-hub + ## [1.4.13](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.4.12...@walmart/my-walmart-hub@1.4.13) (2025-11-26) **Note:** Version bump only for package @walmart/my-walmart-hub --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.4.13", + "version": "1.4.14", "description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation@7.15.0 - @walmart/allspark-foundation-hub@1.24.14 - @walmart/me-at-walmart-geolocation@1.4.17 - @walmart/me-at-walmart-location@1.2.17 - @walmart/my-walmart-hub@1.4.14
8cccfe2ebeee7ddd11679ddf19ff3e8b550f04af
--- packages/allspark-foundation/src/Translation/client.ts @@ -172,8 +172,8 @@ export const TranslationClient = (config?: TranslationClientOptions) => { }; /** - * Return the device language which was configured on the device from the Settings menu. - * @returns the device language in this format language_COUNTRY. For example, for English for USA returns en_US. + * Returns the device language which was configured on the Settings Menu. + * @returns the device language in this format language_COUNTRY. For example, for USA'S English returns en_US. */ const getDeviceLanguage = async () => { return Platform.OS === 'ios' @@ -182,6 +182,10 @@ export const TranslationClient = (config?: TranslationClientOptions) => { : NativeModules.I18nManager?.localeIdentifier; }; + /** + * Formats the language received from the device and check if the language is supported or not by the market. + * Once this is done, it is responsible for changing the language parsed in the application if it's necessary. + */ const syncToDeviceLanguage = async () => { const originalDeviceLanguage = await getDeviceLanguage(); const parsedDeviceLanguage = originalDeviceLanguage.replace('_', '-');
Add comments
Add comments
3d7176dbe7854e4ce7af6a08daaa1c6e58ef5ec4
--- .looper.yml @@ -91,7 +91,7 @@ flows: canaryRelease: - call: preparePublish - - (name Publish Canary) HUSKY=0 npx lerna publish --canary preminor --preid alpha --registry ${REPOSOLNS_NPM_REPO} --yes + - (name Publish Canary) HUSKY=0 npx lerna publish --canary preminor --preid beta --registry ${REPOSOLNS_NPM_REPO} --yes publishMinor: - call: preparePublish --- packages/expo-config-plugins/src/withSumoSDK.ts @@ -3,6 +3,7 @@ import { withPlugins, withMainActivity, withInfoPlist, + withAppDelegate, } from '@expo/config-plugins'; import { mergeContents } from '@expo/config-plugins/build/utils/generateCode'; @@ -51,6 +52,32 @@ const withSumoAppGroupId: ConfigPlugin = (config) => { }); }; +const withSumoAppDelegate: ConfigPlugin = (config) => { + return withAppDelegate(config, (config) => { + // Add SumoSDK import at the top + config.modResults.contents = mergeContents({ + tag: 'sumo-sdk-import', + src: config.modResults.contents, + newSrc: 'import SumoSDK', + anchor: /import React/, + offset: 1, + comment: '//', + }).contents; + + // Add Sumo.shared.initialize() as the first line inside didFinishLaunchingWithOptions + config.modResults.contents = mergeContents({ + tag: 'sumo-sdk-initialize', + src: config.modResults.contents, + newSrc: ' Sumo.shared.initialize()', + anchor: /let delegate = ReactNativeDelegate\(\)/, + offset: 0, + comment: '//', + }).contents; + + return config; + }); +}; + const withSumoSDK: ConfigPlugin = (config) => { return withPlugins(config, [ [ @@ -87,6 +114,7 @@ const withSumoSDK: ConfigPlugin = (config) => { withAndroidHilt, withMainActivityIntent, withSumoAppGroupId, + withSumoAppDelegate, ]); };
feat(sumo): added sumo initialization plugin (#542)
feat(sumo): added sumo initialization plugin (#542) * fix(plugin): updated sumo plugin to add initialize line * fix(ci): fixed looper publish issue with beta version --------- Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com> Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com>
f34ea0d5236d2df9333fcca00933f5abf4e8cbd7
--- src/components/TeamList.tsx @@ -142,6 +142,7 @@ const styles = StyleSheet.create({ }, }); +// need to remove this const teamIconMap = { '1000340': Images.autoCareCenter, '1000316': Images.meatProduce,
feat(ci): added a comment
feat(ci): added a comment
ac259eb3dcd33f2e70bf1028dcc67f58f0853caf
--- app.config.US.ts @@ -271,21 +271,6 @@ const CONFIG: ExpoConfig = { 'Allow $(PRODUCT_NAME) to use your Camera for scanning barcodes', }, ], - [ - 'react-native-audio-api', - { - 'iosBackgroundMode': true, - 'androidPermissions' : [ - 'android.permission.MODIFY_AUDIO_SETTINGS', - 'android.permission.FOREGROUND_SERVICE', - 'android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK' - ], - 'androidForegroundService': true, - 'androidFSTypes': [ - 'mediaPlayback' - ] - } - ], ExpoPlugins.withAbiFilters, ExpoPlugins.withActiveArchFix, ExpoPlugins.withAndroidOfflineRun, --- metro.config.js @@ -1,9 +1,6 @@ /*eslint-env node*/ const {getDefaultConfig} = require('expo/metro-config'); const findWorkspaceRoot = require('find-yarn-workspace-root'); -const { - wrapWithAudioAPIMetroConfig, -} = require('react-native-audio-api/metro-config'); const path = require('path'); module.exports = (() => { @@ -42,5 +39,5 @@ module.exports = (() => { ] }; - return wrapWithAudioAPIMetroConfig(config); + return config; })(); --- package.json @@ -212,7 +212,6 @@ "react-i18next": "^13.3.1", "react-native": "patch:react-native@npm%3A0.76.9#~/.yarn/patches/react-native-npm-0.76.9-d42941e680.patch", "react-native-app-auth": "7.2.0", - "react-native-audio-api": "^0.6.5", "react-native-ble-manager": "11.6.1", "react-native-blob-util": "^0.19.5", "react-native-calendars": "^1.1291.0", --- yarn.lock @@ -7740,7 +7740,6 @@ __metadata: react-i18next: "npm:^13.3.1" react-native: "patch:react-native@npm%3A0.76.9#~/.yarn/patches/react-native-npm-0.76.9-d42941e680.patch" react-native-app-auth: "npm:7.2.0" - react-native-audio-api: "npm:^0.6.5" react-native-ble-manager: "npm:11.6.1" react-native-blob-util: "npm:^0.19.5" react-native-calendars: "npm:^1.1291.0" @@ -19033,18 +19032,6 @@ __metadata: languageName: node linkType: hard -"react-native-audio-api@npm:^0.6.5": - version: 0.6.5 - resolution: "react-native-audio-api@npm:0.6.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-audio-api%2F-%2Freact-native-audio-api-0.6.5.tgz" - peerDependencies: - react: "*" - react-native: "*" - bin: - setup-rn-audio-api-web: scripts/setup-rn-audio-api-web.js - checksum: 10c0/92e57cc95dd24d9ea1ce7772a36fe24deac049c91e4aa5bb5f7bc7bcce9792ba170e5ae5f82c2ac84a5c1dbea94ad653185397e10e951fef90ad99bad6fb5a46 - languageName: node - linkType: hard - "react-native-base64@npm:0.0.2": version: 0.0.2 resolution: "react-native-base64@npm:0.0.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-base64%2F-%2Freact-native-base64-0.0.2.tgz"
fix(pkg): remove react-native-audio-api android crash (#4525)
fix(pkg): remove react-native-audio-api android crash (#4525) * fix: downgrade react-native-audio-api * fix: dummy commit * fix: change expo-build-properties to fix build issues * fix: add to pickFirst * fix: check with doNotStrip * fix: check with doNotStrip and pickFirst * fix: remove react-native-audio-api package * fix: remove react-native-audio-api --------- Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com>
4663943884c07995a43510a4ac7a22288ff27ecd
--- .looper.multibranch.yml @@ -24,7 +24,7 @@ envs: ANDROID_BASE_PATH: targets/US/android branches: - - spec: feature/Drop24PlatformChanges + - spec: feature/drop24 triggers: - manual: name: Publish Packages (Pre-Release)
looper fix
looper fix
14c2e072ce9a91dce3cea36e6cf42544e0668018
--- package-lock.json @@ -5258,9 +5258,9 @@ "integrity": "sha512-O5l53Fi6FNLiIlMZipiqluRBN1/xNPKILeNoLFlgyG0sCLjaxK0td+u8m0Qb0QvS+UCT4A0hp6VOaXzL9ErqBg==" }, "@walmart/financial-wellbeing-feature-app": { - "version": "1.0.19", - "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.0.19.tgz", - "integrity": "sha512-GlTWqWfjHEO9Kbd3dH1rPyslphdYoCis23zBnUsRzv5nj4eFf+T1TTAJTD4dBr4F5ffVetbBJ+EdZD9DIEcu6g==", + "version": "1.0.22", + "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.0.22.tgz", + "integrity": "sha512-v+AM7gKHk2+eU9B05pG4FyM7KpCwnmu7QNPHPMDXNzbnprIVrurREMFUr3jCyMKbYxWuI9l/hE0Rsr1f9P1z1A==", "requires": { "react-native-video-player": "^0.14.0", "react-native-vimeo-iframe": "^1.2.0"
Updated package.lock for fwb.
Updated package.lock for fwb.
f4cc146b4df23461e9beba67175f4d6b9be7b815
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx @@ -16,10 +16,7 @@ import { ManagerExperienceCreators } from '../../Redux'; import { useHubConfig } from '../../Hooks/useHubConfig'; import { BottomSheetProvider } from '../../BottomSheet/BottomSheetContext'; import { TeamSelection } from '../../TeamSelection'; -import { - ComponentOverrideKeys, - ComponentOverrideValues, -} from './Screens/types'; +import { ComponentOverrides } from './Screens/types'; import { ClockGuard } from '@walmart/allspark-foundation/Clock/withClockGuard'; export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, { @@ -49,10 +46,6 @@ export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, { }, }); -export type ComponentOverrides = Record< - ComponentOverrideKeys, - ComponentOverrideValues ->; export class AllsparkHubContainer { private AllsparkWidgetContainer = {} as ComponentContainer; private componentOverrides = {} as ComponentOverrides; --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/types.ts @@ -7,8 +7,18 @@ export type ComponentOverrideValues = { export type ComponentOverrideKeys = 'Header' | 'FloatingButton'; +type Records = Record<ComponentOverrideKeys, ComponentOverrideValues>; + +export type ComponentOverrides = Record< + keyof Pick<Records, 'Header'>, + ComponentOverrideValues +> & + Partial< + Record<keyof Pick<Records, 'FloatingButton'>, ComponentOverrideValues> + >; + export type HubDashboardProps = { name: string; widgets: ValidatedTeamWidgetMapping; - componentOverrides: Record<ComponentOverrideKeys, ComponentOverrideValues>; + componentOverrides: ComponentOverrides; };
feat(ui): keeping header as rquired and all others as optional
feat(ui): keeping header as rquired and all others as optional
0af71c45d25430f26ebba43bd2aadfe2afe8bf9a
--- packages/allspark-utils/src/hooks/useAsync.ts @@ -79,19 +79,19 @@ export const useLazyAsync = < try { const data = await resolvePromise(promise, param); !!isMounted.current && - setState((prev) => ({ - ...prev, + setState({ + error: null, loading: false, data, - })); + }); return data as T; } catch (error) { !!isMounted.current && - setState((prev) => ({ - ...prev, + setState({ + data: null, loading: false, error: error as Error, - })); + }); return state.data; } };
fix:update error state for useAsync
fix:update error state for useAsync
40971ce9c128e05fe5e5a676d49c4481acf83f61
--- example/src/core/home.tsx @@ -55,7 +55,7 @@ export function HomeScreen() { <Button variant="primary" UNSAFE_style={{marginBottom: 10}} - onPress={() => AllsparkNavigationClient.navigate('onboarding.home')}> + onPress={() => AllsparkNavigationClient.navigate('teamHub.onboarding')}> Onboarding </Button> <Button
feat: fixed navigation from home screen
feat: fixed navigation from home screen
c629ac4649a7f2e62832747f33c78d455e349690
--- package-lock.json @@ -3254,9 +3254,9 @@ } }, "@walmart/allspark-home-mini-app": { - "version": "0.4.25", - "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.25.tgz", - "integrity": "sha512-8W/enMw7uIjenM9FitLuNhcOwNQscrVx1zrxUJnnTq1gftSl9zUrYnr8PV/HnxzTtvMoxbg9uJd26uwy35DnEg==", + "version": "0.4.27", + "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.27.tgz", + "integrity": "sha512-wcGHyLMPumMaYU2XSKzZyfrg14c5dsi7XLgL2gb347LIwmslOEUJ18WS/Km/xhK7SAP2TPK/hfXqKnFM99/1Mw==", "requires": { "moment": "^2.29.0", "uuid": "^8.3.1" --- package.json @@ -64,7 +64,7 @@ "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@walmart/allspark-health-survey-mini-app": "0.0.41", - "@walmart/allspark-home-mini-app": "0.4.25", + "@walmart/allspark-home-mini-app": "0.4.27", "@walmart/allspark-me-mini-app": "0.1.0", "@walmart/ask-sam-mini-app": "0.30.6", "@walmart/config-components": "^1.0.26",
bumping home version
bumping home version
eb93ff26916949655e3d5eeae0abdedbf4d9c3c4
--- packages/me-at-walmart-container/src/services/user/getCandidateInfo.ts @@ -47,7 +47,7 @@ export async function getCandidateInfo(tokenData: TokenData, token: string) { userId: inferUserIdfromUpn(tokenData.upn), employeeId: loggedInCandidate?.data?.employeeID, emailId: tokenData.upn, - homeSite: 'NOT_FOUND', + homeSite: undefined, domain: UserDomain.candidate, userType: UserType.prehire, } as User;
fix: default home site for candidate to undefined
fix: default home site for candidate to undefined
1387a7ac0277e68511bc069707e4a98862cc37a9
--- package.json @@ -180,7 +180,7 @@ "@walmart/time-clock-feature-app": "1.0.0", "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.13#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch", "@walmart/timesheet-feature-app": "0.2.0", - "@walmart/topstock-mini-app": "1.28.18", + "@walmart/topstock-mini-app": "1.28.19", "@walmart/translator-mini-app": "1.8.14", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.27.4#~/.yarn/patches/@walmart-ui-components-npm-1.27.4-f17d3c535e.patch", "@walmart/walmart-fiscal-week": "^0.3.6", --- yarn.lock @@ -8952,7 +8952,7 @@ __metadata: "@walmart/time-clock-feature-app": "npm:1.0.0" "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.13#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch" "@walmart/timesheet-feature-app": "npm:0.2.0" - "@walmart/topstock-mini-app": "npm:1.28.18" + "@walmart/topstock-mini-app": "npm:1.28.19" "@walmart/translator-mini-app": "npm:1.8.14" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.27.4#~/.yarn/patches/@walmart-ui-components-npm-1.27.4-f17d3c535e.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" @@ -10145,9 +10145,9 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.28.18": - version: 1.28.18 - resolution: "@walmart/topstock-mini-app@npm:1.28.18::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftopstock-mini-app%2F-%2F%40walmart%2Ftopstock-mini-app-1.28.18.tgz" +"@walmart/topstock-mini-app@npm:1.28.19": + version: 1.28.19 + resolution: "@walmart/topstock-mini-app@npm:1.28.19::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftopstock-mini-app%2F-%2F%40walmart%2Ftopstock-mini-app-1.28.19.tgz" peerDependencies: "@react-navigation/native": ">=5.8.10" "@react-navigation/stack": ">=5.12.8" @@ -10158,7 +10158,7 @@ __metadata: react-i18next: ">=11.7.3" react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/8cf4a20f8243644d6d6e0828596794987fe8883e87fa92694e36b55af2122c163ccbf5adc83c45c307a7cfdab03da110d6135be62013332ddfec9fdf6f12d99f + checksum: 10c0/cd2ef76376d4109022af37e64b747046a11ae9da242305ffc43b1814b82d4067bd2f14c620fbf90aa9a1b600a3ace1208554b3207d81c6d5d953d563560e65e3 languageName: node linkType: hard
fix: reverting section label upc mapping (#5331)
fix: reverting section label upc mapping (#5331) Co-authored-by: t0s0qvk <t0s0qvk@walmart.com> Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
41be15974eb3421a2c75948261e104d577fcdaa4
--- __tests__/startup/StartupFlowTest.ts @@ -26,7 +26,7 @@ import { } from '../../src/whatsNew/WhatsNewRedux'; import {checkAvailableSurveys} from '../../src/survey/SurveySaga'; import {Auth} from '../../src/core/Auth'; -import { handleAppReviewPrompt } from '../../src/appReview/sagas'; +import {handleAppReviewPrompt} from '../../src/appReview/sagas'; jest.mock('../../src/core/Auth', () => ({ Auth: {
lint fix
lint fix
47a6dd1c088365fa7c93bfaeca11f4ccf04afcf4
--- package.json @@ -131,9 +131,9 @@ "@walmart/myteam-mini-app": "3.5.0", "@walmart/native-rfid-scanner": "4.1.5", "@walmart/onewalmart-miniapp": "1.0.27", - "@walmart/online-w4-mini-app": "0.8.1", + "@walmart/online-w4-mini-app": "0.9.2", "@walmart/pay-stub-miniapp": "0.24.15", - "@walmart/payrollsolution_miniapp": "0.151.10", + "@walmart/payrollsolution_miniapp": "0.153.6", "@walmart/persona-hub": "0.3.3", "@walmart/price-changes-mini-app": "1.15.0", "@walmart/profile-feature-app": "2.8.1-UPV2MyWalmart.6", --- yarn.lock @@ -8347,9 +8347,9 @@ __metadata: "@walmart/myteam-mini-app": "npm:3.5.0" "@walmart/native-rfid-scanner": "npm:4.1.5" "@walmart/onewalmart-miniapp": "npm:1.0.27" - "@walmart/online-w4-mini-app": "npm:0.8.1" + "@walmart/online-w4-mini-app": "npm:0.9.2" "@walmart/pay-stub-miniapp": "npm:0.24.15" - "@walmart/payrollsolution_miniapp": "npm:0.151.10" + "@walmart/payrollsolution_miniapp": "npm:0.153.6" "@walmart/persona-hub": "npm:0.3.3" "@walmart/price-changes-mini-app": "npm:1.15.0" "@walmart/profile-feature-app": "npm:2.8.1-UPV2MyWalmart.6" @@ -8746,10 +8746,10 @@ __metadata: languageName: node linkType: hard -"@walmart/online-w4-mini-app@npm:0.8.1": - version: 0.8.1 - resolution: "@walmart/online-w4-mini-app@npm:0.8.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fonline-w4-mini-app%2F-%2F%40walmart%2Fonline-w4-mini-app-0.8.1.tgz" - checksum: 10c0/bf71950c6ac5954fb277f105df9f0ffb11f62847f43388dd27d0c36352e381e0a41b6bac0ca76c1071098fcbb82b5840622d4e8f5c7ddb498459149ab1d2876d +"@walmart/online-w4-mini-app@npm:0.9.2": + version: 0.9.2 + resolution: "@walmart/online-w4-mini-app@npm:0.9.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fonline-w4-mini-app%2F-%2F%40walmart%2Fonline-w4-mini-app-0.9.2.tgz" + checksum: 10c0/5b81536195982151bd9b6406779533e7967a2cad1db1f8506e329a851ebf2e2204f2d81391540b040fa7be1d45c90f119325b3212990bb4d1355be131a9c2c32 languageName: node linkType: hard @@ -8764,12 +8764,12 @@ __metadata: languageName: node linkType: hard -"@walmart/payrollsolution_miniapp@npm:0.151.10": - version: 0.151.10 - resolution: "@walmart/payrollsolution_miniapp@npm:0.151.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.151.10.tgz" +"@walmart/payrollsolution_miniapp@npm:0.153.6": + version: 0.153.6 + resolution: "@walmart/payrollsolution_miniapp@npm:0.153.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.153.6.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/a72720b6cedee14af2527113757da72e09236fb99bb459a366b636a5bdf7144c1851bc1edd3e5efb450d53dc1573f91a22dfe587d5f95dffa83d6078d7cde356 + checksum: 10c0/26473825bc7af3aaae44ca9182e5a5dc505a35bd7e554b4c1f0af38ec945f1fc05db1537cd4adc6d2424f8661501a853dcd56e9c3faac921688d01ffa04ec111 languageName: node linkType: hard
feat(payroll): Drop 34 version bump (#4737)
feat(payroll): Drop 34 version bump (#4737) Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
488217e4fbf6de2a0a3b7a5de5730fc9ecffe8a5
--- package.json @@ -161,7 +161,7 @@ "@walmart/sidekick-mini-app": "4.231.0", "@walmart/store-feature-orders": "1.34.7", "@walmart/talent-preboarding-mini-app": "1.0.41", - "@walmart/taskit-mini-app": "5.42.18", + "@walmart/taskit-mini-app": "5.42.21", "@walmart/time-clock-mini-app": "3.19.6", "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.27.1", --- yarn.lock @@ -8378,7 +8378,7 @@ __metadata: "@walmart/sidekick-mini-app": "npm:4.231.0" "@walmart/store-feature-orders": "npm:1.34.7" "@walmart/talent-preboarding-mini-app": "npm:1.0.41" - "@walmart/taskit-mini-app": "npm:5.42.18" + "@walmart/taskit-mini-app": "npm:5.42.21" "@walmart/time-clock-mini-app": "npm:3.19.6" "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.27.1" @@ -9282,12 +9282,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.42.18": - version: 5.42.18 - resolution: "@walmart/taskit-mini-app@npm:5.42.18::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.18.tgz" +"@walmart/taskit-mini-app@npm:5.42.21": + version: 5.42.21 + resolution: "@walmart/taskit-mini-app@npm:5.42.21::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.21.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/bc50634a8a82e2a099dd7c8e3be5c9c71d910161cf1182b7ed699004647b4a23ffd819bbbc9c51bd876fabbcf7d57847466f572eb1fd37581dd58af56c59c1a1 + checksum: 10c0/4f8ef0dbe2f595f588d6f2f42eabb9c72c1408cf8aa9a8675970782d8ee12b8b726b8f8992f3d0da5f78e47e43e0cb2e01c0458a147dc83d0c41525462f8d58e languageName: node linkType: hard
feat: adding notes safety
feat: adding notes safety
d4da729880a3b88ee5d84749d43f8ca651e48648
--- .looper.codepush.yml @@ -37,13 +37,16 @@ flows: echo 'Branch names:' git branch -a echo 'git setup done, moving to node part now' -# - npm install -g appcenter-cli + - npm install -g appcenter-cli - echo 'doing listing' - - npx appcenter apps list --token $APPCENTER_API_TOKEN_ANDROID + - appcenter apps list --token $APPCENTER_API_TOKEN_ANDROID - npm run env:dev - - npx appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d dev --description "update from looper for dev with npx" --token $APPCENTER_API_TOKEN_ANDROID + - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d dev --description "update from looper for dev " --token $APPCENTER_API_TOKEN_ANDROID + - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d dev --description 'looper update' --token $APPCENTER_API_TOKEN_ANDROID - npm run env:beta - - npx appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d beta --description "update from looper for beta npx" --token $APPCENTER_API_TOKEN_ANDROID + - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d beta --description "looper update beta" --token $APPCENTER_API_TOKEN_ANDROID + - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d dev --description 'looper update beta' --token $APPCENTER_API_TOKEN_ANDROID + - appcenter logout pr: - npm install
add beta flow
add beta flow
5a9ce0b6d521725e7167ee59af9ae306ecdcc5be
--- .env @@ -1,9 +1,13 @@ # -- Expo environment variables -- # # https://docs.expo.dev/more/expo-cli/#environment-variables # .env variables are loaded regardless of the environment but can be overriden by the environment specific files +EXPO_DEBUG=false + +# Skips warning about git status during potentially dangerous actions like npx expo prebuild --clean. EXPO_NO_GIT_STATUS=1 + # Enable up to 6x faster resolving in Metro. There are no known issues and this will likely become the default. EXPO_USE_FAST_RESOLVER=1 -EXPO_DEBUG=false + # https://expo.dev/changelog/2024/08-14-react-native-0.75#4-optional-try-out-autolinking-speed-improvements # EXPO_UNSTABLE_CORE_AUTOLINKING=1 \ No newline at end of file --- .env.development @@ -2,4 +2,6 @@ # https://docs.expo.dev/more/expo-cli/#environment-variables # .env.development variables are only loaded when NODE_ENV is 'development' # variables defined here will override their definitions in .env + +# Enables debug logs for the CLI, you can configure this using the debug convention. EXPO_DEBUG=true \ No newline at end of file --- .env.production @@ -2,4 +2,6 @@ # https://docs.expo.dev/more/expo-cli/#environment-variables # .env.production variables are only loaded when NODE_ENV is 'production' # variables defined here will override their definitions in .env + +# Enables debug logs for the CLI, you can configure this using the debug convention. EXPO_DEBUG=false \ No newline at end of file
docs: enhance comments on env files
docs: enhance comments on env files
fbf073bd52f71c9b57ed9dc83cba9fd35d76dbd1
--- package-lock.json @@ -3315,9 +3315,9 @@ "integrity": "sha512-B31BaP6kN0RtiKzp7xK9qvo7XwPiqC0z/8J1se0K3pIqHeNx2mvbSRDGLoCzh+szhWGkPlyTDRAbJrZI+B8IRA==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.0.56", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.56.tgz", - "integrity": "sha512-FCvqs+o/BRBeAQTpXfhOLtPo2gY10vwdj20dOf40bXnNS9nvv4XmgflTUnsCitNnGOyB725K1xB/RL+8Ye01tg==" + "version": "0.0.57", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.57.tgz", + "integrity": "sha512-lbV2m3GzVsCQXKeD2+y+mJwwTGlxqYaBZFIbCdflIIa8f3f0FXowT6eftvtTY4oqiPBRY2M1TDI53YPSoH6E6g==" }, "@walmart/functional-components": { "version": "1.0.30", --- package.json @@ -70,7 +70,7 @@ "@walmart/config-components": "^1.0.26", "@walmart/counts-component-miniapp": "0.0.15", "@walmart/exception-mini-app": "0.28.0", - "@walmart/feedback-all-spark-miniapp": "0.0.56", + "@walmart/feedback-all-spark-miniapp": "0.0.57", "@walmart/functional-components": "1.0.30", "@walmart/gtp-shared-components": "^1.1.8", "@walmart/impersonation-mini-app": "1.0.15",
Bumping feedback mini app version
Bumping feedback mini app version
01dfa3a59af5d1bf1c0a4e1cc3893b07cab88f5b
--- src/home/components/Announcement/AnnouncementWebView.tsx @@ -4,7 +4,7 @@ import {WebView} from 'react-native-webview'; import {Spinner, Button} from '@walmart/gtp-shared-components'; import {useTranslation} from 'react-i18next'; -import {Logger} from '../../../core/Logger'; +import {HomeLogger} from '../../../core/Logger'; import styles from './styles'; export const AnnouncementWebView = (props: any) => { @@ -24,7 +24,7 @@ export const AnnouncementWebView = (props: any) => { const onLoadEnd = () => { setShowLoading(false); - Logger.info('ANNOUNCEMENT_PAGE_LOADED'); + HomeLogger.info('ANNOUNCEMENT_PAGE_LOADED'); }; const onGoHome = () => navigation.navigate('tabs', {screen: 'home'}); const formattedUrl = url.includes('http') ? url : `http://${url}`; @@ -37,7 +37,7 @@ export const AnnouncementWebView = (props: any) => { onLoadStart={onLoadStart} onLoadEnd={onLoadEnd} onHttpError={({nativeEvent}) => { - Logger.error('ANNOUNCEMENT_PAGE_ERROR', { + HomeLogger.error('ANNOUNCEMENT_PAGE_ERROR', { message: `URL:${nativeEvent.url} failed to load with status code ${nativeEvent.statusCode}`, }); }}
Updated to HomeLogger
Updated to HomeLogger
36b0b2e6bfd6459fba4ab9b3f9e4a73030cbb875
--- packages/allspark-foundation/__tests__/FeatureRunner/modals/ClockModal.test.tsx @@ -34,10 +34,7 @@ describe('ClockModal', () => { .mockReturnValueOnce(ClockStatus.clockedOut) // clockStatus .mockReturnValueOnce(false); // clockedIn - const { debug, toJSON } = render(<ClockModal />); - console.log('printing debug output'); - debug(); - console.log('done printing debug output: ', toJSON()); + render(<ClockModal />); const bottomSheetElement = screen.getByText('Change clock status'); expect(bottomSheetElement).toBeTruthy();
fix: remove debug logs in unit tests
fix: remove debug logs in unit tests
1ae58363f91fdea71e5350f28f67f3ae84b45a79
--- package-lock.json @@ -4520,9 +4520,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.22.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.22.0.tgz", - "integrity": "sha512-D7wF6bgd/wu45qIlcRGhMLqY4VQ9+rouuSLLlGSvB6/LE1G/6retyj/EjUUPIBBLOYZv/kgPOElK06hMWYBuzA==" + "version": "0.23.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.23.0.tgz", + "integrity": "sha512-ShgE2WKoen/xQaf/6RGTC5rtruXuIBP8h0hnObYHmi6AFycfnj2q7BXtd5YLCAdendCl6oBiGKsUfrVpQTHlFg==" }, "@walmart/time-clock-mini-app": { "version": "0.5.2", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.13.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.7", - "@walmart/taskit-mini-app": "0.22.0", + "@walmart/taskit-mini-app": "0.23.0", "@walmart/time-clock-mini-app": "0.5.2", "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.63.0",
Updating taskit version
Updating taskit version