commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
30a709c1e6d56a43521b7d6ac8241924d8fd8c31
--- packages/allspark-foundation/src/Navigation/client.tsx @@ -529,7 +529,7 @@ export class NavigationClient< * Opens a modal based on the provided modalName. */ public openModal = <K extends keyof M>( - modalName: Exclude<keyof M, number | symbol>, + modalName: Exclude<K, number | symbol>, params?: M[K], callback?: () => void ) => {
chore: typing fix for open modal method
chore: typing fix for open modal method
8cbc31d45b38b1274a2abf5e5c5203f11252f87f
--- sr.yaml @@ -29,8 +29,8 @@ applications: consumerIdInfos: - consumerId: b91fecf3-d2a9-4366-8314-1d7be7b2bdad publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Sd/5WZVMSYMzdo15XuI+lGtspwJQLqYnezaq4KsnKi6a7sYilHTWfouGvsddY9b3aElh77e3LLbFuzl5epUyTZlpaTWyn+BKfoTlEMIDaatyDIr6mVn1ria1bbnNPsCAU3HthkmO+cFn5tt80GhzBCfQN41qbLerLN5QYmaWmg2+52blVaDUwqrVYC1obBg3jdhQkPLGEWCFqO4DqTEff0CSISyWRoECkEbVVx7fWSNJvWTPu9/bknC3Jk72yAK+R45j3l6f7hHzC4w/kliuXr8WsmLagspIe9WTJJ0kMq47guwozsggohRSSc8zIElfvdWOMpm3GP5w4W8TRHUeQIDAQAB - - name: prod - type: PRODUCTION - consumerIdInfos: - - consumerId: df06a824-11a5-4dca-a991-a2b564decd99 - publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Sd/5WZVMSYMzdo15XuI+lGtspwJQLqYnezaq4KsnKi6a7sYilHTWfouGvsddY9b3aElh77e3LLbFuzl5epUyTZlpaTWyn+BKfoTlEMIDaatyDIr6mVn1ria1bbnNPsCAU3HthkmO+cFn5tt80GhzBCfQN41qbLerLN5QYmaWmg2+52blVaDUwqrVYC1obBg3jdhQkPLGEWCFqO4DqTEff0CSISyWRoECkEbVVx7fWSNJvWTPu9/bknC3Jk72yAK+R45j3l6f7hHzC4w/kliuXr8WsmLagspIe9WTJJ0kMq47guwozsggohRSSc8zIElfvdWOMpm3GP5w4W8TRHUeQIDAQAB \ No newline at end of file + # - name: prod + # type: PRODUCTION + # consumerIdInfos: + # - consumerId: df06a824-11a5-4dca-a991-a2b564decd99 + # publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Sd/5WZVMSYMzdo15XuI+lGtspwJQLqYnezaq4KsnKi6a7sYilHTWfouGvsddY9b3aElh77e3LLbFuzl5epUyTZlpaTWyn+BKfoTlEMIDaatyDIr6mVn1ria1bbnNPsCAU3HthkmO+cFn5tt80GhzBCfQN41qbLerLN5QYmaWmg2+52blVaDUwqrVYC1obBg3jdhQkPLGEWCFqO4DqTEff0CSISyWRoECkEbVVx7fWSNJvWTPu9/bknC3Jk72yAK+R45j3l6f7hHzC4w/kliuXr8WsmLagspIe9WTJJ0kMq47guwozsggohRSSc8zIElfvdWOMpm3GP5w4W8TRHUeQIDAQAB \ No newline at end of file
feat(ui): update sr yaml for celebrations
feat(ui): update sr yaml for celebrations
73a0a93dc8eb4226545da29958b7277dcd2bd916
--- packages/allspark-foundation/src/Components/ComponentContainers.tsx @@ -336,7 +336,7 @@ class ComponentContainerManager<ParamList extends Record<string, any>> { ) => { const existing = this._containers[containerId]; if (existing) { - return existing; + return existing as ComponentContainer<T>; } const container = new ComponentContainer<T>(containerId, config); @@ -344,7 +344,7 @@ class ComponentContainerManager<ParamList extends Record<string, any>> { // @ts-ignore this.register(containerId, container); - return container as ComponentContainer<ParamList[string]>; + return container as ComponentContainer<T>; }; /**
fix: component container create typing not honoring generic
fix: component container create typing not honoring generic
b1f16dd7ab41f3febf534ef24ef1d7e7cbd17d61
--- package-lock.json @@ -36,7 +36,7 @@ "@walmart/amp-mini-app": "1.0.11", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.59", - "@walmart/attendance-mini-app": "0.83.0", + "@walmart/attendance-mini-app": "0.84.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.15", "@walmart/core-services-allspark": "~2.10.3", @@ -4846,9 +4846,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "0.83.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.83.0.tgz", - "integrity": "sha512-sekN5k986V/RVTvYrNIRfVzgGT4FtdBtN1Nc0e0YFmJ9RmF1XFQ54zeGBgp2ZoMPTX21XiH+voAAATGFnoWM1Q==", + "version": "0.84.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.84.0.tgz", + "integrity": "sha512-Cszfye9k6J0cWv6asM3g68phrD2jD7qHan5T2kOP4YaSKgN856lHeIR01FvqazHeki6p+yczIp/MXd4rdthIeg==", "dependencies": { "@walmart/gta-react-native-calendars": "0.0.16", "moment-timezone": "0.5.40", @@ -24984,9 +24984,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "0.83.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.83.0.tgz", - "integrity": "sha512-sekN5k986V/RVTvYrNIRfVzgGT4FtdBtN1Nc0e0YFmJ9RmF1XFQ54zeGBgp2ZoMPTX21XiH+voAAATGFnoWM1Q==", + "version": "0.84.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.84.0.tgz", + "integrity": "sha512-Cszfye9k6J0cWv6asM3g68phrD2jD7qHan5T2kOP4YaSKgN856lHeIR01FvqazHeki6p+yczIp/MXd4rdthIeg==", "requires": { "@walmart/gta-react-native-calendars": "0.0.16", "moment-timezone": "0.5.40", --- package.json @@ -78,7 +78,7 @@ "@walmart/amp-mini-app": "1.0.11", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.59", - "@walmart/attendance-mini-app": "0.83.0", + "@walmart/attendance-mini-app": "0.84.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.15", "@walmart/core-services-allspark": "~2.10.3",
bump ama
bump ama
b8a68dae27201215e28fc720bc06a77ebd9a3737
--- packages/allspark-foundation-hub/src/HubFeature/Hub/HubWidget/index.tsx @@ -38,20 +38,20 @@ export const HubWidget = ({ return ( <View style={styles.container}> {/* HEADER */} - <View style={styles.heading}> - <IconComponent - size='medium' - color={colors.blue['100']} - testID='icon' - accessible - accessibilityRole='image' - accessibilityLabel={`${moduleTitle} - ${iconName}`} - /> - <TouchableOpacity - onPress={() => - AllsparkNavigationClient.navigate(routeName, routeParams) - } - > + <TouchableOpacity + onPress={() => + AllsparkNavigationClient.navigate(routeName, routeParams) + } + > + <View style={styles.heading}> + <IconComponent + size='medium' + color={colors.blue['100']} + testID='icon' + accessible + accessibilityRole='image' + accessibilityLabel={`${moduleTitle} - ${iconName}`} + /> <Heading UNSAFE_style={styles.title} size='medium' testID='heading'> {moduleTitle} </Heading> @@ -63,8 +63,8 @@ export const HubWidget = ({ accessibilityRole='link' accessibilityLabel={`View ${moduleTitle}`} /> - </TouchableOpacity> - </View> + </View> + </TouchableOpacity> {showShortIntro && ( <Body
Update widget navigation
Update widget navigation
bdb03853723fc38fb0df4dce84d44faf21676ba9
--- .looper.multibranch.yml @@ -7,6 +7,13 @@ envs: variables: ALLOW_NPM_PUSH_TO_AF: true +tools: + jdk: + flavor: azul + version: 17 + nodejs: 23.6.0 + maven: 3.5.4 + cache: # overridden to fix cocoapods path - name: yarn-cache configs:
chore: increment looper node version to test build fix
chore: increment looper node version to test build fix
27fe66798ce953c714540f0a6d533acfcf088d34
--- package-lock.json @@ -3254,9 +3254,9 @@ } }, "@walmart/allspark-home-mini-app": { - "version": "0.4.19-test.0", - "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.19-test.0.tgz", - "integrity": "sha512-7UFY+HABxywTC5OScokD6y6BIoFgsaeimmHr1Xa05FHXTHCx4fsoCn/UU5xvpt13WfJZtQRnjiDIAdYl++jzvg==", + "version": "0.4.21", + "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.21.tgz", + "integrity": "sha512-GMeDAXzubNkJFyWqxWp/aiLeOhGVIKc7cMb4DnUzMwcfJnMZKe8ENqbsYxe+QLFRSzfDOd3jnKnJuG42zAkJXA==", "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.19-test.0", + "@walmart/allspark-home-mini-app": "0.4.21", "@walmart/allspark-me-mini-app": "0.1.0", "@walmart/ask-sam-mini-app": "0.30.2", "@walmart/config-components": "^1.0.26",
adding covid banner
adding covid banner
43185bf0e3065e57ff71b3f1083c89bf548fb6e2
--- packages/me-at-walmart-container/__tests__/http/interceptors/work.test.ts @@ -1,7 +1,7 @@ import {WorkInterceptor} from '../../../src/http/interceptors/workInterceptor' +import { AllsparkReduxStore, InternalHttpClientRequestConfig } from '@walmart/allspark-foundation'; + -import { InternalHttpClientRequestConfig } from '../../src/HTTP'; -import { AllsparkReduxStore } from '../../src/Core'; const actionId = '12345'; const mockSet = jest.fn(); --- packages/me-at-walmart-container/src/http/interceptors/work.ts @@ -1,5 +1,8 @@ -import { AllsparkReduxStore, InternalHttpClientRequestConfig } from '@walmart/allspark-foundation'; -import { Interceptor } from '@walmart/allspark-foundation'; +import { + AllsparkReduxStore, + Interceptor, + InternalHttpClientRequestConfig +} from '@walmart/allspark-foundation'; import { WorkSelectors } from '@walmart/allspark-foundation/Work'; import { WORK_APPS } from '../constants';
fix: rename files DWORK-7538
fix: rename files DWORK-7538
6b012ad689bf85f505cb4875a17bd39d429badc3
--- package.json @@ -77,7 +77,7 @@ "@types/redux-mock-store": "^1.0.2", "@walmart/allspark-authentication": "6.4.1", "@walmart/allspark-foundation": "^6.32.0", - "@walmart/allspark-foundation-hub": "1.10.0-beta.4766+f3003bb5", + "@walmart/allspark-foundation-hub": "1.10.0-beta.4771+808b12d0", "@walmart/allspark-graphql-client": "6.3.29", "@walmart/allspark-http-client": "6.3.29", "@walmart/allspark-utils": "6.5.1", --- src/screens/HomeScreen.tsx @@ -87,7 +87,7 @@ export const HomeScreen = AssociateExpHubFeature.createScreen(() => { </LocalHeader> <View style={styles.hubContainer}> - <HubFactory useWidgetManagement={false} /> + <HubFactory useWidgetManagement={true} /> </View> </View> </> --- yarn.lock @@ -6009,9 +6009,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4766+f3003bb5": - version: 1.10.0-beta.4766 - resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4766::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4766.tgz" +"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4771+808b12d0": + version: 1.10.0-beta.4771 + resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4771::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4771.tgz" peerDependencies: "@react-navigation/native": 6.x "@walmart/allspark-foundation": ">=6.27" @@ -6021,7 +6021,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/360618233e65e80d171e054fd6a8a834cb4be32912959fa15efeb757317c5e9d322090267570010c592fb3e8934721932f68b60748590970095b2f875e0c47e1 + checksum: 10c0/5de78b1ec73b93feb34d6a27835763b7b5f8991019dbb86005ab8add44da22d94fc8483cd5f6a043f30ad1340757c4356fa93afea96c79cec883879f0bc62af6 languageName: node linkType: hard @@ -6200,7 +6200,7 @@ __metadata: "@types/redux-mock-store": "npm:^1.0.2" "@walmart/allspark-authentication": "npm:6.4.1" "@walmart/allspark-foundation": "npm:^6.32.0" - "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4766+f3003bb5" + "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4771+808b12d0" "@walmart/allspark-graphql-client": "npm:6.3.29" "@walmart/allspark-http-client": "npm:6.3.29" "@walmart/allspark-utils": "npm:6.5.1"
feat(ui): update allspark-foundation-hub version
feat(ui): update allspark-foundation-hub version
04037a1bc4c3e1f346793aadfdb635f57517f4ab
--- package-lock.json @@ -46,7 +46,7 @@ "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.17.0", "@walmart/exception-mini-app": "1.0.14", - "@walmart/facilities-management-miniapp": "0.5.2", + "@walmart/facilities-management-miniapp": "0.5.3", "@walmart/feedback-all-spark-miniapp": "0.9.9", "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", @@ -5082,9 +5082,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.5.2", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.2.tgz", - "integrity": "sha512-8Y/UKsh7NDnhotqqVnbB4cUIZXT/erc2qy0/ZZONLEkvz1DzuSVVr0R8juDvTyVe/ynhCfrJnm4IXvSGoijxew==", + "version": "0.5.3", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.3.tgz", + "integrity": "sha512-ZduEwplPe90QrlzJrntQ6MuSlboRR8RK0nHYN4jaRw50jApp6XuwQoN77YtTcdN/GEZWNWhnERmK+HSdJK9ChA==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25164,9 +25164,9 @@ "integrity": "sha512-SaexB86EUhjf0oQiOc3RbsEMz9TsSM3av62l46CVznEOOVGmdcrm3naA37GxXSX5LeD0Brft2bWJ5xJbRkqwKg==" }, "@walmart/facilities-management-miniapp": { - "version": "0.5.2", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.2.tgz", - "integrity": "sha512-8Y/UKsh7NDnhotqqVnbB4cUIZXT/erc2qy0/ZZONLEkvz1DzuSVVr0R8juDvTyVe/ynhCfrJnm4IXvSGoijxew==" + "version": "0.5.3", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.3.tgz", + "integrity": "sha512-ZduEwplPe90QrlzJrntQ6MuSlboRR8RK0nHYN4jaRw50jApp6XuwQoN77YtTcdN/GEZWNWhnERmK+HSdJK9ChA==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.9", --- package.json @@ -89,7 +89,7 @@ "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.17.0", "@walmart/exception-mini-app": "1.0.14", - "@walmart/facilities-management-miniapp": "0.5.2", + "@walmart/facilities-management-miniapp": "0.5.3", "@walmart/feedback-all-spark-miniapp": "0.9.9", "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", --- patches/@walmart+facilities-management-miniapp+0.5.3.patch
FCM Version bump
FCM Version bump
f48eb525d367058d0500470da42e4984b15bb344
--- .looper.multibranch.yml @@ -47,7 +47,7 @@ envs: global: variables: CI: true - LOOPER_NODES: "(osx||stable_osx)" + LOOPER_NODES: "stable_osx&&!!dualcore" GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}" TMPDIR: /tmp
Looper change
Looper change
db0ffa6d35523b4682491560964be0b63f4281d4
--- package.json @@ -336,4 +336,4 @@ "pre-push": "run-p solidarity coverage" } } -} +} \ No newline at end of file
Up profile to 0.141.0
Up profile to 0.141.0
2dbc6e60e09dd548659f8b3da39470bbe62c5d72
--- packages/allspark-cli/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.8.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-cli@1.7.3...@walmart/allspark-cli@1.8.0) (2026-01-06) + +### Features + +- **graphql-codegen:** add codegen to allspark-cli ([#498](https://gecgithub01.walmart.com/allspark/allspark/issues/498)) ([46c6895](https://gecgithub01.walmart.com/allspark/allspark/commit/46c689523b38ae5a9eb3f904a951b8758aa65790)) + ## [1.7.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-cli@1.7.2...@walmart/allspark-cli@1.7.3) (2025-11-13) ### Bug Fixes --- packages/allspark-cli/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-cli", - "version": "1.7.3", + "version": "1.8.0", "description": "Allspark CLI: CLI tools for allspark clients", "main": "dist/index.js", "types": "dist/index.d.ts", --- 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.33](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.32...@walmart/allspark-foundation-hub@1.25.33) (2026-01-06) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.25.32](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.31...@walmart/allspark-foundation-hub@1.25.32) (2026-01-06) **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.32", + "version": "1.25.33", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/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. +## [7.17.13](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.17.12...@walmart/allspark-foundation@7.17.13) (2026-01-06) + +**Note:** Version bump only for package @walmart/allspark-foundation + ## [7.17.12](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.17.11...@walmart/allspark-foundation@7.17.12) (2026-01-06) **Note:** Version bump only for package @walmart/allspark-foundation --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.17.12", + "version": "7.17.13", "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.11.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.11.3...@walmart/my-walmart-hub@1.11.4) (2026-01-06) + +**Note:** Version bump only for package @walmart/my-walmart-hub + ## [1.11.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.11.2...@walmart/my-walmart-hub@1.11.3) (2026-01-06) **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.11.3", + "version": "1.11.4", "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-cli@1.8.0 - @walmart/allspark-foundation@7.17.13 - @walmart/allspark-foundation-hub@1.25.33 - @walmart/my-walmart-hub@1.11.4
32a049f26e564e3dcdb062cbc58a04964a85b910
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/attendance-mini-app": "0.190.6", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.5", - "@walmart/copilot-mini-app": "^2.3.18", + "@walmart/copilot-mini-app": "^2.3.19", "@walmart/core-services": "~2.2.0", "@walmart/core-services-allspark": "~2.12.6", "@walmart/core-utils": "~2.0.5", @@ -8104,9 +8104,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "2.3.18", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.18.tgz", - "integrity": "sha512-0xigwkVuRDSXSXveNUo6E5X7g5KUdIyKNOtvDUCrhzGVNh1c6DzFzlSg4vyv70+OcWUMYVClVgrXIsGui54utg==", + "version": "2.3.19", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.19.tgz", + "integrity": "sha512-r26ehSzcYQ6Wmz53NLLsnr9i2EThB69R8yJ1N/axT24eybEQrsmLNria/5aa/uylq3GYjtcc7eh6+N+39vu80Q==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -33580,9 +33580,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "2.3.18", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.18.tgz", - "integrity": "sha512-0xigwkVuRDSXSXveNUo6E5X7g5KUdIyKNOtvDUCrhzGVNh1c6DzFzlSg4vyv70+OcWUMYVClVgrXIsGui54utg==" + "version": "2.3.19", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.19.tgz", + "integrity": "sha512-r26ehSzcYQ6Wmz53NLLsnr9i2EThB69R8yJ1N/axT24eybEQrsmLNria/5aa/uylq3GYjtcc7eh6+N+39vu80Q==" }, "@walmart/core-services": { "version": "2.2.0", --- package.json @@ -84,7 +84,7 @@ "@walmart/attendance-mini-app": "0.190.6", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.5", - "@walmart/copilot-mini-app": "2.3.18", + "@walmart/copilot-mini-app": "2.3.19", "@walmart/core-services": "~2.2.0", "@walmart/core-services-allspark": "~2.12.6", "@walmart/core-utils": "~2.0.5",
chore: bump copilot@2.3.19
chore: bump copilot@2.3.19
39e16f9b93fa203923a18089b8a25d0e0db88e86
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/SearchInput/ModalTeamListItem.tsx @@ -4,18 +4,18 @@ import { teamListItemStyles } from './style'; import { Body } from '@walmart/gtp-shared-components'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; -import { ModalTeamListItemProps } from './types'; +import { PillTeamListItemProps } from './types'; import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; import { useUserPersonaType } from '../../../Store//Hooks/useUserPersonaType'; import { Images } from '../../../Store/Images/images'; -export const ModalTeamListItem = ({ +export const PillTeamListItem = ({ isSelected, teamId, teamName, teamImage, onSelect, -}: ModalTeamListItemProps) => { +}: PillTeamListItemProps) => { const TeamImage = useAllsparkImage(); const logger = LoggerService.getContainerInstance(); const telemetryService = useTelemetryService(); --- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/SearchInput/types.ts @@ -13,7 +13,7 @@ export interface TeamSearchInputProps { handleChange: (text: string) => void; } -export interface ModalTeamListItemProps { +export interface PillTeamListItemProps { isSelected: boolean; teamId: string; teamName: string;
Renaming component
Renaming component
2aeea24828c9402cad16a326be309a622c942bad
--- android/app/build.gradle @@ -153,8 +153,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 878 - versionName "1.6.1" + versionCode 879 + versionName "1.6.2" } splits { abi { --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.6.1</string> + <string>1.6.2</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -36,7 +36,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>878</string> + <string>879</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.6.1", + "version": "1.6.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -4371,9 +4371,9 @@ "integrity": "sha512-xXCe5sJeytOO9HAKLaTiQQMzomfUS2wUP6ICLYv9BGtdJUDmoKNT7aFYeRDGPgvPvkc1A8oFrqJIrOshjLnxSg==" }, "@walmart/react-native-sumo-sdk": { - "version": "2.1.0", - "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.1.0.tgz", - "integrity": "sha512-soMMFPbISucCuTfmQK2K7HPqrJxtS+5XLniaNxj9LXtNzZuf62Sp7qRRtub9LNzDNkK79UHF6uRLmbG0Oq0vqA==" + "version": "2.2.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.2.0.tgz", + "integrity": "sha512-y7qpakPUnLrHXskuvuMmyPGRfttJhllcUm31hE0awpa7ebveEOmfvBhlpa4zBgCkA3E54FRWKLN158sVynf64g==" }, "@walmart/redux-store": { "version": "1.1.26", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.6.1", + "version": "1.6.2", "private": true, "scripts": { "firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json", @@ -95,7 +95,7 @@ "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0", - "@walmart/react-native-sumo-sdk": "2.1.0", + "@walmart/react-native-sumo-sdk": "2.2.0", "@walmart/redux-store": "1.1.26", "@walmart/refrigeration-alarms-mini-app": "1.34.0", "@walmart/schedule-mini-app": "0.12.0", --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -39,6 +39,7 @@ import {MainTabsNav} from './Tabs'; import {PinAccess} from '../../PinAccess/PinAccess'; import {BiometricModal} from '../../biometrics/BiometricModal'; import {StoreInfoModal} from '../../storeInfo/StoreInfoModal'; +import {Platform} from 'react-native'; //--- Main Stack --- // const MainStack = createStackNavigator(); @@ -168,7 +169,7 @@ export const MainStackNav = () => { name='askSam' component={AskSamMiniApp} options={{ - gestureEnabled: true, + gestureEnabled: Platform.OS === 'ios', gestureDirection: 'vertical', }} /> @@ -176,7 +177,7 @@ export const MainStackNav = () => { name='taskItQuickActions' component={ClockOutGuardedTaskItQuickAction} options={{ - gestureEnabled: true, + gestureEnabled: Platform.OS === 'ios', gestureDirection: 'vertical', }} />
version bump
version bump
0700f8a262bba4e2a511ca945866099bdac117d8
--- package.json @@ -84,7 +84,7 @@ "@walmart/gtp-shared-components": "1.2.0", "@walmart/impersonation-mini-app": "1.0.27", "@walmart/ims-print-services-ui": "0.1.10", - "@walmart/inbox-mini-app": "0.23.0", + "@walmart/inbox-mini-app": "0.24.0", "@walmart/iteminfo-mini-app": "2.0.16", "@walmart/manager-approvals-miniapp": "0.0.58", "@walmart/metrics-mini-app": "0.5.18",
inbox-mini-app version bump
inbox-mini-app version bump
c09c961646ad87735e00725a81e996eeab65c155
--- packages/allspark-foundation/src/Feature/AllsparkFeature.tsx @@ -8,9 +8,17 @@ import { import { AllsparkGraphQLClient, GraphQLFeatureConfig } from '../GraphQL'; import { AllsparkHttpClient, HttpClientConfig } from '../HTTP'; -import { LocalStorageModule, LocalStorageManagerConfig } from '../LocalStorage'; +import { + LocalStorageModule, + LocalStorageManagerConfig, + ILocalStorageManager, +} from '../LocalStorage'; import { ILoggerManager, LoggerManagerConfig, LoggerModule } from '../Logger'; -import { TelemetryManagerConfig, TelemetryModule } from '../Telemetry'; +import { + ITelemetryManager, + TelemetryManagerConfig, + TelemetryModule, +} from '../Telemetry'; import { AllsparkTranslationClient } from '../Translation'; import { GeolocationService, IMeGeoLocationManager } from '../Geolocation'; import { @@ -82,9 +90,11 @@ export class AllsparkFeature<ID extends string = string> { private _module: AllsparkFeatureModule<ID, any> | undefined; /** - * Private property that holds the logger for the Allspark feature. + * Private properties that hold feature manager instances */ private _logger: ILoggerManager | undefined; + private _telemetry: ITelemetryManager | undefined; + private _localStorage: ILocalStorageManager | undefined; /** * Creates a new instance of AllsparkFeature. @@ -152,22 +162,9 @@ export class AllsparkFeature<ID extends string = string> { return AllsparkTranslationClient.createFeatureClient(this.id); }; - /** - * Gets the logger instance for the feature. If one doesn't exist, then one will - * be created and set as the logger for the feature. - * @returns The logger instance for the feature. - */ - private _getLogger() { - if (this._logger) { - return this._logger; - } - - this._logger = LoggerModule.factory.createLoggerManager(this.id); - return this._logger; - } - /** * Creates a logger instance for the feature with the given configuration. + * If already created, it will apply the new configuration. * @param config - The configuration for the logger. * @returns A logger instance for the feature. * @example @@ -181,7 +178,7 @@ export class AllsparkFeature<ID extends string = string> { if (this._logger) { __DEV__ && console.log( - '[AllsparkFeature.createLogger]: Logger already exists, applying new config...' + `[AllsparkFeature.createLogger]: A logger has already been created for ${this.id}, applying new config...` ); this._logger.configure(config); } else { @@ -190,6 +187,20 @@ export class AllsparkFeature<ID extends string = string> { return this._logger; }; + /** + * Gets the logger instance for the feature. If one doesn't exist, then one will + * be created and set as the logger for the feature. + * @returns The logger instance for the feature. + */ + public get logger() { + if (this._logger) { + return this._logger; + } + + this._logger = this.createLogger({}); + return this._logger; + } + /** * Creates a new instance of LocalStorageService for this feature. * @param config - The configuration object for the LocalStorageService instance. @@ -202,14 +213,38 @@ export class AllsparkFeature<ID extends string = string> { * MyLocalStorage.set(...); */ public createLocalStorage = (config: LocalStorageManagerConfig) => { - return LocalStorageModule.factory.createLocalStorageManager( - this.id, - config - ); + if (this._localStorage) { + __DEV__ && + console.log( + `[AllsparkFeature.createLocalStorage]: A local storage instance has already been created for ${this.id}, applying new config...` + ); + this._localStorage.configure(config); + } else { + this._localStorage = LocalStorageModule.factory.createLocalStorageManager( + this.id, + config + ); + } + return this._localStorage; }; + /** + * Gets the local storage instance for the feature. If one doesn't exist, then one will + * be created and set as the local storage for the feature. + * @returns The local storage instance for the feature. + */ + public get localStorage() { + if (this._localStorage) { + return this._localStorage; + } + + this._localStorage = this.createLocalStorage({}); + return this._localStorage; + } + /** * Creates a telemetry instance for the feature. + * If already created, it will apply the new configuration. * @param config - The configuration for the telemetry instance. * @returns The created telemetry instance. * @example @@ -220,9 +255,38 @@ export class AllsparkFeature<ID extends string = string> { * MyTelemetry.logCrashEvent(...); */ public createTelemetry = (config: TelemetryManagerConfig) => { - return TelemetryModule.factory.createTelemetryManager(this.id, config); + if (this._telemetry) { + __DEV__ && + console.log( + `[AllsparkFeature.createTelemetry]: A telemetry instance has already been created for ${this.id}, applying new config...` + ); + this._telemetry.configure(config); + } else { + this._telemetry = TelemetryModule.factory.createTelemetryManager( + this.id, + config + ); + } + return this._telemetry; }; + /** + * Gets the telemetry instance for the feature. If one doesn't exist, then one will + * be created and set as the telemetry for the feature. + * @returns The telemetry instance for the feature. + */ + public get telemetry() { + if (this._telemetry) { + return this._telemetry; + } + + this._telemetry = this.createTelemetry({}); + return this._telemetry; + } + + /** + * Creates a geolocation instance for the feature. + */ public createGeolocation = (config: IMeGeoLocationManager) => { return GeolocationService.createFeatureInstance(this.id, config); }; @@ -292,7 +356,7 @@ export class AllsparkFeature<ID extends string = string> { * const MyFeatureSaga = MyFeature.createSaga(saga); */ public createSaga = (sagas: Effect | Effect[]) => { - const logger = this._getLogger(); + const logger = this.logger; if (typeof sagas === 'function') { return function* () { --- packages/allspark-foundation/src/Telemetry/deprecated.ts @@ -18,7 +18,7 @@ export const TelemetryService = TelemetryModule.factory; * @deprecated A TelemetryService should be defined as part of an AllsparkContainer configuration. * This constant is provided for legacy support. */ -export const TelemetryServiceCreator = noop; +export const TelemetryServiceCreator = (_service: any) => noop(); /** * @deprecated Use `ITelemetryService` instead.
refactor(feature): add manager accessors for easyaccess of feature manager instances
refactor(feature): add manager accessors for easyaccess of feature manager instances
d6f426e04658a3f3156f5a80656beb41deb9381e
--- packages/allspark-foundation-hub/__tests__/HubFeature/TeamOnboarding/TeamSelection.test.tsx @@ -14,10 +14,11 @@ jest.mock('react-redux', () => ({ })); jest.mock('@walmart/me-at-walmart-athena-queries'); +jest.mock('@walmart/allspark-foundation/Site'); //TODO: Add more tests for TeamSelectionList Component describe('TeamSelectionList Component Tests', () => { - test('renders loading state', () => { + test.skip('renders loading state', () => { (useGetTeamsByStoreQuery as jest.Mock).mockImplementation(() => ({ loading: true, })); @@ -25,7 +26,7 @@ describe('TeamSelectionList Component Tests', () => { expect(getByTestId('team-selection-loader')).toBeDefined(); }); - test('renders error state', () => { + test.skip('renders error state', () => { (useGetTeamsByStoreQuery as jest.Mock).mockImplementation(() => ({ error: true, })); --- packages/allspark-foundation/__tests__/HubFeature/TeamOnboarding/TeamSelection.test.tsx @@ -17,7 +17,7 @@ jest.mock('@walmart/me-at-walmart-athena-queries'); //TODO: Add more tests for TeamSelectionList Component describe('TeamSelectionList Component Tests', () => { - test('renders loading state', () => { + test.skip('renders loading state', () => { (useGetTeamsByStoreQuery as jest.Mock).mockImplementation(() => ({ loading: true, })); @@ -25,7 +25,7 @@ describe('TeamSelectionList Component Tests', () => { expect(getByTestId('team-selection-loader')).toBeDefined(); }); - test('renders error state', () => { + test.skip('renders error state', () => { (useGetTeamsByStoreQuery as jest.Mock).mockImplementation(() => ({ error: true, }));
feat(ui): update tests
feat(ui): update tests
172fe43318d1dfca934ab8e44578bfe7443f31cc
--- targets/US/package.json @@ -89,7 +89,7 @@ "@walmart/attendance-mini-app": "3.44.0", "@walmart/avp-feature-app": "0.8.7", "@walmart/avp-shared-library": "0.8.9", - "@walmart/backroom-mini-app": "1.5.12", + "@walmart/backroom-mini-app": "1.5.14", "@walmart/calling-mini-app": "0.5.17", "@walmart/checkout-mini-app": "3.24.0", "@walmart/compass-sdk-rn": "5.19.15", --- yarn.lock @@ -6066,9 +6066,9 @@ __metadata: languageName: node linkType: hard -"@walmart/backroom-mini-app@npm:1.5.12": - version: 1.5.12 - resolution: "@walmart/backroom-mini-app@npm:1.5.12" +"@walmart/backroom-mini-app@npm:1.5.14": + version: 1.5.14 + resolution: "@walmart/backroom-mini-app@npm:1.5.14" dependencies: pubsub-js: "npm:^1.9.4" react-native-mask-input: "npm:^1.2.3" @@ -6091,7 +6091,7 @@ __metadata: react-native-svg-transformer: ">=1.0.0" react-redux: ^8.0.0 redux: ^4.0.0 - checksum: 10c0/22ec5dc97fc10f529014bfa31300e402f0c290f63ed69f632367e57371508b9d074bfc51234f0b10d8ae03d6c94a77822c855312d9fe38232de11cb3f7168185 + checksum: 10c0/fe6570ef89c7474a770695bbe949a62b3b6e5c228ba350de7d029c5527a2d1ee3b303d547d18f0e7afdfc0d03fa5e5b7e59fe2047f40f295be30da80a3cb9d10 languageName: node linkType: hard @@ -6994,7 +6994,7 @@ __metadata: "@walmart/attendance-mini-app": "npm:3.44.0" "@walmart/avp-feature-app": "npm:0.8.7" "@walmart/avp-shared-library": "npm:0.8.9" - "@walmart/backroom-mini-app": "npm:1.5.12" + "@walmart/backroom-mini-app": "npm:1.5.14" "@walmart/calling-mini-app": "npm:0.5.17" "@walmart/checkout-mini-app": "npm:3.24.0" "@walmart/compass-sdk-rn": "npm:5.19.15"
Update @walmart/backroom-mini-app to 1.5.14
Update @walmart/backroom-mini-app to 1.5.14
80a10f102b780f582a5e015a4a5c3ea4553731b0
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/SearchInput/ModalTeamListItem.tsx @@ -1,64 +0,0 @@ -import React from 'react'; -import { TouchableOpacity, View } from 'react-native'; -import { teamListItemStyles } from './style'; -import { Body } from '@walmart/gtp-shared-components'; -import { LoggerService } from '@walmart/allspark-foundation/Logger'; -import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; -import { ModalTeamListItemProps } from './types'; -import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; -import { useUserPersonaType } from '../../../Store//Hooks/useUserPersonaType'; - -export const ModalTeamListItem = ({ - isSelected, - teamId, - teamName, - teamImage, - onSelect, -}: ModalTeamListItemProps) => { - const TeamImage = useAllsparkImage(); - const logger = LoggerService.getContainerInstance(); - const telemetryService = useTelemetryService(); - const personaType = useUserPersonaType(); - const styles = teamListItemStyles(isSelected); - return ( - <TouchableOpacity - style={styles.container} - testID='team-list-item' - onPress={onSelect} - > - <View style={styles.teamOuterContainer}> - {teamImage && ( - <TeamImage - resizeMode='contain' - source={{ - uri: teamImage.uri, - }} - placeholder={teamImage.placeholder} - style={styles.teamImage} - onError={(error) => { - logger.error('ImageFailure', { - message: `Image failure for ${teamId}: ${error}`, - }); - telemetryService.logEvent('image_uri_failure', { - message: 'Image failure', - teamId: teamId, - teamName: teamName, - personaType: personaType, - }); - }} - /> - )} - <View - accessible={true} - accessibilityLabel={`${teamName}`} - accessibilityRole='header' - style={styles.teamInnerContainer} - > - <Body UNSAFE_style={styles.teamName} testID='teamlist-teamname'> - {teamName} - </Body> - </View> - </View> - </TouchableOpacity> - ); -}; --- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/SearchInput/style.ts @@ -48,43 +48,3 @@ export const TeamSearchInputStyles = StyleSheet.create({ gap: 8, }, }); - -export const teamListItemStyles = (isSelected: boolean) => - StyleSheet.create({ - container: { - display: 'flex', - padding: 8, - marginLeft: 16, - marginRight: 16, - justifyContent: 'space-between', - alignItems: 'center', - flexDirection: 'row', - borderWidth: isSelected ? 2 : 1, - borderRadius: 40, - borderColor: isSelected ? colors.black : colors.gray['20'], - backgroundColor: colors.white, - }, - teamOuterContainer: { - display: 'flex', - flexDirection: 'row', - alignItems: 'center', - gap: 10, - }, - teamImage: { - alignSelf: 'flex-start', - height: 36, - width: 36, - backgroundColor: colors.blue['10'], - borderRadius: 40, - padding: 10, - }, - teamInnerContainer: { - display: 'flex', - flexDirection: 'column', - }, - teamName: { - fontSize: 16, - fontWeight: isSelected ? '700' : '400', - lineHeight: 24, - }, - }); --- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/SearchInput/types.ts @@ -13,17 +13,6 @@ export interface TeamSearchInputProps { handleChange: (text: string) => void; } -export interface ModalTeamListItemProps { - isSelected: boolean; - teamId: string; - teamName: string; - teamImage?: { - uri: string; - placeholder: string; - }; - onSelect: () => void; -} - export interface TeamSearchInputLoadingProps { loading: boolean | undefined; }
Revert "Adding Modal teamListItem component"
Revert "Adding Modal teamListItem component" This reverts commit 61c363111c0f9503e272e2c524514bab7c27dabb.
4c50417f329f9649e40e0ca1b5e42bbd29994e67
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "3.7.1", + "version": "3.7.2", "main": "dist/index.js", "files": [ "dist",
feat(ui): update package.json
feat(ui): update package.json
d9ad23f703bf7082d46589e28e4dc2a33c9cf97a
--- .looper.multibranch.yml @@ -10,7 +10,7 @@ node: ((osx||stable_osx)&&!dualcore) tools: nodejs: 12.4.0 maven: 3.5.4 - jdk: 8 + jdk: 11 sonarscanner: 3.0.3.778 cache:
jdk version bump
jdk version bump
f5aacf1b5878cb4243cb1e0c5824d3f0d7fdef5f
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart", - "version": "1.35.0", + "version": "2.0.0", "main": "index.js", "private": true, "workspaces": [
feat(ui): update app version for drop 35.1 to 2.0.0 (#5035)
feat(ui): update app version for drop 35.1 to 2.0.0 (#5035) Co-authored-by: Vishesh Hiremath - v0h00hj <Vishesh.Hiremath@walmart.com> Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com> Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
fc795396026659e5ed45b92bbea30a7183511984
--- package-lock.json @@ -4268,9 +4268,9 @@ "integrity": "sha512-gic8DsKkrDud3j6c9jh43Xy+EUVj3uWEQLqeO6TiqoZ++SjblUFSmTf96rsjHLBt3MBVndV+G/u7+jmWZv6JjQ==" }, "@walmart/manager-approvals-miniapp": { - "version": "0.0.58", - "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.58.tgz", - "integrity": "sha512-7nXe02E/AOFtT1u6/tVerIskwWvSoJcMgYN2DNH7vMgbb0YIFOsqwzX+nbRh/AcaZhC7YX5H2irVCc6/5/HjJw==" + "version": "0.0.59", + "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.59.tgz", + "integrity": "sha512-UWciGlPmDkMLM0BvZzvEdYrg8iHagGxhvrBwdrgTDeK1SsX8TCPNgMq/1cVdkuk0wdhcaiTTf6DLi4d6AAcWFw==" }, "@walmart/metrics-mini-app": { "version": "0.5.21", --- package.json @@ -86,7 +86,7 @@ "@walmart/impersonation-mini-app": "1.0.27", "@walmart/ims-print-services-ui": "0.1.11", "@walmart/inbox-mini-app": "0.25.0", - "@walmart/manager-approvals-miniapp": "0.0.58", + "@walmart/manager-approvals-miniapp": "0.0.59", "@walmart/metrics-mini-app": "0.5.21", "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.85.0",
Manager approval version bump
Manager approval version bump
64bcb9e203ac56cb8f986d878d40fef34bfee4d7
--- __tests__/components/AssociateRosterItem.test.tsx @@ -65,7 +65,7 @@ describe('AssociateRosterItem', () => { component.getByText('Message'); }); - it('should enable message button and onPress event', () => { + it.skip('should enable message button and onPress event', () => { const mockCurrentUser = {win: '2'}; (useSelector as jest.Mock).mockReturnValue(mockCurrentUser); @@ -99,7 +99,7 @@ describe('AssociateRosterItem', () => { }); }); - it('should not call dispatch if isSearchScreen is false and onPress is triggered', () => { + it.skip('should not call dispatch if isSearchScreen is false and onPress is triggered', () => { const mockDispatch = jest.fn(); (useDispatch as jest.Mock).mockReturnValue(mockDispatch); --- __tests__/components/StoreChatCardTest.tsx @@ -65,7 +65,7 @@ describe('StoreChatCard component', () => { const viewTeam = component.getByText('View team'); expect(viewTeam).toBeDefined(); }); - it('should call onPress', async () => { + it.skip('should call onPress', async () => { (useSelector as jest.Mock).mockReturnValue(true); const mockOnPress = jest.spyOn(lodash, 'noop'); const component = renderWithProviders(<StoreChatCard />); --- __tests__/components/__snapshots__/ActionButton.test.tsx.snap @@ -36,23 +36,20 @@ exports[`ActionButton Action button is diabled and disabled style applied 1`] = } > <View - collapsable={false} - jestAnimatedStyle={ - { - "value": { - "backgroundColor": "rgba(186, 187, 190, 1)", - }, - } - } style={ - { - "alignItems": "center", - "backgroundColor": "rgba(186, 187, 190, 1)", - "borderRadius": 40, - "height": 30, - "justifyContent": "center", - "width": 30, - } + [ + { + "alignItems": "center", + "backgroundColor": "#0071dc", + "borderRadius": 40, + "height": 30, + "justifyContent": "center", + "width": 30, + }, + { + "backgroundColor": undefined, + }, + ] } /> </View> @@ -94,21 +91,18 @@ exports[`ActionButton renders ActionButton 1`] = ` } > <View - collapsable={false} - jestAnimatedStyle={ - { - "value": {}, - } - } style={ - { - "alignItems": "center", - "backgroundColor": "#0071dc", - "borderRadius": 40, - "height": 30, - "justifyContent": "center", - "width": 30, - } + [ + { + "alignItems": "center", + "backgroundColor": "#0071dc", + "borderRadius": 40, + "height": 30, + "justifyContent": "center", + "width": 30, + }, + undefined, + ] } /> </View> @@ -150,21 +144,18 @@ exports[`ActionButton renders Icon when isLoading prop is false 1`] = ` } > <View - collapsable={false} - jestAnimatedStyle={ - { - "value": {}, - } - } style={ - { - "alignItems": "center", - "backgroundColor": "#0071dc", - "borderRadius": 40, - "height": 30, - "justifyContent": "center", - "width": 30, - } + [ + { + "alignItems": "center", + "backgroundColor": "#0071dc", + "borderRadius": 40, + "height": 30, + "justifyContent": "center", + "width": 30, + }, + undefined, + ] } > <Image @@ -226,21 +217,18 @@ exports[`ActionButton renders LoadingIndicator when isLoading prop is true 1`] = } > <View - collapsable={false} - jestAnimatedStyle={ - { - "value": {}, - } - } style={ - { - "alignItems": "center", - "backgroundColor": "#0071dc", - "borderRadius": 40, - "height": 30, - "justifyContent": "center", - "width": 30, - } + [ + { + "alignItems": "center", + "backgroundColor": "#0071dc", + "borderRadius": 40, + "height": 30, + "justifyContent": "center", + "width": 30, + }, + undefined, + ] } > <ActivityIndicator --- __tests__/screens/RosterScreen/__snapshots__/AssociateList.test.tsx.snap @@ -202,6 +202,7 @@ exports[`AssociateListItem should render List item with round corners 1`] = ` }, ] } + testID="statusIndicator" /> </View> <View @@ -404,6 +405,7 @@ exports[`AssociateListItem should render StatusChip if show chip prop is defined }, ] } + testID="statusIndicator" /> </View> <View @@ -625,6 +627,7 @@ exports[`AssociateListItem should render Store Schedule if its valid 1`] = ` }, ] } + testID="statusIndicator" /> </View> <View @@ -847,6 +850,7 @@ exports[`AssociateListItem should render action buttons if prop is defined 1`] = }, ] } + testID="statusIndicator" /> </View> <View @@ -1116,6 +1120,7 @@ exports[`AssociateListItem should trigger goToIndividualSchedule on status onPre }, ] } + testID="statusIndicator" /> </View> <View --- __tests__/screens/SearchScreen/SearchScreenTest.tsx @@ -170,7 +170,7 @@ describe('SearchScreen', () => { expect(recentSearchHistoryComponent).toEqual(null); }); - it('should call action and should have Message text', async () => { + it.skip('should call action and should have Message text', async () => { const mockCurrentUser = {win: '2'}; (useSelector as jest.Mock).mockReturnValue(mockCurrentUser); (useSelector as jest.Mock).mockReturnValue(true);
Update npm changes
Update npm changes
f1a308bddc010c715bb8c1fd99548b3bf8dc5783
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.1.0-alpha.1", + "version": "3.1.0-alpha.2", "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-alpha.1", + "@walmart/roster-mini-app": "3.3.0-alpha.2", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.2.0-alpha.1", + "@walmart/wmconnect-mini-app": "3.2.0-alpha.2", "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-alpha.1" + "@walmart/roster-mini-app": "npm:3.3.0-alpha.2" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.1" + "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.2" 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-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" +"@walmart/roster-mini-app@npm:3.3.0-alpha.2": + version: 3.3.0-alpha.2 + resolution: "@walmart/roster-mini-app@npm:3.3.0-alpha.2::__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.2.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/8c401a6242125cff1ad29df4be5ecb3b8033eacbcee279486b4396b11ee25b266580f8091925114eaaf3291447bfe5bac28ddf74f6652af4dd4f84707b2646fe + checksum: 10c0/e02e972bc3a81058d9eb030e7772ba3b6780b55be92c090864d29a17eed2cfe274b32058f087aab3d256f817de0321fbb21f69af824f1fa9b81737928442dcff languageName: node linkType: hard @@ -6462,9 +6462,9 @@ __metadata: languageName: node linkType: hard -"@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" +"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.2": + version: 3.2.0-alpha.2 + resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.2::__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.2.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/98f0be0e6c7653e775c5364b881059d526cbb9d942d2fb632d706e7c28543696ba68b65ea786742c5a0a9a70e7e6db12af3a63482a8593e934fab90e75f5607e + checksum: 10c0/ee6450ecd9c7885fa315a00ba45f7a69a449c1f3c9effcbed906d176a1d8cffae14d70c264851599fd4f4bba3d38f0139b085c8d06523355d14a5d86aa2ab997 languageName: node linkType: hard
feat(ui): updating new version for drop 33
feat(ui): updating new version for drop 33
9d96fbb7fbc9dc791f828dba6eec66f18b948c54
--- targets/US/ios/Podfile.lock @@ -622,9 +622,9 @@ PODS: - JWT (~> 3.0.0-beta.12) - React-Core - SSZipArchive (~> 2.2.2) - - compass-sdk-ios (0.4.12.3) - - compass-sdk-rn (5.19.13): - - compass-sdk-ios (= 0.4.12.3) + - compass-sdk-ios (0.4.12.4) + - compass-sdk-rn (5.19.15): + - compass-sdk-ios (= 0.4.12.4) - React-Core - DoubleConversion (1.1.6) - EXAV (13.10.6): @@ -1915,7 +1915,7 @@ PODS: - React - react-native-loudness (2.0.0): - React - - react-native-maps (1.10.4): + - react-native-maps (1.3.2): - React-Core - react-native-netinfo (11.3.2): - React-Core @@ -2748,8 +2748,8 @@ SPEC CHECKSUMS: BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 CodePush: eaa66fc8dd9ff611304ecc48397ce8831ba79ac9 - compass-sdk-ios: e77515e01cf1c39cf342389b717b72c2aadf0c95 - compass-sdk-rn: 491bc4d39a622a68dd4203199a9492703633b958 + compass-sdk-ios: ca4aa519d7f425db45b97c774641be756eca719f + compass-sdk-rn: caa95d0f17fa547d55405192bf30ebc7a5b8283c DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953 EXAV: e4f6137431ddc4cb025895046bfefa9612025c35 EXConstants: a5f6276e565d98f9eb4280f81241fc342d641590 @@ -2840,7 +2840,7 @@ SPEC CHECKSUMS: react-native-image-resizer: d9fb629a867335bdc13230ac2a58702bb8c8828f react-native-logger: c35ed51339fcca80a2e171a75a5cd7979e96f524 react-native-loudness: 38527e7e42c3be3e4ea3d8aace2621a8eb9cafda - react-native-maps: cdc4955fc67ddc7789eb8040deab5912de66b0c5 + react-native-maps: 085f614cf14d3637b2048bb9752da5b1c27c2886 react-native-netinfo: 076df4f9b07f6670acf4ce9a75aac8d34c2e2ccc react-native-pager-view: 0eb900a8c5d83c02a74b0125d4b5f9fdcc5b8f44 react-native-pdf: 103940c90d62adfd259f63cca99c7c0c306b514c @@ -2926,4 +2926,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 17e750d8df86ae62ba07284ce6cb973a761640ea -COCOAPODS: 1.14.3 +COCOAPODS: 1.15.2
pod update
pod update
1a08a844cfc5fed8c7299b7517fa3c8b70006639
--- __tests__/managerExperience/components/RosterDetailPageHeader.test.tsx @@ -19,12 +19,6 @@ describe('RosterDetailPageHeader', () => { expect(toJSON()).toMatchSnapshot(); }); - it('renders the image with correct accessibility label', () => { - const {getByTestId} = render(<RosterDetailPageHeader {...defaultProps} />); - const image = getByTestId('team-image-123'); - expect(image.props.accessibilityLabel).toBe('Team Image for team ID 123'); - }); - it('renders without subText when not provided', () => { const {queryByText, toJSON} = render( <RosterDetailPageHeader {...defaultProps} subText={undefined} />, --- __tests__/managerExperience/components/__snapshots__/RosterDetailPageHeader.test.tsx.snap @@ -104,8 +104,6 @@ exports[`RosterDetailPageHeader renders the header and subText correctly 1`] = ` </View> <View> <Image - accessibilityLabel="Team Image for team ID 123" - accessible={true} source={ { "uri": undefined, @@ -215,8 +213,6 @@ exports[`RosterDetailPageHeader renders without subText when not provided 1`] = </View> <View> <Image - accessibilityLabel="Team Image for team ID 123" - accessible={true} source={ { "uri": undefined, --- src/managerExperience/components/RosterDetailPageHeader/RosterDetailPageHeader.tsx @@ -29,8 +29,6 @@ export const RosterDetailPageHeader = ({ </View> <View> <TeamImage - accessible={true} - accessibilityLabel={`Team Image for team ID ${teamId}`} style={styles.teamImage} source={{uri: teamImageIcon[teamId]}} testID={`team-image-${teamId}`}
refactor: update the testing file
refactor: update the testing file
8555206daa38cbc0aca2b1f1e1e2762f373878ee
--- __tests__/screens/MyWalmartV2/AssociateRosterDetailHoc.test.tsx @@ -560,7 +560,7 @@ describe('AssociateRosterDetailHoc', () => { renderWithProviders(<AssociateRosterDetailHoc />, { preloadedState: { work: { - flows: [{context: {shifts: ['A1', 'A2', 'A3']}}], + context: {shifts: ['A1', 'A2', 'A3']}, }, site: {workingSite: {isDC: true}}, }, --- src/components/RosterWidget/useRosterWidget.ts @@ -289,18 +289,6 @@ export const useRosterWidget = ( } }, [isSiteDC, configureRosterInfoForSite, configureRosterInfoForStore]); - useEffect(() => { - configureRosterInfo(); - }, [ - selectedTeamIds, - rosterData?.getDailyRoster, - teamDataForStore?.getTeamsByStore, - teamDataForSite, - isSiteDC, - selectedShifts, - configureRosterInfo, - ]); - const handleError = useCallback((err: Error) => { logger.error('Error in team data refresh ', { message: err.toString(), @@ -326,13 +314,7 @@ export const useRosterWidget = ( setTimeout(() => { setWidgetRefresh(false); }, 1500); - }, [ - refetchRoster, - refetchTeamData, - refetchTeamSiteData, - handleError, - isSiteDC, - ]); + }, [refetchRoster, refetchTeamData, refetchTeamSiteData, handleError]); useEffect(() => { configureRosterInfo(); @@ -347,8 +329,11 @@ export const useRosterWidget = ( ]); useEffect(() => { - onRefresh(); - }, [refresh, onRefresh]); + if (refresh) { + onRefresh(); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [refresh]); const rosterWidgetContent = useMemo( () => [
chore(hooks): remove duplicate useEffec
chore(hooks): remove duplicate useEffec
df7d9ccc726dd9740225808affb2d556e4939ac2
--- targets/US/ios/Podfile.lock @@ -2242,7 +2242,7 @@ PODS: - FirebaseMessaging (<= 10.18.0) - StructuredLogAssistantIOS (= 0.0.7) - TOCropViewController (2.7.4) - - topstock-mini-app (1.16.21): + - topstock-mini-app (1.16.23): - React - VisionCamera (3.7.1): - React @@ -2905,7 +2905,7 @@ SPEC CHECKSUMS: StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 SumoSDK: 58664bf3b83e2f4bcdfc52704235ab4bca519ceb TOCropViewController: 80b8985ad794298fb69d3341de183f33d1853654 - topstock-mini-app: e8fc0c27d5187623e4fcae808293896edea9dee5 + topstock-mini-app: 0510dd18742f2084eb731ccc9e0db85d9a8e71e9 VisionCamera: ef56ac9d3e0fef4b94c7cf75735aaccc2326e35a walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b --- targets/US/package.json @@ -148,7 +148,7 @@ "@walmart/store-feature-orders": "1.26.12", "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch", "@walmart/time-clock-mini-app": "2.400.0", - "@walmart/topstock-mini-app": "1.16.22", + "@walmart/topstock-mini-app": "1.16.23", "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch", "@walmart/welcomeme-mini-app": "0.95.1", "@walmart/wfm-ui": "1.6.0", --- yarn.lock @@ -6874,7 +6874,7 @@ __metadata: "@walmart/store-feature-orders": "npm:1.26.12" "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch" "@walmart/time-clock-mini-app": "npm:2.400.0" - "@walmart/topstock-mini-app": "npm:1.16.22" + "@walmart/topstock-mini-app": "npm:1.16.23" "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch" "@walmart/welcomeme-mini-app": "npm:0.95.1" "@walmart/wfm-ui": "npm:1.6.0" @@ -7860,9 +7860,9 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.16.22": - version: 1.16.22 - resolution: "@walmart/topstock-mini-app@npm:1.16.22" +"@walmart/topstock-mini-app@npm:1.16.23": + version: 1.16.23 + resolution: "@walmart/topstock-mini-app@npm:1.16.23" peerDependencies: "@react-native-firebase/app": ^15.1.1 "@react-native-firebase/crashlytics": ^15.1.1 @@ -7879,7 +7879,7 @@ __metadata: react-native-haptic-feedback: ^1.13.0 react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/98052bbaed113a1acfeb6a7ec58885c582891bad3014c0dcf7e9563e3b6bb6d062079462c0a24042fd3ac9a31bda750170bcbbe1810d215585c480cfcd8a71e4 + checksum: 10c0/14c513f6c88b79e78be0c246bde39831c65dafe10ca9d85ce47908e8d36e7d2499cc6f1825feb07903b57c4698fa58b4fd74ee6c1f7fe6c6240a4586da592615 languageName: node linkType: hard
upgrade topstock version 1.16.23
upgrade topstock version 1.16.23
32313d664f3b1b20c994f45b329561623cf8f125
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 46 + versionCode 47 versionName "1.0.2" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>46</string> + <string>47</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>46</string> + <string>47</string> </dict> </plist>
Incrementing build number
Incrementing build number
39b423257d495be22fd7b7b776b059504e174321
--- packages/allspark-foundation/src/Work/redux.ts @@ -71,9 +71,9 @@ export type IWorkActionCreators = typeof workSlice.actions; /** * Mapped work action interface */ -export type IWorkActions = InferActionTypes<IWorkActionCreators>; +export type IWorkAction = InferActionTypes<IWorkActionCreators>; /** * Types of work actions */ -export type WorkAction = IWorkActions[keyof IWorkActions]; +export type WorkAction = IWorkAction[keyof IWorkAction];
feat: fix type name DWORK-6097
feat: fix type name DWORK-6097
198fab88062898a0e40f1625eda03e90492d2a8b
--- package.json @@ -143,7 +143,7 @@ "@walmart/returns-mini-app": "4.16.8", "@walmart/rfid-scan-mini-app": "2.10.4", "@walmart/rn-mobile-sdk-pairing": "2.1.8", - "@walmart/rn-receiving-mini-app": "2.4.85", + "@walmart/rn-receiving-mini-app": "2.4.86", "@walmart/roster-mini-app": "2.26.0", "@walmart/schedule-mini-app": "1.13.0", "@walmart/shelfavailability-mini-app": "1.5.44", --- yarn.lock @@ -7363,9 +7363,9 @@ __metadata: languageName: node linkType: hard -"@walmart/atlas-rn-ui-components@npm:1.1.55": - version: 1.1.55 - resolution: "@walmart/atlas-rn-ui-components@npm:1.1.55" +"@walmart/atlas-rn-ui-components@npm:1.1.57": + version: 1.1.57 + resolution: "@walmart/atlas-rn-ui-components@npm:1.1.57" peerDependencies: "@walmart/gtp-shared-components": ">=2.2.3-rc.1" i18next: ">=23.12.2" @@ -7377,7 +7377,7 @@ __metadata: bin: installFonts: ./scripts/installFonts runCodemods: ./scripts/runCodemods - checksum: 10c0/cb1b7bc5efc02a969db731478fbe9f5216d671bb6c8c279b4e6d798f7d29ecc6b6ab67495752d0902de15de6fc4f3bf7ac28ab093b6bc3c81d9c439cc90f1f45 + checksum: 10c0/8c16f48c6d396a2bd45e60387f5b78b50eafb7ac55fb154017beeee8d389f2d12e1ad800dcb59517b54a92eeea105d1a875a138aa5ca12941ff856b016a1a5b6 languageName: node linkType: hard @@ -8067,11 +8067,11 @@ __metadata: languageName: node linkType: hard -"@walmart/loadquality-mini-app@npm:2.0.13": - version: 2.0.13 - resolution: "@walmart/loadquality-mini-app@npm:2.0.13" +"@walmart/loadquality-mini-app@npm:2.0.17": + version: 2.0.17 + resolution: "@walmart/loadquality-mini-app@npm:2.0.17" dependencies: - "@walmart/atlas-rn-ui-components": "npm:1.1.55" + "@walmart/atlas-rn-ui-components": "npm:1.1.57" peerDependencies: "@react-native-clipboard/clipboard": ">=1.10.0" "@react-native/metro-config": ">=0.73.0" @@ -8100,7 +8100,7 @@ __metadata: react-native-svg: ">=14.0.0" react-native-svg-transformer: ">=1.3.0" react-native-vision-camera: "*" - checksum: 10c0/977c3697e8e2151304185fcf23ffe4f8bc123f3b2cc0df9e506b6c6a67d8c591536075ad4d549eb11c0b904dd39b993b54e2b9a4bee815c30413fee8c9e783d0 + checksum: 10c0/5a7ce2c652a565193964ce7b02744ced5b46a171ec46979930999dc93a24111501588a5d087c082a1bf93a1133fc8650319edfc572dca21905d2291a4841036f languageName: node linkType: hard @@ -8316,7 +8316,7 @@ __metadata: "@walmart/returns-mini-app": "npm:4.16.8" "@walmart/rfid-scan-mini-app": "npm:2.10.4" "@walmart/rn-mobile-sdk-pairing": "npm:2.1.8" - "@walmart/rn-receiving-mini-app": "npm:2.4.85" + "@walmart/rn-receiving-mini-app": "npm:2.4.86" "@walmart/roster-mini-app": "npm:2.26.0" "@walmart/schedule-mini-app": "npm:1.13.0" "@walmart/shelfavailability-mini-app": "npm:1.5.44" @@ -8982,12 +8982,12 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.4.85": - version: 2.4.85 - resolution: "@walmart/rn-receiving-mini-app@npm:2.4.85" +"@walmart/rn-receiving-mini-app@npm:2.4.86": + version: 2.4.86 + resolution: "@walmart/rn-receiving-mini-app@npm:2.4.86" dependencies: - "@walmart/atlas-rn-ui-components": "npm:1.1.55" - "@walmart/loadquality-mini-app": "npm:2.0.13" + "@walmart/atlas-rn-ui-components": "npm:1.1.57" + "@walmart/loadquality-mini-app": "npm:2.0.17" peerDependencies: "@react-native-clipboard/clipboard": ">=1.14.0" "@react-native/metro-config": ">=0.73.0" @@ -9013,7 +9013,7 @@ __metadata: react-native-svg: ">=14.1.0" react-native-svg-transformer: ">=1.3.0" react-native-vision-camera: "*" - checksum: 10c0/e4f5e8dc149e4730030942cb9d9e7bfa0a9df239780711f280d0c4caa2f1631b5d6f683fb52d42e716b847a757ca9f495f5dc184fc945c0f062f1f35f54614b8 + checksum: 10c0/8f8f65950099e8d5c1b85f7d77397725953956de213a716107a528ac8773904830db51c390c24dcf8ac43abed8c74cf4de94bbfa86ffe4c4224ee082c5e4bd07 languageName: node linkType: hard
fix(bug): merge PR(4204) - ura bug fix to develop (#4219)
fix(bug): merge PR(4204) - ura bug fix to develop (#4219) * receiving fix * receiving fix * Fix(UI): fix the image compression and ADA bugs : IP-11968 * updating version of receiving * updating version of receiving * Bug fix for keyboard for LQA - receiving version upgrade * (bug) fix - increasing the version of receiving app https://jira.walmart.com/browse/IP-12215 https://jira.walmart.com/browse/IP-12202 https://jira.walmart.com/browse/IP-12216 * Bug fix for keyboard for LQA - receiving version upgrade part 2 --------- Co-authored-by: a0k09mh <ammad.khan@walmart.com> Co-authored-by: Peeyush Jarmal - pjarma1 <PJarmal@walmartlabs.com> Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com>
43274e7e2e8d7f0e383b5c904a737867b4b44965
--- targets/US/ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <string>APPL</string> <key>CFBundleShortVersionString</key> <!-- @customization - default: <string>$(MARKETING_VERSION)</string> --> - <string>1.29.0</string> + <string>1.28.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key>
GDVCVR-17557 reverting changes for build
GDVCVR-17557 reverting changes for build
b1ebdf71e634a90142acdcba957c6df70f1e36f5
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.16-alpha-3", + "version": "1.0.16-alpha-4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/myteam-mini-app", - "version": "1.0.16-alpha-3", + "version": "1.0.16-alpha-4", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.16-alpha-3", + "version": "1.0.16-alpha-4", "private": false, "main": "dist/index.js", "files": [ --- src/index.tsx @@ -8,9 +8,6 @@ import {TextingNavigation} from './navigation'; import {initi18n} from './translations'; import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; import {SafeAreaProvider} from 'react-native-safe-area-context'; -import {analytics} from './logger/Analytics'; -import {logger} from './logger/Logger'; -import firestore from '@react-native-firebase/firestore'; import {getHttpConfig, HTTP_CLIENT_KEY} from './services/config'; export const LOGGER_FIELDS = {id: 'myTeam-mini-app'}; @@ -40,23 +37,6 @@ export const initialize = async (debugToken: string) => { initi18n(); -firestore() - .settings({ - persistence: false, - }) - .then(() => { - analytics( - 'firestorePersistenceEnabled', - {message: 'Setting firestore persistence value!'}, - 10, - ); - }) - .catch((error: any) => { - logger.error('Error setting firestore persistence value', { - message: error.toString(), - }); - }); - export const TextingMiniApp = () => { const envConfig = useEnvironment(); const httpConfig = useMemo(() => getHttpConfig(envConfig), [envConfig]);
Update version
Update version
2c3863a038581d2db56f4a92508c1da154ab7fad
--- packages/me-at-walmart-container/src/services/config.ts @@ -20,13 +20,14 @@ export const LISTENER_KEY = 'ALLSPARK_APP_CONFIG'; // Manages change event on config service. AppConfig only allows for one listener so we're // creating our own here to manage multiple listeners. -export const ChangeEventManager = new EventManager<{config_change: ConfigData}>([ - 'config_change', -]); - +export const ChangeEventManager = new EventManager<{config_change: ConfigData}>( + ['config_change'], +); // Actual change listener we'll add to AppConfig -export const actualListener = (result: AppConfigCallbackHandlerResult | undefined) => { +export const actualListener = ( + result: AppConfigCallbackHandlerResult | undefined, +) => { if (result) { ChangeEventManager.runEvent('config_change', result.configs); } @@ -53,8 +54,6 @@ export const fetch = async ( } }; - - // On Allspark, the change listener is added to local event manager // Local event manager will correctly fire change event when current // scope changes
fixed lint issue
fixed lint issue
d0de91273b5d6f4827d3924fdc4cceb1e0a66a5c
--- src/navigation/components.tsx @@ -18,13 +18,16 @@ export const LivingDesignTabBar = (props: MaterialTopTabBarProps) => { const Tabs = state.routes.map((route, index) => { const {options} = descriptors[route.key]; - const label = - options.tabBarLabel !== undefined && - typeof options.tabBarLabel === 'string' - ? options.tabBarLabel - : options.title !== undefined - ? options.title - : route.name; + const label = () => { + let label = route.name; + if (options?.tabBarLabel && typeof options.tabBarLabel === 'string') { + label = options.tabBarLabel; + } + if (options?.title) { + label = options.title; + } + return label; + }; const isFocused = state.index === index; const tintColor = isFocused @@ -61,7 +64,7 @@ export const LivingDesignTabBar = (props: MaterialTopTabBarProps) => { color: tintColor || '', })} trailing={options.tabBarBadge?.()}> - {label} + {label()} </TabNavigationItem> ); });
feat(ui): refactored label function
feat(ui): refactored label function
7fa928dd5fa65c355bea6d3869e33deada7a01aa
--- src/translations/en-US.ts @@ -40,7 +40,7 @@ export const enUS = { online: 'Online', }, shiftChip: { - shift: 'Shift ', + shift: 'Shift', }, statusChips: { absent: 'Absent', --- src/translations/es-MX.ts @@ -40,7 +40,7 @@ export const esMX = { online: 'En línea', }, shiftChip: { - shift: 'Turno ', + shift: 'Turno', }, statusChips: { absent: 'Ausente',
fix: caret fix
fix: caret fix
4554756de1ac414d151310fd45cffae843d22cb4
--- android/build.gradle @@ -21,7 +21,7 @@ buildscript { classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0' classpath 'com.walmart.ssmp:android-signing:1.0.9' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }
Correcting android plugin version
Correcting android plugin version
0c2a2577e324e7728219f792ae6e1c93d8db6e13
--- .yarnrc.yml @@ -4,9 +4,9 @@ npmRegistryServer: "${REPOSOLNS_NPM_REPO}" packageExtensions: "@walmart/ui-components@*": peerDependenciesMeta: - "react-native-background-timer": + react-native-background-timer: optional: true - "react-native-elements": + react-native-elements: optional: true - "react-native-vector-icons": + react-native-vector-icons: optional: true
chore(ui): looper yml error log update
chore(ui): looper yml error log update
50c81995f183001eadc2acd6d8d91c6e1f393556
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.23.0", + "version": "1.24.0", "main": "dist/index.js", "files": [ "dist" @@ -81,7 +81,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.20.0", - "@walmart/allspark-foundation-hub": "1.2.21", + "@walmart/allspark-foundation-hub": "1.2.23", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.21.0", + "@walmart/roster-mini-app": "2.22.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -5992,9 +5992,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.2.21": - version: 1.2.21 - resolution: "@walmart/allspark-foundation-hub@npm:1.2.21" +"@walmart/allspark-foundation-hub@npm:1.2.23": + version: 1.2.23 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.23" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -6010,7 +6010,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/e7d5f42b230e2cd4dd4b971d11af8d0ddd8c1b285c7a368da814c0a0ca258c1a9d71f2c55f58df50cabc23bb5e598aab0d979ac072e1b65b3636b2552f71146c + checksum: 10c0/9d43bc8576aa58bf12b9cf70226c11f9d3a27c76a90d32fe343997cac99b79ec1228875018486de11b8c1f463503770930b0fbcdd3f81bb7f59b083d3946f1e5 languageName: node linkType: hard @@ -6398,7 +6398,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.20.0" - "@walmart/allspark-foundation-hub": "npm:1.2.21" + "@walmart/allspark-foundation-hub": "npm:1.2.23" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.21.0" + "@walmart/roster-mini-app": "npm:2.22.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.21.0": - version: 2.21.0 - resolution: "@walmart/roster-mini-app@npm:2.21.0" +"@walmart/roster-mini-app@npm:2.22.0": + version: 2.22.0 + resolution: "@walmart/roster-mini-app@npm:2.22.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/b2ccb33660fe6a4e26f7a3dd24ae9bb70a8a8bd607a50d38be4ec2b50ddd68555c7f0b34f6bb66b4a7fd5280538a8ee611d2303fcd8ab66fa54f64d7759ef290 + checksum: 10c0/2a6d53b892672999e740c0cf9d06ab4f00c27520aa6b07e1f2f3e707d42a63596a06bdf8b3ad9b1c176c6f02437f308a60c94632aae7eb456c6dd803a902eef1 languageName: node linkType: hard
Update my team version
Update my team version
abd8c7474eb5f43ebc7a2a74ad8ff00de1963cd4
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.24.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.23.0...@walmart/allspark-foundation-hub@1.24.0) (2025-11-11) + +### Features + +- **ui:** update telemetry and logs for hub ([#487](https://gecgithub01.walmart.com/allspark/allspark/issues/487)) ([2d115aa](https://gecgithub01.walmart.com/allspark/allspark/commit/2d115aa5e9eaf9b8eaf0717a0fb2c0274f658723)) + # [1.23.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.22.2...@walmart/allspark-foundation-hub@1.23.0) (2025-11-11) ### Features --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.23.0", + "version": "1.24.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.24.0
ce3f6710b6fd867e98c12613da68d758cd0e674a
--- package.json @@ -148,7 +148,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation-hub": "1.4.1", + "@walmart/allspark-foundation-hub": "1.4.2", "@walmart/allspark-foundation": "6.30.3", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", --- targets/US/package.json @@ -77,7 +77,7 @@ "@walmart/allspark-authentication": "~6.4.7", "@walmart/allspark-cope-key-listener": "0.0.18", "@walmart/allspark-foundation": "6.30.3", - "@walmart/allspark-foundation-hub": "1.4.1", + "@walmart/allspark-foundation-hub": "1.4.2", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -6064,15 +6064,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.4.1": - version: 1.4.1 - resolution: "@walmart/allspark-foundation-hub@npm:1.4.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.4.1.tgz" - dependencies: - "@reduxjs/toolkit": "npm:^1.9.7" - "@shopify/flash-list": "npm:~1.6.4" - lodash: "npm:~4.17.21" - namecase: "npm:^1.1.2" - react-redux: "npm:^8.1.3" +"@walmart/allspark-foundation-hub@npm:1.4.2": + version: 1.4.2 + resolution: "@walmart/allspark-foundation-hub@npm:1.4.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.4.2.tgz" peerDependencies: "@react-navigation/native": 6.x "@walmart/allspark-foundation": ">=6.27" @@ -6082,7 +6076,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/da9aae45a5fa014a8ee614bd11881926273a2a3da518845f8ab8914489370bb666cfb1ef1f6cde4d18c88eaed1f35f60f2d3e6bf609037a5b21370093e621d0a + checksum: 10c0/08a5344a8238789dfc6801ca1a308fd665701a5f805954931d603bc57025d17a1c186b8c961cc2eab8ef004c202e0434d11d5faa4582d0554f8e04599b5c02fe languageName: node linkType: hard @@ -7405,7 +7399,7 @@ __metadata: "@walmart/allspark-authentication": "npm:~6.4.7" "@walmart/allspark-cope-key-listener": "npm:0.0.18" "@walmart/allspark-foundation": "npm:6.30.3" - "@walmart/allspark-foundation-hub": "npm:1.4.1" + "@walmart/allspark-foundation-hub": "npm:1.4.2" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31"
feat(ui): update the myteam and roster mini app version
feat(ui): update the myteam and roster mini app version
172bbc5c1adc40df2d056083248fbffa34f5fccb
--- src/utils/user.ts @@ -34,6 +34,7 @@ export const associateIsOnMeal = (associate?: Associate) => export const associateIsOnPPTO = (associate?: Associate) => associate?.punch?.clockStatus === '4'; +//TODO: Missing schedule field on associate object. GetDailyRosterQuery needs update export const associateIsNotScheduled = (associate?: Associate) => false; export const associateDisplayName = ( --- src/utils/user.ts @@ -34,6 +34,7 @@ export const associateIsOnMeal = (associate?: Associate) => export const associateIsOnPPTO = (associate?: Associate) => associate?.punch?.clockStatus === '4'; +//TODO: Missing schedule field on associate object. GetDailyRosterQuery needs update export const associateIsNotScheduled = (associate?: Associate) => false; export const associateDisplayName = (
adding not schedule field
adding not schedule field
c35fa8f20ae73344df3e18b4bc58d448a8c66aaf
--- packages/allspark-foundation/package.json @@ -17,39 +17,46 @@ "clean": "rm index.d.ts index.js **/*.d.ts **/*.js || true" }, "dependencies": { - "@react-navigation/bottom-tabs": "~6.4.0", - "@react-navigation/drawer": "~6.5.0", - "@react-navigation/material-top-tabs": "~6.2.4", - "@react-navigation/native": "~6.0.13", - "@react-navigation/stack": "~6.3.1", - "axios": "~0.27.2", - "i18next": "~21.9.2", - "lodash": "~4.17.21", - "moment": "^2.29.4", - "react-i18next": "~11.18.6", - "react-redux": "~7.2.9", - "redux": "~4.2.0", - "redux-saga": "~1.2.1", - "redux-thunk": "~2.4.1", - "redux-flipper": "~2.0.2", "reduxsauce": "~1.2.1", "reselect": "~4.1.6", "seamless-immutable": "~7.1.4", "uuid": "~9.0.0" }, "devDependencies": { + "@react-navigation/stack": "~6.3.1", "@types/lodash": "~4.14.185", "@types/react": "^17.0.37", "@types/react-redux": "^7.1.9", "@types/react-native": "~0.67.4", "@types/seamless-immutable": "~7.1.16", "@types/uuid": "~8.3.4", + "axios": "~0.27.2", + "i18next": "~21.9.2", + "lodash": "~4.17.21", + "moment": "^2.29.4", "react": "~17.0.2", - "react-native": "~0.67.4" + "react-i18next": "~11.18.6", + "react-native": "~0.67.4", + "react-redux": "~7.2.9", + "redux": "~4.2.0", + "redux-saga": "~1.2.1", + "redux-thunk": "~2.4.1", + "redux-flipper": "~2.0.2" }, "peerDependencies": { + "@react-navigation/stack": "~6.3.1", + "axios": "~0.27.2", + "i18next": "~21.9.2", + "lodash": "~4.17.21", + "moment": "^2.29.4", "react": "^17.0.2", - "react-native": ">=0.66.0 <0.69.0" + "react-i18next": "~11.18.6", + "react-native": ">=0.66.0 <0.69.0", + "react-redux": "~7.2.9", + "redux": "~4.2.0", + "redux-saga": "~1.2.1", + "redux-thunk": "~2.4.1", + "redux-flipper": "~2.0.2" }, "resolutions": { "@types/react": "^17"
chore: package update
chore: package update
3ff6d2b21037732286a0cc3b37aa94d76495b024
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/AssociateHallwayNavTest.tsx.snap @@ -2,7 +2,6 @@ exports[`DrawerNav matches default snapshot for initial render 1`] = ` <RenderGuard - onUnmount={[Function]} preRender={[Function]} > <ActivityMonitor @@ -57,7 +56,6 @@ exports[`DrawerNav matches default snapshot for initial render 1`] = ` exports[`DrawerNav matches snapshot after initial render 1`] = ` <RenderGuard - onUnmount={[Function]} preRender={[Function]} > <ActivityMonitor --- core/__tests__/navigation/__snapshots__/RootStackTest.tsx.snap @@ -2,7 +2,6 @@ exports[`RootNav matches snapshot when app accessible 1`] = ` <RenderGuard - onUnmount={[Function]} preRender={[Function]} > <Navigator @@ -199,7 +198,6 @@ exports[`RootNav matches snapshot when app accessible 1`] = ` exports[`RootNav matches snapshot when app not accessible 1`] = ` <RenderGuard - onUnmount={[Function]} preRender={[Function]} > <Navigator
update snapshot
update snapshot
149570418c74f7e86468a6a3231511cff0cc462b
--- packages/allspark-foundation/src/Work/Context.tsx @@ -33,9 +33,5 @@ export const WorkProvider = (props: PropsWithChildren<{}>) => { setActionId, }; - return ( - <WorkContextProvider value={value}> - {children} - </WorkContextProvider> - ) + return <WorkContextProvider value={value}> {children} </WorkContextProvider>; };
fix: lint issues DWORK-6097
fix: lint issues DWORK-6097
5eadfbf28a4a4666a0e56ba0849133d3859939c2
--- package-lock.json @@ -46,7 +46,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.19.5", "@walmart/attendance-mini-app": "3.24.0", - "@walmart/avp-feature-app": "0.2.6", + "@walmart/avp-feature-app": "0.2.7", "@walmart/avp-shared-library": "0.2.9", "@walmart/calling-mini-app": "0.1.13", "@walmart/compass-sdk-rn": "5.18.19", @@ -10977,9 +10977,9 @@ } }, "node_modules/@walmart/avp-feature-app": { - "version": "0.2.6", - "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.2.6.tgz", - "integrity": "sha512-mFvT4IQ3+eNSJMMKhAmIpSybbv3DPIjKdFdMad3LxVeLFxaYVcRhF5VrlG4If4FXkXik2yGX0vzLdnMjF1TR9w==", + "version": "0.2.7", + "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.2.7.tgz", + "integrity": "sha512-+OnK9m/HiOuAsg74RrSfEcTAmT5kfcL97tv/FQ0I37Lvspc8q0mpw5D0CgMIjDntCgzxMR1MrHllCB3lbbzYeQ==", "hasInstallScript": true, "engines": { "node": ">=16" --- package.json @@ -87,7 +87,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.19.5", "@walmart/attendance-mini-app": "3.24.0", - "@walmart/avp-feature-app": "0.2.6", + "@walmart/avp-feature-app": "0.2.7", "@walmart/avp-shared-library": "0.2.9", "@walmart/calling-mini-app": "0.1.13", "@walmart/compass-sdk-rn": "5.18.19", @@ -347,7 +347,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.19.5", "@walmart/attendance-mini-app": "3.24.0", - "@walmart/avp-feature-app": "0.2.6", + "@walmart/avp-feature-app": "0.2.7", "@walmart/avp-shared-library": "0.2.9", "@walmart/calling-mini-app": "0.1.13", "@walmart/compass-sdk-rn": "5.18.19",
bump avp feature app version
bump avp feature app version
b237f5065f595a9f6f66153876e8048d4ca019be
--- .eslintrc.js @@ -26,6 +26,20 @@ module.exports = { rules: { 'sort-keys': ['error', 'asc', {caseSensitive: false, natural: true}] } + }, + { + // Disallow imports outside of package + files: ['packages/me-at-walmart-common/**/*.ts', 'packages/me-at-walmart-common/**/*.tsx'], + rules: { + 'no-restricted-imports': [ + 'error', + { + patterns: [ + '../../../**/assets/*', + ] + } + ] + } } ] } --- __mocks__/@walmart/me-at-walmart-athena-queries.js @@ -1,5 +1,5 @@ module.exports = { - ...jest.requireActual('@walmart/me-at-walmart-common'), + ...jest.requireActual('@walmart/me-at-walmart-athena-queries'), useGetTeamByIdHomeQuery: jest.fn(), useGetTeamByIdHomeLazyQuery: jest.fn(), useUpsertAssociatePreferenceMutation: jest.fn(), --- packages/me-at-walmart-common/__tests__/components/SidekickAssistantFAB.test.tsx @@ -55,10 +55,10 @@ jest.mock('lodash', () => ({ })); // Mock the image requires -jest.mock('../../../../../assets/images/sidekick-assistant-fab.png', () => 'sidekick-fab-image', { +jest.mock('../../src/assets/images/sidekick-assistant-fab.png', () => 'sidekick-fab-image', { virtual: true, }); -jest.mock('../../../../../assets/images/sidekick-assistant-fab-pressed.png', () => 'sidekick-fab-pressed-image', { +jest.mock('../../src/assets/images/sidekick-assistant-fab-pressed.png', () => 'sidekick-fab-pressed-image', { virtual: true, }); @@ -139,7 +139,7 @@ describe('SidekickAssistantFAB', () => { const renderedComponent = create(imageComponent); const image = renderedComponent.root.findByType('Image'); - expect(image.props.source).toEqual({testUri: '../../../assets/images/sidekick-assistant-fab.png'}); + expect(image.props.source).toBe('sidekick-fab-image'); }); it('should use pressed image when pressed', () => { @@ -151,7 +151,7 @@ describe('SidekickAssistantFAB', () => { const renderedComponent = create(imageComponent); const image = renderedComponent.root.findByType('Image'); - expect(image.props.source).toEqual({testUri: '../../../assets/images/sidekick-assistant-fab-pressed.png'}); + expect(image.props.source).toBe('sidekick-fab-pressed-image'); }); }); --- packages/me-at-walmart-common/__tests__/components/__snapshots__/SidekickAssistantFAB.test.tsx.snap @@ -49,11 +49,7 @@ exports[`SidekickAssistantFAB Component Rendering should render correctly 1`] = > <Image resizeMode="cover" - source={ - { - "testUri": "../../../assets/images/sidekick-assistant-fab.png", - } - } + source="sidekick-fab-image" style={ { "borderRadius": 28, --- packages/me-at-walmart-common/package.json @@ -12,7 +12,7 @@ "url": "https://gecgithub01.walmart.com/allspark/allspark-core.git" }, "scripts": { - "build": "rm -rf lib && tsc", + "build": "rm -rf lib && tsc && cp -r src/assets lib/assets", "clean": "rm -rf lib/ || true", "prepack": "npm run build" }, --- packages/me-at-walmart-common/src/assets/images/sidekick-assistant-fab-pressed.png --- packages/me-at-walmart-common/src/assets/images/sidekick-assistant-fab.png --- packages/me-at-walmart-common/src/components/SidekickAssistantFAB/index.tsx @@ -12,8 +12,8 @@ import { } from 'react-native-reanimated'; // Import the sidekick assistant FAB images -const sidekickAssistantFabImage = require('../../../../../assets/images/sidekick-assistant-fab.png'); -const sidekickAssistantFabPressedImage = require('../../../../../assets/images/sidekick-assistant-fab-pressed.png'); +const sidekickAssistantFabImage = require('../../assets/images/sidekick-assistant-fab.png'); +const sidekickAssistantFabPressedImage = require('../../assets/images/sidekick-assistant-fab-pressed.png'); /** * Default bottom inset for the Sidekick Assistant FAB
feat(config): ALLSPARK-0000 moved fab assets in to common (#4767)
feat(config): ALLSPARK-0000 moved fab assets in to common (#4767) * feat(config): ALLSPARK-0000 moved fab assets in to common * refactor: ALLSPARK-6914 disallow relative imports in common in eslint --------- Co-authored-by: Pavan Lingamallu <pavan.lingamallu@walmart.com>
7f42de4865bb36e6ce606c712bbc738b2da693c2
--- .looper.multibranch.yml @@ -61,7 +61,7 @@ envs: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true EXTRA_PACKAGER_ARGS: "--sourcemap-output /tmp/index.ios.js.map" XCODE_CONFIG: 'Release' - KEYCHAIN_PW: "%{credentials.secret('ios-sign-keychain-pw')}" + KEYCHAIN_PW: "%{credentials.secret('ios-sign-v2-keychain-pw')}" KEYCHAIN_NAME: "enterprise-app-signing.keychain-db" PROVISIONING_PROFILE: ./BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision ENTITLEMENTS: './BuildSupport/ExportOptions.plist' --- ios/BuildSupport/looper-credentials.sh @@ -23,7 +23,7 @@ fi if [[ "$KEYCHAIN_NAME" == "enterprise-app-signing.keychain-db" ]]; then echo "Downloading Keychain DB" - curl -L "https://repository.walmart.com/content/repositories/certs/com/walmart/associate/ios-keychaindb/1.0/ios-keychaindb-1.0.keychain-db" -o ${WORKSPACE}/ios/BuildSupport/${KEYCHAIN_NAME} + curl -L "https://repository.walmart.com/content/repositories/pangaea_releases/com/walmart/associate/ios-keychaindb/3.2/ios-keychaindb-3.2.keychain-db" -o ${WORKSPACE}/ios/BuildSupport/${KEYCHAIN_NAME} fi KEYCHAIN_BASENAME=`echo ${KEYCHAIN_NAME} | sed 's/-db$//'`
pending provision profile update
pending provision profile update
8086284370ef86774874cf2de07ba9ff76a09d32
--- 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.9.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.9.7...@walmart/allspark-foundation-hub@1.9.8) (2025-05-30) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.9.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.9.6...@walmart/allspark-foundation-hub@1.9.7) (2025-05-28) **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.9.7", + "version": "1.9.8", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.9.8
984eb4a48dc2ba65ba2f51c2afbfeb37f67d9763
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.36", + "version": "2.12.37", "main": "dist/index.js", "files": [ "dist" @@ -85,7 +85,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.27.4", - "@walmart/allspark-foundation-hub": "1.2.7-alpha.8", + "@walmart/allspark-foundation-hub": "1.2.7-alpha.9", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", --- yarn.lock @@ -5914,9 +5914,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.2.7-alpha.8": - version: 1.2.7-alpha.8 - resolution: "@walmart/allspark-foundation-hub@npm:1.2.7-alpha.8" +"@walmart/allspark-foundation-hub@npm:1.2.7-alpha.9": + version: 1.2.7-alpha.9 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.7-alpha.9" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -5932,7 +5932,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/d79eb944a09c987c509511e5f4176c18dcdb398a9f15814452b50b9b884831f94a2554d69be3198234ee3e6c46657605e34c86ecf02ab9424661aac26b10ed81 + checksum: 10c0/51bcfe78e4e1a0742d9305a31aba8464b5f2cb78deb4b86ebd979ee04f4e004a8728eff00424dd6b7819fda883ee4191d0cf45773d908ffe5180ef4a4a5249cc languageName: node linkType: hard @@ -6383,7 +6383,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.27.4" - "@walmart/allspark-foundation-hub": "npm:1.2.7-alpha.8" + "@walmart/allspark-foundation-hub": "npm:1.2.7-alpha.9" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0"
Update roster mini app version
Update roster mini app version
cc07f6f1225e4601b2d1b8b9cf299d9dfec0b3f7
--- package.json @@ -148,7 +148,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.30.0", + "@walmart/allspark-foundation": "6.30.1", "@walmart/allspark-foundation-hub": "1.2.10", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", --- targets/US/package.json @@ -76,7 +76,7 @@ "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "~6.4.1", "@walmart/allspark-cope-key-listener": "0.0.18", - "@walmart/allspark-foundation": "6.30.0", + "@walmart/allspark-foundation": "6.30.1", "@walmart/allspark-foundation-hub": "1.2.10", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", --- yarn.lock @@ -6084,9 +6084,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.30.0": - version: 6.30.0 - resolution: "@walmart/allspark-foundation@npm:6.30.0" +"@walmart/allspark-foundation@npm:6.30.1": + version: 6.30.1 + resolution: "@walmart/allspark-foundation@npm:6.30.1" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -6175,7 +6175,7 @@ __metadata: optional: true bin: allspark-generate-graphql: cli/generate.js - checksum: 10c0/549f67a650f4a1a9adbd8c752de68f7e82465a56ee8939d06fbcec8338b5a963c2a5f787310cf2d954db1e804ffdbd004a2c74394d3163aab907c2898bde7fc9 + checksum: 10c0/33428797e01de2b8a74f2533cb18ddc5ab8aca5a618e8c021027981f1e7957fc7cf74c3b1c5247c76f4135512a517b800286543624f3b1109a8813733ca30828 languageName: node linkType: hard @@ -7373,7 +7373,7 @@ __metadata: "@types/uuid": "npm:^8.3.0" "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.18" - "@walmart/allspark-foundation": "npm:6.30.0" + "@walmart/allspark-foundation": "npm:6.30.1" "@walmart/allspark-foundation-hub": "npm:1.2.10" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28"
fix: bump foundation for splash screen stuck bug
fix: bump foundation for splash screen stuck bug
2757395856f14c7a18ad9d484a3ef210627a5db0
--- packages/allspark-http-client/src/HttpClient.ts @@ -103,13 +103,35 @@ class HttpClient extends Axios implements IHttpClient { // @ts-ignore - legacy format if (restConfig.requestInterceptors || restConfig.responseInterceptors) { warnForIncorrectInterceptors(key); + + if (restConfig.requestInterceptors) { + interceptors.push( + ...restConfig.requestInterceptors.map((requestInterceptor) => { + return { + request: requestInterceptor, + response: undefined, + }; + }) + ); + } + + if (restConfig.responseInterceptors) { + interceptors.push( + ...restConfig.responseInterceptors.map((responseInterceptor) => { + return { + request: undefined, + response: responseInterceptor, + }; + }) + ); + } } // Interceptors are not handled by axios config. Adding through config is our creation so // we'll have to handle the merging. const mergedInterceptors = [ - ...interceptors, ...(this.config.interceptors || []), + ...interceptors, ]; // Create new instance
fix: correct interceptor order on clone so parent interceptors run first. add backwards compatability handling of old interceptor format
fix: correct interceptor order on clone so parent interceptors run first. add backwards compatability handling of old interceptor format
a36b32f732342ec1a5f480e719aeb180a57e8f4c
--- __tests__/containers/ChatInput/AudioPlayback.test.tsx @@ -196,7 +196,7 @@ describe('AudioPlayback', () => { await fireEvent.press(actionButton); expect(logger.error).toHaveBeenCalledWith('audio error', { message: - '\'error while loading audio from uri: https://example.com/audio.mp3\'', + '\'error while loading audio from uri: https://example.com/audio.mp3 Error: could not create sound\'', }); }); it('should show activity indicator when loading is true', () => {
fix(ui): fixing test
fix(ui): fixing test
9aaed00694f167e466c030e4601fd931e522c020
--- example/src/teamHub/tempComponentForTesting/TeamSelectionList.tsx @@ -87,7 +87,7 @@ export const TeamSelectionList = ({ const isPrimary = area === primaryArea; const areaTeams = areaTeamMap[area]; return !isPrimary ? ( - <View style={styles.teamListContainer}> + <View key={`area-${area}`} style={styles.teamListContainer}> <Text style={styles.areaHeader}>{area}</Text> {areaTeams.map((team, index) => ( <TeamSelectionListItem
feat: added key prop to area
feat: added key prop to area
a9f3acbb519f269794820e125527bafadc08ab8b
--- packages/allspark-utils/package.json @@ -5,7 +5,7 @@ "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", "license": "ISC", - "main": "lib/allspark-utils.js", + "main": "lib/index.js", "types": "lib/index.d.ts", "directories": { "lib": "lib"
fix: fix main reference in package
fix: fix main reference in package
20bca015ae711861628eef5efce2e701e6e93080
--- src/components/TeamList.tsx @@ -42,8 +42,8 @@ import {messageButtonEnabled, pushToTalkEnabled} from '../redux/selectors'; const styles = StyleSheet.create({ listItem: { - borderBottomColor: colors.gray[20], - borderBottomWidth: 1, + borderTopColor: colors.gray[20], + borderTopWidth: 1, }, firstItem: { paddingTop: 8, @@ -74,6 +74,9 @@ const styles = StyleSheet.create({ right: 16, color: colors.gray['150'], }, + leading: { + marginRight: -16, + }, buttonsStyle: {flexDirection: 'row', alignItems: 'center'}, pushToTalkBtn: {marginRight: 8}, }); @@ -172,6 +175,7 @@ const TeamItem = (props: { </Button> ) : ( <Button + UNSAFE_style={styles.leading} variant='tertiary' onPress={onViewTeam} size='small' @@ -227,7 +231,6 @@ const StoreTeamItem = () => { title={t('rosterScreen.storeChatCard.title', { context: translationContext, })} - UNSAFE_style={styles.listItem} leading={<Image style={styles.imageStyle} source={Images.totalStore} />} trailing={ <View testID='wholeStoreMessageButton' style={styles.buttonsStyle}> --- src/components/TeamList.tsx @@ -42,8 +42,8 @@ import {messageButtonEnabled, pushToTalkEnabled} from '../redux/selectors'; const styles = StyleSheet.create({ listItem: { - borderBottomColor: colors.gray[20], - borderBottomWidth: 1, + borderTopColor: colors.gray[20], + borderTopWidth: 1, }, firstItem: { paddingTop: 8, @@ -74,6 +74,9 @@ const styles = StyleSheet.create({ right: 16, color: colors.gray['150'], }, + leading: { + marginRight: -16, + }, buttonsStyle: {flexDirection: 'row', alignItems: 'center'}, pushToTalkBtn: {marginRight: 8}, }); @@ -172,6 +175,7 @@ const TeamItem = (props: { </Button> ) : ( <Button + UNSAFE_style={styles.leading} variant='tertiary' onPress={onViewTeam} size='small' @@ -227,7 +231,6 @@ const StoreTeamItem = () => { title={t('rosterScreen.storeChatCard.title', { context: translationContext, })} - UNSAFE_style={styles.listItem} leading={<Image style={styles.imageStyle} source={Images.totalStore} />} trailing={ <View testID='wholeStoreMessageButton' style={styles.buttonsStyle}>
SMDV-4859 Confirmation of 16px gutters for requisite elements in the channels list
SMDV-4859 Confirmation of 16px gutters for requisite elements in the channels list
664779a74456c22ece8993ddff13b30be858b758
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.0-alpha.0", + "version": "1.0.0-alpha.1", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
feat(ui): integrate the allspark images context
feat(ui): integrate the allspark images context
267a8cbbe98f60fc9a855fb91d1a819e323a6a81
--- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Component/ErrorScreen.tsx @@ -2,7 +2,7 @@ import { Button, ErrorMessage } from '@walmart/gtp-shared-components/dist'; import React from 'react'; import { errorScreenStyles as styles } from '../styles'; import { View } from 'react-native'; -import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; +import { useAllsparkImage } from '../../../../Components/context'; export interface ErrorScreenProps { errorTitle: string;
update import for image
update import for image
0e4b5c6790af35f6df377a7b4426d663267c65c1
--- src/auth/ErrorScreen.tsx @@ -26,7 +26,7 @@ import {SSO_APP} from '../types/telemetryConstants'; import {logger} from '../services/Logger'; import {encryptUserId} from '../services/MaskUserId'; import styles from './styles'; -import {defaultConfig} from './constants'; +import {initialConfig} from './constants'; import WmConfig from 'react-native-wm-config'; interface Lang { @@ -48,9 +48,9 @@ export const ErrorScreen: FC<any> = (props) => { const [formDirty, setFormDirty] = useState(false); const [errorCategory, setErrorCategory] = useState(''); const [errorCategoriesFb, setErrorCategoriesFb] = useState( - defaultConfig.issues, + initialConfig.issues, ); - const [otherErrorFb, setOtherErrorFb] = useState(defaultConfig.otherIssues); + const [otherErrorFb, setOtherErrorFb] = useState(initialConfig.otherIssues); const [selectedOther, setSelectedOther] = useState({}); const userIdValid = !formDirty || !!userId; @@ -67,7 +67,9 @@ export const ErrorScreen: FC<any> = (props) => { setErrorCategoriesFb(parsedConfig.issues); setOtherErrorFb(parsedConfig.otherIssues); } catch (error) { - // + logger.error('WmConfig ssoFeedbackOptions data parsing', { + message: error, + }); } }; fbConfig();
log WmConfig parsing error and update default configuration
log WmConfig parsing error and update default configuration
247e41f0b5b9ec1ea52272871d9f4cfa554a369b
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.6", + "version": "2.12.7", "main": "dist/index.js", "files": [ "dist"
feat(ui): update the roster mini app navigation screens
feat(ui): update the roster mini app navigation screens
55d85e5e0337026848f58a8dde42d74e595c671a
--- android/app/src/main/java/com/walmart/stores/allspark/beta/MainActivity.kt @@ -15,7 +15,7 @@ import com.walmart.stores.allspark.beta.BuildConfig class MainActivity: ReactActivity() { /** - * TODO: Explain what this does. + * Handles dynamic module loading for compass, connected calling, etc. */ override fun attachBaseContext(newBase: Context) { super.attachBaseContext(newBase);
Update readme for splitcompact
Update readme for splitcompact
c2006453c545ba62856a08076746cd03f716db8e
--- app.config.US.ts @@ -24,7 +24,7 @@ const bundleIdentifier = AppVariant.select({ // @TODO: This currently is set in a separate repo to avoid conflicting version codes across builds? // How should that integrate here? Can we handle it differently now? // Can we make it a process env variable? -const buildNumber = process.env.BUILD_NUMBER || '938'; +const buildNumber = process.env.BUILD_NUMBER || '939'; // Used to temporarily bypass codegate for hardcoding of google maps key const magicWord = 'Key' as const; --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart", - "version": "1.31.0", + "version": "1.32.0", "main": "index.js", "private": true, "workspaces": [
chore: bump app version to 1.32.0 (#4443)
chore: bump app version to 1.32.0 (#4443)
708700ab980a96647548726e251a97cd456cb667
--- package.json @@ -82,7 +82,7 @@ "@shopify/flash-list": "1.7.6", "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "7.1.4", - "@walmart/allspark-cope-key-listener": "0.0.18", + "@walmart/allspark-cope-key-listener": "0.0.19", "@walmart/allspark-foundation": "7.17.7", "@walmart/allspark-foundation-hub": "1.25.25", "@walmart/allspark-graphql-client": "~6.3.28", --- yarn.lock @@ -7505,10 +7505,10 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-cope-key-listener@npm:0.0.18": - version: 0.0.18 - resolution: "@walmart/allspark-cope-key-listener@npm:0.0.18::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-cope-key-listener%2F-%2Fallspark-cope-key-listener-0.0.18.tgz" - checksum: 10c0/d5fa39b98c6175e28eb4a5d915516b510ea6e3a040b39d5b20d118429bfad2f32dd55f18388d57b8eaddce6a57e27ec0d31af8270808027dbe03764f1b392865 +"@walmart/allspark-cope-key-listener@npm:0.0.19": + version: 0.0.19 + resolution: "@walmart/allspark-cope-key-listener@npm:0.0.19::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-cope-key-listener%2F-%2F%40walmart%2Fallspark-cope-key-listener-0.0.19.tgz" + checksum: 10c0/4d0bcf9fb6ff60cf5e044dae88550db4f37580dee32082ab57ac54ba00be941fe34de733313188a238a8a9b48bedda941188ec0c65f8ff8afa1ba285b528a54f languageName: node linkType: hard @@ -8854,7 +8854,7 @@ __metadata: "@types/react-native-vector-icons": "npm:6.4.18" "@walmart/allspark-authentication": "npm:7.1.4" "@walmart/allspark-build-cache-provider": "npm:1.1.1" - "@walmart/allspark-cope-key-listener": "npm:0.0.18" + "@walmart/allspark-cope-key-listener": "npm:0.0.19" "@walmart/allspark-foundation": "npm:7.17.7" "@walmart/allspark-foundation-hub": "npm:1.25.25" "@walmart/allspark-graphql-client": "npm:~6.3.28"
chore(bump): ALLSPARK-7494 side button new arch version bump (#5299)
chore(bump): ALLSPARK-7494 side button new arch version bump (#5299) Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com>
fa55f5c563159759345936f585cadab2f4483784
--- src/hooks/roster.ts @@ -28,6 +28,7 @@ export const useDailyRoster = (shouldSkipQuery: boolean = false) => { return useGetDailyRosterQuery({ variables: { + businessUnitNumber: Number(storeId)!, storeId: storeId!, countryCode: countryCode!, startDate: moment().format('YYYY-MM-DD'),
SMDV-5299/updated variable
SMDV-5299/updated variable
81223ab57913d27ce3c6968a6e9ce01f8f8a6225
--- package-lock.json @@ -56,7 +56,7 @@ "@walmart/inbox-mini-app": "0.81.13", "@walmart/iteminfo-mini-app": "7.0.8", "@walmart/manager-approvals-miniapp": "0.2.1", - "@walmart/me-field-mini-app": "1.1.45", + "@walmart/me-field-mini-app": "1.3.0", "@walmart/metrics-mini-app": "0.9.44", "@walmart/mod-flex-mini-app": "1.5.5", "@walmart/moment-walmart": "1.0.4", @@ -5197,7 +5197,6 @@ } }, "node_modules/@walmart/financial-wellbeing-feature-app": { - "version": "1.4.2", "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.4.2.tgz", "integrity": "sha512-IOcFYCG2y/+pwMctJECL/Rpi+Kzkfn+6OtETp+XtNiFHQ8m81C3qannJYZQPQdJB3htpJfTPgKpcsjqyuRQvgA==", @@ -5439,7 +5438,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "1.1.45", + "version": "1.3.0", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.3.0.tgz", + "integrity": "sha512-75CISnPJImPcR33NhMkwonct2dJbHWVVZsL7DaADW28V2K2WEKLd+k0CvSHubjhxD2DAHKQf/gH0YZ3jDjiEtA==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -5457,7 +5458,7 @@ "@walmart/core-services-allspark": "~1.10.11", "@walmart/core-utils": "1.0.10", "@walmart/functional-components": "^2.0.2", - "@walmart/gtp-shared-components": "^2.0.2", + "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.10.0", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-logger": "^1.29.0", @@ -25166,7 +25167,9 @@ } }, "@walmart/me-field-mini-app": { - "version": "1.1.45" + "version": "1.3.0", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.3.0.tgz", + "integrity": "sha512-75CISnPJImPcR33NhMkwonct2dJbHWVVZsL7DaADW28V2K2WEKLd+k0CvSHubjhxD2DAHKQf/gH0YZ3jDjiEtA==" }, "@walmart/metrics-mini-app": { "version": "0.9.44", --- package.json @@ -98,7 +98,7 @@ "@walmart/inbox-mini-app": "0.81.13", "@walmart/iteminfo-mini-app": "7.0.8", "@walmart/manager-approvals-miniapp": "0.2.1", - "@walmart/me-field-mini-app": "1.1.45", + "@walmart/me-field-mini-app": "1.3.0", "@walmart/metrics-mini-app": "0.9.44", "@walmart/mod-flex-mini-app": "1.5.5", "@walmart/moment-walmart": "1.0.4",
⬆️ Drop-10 : Learning mini app
⬆️ Drop-10 : Learning mini app
756d0ea661a63c937a1af4d1df72e543c6dd345b
--- android/app/build.gradle @@ -269,9 +269,6 @@ dependencies { implementation "com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava" implementation 'com.walmart.ssmp:platform-core:1.0.3' - - // Add v8-android - prebuilt libv8android.so into APK - implementation 'org.chromium:v8-android:9.93.+' } // Run this once to be able to run the application with BUCK --- android/build.gradle @@ -37,17 +37,6 @@ allprojects { repositories { mavenCentral() mavenLocal() - //TODO remove v8 - maven { - // Replace AAR from original RN with AAR from react-native-v8 - url("$rootDir/../node_modules/react-native-v8/dist") - } - maven { - // prebuilt libv8android.so - url("$rootDir/../node_modules/v8-android/dist") - url("$rootDir/../node_modules/v8-android-jit/dist") - } - maven { url "$rootDir/../node_modules/react-native/android" --- package-lock.json @@ -4530,9 +4530,9 @@ } }, "@walmart/ui-components": { - "version": "1.3.0-rc.6", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.6.tgz", - "integrity": "sha512-2vjE5AgFr4jFXr6mu6AVIkJiHpze2/chByCye3AGZbFiy23MYbDARDJ45WRUgjU9sL+Q7eQCrMhcNA9RHn9ydA==", + "version": "1.3.0-rc.8", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.8.tgz", + "integrity": "sha512-u5FNQtfpGMcYSTFL7l/zdBCemXiRDcyVMXcYLpQ1S1rdPO5sucUfR4T+eXUJNKoWYkKcgaExP0sSVByGgVoHAw==", "requires": { "react-native-calendars": "1.299.0" } @@ -17029,14 +17029,6 @@ "resolved": "https://npme.walmart.com/react-native-uuid/-/react-native-uuid-2.0.1.tgz", "integrity": "sha512-cptnoIbL53GTCrWlb/+jrDC6tvb7ypIyzbXNJcpR3Vab0mkeaaVd5qnB3f0whXYzS+SMoSQLcUUB0gEWqkPC0g==" }, - "react-native-v8": { - "version": "0.66.3-patch.1", - "resolved": "https://npme.walmart.com/react-native-v8/-/react-native-v8-0.66.3-patch.1.tgz", - "integrity": "sha512-fll8irbxY1ThmN7rWvziYmFboV3P+eEQgUEuEJ+kWaVB2lTVpQc85fni5F7hkdhjN7BgnYTso6tzKzTW+oM56A==", - "requires": { - "v8-android-jit": "~9.93.0" - } - }, "react-native-vector-icons": { "version": "7.1.0", "resolved": "https://npme.walmart.com/react-native-vector-icons/-/react-native-vector-icons-7.1.0.tgz", @@ -19296,11 +19288,6 @@ "resolved": "https://npme.walmart.com/uuid/-/uuid-3.4.0.tgz", "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" }, - "v8-android-jit": { - "version": "9.93.0", - "resolved": "https://npme.walmart.com/v8-android-jit/-/v8-android-jit-9.93.0.tgz", - "integrity": "sha512-qSEnxj/7x2lqvAjRtdox0fx20J5ekcLg/O1/M4vNKUtbWG75+/ACspP3n0KD0RIYLhD8F2iGxERRbwu9FbjKRg==" - }, "v8-compile-cache": { "version": "2.3.0", "resolved": "https://npme.walmart.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", --- package.json @@ -160,7 +160,6 @@ "react-native-tab-view": "^3.1.1", "react-native-table-component": "^1.2.1", "react-native-typing-animation": "^0.1.7", - "react-native-v8": "^0.66.3-patch.1", "react-native-vector-icons": "^7.0.0", "react-native-version": "^4.0.0", "react-native-video": "^5.1.0-alpha8",
remove v8
remove v8
6e5ea92f226b5fd2703fe7164d78114be80c7183
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.1-beta.10", + "version": "1.0.1-beta.11", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/allspark-foundation-hub/src/Core/index.ts @@ -4,4 +4,6 @@ import { LogBox } from 'react-native'; // Ignorning to not burden container & feature app teams with these messages. LogBox.ignoreLogs([/ReactNativeSumoSdk requires main queue setup/]); +export * from '../HubFeature'; export * from '../HubFeature/Store'; +export * from '../HubFeature/SupplyChain'; --- packages/allspark-foundation-hub/src/HubFeature/index.ts @@ -0,0 +1 @@ +export * from './AllsparkHubContainer';
Update the import statements
Update the import statements
600f1286271c0906a2b2bea07059bf5c0d6d1285
--- packages/allspark-foundation/src/Components/DynamicComponents.tsx @@ -1,4 +1,4 @@ -import React, { FC } from 'react'; +import React, { FC, useMemo } from 'react'; import { StyleProp, View, ViewStyle } from 'react-native'; import { EventManager, useRenderOnChange } from '@walmart/allspark-utils'; @@ -58,6 +58,11 @@ export class DynamicComponent< recordChange: string; }>(['listChange', 'recordChange']); + private _listChangeListener = { + addChangeListener: (cb: () => void) => + this._eventManager.addListener('listChange', cb), + }; + /** * The component used for rendering records */ @@ -114,10 +119,15 @@ export class DynamicComponent< const config = this._records.get(id); - useRenderOnChange({ - addChangeListener: (cb) => - this._eventManager.addListener('recordChange', cb, { id }), - }); + const recordChangeListener = useMemo( + () => ({ + addChangeListener: (cb: () => void) => + this._eventManager.addListener('recordChange', cb, { id }), + }), + [id] + ); + + useRenderOnChange(recordChangeListener); if (!config) return null; @@ -140,10 +150,7 @@ export class DynamicComponent< public List = (props: ListProps) => { const { limit = 1, method = 'lifo', style } = props; - useRenderOnChange({ - addChangeListener: (cb) => - this._eventManager.addListener('listChange', cb), - }); + useRenderOnChange(this._listChangeListener); const records = Array.from(this._records.values());
fix: dynamic component list infinitely rendering due to unmemoized change listener
fix: dynamic component list infinitely rendering due to unmemoized change listener
71330d3cd1e0d891f0a842e5ae56c259e56849c8
--- src/auth/index.ts @@ -9,9 +9,7 @@ import { lightenStatusBar, modalTransitionOptions, } from '../navigation/constants'; -import {enUS} from '../translations/locales/en-US'; -import {esMX} from '../translations/locales/es-MX'; - +import {enUS, esMX} from '../translations'; export const LoginFeature = new AllsparkFeatureModule('login', { name: 'Login', --- src/biometrics/index.ts @@ -3,9 +3,7 @@ import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature'; import {biometricsSlice} from './BiometricRedux'; import {biometricSagas} from './BiometricSagas'; import {BiometricModal} from './BiometricModal'; -import {enUS} from '../translations/locales/en-US'; -import {esMX} from '../translations/locales/es-MX'; - +import {enUS, esMX} from '../translations'; export const BiometricsFeature = new AllsparkFeatureModule( biometricsSlice.name, { --- src/core/index.ts @@ -11,9 +11,7 @@ import { import {AlertModal} from './AlertModal'; import {ToastModal} from './ToastModal'; -import {enUS} from '../translations/locales/en-US'; -import {esMX} from '../translations/locales/es-MX'; -import {syncDeviceLanguage} from './syncDeviceLanguage'; +import {enUS, esMX} from '../translations';import {syncDeviceLanguage} from './syncDeviceLanguage'; const subscriptions = [] as ListenerSubscription[]; --- src/impersonation/index.ts @@ -1,9 +1,7 @@ import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature'; import {CloseButtonIcon} from '@walmart/allspark-foundation/Navigation'; import {impersonationSagas} from './sagas'; -import {enUS} from '../translations/locales/en-US'; -import {esMX} from '../translations/locales/es-MX'; - +import {enUS, esMX} from '../translations'; export const ImpersonationFeature = new AllsparkFeatureModule('impersonation', { name: 'Impersonation', redux: { --- src/permissions/index.ts @@ -4,9 +4,7 @@ import { PERMISSION_LOCATION_SCREEN, PERMISSION_NOTIFICATION_SCREEN, } from './constants'; -import {enUS} from '../translations/locales/en-US'; -import {esMX} from '../translations/locales/es-MX'; - +import {enUS, esMX} from '../translations'; export const PermissionsFeature = new AllsparkFeatureModule('permissions', { name: 'Permissions', screens: { --- src/startup/index.ts @@ -1,8 +1,6 @@ import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature'; import {appFlow} from './AppFlow'; -import {enUS} from '../translations/locales/en-US'; -import {esMX} from '../translations/locales/es-MX'; - +import {enUS, esMX} from '../translations'; export const StartupFeature = new AllsparkFeatureModule('startup', { name: 'Startup Flow', redux: { --- src/termsOfUse/index.ts @@ -1,9 +1,7 @@ import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature'; import {termsOfUseSagas} from './TermsOfUseSaga'; -import {enUS} from '../translations/locales/en-US'; -import {esMX} from '../translations/locales/es-MX'; - +import {enUS, esMX} from '../translations'; export const TermsOfUseFeature = new AllsparkFeatureModule('terms-of-use', { name: 'Terms of Use', redux: { --- src/translations/index.ts @@ -0,0 +1,2 @@ +export * from './locales/en-US'; +export * from './locales/es-MX'; --- src/updates/index.ts @@ -3,9 +3,7 @@ import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature'; import {updateSlice} from './UpdateCheckRedux'; import {updateCheckSagas} from './UpdateCheckSaga'; import {UpdateVersionModal} from './UpdateVersionModal'; -import {enUS} from '../translations/locales/en-US'; -import {esMX} from '../translations/locales/es-MX'; - +import {enUS, esMX} from '../translations'; export const UpdateCheckFeature = new AllsparkFeatureModule(updateSlice.name, { name: 'Update Check', redux: { --- src/whatsNew/index.ts @@ -1,9 +1,7 @@ import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature'; import {whatsNewSagas} from './WhatsNewSaga'; import {WhatsNewModal} from './WhatsNewModal'; -import {enUS} from '../translations/locales/en-US'; -import {esMX} from '../translations/locales/es-MX'; - +import {enUS, esMX} from '../translations'; export const WhatsNewFeature = new AllsparkFeatureModule('whatsNew', { name: 'Whats New', redux: {
fix(import): adjust import
fix(import): adjust import
f190e6071525de06fd339294160074f7a6bfed22
--- ios/Podfile.lock @@ -1467,7 +1467,7 @@ PODS: - FirebaseMessaging (<= 10.1.0) - StructuredLogAssistantIOS (= 0.0.7) - TOCropViewController (2.6.1) - - topstock-mini-app (1.2.4): + - topstock-mini-app (1.2.5): - React - VisionCamera (2.15.2): - React @@ -1909,6 +1909,7 @@ SPEC CHECKSUMS: abseil: ebe5b5529fb05d93a8bdb7951607be08b7fa71bc Apollo: 204819ea82022fbc59ad05056820df867f19bd02 AppAuth: 31bcec809a638d7bd2f86ea8a52bd45f6e81e7c7 + Base64: cecfb41a004124895a7bcee567a89bae5a89d49b boost: a7c83b31436843459a1961bfd74b96033dc77234 BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33 BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44 @@ -1957,6 +1958,7 @@ SPEC CHECKSUMS: "gRPC-C++": 9675f953ace2b3de7c506039d77be1f2e77a8db2 gRPC-Core: 943e491cb0d45598b0b0eb9e910c88080369290b hermes-engine: 918ec5addfbc430c9f443376d739f088b6dc96c3 + JWT: ef71dfb03e1f842081e64dc42eef0e164f35d251 leveldb-library: f03246171cce0484482ec291f88b6d563699ee06 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 Libuv-gRPC: 55e51798e14ef436ad9bc45d12d43b77b49df378 @@ -2063,13 +2065,13 @@ SPEC CHECKSUMS: StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 SumoSDK: fef064694cb7fd0f4d8c633f03d2d9e11876fdda TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 - topstock-mini-app: f82a4b725483e89c5e8c5d7102f274882e1871fd + topstock-mini-app: df17d39160a46df6b2fd035088804a62542269e4 VisionCamera: 4cfd685b1e671fea4aa0400905ab397f0e972210 walmart-react-native-sumo-sdk: 02719d035c1a52e951e15097fae5ea17b459f71c wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 Yoga: dc109b79db907f0f589fc423e991b09ec42d2295 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 5e9af5bffc9ed6ee9db34b0f1573f68bd919bf97 +PODFILE CHECKSUM: aa974c743da6f2b8f34d7624b49e605b95240d31 -COCOAPODS: 1.12.0 \ No newline at end of file +COCOAPODS: 1.12.0 --- package-lock.json @@ -86,7 +86,7 @@ "@walmart/taskit-mini-app": "2.47.8", "@walmart/texting-mini-app": "2.0.36", "@walmart/time-clock-mini-app": "2.175.1", - "@walmart/topstock-mini-app": "1.2.4", + "@walmart/topstock-mini-app": "1.2.5", "@walmart/ui-components": "1.15.1", "@walmart/welcomeme-mini-app": "0.84.3", "@walmart/wfm-ui": "0.2.26", @@ -9323,9 +9323,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/topstock-mini-app": { - "version": "1.2.4", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.4.tgz", - "integrity": "sha512-Athu1OziQoqk7aeLTPGvwFIPtOpgP7kQfMl5NA2WywEmFJ3ejraJ/yhZMsAvOjvKl52KBKDxnD25Qpm9MVl7YQ==", + "version": "1.2.5", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.5.tgz", + "integrity": "sha512-jx573cl3gao+PPnlqz7ilu8YNAEo/HXsRAMptKJnD3a+k1/+qfN0ppUxw2G4/Bt0mehOEoyJSeOUfflYa5pmIw==", "dependencies": { "javascript-time-ago": "^2.5.7" }, @@ -34601,9 +34601,9 @@ "integrity": "sha1-QVwJoEY4zaaC39G6HDOGH7COw/Y=" }, "@walmart/topstock-mini-app": { - "version": "1.2.4", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.4.tgz", - "integrity": "sha512-Athu1OziQoqk7aeLTPGvwFIPtOpgP7kQfMl5NA2WywEmFJ3ejraJ/yhZMsAvOjvKl52KBKDxnD25Qpm9MVl7YQ==", + "version": "1.2.5", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.5.tgz", + "integrity": "sha512-jx573cl3gao+PPnlqz7ilu8YNAEo/HXsRAMptKJnD3a+k1/+qfN0ppUxw2G4/Bt0mehOEoyJSeOUfflYa5pmIw==", "requires": { "javascript-time-ago": "^2.5.7" } --- package.json @@ -127,7 +127,7 @@ "@walmart/taskit-mini-app": "2.47.8", "@walmart/texting-mini-app": "2.0.36", "@walmart/time-clock-mini-app": "2.175.1", - "@walmart/topstock-mini-app": "1.2.4", + "@walmart/topstock-mini-app": "1.2.5", "@walmart/ui-components": "1.15.1", "@walmart/welcomeme-mini-app": "0.84.3", "@walmart/wfm-ui": "0.2.26",
fix(shelf): fix shelf label
fix(shelf): fix shelf label
2c0ff8fc4d1808ec4704549eeee31d3e6ac3ffdb
--- package-lock.json @@ -81,7 +81,7 @@ "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.34.6", - "@walmart/time-clock-mini-app": "2.105.0", + "@walmart/time-clock-mini-app": "2.107.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0", "@walmart/welcomeme-mini-app": "0.77.0", @@ -6025,9 +6025,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.105.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.105.0.tgz", - "integrity": "sha512-lBQyn/iJx14Ti/Sh+aGKliYM7yGmmkojELqW3SXjs8Kgyb4Zj3FyvdFlmOEi3d0wNxWfbEKwpV1gBNo1/ZIRzw==", + "version": "2.107.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.107.0.tgz", + "integrity": "sha512-4lNMjFPfFH53nZb7hNL4axyyHWPvOaiY4Kuj5+pRL4JXoRgyRBMvoHEEHo+mmmegR3OUazCc7gjud/o1786/UA==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -25395,9 +25395,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.105.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.105.0.tgz", - "integrity": "sha512-lBQyn/iJx14Ti/Sh+aGKliYM7yGmmkojELqW3SXjs8Kgyb4Zj3FyvdFlmOEi3d0wNxWfbEKwpV1gBNo1/ZIRzw==", + "version": "2.107.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.107.0.tgz", + "integrity": "sha512-4lNMjFPfFH53nZb7hNL4axyyHWPvOaiY4Kuj5+pRL4JXoRgyRBMvoHEEHo+mmmegR3OUazCc7gjud/o1786/UA==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -123,7 +123,7 @@ "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.34.6", - "@walmart/time-clock-mini-app": "2.105.0", + "@walmart/time-clock-mini-app": "2.107.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0", "@walmart/welcomeme-mini-app": "0.77.0",
Update TCMA to 2.107.0
Update TCMA to 2.107.0
0ee71586d45e1518c115b22f2c57ec6a27173a24
--- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/HomeStackNavTest.tsx.snap @@ -48,7 +48,7 @@ exports[`HomeStackNav matches snapshot 1`] = ` name="inbox" options={ Object { - "title": "navigation.inbox", + "headerShown": false, } } /> @@ -217,7 +217,7 @@ exports[`HomeStackNav matches snapshot when user is not present 1`] = ` name="inbox" options={ Object { - "title": "navigation.inbox", + "headerShown": false, } } /> --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -23,6 +23,10 @@ Array [ component="MainTabsNav" name="tabs" /> + <Screen + component="InboxScreen" + name="inbox" + /> <Screen component="ScheduleMiniApp" name="scheduleScreen" @@ -166,16 +170,6 @@ Array [ } } /> - <Screen - component="InboxScreen" - name="inbox" - options={ - Object { - "headerBackImage": "CloseImage", - "title": "navigation.inbox", - } - } - /> <Screen component="WhatsNewScreen" name="WhatsNew" @@ -379,6 +373,10 @@ Array [ component="MainTabsNav" name="tabs" /> + <Screen + component="InboxScreen" + name="inbox" + /> <Screen component="ScheduleMiniApp" name="scheduleScreen" @@ -522,16 +520,6 @@ Array [ } } /> - <Screen - component="InboxScreen" - name="inbox" - options={ - Object { - "headerBackImage": "CloseImage", - "title": "navigation.inbox", - } - } - /> <Screen component="WhatsNewScreen" name="WhatsNew"
Inbox Save Feature
Inbox Save Feature
6faa7175d3869ccecf30df51e9c91cb96d05bd10
--- src/components/AssociateList/AssociateListItem.tsx @@ -12,7 +12,6 @@ import { encryptUserId, formatSchedule, transformWfmSchedule, - formatTime, } from '../../utils'; import {useSelector} from 'react-redux'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; @@ -39,18 +38,11 @@ export const AssociateListItem = ({ }: AssociateListItemProps) => { const {t} = translationClient.useTranslation(); const siteId = useSelector(SiteSelectors.getWorkingSiteSiteId); - const isSiteDC = useSelector(SiteSelectors.getWorkingSiteIsDC); const encryptedId = encryptUserId(associate?.win?.toString() ?? ''); const isClockedIn = associateIsClockedIn(associate); // Use appropriate name based on site type - const associateName = - // isSiteDC - // ? `${namecase(associate.firstName || '')} ${namecase( - // associate.lastName || '', - // )}`.trim() - // : - namecase(associateDisplayName(associate).slice(0, 20)); + const associateName = namecase(associateDisplayName(associate).slice(0, 20)); const associateJobDescription = associate.jobCategoryCodeDesc; @@ -85,18 +77,11 @@ export const AssociateListItem = ({ // Get clock information for DC sites - const scheduleTime = useMemo(() => { - if (!isSiteDC || !associate.schedule?.[0]) return ''; - const startTime = formatTime(associate.schedule[0].startTime); - const endTime = formatTime(associate.schedule[0].endTime); - return `${startTime} - ${endTime}`; - }, [isSiteDC, associate.schedule]); - const readTogetherAccessibilityLabel = `${associateName}, ${associateJobDescription} ${ isClockedIn ? t('rosterScreen.userHeader.clockedIn') : t('rosterScreen.userHeader.clockedOut') - } ${isSiteDC ? `${scheduleTime}` : ''}${ + } ${ showManagerSchedule && isWfmScheduleValid ? `${t( 'rosterScreen.associateRosterItem.shiftTime', @@ -137,34 +122,28 @@ export const AssociateListItem = ({ {showJobDescription && ( <Body>{namecase(associateJobDescription)}</Body> )} - {isSiteDC ? ( - <View style={styles.associateSchedule}> - <Icons.ClockIcon color={colors.gray['160']} /> - <Body>{scheduleTime}</Body> - </View> - ) : ( - <> - {showManagerSchedule && isWfmScheduleValid ? ( + + <> + {showManagerSchedule && isWfmScheduleValid ? ( + <View + testID='manager-schedule-info' + style={styles.associateSchedule}> + <Icons.ClockIcon color={colors.gray['160']} /> + <Body>{associateManagerSchedule}</Body> + </View> + ) : ( + showHourlySchedule && + isStoreScheduleValid && ( <View - testID='manager-schedule-info' + testID='hourly-schedule-info' style={styles.associateSchedule}> <Icons.ClockIcon color={colors.gray['160']} /> - <Body>{associateManagerSchedule}</Body> + <Body>{associateHourlySchedule}</Body> </View> - ) : ( - showHourlySchedule && - isStoreScheduleValid && ( - <View - testID='hourly-schedule-info' - style={styles.associateSchedule}> - <Icons.ClockIcon color={colors.gray['160']} /> - <Body>{associateHourlySchedule}</Body> - </View> - ) - )} - </> - )} - {showStatusChipAndViewSchedule && handleViewSchedule && !isSiteDC ? ( + ) + )} + </> + {showStatusChipAndViewSchedule && handleViewSchedule ? ( <Link onPress={handleViewSchedule} testID={`view-schedule-btn-${associate.associateId}`} --- src/components/RosterFiltersAndInfo/RosterFiltersAndInfo.tsx @@ -21,7 +21,6 @@ export const RosterFiltersAndInfo = ({ teamName, isPrimaryTeam, handleFilter, - isSiteDC, }: RosterFiltersAndInfoProps) => { const {t} = translationClient.useTranslation(); const showFilterChips = useSelector(displayFilterChips); @@ -51,7 +50,7 @@ export const RosterFiltersAndInfo = ({ numberOfAssociates={totalScheduleCount} /> </View> - {isWeeklyScheduleVisible && !isSiteDC && ( + {isWeeklyScheduleVisible && ( <Link onPress={viewWeeklySchedule} disabled={!associateWINs.length} --- src/components/RosterFiltersAndInfo/types.ts @@ -9,7 +9,6 @@ export interface RosterFiltersAndInfoProps { loading: boolean; teamName?: string; isPrimaryTeam: boolean; - isSiteDC: boolean; handleFilter: ( filterId: FilterValue, selectedShift: string | undefined, --- src/queries/getDailyRoster.ts @@ -12,7 +12,6 @@ export type GetDailyRosterQueryVariables = Types.Exact<{ export type GetDailyRosterQuery = { __typename?: 'Query'; getDailyRoster?: Array<{ - schedule: any; __typename: 'MewAssociate'; associateId: string; firstName?: string | null; --- src/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -123,25 +123,11 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { const parentSiteID = useRef(currentSiteId); useEffect(() => { - if (isSiteDC && isPrimaryTeam) { - // For DC sites, use the team name directly - setTeamState({ - teamLabel: primaryTeamName, - teamIds: initialTeamId ? [initialTeamId] : selectedTeamIds, - }); - } else { - setTeamState({ - teamLabel: initialTeamName ?? selectedTeamPreference, - teamIds: initialTeamId ? [initialTeamId] : selectedTeamIds, - }); - } - }, [ - initialTeamName, - initialTeamId, - isSiteDC, - isPrimaryTeam, - primaryTeamName, - ]); + setTeamState({ + teamLabel: initialTeamName ?? selectedTeamPreference, + teamIds: initialTeamId ? [initialTeamId] : selectedTeamIds, + }); + }, [initialTeamName, initialTeamId]); /**Refresh props */ const [state, setState] = useState<{ @@ -612,7 +598,6 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { } loading={isLoading || dataLoading} teamName={currentTeamName} - isSiteDC={isSiteDC} handleFilter={( filterId: FilterValue, selectedShift: string | undefined,
add changes
add changes
159c33ade31ec398a48e965a670794ee321a6f9d
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.3.8", + "version": "1.3.9", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
Expose type for get viewer primary team function
Expose type for get viewer primary team function
190ab670c0354a45cc3d93e68eacd244ffad2c12
--- ios/Podfile.lock @@ -538,7 +538,7 @@ PODS: - RCTTypeSafety - React - ReactCommon/turbomodule/core - - react-native-scanner-3.0 (0.1.33-rc.7): + - react-native-scanner-3.0 (0.1.33-rc.8): - Firebase/Analytics - React - ScanditBarcodeCapture (= 6.14.0) @@ -1225,7 +1225,7 @@ SPEC CHECKSUMS: react-native-ptt-module: 47e1b73551afa3830155cc92f4809d06c38e5eca react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe react-native-safe-area-context: 6c12e3859b6f27b25de4fee8201cfb858432d8de - react-native-scanner-3.0: d82d70eee5bb48b6707a4d64811786c4a3f1d518 + react-native-scanner-3.0: f3f0b494b861a6f213963ebd11cfb702f4d18074 react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457 react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-view-shot: 792829857bbb23a9c8acdad9a640554bdee397a3 --- package-lock.json @@ -69,7 +69,7 @@ "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.33.0", - "@walmart/react-native-scanner-3.0": "0.1.33-rc.7", + "@walmart/react-native-scanner-3.0": "0.1.33-rc.8", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1", @@ -5766,9 +5766,9 @@ } }, "node_modules/@walmart/react-native-scanner-3.0": { - "version": "0.1.33-rc.7", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.7.tgz", - "integrity": "sha512-Fx6mVL7xW2Wwsp/T9Ff1X71zXqQVnqjcsQWA/d/VLrD4jWgvFTrAD9FpNJHcLxsUqBCtbDyR0sF6+NkNW4JrWg==", + "version": "0.1.33-rc.8", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.8.tgz", + "integrity": "sha512-B8YT6EMptvbPE8nDK3y3rjhrVw8/AJq16QkHL55bdmVOvK8vhD7MlfQncJvYajvvtLv+RtJ0TcWG6pMhS3SyQg==", "license": "ISC", "peerDependencies": { "react-native": ">=0.47.1" @@ -25303,9 +25303,9 @@ "version": "1.33.0" }, "@walmart/react-native-scanner-3.0": { - "version": "0.1.33-rc.7", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.7.tgz", - "integrity": "sha512-Fx6mVL7xW2Wwsp/T9Ff1X71zXqQVnqjcsQWA/d/VLrD4jWgvFTrAD9FpNJHcLxsUqBCtbDyR0sF6+NkNW4JrWg==" + "version": "0.1.33-rc.8", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.8.tgz", + "integrity": "sha512-B8YT6EMptvbPE8nDK3y3rjhrVw8/AJq16QkHL55bdmVOvK8vhD7MlfQncJvYajvvtLv+RtJ0TcWG6pMhS3SyQg==" }, "@walmart/react-native-shared-navigation": { "version": "1.0.2", --- package.json @@ -111,7 +111,7 @@ "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.33.0", - "@walmart/react-native-scanner-3.0": "0.1.33-rc.7", + "@walmart/react-native-scanner-3.0": "0.1.33-rc.8", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1",
version update
version update
8bbcf6bb3e9cc49a01da8a4ddca91a8ac96b46eb
--- packages/allspark-foundation-hub/src/Store/Hooks/useUserPreferences.ts @@ -81,7 +81,7 @@ export const useUserPreferences = () => { const loading = fetchLoading || networkStatus === 4; return { - teamData: teamData.length ? teamData : [], + teamData: teamData?.length ? teamData : [], data, ...rest, loading,
fix: breaking test case
fix: breaking test case
315a35591a8715ecb3dd4e4ba542b3b28c35a6b4
--- src/queries/getDailyRoster.ts @@ -15,7 +15,7 @@ export type GetDailyRosterQuery = { __typename?: 'Query'; getDailyRoster?: Array<{ __typename: 'MewAssociate'; - associateId: string; + associateId: string | null; firstName?: string | null; fullName?: string | null; jobCategoryCodeDesc?: string | null; --- src/queries/getDailyRoster.ts @@ -15,7 +15,7 @@ export type GetDailyRosterQuery = { __typename?: 'Query'; getDailyRoster?: Array<{ __typename: 'MewAssociate'; - associateId: string; + associateId: string | null; firstName?: string | null; fullName?: string | null; jobCategoryCodeDesc?: string | null;
Reverting type
Reverting type
0f307d038740974bf321950e8574c10eb2434b92
--- packages/me-at-walmart-container/src/redux/site.ts @@ -21,14 +21,25 @@ export function* updateHomeSiteInfo() { // working site could have been changed on user update or impersonation export function* updateWorkingSiteInfo() { - const workingSite: string = yield select(UserSelectors.getWorkingSite); + const workingSite: string | undefined = yield select( + UserSelectors.getWorkingSite + ); + const siteId: string = yield select(UserSelectors.getSiteId); + + const currentWorkingSite = workingSite || siteId; const currentWorkingSiteInfo: Site | null = yield select( SiteSelectors.getWorkingSite ); - if (!!workingSite && currentWorkingSiteInfo?.siteId !== +workingSite) { - yield call(MeAtWalmartSiteService.fetchWorkingSite, `${workingSite}`); + if ( + !!currentWorkingSite && + currentWorkingSiteInfo?.siteId !== +currentWorkingSite + ) { + yield call( + MeAtWalmartSiteService.fetchWorkingSite, + `${currentWorkingSite}` + ); } }
fix: default to site id if working site is undefined when fetching site info
fix: default to site id if working site is undefined when fetching site info
a9abc465b8adf8f39603b0f027de85ccbdd27f80
--- __tests__/screens/ChannelsScreen/__snapshots__/ChannelsScreenTest.tsx.snap @@ -7,11 +7,3 @@ exports[`ChannelsScreenTest should render channels screen 1`] = ` </Text> </View> `; - -exports[`ChannelsScreenTest should render tabs screen with expected elements 1`] = ` -<View> - <Text> - Placeholder For Channels Screen Integration - </Text> -</View> -`;
Updating snapshot
Updating snapshot
5117a02e7ebf7ead3ecfae158eb53ff5f7b0147c
--- targets/US/package.json @@ -140,7 +140,7 @@ "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.15.0", "@walmart/rfid-scan-mini-app": "2.4.4", - "@walmart/rn-receiving-mini-app": "2.3.356", + "@walmart/rn-receiving-mini-app": "2.3.365", "@walmart/roster-mini-app": "2.9.0", "@walmart/schedule-mini-app": "0.118.2", "@walmart/shelfavailability-mini-app": "1.5.37", --- yarn.lock @@ -6667,9 +6667,9 @@ __metadata: languageName: node linkType: hard -"@walmart/loadquality-mini-app@npm:1.0.139": - version: 1.0.139 - resolution: "@walmart/loadquality-mini-app@npm:1.0.139" +"@walmart/loadquality-mini-app@npm:1.0.140": + version: 1.0.140 + resolution: "@walmart/loadquality-mini-app@npm:1.0.140" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -6678,7 +6678,7 @@ __metadata: axios-cache-adapter: ">=2.7.3" react: ^18.2.0 react-native: ~0.70.5 - checksum: 10c0/b8058cbcf9ca239e8ee56c18f41f9465badb3620e3e5acaaaf8a90c9055447bb3cef2d86ec810bbc25209779c96f8d066a0666e0225b4fe79b940f3bd2438661 + checksum: 10c0/33f26f35ffb13b6328a04f8f4f47636445f6e8f615fb0b1932a303522f2ec422ee5d24a06134edd3d810f9b1a91aab67094753710145b5d3d6161960da4ab283 languageName: node linkType: hard @@ -7056,7 +7056,7 @@ __metadata: "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.15.0" "@walmart/rfid-scan-mini-app": "npm:2.4.4" - "@walmart/rn-receiving-mini-app": "npm:2.3.356" + "@walmart/rn-receiving-mini-app": "npm:2.3.365" "@walmart/roster-mini-app": "npm:2.9.0" "@walmart/schedule-mini-app": "npm:0.118.2" "@walmart/shelfavailability-mini-app": "npm:1.5.37" @@ -7769,12 +7769,12 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.3.356": - version: 2.3.356 - resolution: "@walmart/rn-receiving-mini-app@npm:2.3.356" +"@walmart/rn-receiving-mini-app@npm:2.3.365": + version: 2.3.365 + resolution: "@walmart/rn-receiving-mini-app@npm:2.3.365" dependencies: "@walmart/atlas-rn-ui-components": "npm:1.1.17" - "@walmart/loadquality-mini-app": "npm:1.0.139" + "@walmart/loadquality-mini-app": "npm:1.0.140" peerDependencies: "@react-native-clipboard/clipboard": ">=1.14.0" "@react-navigation/native": ^6.0.8 @@ -7797,7 +7797,7 @@ __metadata: react-native-svg: ">=14.1.0" react-native-svg-transformer: ">=1.1.0" react-native-vision-camera: ^2.16.8 - checksum: 10c0/0daff4ea5115c932d0754e249c59f6a05fff19f7ab10c9037fb13791936dcc21cc66f832189e89543feb8c2d8ff481c11fbf042daec5deaf914b12f16df43696 + checksum: 10c0/6733d5b03ac5e61951037a95ba256efdc5b162487e7eaf9ff1dfb0fb22bf026ca683418c38721a2d3579210aeb7a550ecee0f0b79a147a37603b693c2440ee91 languageName: node linkType: hard
Receiving version update - 2.3.365 - Bug fix
Receiving version update - 2.3.365 - Bug fix
8a2727d428e4bff7334c078a93a68c57147c3fda
--- .looper.multibranch.yml @@ -23,45 +23,45 @@ envs: IOS_BASE_PATH: targets/US/ios ANDROID_BASE_PATH: targets/US/android -branches: - - spec: feature/drop25 - triggers: - - manual: - name: Publish Packages (Pre-Release) - call: publishPrerelease - - manual: - name: Publish Packages (Graduate) - call: publishGraduate - - manual: - name: Build Both Dev - call: dev(test) - - manual: - name: Build Android Dev - call: android-dev(test) - - manual: - name: Build iOS Dev - call: ios-dev(test) - - manual: - name: Build Both Beta - call: beta(test) - - manual: - name: Build Android Beta - call: android-beta(test) - - manual: - name: Build iOS Beta - call: ios-beta(test) - - manual: - name: Build Both Teflon - call: teflon(test) - - manual: - name: Build Android Teflon - call: android-teflon(test) - - manual: - name: Build iOS Teflon - call: ios-teflon(test) - - manual: - name: Build Simulator - call: push(simulator) +# branches: +# - spec: feature/drop25 +# triggers: +# - manual: +# name: Publish Packages (Pre-Release) +# call: publishPrerelease +# - manual: +# name: Publish Packages (Graduate) +# call: publishGraduate +# - manual: +# name: Build Both Dev +# call: dev(test) +# - manual: +# name: Build Android Dev +# call: android-dev(test) +# - manual: +# name: Build iOS Dev +# call: ios-dev(test) +# - manual: +# name: Build Both Beta +# call: beta(test) +# - manual: +# name: Build Android Beta +# call: android-beta(test) +# - manual: +# name: Build iOS Beta +# call: ios-beta(test) +# - manual: +# name: Build Both Teflon +# call: teflon(test) +# - manual: +# name: Build Android Teflon +# call: android-teflon(test) +# - manual: +# name: Build iOS Teflon +# call: ios-teflon(test) +# - manual: +# name: Build Simulator +# call: push(simulator) flows: yarnInstall:
chore: remove looper branch override
chore: remove looper branch override
145d295a842c67d411f095c90ef25af4942c6e7e
--- package-lock.json @@ -46,7 +46,7 @@ "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.17.0", "@walmart/exception-mini-app": "1.0.14", - "@walmart/facilities-management-miniapp": "0.5.8", + "@walmart/facilities-management-miniapp": "0.5.12", "@walmart/feedback-all-spark-miniapp": "0.9.9", "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", @@ -5082,9 +5082,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.5.8", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.8.tgz", - "integrity": "sha512-V8eTtw8nCUQ8ntrlRQOYBMFxa1HhkdOVsODvkmyP+JskBrrM+0qgPuMo9oG7MbfEDizcsyDRAB7WTMZYo06svg==", + "version": "0.5.12", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.12.tgz", + "integrity": "sha512-LLC5ov44PZHwcp0p0vjmkMFJwI0Xjf6rpzeAcK9lN3HnK5ejr3CXNaTCdWuZYcf+l1j2vufbT9XYgwApNklx0A==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25164,9 +25164,9 @@ "integrity": "sha512-SaexB86EUhjf0oQiOc3RbsEMz9TsSM3av62l46CVznEOOVGmdcrm3naA37GxXSX5LeD0Brft2bWJ5xJbRkqwKg==" }, "@walmart/facilities-management-miniapp": { - "version": "0.5.8", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.8.tgz", - "integrity": "sha512-V8eTtw8nCUQ8ntrlRQOYBMFxa1HhkdOVsODvkmyP+JskBrrM+0qgPuMo9oG7MbfEDizcsyDRAB7WTMZYo06svg==" + "version": "0.5.12", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.12.tgz", + "integrity": "sha512-LLC5ov44PZHwcp0p0vjmkMFJwI0Xjf6rpzeAcK9lN3HnK5ejr3CXNaTCdWuZYcf+l1j2vufbT9XYgwApNklx0A==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.9", --- package.json @@ -89,7 +89,7 @@ "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.17.0", "@walmart/exception-mini-app": "1.0.14", - "@walmart/facilities-management-miniapp": "0.5.11", + "@walmart/facilities-management-miniapp": "0.5.12", "@walmart/feedback-all-spark-miniapp": "0.9.9", "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6",
Updating package version - 0.5.12
Updating package version - 0.5.12
9077e0805fc726b8f74e0bd77e1c16dd730ce0cf
--- src/auth/ErrorScreen.tsx @@ -63,7 +63,8 @@ export const ErrorScreen: FC<any> = (props) => { <ScrollView contentContainerStyle={styles.errorScrollView}> <KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'position' : undefined} - enabled> + enabled + keyboardVerticalOffset={Platform.OS === 'android' ? 60 : 80}> <Subheader style={styles.errorMsg} testID='errorMessage'> {translate('ssoError.errorMsg')} </Subheader>
final-commit-with-fixes
final-commit-with-fixes
2afbced700689d84d2c6032e4e162c36978b7ee8
--- package.json @@ -82,7 +82,7 @@ "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "6.4.10", "@walmart/allspark-cope-key-listener": "0.0.18", - "@walmart/allspark-foundation": "7.13.6", + "@walmart/allspark-foundation": "7.13.7", "@walmart/allspark-foundation-hub": "1.24.6", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", @@ -443,7 +443,7 @@ "react-native-svg": "15.11.2", "@react-navigation/elements": "^2.2.6", "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", - "@walmart/allspark-foundation": "7.13.6", + "@walmart/allspark-foundation": "7.13.7", "@walmart/allspark-utils": "7.1.0", "@walmart/compass-sdk-rn": "patch:@walmart/compass-sdk-rn@npm%3A6.4.5#~/.yarn/patches/@walmart-compass-sdk-rn-npm-6.4.5-8b11b421e3.patch", "@walmart/config-components": "patch:@walmart/config-components@npm%3A4.12.1#~/.yarn/patches/@walmart-config-components-npm-4.12.1-935618cf47.patch", --- src/home/translations.ts @@ -43,6 +43,9 @@ export const enUS = { comingSoon: 'Coming soon', comingSoonMessage: 'Metrics, notes, training and more!', covidBanner: 'COVID-19 updates and vaccine info', + forYou: { + headerTitle: 'For You' + }, errorComponent: { errorMessage: 'Unable to load.', latestData: 'the latest', @@ -124,6 +127,9 @@ export const esMX = { comingSoon: 'Muy pronto', comingSoonMessage: '¡Métricas, notas, formación y más!', covidBanner: 'Actualizaciones e información de la vacuna del COVID-19', + forYou: { + headerTitle: 'Para ti' + }, errorComponent: { errorMessage: 'No puede cargar.', latestData: 'el ultimo', --- src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -277,6 +277,8 @@ export const MainStackNav = () => { component={require('../../../app/tabs/_layout').default} options={{ headerShown: true, + title: t('forYou.headerTitle'), // Set initial title for the first tab, as this title is visible before onFocus. + }} /> --- yarn.lock @@ -7094,9 +7094,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:7.13.6": - version: 7.13.6 - resolution: "@walmart/allspark-foundation@npm:7.13.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-7.13.6.tgz" +"@walmart/allspark-foundation@npm:7.13.7": + version: 7.13.7 + resolution: "@walmart/allspark-foundation@npm:7.13.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-7.13.7.tgz" dependencies: "@apollo/client": "npm:^3.8.6" "@reduxjs/toolkit": "npm:^1.9.7" @@ -7185,7 +7185,7 @@ __metadata: optional: true react-native-permissions: optional: true - checksum: 10c0/54bf760971709b76b9845dfe8b920ddb6c336b1a4757f5356d52d736f84bc9a867399ae874c0f5c823e4afa6bfc8b8b946821c98fe75b9a6f88e114e9b80d26a + checksum: 10c0/39e925ccae91ffa37331ed65fcb964b1799c93583768f8644e4705d79b49c5e89cf739a66e62451d8dc3c0357fc66d142df2c2f4e9d33aac36558d00d9bf9854 languageName: node linkType: hard @@ -8500,7 +8500,7 @@ __metadata: "@types/react-native-vector-icons": "npm:6.4.18" "@walmart/allspark-authentication": "npm:6.4.10" "@walmart/allspark-cope-key-listener": "npm:0.0.18" - "@walmart/allspark-foundation": "npm:7.13.6" + "@walmart/allspark-foundation": "npm:7.13.7" "@walmart/allspark-foundation-hub": "npm:1.24.6" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28"
fix: fab visibility and header
fix: fab visibility and header
9eb111fcbac46941eb4c73b95d2cab23fa0089a8
--- packages/allspark-utils/__tests__/hooks/useToggleStateTest.ts @@ -6,8 +6,24 @@ test('useToggleState', () => { expect(result.current.value).toEqual(false); // Update + //To verify toggleOn act(() => result.current.toggle()); expect(result.current.value).toEqual(true); + + // Cleanup + unmount(); +}); + +test('useToggleStateForToggleOff', () => { + const { result, unmount } = renderHook(() => useToggleState(true)); + + expect(result.current.value).toEqual(true); + + // Update + //To verify toggleOff + act(() => result.current.toggle()); + expect(result.current.value).toEqual(false); + // Cleanup unmount(); });
fix: covered hook
fix: covered hook
8fa8fb877ea259ff2fd2c1d9ee267e7e5b47b4fa
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.0-alpha.14", + "version": "2.12.0-alpha.15", "main": "dist/index.js", "files": [ "dist" --- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -129,7 +129,7 @@ export const RosterDetailScreen = () => { const teamRoster = rosterData ? generateTeamRoster( - teamState.teamIds[0], + teamState.teamLabel, rosterData, currentTeam, selectedTeamIds, @@ -236,7 +236,7 @@ export const RosterDetailScreen = () => { isApplied: false, }, ], - [currentTeam], + [teamState], ); const renderErrorScreen = () => { --- yarn.lock @@ -5795,8 +5795,8 @@ __metadata: linkType: hard "@walmart/allspark-foundation-hub@npm:latest": - version: 1.0.0-beta.7 - resolution: "@walmart/allspark-foundation-hub@npm:1.0.0-beta.7" + version: 1.0.0-beta.8 + resolution: "@walmart/allspark-foundation-hub@npm:1.0.0-beta.8" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -5892,7 +5892,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/de923724ab1e1d60feaf4112d65b6e685e9dd97117b5cb45894b5c6681c0e5e91efa7960a4d6ea906bd6af60750700ee320314a6fc832abfdebebd4a5be1f5c0 + checksum: 10c0/1fd04853c53fdf8634cf45447229816af1226fafffe6e2489369852247239d56bfa02ff064b32a3a99f6afc3582085467050705b97a99f43f22b65c452531c5e languageName: node linkType: hard
Update the roster details screen filter chip
Update the roster details screen filter chip
939b6776005668030ad7708df16c30d0a66d5f1c
--- __tests__/sumo/SumoSagasTest.ts @@ -36,6 +36,7 @@ import { import { getSumoCharged, getSumoOptIn, + getSumoProfile, SumoActionCreators, SumoTypes, } from '../../src/sumo/SumoRedux'; @@ -480,9 +481,22 @@ describe('onMiniAppReplay', () => { }); describe('onSignOut', () => { + const sumoProfile = {profileId: 'stuff'}; it('handles success', () => { const iterator = onSignOut(); - expect(iterator.next().value).toEqual(call(WmNotification.unregister)); + expect(iterator.next().value).toEqual(select(getSumoProfile)); + expect(iterator.next(sumoProfile).value).toEqual( + call(WmNotification.unregister), + ); + expect(iterator.next().value).toEqual( + put(SumoActionCreators.resetSumoState()), + ); + expect(iterator.next().done).toEqual(true); + }); + + it('handles no profile', () => { + const iterator = onSignOut(); + expect(iterator.next().value).toEqual(select(getSumoProfile)); expect(iterator.next().value).toEqual( put(SumoActionCreators.resetSumoState()), ); @@ -492,7 +506,10 @@ describe('onSignOut', () => { it('handles failure', () => { const error = new Error('Something went wrong!'); const iterator = onSignOut(); - expect(iterator.next().value).toEqual(call(WmNotification.unregister)); + expect(iterator.next().value).toEqual(select(getSumoProfile)); + expect(iterator.next(sumoProfile).value).toEqual( + call(WmNotification.unregister), + ); expect(iterator.throw(error).value).toEqual( call(logger.error, 'Error while unregistering sumo profile', { message: error.message, --- src/sumo/SumoSagas.ts @@ -47,6 +47,7 @@ import { SumoTypes, getSumoCharged, getSumoOptIn, + getSumoProfile, } from './SumoRedux'; import {NotificationRef} from './SumoEvents'; import AsyncStorage from '@react-native-community/async-storage'; @@ -264,7 +265,11 @@ export function* onMiniAppReplay() { // Clearing all but charge state, since it is the same between users export function* onSignOut() { try { - yield call(WmNotification.unregister); + const profile: SumoProfile = yield select(getSumoProfile); + // @ts-ignore - profileId is missing on SumoProfile definition + if (profile && profile.profileId) { + yield call(WmNotification.unregister); + } } catch (error) { yield call(logger.error, 'Error while unregistering sumo profile', { message: error.message,
checking for profile presence before unregistering
checking for profile presence before unregistering
c49e1786819d8cec5fcb14a87d65705347000c66
--- jest.config.js @@ -9,10 +9,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 14.07, + statements: 14.06, branches: 3.51, functions: 6.02, - lines: 14.27, + lines: 14.26, }, }, transformIgnorePatterns: [ --- jest.config.js @@ -9,10 +9,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 14.07, + statements: 14.06, branches: 3.51, functions: 6.02, - lines: 14.27, + lines: 14.26, }, }, transformIgnorePatterns: [
lowering test threshold
lowering test threshold
96de6ccbaeb9b08f9f92c1c784a224576d53e008
--- package.json @@ -234,7 +234,7 @@ "react-native-new-snap-carousel": "^3.9.3", "react-native-nfc-manager": "3.16.1", "react-native-pager-view": "6.5.1", - "react-native-pdf": "^6.7.5", + "react-native-pdf": "6.7.5", "react-native-permissions": "^3.10.1", "react-native-qrcode-svg": "^6.1.2", "react-native-reanimated": "~3.16.1", @@ -430,6 +430,7 @@ "moment-timezone": "~0.5.43", "react-native-calendars": "^1.1291.0", "react-native-modal@npm:^13.0.1": "patch:react-native-modal@npm%3A13.0.1#~/.yarn/patches/react-native-modal-npm-13.0.1-f1a75332f0.patch", + "react-native-pdf": "6.7.5", "typescript": "~5.3.3", "uuid": "^3.3.2", "wfm-allspark-data-library": "^6.0.0" --- yarn.lock @@ -7582,7 +7582,7 @@ __metadata: react-native-new-snap-carousel: "npm:^3.9.3" react-native-nfc-manager: "npm:3.16.1" react-native-pager-view: "npm:6.5.1" - react-native-pdf: "npm:^6.7.5" + react-native-pdf: "npm:6.7.5" react-native-permissions: "npm:^3.10.1" react-native-qrcode-svg: "npm:^6.1.2" react-native-reanimated: "npm:~3.16.1" @@ -19153,9 +19153,9 @@ __metadata: languageName: node linkType: hard -"react-native-pdf@npm:^6.7.5": - version: 6.7.7 - resolution: "react-native-pdf@npm:6.7.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-pdf%2F-%2Freact-native-pdf-6.7.7.tgz" +"react-native-pdf@npm:6.7.5": + version: 6.7.5 + resolution: "react-native-pdf@npm:6.7.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-pdf%2F-%2Freact-native-pdf-6.7.5.tgz" dependencies: crypto-js: "npm:4.2.0" deprecated-react-native-prop-types: "npm:^2.3.0" @@ -19163,7 +19163,7 @@ __metadata: react: "*" react-native: "*" react-native-blob-util: ">=0.13.7" - checksum: 10c0/b8e62293e58b67dbc415b0ee65ebe1cfbfbb235259466b3fa535d65640bab62395c8bcba305717e801ae91b98d1220ef11d6c47177014ea1e68eb5e1efcaded5 + checksum: 10c0/7f14eb53b5a1bd43ac563d07796a810ae594a2c9ded8732eec1b64e24f9cb367c75feda1208c79cc8824389615be749a1481c3a594f32ad3535264f53c70d067 languageName: node linkType: hard
fix(downgrade): rn pdf to 6 7 5 (#4429)
fix(downgrade): rn pdf to 6 7 5 (#4429)
c60b9c4f09407662f04df2ffcd5645fc71bda195
--- example/src/Onboarding/screens/container.tsx @@ -12,14 +12,14 @@ export const ContainerScreen = Onboarding.createScreen( OnboardingTelemetry.logEvent('test_event', { param1: 'true', }); - navigation.setOptions({title: 'Team Container'}); + navigation.setOptions({title: 'Onboarding Container'}); }, []); return <></>; }, { options: { - title: 'Team Container', + title: 'Onboarding Container', animationEnabled: false, }, linking: { --- example/src/Onboarding/screens/onboardingEntryScreen.tsx @@ -30,7 +30,7 @@ export const OnboardingEntryScreen = Onboarding.createScreen( OnboardingTelemetry.logEvent('test_event', { param1: 'true', }); - navigation.setOptions({title: 'Team Onboarding'}); + navigation.setOptions({title: 'Hub Onboarding'}); }, []); return ( @@ -39,7 +39,7 @@ export const OnboardingEntryScreen = Onboarding.createScreen( }, { options: { - title: 'Team Onboarding', + title: 'Hub Onboarding', animationEnabled: false, }, linking: { --- example/src/core/index.tsx @@ -106,7 +106,7 @@ const TabStack = () => { <Tabs.Screen name="container.homeTab" component={HomeNav} /> <Tabs.Screen name="container.tab1" component={Tab1Nav} /> <Tabs.Screen name="container.tab2" component={Tab2Nav} /> - <Tabs.Screen name="Team" component={Tab3Nav} /> + <Tabs.Screen name="Onboarding" component={Tab3Nav} /> </Tabs.Navigator> ); }; @@ -173,7 +173,7 @@ const Navigation = () => { }, }), onboarding: (name, params) => ({ - screen: 'Team', + screen: 'Onboarding', params: { screen: name, params: params,
feat: update tab name to onboarding
feat: update tab name to onboarding
d28de60d136e9a2a69208154a484f863e056228f
--- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MeStackNavTest.tsx.snap @@ -61,5 +61,8 @@ exports[`MeStackNav matches snapshot 1`] = ` } } /> + <Screen + name="timeClockTabs" + /> </Navigator> `;
updated snapshot for me stack nav
updated snapshot for me stack nav
665c8ea1b34bae9df54d108e245fe45453b25dbc
--- .github/copilot-instructions.md @@ -1,201 +0,0 @@ -# GitHub Copilot Custom Instructions for Testing in Allspark - -This guide outlines best practices for writing effective tests in the Allspark codebase, focusing on both component tests and general unit testing approaches. - -## Component Test Case Generation Guidelines - -When generating test cases for React/React Native components, always consider all downstream dependencies, especially when components are deeply rendered. - -### Core Principles - -1. **Analyze the Component Tree**: Before writing tests, understand the full component hierarchy and all dependencies. - -2. **Identify All Related Components**: Map out all child components, services, hooks, and contexts that interact with the component under test. - -3. **Consider State Management**: Include tests for state changes that affect downstream components. - -4. **Test Propagation of Props**: Verify that props correctly flow to child components. - -5. **Test Event Handlers**: Ensure events bubble up and trigger appropriate actions in parent components. - -6. **Mock with Care**: Only mock external services or components not relevant to the integration being tested. - -7. **Test Full Rendering Paths**: Verify the complete rendering chain works correctly. - -### Allspark-Specific Implementation - -- **State Management with Redux**: Mock `useSelector` and `useDispatch` hooks when components interact with Redux state - - ```typescript - jest.mock('react-redux', () => ({ - useDispatch: jest.fn(), - useSelector: jest.fn(), - })); - - // In test setup - (useSelector as jest.Mock).mockImplementation((selector) => { - if (selector === SomeSelectors.specificSelector) return mockValue; - return defaultValue; - }); - ``` - -- **Handling React Hooks**: Use `jest.spyOn(React, 'useState')` to mock and track state changes - - ```typescript - let stateValue = initialValue; - const setStateMock = jest.fn((newValue) => { - stateValue = - typeof newValue === 'function' ? newValue(stateValue) : newValue; - }); - - jest - .spyOn(React, 'useState') - .mockImplementation(() => [stateValue, setStateMock]); - ``` - -- **GraphQL/API Mocking**: Mock API hooks and their return values - - ```typescript - jest.mock('../../../src/path/to/hooks', () => ({ - useQueryHook: jest.fn().mockReturnValue({ - data: mockData, - loading: false, - error: undefined, - }), - })); - ``` - -- **Component Mocking**: Create simplified versions of complex child components with testIDs - ```typescript - jest.mock('../path/to/Component', () => { - const { View } = require('react-native'); - return function MockedComponent(props) { - return <View testID="mocked-component" {...props} />; - }; - }); - ``` - -## General Unit Testing Guidelines - -### When Generating New Unit Tests - -- **Setup/Teardown Pattern**: Use Jest's `beforeEach` and `afterEach` to manage test state - - ```typescript - beforeEach(() => { - jest.clearAllMocks(); - // Setup test environment - }); - - afterEach(() => { - jest.restoreAllMocks(); - }); - ``` - -- **Group Tests Logically**: Use `describe` blocks to group related tests, with nested describes for sub-features - - ```typescript - describe('ComponentName', () => { - describe('specific feature', () => { - it('should behave in a certain way', () => { - // Test implementation - }); - }); - }); - ``` - -- **Test User Interactions**: Simulate interactions using fireEvent - - ```typescript - it('should handle button press', () => { - render(<Component />); - const button = screen.getByTestId('button-id'); - fireEvent.press(button); - expect(mockFunction).toHaveBeenCalled(); - }); - ``` - -- **Test Rendering States**: Verify components render correctly in different states - - ```typescript - it('renders loading state', () => { - (useQuery as jest.Mock).mockReturnValue({ loading: true }); - render(<Component />); - expect(screen.getByTestId('loading-indicator')).toBeTruthy(); - }); - - it('renders error state', () => { - (useQuery as jest.Mock).mockReturnValue({ error: new Error('Test error') }); - render(<Component />); - expect(screen.getByTestId('error-message')).toBeTruthy(); - }); - ``` - -### When Fixing Existing Tests - -- **Analyze Test Failures**: Determine if failures are due to: - - - Component implementation changes requiring test updates - - Incorrect test implementation - - Changes in dependencies affecting component behavior - -- **Update Mock Implementations**: When component dependencies change, update mocks accordingly - - ```typescript - // If a hook returns additional data that the component now uses - (useQueryHook as jest.Mock).mockReturnValue({ - data: mockData, - loading: false, - error: undefined, - refetch: jest.fn(), // Add newly required fields - }); - ``` - -- **Fix Assertion Issues**: Ensure assertions match component's current behavior - - ```typescript - // Before: expect(screen.getByTestId('element')).toHaveValue('old value'); - // After: expect(screen.getByTestId('element')).toHaveValue('new value'); - ``` - -- **Snapshot Updates**: When UI changes are intentional, update snapshots - ```bash - npm test -- -u ComponentName - ``` - -### Best Practices for Allspark Tests - -1. **Use TestIDs Consistently**: Add testIDs to all interactive and key elements - -2. **Create Complex State Setup Functions**: For components with complex state: - - ```typescript - function setupComponentWithState(customState = {}) { - const defaultState = { /* default state */ }; - const state = { ...defaultState, ...customState }; - - (useSelector as jest.Mock).mockImplementation((selector) => { - // Return appropriate parts of state based on selector - }); - - return render(<Component />); - } - ``` - -3. **Mock Contextual Dependencies**: Ensure all required contexts are properly provided - - ```typescript - render( - <MockedProvider> - <ReduxProvider store={mockStore}> - <ComponentUnderTest /> - </ReduxProvider> - </MockedProvider> - ); - ``` - -4. **Test Edge Cases**: Include tests for empty states, error handling, and boundary conditions - -5. **Validate Event Propagation**: Test that events correctly propagate through component hierarchies - -By following these guidelines, you'll create and maintain effective tests that verify not just individual components in isolation, but their behavior within the complete component ecosystem.
feat(SMDV-7634): add test coverage for the OnboardingContext.test.tsx component
feat(SMDV-7634): add test coverage for the OnboardingContext.test.tsx component
7c163a7741fd703d2f2ad8d68fa5f54df3d92905
--- 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.11](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.10...@walmart/allspark-foundation-hub@1.19.11) (2025-10-28) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.19.10](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.9...@walmart/allspark-foundation-hub@1.19.10) (2025-10-28) **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.10", + "version": "1.19.11", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-athena-queries/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. +# [6.35.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.34.0...@walmart/me-at-walmart-athena-queries@6.35.0) (2025-10-28) + +### Features + +- **query:** change query fields ([#447](https://gecgithub01.walmart.com/allspark/allspark/issues/447)) ([bf149b3](https://gecgithub01.walmart.com/allspark/allspark/commit/bf149b33e6fa966cc83d95d6e70f1bf454a61820)) + # [6.34.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.33.5...@walmart/me-at-walmart-athena-queries@6.34.0) (2025-08-12) ### Features --- packages/me-at-walmart-athena-queries/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-athena-queries", - "version": "6.34.0", + "version": "6.35.0", "description": "> TODO: description", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.19.11 - @walmart/me-at-walmart-athena-queries@6.35.0
542284684a8ea084ab2117f2639e14cfadf96458
--- __tests__/__mocks__/@walmart/react-native-env.js @@ -1,3 +1,4 @@ module.exports = { setSharedConfig: jest.fn(), + getSharedConfig: jest.fn(), }; --- __tests__/startup/initEnvTest.ts @@ -1,4 +1,4 @@ -import {setSharedConfig} from '@walmart/react-native-env'; +import {setSharedConfig, getSharedConfig} from '@walmart/react-native-env'; import {initEnv, envReducer} from '../../src/startup/initEnv'; import env from '../../env'; @@ -13,10 +13,19 @@ test('envReducer', () => { }); describe('initEnv', () => { - it('sets shared config; adds reducer; handles cleanup', () => { + beforeEach(jest.clearAllMocks); + + it('sets shared config when not defined; adds reducer; handles cleanup', () => { + (getSharedConfig as jest.Mock).mockReturnValueOnce(null); const cleanup = initEnv(); expect(setSharedConfig).toHaveBeenCalledWith(env); cleanup(); expect(mockCleanupReducer).toHaveBeenCalled(); }); + + it('does not set shared config if already defined', () => { + (getSharedConfig as jest.Mock).mockReturnValueOnce({env: 'dev'}); + initEnv(); + expect(setSharedConfig).not.toHaveBeenCalled(); + }); }); --- src/startup/initEnv.ts @@ -1,4 +1,8 @@ -import {setSharedConfig, SharedConfig} from '@walmart/react-native-env'; +import { + getSharedConfig, + setSharedConfig, + SharedConfig, +} from '@walmart/react-native-env'; import env from '../../env'; import {initReducer} from '../redux/utils'; @@ -12,8 +16,11 @@ export const initEnvReducer = initReducer.bind({ }); export const initEnv = () => { - setSharedConfig(env as SharedConfig); const cleanup = initEnvReducer(); + if (!getSharedConfig()) { + setSharedConfig(env as SharedConfig); + } + return cleanup; };
shared env init fix for possible double setting
shared env init fix for possible double setting
00a105c1309a32ecca29dc30f75a33dcafb5354a
--- __tests__/whatsNew/__snapshots__/RestrictionNoteTest.tsx.snap @@ -2,6 +2,7 @@ exports[`RestrictionNote matches snapshot 1`] = ` <View + accessibilityRole="button" accessibilityState={ { "busy": undefined, @@ -62,6 +63,7 @@ exports[`RestrictionNote matches snapshot 1`] = ` exports[`RestrictionNote matches snapshot without style; handles undefined onPress 1`] = ` <View + accessibilityRole="button" accessibilityState={ { "busy": undefined, --- __tests__/whatsNew/__snapshots__/WhatsNewScreenTest.tsx.snap @@ -338,6 +338,7 @@ exports[`WhatsNewScreen handles v2 data with section list 1`] = ` </RCTScrollView> </View> <View + accessibilityRole="button" accessibilityState={ { "busy": undefined, @@ -701,6 +702,7 @@ exports[`WhatsNewScreen renders correctly 1`] = ` </RCTScrollView> </View> <View + accessibilityRole="button" accessibilityState={ { "busy": undefined,
chore: update snapshots
chore: update snapshots
f40ffecfe6ef9063fd97d4b6771f2bc5b5bfb3d4
--- ios/Podfile.lock @@ -556,7 +556,7 @@ PODS: - React-Core - react-native-wm-app-review (0.4.0): - React-Core - - react-native-wm-vizpick-shell (1.1.2-rc.4): + - react-native-wm-vizpick-shell (1.1.2-rc.7): - React - react-native-wm-voice-text (1.0.1): - React @@ -1231,7 +1231,7 @@ SPEC CHECKSUMS: react-native-view-shot: 792829857bbb23a9c8acdad9a640554bdee397a3 react-native-webview: d33e2db8925d090871ffeb232dfa50cb3a727581 react-native-wm-app-review: eff89fab61d28c3bf7106419717d4aeb6c5aa6f2 - react-native-wm-vizpick-shell: 2f30eaa112fb60413e62840d9a1ff3ddf64e4b42 + react-native-wm-vizpick-shell: baf8478f591d8be8f6dad307f5730fb3dbe8b99a react-native-wm-voice-text: 0658ee8e9d8e9e3df0f48dd49115f804ac0e8896 React-perflogger: cce000b5caa4bcecbb29ee9cfdb47f26202d2599 React-RCTActionSheet: ba29f52a82d970e2aba5804490ecaea587c7a751 --- package-lock.json @@ -81,7 +81,7 @@ "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.24.5", "@walmart/time-clock-mini-app": "2.49.0", - "@walmart/topstock-mini-app": "0.0.2", + "@walmart/topstock-mini-app": "0.0.2-feat-d8d1080", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26", @@ -161,7 +161,7 @@ "react-native-wm-network": "0.2.0", "react-native-wm-notification": "2.0.1", "react-native-wm-telemetry": "0.4.0", - "react-native-wm-vizpick-shell": "1.1.2-rc.4", + "react-native-wm-vizpick-shell": "1.1.2-rc.7", "react-native-wm-voice-text": "1.0.1", "react-redux": "^8.0.4", "realm": "11.2.0", @@ -6099,9 +6099,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/topstock-mini-app": { - "version": "0.0.2", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-0.0.2.tgz", - "integrity": "sha512-ZaZuQZ3zCn1J0vJt5pA34+JH5e4H5AmZEdA3kvJFiAnQFhaZ2dRjM332+y0rD/AwPn+lH5SS4q12UYS6hXJUpA==", + "version": "0.0.2-feat-d8d1080", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-0.0.2-feat-d8d1080.tgz", + "integrity": "sha512-/TDN2TDcV11dYCR+myOxp3ociv/Gmxl/MOd86UTA9c2U05gQ/UdOHzHgkre3FIyLgzZwh6HEvGnDOKRwNHXCfg==", "dependencies": { "javascript-time-ago": "^2.5.7" }, @@ -18357,9 +18357,9 @@ } }, "node_modules/react-native-wm-vizpick-shell": { - "version": "1.1.2-rc.4", - "resolved": "https://npme.walmart.com/react-native-wm-vizpick-shell/-/react-native-wm-vizpick-shell-1.1.2-rc.4.tgz", - "integrity": "sha512-4+unMjnMvZBWT50yXQzgT6k5wih0IOpwg4uTvp3kqwgb8BCCPpGoHlrGEXbdAnM/AbF1D3e6DURo1gzoMJ5BEQ==", + "version": "1.1.2-rc.7", + "resolved": "https://npme.walmart.com/react-native-wm-vizpick-shell/-/react-native-wm-vizpick-shell-1.1.2-rc.7.tgz", + "integrity": "sha512-dSPBh7AQ0IgDi1y/i2dC9EBqfDA32gPbiLC1ua9vi/Y9Y3kqwzvugUbVfJrTAKNxpoAlvfjOBWXDLO605jZXLQ==", "license": "UNLICENSED" }, "node_modules/react-native-wm-voice-text": { @@ -25406,9 +25406,9 @@ "version": "1.0.4" }, "@walmart/topstock-mini-app": { - "version": "0.0.2", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-0.0.2.tgz", - "integrity": "sha512-ZaZuQZ3zCn1J0vJt5pA34+JH5e4H5AmZEdA3kvJFiAnQFhaZ2dRjM332+y0rD/AwPn+lH5SS4q12UYS6hXJUpA==", + "version": "0.0.2-feat-d8d1080", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-0.0.2-feat-d8d1080.tgz", + "integrity": "sha512-/TDN2TDcV11dYCR+myOxp3ociv/Gmxl/MOd86UTA9c2U05gQ/UdOHzHgkre3FIyLgzZwh6HEvGnDOKRwNHXCfg==", "requires": { "javascript-time-ago": "^2.5.7" } @@ -33222,9 +33222,9 @@ "version": "0.4.0" }, "react-native-wm-vizpick-shell": { - "version": "1.1.2-rc.4", - "resolved": "https://npme.walmart.com/react-native-wm-vizpick-shell/-/react-native-wm-vizpick-shell-1.1.2-rc.4.tgz", - "integrity": "sha512-4+unMjnMvZBWT50yXQzgT6k5wih0IOpwg4uTvp3kqwgb8BCCPpGoHlrGEXbdAnM/AbF1D3e6DURo1gzoMJ5BEQ==" + "version": "1.1.2-rc.7", + "resolved": "https://npme.walmart.com/react-native-wm-vizpick-shell/-/react-native-wm-vizpick-shell-1.1.2-rc.7.tgz", + "integrity": "sha512-dSPBh7AQ0IgDi1y/i2dC9EBqfDA32gPbiLC1ua9vi/Y9Y3kqwzvugUbVfJrTAKNxpoAlvfjOBWXDLO605jZXLQ==" }, "react-native-wm-voice-text": { "version": "1.0.1" --- package.json @@ -123,7 +123,7 @@ "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.24.5", "@walmart/time-clock-mini-app": "2.49.0", - "@walmart/topstock-mini-app": "0.0.2", + "@walmart/topstock-mini-app": "0.0.2-feat-d8d1080", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26", @@ -203,7 +203,7 @@ "react-native-wm-network": "0.2.0", "react-native-wm-notification": "2.0.1", "react-native-wm-telemetry": "0.4.0", - "react-native-wm-vizpick-shell": "1.1.2-rc.4", + "react-native-wm-vizpick-shell": "1.1.2-rc.7", "react-native-wm-voice-text": "1.0.1", "react-redux": "^8.0.4", "realm": "11.2.0",
update(version): topstock mini & shell
update(version): topstock mini & shell "react-native-wm-vizpick-shell": "1.1.2-rc.7", "@walmart/topstock-mini-app": "0.0.2-feat-d8d1080",
e6733dd5b6177a03793a00fff39f0efbcd44b9c6
--- graphql.yml @@ -32,7 +32,7 @@ applications: tags: - "v1" - name: "getLoggedInUser" - hash: "f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c" + hash: "69cdf0735a13f5c55d9407f0b320260688a6dcf5e1c682236f2b0d8c297950c0" queryTemplate: "packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql" tags: - "v1" @@ -94,7 +94,7 @@ applications: tags: - "v1" - name: "getLoggedInUser" - hash: "f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c" + hash: "69cdf0735a13f5c55d9407f0b320260688a6dcf5e1c682236f2b0d8c297950c0" queryTemplate: "packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql" tags: - "v1" --- packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql @@ -2,35 +2,39 @@ query getLoggedInUser { getLoggedInUser { __typename assignedBusinessUnit { + __typename + ... on AssociateRetailBusinessUnitAssignment { __typename businessUnitNumber - ... on AssociateRetailBusinessUnit { - teams { - __typename - members - membership { - __typename - baseTeam - role - win - } - teamId - teamName - } + teams { + __typename + members + membership { + __typename + baseTeam + role + walmartIdentificationNumber + } + teamId + teamName } - ... on AssociateSupplyChainBusinessUnit { - teams { - __typename - members - membership { - __typename - baseTeam - role - win - } - teamId - teamName + } + ... on AssociateSupplyChainBusinessUnitAssignment { + __typename + businessUnitNumber + teams { + __typename + members + membership { + __typename + baseTeam + role + walmartIdentificationNumber + } + teamId + teamName } + } } associate { __typename --- packages/me-at-walmart-athena-queries/src/getLoggedInUser.ts @@ -40,6 +40,40 @@ export type GetLoggedInUserQuery = { wmJobCode?: string | null; wmRegionNumber?: string | null; wmSystemJobCodes?: string | null; + assignedBusinessUnit?: + | { + __typename: 'AssociateRetailBusinessUnitAssignment'; + businessUnitNumber?: number | null; + teams?: Array<{ + __typename: 'Team'; + members?: Array<string | null> | null; + teamId?: string | null; + teamName?: string | null; + membership?: Array<{ + __typename: 'TeamAssociateMembership'; + baseTeam?: boolean | null; + role?: string | null; + walmartIdentificationNumber?: string | null; + } | null> | null; + } | null> | null; + } + | { + __typename: 'AssociateSupplyChainBusinessUnitAssignment'; + businessUnitNumber?: number | null; + teams?: Array<{ + __typename: 'SupplyChainTeam'; + members?: Array<string | null> | null; + teamId?: string | null; + teamName?: string | null; + membership?: Array<{ + __typename: 'SupplyChainTeamAssociateMembership'; + baseTeam?: boolean | null; + role?: string | null; + walmartIdentificationNumber?: string | null; + } | null> | null; + } | null> | null; + } + | null; associate?: { __typename: 'Associate'; associateId: string; @@ -68,19 +102,6 @@ export type GetLoggedInUserQuery = { } | null; } | null; birthDate?: { __typename: 'Birthday'; raw?: string | null } | null; - teams?: Array<{ - __typename: 'Team'; - members?: Array<string | null> | null; - site?: string | null; - teamId?: string | null; - teamName?: string | null; - membership?: Array<{ - __typename: 'TeamAssociateMembership'; - baseTeam?: boolean | null; - role?: string | null; - win?: string | null; - } | null> | null; - } | null> | null; } | null; } | null; }; @@ -89,6 +110,39 @@ export const GetLoggedInUserDocument = gql` query getLoggedInUser { getLoggedInUser { __typename + assignedBusinessUnit { + __typename + ... on AssociateRetailBusinessUnitAssignment { + businessUnitNumber + teams { + __typename + members + membership { + __typename + baseTeam + role + walmartIdentificationNumber + } + teamId + teamName + } + } + ... on AssociateSupplyChainBusinessUnitAssignment { + businessUnitNumber + teams { + __typename + members + membership { + __typename + baseTeam + role + walmartIdentificationNumber + } + teamId + teamName + } + } + } associate { __typename associateId @@ -120,19 +174,6 @@ export const GetLoggedInUserDocument = gql` preferredMiddleName preferredNameSocialSuffix preferredNameTitle - teams { - __typename - members - membership { - __typename - baseTeam - role - win - } - site - teamId - teamName - } } city clockStatus
feature: update query
feature: update query