commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
17cb54c4c9e6029fe94d72942e91c5aa845ebe45
--- targets/US/package.json @@ -147,7 +147,7 @@ "@walmart/schedule-mini-app": "1.13.0", "@walmart/shelfavailability-mini-app": "1.5.40", "@walmart/shop-gnfr-mini-app": "1.0.137", - "@walmart/sidekick-mini-app": "4.168.17", + "@walmart/sidekick-mini-app": "4.168.18", "@walmart/store-feature-orders": "1.27.9", "@walmart/taskit-mini-app": "5.8.16", "@walmart/time-clock-mini-app": "2.448.1", --- yarn.lock @@ -7344,7 +7344,7 @@ __metadata: "@walmart/schedule-mini-app": "npm:1.13.0" "@walmart/shelfavailability-mini-app": "npm:1.5.40" "@walmart/shop-gnfr-mini-app": "npm:1.0.137" - "@walmart/sidekick-mini-app": "npm:4.168.17" + "@walmart/sidekick-mini-app": "npm:4.168.18" "@walmart/store-feature-orders": "npm:1.27.9" "@walmart/taskit-mini-app": "npm:5.8.16" "@walmart/time-clock-mini-app": "npm:2.448.1" @@ -8239,9 +8239,9 @@ __metadata: languageName: node linkType: hard -"@walmart/sidekick-mini-app@npm:4.168.17": - version: 4.168.17 - resolution: "@walmart/sidekick-mini-app@npm:4.168.17" +"@walmart/sidekick-mini-app@npm:4.168.18": + version: 4.168.18 + resolution: "@walmart/sidekick-mini-app@npm:4.168.18" peerDependencies: "@apollo/client": "*" "@expo/config-plugins": 7.2.2 @@ -8260,7 +8260,7 @@ __metadata: react: "*" react-native: "*" redux: "*" - checksum: 10c0/515ad2c36db4b1379ecc754bab3d0b750eeb8ddbfcc00e74376c36163e7b3c1b2065883ff5983c89128cc26d97bee55a6a8c0d3829055e6e4e2da6bdabceba85 + checksum: 10c0/dc2edada57433492c58b7b00adf17822ff0f49bb1c835371e6103c51ca55001c9442d3b2bca80842fa8821dd869bbc4139d1be7a3cffa3327d4d54302c49194c languageName: node linkType: hard
chore: bump sidekick@4.168.18
chore: bump sidekick@4.168.18
5a005dd07b9f17ff9cc76b781fb7493321cfe2aa
--- packages/allspark-foundation/src/Feature/AllsparkFeatureManager.ts @@ -422,6 +422,11 @@ export class FeatureModuleManager { */ public useFeatureEnabled = (featureId: string) => { const feature = this.getFeature(featureId); - return feature?.useFeatureEnabled() || true; + + if (!feature) { + return true; + } + + return feature?.useFeatureEnabled(); }; }
fix: feature enabled hook incorrectly defaulting falsy value
fix: feature enabled hook incorrectly defaulting falsy value
f2c9437de99e3ac12a706844b005225b02e8d564
--- package-lock.json @@ -4355,7 +4355,7 @@ "@walmart/gtp-shared-components": { "version": "1.2.0", "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-1.2.0.tgz", - "integrity": "sha512-OxDrYdXQeR22V+aTBNqQHRJFyIOlOkp2erG4KS+0lEWWve1EApNHNyPgIbFQbydtWn1rybwFossRsVszkr2XKQ==", + "integrity": "sha1-uZ6zL5R12W20AFyA5eFskWpu0Iw=", "requires": { "@react-native-community/datetimepicker": "^3.0.8", "@react-native-community/picker": "^1.6.5", @@ -4419,12 +4419,12 @@ "@walmart/moment-walmart": { "version": "1.0.4", "resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.4.tgz", - "integrity": "sha512-iTkDEL7GeYYS8laso4ECQ7DyHgBxnJh/uP5PJNQMHZyKb8niIwIwb19HFLuGBVRa9vZIjTz7mChSydbIn4KV0w==" + "integrity": "sha1-696avfrTbdFORoktjdt8w3uZ9hw=" }, "@walmart/patient-portal-mobile": { "version": "2.1.14", "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.14.tgz", - "integrity": "sha512-LhqS1Ogr1vi5Nj2/gIRPQnn/ogReKbIhXvXsLdDzltCibI5YGoKxHpReIQKp3YJ01xBUJyUBzrc3G/JCe7KYSg==", + "integrity": "sha1-6a8PZ45o8XUCL3Jj8H7rlEfmefQ=", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "@walmart/react-native-collapsible": "1.5.3", @@ -4473,7 +4473,7 @@ "@walmart/react-native-env": { "version": "0.2.0", "resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.2.0.tgz", - "integrity": "sha512-YkJeKZP5HuqzZF6y4H/mnktOuWzMhDUFYOkjItGfuesYSZaigcZYOklu6Ut5FFwWgy7xiS+FzvMW7IUZkxKlOw==" + "integrity": "sha1-Wj8o61r2LUN+3ZXhDrzrmHwelGU=" }, "@walmart/react-native-logger": { "version": "1.29.0", @@ -4483,7 +4483,7 @@ "@walmart/react-native-shared-navigation": { "version": "0.4.0", "resolved": "https://npme.walmart.com/@walmart/react-native-shared-navigation/-/react-native-shared-navigation-0.4.0.tgz", - "integrity": "sha512-xXCe5sJeytOO9HAKLaTiQQMzomfUS2wUP6ICLYv9BGtdJUDmoKNT7aFYeRDGPgvPvkc1A8oFrqJIrOshjLnxSg==" + "integrity": "sha1-dBX44FzZJKjZPuXiMoFiFQzybYE=" }, "@walmart/react-native-sumo-sdk": { "version": "2.2.2-beta.2", @@ -18450,14 +18450,14 @@ } }, "react-native-wm-barcode": { - "version": "2.36.1", - "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.36.1.tgz", - "integrity": "sha512-Wj6S7piM7E/S6kBxTswI5F1pmlcS0NsTSWbO8ZD4SzDrh/mPUpmGxntbCEcikrY5FwCgzkQ9xKcrAh+ovGuLhg==" + "version": "2.36.1-rc1", + "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.36.1-rc1.tgz", + "integrity": "sha512-eDeaaSP0HYlR5wvMZfq2e0WvGCNPCk8AtjNLSIalbajVbGSHXmlbEE3OdOAKIU+dsxluvRO8YXsaauo93AnTKg==" }, "react-native-wm-config": { "version": "0.1.1", "resolved": "https://npme.walmart.com/react-native-wm-config/-/react-native-wm-config-0.1.1.tgz", - "integrity": "sha512-s3S3bciDoyVqUyfzVKsXJp+aQxPriU62yL+cvbBJB6d7sGnCFHDQHF7/2y8YfK4Qc756VQ2o3SgCzlcQEYoTEw==" + "integrity": "sha1-Nn+tRZascRxL031AMLmpsn4nbB4=" }, "react-native-wm-network": { "version": "0.2.0", @@ -18472,7 +18472,7 @@ "react-native-wm-telemetry": { "version": "0.3.0", "resolved": "https://npme.walmart.com/react-native-wm-telemetry/-/react-native-wm-telemetry-0.3.0.tgz", - "integrity": "sha512-zTOSJ7BMbGHaqAF8+LDQI/s5winKcxsHSe4hv49gUbfDz19v71apgNchz31W1D2UQP+kNgrglrmCdmr5RdI8mw==" + "integrity": "sha1-8QwZvpngLi+J6pHSOcu+5HqQcLs=" }, "react-native-wm-voice-text": { "version": "0.6.0", @@ -21012,7 +21012,7 @@ "wfm-allspark-data-library": { "version": "0.0.11", "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.11.tgz", - "integrity": "sha512-o34ej3nNhCcy3uwWkOJcU/3zjXmX+VvbqiZrEgQwrxbO6cbJGxiK1Tz/JQX8j1lwi6cZFJKvDOucJtlduzVQrg==", + "integrity": "sha1-E27LsiPO+Sbj5h3p0FQpcH9VU8g=", "requires": { "@walmart/functional-components": "^1.0.22", "@walmart/react-native-env": "^0.1.0", @@ -21026,7 +21026,7 @@ "@walmart/react-native-env": { "version": "0.1.0", "resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.1.0.tgz", - "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ==" + "integrity": "sha1-ojNwDE5pPTzF1RuQXDc//Fnlpz0=" }, "moment": { "version": "2.24.0", @@ -21036,7 +21036,7 @@ "react-native-ssmp-sso-allspark": { "version": "0.0.1-rc8", "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz", - "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg==" + "integrity": "sha1-/SHw48C+3muBMp2bynExhYPZl0s=" } } }, @@ -21137,7 +21137,7 @@ "wifi-store-locator": { "version": "1.0.0-alpha2", "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.0.0-alpha2.tgz", - "integrity": "sha512-Gj0fP/NwQAguJrxEuRuHQjlUHDDH2qnFZAGgh1R0l1CUAPKFROL8L8gHZ1GDKnfoYMev7AOXKcEbZVcXpNomOg==" + "integrity": "sha1-W1OXsVMHI8dYMcI0QKg6pJO/R3Q=" }, "wm-react-native-vector-icons": { "version": "1.0.33", --- package.json @@ -166,7 +166,7 @@ "react-native-view-shot": "^3.1.2", "react-native-vision-camera": "1.0.10", "react-native-webview": "^10.7.0", - "react-native-wm-barcode": "2.36.1", + "react-native-wm-barcode": "2.36.1-rc1", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.2.0", "react-native-wm-notification": "^2.0.1",
barcode version bump for test
barcode version bump for test
c7a0c8ae8a451543d4316a7220c15cc7bf8af9c8
--- src/components/Avatar.tsx @@ -12,7 +12,7 @@ import {UserSelectors} from '@walmart/redux-store'; import {PresenceIndicator} from '../presence/components/PresenceIndicator'; import {useGetAssociateNameQuery} from '../queries/getAssociateName'; import {IdType} from '../queries/schema.types'; -import {decryptUserId} from '../utils'; +import {associateDisplayName, decryptUserId} from '../utils'; const styles = StyleSheet.create({ avatarContainer: { @@ -74,7 +74,7 @@ export const Avatar = (props: AvatarProps) => { useEffect(() => { const name = viewer ? viewerName - : data?.getAssociateById?.fullName || decryptUserId(userId); + : associateDisplayName(data?.getAssociateById) || decryptUserId(userId); const userInitials = name .toUpperCase() --- src/utils/user.ts @@ -1,6 +1,7 @@ import {encryptUserId as baseEncryptUserId} from '@walmart/allspark-utils'; import CryptoJS from 'crypto-js'; import {Associate} from '../types'; +import {GetAssociateNameQuery} from '../queries/getAssociateName'; const OBFUSCATION_KEY = 'texting-mini-app'; const OBFUSCATION_PARSE_KEY = OBFUSCATION_KEY.padStart(64, '0'); @@ -33,7 +34,9 @@ export const associateIsOnMeal = (associate?: Associate) => export const associateIsOnPPTO = (associate?: Associate) => associate?.punch?.clockStatus === '4'; -export const associateDisplayName = (associate?: Associate) => { +export const associateDisplayName = ( + associate?: Associate | GetAssociateNameQuery['getAssociateById'], +) => { return ( (associate?.preferredFirstName || associate?.firstName || '') + ' ' + --- src/components/Avatar.tsx @@ -12,7 +12,7 @@ import {UserSelectors} from '@walmart/redux-store'; import {PresenceIndicator} from '../presence/components/PresenceIndicator'; import {useGetAssociateNameQuery} from '../queries/getAssociateName'; import {IdType} from '../queries/schema.types'; -import {decryptUserId} from '../utils'; +import {associateDisplayName, decryptUserId} from '../utils'; const styles = StyleSheet.create({ avatarContainer: { @@ -74,7 +74,7 @@ export const Avatar = (props: AvatarProps) => { useEffect(() => { const name = viewer ? viewerName - : data?.getAssociateById?.fullName || decryptUserId(userId); + : associateDisplayName(data?.getAssociateById) || decryptUserId(userId); const userInitials = name .toUpperCase() --- src/utils/user.ts @@ -1,6 +1,7 @@ import {encryptUserId as baseEncryptUserId} from '@walmart/allspark-utils'; import CryptoJS from 'crypto-js'; import {Associate} from '../types'; +import {GetAssociateNameQuery} from '../queries/getAssociateName'; const OBFUSCATION_KEY = 'texting-mini-app'; const OBFUSCATION_PARSE_KEY = OBFUSCATION_KEY.padStart(64, '0'); @@ -33,7 +34,9 @@ export const associateIsOnMeal = (associate?: Associate) => export const associateIsOnPPTO = (associate?: Associate) => associate?.punch?.clockStatus === '4'; -export const associateDisplayName = (associate?: Associate) => { +export const associateDisplayName = ( + associate?: Associate | GetAssociateNameQuery['getAssociateById'], +) => { return ( (associate?.preferredFirstName || associate?.firstName || '') + ' ' +
use correct fields for initials
use correct fields for initials
1f9ee74b2b884f75a8f364826dbe1d12bbde767e
--- .yarnrc.yml @@ -1,2 +1,3 @@ nodeLinker: node-modules -npmRegistryServer: "${REPOSOLNS_NPM_REPO}" + +npmRegistryServer: "${REPOSOLNS_NPM_REPO}" \ No newline at end of file
chore(ui): looper yml error log update
chore(ui): looper yml error log update
90e520b0910c7a766594e146cc90214dc93875a9
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/iteminfo-mini-app": "7.3.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "12.0.25", - "@walmart/metrics-mini-app": "0.13.6", + "@walmart/metrics-mini-app": "0.13.8", "@walmart/mod-flex-mini-app": "1.9.4", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", @@ -5493,9 +5493,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.13.6", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.13.6.tgz", - "integrity": "sha512-0xJa/i0/wasQHavpUbIjuKJCMY7wUX0f34m9sfS+OhRXY7YyHuUGZ9pgybLZR7GghOneBAx1AupeAcj02s/yyQ==", + "version": "0.13.8", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.13.8.tgz", + "integrity": "sha512-XHSut4ziab0c9qP0VExfNQPq16rCnuCQxXtyrQ248x3LXMFBBKaqVva+u5mTMmANc3CFBpA6JWW+IPE1zXFi8A==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25244,9 +25244,9 @@ "integrity": "sha512-1mxrkjgtoltK8qzmoiVy9/rViZ/GoViHZG+1uYL1rV3o+ByksY7d8+foyY6BNzDfbg/6W2G24bdRMs7vpNf2qw==" }, "@walmart/metrics-mini-app": { - "version": "0.13.6", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.13.6.tgz", - "integrity": "sha512-0xJa/i0/wasQHavpUbIjuKJCMY7wUX0f34m9sfS+OhRXY7YyHuUGZ9pgybLZR7GghOneBAx1AupeAcj02s/yyQ==", + "version": "0.13.8", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.13.8.tgz", + "integrity": "sha512-XHSut4ziab0c9qP0VExfNQPq16rCnuCQxXtyrQ248x3LXMFBBKaqVva+u5mTMmANc3CFBpA6JWW+IPE1zXFi8A==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -100,7 +100,7 @@ "@walmart/iteminfo-mini-app": "7.3.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "12.0.25", - "@walmart/metrics-mini-app": "0.13.6", + "@walmart/metrics-mini-app": "0.13.8", "@walmart/mod-flex-mini-app": "1.9.4", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14",
Bumping metrics-mini-app version to 0.13.8
Bumping metrics-mini-app version to 0.13.8
4ec8f4809e8d5cf0e6651a8abd92274ec92443d8
--- package.json @@ -137,7 +137,7 @@ "@walmart/pay-stub-miniapp": "0.24.15", "@walmart/payrollsolution_miniapp": "0.153.6", "@walmart/persona-hub": "0.3.3", - "@walmart/price-changes-mini-app": "1.15.1", + "@walmart/price-changes-mini-app": "1.15.2", "@walmart/profile-feature-app": "2.8.1-UPV2MyWalmart.7", "@walmart/react-native-barcode-builder": "^1.0.1", "@walmart/react-native-cookies": "1.0.1", --- yarn.lock @@ -8378,7 +8378,7 @@ __metadata: "@walmart/pay-stub-miniapp": "npm:0.24.15" "@walmart/payrollsolution_miniapp": "npm:0.153.6" "@walmart/persona-hub": "npm:0.3.3" - "@walmart/price-changes-mini-app": "npm:1.15.1" + "@walmart/price-changes-mini-app": "npm:1.15.2" "@walmart/profile-feature-app": "npm:2.8.1-UPV2MyWalmart.7" "@walmart/react-native-barcode-builder": "npm:^1.0.1" "@walmart/react-native-cookies": "npm:1.0.1" @@ -8807,9 +8807,9 @@ __metadata: languageName: node linkType: hard -"@walmart/price-changes-mini-app@npm:1.15.1": - version: 1.15.1 - resolution: "@walmart/price-changes-mini-app@npm:1.15.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.15.1.tgz" +"@walmart/price-changes-mini-app@npm:1.15.2": + version: 1.15.2 + resolution: "@walmart/price-changes-mini-app@npm:1.15.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.15.2.tgz" peerDependencies: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.2.0" @@ -8828,7 +8828,7 @@ __metadata: redux-saga: ^1.1.3 reduxsauce: ^1.2.0 uuid: ^3.3.2 - checksum: 10c0/4960c3f415d1d56c23660567cebff18eae9019ad37a4abe3beef7203066ef1e54fc51f5385f7acf58ea58584fa7a339553dc2907e225a6546ecd69feec5fbe88 + checksum: 10c0/d6d0583fd6ef0896f757a6a311f7de3e430c0140fc2ea746ca7907fbbfcb559f2124186a14b9625735df2c70636957c6ded6311a8edc386ad137f67f28a768e3 languageName: node linkType: hard
chore: PC version update
chore: PC version update
6fd27079141af2bfc3cfd2221015507e503c3ff4
--- __tests__/managerExperience/components/TeamDetailsRosterInfo.test.tsx @@ -84,10 +84,17 @@ describe('TeamDetailsRosterInfo Component', () => { }); it('disables the button when associates are empty', () => { + const newProps: TeamDetailsRosterInfoProps = { + headerText: `Today's roster`, + filterChips: mockFilterChips, + numberOfAssociates: 226, + teamName: 'Team A', + handleFilter: jest.fn(), + }; jest.spyOn(hooks, 'useRbacConfigWithJobCode').mockReturnValue(false); const {queryByTestId} = renderWithProviders( - <TeamDetailsRosterInfo {...defaultProps} />, + <TeamDetailsRosterInfo {...newProps} />, ); expect(queryByTestId('viewWeeklyScheduleButton')).toBeNull(); });
fix: fix tests for better coverage
fix: fix tests for better coverage
931375f718a7afe4b34208cdbf8b48c30d9d9baa
--- packages/allspark-foundation/src/DeveloperMenu/DeveloperMenuManager.tsx @@ -166,7 +166,7 @@ export class DeveloperMenuManager { const devMenu = this._menuStateManager.useDeveloperMenuState(); // Don't render if disabled - if (!enabled) { + if (!enabled || !this._pluginRegistry.getAllPlugins().length) { return <>{children}</>; }
feat(developer menu): disable developer menu when no plugins are registered
feat(developer menu): disable developer menu when no plugins are registered
782ede3128a0318ac13817e1b734014e02578d40
--- src/containers/RosterFilters.tsx @@ -36,7 +36,7 @@ export enum FilterValue { // ChipGroup emits index of selected chip rather than id, so mapping // index to string value here. // IMPORTANT! Render order of chips matters! -const FilterMapSalaried = { +const filterMapSalaried = { '0': FilterValue.all, '1': FilterValue.absent, '2': FilterValue.tardy, @@ -44,7 +44,7 @@ const FilterMapSalaried = { '4': FilterValue.online, }; -const FilterMapHourly = { +const filterMapHourly = { '0': FilterValue.all, '1': FilterValue.clockedIn, }; @@ -142,10 +142,10 @@ export const RosterFilters = (props: { */ const onFilterPress = (selectedIds: ChipId[]) => { const filterId = selectedIds[0]?.toString(); - const FilterMap = isAllFilterChipsVisible - ? FilterMapSalaried - : FilterMapHourly; - const filterValue = FilterMap[filterId as keyof typeof FilterMap]; + const filterMap = isAllFilterChipsVisible + ? filterMapSalaried + : filterMapHourly; + const filterValue = filterMap[filterId as keyof typeof filterMap]; selectedFilter.current = filterValue; if (filterValue === FilterValue.all) { --- src/containers/RosterFilters.tsx @@ -36,7 +36,7 @@ export enum FilterValue { // ChipGroup emits index of selected chip rather than id, so mapping // index to string value here. // IMPORTANT! Render order of chips matters! -const FilterMapSalaried = { +const filterMapSalaried = { '0': FilterValue.all, '1': FilterValue.absent, '2': FilterValue.tardy, @@ -44,7 +44,7 @@ const FilterMapSalaried = { '4': FilterValue.online, }; -const FilterMapHourly = { +const filterMapHourly = { '0': FilterValue.all, '1': FilterValue.clockedIn, }; @@ -142,10 +142,10 @@ export const RosterFilters = (props: { */ const onFilterPress = (selectedIds: ChipId[]) => { const filterId = selectedIds[0]?.toString(); - const FilterMap = isAllFilterChipsVisible - ? FilterMapSalaried - : FilterMapHourly; - const filterValue = FilterMap[filterId as keyof typeof FilterMap]; + const filterMap = isAllFilterChipsVisible + ? filterMapSalaried + : filterMapHourly; + const filterValue = filterMap[filterId as keyof typeof filterMap]; selectedFilter.current = filterValue; if (filterValue === FilterValue.all) {
update variable name
update variable name
cd74f4cfa4c503d77aa685530ffbdf464445049a
--- lerna.json @@ -1,5 +1,5 @@ { - "version": "independent", + "version": "6.24.0", "npmClient": "yarn", "changelogPreset": "angular", "command": {
chore: align packages to single drop based version
chore: align packages to single drop based version
04a93e7908cb09c1771832eddb02da5893a8aeef
--- package.json @@ -169,6 +169,7 @@ "@react-native-community/datetimepicker": "^8.4.4", "@walmart/react-native-sumo-sdk": "patch:@walmart/react-native-sumo-sdk@npm%3A2.8.0#~/.yarn/patches/@walmart-react-native-sumo-sdk-npm-2.8.0-31dfe1d845.patch", "expo-modules-autolinking@npm:1.10.3": "patch:expo-modules-autolinking@npm%3A1.10.3#~/.yarn/patches/expo-modules-autolinking-npm-1.10.3-1fb95411c1.patch", + "@walmart/ax-components": "1.2.3", "@types/react": "~19.0.10", "@react-native-firebase/analytics": "~22.4.0", "@react-native-firebase/app": "~22.4.0",
fix(version): updated version
fix(version): updated version
a5fb66a2a8b2c9380fd4ae52ff38b7860bdda24c
--- packages/associate-exp-hub-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. +## [2.21.3](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.21.2...@walmart/associate-exp-hub-hub@2.21.3) (2025-12-22) + +**Note:** Version bump only for package @walmart/associate-exp-hub-hub + ## [2.21.2](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.21.1...@walmart/associate-exp-hub-hub@2.21.2) (2025-12-19) **Note:** Version bump only for package @walmart/associate-exp-hub-hub --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.21.2", + "version": "2.21.3", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.0...@walmart/associate-exp-hub-mini-app@1.14.1) (2025-12-22) + +**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app + # [1.14.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.13.5...@walmart/associate-exp-hub-mini-app@1.14.0) (2025-12-22) ### Features --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.14.0", + "version": "1.14.1", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.24.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.24.0...@walmart/associate-exp-hub-team-switcher@2.24.1) (2025-12-22) + +**Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher + # [2.24.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.23.2...@walmart/associate-exp-hub-team-switcher@2.24.0) (2025-12-22) ### Features --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.24.0", + "version": "2.24.1", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.21.3 - @walmart/associate-exp-hub-mini-app@1.14.1 - @walmart/associate-exp-hub-team-switcher@2.24.1
76a453cb08232647688c14c52d928fae2acda328
--- package-lock.json @@ -3193,9 +3193,9 @@ "integrity": "sha512-UfQvukDS75owqFhjEW+A8Ara/9zRAQNaesPJu1a6/zv8qauT9gUw/rq1VKcVeD2NiMaQCNNx+tNlOiluGRPTdQ==" }, "@walmart/time-clock-mini-app": { - "version": "0.1.38", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.38.tgz", - "integrity": "sha512-JK6Hve6gz+Sn8btHom8cWqmALBXFr1lCnVgQXsOyjd7aZoyO0lwDYUi7O7Fx5oGapumaOHQJNi3frHd3VU/6YQ==", + "version": "0.1.39", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.39.tgz", + "integrity": "sha512-gHgG0CisFUSawHxsPO+NQgQzyn4PeNObJRw8xLY/lqXc2+pqB73cF9Ecke0BZWmqbU/kYIkDGhU0vlQ1jOKi2A==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "javascript-time-ago": "^2.3.4", --- package.json @@ -65,7 +65,7 @@ "@walmart/redux-store": "^1.0.12", "@walmart/schedule-mini-app": "0.2.58", "@walmart/settings-mini-app": "1.1.16", - "@walmart/time-clock-mini-app": "0.1.38", + "@walmart/time-clock-mini-app": "0.1.39", "@walmart/ui-components": "1.0.96", "@walmart/welcomeme-mini-app": "0.5.27", "i18next": "^19.7.0",
Accommodating JSON custom payloads (#374)
Accommodating JSON custom payloads (#374) Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
69dcbe2033d031880b991b85e943e764f393b1c2
--- __tests__/startup/SsoSagaTest.ts @@ -312,6 +312,25 @@ describe('handleCandidateInfo', () => { ); expect(iterator.next().done).toEqual(true); }); + + it('handles missing siteId', () => { + const authUser = {userId: 'swalton3', siteId: null}; + const iterator = handleCandidateInfo(); + expect(iterator.next().value).toEqual(select(AuthSelectors.getAuthUser)); + expect(iterator.next(authUser).value).toEqual( + call(userActions.getUserSuccess, {...authUser, homeSite: 'NOT_FOUND'}), + ); + expect(iterator.next().done).toEqual(true); + }); + + it('handles missing auth user', () => { + const iterator = handleCandidateInfo(); + expect(iterator.next().value).toEqual(select(AuthSelectors.getAuthUser)); + expect(iterator.next(null).value).toEqual( + call(userActions.getUserError, expect.any(Error)), + ); + expect(iterator.next().done).toEqual(true); + }); }); describe('handleUserInfo', () => { --- src/startup/SsoSagas.ts @@ -131,13 +131,17 @@ export function* updateCacheUser({fields: userInfo}: {fields: Partial<User>}) { } export function* handleCandidateInfo() { - const authUser: AuthUser = yield select(AuthSelectors.getAuthUser); + const authUser: AuthUser | null = yield select(AuthSelectors.getAuthUser); // @TODO - Auth User will not always be in correct format. For now it may work, // but we'll eventually need to determine how to fetch/format candiate info - yield call(userActions.getUserSuccess, { - ...authUser, - homeSite: authUser.siteId, - } as User); + if (authUser) { + yield call(userActions.getUserSuccess, { + ...authUser, + homeSite: authUser.siteId || 'NOT_FOUND', + } as User); + } else { + yield call(userActions.getUserError, new Error('Auth user missing')); + } } export function* handleUserInfo() { --- src/startup/StartupSaga.ts @@ -80,6 +80,7 @@ export function* captureMissedMiniAppEvents(): any { } export function* handleCandidateSignIn() { + // Fetching Candidate User Information yield call(handleCandidateInfo); // Terms of Use @@ -93,12 +94,14 @@ export function* handleCandidateSignIn() { } export function* handleAssociateSignIn() { + // Fetching Associate User Information yield call(handleUserInfo); + // Prompt for site id if needed yield call(handleSiteIdPrompt); + // Wait for Site/App Configs as remaining flows require that data yield call(waitForSiteConfig); - yield call(waitForAppConfig); // Terms of Use
Fixing candidate user info logic
Fixing candidate user info logic
b98e944a2aced7cffdb43336ea1c5f245e66b198
--- package-lock.json @@ -1995,9 +1995,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.0.53", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.53.tgz", - "integrity": "sha512-oYKIx5GPi5S7JW+K/kDdTcWez1LoceJk5VJi9yVZNGSniea17gE3omk24P82oaGUbX18+8kSMCgmzR8CSo3Eyw==" + "version": "0.0.59", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.59.tgz", + "integrity": "sha512-JZE3TcVthUoTQIVMh0Ikv+DEYhTynE+5MdI8/0Lcb9w+LWn7lEBQKlrJf3Knd/8tANnXUMY+p7mqovyEUTfcew==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", @@ -9426,9 +9426,9 @@ "integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w==" }, "react-native-ptt-module": { - "version": "1.1.60", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.60.tgz", - "integrity": "sha512-BIuMScJe7ET8JsoiMuUVBMFthKMSCkHYJcRHRGblPh15kp7hK0XkeuvYHJbrJ43ltKEivTmIAR+LTTVOdjgVFA==" + "version": "1.1.62", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.62.tgz", + "integrity": "sha512-hy/0dRWOLUyaPsdkTTENnf9notvNPegZF/u0+Y6trdJO5/XWbOOS+7Qxj9Z6ztAl6HoDmG8my/w0v1Mp18ngyA==" }, "react-native-qrcode-svg": { "version": "6.0.6", --- package.json @@ -55,7 +55,7 @@ "@walmart/gtp-shared-components": "^0.2.2", "@walmart/inbox-mini-app": "0.0.20", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.0.53", + "@walmart/push-to-talk-mini-app": "0.0.59", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.17.0", "@walmart/react-native-shared-navigation": "^0.2.0", @@ -81,7 +81,7 @@ "react-native-modal": "^11.5.6", "react-native-pdf": "^6.2.0", "react-native-popup-menu": "^0.15.9", - "react-native-ptt-module": "1.1.60", + "react-native-ptt-module": "1.1.62", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "^1.10.2", "react-native-safe-area-context": "^3.1.3",
PTT Update (#209)
PTT Update (#209) * Version bump * updating package-lock Co-authored-by: Ernesto Ruano Mamud <Ernesto.Ruanomamud@walmartlabs.com>
fa25a12f9313b9fd2fc9bce769bd5b48e5b1cdee
--- __tests__/auth/__snapshots__/ErrorScreenTest.tsx.snap @@ -188,6 +188,13 @@ exports[`ErrorScreen matches snapshot when dirty and no userId/siteId 1`] = ` label="" onSelect={[Function]} placeholder="ssoError.selectIssue" + style={ + Object { + "borderBottom": 0, + "bottom": -17, + "marginLeft": 17, + } + } value="" values={ Array [ @@ -503,6 +510,13 @@ exports[`ErrorScreen renders default 1`] = ` label="" onSelect={[Function]} placeholder="ssoError.selectIssue" + style={ + Object { + "borderBottom": 0, + "bottom": -17, + "marginLeft": 17, + } + } value="" values={ Array [
update snapshot for dropdown style
update snapshot for dropdown style
1dd2adcea96766080c43077e7483602ff9880f4d
--- package.json @@ -117,7 +117,7 @@ "@walmart/inbox-mini-app": "0.103.1", "@walmart/invue-react-native-sdk": "0.1.26-alpha.12", "@walmart/iteminfo-mini-app": "8.7.2", - "@walmart/learning-mini-app": "20.0.79", + "@walmart/learning-mini-app": "20.0.87", "@walmart/manager-approvals-miniapp": "0.4.0", "@walmart/me-at-walmart-athena-queries": "6.31.0", "@walmart/me-at-walmart-common": "workspace:^", --- yarn.lock @@ -8020,9 +8020,9 @@ __metadata: languageName: node linkType: hard -"@walmart/learning-mini-app@npm:20.0.79": - version: 20.0.79 - resolution: "@walmart/learning-mini-app@npm:20.0.79::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Flearning-mini-app%2F-%2F%40walmart%2Flearning-mini-app-20.0.79.tgz" +"@walmart/learning-mini-app@npm:20.0.87": + version: 20.0.87 + resolution: "@walmart/learning-mini-app@npm:20.0.87::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Flearning-mini-app%2F-%2F%40walmart%2Flearning-mini-app-20.0.87.tgz" peerDependencies: "@react-native-firebase/analytics": 17.4.2 "@react-native-firebase/app": 17.4.2 @@ -8035,12 +8035,9 @@ __metadata: "@react-navigation/stack": ">=6" "@types/graphql": ^14.5.0 "@walmart/allspark-utils": ^1.5.2 - "@walmart/config-components": 4.4.5 - "@walmart/core-services": ~6.5.2 + "@walmart/config-components": ">=4.11.3" "@walmart/core-services-allspark": 6.25.1 "@walmart/core-services-me-at-homeoffice": 1.1.1 - "@walmart/core-utils": ~2.0.3 - "@walmart/functional-components": ~4.0.3 "@walmart/gtp-shared-components": 2.2.1-rc.0 "@walmart/homeoffice-impersonation-app": 0.0.23 "@walmart/impersonation-mini-app": 1.20.8 @@ -8048,9 +8045,8 @@ __metadata: "@walmart/react-native-logger": 1.34.8 "@walmart/react-native-scanner-3.0": 0.4.2 "@walmart/react-native-sumo-sdk": ^2.7.2 - "@walmart/redux-store": ~3.1.3 "@walmart/time-clock-mini-app": ">=3.4.0" - "@walmart/ui-components": 1.15.11 + "@walmart/ui-components": 1.25.2 "@walmart/wfm-ui": 0.8.x base-64: ^1.0.0 expo: ~50.0.21 @@ -8094,7 +8090,7 @@ __metadata: reduxsauce: ^1.2.0 reselect: ^4.0.0 wifi-store-locator: ^1.0.0-alpha2 - checksum: 10c0/cd4c38ed800a5af76f18cf52879e1c3df854c5db063d465701e862df3aae11bab0c82b2fa1421545c4a94a035f75fa7a6a72c0114f56687894a7f436f27a0f7d + checksum: 10c0/e84168ea89703572abfd65940de31c61eeaf9799db71a48e164c9daa978b96350acaa65d776cd94a6a1ed80a1fcec7862de5f6d68e84eb8f8c2bb2331abc033a languageName: node linkType: hard @@ -8336,7 +8332,7 @@ __metadata: "@walmart/inbox-mini-app": "npm:0.103.1" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12" "@walmart/iteminfo-mini-app": "npm:8.7.2" - "@walmart/learning-mini-app": "npm:20.0.79" + "@walmart/learning-mini-app": "npm:20.0.87" "@walmart/manager-approvals-miniapp": "npm:0.4.0" "@walmart/me-at-walmart-athena-queries": "npm:6.31.0" "@walmart/me-at-walmart-common": "workspace:^"
feat: learning mini app drop 34 enhancements (#4708)
feat: learning mini app drop 34 enhancements (#4708) Co-authored-by: Paridhi Kasliwal <paridhi.kasliwal@walmart.com>
6cf17a6ec9ab082d172957534ca3a220bbe8bdbb
--- src/images/assets/index.ts @@ -67,6 +67,7 @@ const Images: {[key: string]: ImageURISource} = { taskImageStore: require('./tasks/task-image-store.png'), taskVision: require('./tasks/task-image-vision.png'), taskVisionCenter: require('./tasks/task-image-vision.png'), + textChat: require('./text-chat.png'), TouchID: require('./touch-id.png'), WelcomeIllustration: require('./welcome-illustration.png'), WhatsNext: require('./whats-next.png'), --- src/images/assets/text-chat.png Binary files /dev/null and b/src/images/assets/text-chat.png differ
adding image for whats new Drop 13
adding image for whats new Drop 13
61c363111c0f9503e272e2c524514bab7c27dabb
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/SearchInput/ModalTeamListItem.tsx @@ -0,0 +1,64 @@ +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,3 +48,43 @@ 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,6 +13,17 @@ 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; }
Adding Modal teamListItem component
Adding Modal teamListItem component
2269b330cded4cf6844a7ba3944f0db756abc737
--- packages/associate-exp-hub-mini-app/src/utils/queries/getSupplyChainTeamsBySite.ts @@ -1,3 +1,65 @@ +/** + * @fileoverview Get Supply Chain Teams By Site Query - Distribution Center Team Data + * + * This file contains the GraphQL query for retrieving all supply chain teams + * within a specific distribution center or warehouse site. It provides + * comprehensive team information including operational areas, work areas, + * and team membership data tailored for supply chain operations. + * + * @architecture + * - **GraphQL Query**: Supply chain team data retrieval by site + * - **Type Safety**: Strongly typed query variables and response + * - **Apollo Integration**: Full Apollo Client integration with hooks + * - **Auto-Generated**: Generated from GraphQL schema and operations + * + * @key_features + * - All supply chain teams within a site retrieval + * - Operations area and work area organization + * - Team member and proxy member information + * - Team filtering and search capabilities + * - Management team inclusion options + * + * @query_parameters + * - **businessUnitNumber**: Business unit number for the distribution center + * - **countryCode**: Country code for localization + * - **includeManagement**: Optional flag to include management teams + * - **teamNamesLike**: Optional team name filtering + * + * @supply_chain_specifics + * - **Operations Areas**: Teams organized by operational areas (receiving, shipping, etc.) + * - **Work Areas**: Sub-organization within operations areas + * - **Proxy Members**: Support for proxy team members + * - **24/7 Operations**: Supports continuous distribution center operations + * + * @usage + * ```typescript + * import { useGetSupplyChainTeamsBySiteQuery } from './getSupplyChainTeamsBySite'; + * + * function DistributionCenterTeams({ businessUnitNumber }: { businessUnitNumber: number }) { + * const { data, loading, error } = useGetSupplyChainTeamsBySiteQuery({ + * variables: { + * businessUnitNumber: businessUnitNumber, + * countryCode: 'US', + * includeManagement: true, + * teamNamesLike: ['Receiving', 'Shipping'] + * } + * }); + * + * if (loading) return <Loading />; + * if (error) return <Error />; + * + * return <SupplyChainTeamsList teams={data?.supplyChainTeamsByBusinessUnit?.teams} />; + * } + * ``` + * + * @performance_notes + * - Efficient batch team retrieval for large distribution centers + * - Supports Apollo Client caching + * - Optional filtering to reduce payload size + * - Comprehensive supply chain team data in single query + */ + + import * as Types from './schema.types'; import {gql} from '@apollo/client'; --- packages/associate-exp-hub-team-switcher/src/utils/queries/getSupplyChainTeamsBySite.ts @@ -1,3 +1,64 @@ +/** + * @fileoverview Get Supply Chain Teams By Site Query - Distribution Center Team Data + * + * This file contains the GraphQL query for retrieving all supply chain teams + * within a specific distribution center or warehouse site. It provides + * comprehensive team information including operational areas, work areas, + * and team membership data tailored for supply chain operations. + * + * @architecture + * - **GraphQL Query**: Supply chain team data retrieval by site + * - **Type Safety**: Strongly typed query variables and response + * - **Apollo Integration**: Full Apollo Client integration with hooks + * - **Auto-Generated**: Generated from GraphQL schema and operations + * + * @key_features + * - All supply chain teams within a site retrieval + * - Operations area and work area organization + * - Team member and proxy member information + * - Team filtering and search capabilities + * - Management team inclusion options + * + * @query_parameters + * - **businessUnitNumber**: Business unit number for the distribution center + * - **countryCode**: Country code for localization + * - **includeManagement**: Optional flag to include management teams + * - **teamNamesLike**: Optional team name filtering + * + * @supply_chain_specifics + * - **Operations Areas**: Teams organized by operational areas (receiving, shipping, etc.) + * - **Work Areas**: Sub-organization within operations areas + * - **Proxy Members**: Support for proxy team members + * - **24/7 Operations**: Supports continuous distribution center operations + * + * @usage + * ```typescript + * import { useGetSupplyChainTeamsBySiteQuery } from './getSupplyChainTeamsBySite'; + * + * function DistributionCenterTeams({ businessUnitNumber }: { businessUnitNumber: number }) { + * const { data, loading, error } = useGetSupplyChainTeamsBySiteQuery({ + * variables: { + * businessUnitNumber: businessUnitNumber, + * countryCode: 'US', + * includeManagement: true, + * teamNamesLike: ['Receiving', 'Shipping'] + * } + * }); + * + * if (loading) return <Loading />; + * if (error) return <Error />; + * + * return <SupplyChainTeamsList teams={data?.supplyChainTeamsByBusinessUnit?.teams} />; + * } + * ``` + * + * @performance_notes + * - Efficient batch team retrieval for large distribution centers + * - Supports Apollo Client caching + * - Optional filtering to reduce payload size + * - Comprehensive supply chain team data in single query + */ + import * as Types from './schema.types'; import {gql} from '@apollo/client';
fix(ui): update lint fixes and comments
fix(ui): update lint fixes and comments
bc4b2ada96b3607a1067ae4630da5c7a7836b82f
--- src/channels/provider.tsx @@ -77,7 +77,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .doc<FirebaseChannel>(storeDocumentPath) .get() .then((storeChannelDoc) => { - //TODO: Set the channelsState for store if not exists if (!channelState.ids.includes(storeDocumentPath)) { const normalizedStoreChannelDocument = normalizeChannelDocumentSnapshot( @@ -108,7 +107,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .get() .then((teamChannelDoc) => { if (!channelState.ids.includes(teamDocumentPath)) { - //TODO: Create method for this update, same logic as store update const normalizedTeamChannelDocument = normalizeChannelDocumentSnapshot( teamChannelDoc as ChannelDocumentSnapshot, @@ -141,8 +139,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .where('lastMessageTime', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('lastMessageTime', 'desc') .onSnapshot(async (snapshot) => { - //TODO: The update based on the snapshot may be clobbering the results from initialization. Ensure previous channels state is injected during normalization - const normalizedSnapshot = normalizeChannelSnapshot( snapshot as ChannelQuerySnapshot, viewerId, --- src/channels/provider.tsx @@ -77,7 +77,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .doc<FirebaseChannel>(storeDocumentPath) .get() .then((storeChannelDoc) => { - //TODO: Set the channelsState for store if not exists if (!channelState.ids.includes(storeDocumentPath)) { const normalizedStoreChannelDocument = normalizeChannelDocumentSnapshot( @@ -108,7 +107,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .get() .then((teamChannelDoc) => { if (!channelState.ids.includes(teamDocumentPath)) { - //TODO: Create method for this update, same logic as store update const normalizedTeamChannelDocument = normalizeChannelDocumentSnapshot( teamChannelDoc as ChannelDocumentSnapshot, @@ -141,8 +139,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .where('lastMessageTime', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('lastMessageTime', 'desc') .onSnapshot(async (snapshot) => { - //TODO: The update based on the snapshot may be clobbering the results from initialization. Ensure previous channels state is injected during normalization - const normalizedSnapshot = normalizeChannelSnapshot( snapshot as ChannelQuerySnapshot, viewerId,
remove comments
remove comments
92a769ea455618fd95e40ab5f9ee6b9707342f99
--- .eslintrc.js @@ -9,14 +9,18 @@ module.exports = { argsIgnorePattern: '^_', }, ], - 'eol-last': ['error', 'always'], - indent: ['error', 2, { SwitchCase: 1 }], - 'space-in-parens': ['error', 'never'], - 'no-trailing-spaces': 'error', - 'array-bracket-spacing': ['error', 'never'], - 'object-curly-spacing': ['error', 'never'], - quotes: ['error', 'single'], 'no-debugger': 'error', + // Formatting rules disabled to avoid conflicts with Prettier + 'eol-last': 'off', + indent: 'off', + 'space-in-parens': 'off', + 'no-trailing-spaces': 'off', + 'array-bracket-spacing': 'off', + 'object-curly-spacing': 'off', + quotes: 'off', + 'jsx-quotes': 'off', + 'comma-dangle': 'off', + semi: 'off', }, globals: { JSX: true, --- .husky/pre-commit @@ -1,5 +1,49 @@ #!/bin/sh +# Format and lint staged files +echo "💅 Formatting and linting staged files..." + +# Get list of staged files that can be formatted/linted +STAGED_JS_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(js|jsx|ts|tsx)$' | tr '\n' ' ') +STAGED_FORMAT_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(js|jsx|ts|tsx|json|css|scss|md|html|yaml|yml)$' | tr '\n' ' ') + +if [ -n "$STAGED_FORMAT_FILES" ]; then + echo "Formatting staged files: $STAGED_FORMAT_FILES" + + # Format staged files with Prettier + yarn prettier --write $STAGED_FORMAT_FILES + + if [ $? -ne 0 ]; then + echo "❌ Prettier formatting failed. Commit aborted." + exit 1 + fi + + # Re-stage formatted files + git add $STAGED_FORMAT_FILES + echo "✅ Files formatted and re-staged" +else + echo "No files to format." +fi + +if [ -n "$STAGED_JS_FILES" ]; then + echo "Linting staged JS/TS files: $STAGED_JS_FILES" + + # Lint and auto-fix staged JS/TS files + yarn eslint --fix $STAGED_JS_FILES + + if [ $? -ne 0 ]; then + echo "❌ ESLint failed. Please fix the issues and try again." + echo "You can run 'yarn lint:fix' to attempt automatic fixes." + exit 1 + fi + + # Re-stage any files that were auto-fixed + git add $STAGED_JS_FILES + echo "✅ Linting passed and fixes applied" +else + echo "No JS/TS files to lint." +fi + # Run tests and coverage validation on changed files only echo "🧪 Running tests on changed files..." @@ -58,24 +102,4 @@ else echo "No source or test files changed, skipping test execution." fi -# Check Prettier formatting on staged files only -echo "💅 Checking Prettier formatting on staged files..." - -# Get list of staged files that prettier can format -STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(js|jsx|ts|tsx|json|css|scss|md|html|yaml|yml)$' | tr '\n' ' ') - -if [ -n "$STAGED_FILES" ]; then - echo "Checking formatting for: $STAGED_FILES" - yarn prettier --check $STAGED_FILES - - if [ $? -ne 0 ]; then - echo "❌ Some staged files are not formatted according to .prettierrc config." - echo "Run 'yarn prettier --write $STAGED_FILES' to fix formatting issues." - echo "Or run 'yarn prettier --write .' to format all files." - exit 1 - fi -else - echo "No files to check for prettier formatting." -fi - echo "✅ All pre-commit checks passed!" --- .prettierrc @@ -5,11 +5,11 @@ "printWidth": 80, "tabWidth": 2, "useTabs": false, - "bracketSpacing": true, + "bracketSpacing": false, "bracketSameLine": false, "arrowParens": "avoid", "endOfLine": "lf", "quoteProps": "as-needed", - "jsxSingleQuote": false, + "jsxSingleQuote": true, "proseWrap": "preserve" } --- package.json @@ -22,6 +22,9 @@ "jetifier": "jetifier", "lint": "eslint .", "lint:fix": "eslint . --fix", + "format": "prettier --write .", + "format:check": "prettier --check .", + "format:lint": "prettier --write . && eslint . --fix", "run-expo-doctor": "expo-doctor", "start:minified": "expo start --no-dev --minify", "start": "ts-node scripts/runWithVariablePrompt.ts 'expo start --dev-client'",
feat: SMDV-8201 make sure the prettierrc and eslint are compatible
feat: SMDV-8201 make sure the prettierrc and eslint are compatible
c9da0313e1ff670faf1f8b7b17f5ccb18b64602b
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.1-alpha.4", + "version": "1.0.0-beat.1", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Update allspark-foundation hub version
Update allspark-foundation hub version
2b1ab47c3afde2bfc60c0f0b7b8d735130ac0333
--- packages/allspark-utils/__tests__/cloneObjectTest.ts @@ -0,0 +1,11 @@ +import {cloneObject} from '../src/cloneObject'; + +test("clone object test", () => { + expect(cloneObject({ + "one": 1, + two: "two" + })).toEqual({ + "one": 1, + two: "two" + }) +}) \ No newline at end of file --- packages/allspark-utils/__tests__/createRestartableSagaTest.ts @@ -0,0 +1,30 @@ +import {select, take, call, fork, cancel} from 'redux-saga/effects'; +import { createRestartableSagas } from '../src/createRestartableSaga'; + +describe("create restartable sagas test", () => { + const mockSaga1Fn = jest.fn().mockResolvedValue(true); + const mockSaga2Fn = jest.fn().mockResolvedValue(true); + const saga1 = function* () { + yield call(mockSaga1Fn); + } + const saga2 = function* () { + yield call(mockSaga2Fn); + } + + const restartable = function* () { + createRestartableSagas([ + yield call(saga1), yield call(saga2) + ], (message, params) => { + //error scenario + }); + } + + it("takes multiple sagas in restartable sagas and runs them", () => { + const iterator = restartable(); + iterator.next() + iterator.next() + iterator.next() + // expect(mockSaga1Fn).toHaveBeenCalled(); // Fails + // expect(mockSaga2Fn).toHaveBeenCalled(); + }); +}) \ No newline at end of file --- packages/allspark-utils/__tests__/eventManagerTest.ts @@ -0,0 +1,32 @@ +import { EventManager } from "../src/eventManager"; + +describe("Event manager tests", () => { + it("is able to add an event, run it, and remove the event", () => { + const consolespy = jest.spyOn(console, 'warn').mockImplementation(() => jest.fn()) + const mockListener1 = jest.fn(); + const manager = new EventManager(['event1']); + const removeListener1 = manager.addListener('event1', mockListener1); + manager.runEvent('event1', 'payload1'); + expect(mockListener1).toHaveBeenCalledWith('payload1'); + expect(mockListener1).toHaveBeenCalledTimes(1); + removeListener1.remove(); + manager.runEvent('event1', 'payload3'); + expect(mockListener1).toHaveBeenCalledTimes(1); + manager.runEvent('randomEvent', 'payload4'); // do nothing. + expect(consolespy).toHaveBeenCalledWith('Cannot run undefined event randomEvent'); + manager.runEventListener('randomEvent2', 'randomID', 'payload4'); // do nothing. + expect(consolespy).toHaveBeenCalledWith('Cannot run undefined event randomEvent2'); + manager.removeListener('randomEvent', 'randomid') // do nothing. + }); + + it("is able to add custom listener with id and run it", () => { + const manager = new EventManager(['event1']); + const mockListener1 = jest.fn(); + const removeListener1 = manager.addListener('event1', mockListener1, { + id: 'id1' + }); + manager.runEventListener('event1', 'id1', 'payload1'); + expect(mockListener1).toHaveBeenCalledWith('payload1'); + + }) +}) \ No newline at end of file
fix: one more test
fix: one more test
d3fc244dd75f143b9f93198cd484f6da7c48d5a9
--- packages/me-at-walmart-container/src/http/index.ts @@ -7,6 +7,7 @@ import { HeaderSizeInterceptor } from './interceptors/headerSize'; import { PerformanceInterceptor } from './interceptors/performance'; import { SuccessLoggerInterceptor } from './interceptors/successLogger'; import { UnauthorizedInterceptor } from './interceptors/unauthorized'; +import { IMeAtWalmartEnvironment } from '@walmart/me-at-walmart-common'; export const MeAtWalmartHttpInterceptors: Interceptor[] = [ AddCorrelationInterceptor, @@ -19,9 +20,10 @@ export const MeAtWalmartHttpInterceptors: Interceptor[] = [ UnauthorizedInterceptor, ]; -export const MeAtWalmartHttpConfig = { +export const MeAtWalmartHttpConfig = (env: IMeAtWalmartEnvironment) => ({ headers: { - ping_token_idp: 'yes', + 'wm_consumer.id': env.http.consumerId, + 'ping_token_idp': 'yes', }, interceptors: MeAtWalmartHttpInterceptors, -}; +});
fix: add default consumer id to http client requests to maintain previous behavior
fix: add default consumer id to http client requests to maintain previous behavior
d1191612a7e7db13d3274dd505b12441da25bf81
--- ios/MeWalmart/AppDelegate.mm @@ -9,6 +9,27 @@ #import <React/RCTBundleURLProvider.h> #import <React/RCTLinkingManager.h> +// @generated begin rn-app-auth-clear-keychain - expo prebuild (DO NOT MODIFY) sync-9745cbeb34b742bbc3c17b2210d8a9df2aebced0 +static void ClearKeychainIfNecessary() { + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HAS_RUN_BEFORE"] == NO) { + [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"HAS_RUN_BEFORE"]; + + NSArray *secItemClasses = @[ + (__bridge id)kSecClassGenericPassword, + (__bridge id)kSecClassInternetPassword, + (__bridge id)kSecClassCertificate, + (__bridge id)kSecClassKey, + (__bridge id)kSecClassIdentity + ]; + + // Maps through all Keychain classes and deletes all items that match + for (id secItemClass in secItemClasses) { + NSDictionary *spec = @{(__bridge id)kSecClass: secItemClass}; + SecItemDelete((__bridge CFDictionaryRef)spec); + } + } +} +// @generated end rn-app-auth-clear-keychain @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions @@ -18,6 +39,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( [GMSServices provideAPIKey:@"AIzaSyB-SV8jUq1hMkW3pQXkAmFDCpZyjPxYufU"]; #endif // @generated end react-native-maps-init +// @generated begin rn-app-auth-keychain-invocation - expo prebuild (DO NOT MODIFY) sync-fe53ae13283a772326bd05e379359370f8a0e5cf +ClearKeychainIfNecessary(); +// @generated end rn-app-auth-keychain-invocation // @generated begin @react-native-firebase/app-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-ecd111c37e49fdd1ed6354203cd6b1e2a38cccda [FIRApp configure]; // @generated end @react-native-firebase/app-didFinishLaunchingWithOptions
chore: update native project for plugin change
chore: update native project for plugin change
414b46d1d7097fd5ca0d0ccbc4b11cb8fba118a3
--- .yarn/patches/@walmart-ui-components-npm-1.25.2-68606d814b.patch --- __tests__/PinAccess/PinAccessScreenTest.tsx @@ -19,6 +19,10 @@ jest.mock('react', () => ({ useEffect: (func: any) => func(), })); +jest.mock('crypto-js', () => ({ + SHA256: jest.fn().mockImplementation((val) => val), +})); + (useBackButton as jest.Mock).mockImplementation((func) => func()); jest --- package.json @@ -161,7 +161,7 @@ "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.25.4", "@walmart/translator-mini-app": "1.6.9", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.5#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch", + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.25.2#~/.yarn/patches/@walmart-ui-components-npm-1.25.2-68606d814b.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "1.0.13", "@walmart/wfm-ui": "3.0.2", @@ -431,7 +431,7 @@ "@walmart/me-at-walmart-common": "workspace:^", "@walmart/me-at-walmart-container": "workspace:^", "@walmart/moment-walmart": "1.0.4", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.5#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch", + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.25.2#~/.yarn/patches/@walmart-ui-components-npm-1.25.2-68606d814b.patch", "axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch", "axios-cache-interceptor": "patch:axios-cache-interceptor@npm%3A1.5.1#~/.yarn/patches/axios-cache-interceptor-npm-1.5.1-c84dd3f9ed.patch", "axios": "~1.11.0", --- src/PinAccess/PinAccess.tsx @@ -4,6 +4,7 @@ import {View} from 'react-native'; import {StackScreenProps} from '@react-navigation/stack'; import EncryptedStorage from '@walmart/react-native-encrypted-storage'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; +import CryptoJS from 'crypto-js'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation'; @@ -82,9 +83,18 @@ export const PinAccess = ( } }; + const updatePinToEncrypt = async (unencryptedPin: string) => { + const encryptedPin = CryptoJS.SHA256(unencryptedPin).toString(); + await EncryptedStorage.setItem(passcodeKey, encryptedPin); + return encryptedPin; + } + const checkPinInStorage = async () => { const data = await EncryptedStorage.getItem(passcodeKey); - if (data) { + if(data && data.length === 4) { + const encryptedPin = await updatePinToEncrypt(data); + setStoredPin(encryptedPin); + } else if(data) { setStoredPin(data); } }; --- yarn.lock @@ -8715,7 +8715,7 @@ __metadata: "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.25.4" "@walmart/translator-mini-app": "npm:1.6.9" - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.5#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch" + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.25.2#~/.yarn/patches/@walmart-ui-components-npm-1.25.2-68606d814b.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:1.0.13" "@walmart/wfm-ui": "npm:3.0.2" @@ -9723,14 +9723,15 @@ __metadata: languageName: node linkType: hard -"@walmart/ui-components@npm:1.24.5": - version: 1.24.5 - resolution: "@walmart/ui-components@npm:1.24.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fui-components%2F-%2F%40walmart%2Fui-components-1.24.5.tgz" +"@walmart/ui-components@npm:1.25.2": + version: 1.25.2 + resolution: "@walmart/ui-components@npm:1.25.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fui-components%2F-%2F%40walmart%2Fui-components-1.25.2.tgz" peerDependencies: "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" "@walmart/allspark-utils": ">=1.6.5" "@walmart/gtp-shared-components": ">=2.0.0" + crypto-js: ~4.2.0 javascript-time-ago: ">=2.3.4" react: "*" react-hook-form: "*" @@ -9744,18 +9745,19 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/c7559648af60443991cb17daecf6c8ce0eb433c51f6c477d766c86de57c151e98981cc1f3839bfcc44a5bf06f71137b74cd48d6c46063ede431e7980baf1e2e3 + checksum: 10c0/cf2fd451928910e02432f6a096c02a894b2a655a41f22404d74cf4a49cab3432f40f95c796b28ebb4709924780cb1952d07b6b173b71d90146dfd2deb8ab6590 languageName: node linkType: hard -"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.24.5#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch": - version: 1.24.5 - resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.24.5%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fui-components%252F-%252F%2540walmart%252Fui-components-1.24.5.tgz#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch::version=1.24.5&hash=8cc923" +"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.25.2#~/.yarn/patches/@walmart-ui-components-npm-1.25.2-68606d814b.patch": + version: 1.25.2 + resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.25.2%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fui-components%252F-%252F%2540walmart%252Fui-components-1.25.2.tgz#~/.yarn/patches/@walmart-ui-components-npm-1.25.2-68606d814b.patch::version=1.25.2&hash=8cc923" peerDependencies: "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" "@walmart/allspark-utils": ">=1.6.5" "@walmart/gtp-shared-components": ">=2.0.0" + crypto-js: ~4.2.0 javascript-time-ago: ">=2.3.4" react: "*" react-hook-form: "*" @@ -9769,7 +9771,7 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/76faa5b2cc415a3dedef454c0ca43f3d36b369b8dd73ca70c088c698a9f736586293438a496ee4e28bc12997c0617d617fdace8aecdbd53be47e8a41811abdce + checksum: 10c0/f4380a22c35990666e6b692075f03e9b77361bfd9b16d8de55e4e20b7654a4d0f0dfe3b8fa1464f87462d244df22c9859dfc737b4d7ae88231bf8e8c02b64655 languageName: node linkType: hard
feat(pin): handle old pins (#4355)
feat(pin): handle old pins (#4355) * feat(pin): handle old pins * fix: using new ui-components * fix: fixing yarn lock --------- Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
f3647236e08556ef323bf898a2b6948a96a497d4
--- targets/US/package.json @@ -143,7 +143,7 @@ "@walmart/roster-mini-app": "2.8.2", "@walmart/schedule-mini-app": "0.118.0", "@walmart/shelfavailability-mini-app": "1.5.33", - "@walmart/sidekick-mini-app": "4.83.6", + "@walmart/sidekick-mini-app": "4.83.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", --- yarn.lock @@ -7103,7 +7103,7 @@ __metadata: "@walmart/roster-mini-app": "npm:2.8.2" "@walmart/schedule-mini-app": "npm:0.118.0" "@walmart/shelfavailability-mini-app": "npm:1.5.33" - "@walmart/sidekick-mini-app": "npm:4.83.6" + "@walmart/sidekick-mini-app": "npm:4.83.7" "@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" @@ -7978,9 +7978,9 @@ __metadata: languageName: node linkType: hard -"@walmart/sidekick-mini-app@npm:4.83.6": - version: 4.83.6 - resolution: "@walmart/sidekick-mini-app@npm:4.83.6" +"@walmart/sidekick-mini-app@npm:4.83.7": + version: 4.83.7 + resolution: "@walmart/sidekick-mini-app@npm:4.83.7" peerDependencies: "@apollo/client": "*" "@react-navigation/native": ^6.0.0 @@ -7993,7 +7993,7 @@ __metadata: expo-linear-gradient: ~12.3.0 react: ^18.2.0 react-native: ^0.73.7 - checksum: 10c0/111cb73a006a7bffd800e3a6193526ee053d169597878caba3be57c3322cd09be98c53f2506a078263113888cd692137f5874a8284fe63a578ea6708038cdeea + checksum: 10c0/6e19ea0e7174926d07cd13a857e41e0d0b1d633de7fd0939bb8672598372af1754a0f12414f4e14469d013bad046fad055415f1dfc22a6d34167f1b7ace5b2d5 languageName: node linkType: hard
chore: bump sidekick@4.83.7
chore: bump sidekick@4.83.7
852377b324ce13f6dd29d4cbd10a6c9563c4ee72
--- __tests__/__mocks__/@react-native-firebase/firestore.js @@ -1,5 +1,5 @@ -import {store100Collection} from '../../harness/firestore/data/stores'; -import {generateCreatedAt as mockGenerateCreatedAt} from "../../harness/firestore/data/timestamps"; +import {store100Collection} from '../../harness/firestore/data/store100'; +import {generateCreatedAt as mockGenerateCreatedAt} from '../../harness/firestore/data/timestamps'; const {mockReactNativeFirestore} = require('firestore-jest-mock'); export const mockFirestoreDatabase = { database: { --- __tests__/__mocks__/@react-native-firebase/firestore.js @@ -1,5 +1,5 @@ -import {store100Collection} from '../../harness/firestore/data/stores'; -import {generateCreatedAt as mockGenerateCreatedAt} from "../../harness/firestore/data/timestamps"; +import {store100Collection} from '../../harness/firestore/data/store100'; +import {generateCreatedAt as mockGenerateCreatedAt} from '../../harness/firestore/data/timestamps'; const {mockReactNativeFirestore} = require('firestore-jest-mock'); export const mockFirestoreDatabase = { database: {
fixing vanilla test
fixing vanilla test
a2a1aeed0f9db88651710a95d2a4689f95b35534
--- src/ccmFallbacks.ts @@ -9,4 +9,5 @@ export const CCMFallbacks = { 'All users must be on the most recent version of Me@ to send and receive messages.', showViewTimeClock: false, setFirestorePersistenceEnabled: true, + rmaPath: '/ptt/weekly_schedule_link', }; --- src/hooks/roster.ts @@ -4,6 +4,7 @@ import {SiteSelectors, UserSelectors} from '@walmart/redux-store'; import { getRbacState, getRmaAppId, + getRmaPath, teamLeadJobDescriptions as teamLeadJobDescriptionsSelector, } from '../redux/selectors'; import {find, isNil, toUpper} from 'lodash'; @@ -57,7 +58,7 @@ export const useGetAssociateId = (userWin: string) => { export const useIsWeeklyScheduleLinkVisible = () => { const RBACState = useSelector(getRbacState); const RMAAppId = useSelector(getRmaAppId); - const RMAPermissionsPath = '/ptt/weekly_schedule_link'; + const RMAPermissionsPath = useSelector(getRmaPath); const RMAViewPermission = 'VIEW'; const user: any = useSelector(UserSelectors.getUser); const teamLeadJobDescriptions = useSelector(teamLeadJobDescriptionsSelector); --- src/redux/selectors.ts @@ -83,6 +83,11 @@ export const getRmaAppId = createSelector( (state: any) => (state?.rmaAppId as string) || '', ); +export const getRmaPath = createSelector( + [getTextingAppConfigData], + (state: any) => state?.rmaPath?.toString() ?? CCMFallbacks.rmaPath, +); + export const codeOfConductLink = createSelector( [getTextingAppConfigData], (state) => state?.codeOfConductLink ?? CCMFallbacks.codeOfConductLink, --- src/services/config.ts @@ -1,6 +1,6 @@ import type {EnvConfig} from '@walmart/core-services/Environment'; //@ts-ignore - ignoring importing error from outside src folder -import {version} from '../../package.json'; +// import {version} from '../../package.json'; export const HTTP_CLIENT_KEY = 'texting'; @@ -13,7 +13,7 @@ export const getGraphQLConfig = (envConfig: EnvConfig) => { ? 'cfac4a3d-ae91-43c8-81f5-ceb838e4cd44' : '25fe4e50-7085-4793-863c-08b990282345', 'x-o-platform': 'texting-miniapp', - 'x-o-platform-version': version, + // 'x-o-platform-version': version, }, }; }; --- src/ccmFallbacks.ts @@ -9,4 +9,5 @@ export const CCMFallbacks = { 'All users must be on the most recent version of Me@ to send and receive messages.', showViewTimeClock: false, setFirestorePersistenceEnabled: true, + rmaPath: '/ptt/weekly_schedule_link', }; --- src/hooks/roster.ts @@ -4,6 +4,7 @@ import {SiteSelectors, UserSelectors} from '@walmart/redux-store'; import { getRbacState, getRmaAppId, + getRmaPath, teamLeadJobDescriptions as teamLeadJobDescriptionsSelector, } from '../redux/selectors'; import {find, isNil, toUpper} from 'lodash'; @@ -57,7 +58,7 @@ export const useGetAssociateId = (userWin: string) => { export const useIsWeeklyScheduleLinkVisible = () => { const RBACState = useSelector(getRbacState); const RMAAppId = useSelector(getRmaAppId); - const RMAPermissionsPath = '/ptt/weekly_schedule_link'; + const RMAPermissionsPath = useSelector(getRmaPath); const RMAViewPermission = 'VIEW'; const user: any = useSelector(UserSelectors.getUser); const teamLeadJobDescriptions = useSelector(teamLeadJobDescriptionsSelector); --- src/redux/selectors.ts @@ -83,6 +83,11 @@ export const getRmaAppId = createSelector( (state: any) => (state?.rmaAppId as string) || '', ); +export const getRmaPath = createSelector( + [getTextingAppConfigData], + (state: any) => state?.rmaPath?.toString() ?? CCMFallbacks.rmaPath, +); + export const codeOfConductLink = createSelector( [getTextingAppConfigData], (state) => state?.codeOfConductLink ?? CCMFallbacks.codeOfConductLink, --- src/services/config.ts @@ -1,6 +1,6 @@ import type {EnvConfig} from '@walmart/core-services/Environment'; //@ts-ignore - ignoring importing error from outside src folder -import {version} from '../../package.json'; +// import {version} from '../../package.json'; export const HTTP_CLIENT_KEY = 'texting'; @@ -13,7 +13,7 @@ export const getGraphQLConfig = (envConfig: EnvConfig) => { ? 'cfac4a3d-ae91-43c8-81f5-ceb838e4cd44' : '25fe4e50-7085-4793-863c-08b990282345', 'x-o-platform': 'texting-miniapp', - 'x-o-platform-version': version, + // 'x-o-platform-version': version, }, }; };
update rma path from selector
update rma path from selector
ebe9f564a937e94ce7104a5e3488fc0ac9279272
--- __tests__/services/teamState/modalStateManager.test.ts @@ -221,7 +221,7 @@ describe('modalStateManager', () => { 'Modal selection changed', expect.objectContaining({ message: 'User selected team', - selection: 'type:all,id:all-team-id,initialized', + selection: 'type:all,id:all-team-id,uninitialized', source: 'modal-selection' }) );
feat(ui): update tests
feat(ui): update tests
7f9d3df4b989f27bb0adfc70588d61de57bac929
--- package-lock.json @@ -3059,9 +3059,9 @@ "integrity": "sha512-fBTFqpmw2IBYncf+2w7AdfVJeJb1BCpFcWLxV0KH1Xpg9YoWXmH3hVzJY1fxLm9OUFdpV5z0sNSljtp+Y3olrA==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.0.36", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.36.tgz", - "integrity": "sha512-jeDACIRARSHZZCbWEperlSp+HQuIpGxD1zpfwdBGxS2JBcj6goCzoRBDXzgKo5hVUseuI1Eet0ikqVNBhLhTnQ==" + "version": "0.0.37", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.37.tgz", + "integrity": "sha512-PR7oEfCeQt6Uo7HqkBJA9vybGk86CXGuUx/9G/Y4IObSn8WxA1U2PyEu0piYALUstK0E6NA7joBVCujAhS8MWA==" }, "@walmart/functional-components": { "version": "1.0.23", --- package.json @@ -52,7 +52,7 @@ "@walmart/allspark-me-mini-app": "0.0.22", "@walmart/ask-sam-mini-app": "0.10.21", "@walmart/config-components": "1.0.12", - "@walmart/feedback-all-spark-miniapp": "0.0.36", + "@walmart/feedback-all-spark-miniapp": "0.0.37", "@walmart/functional-components": "1.0.23", "@walmart/gtp-shared-components": "^0.2.2", "@walmart/impersonation-mini-app": "1.0.12",
Version bump for feedback switching to Public API Proxy (#351)
Version bump for feedback switching to Public API Proxy (#351)
5cb2347bea0263c1e1ad45633d25f9319b2470ff
--- scripts/mini-app-scan/package-deprecation/scheduled-library-deprecation.json @@ -139,7 +139,11 @@ "legacyLibrary": "react-native-new-snap-carousel", "replacement": "react-native-pager-view", "enforcementDate": "2025-11-03", - "notes": "Use the replacement for all new development." + "notes": "Use the replacement for all new development.", + "exemptions": [{ + "package": "@walmart/facilities-management-miniapp", + "endDate": "2026-02-03" + }] }, { "legacyLibrary": "@react-native-clipboard/clipboard",
chore: facilities management exemption d35 (#5224)
chore: facilities management exemption d35 (#5224) Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com>
0675faff7dc13801a90f5e67d98981db69a73bc9
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/inbox-mini-app": "0.81.3", "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", - "@walmart/me-field-mini-app": "1.1.41", + "@walmart/me-field-mini-app": "1.1.42", "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", @@ -5435,9 +5435,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "1.1.41", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.41.tgz", - "integrity": "sha512-LZ8bH5YYJ2Eg9CQtPm/L08tGABsl2qgfkkR1YPqEol0oIiw+1Z0Zgr93kBRxGERA1y+tYvWmA7nAb1lgRCGkmA==", + "version": "1.1.42", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.42.tgz", + "integrity": "sha512-393zwG7E0aQwxqB5rIsLPkA72E81QpfS+AKXrRHYT30NZdO59zVNRqbUuGm6R1vp4t+U1VmudJjyoXpF7aEdRg==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -25251,9 +25251,9 @@ "integrity": "sha512-zOmvEEul9aMoJhNbE2Hz1FxxeXGovIwPojGjvjyhHBDcHTQGWHJVX5d2WpxgRk7M81jBnEzluDU5dJHK9bf3oQ==" }, "@walmart/me-field-mini-app": { - "version": "1.1.41", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.41.tgz", - "integrity": "sha512-LZ8bH5YYJ2Eg9CQtPm/L08tGABsl2qgfkkR1YPqEol0oIiw+1Z0Zgr93kBRxGERA1y+tYvWmA7nAb1lgRCGkmA==" + "version": "1.1.42", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.42.tgz", + "integrity": "sha512-393zwG7E0aQwxqB5rIsLPkA72E81QpfS+AKXrRHYT30NZdO59zVNRqbUuGm6R1vp4t+U1VmudJjyoXpF7aEdRg==" }, "@walmart/metrics-mini-app": { "version": "0.9.38", --- package.json @@ -100,7 +100,7 @@ "@walmart/inbox-mini-app": "0.81.3", "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", - "@walmart/me-field-mini-app": "1.1.41", + "@walmart/me-field-mini-app": "1.1.42", "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4",
feat: :package: Bump learning mini app version to 1.1.42
feat: :package: Bump learning mini app version to 1.1.42
997b5fea86bf81e0010779a548939d373c1034c1
--- package-lock.json @@ -4520,9 +4520,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.21.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.21.0.tgz", - "integrity": "sha512-k1G9G9iC0HMjf1xNgu/hpJawczdJwGC6yTxKK799I9T1oxnT+lvBmgVCl+d5xBeB9Cy3UFvuMKo2V66uepA1Fg==" + "version": "0.22.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.22.0.tgz", + "integrity": "sha512-D7wF6bgd/wu45qIlcRGhMLqY4VQ9+rouuSLLlGSvB6/LE1G/6retyj/EjUUPIBBLOYZv/kgPOElK06hMWYBuzA==" }, "@walmart/time-clock-mini-app": { "version": "0.5.2", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.13.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.7", - "@walmart/taskit-mini-app": "0.21.0", + "@walmart/taskit-mini-app": "0.22.0", "@walmart/time-clock-mini-app": "0.5.2", "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.63.0",
Updating TaskIt Version
Updating TaskIt Version
7aa8e9691d364e17b2dfc4d3432ba359bca9af80
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -84,8 +84,18 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { const isUserAlreadyOnboarded = useSelector( ManagerExperienceSelectors.getUserIsAlreadyOnboarded ); + const userTeamSelectionTimeUpdated = useSelector( + ManagerExperienceSelectors.getUserTeamSelectionUpdatedTime + ); const isMutationError = userTeamOnboardingError || userTeamSelectionError; const [userOnboarded, setUserOnboarded] = useState(false); + const [teamUpdatedState, setTeamUpdatedState] = useState<{ + updatedTime: string | null; + updated: boolean; + }>({ + updatedTime: null, + updated: false, + }); const [ userOnboardingOrTeamSelectionError, setUserOnboardingOrTeamSelectionError, @@ -198,6 +208,22 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [userOnboardingComplete, userTeamOnboardingError, userTeamSelectionError]); + useEffect(() => { + setTeamUpdatedState(() => ({ + updatedTime: null, + updated: false, + })); + if ( + userTeamSelectionTimeUpdated && + userTeamSelectionTimeUpdated.length > 0 + ) { + setTeamUpdatedState((prev) => ({ + updatedTime: userTeamSelectionTimeUpdated, + updated: prev.updatedTime !== userTeamSelectionTimeUpdated, //true + })); + } + }, [userTeamSelectionTimeUpdated]); + useEffect(() => { const allowedWidgets = Object.keys(widgets).includes(teamState.teamLabel) ? widgets[teamState.teamLabel].widgets.map((widgetData: string) => { @@ -212,15 +238,23 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { const renderContent = useCallback(() => { return ( <HubOnboardingImage - title={t('teamsUpdatedBottomSheet.title')} - description={t('teamsUpdatedBottomSheet.description')} + title={ + userOnboarded + ? t('onboardingBottomSheet.title') + : t('teamsUpdatedBottomSheet.title') + } + description={ + userOnboarded + ? t('onboardingBottomSheet.description') + : t('teamsUpdatedBottomSheet.description') + } source={{ uri: 'https://i5-me.walmartimages.com/images/teams/manage-team-mgr-exp-9455292244.png', placeholder: 'K+Lq-9bc_N%Lf5R.%MWrr=', }} /> ); - }, [t]); + }, [t, userOnboarded]); return ( <> <ScrollView @@ -304,13 +338,13 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { /> )} - {(userOnboarded || userOnboardingComplete) && ( + {(userOnboarded || teamUpdatedState.updated) && ( <BottomSheet ref={bottomSheetRef} - isVisible={userOnboardingComplete as boolean} // condition for teams has been updated + isVisible={true} content={renderContent()} onPrimaryButtonPress={closeBottomSheet} - primaryButtonText={t('bottomSheet.buttonText')} + primaryButtonText={t('onboardingBottomSheet.buttonText')} /> )} </> --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList.tsx @@ -112,7 +112,11 @@ export const TeamSelectionList = ({ }) .then(() => { if (isUserAlreadyOnboarded) { - dispatch(ManagerExperienceCreators.completeTeamSelection()); + dispatch( + ManagerExperienceCreators.completeTeamSelection( + Date.now().toString() + ) + ); AllsparkNavigationClient.goBack(); } else { dispatch(ManagerExperienceCreators.completeUserOnboarding()); --- packages/allspark-foundation-hub/src/HubFeature/Redux/reducer.ts @@ -14,6 +14,7 @@ export const INITIAL_STATE: ManagerExperienceState = { userTeamSelectionComplete: false, userOnboardingError: null, userTeamSelectionError: null, + userTeamSelectionUpdatedTime: '', }; export const managerExperienceSlice = createSlice({ @@ -45,10 +46,13 @@ export const managerExperienceSlice = createSlice({ completeUserOnboarding: (state) => { state.userOnboardingComplete = true; state.userOnboardingInProgress = false; + state.userOnboardingError = null; }, - completeTeamSelection: (state) => { + completeTeamSelection: (state, action: PayloadAction<string>) => { state.userTeamSelectionComplete = true; + state.userTeamSelectionUpdatedTime = action.payload; state.userTeamSelectionInProgress = false; + state.userTeamSelectionError = null; }, userOnboardingFailed: (state, action: PayloadAction<string>) => { state.userOnboardingInProgress = false; --- packages/allspark-foundation-hub/src/HubFeature/Redux/types.ts @@ -9,4 +9,5 @@ export interface ManagerExperienceState { userTeamSelectionComplete: boolean; userOnboardingError: string | null; userTeamSelectionError: string | null; + userTeamSelectionUpdatedTime: string; }
Update the reducer for bottom sheet
Update the reducer for bottom sheet
e480d11869c306195a0d7e79a0f40b1bc0a9d90f
--- src/translations/es-MX.ts @@ -64,6 +64,10 @@ export const esMX = { viewSchedule: 'Ver horario', pushToTalkBtn: 'Llamada', }, + rosterMessageBtn: { + messageStore: 'Almacén de mensajes', + messageTeam: 'Equipo de mensajes', + }, notInRoster: 'No puedes enviar mensajes de texto a otros asociados ya que no estás en la lista de la tienda {{siteId}}.', notInRoster_store:
feat: add spanish translation
feat: add spanish translation
2593e08b8cdc2ef3ae6c1b401e715fbca2ad1ff6
--- main.js @@ -0,0 +1,22 @@ +// This file serves as a conditional entry point +// It determines whether to use the package entry point or the containers entry point + +// Dynamic determination of how the module is being used +const isRunningInExpo = + process.env.EXPO_PUBLIC_APP_VARIANT || + process.env.EXPO_APP_VARIANT || + process.env.NODE_ENV === 'dev'; + +try { + // When running directly with Expo or in dev mode + if (isRunningInExpo) { + module.exports = require('./index'); + } else { + // When being used as a package dependency + module.exports = require('./dist/index.js'); + } +} catch (error) { + // If there's an error, default to the dist version + console.error('Error in conditional entry point:', error); + module.exports = require('./dist/index.js'); +} --- package.json @@ -1,9 +1,10 @@ { "name": "@walmart/wmconnect-mini-app", "version": "2.35.1", - "main": "dist/index.js", + "main": "main.js", "files": [ - "dist/" + "dist", + "main.js" ], "packageManager": "yarn@4.6.0", "engines": {
feat(ui): update scripts
feat(ui): update scripts
e3038243fe1d7c268067d9312f7a566644bf7d20
--- core/src/manifest.ts @@ -75,6 +75,7 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { require('@walmart/checkout-mini-app').CheckoutMiniApp, require('@walmart/mod-flex-mini-app').default, require('@walmart/shelfavailability-mini-app').default, + require('@walmart/global-vpi-mini-app').GlobalVpiFeatureModule, ); } --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -31,7 +31,6 @@ import ItemInfoFeature from '@walmart/iteminfo-mini-app'; import {FieldLearningApp} from '@walmart/learning-mini-app'; import ManagerApprovalsFeature from '@walmart/manager-approvals-miniapp'; import MetricsFeature from '@walmart/metrics-mini-app'; -import GlobalVpiMiniApp from '@walmart/global-vpi-mini-app'; import ModFlexFeature from '@walmart/mod-flex-mini-app'; import {AuthScreen as MoneyAuthScreen} from '@walmart/money-auth-shared-components'; import {PayStubMiniApp} from '@walmart/pay-stub-miniapp'; @@ -65,6 +64,7 @@ import {TopstockMiniApp} from '@walmart/topstock-mini-app'; import {WmPlusMiniApp} from '@walmart/wm-plus-mini-app'; import {MeganavTextingScreen} from '@walmart/wmconnect-mini-app'; import TranslatorFeature from '@walmart/translator-mini-app'; +import {GlobalVpiFeatureModule} from '@walmart/global-vpi-mini-app'; import {createMiniAppScreens} from '../../../core/CreateGuardedScreens'; import {ChangeStoreFeature} from '../../../changeStore'; @@ -145,15 +145,6 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [ }, clockCheckEnabled: true, }, - { - featureId: MINI_APPS.GLOBAL_VPI, - name: 'GlobalVPI', - component: GlobalVpiMiniApp, - options: { - headerShown: false, - }, - clockCheckEnabled: true, - }, { featureId: MINI_APPS.CHECKOUT_RETURN, name: 'Returns', @@ -625,6 +616,9 @@ export const MainStackNav = () => { {managerExperienceFeature.buildAllScreens({ Navigator: MainStack as any, })} + {GlobalVpiFeatureModule.buildAllScreens({ + Navigator: MainStack as any, + })} </MainStack.Navigator> </> ); --- targets/US/package.json @@ -107,7 +107,7 @@ "@walmart/feedback-all-spark-miniapp": "0.9.72", "@walmart/financial-wellbeing-feature-app": "1.29.2", "@walmart/functional-components": "~6.3.28", - "@walmart/global-vpi-mini-app": "1.1.1", + "@walmart/global-vpi-mini-app": "1.1.3", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.4", "@walmart/ims-print-services-ui": "2.16.4",
feat: global-vpi foundations integration
feat: global-vpi foundations integration
5b5eb879770e6ab68532adf2f7136eeca30c5610
--- package.json @@ -72,9 +72,9 @@ "@react-navigation/drawer": "^7.1.2", "@react-navigation/elements": "^2.2.6", "@react-navigation/material-top-tabs": "^7.1.1", - "@react-navigation/native": "^7.1.14", - "@react-navigation/native-stack": "^7.4.2", - "@react-navigation/stack": "^7.4.2", + "@react-navigation/native": "^7.1.21", + "@react-navigation/native-stack": "^7.7.0", + "@react-navigation/stack": "^7.6.7", "@reduxjs/toolkit": "^1.9.7", "@sharcoux/slider": "^6.1.1", "@shopify/flash-list": "1.7.6", --- yarn.lock @@ -5519,12 +5519,13 @@ __metadata: languageName: node linkType: hard -"@react-navigation/core@npm:^7.12.4": - version: 7.12.4 - resolution: "@react-navigation/core@npm:7.12.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Fcore%2F-%2Fcore-7.12.4.tgz" +"@react-navigation/core@npm:^7.13.2": + version: 7.13.2 + resolution: "@react-navigation/core@npm:7.13.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Fcore%2F-%2Fcore-7.13.2.tgz" dependencies: - "@react-navigation/routers": "npm:^7.5.1" + "@react-navigation/routers": "npm:^7.5.2" escape-string-regexp: "npm:^4.0.0" + fast-deep-equal: "npm:^3.1.3" nanoid: "npm:^3.3.11" query-string: "npm:^7.1.3" react-is: "npm:^19.1.0" @@ -5532,7 +5533,7 @@ __metadata: use-sync-external-store: "npm:^1.5.0" peerDependencies: react: ">= 18.2.0" - checksum: 10c0/0e8231ced4f196c84db859760b9704b85eca156ba0d8d9802a89d46d96116fa10fa481dc482be6a807b33971682bce176a997391543d2404754e43af510201b8 + checksum: 10c0/aebe7c947994caf0e06cefd45591a777912e006e53043f139250eee5ac012ad14e3eca671d775c5b0566714c26de8ba9e29b0aa20033d1d6bf44d0b11587e9df languageName: node linkType: hard @@ -5593,29 +5594,29 @@ __metadata: languageName: node linkType: hard -"@react-navigation/native-stack@npm:^7.4.2": - version: 7.6.2 - resolution: "@react-navigation/native-stack@npm:7.6.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Fnative-stack%2F-%2Fnative-stack-7.6.2.tgz" +"@react-navigation/native-stack@npm:^7.7.0": + version: 7.7.0 + resolution: "@react-navigation/native-stack@npm:7.7.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Fnative-stack%2F-%2Fnative-stack-7.7.0.tgz" dependencies: - "@react-navigation/elements": "npm:^2.8.1" + "@react-navigation/elements": "npm:^2.8.3" color: "npm:^4.2.3" sf-symbols-typescript: "npm:^2.1.0" warn-once: "npm:^0.1.1" peerDependencies: - "@react-navigation/native": ^7.1.19 + "@react-navigation/native": ^7.1.21 react: ">= 18.2.0" react-native: "*" react-native-safe-area-context: ">= 4.0.0" react-native-screens: ">= 4.0.0" - checksum: 10c0/cc41cf1af7f2999b005c916a84cbaacc78966160f0d2835b91c00dffe0735c3b478e3f9b673526d61bb0fe6e9771720f9bad6c53746d0d5d10aa856ff45ea44e + checksum: 10c0/23f44a6bf382718831cd983ff9298e5624ce9b3292c00252aee734129ec85f4f3bd2cec15c8e8a3857fc9d433a6c2549927115ba5514a2567f9b6deba81cfa18 languageName: node linkType: hard -"@react-navigation/native@npm:^7.1.14": - version: 7.1.18 - resolution: "@react-navigation/native@npm:7.1.18::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Fnative%2F-%2Fnative-7.1.18.tgz" +"@react-navigation/native@npm:^7.1.21": + version: 7.1.21 + resolution: "@react-navigation/native@npm:7.1.21::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Fnative%2F-%2Fnative-7.1.21.tgz" dependencies: - "@react-navigation/core": "npm:^7.12.4" + "@react-navigation/core": "npm:^7.13.2" escape-string-regexp: "npm:^4.0.0" fast-deep-equal: "npm:^3.1.3" nanoid: "npm:^3.3.11" @@ -5623,33 +5624,34 @@ __metadata: peerDependencies: react: ">= 18.2.0" react-native: "*" - checksum: 10c0/251a83fc21eab7278b79e8c335cf7c50e66b5a32f0ae6d377b38e8fca5551cb73fbb0372427af02e242fc116b39538f2bf41a6a59f51c77d5d34ac89b3f4817b + checksum: 10c0/7c1d6bdc4ca322673ee617dbbe7ba226fb871c1427a398ae25901bc5eb45a2d4f8e5180cf3ad6b6eb293db5748ee9c4c24b5a534fe6c82c0919acd0c9cbb7f07 languageName: node linkType: hard -"@react-navigation/routers@npm:^7.5.1": - version: 7.5.1 - resolution: "@react-navigation/routers@npm:7.5.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Frouters%2F-%2Frouters-7.5.1.tgz" +"@react-navigation/routers@npm:^7.5.2": + version: 7.5.2 + resolution: "@react-navigation/routers@npm:7.5.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Frouters%2F-%2Frouters-7.5.2.tgz" dependencies: nanoid: "npm:^3.3.11" - checksum: 10c0/2efdbaf265e25bd1ea6d283a5a16d772eb24846e4a4554c8164091707b9289f02063a8999f8337d24ae3a33c3d2adaebabcb96bedb588aca8efb54fcab46286a + checksum: 10c0/eb22a8ce464595fc78d2f748d4397dfce5acae5f9b6afa9e0361142e69399ad8346019d1f6af7ba7a4404d54f71fc99e120ae113f5c827a4a6435bf201e349b5 languageName: node linkType: hard -"@react-navigation/stack@npm:^7.4.2": - version: 7.4.9 - resolution: "@react-navigation/stack@npm:7.4.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Fstack%2F-%2Fstack-7.4.9.tgz" +"@react-navigation/stack@npm:^7.6.7": + version: 7.6.7 + resolution: "@react-navigation/stack@npm:7.6.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Fstack%2F-%2Fstack-7.6.7.tgz" dependencies: - "@react-navigation/elements": "npm:^2.6.5" + "@react-navigation/elements": "npm:^2.8.3" color: "npm:^4.2.3" + use-latest-callback: "npm:^0.2.4" peerDependencies: - "@react-navigation/native": ^7.1.18 + "@react-navigation/native": ^7.1.21 react: ">= 18.2.0" react-native: "*" react-native-gesture-handler: ">= 2.0.0" react-native-safe-area-context: ">= 4.0.0" react-native-screens: ">= 4.0.0" - checksum: 10c0/3645cc03213d7276f205986f646143427e143eb75ce5b5c995b8abb8ee3e4bb2943099f89fb65e9b08bfb71a69ea2a6b5bd44bdb5c19705b0930627cfbdfc52d + checksum: 10c0/821bbd0a587ca15fab92891426874f5dda0de9b74c6b1dd488c83fcd589c166cbddc3ce3046690441dfa02f04f5e1dc51e2651ea30b099ab097a1ebebb23ae2d languageName: node linkType: hard @@ -8481,9 +8483,9 @@ __metadata: "@react-navigation/drawer": "npm:^7.1.2" "@react-navigation/elements": "npm:^2.2.6" "@react-navigation/material-top-tabs": "npm:^7.1.1" - "@react-navigation/native": "npm:^7.1.14" - "@react-navigation/native-stack": "npm:^7.4.2" - "@react-navigation/stack": "npm:^7.4.2" + "@react-navigation/native": "npm:^7.1.21" + "@react-navigation/native-stack": "npm:^7.7.0" + "@react-navigation/stack": "npm:^7.6.7" "@redux-saga/testing-utils": "npm:^1.1.5" "@reduxjs/toolkit": "npm:^1.9.7" "@sharcoux/slider": "npm:^6.1.1"
fix(ui): fixed navigation animation and delay issues by version bump
fix(ui): fixed navigation animation and delay issues by version bump
348be5eeadd1e93855c5835b8658875ebd1bbf6d
--- package-lock.json @@ -60,7 +60,7 @@ "@walmart/financial-wellbeing-feature-app": "1.20.1", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.1.0", - "@walmart/gtp-shared-components": "2.1.10", + "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", "@walmart/ims-print-services-ui": "2.8.0", "@walmart/inbox-mini-app": "0.90.0", @@ -9065,9 +9065,9 @@ } }, "node_modules/@walmart/gtp-shared-components": { - "version": "2.1.10", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.10.tgz", - "integrity": "sha512-Yy3R29eLNjWW4i2YdVtPdNEkvbuYzq5Hnecgg/7JXq7jVqF8eTAGXBdUXJKe/MIJPS/O6FjyQuKLptHm/O/SFQ==", + "version": "2.1.3", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.3.tgz", + "integrity": "sha512-/wB0vaVPXi8WWkpg8dx8avEuPURd2ynZblQ7VrJFx4UlkH46SMEgasCMBZRoWs/UWpjVE4mjuQ9Sz9p/oF87UA==", "license": "Apache-2.0", "dependencies": { "@livingdesign/tokens": "0.63.0", @@ -33417,9 +33417,9 @@ } }, "@walmart/gtp-shared-components": { - "version": "2.1.10", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.10.tgz", - "integrity": "sha512-Yy3R29eLNjWW4i2YdVtPdNEkvbuYzq5Hnecgg/7JXq7jVqF8eTAGXBdUXJKe/MIJPS/O6FjyQuKLptHm/O/SFQ==", + "version": "2.1.3", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.3.tgz", + "integrity": "sha512-/wB0vaVPXi8WWkpg8dx8avEuPURd2ynZblQ7VrJFx4UlkH46SMEgasCMBZRoWs/UWpjVE4mjuQ9Sz9p/oF87UA==", "requires": { "@livingdesign/tokens": "0.63.0", "@walmart/gtp-shared-icons": "1.0.7", --- package.json @@ -101,7 +101,7 @@ "@walmart/financial-wellbeing-feature-app": "1.20.1", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.1.0", - "@walmart/gtp-shared-components": "2.1.10", + "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", "@walmart/ims-print-services-ui": "2.8.0", "@walmart/inbox-mini-app": "0.90.0",
reverted back the gtp-shared-library version
reverted back the gtp-shared-library version
fd90a462ac7c81aecbd934c67904a7f711a0efac
--- src/components/widgets/celebration-system/context/CelebrationContext.tsx @@ -96,10 +96,10 @@ const celebrationReducer = ( celebrations: state.celebrations.map(celebration => celebration.id === action.payload.id ? { - ...celebration, - isLiked: action.payload.isLiked, - likes: action.payload.likes, - } + ...celebration, + isLiked: action.payload.isLiked, + likes: action.payload.likes, + } : celebration ), }; --- src/components/widgets/celebration-system/utils/api.ts @@ -199,8 +199,8 @@ class CelebrationApi { body: formData, headers: this.config.apiKey ? { - Authorization: `Bearer ${this.config.apiKey}`, - } + Authorization: `Bearer ${this.config.apiKey}`, + } : {}, } ); --- src/components/widgets/celebration-system/utils/navigation.ts @@ -134,7 +134,7 @@ export const createWebNavigationHandler = (router: any): NavigationHandler => { const url = params ? `/${routeName}?${new URLSearchParams( params as Record<string, string> - ).toString()}` + ).toString()}` : `/${routeName}`; router.push(url); },
chore(ui): update changes for celebration mini app
chore(ui): update changes for celebration mini app
7865b05ee1ae4dcbd6c2a7bf888f7e71ea224fbc
--- __tests__/auth/AuthenticatorViewTest.tsx @@ -33,6 +33,13 @@ jest.mock('../../src/auth/constants', () => ({ ALLSPARK_SIGN_IN: 'allspark_sign_in', })); +jest.mock('../../src/services/Logger', () => ({ + logger: { + error: jest.fn(), + info: jest.fn(), + }, +})); + jest.mock('../../src/auth/SectionCard', () => ({ SectionCard: 'SectionCard', })); --- src/auth/AuthenticatorView.tsx @@ -11,6 +11,7 @@ import AsyncStorage from '@react-native-community/async-storage'; import {Display, PrimaryButton} from '@walmart/gtp-shared-components'; import WmTelemetry from 'react-native-wm-telemetry'; +import {logger} from '../services/Logger'; import {getFetchingUser, getShouldHideSplashOnAuth} from '../redux'; import {Images} from '../images'; import {SSO_APP} from '../types/telemetryConstants'; @@ -48,6 +49,7 @@ export const AuthenticatorView = () => { isPreHire: String(candidateMode), }); AsyncStorage.setItem(ALLSPARK_SIGN_IN, 'true'); + logger.info('Sign In Clicked', {}); }; const onAssociateSignIn = () => { --- src/core/appConfigInit.ts @@ -127,7 +127,6 @@ export function* fetchAppConfig(): any { if (initialized) { yield call(appConfigActions.appConfigFetchProgress); const configScope = yield call(getAppConfigScope); - logger?.info('calling app config fetch', {configScope}); const data = yield call(AppConfig.fetchAppConfig, configScope); yield call(appConfigActions.appConfigFetchSuccess, data); }
removing app config fetch
removing app config fetch
e1a71ba2201caed5d5ee838dedea95f611976d21
--- packages/allspark-foundation/src/Core/types.ts @@ -5,6 +5,14 @@ export type ParamListBase = { [x: string & {}]: object | undefined; }; +export type ComponentPropListBase = { + [x: string & {}]: any; +}; + +export type ComponentRecordListBase = { + [x: string & {}]: string; +}; + declare global { namespace Allspark { interface Environment extends BaseAllsparkEnvironment {} @@ -14,9 +22,10 @@ declare global { interface ModalParams extends BaseModalParams {} - interface ComponentContainers {} - interface DynamicComponents {} - interface SharedComponents {} + interface ComponentContainers extends ComponentPropListBase {} + interface DynamicComponents extends ComponentPropListBase {} + interface DynamicComponentRecords extends ComponentRecordListBase {} + interface SharedComponents extends ComponentPropListBase {} } namespace ReactNavigation {
fix: base global typings for component did not allow for typed and generic keys
fix: base global typings for component did not allow for typed and generic keys
567265a32092d3f1a557ca8216477768a21fcc8e
--- targets/US/package.json @@ -147,7 +147,7 @@ "@walmart/shop-gnfr-mini-app": "1.0.137", "@walmart/sidekick-mini-app": "4.84.9", "@walmart/store-feature-orders": "1.27.1", - "@walmart/taskit-mini-app": "4.25.6", + "@walmart/taskit-mini-app": "4.25.8", "@walmart/time-clock-mini-app": "2.419.0", "@walmart/topstock-mini-app": "1.17.11", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch", --- yarn.lock @@ -7063,7 +7063,7 @@ __metadata: "@walmart/shop-gnfr-mini-app": "npm:1.0.137" "@walmart/sidekick-mini-app": "npm:4.84.9" "@walmart/store-feature-orders": "npm:1.27.1" - "@walmart/taskit-mini-app": "npm:4.25.6" + "@walmart/taskit-mini-app": "npm:4.25.8" "@walmart/time-clock-mini-app": "npm:2.419.0" "@walmart/topstock-mini-app": "npm:1.17.11" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch" @@ -7990,12 +7990,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:4.25.6": - version: 4.25.6 - resolution: "@walmart/taskit-mini-app@npm:4.25.6" +"@walmart/taskit-mini-app@npm:4.25.8": + version: 4.25.8 + resolution: "@walmart/taskit-mini-app@npm:4.25.8" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/df65ffccadc82898b1ad1889c4fd7f8fb5d4629fc63b7de4e4a8d2b52a8ee79ea9ec6cda3326afb8b5d3d4636008d689584f6f389169364e40128b0bc53d3ad4 + checksum: 10c0/b5ea688cb94c9a6c55e73f7fbc5415550dd46a576e227749d60622e5f1f47075854a5799f9694cf254c42856a61913707fbfdaeead3f14d2ea3a81613e4bf21f languageName: node linkType: hard
chore: bump taskit version
chore: bump taskit version
493ea129a3512f9a74c6f1a823739c96a38b1d93
--- package.json @@ -135,7 +135,7 @@ "@walmart/pay-stub-miniapp": "0.24.15", "@walmart/payrollsolution_miniapp": "0.151.10", "@walmart/persona-hub": "0.3.3", - "@walmart/price-changes-mini-app": "1.14.4", + "@walmart/price-changes-mini-app": "1.14.5", "@walmart/profile-feature-app": "2.8.1-UPV2MyWalmart.6", "@walmart/react-native-barcode-builder": "^1.0.1", "@walmart/react-native-cookies": "1.0.1", --- yarn.lock @@ -8728,7 +8728,7 @@ __metadata: "@walmart/pay-stub-miniapp": "npm:0.24.15" "@walmart/payrollsolution_miniapp": "npm:0.151.10" "@walmart/persona-hub": "npm:0.3.3" - "@walmart/price-changes-mini-app": "npm:1.14.4" + "@walmart/price-changes-mini-app": "npm:1.14.5" "@walmart/profile-feature-app": "npm:2.8.1-UPV2MyWalmart.6" "@walmart/react-native-barcode-builder": "npm:^1.0.1" "@walmart/react-native-cookies": "npm:1.0.1" @@ -9134,9 +9134,9 @@ __metadata: languageName: node linkType: hard -"@walmart/price-changes-mini-app@npm:1.14.4": - version: 1.14.4 - resolution: "@walmart/price-changes-mini-app@npm:1.14.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.14.4.tgz" +"@walmart/price-changes-mini-app@npm:1.14.5": + version: 1.14.5 + resolution: "@walmart/price-changes-mini-app@npm:1.14.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.14.5.tgz" peerDependencies: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.2.0" @@ -9155,7 +9155,7 @@ __metadata: redux-saga: ^1.1.3 reduxsauce: ^1.2.0 uuid: ^3.3.2 - checksum: 10c0/1765b0922f9c321adb9cf97763073f03f9de4710c689e019f4df52c3e5ca34af5e45bd9607c7100d854f995d55d7c4ffb228247b5a69994d1dc9e0343d6a0c4b + checksum: 10c0/219ec8f9e9cfe4fdcf8619c85d8bb7ce3d0dfb340c2002d661d7576f57b1033a40a1627216b4691ec9bac8aa4a99ae84fbaa7cfc7d975c409c62f910a609b445 languageName: node linkType: hard
feat(pc): hot fix changes defaulting end date to 7 days for 'competetive pricing' reason (#4731)
feat(pc): hot fix changes defaulting end date to 7 days for 'competetive pricing' reason (#4731)
38773c026491c17622143ece9a4dd35175401a7f
--- package.json @@ -87,7 +87,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.6.1-beta2", + "@walmart/facilities-management-miniapp": "0.5.36", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6",
Update package.json
Update package.json
5ba5c67ff15c4ca83a097f388ba1b27ef9e0a541
--- package.json @@ -116,6 +116,7 @@ "expo-linking": "~6.3.1", "expo-local-authentication": "~14.0.1", "expo-splash-screen": "~0.27.7", + "expo-system-ui": "~3.0.7", "fs-extra": "^11.2.0", "husky": "^9.1.7", "inquirer": "^12.0.0", --- yarn.lock @@ -6703,6 +6703,7 @@ __metadata: expo-linking: "npm:~6.3.1" expo-local-authentication: "npm:~14.0.1" expo-splash-screen: "npm:~0.27.7" + expo-system-ui: "npm:~3.0.7" fs-extra: "npm:^11.2.0" husky: "npm:^9.1.7" inquirer: "npm:^12.0.0" @@ -10088,6 +10089,18 @@ __metadata: languageName: node linkType: hard +"expo-system-ui@npm:~3.0.7": + version: 3.0.7 + resolution: "expo-system-ui@npm:3.0.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fexpo-system-ui%2F-%2Fexpo-system-ui-3.0.7.tgz" + dependencies: + "@react-native/normalize-colors": "npm:0.74.85" + debug: "npm:^4.3.2" + peerDependencies: + expo: "*" + checksum: 10c0/f0aa251852319d3b8942ef8b01a661f2fa6b21892b2d95a5025231e1c545d419aa46fff8e25f08a2e659a130557810ea28bfff0730129cb307394c80860a9482 + languageName: node + linkType: hard + "expo@npm:^51.0.0": version: 51.0.39 resolution: "expo@npm:51.0.39::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fexpo%2F-%2Fexpo-51.0.39.tgz"
fix(ui): update tests
fix(ui): update tests
f886e0cb2715fae5f3f26806d6dd5289a7494f4a
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.2.4", + "version": "1.2.5", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore: manual bump of hub package
chore: manual bump of hub package
ea9a9ae4018ede8fb37e1d9037379a6bc1d60a53
--- package.json @@ -164,7 +164,7 @@ "@walmart/rn-mobile-sdk-pairing": "2.1.8", "@walmart/rn-receiving-mini-app": "2.8.25", "@walmart/roster-mini-app": "3.8.9", - "@walmart/schedule-mini-app": "4.0.0", + "@walmart/schedule-mini-app": "5.2.0", "@walmart/shelfavailability-mini-app": "1.7.2", "@walmart/shop-gnfr-mini-app": "1.0.448", "@walmart/sidekick-mini-app": "4.253.2", --- src/app/tabs/for-you.tsx @@ -14,6 +14,7 @@ import {GreetingRowV2} from '@/home/components/GreetingRowV2'; * @description Default layout for the For You screen */ const DEFAULT_LAYOUT: ILayoutItem[] = [ + {componentId: 'ScheduleModule.ForYouWidget'}, {componentId: 'Sidekick.ForYouActionsWidget'}, {componentId: 'TTKComponent.ForYouComponent'} ] --- yarn.lock @@ -8504,7 +8504,7 @@ __metadata: "@walmart/rn-mobile-sdk-pairing": "npm:2.1.8" "@walmart/rn-receiving-mini-app": "npm:2.8.25" "@walmart/roster-mini-app": "npm:3.8.9" - "@walmart/schedule-mini-app": "npm:4.0.0" + "@walmart/schedule-mini-app": "npm:5.2.0" "@walmart/shelfavailability-mini-app": "npm:1.7.2" "@walmart/shop-gnfr-mini-app": "npm:1.0.448" "@walmart/sidekick-mini-app": "npm:4.253.2" @@ -9279,9 +9279,9 @@ __metadata: languageName: node linkType: hard -"@walmart/schedule-mini-app@npm:4.0.0": - version: 4.0.0 - resolution: "@walmart/schedule-mini-app@npm:4.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fschedule-mini-app%2F-%2F%40walmart%2Fschedule-mini-app-4.0.0.tgz" +"@walmart/schedule-mini-app@npm:5.2.0": + version: 5.2.0 + resolution: "@walmart/schedule-mini-app@npm:5.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fschedule-mini-app%2F-%2F%40walmart%2Fschedule-mini-app-5.2.0.tgz" peerDependencies: "@react-native-community/datetimepicker": ">=7.6.2" "@react-native-firebase/remote-config": ">=10.1.1" @@ -9292,8 +9292,10 @@ __metadata: "@walmart/allspark-foundation": ">=7.9.1" "@walmart/allspark-http-client": ">=2.4.17" "@walmart/attendance-mini-app": ">=3.24.3" + "@walmart/ax-components": ^1.1.0 "@walmart/gtp-shared-components": ">=0.2.2" "@walmart/gtp-shared-components-3": "*" + "@walmart/me-at-walmart-common": ">=6.36.0" "@walmart/moment-walmart": ">=1.0.4" "@walmart/ui-components": ">=1.15.0" "@walmart/wfm-ui": ">=4.1.0" @@ -9313,7 +9315,7 @@ __metadata: redux: ">=4.0.5" reselect: ">=4.0.0" wfm-allspark-data-library: ">=7.0.0" - checksum: 10c0/9541de0d9ee3eb7586bbe031d3a2c60cafdfb9a820415fce56ec855bf37fdb349709c53850e6596d4321086cfe4bbf6d8d98245282e81d8fa464a20afdd780d4 + checksum: 10c0/4c959b5f1c115cb9530a8f9be3202f2046454a2f01495d918f58d593279a6735b498242e181e1f19cf46823dd30872dec6d425afe4de0ff588e5d646d07f0951 languageName: node linkType: hard
feat(foryou): Add schedule widget to ForYou layout (#5078)
feat(foryou): Add schedule widget to ForYou layout (#5078) Co-authored-by: Ryan Chin - r0c0i2z <Ryan.Chin@walmart.com> Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com>
a49a8e6908783f05c5ec17223f70be4453bd4f55
--- __tests__/startup/StartupSagaTest.ts @@ -7,7 +7,6 @@ import { spawn, fork, cancel, - race, } from 'redux-saga/effects'; import {createMockTask} from '@redux-saga/testing-utils'; import {navigate} from '@walmart/react-native-shared-navigation'; @@ -409,12 +408,11 @@ describe('loginFlow', () => { const iterator = loginFlow(); expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next().value).toEqual( - race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }), + take([SIGN_IN_SUCCESS, START_IMPERSONATION, SIGN_IN_ERROR]), + ); + expect(iterator.next({type: SIGN_IN_SUCCESS}).value).toEqual( + fork(handleSignIn), ); - expect(iterator.next({success: true}).value).toEqual(fork(handleSignIn)); expect(iterator.next().value).toEqual(spawn(pinPromptFlow)); expect(iterator.next(pinPromptTask).value).toEqual(select(getUser)); expect(iterator.next(user).value).toEqual(take(SIGN_OUT_SUCCESS)); @@ -427,12 +425,11 @@ describe('loginFlow', () => { const iterator = loginFlow(); expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next().value).toEqual( - race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }), + take([SIGN_IN_SUCCESS, START_IMPERSONATION, SIGN_IN_ERROR]), + ); + expect(iterator.next({type: SIGN_IN_SUCCESS}).value).toEqual( + fork(handleSignIn), ); - expect(iterator.next({success: true}).value).toEqual(fork(handleSignIn)); expect(iterator.next().value).toEqual(spawn(pinPromptFlow)); expect(iterator.next(undefined).value).toEqual(select(getUser)); expect(iterator.next(user).value).toEqual(take(SIGN_OUT_SUCCESS)); @@ -445,12 +442,9 @@ describe('loginFlow', () => { const iterator = loginFlow(); expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next(captureEventTask).value).toEqual( - race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }), + take([SIGN_IN_SUCCESS, START_IMPERSONATION, SIGN_IN_ERROR]), ); - expect(iterator.next({failure: true}).value).toEqual( + expect(iterator.next({type: SIGN_IN_ERROR}).value).toEqual( call(AsyncStorage.getItem, ALLSPARK_SIGN_IN), ); expect(iterator.next('true').value).toEqual( @@ -466,12 +460,9 @@ describe('loginFlow', () => { const iterator = loginFlow(); expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next(undefined).value).toEqual( - race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }), + take([SIGN_IN_SUCCESS, START_IMPERSONATION, SIGN_IN_ERROR]), ); - expect(iterator.next({failure: true}).value).toEqual( + expect(iterator.next({type: SIGN_IN_ERROR}).value).toEqual( call(AsyncStorage.getItem, ALLSPARK_SIGN_IN), ); expect(iterator.next(undefined).value).toEqual( --- src/startup/StartupSaga.ts @@ -7,7 +7,6 @@ import { spawn, fork, cancel, - race, } from 'redux-saga/effects'; import {ssoActions, User} from '@walmart/redux-store'; import { @@ -187,13 +186,13 @@ export function* loginFlow(): any { while (true) { const captureEventTask = yield fork(captureMissedMiniAppEvents); - // yield take([SIGN_IN_SUCCESS, START_IMPERSONATION]); - const {success} = yield race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }); + const signInAction = yield take([ + SIGN_IN_SUCCESS, + START_IMPERSONATION, + SIGN_IN_ERROR, + ]); - if (success) { + if (signInAction.type !== SIGN_IN_ERROR) { yield fork(handleSignIn); const pinPromptTask = yield spawn(pinPromptFlow);
Updating loging flow race to use take instead
Updating loging flow race to use take instead
cf7ee57c3962864e2e71f36ca243097a09a68e41
--- .looper.yml @@ -99,7 +99,7 @@ flows: canaryRelease: - call: preparePublish - - (name Publish Canary) HUSKY=0 npx lerna publish --canary preminor --preid beta --registry ${REPOSOLNS_NPM_REPO} --yes + - (name Publish Canary) HUSKY=0 npx lerna publish --canary --conventional-commits preminor --preid beta --registry ${REPOSOLNS_NPM_REPO} --yes publishMinor:
fix(ci): trying conventional commits
fix(ci): trying conventional commits
a7c62f2218b80a7bfb0be0dfe75630448a1efe9a
--- packages/allspark-foundation/src/Navigation/config/types.ts @@ -4,6 +4,11 @@ export enum NavType { sideNav = 'SIDENAV', } +export enum MenuType { + submenu = 'SUBMENU', + separator = 'SEPARATOR', +} + export type BaseOptionConfig = { id: string; title: @@ -29,14 +34,18 @@ export type BottomNavOption = BaseOptionConfig & { export type QuickActionOption = BaseOptionConfig & {}; export type SubMenuOption = Omit<BaseOptionConfig, 'icon'> & { - menuType: string; + menuType: MenuType.submenu; }; export type SideMenuOption = BaseOptionConfig & { - subMenus: SubMenuOption[]; + subMenus: (SubMenuOption | SeparatorMenuOption)[]; // subMenuOverridden: boolean; }; +export type SeparatorMenuOption = { + menuType: MenuType.submenu; +}; + export type NavConfigData = { [NavType.bottomNav]: BottomNavOption[]; [NavType.quickAction]: QuickActionOption[];
fix: nav config submenu typing was incorrect and did not account for all menu types
fix: nav config submenu typing was incorrect and did not account for all menu types
e7443211fa9fb516a8752d0ad4050e0731aa1780
--- packages/me-at-walmart-common/src/queries/getAssociateById.ts @@ -48,7 +48,6 @@ export type GetAssociateByIdQuery = { __typename: 'MeAtWalmartPreferences'; displayPreferences?: { __typename: 'DisplayPreferences'; - anniversary?: boolean | null; birthday?: boolean | null; } | null; } | null; @@ -94,7 +93,6 @@ export const GetAssociateByIdDocument = gql` __typename displayPreferences { __typename - anniversary birthday } }
chore: revert query change until registration
chore: revert query change until registration
fe5db0484cec085dafca744f2e0777dfcfa52710
--- __mocks__/@walmart/me-at-walmart-common.js @@ -26,4 +26,5 @@ module.exports = { }, useSidekickAssistantFABFocusEffect: jest.fn(), useSidekickAssistantFABBottomOffset: jest.fn().mockReturnValue(88), + hasDeveloperMenuShown: jest.fn() }; --- __mocks__/reactotron-react-native.js @@ -0,0 +1,19 @@ +module.exports = { + __esModule: true, + default: { + configure: jest.fn(() => ({ + useReactNative: jest.fn(() => ({ + use: jest.fn(() => ({ + use: jest.fn(() => ({ + connect: jest.fn(() => ({ + createEnhancer: jest.fn() + })) + })) + })) + })) + }) + ), + onCustomCommand: jest.fn() + }, + networking: jest.fn() +} \ No newline at end of file --- __tests__/__snapshots__/index.test.tsx.snap @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`App renders CoreNavigation inside the provider 1`] = `null`; --- __tests__/index.test.tsx @@ -0,0 +1,42 @@ +import {render} from '@testing-library/react-native'; +import {App} from '@/index'; +import {MeAtWalmartContainer} from '@walmart/me-at-walmart-container'; + +jest.mock('../src/setup', () => ({ + onPreRegister: jest.fn(), +})).mock('../src/versions', () => ({ + CONTAINER_VERSION: '1.0.0', + LIBRARIES: ['lib1', 'lib2'], +})).mock('@walmart/allspark-foundation', () => ({ + ...jest.requireActual('@walmart/allspark-foundation'), + AllsparkReduxStore: { + addEnhancers: jest.fn() + } +})); + +describe('App', () => { + beforeEach(() => { + jest.clearAllMocks(); + MeAtWalmartContainer.Provider = jest.fn(() => <></>); + }); + + it('renders MeAtWalmartContainer.Provider with correct props', () => { + render(<App />); + expect(MeAtWalmartContainer.Provider).toHaveBeenCalledWith( + expect.objectContaining({ + devMenuEnabled: expect.any(Function), + environment: {env: process.env.EXPO_PUBLIC_APP_VARIANT}, + version: '1.0.0', + libraries: ['lib1', 'lib2'], + components: expect.any(Object), + children: expect.any(Object), + }), + undefined + ); + }); + + it('renders CoreNavigation inside the provider', () => { + const {toJSON} = render(<App />); + expect(toJSON()).toMatchSnapshot(); + }); +}); --- src/index.tsx @@ -12,6 +12,7 @@ import {MeAtWalmartComponents} from '@/components'; import {onPreRegister} from '@/setup'; import {CoreNavigation} from '@/navigation'; import {LIBRARIES, CONTAINER_VERSION} from '@/versions'; +import {hasDeveloperMenuShown} from 'packages/me-at-walmart-common'; // Reactotron and Console Api setup - only in dev mode if (__DEV__) { @@ -29,7 +30,7 @@ const environment = { export const App = () => { return ( - <MeAtWalmartContainer.Provider devMenuEnabled={true} environment={environment} version={CONTAINER_VERSION} libraries={LIBRARIES} components={MeAtWalmartComponents}> + <MeAtWalmartContainer.Provider devMenuEnabled={hasDeveloperMenuShown} environment={environment} version={CONTAINER_VERSION} libraries={LIBRARIES} components={MeAtWalmartComponents}> <CoreNavigation /> </MeAtWalmartContainer.Provider> );
fix: prod dev menu access fix (#5432)
fix: prod dev menu access fix (#5432) Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com> Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com>
c9ef1ca11dbae0cdb3b0d71b11b47b807c086387
--- packages/me-at-walmart-container/src/services/user/transforms.ts @@ -61,7 +61,7 @@ export const determineTeams = ( // Convert auth token data to our expected redux user format export const tokenDataToUser = (tokenData: TokenData) => { - const { upn, win, c } = tokenData; + const { upn, win } = tokenData; const siteId = inferSiteId(upn); const fullyQualifiedUserID = inferUserIdfromUpn(upn); const domain = inferDomainFromUpn(upn); @@ -76,7 +76,7 @@ export const tokenDataToUser = (tokenData: TokenData) => { workingSite: siteId, derivedFromToken: true, // ASSUMPTIONS! Are these safe? - countryCode: c || DEFAULT_COUNTRY_CODE, + countryCode: DEFAULT_COUNTRY_CODE, domain: inferDomainFromUpn(upn), userType: UserType.associate, employeeType: domain === UserDomain.homeoffice ? 'S' : 'H',
fix: remove unsafe use of token data property c as country code
fix: remove unsafe use of token data property c as country code
dea0ac7e95c381e9a2984301f132d40639ddb688
--- __tests__/startup/StartupSagaTest.ts @@ -9,7 +9,13 @@ import { cancel, } from 'redux-saga/effects'; import {createMockTask} from '@redux-saga/testing-utils'; -import {User, AuthTypes, UserTypes, UserSelectors} from '@walmart/redux-store'; +import { + User, + AuthTypes, + UserTypes, + UserSelectors, + AuthSelectors, +} from '@walmart/redux-store'; import { WMNetworkReducerTypes, WMNetworkSelectors, @@ -111,13 +117,12 @@ describe('captureMissedMiniAppEvents', () => { it('plays modified sign in action', () => { const signInAction = { type: AuthTypes.SIGN_IN_SUCCESS, - payload: { - userId: 'swalto3', + user: { + userId: 'swalton3', }, }; const networkType = 'Internal'; const loadMiniAppsAction = {type: 'LOAD_MINI_APPS'}; - const user = {}; const iterator = captureMissedMiniAppEvents(); @@ -131,14 +136,14 @@ describe('captureMissedMiniAppEvents', () => { select(WMNetworkSelectors.getNetworkType), ); expect(iterator.next(networkType).value).toEqual( - select(UserSelectors.getUser), + select(AuthSelectors.getAuthUser), ); - expect(iterator.next(user).value).toEqual( + expect(iterator.next(signInAction.user).value).toEqual( all([ put({type: WMNetworkReducerTypes.UPDATE_NETWORK_TYPE, networkType}), put({ ...signInAction, - user, + payload: signInAction.user, }), ]), ); @@ -148,6 +153,9 @@ describe('captureMissedMiniAppEvents', () => { it('replays unmodified impersonation action', () => { const startImpersonationAction = { type: UserTypes.START_IMPERSONATION, + user: { + userId: 'swalton3', + }, }; const networkType = 'Internal'; const loadMiniAppsAction = {type: 'LOAD_MINI_APPS'}; @@ -164,9 +172,15 @@ describe('captureMissedMiniAppEvents', () => { select(WMNetworkSelectors.getNetworkType), ); expect(iterator.next(networkType).value).toEqual( + select(AuthSelectors.getAuthUser), + ); + expect(iterator.next(startImpersonationAction.user).value).toEqual( all([ put({type: WMNetworkReducerTypes.UPDATE_NETWORK_TYPE, networkType}), - put(startImpersonationAction), + put({ + ...startImpersonationAction, + payload: startImpersonationAction.user, + }), ]), ); expect(iterator.next().done).toEqual(true); --- src/startup/StartupSaga.ts @@ -8,7 +8,13 @@ import { fork, cancel, } from 'redux-saga/effects'; -import {User, AuthTypes, UserTypes, UserSelectors} from '@walmart/redux-store'; +import { + User, + AuthTypes, + UserTypes, + UserSelectors, + AuthSelectors, +} from '@walmart/redux-store'; import { WMNetworkReducerTypes, WMNetworkSelectors, @@ -61,10 +67,8 @@ export function* captureMissedMiniAppEvents(): any { const networkType = yield select(WMNetworkSelectors.getNetworkType); - // For those mini apps expecting a full user object on the sign in action - if (signInAction.type === AuthTypes.SIGN_IN_SUCCESS) { - signInAction.user = yield select(UserSelectors.getUser); - } + // For those mini apps expecting the old payload action param + signInAction.payload = yield select(AuthSelectors.getAuthUser); // Dispatch missed actions / emit missed events yield all([
Fixing sign in success redispatch format
Fixing sign in success redispatch format
9b31686157e1b383595ebf0780a423f3ebc619e4
--- package-lock.json @@ -4242,9 +4242,9 @@ "integrity": "sha512-DMXzHrlFBvd5qOHxju7irJ+4UkclgpwJVlEKzPqmL4oQPYXkjCydvbJR0O5FmZtDDyBrKxKtofD2vD4nyBeHPA==" }, "@walmart/inbox-mini-app": { - "version": "0.17.0", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.17.0.tgz", - "integrity": "sha512-0JoKc1QDZ73zklud44XuqXD2antdPSnWkiqPQEkrt0EaPNxa3OBDuaqzT+w0DIV9YWwX/CTMGdYCwS53rGEUTQ==" + "version": "0.18.0", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.18.0.tgz", + "integrity": "sha512-uSob+Hfw/SrO7V55lHruCUc5nD8rKUYNUp0zRh0UJZLA/27uwGFShRj/0FAgMWaSJl7lGo7n5E5jvy/1LGW+Ug==" }, "@walmart/iteminfo-mini-app": { "version": "2.0.16", --- package.json @@ -83,7 +83,7 @@ "@walmart/gtp-shared-components": "^1.2.0", "@walmart/impersonation-mini-app": "1.0.20", "@walmart/ims-print-services-ui": "0.0.36", - "@walmart/inbox-mini-app": "0.17.0", + "@walmart/inbox-mini-app": "0.18.0", "@walmart/iteminfo-mini-app": "2.0.16", "@walmart/manager-approvals-miniapp": "0.0.58", "@walmart/metrics-mini-app": "0.4.14",
inbox header integration
inbox header integration
2d49cdaeebb5b66aa73f8c9830da84a2008dc702
--- targets/US/package.json @@ -110,7 +110,7 @@ "@walmart/global-vpi-mini-app": "1.1.1", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.4", - "@walmart/ims-print-services-ui": "2.16.5", + "@walmart/ims-print-services-ui": "2.16.4", "@walmart/inbox-mini-app": "0.97.13", "@walmart/invue-react-native-sdk": "0.1.26-beta.3-w2", "@walmart/iteminfo-mini-app": "8.0.4", --- yarn.lock @@ -6804,9 +6804,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ims-print-services-ui@npm:2.16.5": - version: 2.16.5 - resolution: "@walmart/ims-print-services-ui@npm:2.16.5" +"@walmart/ims-print-services-ui@npm:2.16.4": + version: 2.16.4 + resolution: "@walmart/ims-print-services-ui@npm:2.16.4" peerDependencies: "@react-native-firebase/analytics": ">=10.5.1" "@react-native-firebase/app": ">=10.5.0" @@ -6827,7 +6827,7 @@ __metadata: react-native-segmented-control-tab: ">=4.0.0" react-native-wm-telemetry: ">=0.2.0" uuid: ">=3.3.2" - checksum: 10c0/de09374b5e337164e62b9fdd75a689d3f3d809f0e9675a9cceb9f3eb46aa271990336a165b59ae32448d0595138558239b703b78d8c2b42181b590d6d171e6a5 + checksum: 10c0/b0ef161d32554ff70a56a0ca90bc2816386aabcb2602a4f0d1cdf6b63ecab710f0cf4d769cfc6fd5374981839bfa458bb34681a0ba7b9ae11c85d363224014d4 languageName: node linkType: hard @@ -7347,7 +7347,7 @@ __metadata: "@walmart/global-vpi-mini-app": "npm:1.1.1" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.4" - "@walmart/ims-print-services-ui": "npm:2.16.5" + "@walmart/ims-print-services-ui": "npm:2.16.4" "@walmart/inbox-mini-app": "npm:0.97.13" "@walmart/invue-react-native-sdk": "npm:0.1.26-beta.3-w2" "@walmart/iteminfo-mini-app": "npm:8.0.4"
Revert Print UI version to 2.16.4
Revert Print UI version to 2.16.4
8b8dfffa07f94c16e8c3d90f85d1188c6cc92425
--- package.json @@ -163,7 +163,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/moment-walmart": "1.0.4", "@walmart/redux-store": "~6.3.28", - "@walmart/ui-components": "1.20.4", + "@walmart/ui-components": "1.21.1", "axios": "~1.6.0", "axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch", "crypto-js": "~4.2.0", --- targets/US/package.json @@ -152,7 +152,7 @@ "@walmart/time-clock-mini-app": "2.448.1", "@walmart/topstock-mini-app": "1.20.4", "@walmart/translator-mini-app": "1.4.2", - "@walmart/ui-components": "1.20.4", + "@walmart/ui-components": "1.21.1", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.99.0", "@walmart/wfm-ui": "2.4.0", --- yarn.lock @@ -7546,7 +7546,7 @@ __metadata: "@walmart/time-clock-mini-app": "npm:2.448.1" "@walmart/topstock-mini-app": "npm:1.20.4" "@walmart/translator-mini-app": "npm:1.4.2" - "@walmart/ui-components": "npm:1.20.4" + "@walmart/ui-components": "npm:1.21.1" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.99.0" "@walmart/wfm-ui": "npm:2.4.0" @@ -8587,9 +8587,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ui-components@npm:1.20.4": - version: 1.20.4 - resolution: "@walmart/ui-components@npm:1.20.4" +"@walmart/ui-components@npm:1.21.1": + version: 1.21.1 + resolution: "@walmart/ui-components@npm:1.21.1" peerDependencies: "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" @@ -8608,7 +8608,7 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/93c05137b864a6c8d4d3baa3ae402640915bdcac36cd7ba1539bb463890900812e74baa39d92c21a4010e3fe1353be345bf1e9375f5931632fa8479363acf7dd + checksum: 10c0/838c565a5ae574dc154b55fe65a7bfb511bc08a88294230c6ffb1fc787bc63634a9f956d47b4afc3dbff5968b364faf157110c565a50402158c1f13bf0b79f24 languageName: node linkType: hard
fix uicomp translation issue
fix uicomp translation issue
0d6cb793671a28b5f420570f6e4c5300dfd55cd4
--- docs/docs/components/hub framework/hub-intro.md @@ -97,7 +97,7 @@ With these steps in mind, you're ready to set up your first hub! Remember to con ```js import { TEAM_HUB_NAMESPACE } from '@walmart/me-at-walmart-common'; -import { TimeAndAttendanceWidget } from 'your-the-package-containing-your-widget'; +import { TimeAndAttendanceWidget } from 'the-package-containing-your-widget'; const TimeAndAttendanceWidgetId = 'GTATeamName.TimeAndAttendanceWidget';
resolved spelling mistakes
resolved spelling mistakes
63b29e7f8ad1f445f3202424311d8434d772f157
--- packages/allspark-authentication/src/Authentication.ts @@ -341,6 +341,8 @@ export class AllsparkAuthentication { this._runInfoEvent('SIGN_OUT_SUCCESS'); } } catch (e) { + await this._cachedResult.remove(); + this._cachedConfig.remove(); this._runErrorEvent('SIGN_OUT_ERROR', e as AppAuthError); throw e; }
fix: adding additional removes inside catch
fix: adding additional removes inside catch
678f2475252f25258852bbc52460a772000bdc11
--- package-lock.json @@ -85,7 +85,7 @@ "@walmart/settings-mini-app": "1.19.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.40.8", - "@walmart/texting-mini-app": "2.0.29", + "@walmart/texting-mini-app": "2.0.29.patch.1", "@walmart/time-clock-mini-app": "2.111.3", "@walmart/topstock-mini-app": "1.0.13", "@walmart/ui-components": "1.15.1", @@ -8126,9 +8126,9 @@ } }, "node_modules/@walmart/texting-mini-app": { - "version": "2.0.29", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.29.tgz", - "integrity": "sha512-Du6CSDtOyhYWft5l8q5TYYNy9c5QE4nRwQ83YyEKH8rbXUbAY3ImmBVoIbocGtR0nKYsILgaCcWjOKWfhFRqTQ==", + "version": "2.0.2-9.patch.1", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.2-9.patch.1.tgz", + "integrity": "sha512-ddbIO15v+GmVpH7dz8Y/8OZsq68kDvh/86sSXlO9ZMXRM+05LJIRUx5MCB/36PAeWZ6d4ALCQsge3LQIk3Qmcg==", "hasInstallScript": true }, "node_modules/@walmart/time-clock-mini-app": { @@ -30733,9 +30733,9 @@ } }, "@walmart/texting-mini-app": { - "version": "2.0.29", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.29.tgz", - "integrity": "sha512-Du6CSDtOyhYWft5l8q5TYYNy9c5QE4nRwQ83YyEKH8rbXUbAY3ImmBVoIbocGtR0nKYsILgaCcWjOKWfhFRqTQ==" + "version": "2.0.2-9.patch.1", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.2-9.patch.1.tgz", + "integrity": "sha512-ddbIO15v+GmVpH7dz8Y/8OZsq68kDvh/86sSXlO9ZMXRM+05LJIRUx5MCB/36PAeWZ6d4ALCQsge3LQIk3Qmcg==" }, "@walmart/time-clock-mini-app": { "version": "2.111.3", --- package.json @@ -126,7 +126,7 @@ "@walmart/settings-mini-app": "1.19.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.40.8", - "@walmart/texting-mini-app": "2.0.29", + "@walmart/texting-mini-app": "2.0.29.patch.1", "@walmart/time-clock-mini-app": "2.111.3", "@walmart/topstock-mini-app": "1.0.13", "@walmart/ui-components": "1.15.1",
texting mini app drop 13 hot fix version update
texting mini app drop 13 hot fix version update
6dbd775fcf199b667ce5845322d400c3cf0f09b0
--- packages/allspark-foundation-hub/src/HubFeature/Hooks/useGetAllTeamsOfStore.ts @@ -8,6 +8,8 @@ import { UserSelectors } from '@walmart/allspark-foundation/User'; import { SiteSelectors } from '@walmart/allspark-foundation/Site'; import { Images } from '../Images/images'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; +import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; +import { getVersion } from 'react-native-device-info'; export const sorter = (data: TeamSwitcherTypes[]): TeamSwitcherTypes[] => { const customSort = (a: TeamSwitcherTypes, b: TeamSwitcherTypes): number => { @@ -35,6 +37,13 @@ export const useGetAllTeamsOfStore = () => { SiteSelectors.getWorkingSiteCountryCode ); const { ...rest } = useGetTeamsByStoreQuery({ + context: { + headers: { + 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, + 'x-o-platform': 'manager-experience', + 'x-o-platform-version': getVersion(), + }, + }, variables: { countryCode: countryCode as string, date: moment().format('YYYY-MM-DD'), --- packages/allspark-foundation-hub/src/HubFeature/Hooks/useUserPreferences.ts @@ -49,7 +49,7 @@ export const useUserPreferences = () => { context: { headers: { 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, - 'x-o-platform': 'allspark-core', + 'x-o-platform': 'manager-experience', 'x-o-platform-version': getVersion(), }, }, --- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/TeamSelectionList.tsx @@ -71,7 +71,7 @@ export const TeamSelectionList = ({ context: { headers: { 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, - 'x-o-platform': 'allspark-core', + 'x-o-platform': 'manager-experience', 'x-o-platform-version': getVersion(), }, }, --- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Hooks/useTeamsByStore.ts @@ -36,7 +36,7 @@ export const useTeamsByStore = () => { context: { headers: { 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, - 'x-o-platform': 'allspark-core', + 'x-o-platform': 'manager-experience', 'x-o-platform-version': getVersion(), }, }, --- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Screens/TeamSelection.tsx @@ -19,6 +19,8 @@ import { useTeamsByStore } from '../Hooks/useTeamsByStore'; import { AllsparkNavigationClient } from '@walmart/allspark-foundation/Navigation'; import { FEATURE_ID } from '../../constant'; import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; +import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; +import { getVersion } from 'react-native-device-info'; export const TeamSelection = () => { const { t } = useAllsparkTranslation(FEATURE_ID); @@ -45,6 +47,13 @@ export const TeamSelection = () => { const { data: preferenceData, loading: preferenceDataLoading } = useGetAssociatePreferencesQuery({ + context: { + headers: { + 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, + 'x-o-platform': 'manager-experience', + 'x-o-platform-version': getVersion(), + }, + }, variables: { site: Number(site), win: win as string,
feat(ui): update headers context to include x-o-platform
feat(ui): update headers context to include x-o-platform
110823b98661b3513b173dec4d9d0866a18f9b24
--- targets/US/package.json @@ -87,7 +87,7 @@ "@walmart/ask-sam-mini-app": "1.25.1", "@walmart/associate-listening-mini-app": "1.2.7", "@walmart/attendance-mini-app": "3.96.0", - "@walmart/avp-feature-app": "0.10.12", + "@walmart/avp-feature-app": "0.10.19", "@walmart/avp-shared-library": "0.10.5", "@walmart/backroom-mini-app": "1.7.5", "@walmart/calling-mini-app": "0.5.17", --- yarn.lock @@ -6323,9 +6323,9 @@ __metadata: languageName: node linkType: hard -"@walmart/avp-feature-app@npm:0.10.12": - version: 0.10.12 - resolution: "@walmart/avp-feature-app@npm:0.10.12" +"@walmart/avp-feature-app@npm:0.10.19": + version: 0.10.19 + resolution: "@walmart/avp-feature-app@npm:0.10.19" peerDependencies: "@react-navigation/native": ">=6.0.8" "@react-navigation/stack": ">=6.1.1" @@ -6334,7 +6334,7 @@ __metadata: react-native: ">=0.72.10" react-redux: ">=8.0.4" redux: ">=4.2.1" - checksum: 10c0/d46fd073fbb1414d01a5c9faea4fc918397d794881c07e6962dc891e93e937fe814d472a0038af8c7e6bf7ec13c6b32cc8c34c20ae1c02682d16df3f97792cde + checksum: 10c0/e0959ff94cf68d091bb9cce1c9a83d173402729911672419f9c844c765be8eec7cd4f9992abe5048565ce1627fabb7fcef30fa92e4b62775c866a69d0be57a86 languageName: node linkType: hard @@ -7289,7 +7289,7 @@ __metadata: "@walmart/ask-sam-mini-app": "npm:1.25.1" "@walmart/associate-listening-mini-app": "npm:1.2.7" "@walmart/attendance-mini-app": "npm:3.96.0" - "@walmart/avp-feature-app": "npm:0.10.12" + "@walmart/avp-feature-app": "npm:0.10.19" "@walmart/avp-shared-library": "npm:0.10.5" "@walmart/backroom-mini-app": "npm:1.7.5" "@walmart/calling-mini-app": "npm:0.5.17"
bumped avp
bumped avp
535580cb7d442bbf9cb554f359ad6106f6fd61a3
--- src/images/assets/index.ts @@ -16,6 +16,7 @@ const Images: {[key: string]: ImageURISource} = { InvalidTime: require('./sso-clock-error.png'), ItemInfoIllustration: require('./item-info-illustration.png'), LandingIllustration: require('./landing-illustration.png'), + LearningIllustration: require('./learning-illustration.png'), LocationIllustration: require('./location-illustration.png'), ModFlexIllustration: require('./mod-flex-illustration.png'), NoInternet: require('./no-internet.png'), --- src/images/assets/learning-illustration.png Binary files /dev/null and b/src/images/assets/learning-illustration.png differ
add learning illustration
add learning illustration
9ee60b38714cec3f42309a7ece7ebdb1b6c43940
--- package-lock.json @@ -47,7 +47,7 @@ "@walmart/exception-mini-app": "0.43.1", "@walmart/facilities-management-miniapp": "0.3.26", "@walmart/feedback-all-spark-miniapp": "0.9.0", - "@walmart/financial-wellbeing-feature-app": "1.0.29", + "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.8.17", @@ -4978,20 +4978,19 @@ } }, "node_modules/@walmart/financial-wellbeing-feature-app": { - "version": "1.0.29", - "dependencies": { - "react-native-video-player": "^0.14.0", - "react-native-vimeo-iframe": "^1.2.0" - }, + "version": "1.0.64", + "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.0.64.tgz", + "integrity": "sha512-DPOFfG35BckMb8qnhMtPcS8Tl8b+Q1WI0m/tE/MFBfHDTa454j6xBYSMimwUQA5neKiWo5NpplvW8WH5wlwP8w==", + "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", "@react-navigation/stack": "^6.1.0", "@walmart/core-services": "^1.0.3", - "@walmart/redux-store": "^1.0.12", - "react": "^17.0.2", - "react-native": "^0.67.4", - "react-native-svg": "^12.1.1", - "react-redux": "^7.2.1", + "@walmart/redux-store": "^2.0.4", + "react": "^18.2.0", + "react-native": "^0.70.4", + "react-native-svg": "^13.4.0", + "react-redux": "^8.0.4", "redux": "^4.1.2" } }, @@ -17961,20 +17960,6 @@ "shaka-player": "^2.5.9" } }, - "node_modules/react-native-video-player": { - "version": "0.14.0", - "license": "ISC", - "dependencies": { - "deprecated-react-native-prop-types": "^2.3.0" - }, - "peerDependencies": { - "prop-types": "*", - "react": "*", - "react-native": "*", - "react-native-vector-icons": ">= 2.1.0", - "react-native-video": "^2.0.0" - } - }, "node_modules/react-native-view-shot": { "version": "3.5.0", "license": "MIT", @@ -17983,15 +17968,6 @@ "react-native": "*" } }, - "node_modules/react-native-vimeo-iframe": { - "version": "1.2.0", - "license": "MIT", - "peerDependencies": { - "react": "*", - "react-native": "*", - "react-native-webview": "*" - } - }, "node_modules/react-native-vision-camera": { "version": "2.15.2", "license": "MIT", @@ -24810,11 +24786,9 @@ "version": "0.9.0" }, "@walmart/financial-wellbeing-feature-app": { - "version": "1.0.29", - "requires": { - "react-native-video-player": "^0.14.0", - "react-native-vimeo-iframe": "^1.2.0" - } + "version": "1.0.64", + "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.0.64.tgz", + "integrity": "sha512-DPOFfG35BckMb8qnhMtPcS8Tl8b+Q1WI0m/tE/MFBfHDTa454j6xBYSMimwUQA5neKiWo5NpplvW8WH5wlwP8w==" }, "@walmart/functional-components": { "version": "2.0.6" @@ -32802,18 +32776,9 @@ "shaka-player": "^2.5.9" } }, - "react-native-video-player": { - "version": "0.14.0", - "requires": { - "deprecated-react-native-prop-types": "^2.3.0" - } - }, "react-native-view-shot": { "version": "3.5.0" }, - "react-native-vimeo-iframe": { - "version": "1.2.0" - }, "react-native-vision-camera": { "version": "2.15.2" },
package-lock.json file included
package-lock.json file included
9ba4f022ede974e0769e839e284961ff1bd273e4
--- .looper-pr.yml @@ -20,7 +20,7 @@ envs: APP_NAME: myteam-miniapp STAGES_TO_RUN: LINT: true - UNITTEST: false + UNITTEST: true BUILD: true SONAR_SCAN: true ARTIFACT_PUBLISH: true
feat(ui): update looper yml
feat(ui): update looper yml
26b3abe4e377f435849ab1e004bca3aaef6d4f4c
--- README.md @@ -295,3 +295,4 @@ With each React Native release, Expo will release a corresponding SDK. Follow th - Make sure you're on the correct versions (See Prerequisites) - Make sure you've built the project from the root folder. - Make sure you've run the `certifyBootedSim.sh` script. +
feat(item-info): Update iteminfoini app version for drop34
feat(item-info): Update iteminfoini app version for drop34
30ad17316555bf0cf09ad07e483b1cd020dd88e1
--- package.json @@ -87,7 +87,7 @@ "@walmart/core-widget-registry": "0.3.2", "@walmart/counts-component-miniapp": "0.0.39", "@walmart/exception-mini-app": "0.42.4", - "@walmart/facilities-management-miniapp": "0.2.6", + "@walmart/facilities-management-miniapp": "0.2.7", "@walmart/feedback-all-spark-miniapp": "0.8.0", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15",
Update package.json
Update package.json
6139b0b40ade7e5b0bcee3338e7af4f686f206ce
--- graphql.yml @@ -6,7 +6,7 @@ notify: applications: - name: 'allspark-core' applicationKey: 'ALLSPARK_APP' - description: 'Core application for Me@Walmart' + description: 'Core application for Me@Walmart app' environments: - name: 'stg' persistedQueries:
Update graphql.yml
Update graphql.yml
db19ec937a290dd0f78cb5d36b33becc91532f10
--- targets/US/package.json @@ -90,7 +90,7 @@ "@walmart/avp-feature-app": "0.7.2", "@walmart/avp-shared-library": "0.7.3", "@walmart/backroom-mini-app": "1.2.6", - "@walmart/calling-mini-app": "0.3.5", + "@walmart/calling-mini-app": "0.5.6", "@walmart/checkout-mini-app": "3.22.0", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.4.2", --- yarn.lock @@ -6002,9 +6002,9 @@ __metadata: languageName: node linkType: hard -"@walmart/calling-mini-app@npm:0.3.5": - version: 0.3.5 - resolution: "@walmart/calling-mini-app@npm:0.3.5" +"@walmart/calling-mini-app@npm:0.5.6": + version: 0.5.6 + resolution: "@walmart/calling-mini-app@npm:0.5.6" peerDependencies: "@react-native-community/datetimepicker": ">=5" "@react-navigation/native": ">=6" @@ -6054,7 +6054,7 @@ __metadata: dependenciesMeta: "@walmart/wmconnect-mini-app": built: false - checksum: 10c0/248a84e7736701d95e26687731afcfa910622803bd12577032dd8e48cdd3c015e1c5d800af5716e974f7f8c1b91ac5b5a9af2b5d36c1289d7c5bfc7d4229bac2 + checksum: 10c0/8ce9566d1ea4d6d6139d0b3d7ad823181c1ccf3138f14fc72c373c564ab2bf7b1c8757610ff4e40023da6cac1b89b0d11a274178bca740cdffcc329f9e1c2bb8 languageName: node linkType: hard @@ -6920,7 +6920,7 @@ __metadata: "@walmart/avp-feature-app": "npm:0.7.2" "@walmart/avp-shared-library": "npm:0.7.3" "@walmart/backroom-mini-app": "npm:1.2.6" - "@walmart/calling-mini-app": "npm:0.3.5" + "@walmart/calling-mini-app": "npm:0.5.6" "@walmart/checkout-mini-app": "npm:3.22.0" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.4.2"
calling-mini-app version upgrade
calling-mini-app version upgrade
97924b3d2add5b045d5947ee39f452b5bb4d1ec5
--- package-lock.json @@ -78,7 +78,7 @@ "@walmart/schedule-mini-app": "0.26.0", "@walmart/settings-mini-app": "1.10.0", "@walmart/shelfavailability-mini-app": "1.3.2", - "@walmart/taskit-mini-app": "0.34.5-beta.9", + "@walmart/taskit-mini-app": "0.47.0", "@walmart/time-clock-mini-app": "0.30.0", "@walmart/ui-components": "1.5.0", "@walmart/welcomeme-mini-app": "0.71.0", @@ -6719,9 +6719,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "0.34.5-beta.9", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.34.5-beta.9.tgz", - "integrity": "sha512-ZJbAzD6RPdCxLTIE7vi7AsyMMrOA6IWU3LC6CrIshiIUCk3NHIHusxgBA5NgiVcgYzuXdP5hHU2iEf10eSHaKQ==", + "version": "0.47.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.47.0.tgz", + "integrity": "sha512-xjTRf4DOGQsHv2kmlRIFq7Tn/4swUujKyE/AA5WAQs3SyLZfW8QGLyVJcklbXBfRmKFULI2I5oMw+2rXJiUl4A==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -29856,9 +29856,9 @@ "integrity": "sha512-A1Pon+FypfP4s56YOn2HuxM54b4h6EJjSvuvuiWvrVAY0Bb9ee3uq2Hl9xxHe/bM4lCoNqeVxHH0zghaAEuxHg==" }, "@walmart/taskit-mini-app": { - "version": "0.34.5-beta.9", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.34.5-beta.9.tgz", - "integrity": "sha512-ZJbAzD6RPdCxLTIE7vi7AsyMMrOA6IWU3LC6CrIshiIUCk3NHIHusxgBA5NgiVcgYzuXdP5hHU2iEf10eSHaKQ==" + "version": "0.47.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.47.0.tgz", + "integrity": "sha512-xjTRf4DOGQsHv2kmlRIFq7Tn/4swUujKyE/AA5WAQs3SyLZfW8QGLyVJcklbXBfRmKFULI2I5oMw+2rXJiUl4A==" }, "@walmart/tcnumber": { "version": "2.3.2", --- package.json @@ -120,7 +120,7 @@ "@walmart/schedule-mini-app": "0.26.0", "@walmart/settings-mini-app": "1.10.0", "@walmart/shelfavailability-mini-app": "1.3.2", - "@walmart/taskit-mini-app": "0.34.5-beta.9", + "@walmart/taskit-mini-app": "0.47.0", "@walmart/time-clock-mini-app": "0.30.0", "@walmart/ui-components": "1.5.0", "@walmart/welcomeme-mini-app": "0.71.0",
Updated taskit mini app to RN70
Updated taskit mini app to RN70
ecb00170744802767408a56e63dc8ac040842879
--- packages/allspark-foundation/src/User/selectors.ts @@ -203,18 +203,29 @@ export const isTeamMember = (win?: string, teams?: Team[]) => { return teams.some((team) => team.members?.includes(strWIN)); }; -export const isTeamSupervisor = (win?: string, teams?: Team[]) => { - if (!teams || !win) { - return false; - } +export const createTeamMembershipEvaluator = + (role: string) => (win?: string, teams?: Team[]) => { + if (!teams || !win) { + return false; + } - const strWIN = win + ''; - return teams.some((team) => { - return Boolean( - team.membership?.find((m) => m?.win === strWIN && m.role === 'TL') - ); - }); -}; + const strWIN = win + ''; + return teams.some((team) => { + return Boolean( + team.membership?.find((m) => m?.win === strWIN && m.role === role) + ); + }); + }; + +export const isTeamSupervisor = createTeamMembershipEvaluator('TL'); + +export const isTeamAssociate = createTeamMembershipEvaluator('TA'); + +export const isAcademyTrainer = createTeamMembershipEvaluator('AT'); + +export const isPeopleLead = createTeamMembershipEvaluator('PEOPLE'); + +export const isSalaried = createTeamMembershipEvaluator('SALARIED'); export const getTeamsForSite = (teams?: Team[], site?: string) => { if (!teams || !site) { @@ -236,6 +247,26 @@ const UserTeamSelectors = { [UserDataSelectors.getWin, UserDataSelectors.getTeams], isTeamSupervisor ), + getIsUserTeamAssociate: createSelector( + [UserDataSelectors.getWin, UserDataSelectors.getTeams], + isTeamAssociate + ), + getIsUserAcademyTrainer: createSelector( + [UserDataSelectors.getWin, UserDataSelectors.getTeams], + isAcademyTrainer + ), + getIsUserPeopleLead: createSelector( + [UserDataSelectors.getWin, UserDataSelectors.getTeams], + isPeopleLead + ), + getIsUserTeamLead: createSelector( + [UserDataSelectors.getWin, UserDataSelectors.getTeams], + isTeamSupervisor + ), + getIsUserSalaried: createSelector( + [UserDataSelectors.getWin, UserDataSelectors.getTeams], + isSalaried + ), getTeamsForWorkingSite: createSelector( [UserDataSelectors.getTeams, UserDataSelectors.getWorkingSite], getTeamsForSite @@ -265,6 +296,41 @@ const OriginalUserTeamSelectors = { ], isTeamSupervisor ), + getOriginalUserIsTeamAssociate: createSelector( + [ + OriginalUserSelectors.getOriginalUserWin, + OriginalUserSelectors.getOriginalUserTeams, + ], + isTeamAssociate + ), + getOriginalUserIsAcademyTrainer: createSelector( + [ + OriginalUserSelectors.getOriginalUserWin, + OriginalUserSelectors.getOriginalUserTeams, + ], + isAcademyTrainer + ), + getOriginalUserIsPeopleLead: createSelector( + [ + OriginalUserSelectors.getOriginalUserWin, + OriginalUserSelectors.getOriginalUserTeams, + ], + isPeopleLead + ), + getOriginalUserIsTeamLead: createSelector( + [ + OriginalUserSelectors.getOriginalUserWin, + OriginalUserSelectors.getOriginalUserTeams, + ], + isTeamSupervisor + ), + getOriginalUserIsSalaried: createSelector( + [ + OriginalUserSelectors.getOriginalUserWin, + OriginalUserSelectors.getOriginalUserTeams, + ], + isSalaried + ), getOriginalUserTeamsForWorkingSite: createSelector( [ OriginalUserSelectors.getOriginalUserTeams,
feat: add role selectors for new role types
feat: add role selectors for new role types
77b6391b2c09dc3cd2ea85d8ea50f1ca57bc8098
--- packages/allspark-foundation/package.json @@ -102,7 +102,6 @@ "graphql-tag": "*", "react": "^18.2.0", "react-native": "~0.73.7", - "react-native-apollo-devtools-client": "^1.0.4", "react-native-device-info": "~10.13.1", "react-native-drop-shadow": "^1.0.0", "react-native-gesture-handler": "^2.13.3", @@ -135,7 +134,6 @@ "@walmart/redux-store": ">=6.3", "react": "*", "react-native": "*", - "react-native-flipper": "*", "react-native-gesture-handler": "2.x", "react-native-permissions": "3.x", "react-native-reanimated": "3.x",
fix(dependencies): remove flipper specific peer dependencies
fix(dependencies): remove flipper specific peer dependencies
641e953b817559d919fef581969d7a5ad99058bb
--- src/screens/SearchScreen.tsx @@ -1,4 +1,4 @@ -import React, {useCallback, useEffect, useMemo} from 'react'; +import React, {useCallback, useEffect, useMemo, useState} from 'react'; import {StyleSheet, View} from 'react-native'; import {isNil} from 'lodash'; import {FlashList, ListRenderItem} from '@shopify/flash-list';
Update wmconnect version
Update wmconnect version
323426caea722a2c9f49c29321081e8a1b77a8e2
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 13 + versionCode 14 versionName "1.0.1" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>13</string> + <string>14</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>13</string> + <string>14</string> </dict> </plist>
Incrementing build number
Incrementing build number
440e6ab31e8ea75a0ee977eb72ebe3605ffbe474
--- packages/components-library/__mocks__/assets/light-bulb.js @@ -0,0 +1,3 @@ +module.exports = { + testUri: '../../../assets/light-bulb.png', +}; \ No newline at end of file --- packages/components-library/__mocks__/assets/sidekick-logo.js @@ -0,0 +1,3 @@ +module.exports = { + testUri: '../../../assets/sidekick-logo.png', +}; \ No newline at end of file --- packages/components-library/jest.config.js @@ -9,6 +9,8 @@ module.exports = { moduleNameMapper: { '\\.ttf$': '<rootDir>/__mocks__/assets/ttf.js', '^@expo/vector-icons/createIconSetFromIcoMoon$': '<rootDir>/__mocks__/@expo/vector-icons/createIconSetFromIcoMoon.js', + '.*sidekick-logo\\.png$': '<rootDir>/__mocks__/assets/sidekick-logo.js', + '.*light-bulb\\.png$': '<rootDir>/__mocks__/assets/light-bulb.js', }, testEnvironment: 'node', moduleDirectories: ['node_modules', '__mocks__'],
test: mocking assets for tests
test: mocking assets for tests
1518560c8026a733af9b615c51518e388270c575
--- __tests__/updates/__snapshots__/UpdateCheckViewTest.tsx.snap @@ -39,7 +39,7 @@ exports[`UpdateVersionModal calls onDownloadPress with correct url 1`] = ` resizeMode="contain" source={ Object { - "testUri": "../../../src/images/assets/downloadBeta.png", + "testUri": "../../../src/images/assets/force-update.png", } } style={ @@ -170,7 +170,7 @@ exports[`UpdateVersionModal dispatches expected actions on close button press 1` resizeMode="contain" source={ Object { - "testUri": "../../../src/images/assets/downloadBeta.png", + "testUri": "../../../src/images/assets/force-update.png", } } style={ @@ -301,7 +301,7 @@ exports[`UpdateVersionModal handles undefined updateInfo and hidden modal 1`] = resizeMode="contain" source={ Object { - "testUri": "../../../src/images/assets/downloadBeta.png", + "testUri": "../../../src/images/assets/force-update.png", } } style={ @@ -419,7 +419,7 @@ exports[`UpdateVersionModal matches snapshot 1`] = ` resizeMode="contain" source={ Object { - "testUri": "../../../src/images/assets/downloadBeta.png", + "testUri": "../../../src/images/assets/force-update.png", } } style={ @@ -550,7 +550,7 @@ exports[`UpdateVersionModal matches snapshot when update is forced 1`] = ` resizeMode="contain" source={ Object { - "testUri": "../../../src/images/assets/downloadBeta.png", + "testUri": "../../../src/images/assets/force-update.png", } } style={ --- ios/Podfile.lock @@ -332,7 +332,7 @@ PODS: - React - react-native-get-random-values (1.5.1): - React-Core - - react-native-logger (1.25.0): + - react-native-logger (1.26.0): - React - react-native-netinfo (5.9.7): - React-Core @@ -804,7 +804,7 @@ SPEC CHECKSUMS: react-native-encrypted-storage: 837c733334debf626204f03d867c7e01d8741e2f react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a react-native-get-random-values: 41f0c91ac0da870e47b307e07752e9e54bc2dc7e - react-native-logger: 6d1a4098b9b035278c3691760a45be8ce56acd2e + react-native-logger: 6822d3bbc4e89f0f0f24fb0737a75eb80af89856 react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f react-native-ptt-module: 65c70129b84f1a1d8a9e12bfb6b4ff74f27361a4 --- src/images/assets/force-update.png Binary files /dev/null and b/src/images/assets/force-update.png differ --- src/images/assets/force-update@2x.png Binary files /dev/null and b/src/images/assets/force-update@2x.png differ --- src/images/assets/force-update@3x.png Binary files /dev/null and b/src/images/assets/force-update@3x.png differ --- src/images/assets/index.ts @@ -10,6 +10,7 @@ const Images: {[key: string]: ImageURISource} = { Close: require('./close-icon.png'), DownloadBeta: require('./downloadBeta.png'), FaceID: require('./face-id.png'), + ForceUpdate: require('./force-update.png'), FullAppIcon: require('./full-app-icon.png'), GuestIllustration: require('./guest-illustration.png'), HomeTab: require('./home-tab.png'), --- src/updates/UpdateVersionView.tsx @@ -36,6 +36,8 @@ export const UpdateVersionModal = () => { const releaseButtonText = updateInfo?.releaseNotes?.button?.[i18n.language] || translate('updates.updateNow'); + const descriptionText = + updateInfo?.releaseNotes?.description?.[i18n.language] || ''; const onPressClose = () => { dispatch(UpdateCheckActionCreators.setPrompt(false)); dispatch(UpdateCheckActionCreators.checkForUpdatesComplete()); @@ -55,7 +57,7 @@ export const UpdateVersionModal = () => { <View style={styles.sheet}> <Image style={styles.betaImage} - source={Images.DownloadBeta} + source={Images.ForceUpdate} resizeMode='contain' /> {!updateInfo?.forceUpdate && ( @@ -67,6 +69,9 @@ export const UpdateVersionModal = () => { </TouchableOpacity> )} <Text style={styles.title}>{releaseTitleText}</Text> + {!!descriptionText && ( + <Text style={styles.releaseDescription}>{descriptionText}</Text> + )} {releaseNotes.map(renderReleaseNote)} <View style={styles.downloadView}> <PrimaryButton --- src/updates/UpdateVersionViewStyle.ts @@ -55,4 +55,12 @@ export default StyleSheet.create({ color: colors.gray['140'], marginHorizontal: 16, }, + releaseDescription: { + fontSize: 14, + lineHeight: 20, + fontFamily: 'Bogle-Regular', + color: colors.gray['160'], + marginHorizontal: 16, + marginBottom: 8, + }, });
merge from hotfix
merge from hotfix
190c1c753d340a7337e0f5bd4aeda318bc9d00df
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/EditSavedTeamSection.tsx @@ -6,7 +6,7 @@ import { } from '../../../Shared'; import { allTeamsListEnabled, teamSearchInputEnabled } from '../.././Redux'; import { useSelector } from 'react-redux'; -import { SectionList, View } from 'react-native'; +import { SectionList, Text, View } from 'react-native'; import { Body, Heading } from '@walmart/gtp-shared-components'; import { EditSavedTeamSectionProps } from './types'; import { editSavedTeamModalStyles as styles } from './styles'; @@ -28,9 +28,7 @@ export const EditSavedTeamSection: React.FC<EditSavedTeamSectionProps> = ({ const { t } = useAllsparkTranslation(FEATURE_ID); const showAllTeamsList = useSelector(allTeamsListEnabled); const showSearchInput = useSelector(teamSearchInputEnabled); - const Image = useAllsparkImage(); - - const { placeholder, uri } = OnboardingImages.teamOnboarding_no_results_found; + const TeamImage = useAllsparkImage(); if (loading) { return <EditSavedTeamsSectionLoading />; @@ -79,14 +77,28 @@ export const EditSavedTeamSection: React.FC<EditSavedTeamSectionProps> = ({ )} ListEmptyComponent={ <View style={styles.emptyStateContainer}> - <Body UNSAFE_style={styles.emptyStateText}> - <Image - testID='no-teams-found-image' - source={{ uri }} - placeholder={placeholder} + <View style={styles.emptyStateSection}> + <TeamImage + source={{ + uri: OnboardingImages.teamOnboarding_no_results_found.uri, + }} + placeholder={ + OnboardingImages.teamOnboarding_no_results_found.placeholder + } + style={styles.teamImage} + resizeMode='contain' /> - {t('editSavedTeamsModal.noTeamsFound')} - </Body> + </View> + <View style={styles.emptyStateSection}> + <Text style={styles.emptyStateTitle}> + {t('noTeamsFound.title')} + </Text> + </View> + <View style={styles.emptyStateSection}> + <Text style={styles.emptyStateSubtitle}> + {t('noTeamsFound.subtitle')} + </Text> + </View> </View> } ListFooterComponent={<View style={styles.footerContainer} />} --- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/styles.ts @@ -29,13 +29,27 @@ export const editSavedTeamModalStyles = StyleSheet.create({ paddingTop: 16, }, emptyStateContainer: { - flex: 1, - alignItems: 'center', + marginVertical: 24, + }, + emptyStateSection: { + marginVertical: 8, + display: 'flex', justifyContent: 'center', - padding: 24, + alignItems: 'center', }, - emptyStateText: { - textAlign: 'center', + emptyStateTitle: { + fontWeight: '600', + fontSize: 18, + fontFamily: 'Bogle-Bold', + }, + emptyStateSubtitle: { + fontWeight: '400', + fontSize: 14, + fontFamily: 'Bogle', + }, + teamImage: { + height: 162, + width: 162, }, }); --- packages/allspark-foundation-hub/src/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -71,6 +71,15 @@ export const OnboardingScreen = () => { const scrollViewRef = useRef<ScrollView>(null); + useEffect(() => { + if (!sections?.length) { + setSearchedsections( + Array.isArray(allSiteTeamsSections) ? allSiteTeamsSections : [] + ); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [allSiteTeamsSections]); + const showHubHeader = useSelector(scHubHeaderEnabled); const division = useSelector(SiteSelectors.getWorkingSiteDivision); const siteNumber = useSelector(SiteSelectors.getWorkingSiteSiteId); @@ -78,10 +87,10 @@ export const OnboardingScreen = () => { const handleSearchInput = useCallback( (input: string) => { const searched = filterTeamsBySearchInput(allSiteTeamsSections, input); - if (input === '') { - setSearchedsections(allSiteTeamsSections); - } else { + if (searched) { setSearchedsections(searched); + } else { + setSearchedsections(allSiteTeamsSections); } }, [allSiteTeamsSections] --- packages/allspark-foundation-hub/src/SupplyChain/translation.ts @@ -22,7 +22,6 @@ export const enUS = { editSavedTeamsModal: { title: 'Edit my saved teams', subTitle: "Tap the star to save teams you're interested in.", - noTeamsFound: 'No teams found', }, footerButtons: { saveButton: 'Save', @@ -107,6 +106,10 @@ export const enUS = { WorkTabs: 'Work', }, }, + noTeamsFound: { + title: 'No teams found', + subtitle: 'There are no results matching your search.', + }, }; export const esMX: typeof enUS = { @@ -133,7 +136,6 @@ export const esMX: typeof enUS = { editSavedTeamsModal: { title: 'Editar mis equipos guardados', subTitle: 'Toca la estrella para guardar los equipos que te interesan.', - noTeamsFound: 'No se encontraron equipos', }, footerButtons: { saveButton: 'Salvar', @@ -219,4 +221,8 @@ export const esMX: typeof enUS = { WorkTabs: 'Trabajo', }, }, + noTeamsFound: { + title: 'No se encontraron equipos', + subtitle: 'No hay resultados que coincidan con su búsqueda.', + }, };
fix(bug): add No teams found image
fix(bug): add No teams found image
6ff9aab65bb4873665fb3ac32b2c6cd2949ebcd2
--- package-lock.json @@ -9195,29 +9195,6 @@ "wifi-store-locator": "^1.0.0-alpha2" } }, - "node_modules/@walmart/manager-approvals-miniapp": { - "version": "0.2.4", - "hasInstallScript": true, - "peerDependencies": { - "@react-navigation/native": "^6.0.0", - "@react-navigation/stack": "^6.1.0", - "@walmart/core-services-allspark": "~1.10.11", - "@walmart/core-utils": "~1.3.0", - "@walmart/gtp-shared-components": "2.0.2", - "@walmart/react-native-logger": "1.31.0-rc.1", - "@walmart/react-native-shared-navigation": "1.0.2", - "i18next": "^22.0.1", - "jwt-decode": "^3.1.2", - "react": "^18.2.0", - "react-i18next": "^12.0.0", - "react-native": "0.70.5", - "react-native-app-auth": "^6.4.3", - "react-native-device-info": "^10.3.0", - "react-native-wm-telemetry": "0.3.0", - "react-redux": "^8.0.4", - "reselect": "^4.1.0" - } - }, "node_modules/@walmart/me-at-homeoffice-ui-components": { "version": "1.2.140", "resolved": "https://npme.walmart.com/@walmart/me-at-homeoffice-ui-components/-/me-at-homeoffice-ui-components-1.2.140.tgz", @@ -9238,15 +9215,6 @@ "react-native-webview": "^11.23.1" } }, - "node_modules/@walmart/me-at-walmart-athena-queries": { - "version": "1.7.3", - "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.7.3.tgz", - "integrity": "sha512-3ioO6FPcVDOxb609WaxlpeaOn4ojiV/htuzzTPKM5ygQb0R58LwdpypVj0oAx7OVHiKidERYWN/952+YGXlqtg==", - "license": "ISC", - "dependencies": { - "@walmart/allspark-graphql-client": "^1.4.12" - } - }, "node_modules/@walmart/metrics-mini-app": { "version": "0.17.9", "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.9.tgz",
Removed extra blocks from package.json
Removed extra blocks from package.json
aac907f2264e26b764e813e53f7bfacf19b37004
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/EditSavedTeams/EditSavedTeams.tsx @@ -90,9 +90,9 @@ const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => { ListHeaderComponent={() => ( <PillTeamListItem isSelected - teamId={Images['Saved'].teamName} - teamImage={Images['Saved']} - teamName={Images['Saved'].teamName} + teamId={Images.Saved.teamName} + teamImage={Images.Saved} + teamName={Images.Saved.teamName} onSelect={() => {}} /> )}
Adding team state to update team shift modal
Adding team state to update team shift modal
09e3cb74d8ef20506d47ea30a873033176f9c5b0
--- .yarn/patches/react-error-boundary-npm-6.0.0-fd31a206a6.patch @@ -0,0 +1,12 @@ +diff --git a/package.json b/package.json +index 86b5c1fdc42035f34c4d61758d4ab453f1d4c6b2..d6a96f7a73bf73d6bb8983e95e3267afe98c60cb 100644 +--- a/package.json ++++ b/package.json +@@ -2,6 +2,7 @@ + "name": "react-error-boundary", + "version": "6.0.0", + "type": "module", ++ "main": "./dist/react-error-boundary.js", + "description": "Simple reusable React error boundary component", + "author": "Brian Vaughn <brian.david.vaughn@gmail.com>", + "license": "MIT", --- metro.config.js @@ -40,7 +40,7 @@ module.exports = (() => { path.resolve(projectRoot, 'node_modules'), path.resolve(monorepoRoot, 'node_modules'), ], - unstable_enablePackageExports: true + unstable_enablePackageExports: false }; return wrapWithAudioAPIMetroConfig(config); --- package.json @@ -472,7 +472,8 @@ "uuid": "^3.3.2", "wfm-allspark-data-library": "^7.0.0", "pretty-format/react-is": "19.0.0", - "react-server-dom-webpack": "~19.0.1" + "react-server-dom-webpack": "~19.0.1", + "react-error-boundary@npm:^6.0.0": "patch:react-error-boundary@npm%3A6.0.0#~/.yarn/patches/react-error-boundary-npm-6.0.0-fd31a206a6.patch" }, "config": { "commitizen": { --- yarn.lock @@ -19752,7 +19752,7 @@ __metadata: languageName: node linkType: hard -"react-error-boundary@npm:^6.0.0": +"react-error-boundary@npm:6.0.0": version: 6.0.0 resolution: "react-error-boundary@npm:6.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-error-boundary%2F-%2Freact-error-boundary-6.0.0.tgz" dependencies: @@ -19763,6 +19763,17 @@ __metadata: languageName: node linkType: hard +"react-error-boundary@patch:react-error-boundary@npm%3A6.0.0#~/.yarn/patches/react-error-boundary-npm-6.0.0-fd31a206a6.patch": + version: 6.0.0 + resolution: "react-error-boundary@patch:react-error-boundary@npm%3A6.0.0%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Freact-error-boundary%252F-%252Freact-error-boundary-6.0.0.tgz#~/.yarn/patches/react-error-boundary-npm-6.0.0-fd31a206a6.patch::version=6.0.0&hash=88ff76" + dependencies: + "@babel/runtime": "npm:^7.12.5" + peerDependencies: + react: ">=16.13.1" + checksum: 10c0/544f28f396f0ad1d56e82b6888d1e580ec64d04b9de67c38fa6f840e6682e36256cdd1b78d37b4043df829d77f549e5db9c8c1dbfe54d22552204f7e18741fcf + languageName: node + linkType: hard + "react-fast-compare@npm:^3.2.0": version: 3.2.2 resolution: "react-fast-compare@npm:3.2.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-fast-compare%2F-%2Freact-fast-compare-3.2.2.tgz"
fix(core): disable export aliases (#5239)
fix(core): disable export aliases (#5239) Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com>
4aa63cda9eb503f897ec56f093c5f786c775819b
--- __tests__/core/notificationInitTest.ts @@ -9,7 +9,7 @@ import { getToken, clearNotificationBadge, } from '../../src/core/notificationInit'; -import {USER_CHANGED_ACTIONS, getOriginalUserData} from '../../src/redux'; +import {USER_CHANGED_ACTIONS, getUser} from '../../src/redux'; import type {GlobalState, User} from '@walmart/redux-store'; import {SumoActionCreators} from '../../src/redux/SumoRedux'; import { @@ -81,7 +81,7 @@ describe('onUserChanged', () => { const iterator = onUserChanged(); expect(iterator.next().value).toEqual(select(getNotificationGranted)); expect(iterator.next(true).value).toEqual(call(onInit)); - expect(iterator.next().value).toEqual(select(getOriginalUserData)); + expect(iterator.next().value).toEqual(select(getUser)); expect(iterator.next(null).done).toEqual(true); }); @@ -95,7 +95,7 @@ describe('onUserChanged', () => { }; const iterator = onUserChanged(); expect(iterator.next().value).toEqual(select(getNotificationGranted)); - expect(iterator.next(true).value).toEqual(select(getOriginalUserData)); + expect(iterator.next(true).value).toEqual(select(getUser)); expect(iterator.next(user).value).toEqual( put(SumoActionCreators.profileStarted()), ); @@ -124,7 +124,7 @@ describe('onUserChanged', () => { }; const iterator = onUserChanged(); expect(iterator.next().value).toEqual(select(getNotificationGranted)); - expect(iterator.next(true).value).toEqual(select(getOriginalUserData)); + expect(iterator.next(true).value).toEqual(select(getUser)); expect(iterator.next(user).value).toEqual( put(SumoActionCreators.profileStarted()), ); @@ -157,7 +157,7 @@ describe('onUserChanged', () => { const iterator = onUserChanged(); expect(iterator.next().value).toEqual(select(getNotificationGranted)); - expect(iterator.next(true).value).toEqual(select(getOriginalUserData)); + expect(iterator.next(true).value).toEqual(select(getUser)); expect(iterator.next(user).done).toBe(true); }); --- __tests__/core/storeConfigInitTest.ts @@ -1,7 +1,7 @@ import {takeLatest, all, call, select} from 'redux-saga/effects'; import {onUserChanged, storeSagas} from '../../src/core/storeConfigInit'; -import {getOriginalUserData, USER_CHANGED_ACTIONS} from '../../src/redux'; +import {getUser, USER_CHANGED_ACTIONS} from '../../src/redux'; jest.mock('@walmart/config-components', () => ({ StoreConfig: { @@ -75,14 +75,14 @@ describe('onUserChanged', () => { it('handles no site id', () => { user.siteId = 'junk'; const iterator = onUserChanged(); - expect(iterator.next().value).toEqual(select(getOriginalUserData)); + expect(iterator.next().value).toEqual(select(getUser)); expect(iterator.next(user).done).toBe(true); }); it('handles success', () => { user.siteId = '100'; const iterator = onUserChanged(); - expect(iterator.next().value).toEqual(select(getOriginalUserData)); + expect(iterator.next().value).toEqual(select(getUser)); expect(iterator.next(user).value).toEqual( call(storeConfigActions.storeConfigProgress), ); @@ -97,7 +97,7 @@ describe('onUserChanged', () => { user.siteId = '4'; user.siteId = '100'; const iterator = onUserChanged(); - expect(iterator.next().value).toEqual(select(getOriginalUserData)); + expect(iterator.next().value).toEqual(select(getUser)); expect(iterator.next(user).value).toEqual( call(storeConfigActions.storeConfigProgress), ); --- __tests__/redux/UserSelectorTest.ts @@ -1,5 +1,6 @@ import { getOriginalUserData, + getUser, State, getUserState, getIsImpersonated, @@ -34,6 +35,21 @@ describe('getOriginalUserData', () => { }); }); +describe('getUser', () => { + it('returns user from state', () => { + const state = { + user: { + data: { + userId: 'testUser', + }, + }, + }; + + const result = getUser(state as State); + expect(result).toEqual(state.user.data); + }); +}); + describe('getUserState', () => { it('returns expected result', () => { const data = {userId: 'swalton3'}; --- src/core/notificationInit.ts @@ -4,11 +4,7 @@ import WmNotification, {SumoEventTypes} from 'react-native-wm-notification'; import Config from '../../env'; import {AppState} from 'react-native'; import {DefaultLogger} from '@walmart/react-native-logger'; -import { - createRestartableSagas, - getOriginalUserData, - USER_CHANGED_ACTIONS, -} from '../redux'; +import {createRestartableSagas, getUser, USER_CHANGED_ACTIONS} from '../redux'; import { getNotificationGranted, PermissionTypes, @@ -61,7 +57,7 @@ export function* onUserChanged() { optionsSet = true; } - const user = yield select(getOriginalUserData); + const user = yield select(getUser); const {siteId, userId, domain, countryCode} = user || {}; const isSiteIdSet = siteId && siteId !== 'NOT_FOUND'; --- src/core/storeConfigInit.ts @@ -2,11 +2,7 @@ import {takeLatest, all, call, select} from 'redux-saga/effects'; import {StoreConfig} from '@walmart/config-components'; import {addSagas, Site, storeConfigActions} from '@walmart/redux-store'; import env from '../../env'; -import { - createRestartableSagas, - getOriginalUserData, - USER_CHANGED_ACTIONS, -} from '../redux'; +import {createRestartableSagas, getUser, USER_CHANGED_ACTIONS} from '../redux'; StoreConfig.initialize({ baseURL: `${env.externalBffUrl}${env.bffService}`, @@ -17,7 +13,7 @@ StoreConfig.initialize({ }); export function* onUserChanged() { - const user = yield select(getOriginalUserData); + const user = yield select(getUser); if (user && user.siteId && parseInt(user.siteId, 10)) { yield call(storeConfigActions.storeConfigProgress); try { --- src/redux/UserSelector.ts @@ -6,6 +6,8 @@ export interface State extends GlobalState, ImpersonationState {} export const getOriginalUserData = (state: State) => state.user.impersonated ? state.impersonation.impersonator : state.user.data; +export const getUser = (state: State) => state.user.data; + export const getUserState = (state: GlobalState) => state.user; export const getIsImpersonated = (state: GlobalState) =>
add selector for user; use impersonated user when init'ing sumo and store config (#324)
add selector for user; use impersonated user when init'ing sumo and store config (#324)
1a27fc69a9519572df91022b8ce498dcd16fbeee
--- package-lock.json @@ -52,7 +52,7 @@ "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.5.1", "@walmart/facilities-management-miniapp": "0.6.67", - "@walmart/feedback-all-spark-miniapp": "0.9.42", + "@walmart/feedback-all-spark-miniapp": "0.9.43", "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", @@ -7277,9 +7277,9 @@ } }, "node_modules/@walmart/feedback-all-spark-miniapp": { - "version": "0.9.42", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.42.tgz", - "integrity": "sha512-gBf6oiJbBV/aL7ndG9cudz7gk0udpcSjw6Dku2ralmoGnwQ1ozMW/hWz3YzgsOL5yJ+lv1nG4/6JukzO7TjLzw==", + "version": "0.9.43", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.43.tgz", + "integrity": "sha512-6/R50+Ga6eY7nIqreH8m7KmNEXPz1kQ8DO6/l8J6aGHvTuLRZeFHAH8h3ZsvuWip8/0xUqwd4nyRsd/aeA/g5A==", "peerDependencies": { "@react-native-async-storage/async-storage": "^1.19.0", "@react-native-community/datetimepicker": "^6.1.3", @@ -30483,9 +30483,9 @@ "integrity": "sha512-vAn11SgL6thiZdZLdAe1EvJ+gYGSDJa2HBrLPXlTFQgUHtf2+fnnj4SG9bX8mg9/Ax3Hg7IQaiKle3GsdgN2ww==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.9.42", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.42.tgz", - "integrity": "sha512-gBf6oiJbBV/aL7ndG9cudz7gk0udpcSjw6Dku2ralmoGnwQ1ozMW/hWz3YzgsOL5yJ+lv1nG4/6JukzO7TjLzw==" + "version": "0.9.43", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.43.tgz", + "integrity": "sha512-6/R50+Ga6eY7nIqreH8m7KmNEXPz1kQ8DO6/l8J6aGHvTuLRZeFHAH8h3ZsvuWip8/0xUqwd4nyRsd/aeA/g5A==" }, "@walmart/financial-wellbeing-feature-app": { "version": "1.10.4", --- package.json @@ -93,7 +93,7 @@ "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.5.1", "@walmart/facilities-management-miniapp": "0.6.67", - "@walmart/feedback-all-spark-miniapp": "0.9.42", + "@walmart/feedback-all-spark-miniapp": "0.9.43", "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16",
feedback mini version bump
feedback mini version bump
6918e354c001ef8874b7b447b5e4dd64ea2f493f
--- package-lock.json @@ -171,7 +171,7 @@ "react-native-view-shot": "^3.4.0", "react-native-vision-camera": "3.7.1", "react-native-webview": "^11.23.1", - "react-native-wm-app-review": "0.5.1", + "react-native-wm-app-review": "0.5.2", "react-native-wm-config": "0.1.1", "react-native-wm-network": "0.2.0", "react-native-wm-notification": "2.0.1", @@ -23847,9 +23847,9 @@ } }, "node_modules/react-native-wm-app-review": { - "version": "0.5.1", - "resolved": "https://npme.walmart.com/react-native-wm-app-review/-/react-native-wm-app-review-0.5.1.tgz", - "integrity": "sha512-dfphfqjW48Rtpo1Z80nS6+djaloOlnmLfVhyIo6H+7nTeWdVscb5DOs/E1Y6h2UhZnCT7BhgjMTKW3ZPetY/ug==", + "version": "0.5.2", + "resolved": "https://npme.walmart.com/react-native-wm-app-review/-/react-native-wm-app-review-0.5.2.tgz", + "integrity": "sha512-a6p3ywuAiMFujcv5MVjEefx1xw5oRYmdKXXiSnk51ixjm+FRSlINrtiTm856yP6RIF98WknXHmZGIGQ4tvIhPg==", "license": "MIT", "peerDependencies": { "@testing-library/react-hooks": "^5.0.3", @@ -42525,9 +42525,9 @@ } }, "react-native-wm-app-review": { - "version": "0.5.1", - "resolved": "https://npme.walmart.com/react-native-wm-app-review/-/react-native-wm-app-review-0.5.1.tgz", - "integrity": "sha512-dfphfqjW48Rtpo1Z80nS6+djaloOlnmLfVhyIo6H+7nTeWdVscb5DOs/E1Y6h2UhZnCT7BhgjMTKW3ZPetY/ug==" + "version": "0.5.2", + "resolved": "https://npme.walmart.com/react-native-wm-app-review/-/react-native-wm-app-review-0.5.2.tgz", + "integrity": "sha512-a6p3ywuAiMFujcv5MVjEefx1xw5oRYmdKXXiSnk51ixjm+FRSlINrtiTm856yP6RIF98WknXHmZGIGQ4tvIhPg==" }, "react-native-wm-config": { "version": "0.1.1" --- package.json @@ -212,7 +212,7 @@ "react-native-view-shot": "^3.4.0", "react-native-vision-camera": "3.7.1", "react-native-webview": "^11.23.1", - "react-native-wm-app-review": "0.5.1", + "react-native-wm-app-review": "0.5.2", "react-native-wm-config": "0.1.1", "react-native-wm-network": "0.2.0", "react-native-wm-notification": "2.0.1",
app review version updated
app review version updated
d478711f553620febb9e9db872818d17f6d34ab0
--- targets/US/package.json @@ -150,7 +150,7 @@ "@walmart/taskit-mini-app": "4.25.8", "@walmart/time-clock-mini-app": "2.419.0", "@walmart/topstock-mini-app": "1.17.11", - "@walmart/translator-mini-app": "1.0.2", + "@walmart/translator-mini-app": "1.0.3", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.96.0", --- yarn.lock @@ -7066,7 +7066,7 @@ __metadata: "@walmart/taskit-mini-app": "npm:4.25.8" "@walmart/time-clock-mini-app": "npm:2.419.0" "@walmart/topstock-mini-app": "npm:1.17.11" - "@walmart/translator-mini-app": "npm:1.0.2" + "@walmart/translator-mini-app": "npm:1.0.3" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.96.0" @@ -8090,9 +8090,9 @@ __metadata: languageName: node linkType: hard -"@walmart/translator-mini-app@npm:1.0.2": - version: 1.0.2 - resolution: "@walmart/translator-mini-app@npm:1.0.2" +"@walmart/translator-mini-app@npm:1.0.3": + version: 1.0.3 + resolution: "@walmart/translator-mini-app@npm:1.0.3" peerDependencies: "@react-native-async-storage/async-storage": ^2.0.0 "@react-native-clipboard/clipboard": ^1.14.2 @@ -8109,7 +8109,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/16594aae0fca3692f67f05510af39045fa449d6e5cbd8d3a8d5f8106adb899bfb282c8812f85364bb4df4f6746a411350b284641cbe08181a921bcdedb84a715 + checksum: 10c0/efb3bace6fb72781560c7390e46793b60d9cb3c980966390b9f6099ca2a90eb6dc8da49a8f24efcddfcd53565ceff13ff5d57fc413b6696a308cec620cc94362 languageName: node linkType: hard
version bump
version bump
1a299c77c22a4cb93e286325ac4b1f324d1565eb
--- __tests__/services/configTest.ts @@ -30,7 +30,7 @@ describe('getGraphQLConfig', () => { headers: { 'wm_consumer.id': '7d935f1c-b438-4b89-9324-83a5380acf75', 'x-o-platform': 'roster-miniapp', - 'x-o-platform-version': '1.2.0', + 'x-o-platform-version': '1.2.3', }, }; @@ -46,7 +46,7 @@ describe('getGraphQLConfig', () => { headers: { 'wm_consumer.id': '1bfc1d19-903b-438b-be7e-b0733aade46b', 'x-o-platform': 'roster-miniapp', - 'x-o-platform-version': '1.2.0', + 'x-o-platform-version': '1.2.3', }, }; @@ -60,7 +60,7 @@ describe('getGraphQLConfig', () => { headers: { 'wm_consumer.id': '1bfc1d19-903b-438b-be7e-b0733aade46b', 'x-o-platform': 'roster-miniapp', - 'x-o-platform-version': '1.2.0', + 'x-o-platform-version': '1.2.3', }, }; @@ -75,7 +75,7 @@ describe('getGraphQLConfig', () => { headers: { 'wm_consumer.id': '1bfc1d19-903b-438b-be7e-b0733aade46b', 'x-o-platform': 'roster-miniapp', - 'x-o-platform-version': '1.2.0', + 'x-o-platform-version': '1.2.3', }, };
Fixing looper issue
Fixing looper issue
f55e663743fa23f60d95ff2b50298d16c04a7778
--- android/app/build.gradle @@ -131,7 +131,7 @@ android { } lintOptions { checkReleaseBuilds false - //NOTE:This is temporary to unblock builds. Remove this line before merge. + //NOTE:This needs to addressed probably from SSO side. Adding this for future ref. abortOnError false } --- android/app/src/main/AndroidManifest.xml @@ -29,7 +29,8 @@ android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme" - tools:replace="android:allowBackup"> + tools:replace="android:allowBackup" + android:extractNativeLibs="true"> <!-- disables automatic screen tracking --> <meta-data --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.1.0-alpha", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.1.0-alpha", + "version": "1.1.0", "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",
Updated lint comment and added extract attribute in manifest
Updated lint comment and added extract attribute in manifest
c6d2978da91f4227bb0523699582ca36a4a880e7
--- packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.graphql @@ -1,4 +1,4 @@ -query GetForYouHeaderAssociateDetails( +query getForYouHeaderAssociateDetails( $userId: String!, $idType: idType = USERID, $startDate: String!, --- packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.ts @@ -66,7 +66,7 @@ export type GetForYouHeaderAssociateDetailsQuery = { }; export const GetForYouHeaderAssociateDetailsDocument = gql` - query GetForYouHeaderAssociateDetails( + query getForYouHeaderAssociateDetails( $userId: String! $idType: idType = USERID $startDate: String! --- packages/me-at-walmart-athena-queries/src/schema.graphql @@ -7733,7 +7733,7 @@ type Query { getAssociateById(id: String!, idType: idType = WIN): Associate getAssociateByIds(associateIds: [String!]!): [WorkdayAssociate]! getAssociateByWinAndSSN(id: String!, ssn: String!): ProfileDetails - GetForYouHeaderAssociateDetails(id: String!, idType: idType = USERID, startDate: String!, endDate: String!, businessUnitNumber: Int!, country: String!): Associate + getForYouHeaderAssociateDetails(id: String!, idType: idType = USERID, startDate: String!, endDate: String!, businessUnitNumber: Int!, country: String!): Associate getAssociateFilters(associateFilterInput: GetAssociateFiltersInput): GetAssociateFiltersResponse! getAssociateProfilePic(associateId: String!, size: ProfilePictureSize): ProfilePicture getAssociateTimeOffRequests(input: TimeOffRequestListInput): [TimeOffRequestDetail] --- packages/me-at-walmart-athena-queries/src/schema.types.ts @@ -7014,7 +7014,7 @@ export type Query = { getAssociateById?: Maybe<Associate>; getAssociateByIds: Array<Maybe<WorkdayAssociate>>; getAssociateByWinAndSSN?: Maybe<ProfileDetails>; - GetForYouHeaderAssociateDetails?: Maybe<Associate>; + getForYouHeaderAssociateDetails?: Maybe<Associate>; getAssociateFilters: GetAssociateFiltersResponse; getAssociateProfilePic?: Maybe<ProfilePicture>; getAssociateTimeOffRequests?: Maybe<Array<Maybe<TimeOffRequestDetail>>>; @@ -7204,8 +7204,8 @@ export type QueryGetForYouHeaderAssociateDetailsArgs = { idType?: InputMaybe<IdType>; startDate: Scalars['Date']['input']; endDate: Scalars['Date']['input']; - businessUnitNumber: InputMaybe<Scalars['Int']['input']>; - country: InputMaybe<Scalars['String']['input']>; + businessUnitNumber: Scalars['Int']['input']; + country: Scalars['String']['input']; }; export type QueryGetAssociateByWinAndSsnArgs = {
fix(graphql): query name
fix(graphql): query name
c7425030f374855b28496a486d43455b66f0fd10
--- src/features/fabDemo/FABDemoScreen.tsx @@ -23,18 +23,18 @@ const demoOptions: DemoOption[] = [ screenName: 'fabDemo.insets', color: '#4ECDC4', }, - { - title: 'Scroll Hide Demo', - description: 'Demo using useSidekickAssistantFABScrollHandler with HIDE behavior', - screenName: 'fabDemo.scrollHide', - color: '#45B7D1', - }, - { - title: 'Scroll Low Opacity Demo', - description: 'Demo using useSidekickAssistantFABScrollHandler with SHOW_LOW_OPACITY behavior', - screenName: 'fabDemo.scrollLowOpacity', - color: '#96CEB4', - }, + // { + // title: 'Scroll Hide Demo', + // description: 'Demo using useSidekickAssistantFABScrollHandler with HIDE behavior', + // screenName: 'fabDemo.scrollHide', + // color: '#45B7D1', + // }, + // { + // title: 'Scroll Low Opacity Demo', + // description: 'Demo using useSidekickAssistantFABScrollHandler with SHOW_LOW_OPACITY behavior', + // screenName: 'fabDemo.scrollLowOpacity', + // color: '#96CEB4', + // }, ]; export const FABDemoScreen = () => {
feat(ui): ALLSPARK-0000 Hide unused demo screens
feat(ui): ALLSPARK-0000 Hide unused demo screens
6216071db3919222a58de04dfb2689ac75a89e14
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/iteminfo-mini-app": "7.0.8", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", - "@walmart/metrics-mini-app": "0.9.59", + "@walmart/metrics-mini-app": "0.9.60", "@walmart/mod-flex-mini-app": "1.5.5", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", @@ -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==", @@ -5510,9 +5509,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.9.59", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.59.tgz", - "integrity": "sha512-o5F88NMeJIyTXGKDdtE0BXIsUBHpuab6FvwsfnWGUCYrX/0+QRO+hY2MrxVfex34xwKTpRTKeTEygO3scrQZAA==", + "version": "0.9.60", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.60.tgz", + "integrity": "sha512-8kEOohJE3DMD6TOqmryRN8GzndR2zQctmjvQ24Bou+0bN2Yu7WGUO3daCJzSxaMtGa7XKAHgk/4vQzIU8RPklQ==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25171,9 +25170,9 @@ "version": "1.1.45" }, "@walmart/metrics-mini-app": { - "version": "0.9.59", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.59.tgz", - "integrity": "sha512-o5F88NMeJIyTXGKDdtE0BXIsUBHpuab6FvwsfnWGUCYrX/0+QRO+hY2MrxVfex34xwKTpRTKeTEygO3scrQZAA==", + "version": "0.9.60", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.60.tgz", + "integrity": "sha512-8kEOohJE3DMD6TOqmryRN8GzndR2zQctmjvQ24Bou+0bN2Yu7WGUO3daCJzSxaMtGa7XKAHgk/4vQzIU8RPklQ==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -99,7 +99,7 @@ "@walmart/iteminfo-mini-app": "7.0.8", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", - "@walmart/metrics-mini-app": "0.9.59", + "@walmart/metrics-mini-app": "0.9.60", "@walmart/mod-flex-mini-app": "1.5.5", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14",
mertrics version bump
mertrics version bump
32d38f9584a54953aea3d7d14da6507c055a30bb
--- .npmrc @@ -1,7 +1,3 @@ -#registry=https://npme.walmart.com/ -#no_proxy=https://npme.walmart.com/ - -registry=http://localhost:4873 -no_proxy=http://localhost:4873 - +registry=https://npme.walmart.com/ +no_proxy=https://npme.walmart.com/ strict-ssl=false --- __tests__/core/RootContainerTest.tsx @@ -36,6 +36,14 @@ jest.mock( () => 'ThemeProvider', ); +jest.mock('@walmart/push-to-talk-mini-app', () => ({ + Providers: { + ConversationProvider: jest.fn().mockReturnValue(() => ({ + useTextMessages: jest.fn(), + })), + }, +})); + jest.mock('../../src/core/envInit', () => ({ initEnv: jest.fn(), })); --- __tests__/core/__snapshots__/RootContainerTest.tsx.snap @@ -10,12 +10,19 @@ exports[`RootContainer renders and fires startup event 1`] = ` Array [ undefined, ], + Array [ + undefined, + ], ], "results": Array [ Object { "type": "return", "value": undefined, }, + Object { + "type": "return", + "value": undefined, + }, ], }, "getState": [MockFunction] { @@ -31,15 +38,6 @@ exports[`RootContainer renders and fires startup event 1`] = ` }, } } - > - <ThemeProvider - theme={Object {}} - > - <NavigationContainer> - <RootNav /> - <UpdateVersionModal /> - </NavigationContainer> - </ThemeProvider> - </Provider> + /> </SafeAreaProvider> `; --- package-lock.json @@ -16903,9 +16903,9 @@ "integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w==" }, "react-native-ptt-module": { - "version": "1.5.3-2.localRuntimeFix0", - "resolved": "http://localhost:4873/react-native-ptt-module/-/react-native-ptt-module-1.5.3-2.localRuntimeFix0.tgz", - "integrity": "sha512-Np34xndioacHKjx+kz0Pl7uOI6B2kx45Saa8agSSBLKw9fKP8R1JsZHeGwXdiVWQR1vVnLYwaAcJwKbuDfEApw==" + "version": "1.5.32", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.5.32.tgz", + "integrity": "sha512-sVlpSHAMBMyz+UIEo/rPG3qfyCMBor6ZpoH32VRFuFFyYOzjcFFP1vy4MX19PvhTXk7Wp3WIsFl4Kv27ieCvIA==" }, "react-native-qrcode-svg": { "version": "6.0.6", --- package.json @@ -136,8 +136,8 @@ "react-native-pdf": "^6.2.0", "react-native-permissions": "3.0.0", "react-native-popup-menu": "^0.15.9", - "react-native-ptt-module": "1.5.32.localRuntimeFix0", - "realm": "10.4.0", + "react-native-ptt-module": "1.5.32", + "realm": "10.8.0", "react-native-loudness": "^2.0.0", "react-native-image-picker": "^4.0.6", "react-native-qrcode-svg": "^6.0.6",
working local state with correct dependencies
working local state with correct dependencies
43fa7a5ab7ea676b530b5458c61a1f82e2c4f934
--- ios/AllSpark/Info.plist @@ -17,7 +17,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.0.4</string> + <string>1.0.5</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> --- ios/AllSparkTests/Info.plist @@ -15,7 +15,7 @@ <key>CFBundlePackageType</key> <string>BNDL</string> <key>CFBundleShortVersionString</key> - <string>1.0.4</string> + <string>1.0.5</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.0.4", + "version": "1.0.5", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.0.4", + "version": "1.0.5", "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",
version bump (#387)
version bump (#387) Co-authored-by: Hitesh Arora <>
6cb3a800205729e9849ad6cdc576c91c569b01b6
--- container/metro.config.js @@ -15,7 +15,7 @@ config.transformer = { babelTransformerPath: require.resolve('react-native-svg-transformer/expo'), }; -config.resolver = { +config.resolver = { ...resolver, nodeModulesPaths: [ path.resolve(projectRoot, 'node_modules'), --- container/scripts/fixSimulatorBoot.js @@ -1,6 +1,7 @@ const fs = require('fs'); const path = require('path'); +// eslint-disable-next-line no-undef const filePath = path.join(__dirname, 'runWithVariablePrompt.ts'); let fileContent = fs.readFileSync(filePath, 'utf-8'); --- container/scripts/runWithVariablePrompt.ts @@ -57,6 +57,7 @@ const isPortInUse = (port: number): boolean => { const result = execSync(command, {stdio: 'pipe', encoding: 'utf8'}).trim(); return result.length > 0; // If there's any output, the port is in use + // eslint-disable-next-line @typescript-eslint/no-unused-vars } catch (e) { // If the command fails (e.g., no process on port), the port is free return false; --- container/web-shims/allsparkStepUpAuth.ts @@ -13,7 +13,7 @@ export const stepUpAuthSlice = { }; export const handleProtectedResource = (payload: any) => { - console.log(`[Dummy handleProtectedResource] Called with payload:`, payload); + console.log('[Dummy handleProtectedResource] Called with payload:', payload); // Simulate handling protected resources if (payload && payload.currentRoute) { @@ -22,7 +22,7 @@ export const handleProtectedResource = (payload: any) => { ); } else { console.warn( - `[Dummy handleProtectedResource] No route information provided in payload.`, + '[Dummy handleProtectedResource] No route information provided in payload.', ); } --- container/web-shims/encryptedStorage.ts @@ -17,7 +17,7 @@ const EncryptedStorage = { }, async clear(): Promise<void> { - console.log(`[Dummy EncryptedStorage] Clearing all items.`); + console.log('[Dummy EncryptedStorage] Clearing all items.'); Object.keys(storage).forEach((key) => delete storage[key]); }, }; --- container/web-shims/react-native-app-auth.ts @@ -1,42 +1,42 @@ -"use strict"; +'use strict'; // Simple dummy mock for react-native-app-auth (web-compatible) -const authorize = async (config) => { - console.log("[WebAuth Mock] authorize called with config:", config); +const authorize = async (config: any) => { + console.log('[WebAuth Mock] authorize called with config:', config); const mockResult = { - "refreshToken": "testToken", - "scopes": [], - "accessToken": "testToken", - "idToken": "testToken", - "tokenAdditionalParameters": {}, - "tokenType": "Bearer", - "authorizeAdditionalParameters": {}, - "accessTokenExpirationDate": "2025-04-09T16:46:08Z" -} + 'refreshToken': 'testToken', + 'scopes': [], + 'accessToken': 'testToken', + 'idToken': 'testToken', + 'tokenAdditionalParameters': {}, + 'tokenType': 'Bearer', + 'authorizeAdditionalParameters': {}, + 'accessTokenExpirationDate': '2025-04-09T16:46:08Z' + } return mockResult; }; -const refresh = async (config, options) => { - console.log("[WebAuth Mock] refresh called"); +const refresh = async (_config: any, options: { refreshToken: any; }) => { + console.log('[WebAuth Mock] refresh called'); // Return mock refresh result return { - accessToken: "testToken", + accessToken: 'testToken', refreshToken: options.refreshToken, // Keep same refresh token accessTokenExpirationDate: new Date(Date.now() + 3600000).toISOString(), - tokenType: "Bearer", + tokenType: 'Bearer', }; }; -const revoke = async (config, options) => { - console.log("[WebAuth Mock] revoke called"); +const revoke = async (_config, _options) => { + console.log('[WebAuth Mock] revoke called'); return true; }; -const logout = async (config, options) => { - console.log("[WebAuth Mock] logout called"); - return { state: "logged_out" }; +const logout = async (_config, _options) => { + console.log('[WebAuth Mock] logout called'); + return {state: 'logged_out'}; }; // Export with same structure as react-native-app-auth @@ -47,4 +47,3 @@ module.exports = { logout, }; - \ No newline at end of file --- container/web-shims/react-native-network-logger.js @@ -51,4 +51,4 @@ export {NetworkLogger, useNetworkLogger}; export const startNetworkLogging = NetworkLogger.startNetworkLogging; export const stopNetworkLogging = NetworkLogger.stopNetworkLogging; export const clearRequests = NetworkLogger.clearRequests; -export const getRequests = NetworkLogger.getRequests; \ No newline at end of file +export const getRequests = NetworkLogger.getRequests; --- container/web-shims/webLogger/index.ts @@ -1,8 +1,8 @@ import * as client from './client'; import * as logger from './logger'; -import { LoggerLevel } from './types'; +import {LoggerLevel} from './types'; -export { client, logger, LoggerLevel }; +export {client, logger, LoggerLevel}; // Create a default instance for direct use export const DefaultLogger = new logger.default(); --- container/web-shims/webLogger/logger.ts @@ -1,4 +1,4 @@ -import { LoggerLevel } from './types'; +import {LoggerLevel} from './types'; class WebLogger { private isDev: boolean; @@ -27,7 +27,7 @@ class WebLogger { }; clone = (config: any = {}, fields: any = {}) => { - console.log('Mock: clone called with:', { config, fields }); + console.log('Mock: clone called with:', {config, fields}); return new WebLogger(this.isDev); };
feat: update lint fixes
feat: update lint fixes
f2ddf07155e024bf7ade3c355e67aadcc0fec28e
--- packages/allspark-foundation/src/Feature/AllsparkFeatureModule.tsx @@ -325,11 +325,9 @@ export class AllsparkFeatureModule< this._resourceMap.flows = flows; this._connectedMap.flows = true; - const { startup } = flows; - - if (startup) { - ActiveAllsparkContainer.addFlow('startup', startup); - } + Object.entries(flows).forEach(([type, flow]) => { + ActiveAllsparkContainer.addFlow(type, flow); + }); } } --- packages/allspark-foundation/src/Feature/types.ts @@ -8,7 +8,10 @@ import { AllsparkScreenConfig, AnyNavigator, } from '../Navigation/types'; -import { ContainerEventListeners } from '../Container/types'; +import { + ContainerEventListeners, + ContainerFlowTypes, +} from '../Container/types'; export type IAllsparkFeatureListeners = { feature?: Partial<FeatureEventListeners>; @@ -20,7 +23,7 @@ export type IAllsparkFeatureListeners = { * A features "flows" to be run in the container. */ export type IAllsparkFeatureFlows = { - startup?: () => Generator<any>; + [key in ContainerFlowTypes]: () => Generator<any>; }; /**
fix: feature flows did not account for types other than startup
fix: feature flows did not account for types other than startup
cdd86cb885906cae8bf33013a24a8e67d552439f
--- .looper.multibranch.yml @@ -127,7 +127,7 @@ envs: buildTeflon: true teamsReleaseTypeIcon: 'https://ih1.redbubble.net/image.1355946808.4705/flat,128x128,075,t.u1.jpg' teamsWebhookUrl: 'https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/36aedf59babe497b8b4edd5920d0dd9f/f02e8323-deff-42c4-85df-613f84ca35ff' - APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT: 'allsparktestersfeaturedrop8' + APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT: 'allsparktestersfeature' develop: variables: --- package-lock.json @@ -35,7 +35,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.3.41", + "@walmart/ask-sam-mini-app": "1.3.42", "@walmart/attendance-mini-app": "0.33.1", "@walmart/config-components": "4.0.2", "@walmart/core-services": "~1.4.9", @@ -4612,9 +4612,9 @@ } }, "node_modules/@walmart/ask-sam-mini-app": { - "version": "1.3.41", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.41.tgz", - "integrity": "sha512-Xrmu5mYCv2fJq/8ZBNw2rIk/bprC2VKj4/JcFfoGzVX5pQSxlGy6GMgjKwKZYfA3wabqKwkUSnG9MkeJzBpHng==", + "version": "1.3.42", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.42.tgz", + "integrity": "sha512-iflggbpkyuZMjS0nmrvrQYJYQGUT0It9GzO/mV0HCxYSJlEloHdLCF1F79ugQ52VuSPB31nPJYFWkMRhf6CRwQ==", "license": "NONE", "dependencies": { "apisauce": "^1.1.2", @@ -24694,9 +24694,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "1.3.41", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.41.tgz", - "integrity": "sha512-Xrmu5mYCv2fJq/8ZBNw2rIk/bprC2VKj4/JcFfoGzVX5pQSxlGy6GMgjKwKZYfA3wabqKwkUSnG9MkeJzBpHng==", + "version": "1.3.42", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.42.tgz", + "integrity": "sha512-iflggbpkyuZMjS0nmrvrQYJYQGUT0It9GzO/mV0HCxYSJlEloHdLCF1F79ugQ52VuSPB31nPJYFWkMRhf6CRwQ==", "requires": { "apisauce": "^1.1.2", "axios-cache-adapter": "^2.7.3", --- package.json @@ -77,7 +77,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.3.41", + "@walmart/ask-sam-mini-app": "1.3.42", "@walmart/attendance-mini-app": "0.33.1", "@walmart/config-components": "4.0.2", "@walmart/core-services": "~1.4.9",
SMBLV-3123: AskSam ItemInfo Scrollview lag issue fixed
SMBLV-3123: AskSam ItemInfo Scrollview lag issue fixed
27fd38b6d2aede2cc9b845dae24bd42db0bd3764
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -217,6 +217,12 @@ Array [ <Screen name="paymentselection" /> + <Screen + name="paymentselection.PayMethodScreen" + /> + <Screen + name="paymentselection.OneAppScreen" + /> </Group> </Navigator>, <NotificationsContainer />, --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -34,7 +34,11 @@ import {ChangeStoreModal} from '../../changeStore/ChangeStoreModal'; import {StoreInfoModal} from '../../storeInfo/StoreInfoModal'; import {useAssociateStartup} from '../../startup/AssociateStartup'; import LearningApp from '@walmart/me-field-mini-app'; -import {PaymentSelectionMiniApp} from '@walmart/payrollsolution_miniapp'; +import { + PaymentSelectionMiniApp, + PayMethodScreen, + OneAppScreen, +} from '@walmart/payrollsolution_miniapp'; import { modalTransitionOptions, pinModalTransitionOptions, @@ -273,6 +277,16 @@ export const MainStackNav = () => { name='paymentselection' component={PaymentSelectionMiniApp} /> + + <MainStack.Screen + name='paymentselection.PayMethodScreen' + component={PayMethodScreen} + /> + + <MainStack.Screen + name='paymentselection.OneAppScreen' + component={OneAppScreen} + /> </MainStack.Group> </MainStack.Navigator>
add paymethod screen
add paymethod screen
daea517755c6749cb78021ebcea6d5a009a90f6c
--- package-lock.json @@ -4400,9 +4400,9 @@ } }, "@walmart/refrigeration-alarms-mini-app": { - "version": "1.33.0", - "resolved": "https://npme.walmart.com/@walmart/refrigeration-alarms-mini-app/-/refrigeration-alarms-mini-app-1.33.0.tgz", - "integrity": "sha512-M0nMrRcT37QDt7E22TdmQY5PmHX7hqn6mTXtj1pc0sCVIg4Uh43POCcZNyAdhuenKkm5zUJ008XhUFhWpagq+A==" + "version": "1.34.0", + "resolved": "https://npme.walmart.com/@walmart/refrigeration-alarms-mini-app/-/refrigeration-alarms-mini-app-1.34.0.tgz", + "integrity": "sha512-2ykymwKYPNCHKRoSbwBpvNXMgjqkdKOi5O0DMvgilWp5R61li+Afn4j9aTASc05bwTSQX5R/kI3xP8+dIED6FA==" }, "@walmart/schedule-mini-app": { "version": "0.12.0", --- package.json @@ -97,7 +97,7 @@ "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/react-native-sumo-sdk": "2.1.0", "@walmart/redux-store": "1.1.26", - "@walmart/refrigeration-alarms-mini-app": "1.33.0", + "@walmart/refrigeration-alarms-mini-app": "1.34.0", "@walmart/schedule-mini-app": "0.12.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3",
version bump for error handling
version bump for error handling