commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
5e8889cd4f517b8dd3067fd20058b73cfac4e5ed
--- src/index.tsx @@ -23,6 +23,8 @@ import {initNotificationListeners} from './notification'; import {initi18n} from './translations'; import {MeganavScreen} from './screens/MeganavScreen'; import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; +import {ChannelsContext} from './channels/context'; +import {PresenceContext} from './presence/context'; export {PushToTalkProvider} from './channels/pushToTalkProvider'; export const LOGGER_FIELDS = {id: 'texting-mini-app'}; @@ -96,3 +98,13 @@ export const TextingMiniApp = () => { </LoggerCloneProvider> ); }; + +export const Providers = { + ChannelsProvider, + PresenceProvider, +}; + +export const Context = { + ChannelsContext, + PresenceContext, +}; --- src/index.tsx @@ -23,6 +23,8 @@ import {initNotificationListeners} from './notification'; import {initi18n} from './translations'; import {MeganavScreen} from './screens/MeganavScreen'; import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; +import {ChannelsContext} from './channels/context'; +import {PresenceContext} from './presence/context'; export {PushToTalkProvider} from './channels/pushToTalkProvider'; export const LOGGER_FIELDS = {id: 'texting-mini-app'}; @@ -96,3 +98,13 @@ export const TextingMiniApp = () => { </LoggerCloneProvider> ); }; + +export const Providers = { + ChannelsProvider, + PresenceProvider, +}; + +export const Context = { + ChannelsContext, + PresenceContext, +};
expose context and providers
expose context and providers
986a73ced0ebc04612f43b50100f03e97f708582
--- packages/allspark-foundation/package.json @@ -90,7 +90,7 @@ "@react-native-firebase/perf": "^22.4.0", "@react-native-firebase/remote-config": "^22.4.0", "@react-native-picker/picker": "2.11.1", - "@react-navigation/elements": "2.3.8", + "@react-navigation/elements": "2.6.5", "@react-navigation/native": "^7.1.14", "@react-navigation/stack": "^7.4.2", "@types/crypto-js": "^4.1.3", --- yarn.lock @@ -6577,25 +6577,7 @@ __metadata: languageName: node linkType: hard -"@react-navigation/elements@npm:2.3.8": - version: 2.3.8 - resolution: "@react-navigation/elements@npm:2.3.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Felements%2F-%2Felements-2.3.8.tgz" - dependencies: - color: "npm:^4.2.3" - peerDependencies: - "@react-native-masked-view/masked-view": ">= 0.2.0" - "@react-navigation/native": ^7.1.6 - react: ">= 18.2.0" - react-native: "*" - react-native-safe-area-context: ">= 4.0.0" - peerDependenciesMeta: - "@react-native-masked-view/masked-view": - optional: true - checksum: 10c0/8fc053bc853f2c588f3275b891a1e06d2638881e785bfa0b5086d2c813a2577992eb91cc080a3d723779ce6d8fd21242eaffdd6ac8e474743c2788a93509d6d5 - languageName: node - linkType: hard - -"@react-navigation/elements@npm:^2.3.8, @react-navigation/elements@npm:^2.6.5": +"@react-navigation/elements@npm:2.6.5, @react-navigation/elements@npm:^2.3.8, @react-navigation/elements@npm:^2.6.5": version: 2.6.5 resolution: "@react-navigation/elements@npm:2.6.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40react-navigation%2Felements%2F-%2Felements-2.6.5.tgz" dependencies: @@ -8406,7 +8388,7 @@ __metadata: "@react-native-firebase/perf": "npm:^22.4.0" "@react-native-firebase/remote-config": "npm:^22.4.0" "@react-native-picker/picker": "npm:2.11.1" - "@react-navigation/elements": "npm:2.3.8" + "@react-navigation/elements": "npm:2.6.5" "@react-navigation/native": "npm:^7.1.14" "@react-navigation/stack": "npm:^7.4.2" "@reduxjs/toolkit": "npm:^1.9.7"
chore: bump navigation elements to align with other navigation libraries
chore: bump navigation elements to align with other navigation libraries
28f1d07b4089dda63f82067994c37c9a0e83d84c
--- .yarnrc.yml @@ -1,12 +1,2 @@ nodeLinker: node-modules npmRegistryServer: "${REPOSOLNS_NPM_REPO}" - -packageExtensions: - "@walmart/ui-components@*": - peerDependenciesMeta: - react-native-background-timer: - optional: true - react-native-elements: - optional: true - react-native-vector-icons: - optional: true
chore(ui): looper yml error log update
chore(ui): looper yml error log update
7e82ce9382fbe0da78c14c83c5c97a07fe03d76e
--- src/utils/assoicateList.ts @@ -15,30 +15,30 @@ const ASC_ORDER = 1; const DESC_ORDER = -1; const NO_SORT = 0; -// const checkUserIsSalariedOrTeamLead = ( -// associate: Associate, -// teamLeads: string[], -// ) => -// teamLeads -// ?.map((CCMJobDescription) => CCMJobDescription.toLowerCase()) -// .includes(associate?.jobCategoryCodeDesc?.toLowerCase() as string) || -// (associate?.payType && -// toUpper(associate?.payType?.toString()) === payTypes.SALARIED) -// ? ASC_ORDER -// : DESC_ORDER; - -const checkUserIsTeamLead = (associate: Associate, teamLeads: string[]) => +const checkUserIsSalariedOrTeamLead = ( + associate: Associate, + teamLeads: string[], +) => teamLeads ?.map((CCMJobDescription) => CCMJobDescription.toLowerCase()) - .includes(associate?.jobCategoryCodeDesc?.toLowerCase() as string) + .includes(associate?.jobCategoryCodeDesc?.toLowerCase() as string) || + (associate?.payType && + toUpper(associate?.payType?.toString()) === payTypes.SALARIED) ? ASC_ORDER : DESC_ORDER; -const checkUserIsSalaried = (associate: Associate) => - associate?.payType && - toUpper(associate?.payType?.toString()) === payTypes.SALARIED - ? ASC_ORDER - : DESC_ORDER; +// const checkUserIsTeamLead = (associate: Associate, teamLeads: string[]) => +// teamLeads +// ?.map((CCMJobDescription) => CCMJobDescription.toLowerCase()) +// .includes(associate?.jobCategoryCodeDesc?.toLowerCase() as string) +// ? ASC_ORDER +// : DESC_ORDER; + +// const checkUserIsSalaried = (associate: Associate) => +// associate?.payType && +// toUpper(associate?.payType?.toString()) === payTypes.SALARIED +// ? ASC_ORDER +// : DESC_ORDER; const checkUserClockedIn = (associate: Associate) => associateIsClockedIn(associate) ? ASC_ORDER : DESC_ORDER; @@ -63,8 +63,8 @@ const checkUserAbsent = (associate: Associate) => const checkUserAtMeal = (associate: Associate) => associateIsOnMeal(associate) ? ASC_ORDER : DESC_ORDER; -const checkUserNotScheduled = (associate: Associate) => - associateIsNotScheduled(associate) ? ASC_ORDER : DESC_ORDER; +// const checkUserNotScheduled = (associate: Associate) => +// associateIsNotScheduled(associate) ? ASC_ORDER : DESC_ORDER; const checkUserOnPTO = (associate: Associate) => associateIsOnPTO(associate) ? ASC_ORDER : DESC_ORDER; @@ -86,15 +86,14 @@ export const sortedAssociateList = ( ) => [...associatesList].sort( (associateA: Associate, associateB: Associate) => - checkUserIsTeamLead(associateB, teamLeads) - - checkUserIsTeamLead(associateA, teamLeads) || - checkUserIsSalaried(associateB) - checkUserIsSalaried(associateA) || + checkUserIsSalariedOrTeamLead(associateB, teamLeads) - + checkUserIsSalariedOrTeamLead(associateA, teamLeads) || checkUserClockedIn(associateB) - checkUserClockedIn(associateA) || checkUserAtMeal(associateB) - checkUserAtMeal(associateA) || checkUserClockedOut(associateB) - checkUserClockedOut(associateA) || checkUserTardy(associateB) - checkUserTardy(associateA) || checkUserAbsent(associateB) - checkUserAbsent(associateA) || - checkUserNotScheduled(associateB) - checkUserNotScheduled(associateA) || + // checkUserNotScheduled(associateB) - checkUserNotScheduled(associateA) || //Todo: Add when we have the not scheduled integrated checkUserOnPPTO(associateB) - checkUserOnPPTO(associateA) || checkUserOnPTO(associateB) - checkUserOnPTO(associateA) || sortByAssociateName(associateA, associateB),
Update sorting logic
Update sorting logic
88c210649156eb997d150f5eebfca2a201f8a501
--- __tests__/screens/MessagesScreenTest.tsx @@ -1,13 +1,6 @@ // eslint-disable-next-line @typescript-eslint/no-unused-vars import React from 'react'; -import { - mockCollection, - mockCollectionForFirestore, - mockFirestore, - // @ts-ignore -} from '../harness/firestore/mockDatabase'; - describe('MessagesHeader', () => { describe('1-1 chat', () => { it('should show receivers display name', () => {}); --- __tests__/screens/MessagesScreenTest.tsx @@ -1,13 +1,6 @@ // eslint-disable-next-line @typescript-eslint/no-unused-vars import React from 'react'; -import { - mockCollection, - mockCollectionForFirestore, - mockFirestore, - // @ts-ignore -} from '../harness/firestore/mockDatabase'; - describe('MessagesHeader', () => { describe('1-1 chat', () => { it('should show receivers display name', () => {});
remove cruft from messages screen
remove cruft from messages screen
882baf2bc5ec59d31cdf2084850c0df7574eef1b
--- __tests__/appBlockPrompt/__snapshots__/indexTest.tsx.snap @@ -70,6 +70,60 @@ exports[`AppBlockingPrompt matches snapshot 1`] = ` </SafeAreaView> `; +exports[`AppBlockingPrompt matches snapshot with default config values 1`] = ` +<SafeAreaView + style={ + Object { + "backgroundColor": "#FFFFFF", + "flex": 1, + "paddingHorizontal": 16, + "paddingVertical": 24, + } + } +> + <Image + resizeMode="contain" + source={ + Object { + "testUri": "../../../src/images/assets/full-app-icon.png", + } + } + style={ + Object { + "alignSelf": "center", + "height": 100, + "marginBottom": 70, + "marginTop": 110, + "width": 100, + } + } + /> + <Title + style={ + Object { + "marginBottom": 16, + "paddingBottom": 0, + "paddingHorizontal": 16, + "textAlign": "center", + } + } + > + The new Me@Walmart app is ready! + </Title> + <Body + style={ + Object { + "color": "#46474a", + "padding": 16, + "textAlign": "center", + } + } + > + Thank you for participating in our Beta - we really appreciate your feedback. + </Body> +</SafeAreaView> +`; + exports[`AppBlockingPrompt matches snapshot without download button 1`] = ` <SafeAreaView style={ --- __tests__/appBlockPrompt/indexTest.tsx @@ -89,4 +89,10 @@ describe('AppBlockingPrompt', () => { {}, ); }); + + it('matches snapshot with default config values', () => { + mockUseSelector.mockReturnValue({}); + component.update(<AppBlockingScreen />); + expect(component.toJSON()).toMatchSnapshot(); + }); }); --- src/appBlockPrompt/index.tsx @@ -14,13 +14,20 @@ import {Images} from '../images'; import {getAppAccessibleConfig} from './redux'; import styles from './styles'; +const DEFAULT_TITLE = 'The new Me@Walmart app is ready!'; +const DEFAULT_BODY = + 'Thank you for participating in our Beta - we really appreciate your feedback.'; +const DEFAULT_BUTTON = 'Download now'; + export const AppBlockingScreen = () => { const [, i18n] = useTranslation(); - const {urls, title, body, button} = useSelector( - getAppAccessibleConfig, - shallowEqual, - ); + const { + urls, + title = DEFAULT_TITLE, + body = DEFAULT_BODY, + button = DEFAULT_BUTTON, + } = useSelector(getAppAccessibleConfig, shallowEqual); const url = urls?.[Platform.OS]; const titleText = getValueForLanguage(title, i18n.language);
Giving app block prompt defaults
Giving app block prompt defaults
3d92f725a1574a82ac9cef728a136b888da3e589
--- .looper-pr.yml @@ -15,8 +15,13 @@ flows: - npm run env:dev - npm run lint - npm run coverage + - call: build-js-bundle - call: notify-pr-via-slack + # verify that the JS bundle can be built + build-js-bundle: + - (name build JS bundle) ./node_modules/.bin/react-native bundle --entry-file ./index.js --bundle-output ./bundle.js + notify-pr-via-slack: - try: - (name Slack PR notify) sh scripts/slackWorkflow.sh 2>&1
adding js bundle build to pr verifications (#226)
adding js bundle build to pr verifications (#226)
49e6d689d5370ca7a510d7ade941c2c33ea8fde7
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/TeamShiftSwitcher/TeamShiftSwitcher.tsx @@ -8,7 +8,7 @@ import { teamShiftSwitcherStyles as styles } from './style'; import { TeamShiftSwitcherProps } from './types'; export const TeamShiftSwitcher = ({ - isLoading = false, + isLoading, teamName, selectedShifts, allSavedTeams, --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/TeamShiftSwitcher/types.ts @@ -1,5 +1,5 @@ export interface TeamShiftSwitcherProps { - isLoading?: boolean; + isLoading: boolean; teamName: string; selectedShifts: string[] | 'All shifts'; allSavedTeams?: string[];
feat: updated isloading prop
feat: updated isloading prop
01dec762b130b821af389ee3e737910fe310b318
--- packages/me-at-walmart-container/src/redux/telemetry.ts @@ -107,16 +107,10 @@ export function* onDeviceInfoSuccess({ }); } -const LEGACY_CLOCK_ACTIONS = ['CLOCK_CHECK_SUCCESS', 'CLOCK_CHECK_ERROR']; - export const TelemetrySagas = [ takeLatest(USER_CHANGED_ACTIONS, onUserChanged), takeLatest( - [ - ...LEGACY_CLOCK_ACTIONS, - ClockActionTypes.FETCH_SUCCESS, - ClockActionTypes.FETCH_ERROR, - ], + [ClockActionTypes.FETCH_SUCCESS, ClockActionTypes.FETCH_ERROR], onClockStatusChange ), takeLatest(NetworkActionTypes.STATE_CHANGED, onNetworkStateChanged),
chore: remove legacy clock action handling
chore: remove legacy clock action handling
7ef8b73a6199a74b6ef49a151a8f3ded8f1acd6c
--- package-lock.json @@ -3057,9 +3057,9 @@ "integrity": "sha512-V85jGOfE+5JauAKvH8gSGvp9vauVj6Pu8Gemj1vm511mlnnct4m5rezB67qGOyIiIdWxAvf4qjSj9662MOsLFQ==" }, "@walmart/inbox-mini-app": { - "version": "0.0.42", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.42.tgz", - "integrity": "sha512-xG6d5ciWs2f+5UmO2eQyBQda8Yf9kdgpvuanokU0B58Ex6WlGdWEd4C4nM4P0tzXlM13R9pSx2K+zU9Pw0FkZg==" + "version": "0.0.44", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.44.tgz", + "integrity": "sha512-weC5F3c6hgcHMjiqQi/2UocvJrxDqb8+dzK1HmeCZdDG1aehbcuX3ZhiiY4crKvGXqQshh40TXML21WAVqFc3g==" }, "@walmart/moment-walmart": { "version": "1.0.4", --- package.json @@ -55,7 +55,7 @@ "@walmart/functional-components": "^1.0.22", "@walmart/gtp-shared-components": "^0.2.2", "@walmart/impersonation-mini-app": "1.0.7", - "@walmart/inbox-mini-app": "0.0.42", + "@walmart/inbox-mini-app": "0.0.44", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.0.75", "@walmart/react-native-env": "^0.1.0",
Inbox version bump (#287)
Inbox version bump (#287) Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
6ead1802a57487c11e0c9dcbb8e4e982e3392fe0
--- src/presence/sagas.ts @@ -6,7 +6,7 @@ import { } from '../redux/selectors'; import {SiteSelectors} from '@walmart/redux-store'; import {getLastOfflineTime, goOnlineForUser} from './service'; -import {isNil} from "lodash"; +import {isNil} from 'lodash'; export function* DoNotDisturbAutoResetSaga() { const userId: string = yield select(getEncryptedUserId); @@ -22,7 +22,6 @@ export function* DoNotDisturbAutoResetSaga() { const isDndOfflineLimitExpired = timeSpentOffline >= dndOfflineTimeLimit; const isTimeRemainingLikelyWithinUserSession = timeRemaining > 0 && timeRemaining <= dndAutoSwitchThreshold; - if (isDndOfflineLimitExpired) { if (isTimeRemainingLikelyWithinUserSession) { yield delay(timeRemaining); --- src/presence/sagas.ts @@ -6,7 +6,7 @@ import { } from '../redux/selectors'; import {SiteSelectors} from '@walmart/redux-store'; import {getLastOfflineTime, goOnlineForUser} from './service'; -import {isNil} from "lodash"; +import {isNil} from 'lodash'; export function* DoNotDisturbAutoResetSaga() { const userId: string = yield select(getEncryptedUserId); @@ -22,7 +22,6 @@ export function* DoNotDisturbAutoResetSaga() { const isDndOfflineLimitExpired = timeSpentOffline >= dndOfflineTimeLimit; const isTimeRemainingLikelyWithinUserSession = timeRemaining > 0 && timeRemaining <= dndAutoSwitchThreshold; - if (isDndOfflineLimitExpired) { if (isTimeRemainingLikelyWithinUserSession) { yield delay(timeRemaining);
reformatting
reformatting
080aba565df71c04e1d699dea0a02f041dc30655
--- ios/Podfile.lock @@ -1218,17 +1218,17 @@ SPEC CHECKSUMS: react-native-loudness: fe12785700887bcfdb07abcf455c5df40e89183b react-native-maps: ed6470f754c140c75aabff757e154cf52a1636a8 react-native-netinfo: 51b6a79a6f1729d853aa0bd5085e441f7ef32aa1 - react-native-pager-view: 592421df0259bf7a7a4fe85b74c24f3f39905605 + react-native-pager-view: f7238ec88a1e808f4ba09447d46e9bc8aef32aa4 react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa react-native-ptt-module: a0e5867a0253b4cc558aa5fe0de839fd09a6d0c5 react-native-render-html: 5af9f6852f5e0cf9b74127537da3370984da51ee react-native-safe-area-context: d768fdafd416b4c0bdc7bef4240c9ee53909baf3 - react-native-scanner-3.0: e144733a1c98596d7cd53c3d6384785273b81aab + react-native-scanner-3.0: 9ff2f78e24f92c5e82d3779aec4424ce72d958d3 react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457 react-native-video: 79a186e378d327b6c08bc3982c17ef455c6bd75c react-native-view-shot: ef3ebacaacaefffcfd953d04b4304962fbe1fae2 - react-native-webview: d33e2db8925d090871ffeb232dfa50cb3a727581 - react-native-wm-app-review: eff89fab61d28c3bf7106419717d4aeb6c5aa6f2 + react-native-webview: a192040320142d8f10d652a745c46e4f43e37f8c + react-native-wm-app-review: c471db22017749e6f2edca75790fe96f76530075 react-native-wm-voice-text: 0f7a38a57c1463c6fb8fc8f1b61da0d511cd5383 React-perflogger: e68d3795cf5d247a0379735cbac7309adf2fb931 React-RCTActionSheet: 05452c3b281edb27850253db13ecd4c5a65bc247 @@ -1265,7 +1265,7 @@ SPEC CHECKSUMS: RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c RNReanimated: 2a91e85fcd343f8af3c58d3425b99fdd285590a5 RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7 - RNSha256: 80bea5b2e7005f813f6438cb41e573b3d531146c + RNSha256: 03d70c81d84084560180c1858dbf2c980a01c1b1 RNSketchCanvas: ee9e3d4bd7dbe46d309827bf2252817a0345ea1d RNSoundPlayer: 369105c565b8fe6ea0a43fc882dc81eba444e842 RNSVG: 3a79c0c4992213e4f06c08e62730c5e7b9e4dc17 --- package-lock.json @@ -65,7 +65,7 @@ "@walmart/payrollsolution_miniapp": "0.130.6", "@walmart/price-changes-mini-app": "1.6.8", "@walmart/profile-feature-app": "0.76.0", - "@walmart/push-to-talk-mini-app": "1.8.35", + "@walmart/push-to-talk-mini-app": "1.8.38", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.31.0-rc.1", @@ -5622,9 +5622,9 @@ } }, "node_modules/@walmart/push-to-talk-mini-app": { - "version": "1.8.35", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.8.35.tgz", - "integrity": "sha512-UQ8dAPGiCToINqVaByrMhuPj3LNWe/Ui2Zriw+bIVv7lPIkBTY1iJs5GNA0A4BCszAAmhgmvtZUf8K1hVgRrRw==", + "version": "1.8.38", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.8.38.tgz", + "integrity": "sha512-5EGu7wDHo8wtH7ulPEXODAEL1NXatPFjEIuzeP9OG1T2fNG4KM+ngjHMr+SCw7Jh+O/3SEu8dOgpk30qFhNTOg==", "license": "UNLICENSED", "peerDependencies": { "@react-native-community/async-storage": "^1.11.0", @@ -5635,7 +5635,7 @@ "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/react-native-sumo-sdk": "^2.1.0", - "@walmart/redux-store": "^1.0.15", + "@walmart/redux-store": "^2.0.4", "@walmart/ui-components": "^1.1.72", "apisauce": "^1.1.2", "javascript-time-ago": ">=2.3.4", @@ -5650,7 +5650,7 @@ "react-native-hyperlink": ">=0.0.19", "react-native-image-picker": "^4.0.6", "react-native-loudness": "^2.0.0", - "react-native-ptt-module": "1.5.98", + "react-native-ptt-module": "1.8.7", "react-native-reanimated": "^1.13.4", "react-native-sha256": "^1.4.7", "react-native-ssmp-sso-allspark": "^1.2.3", @@ -5661,7 +5661,7 @@ "redux-saga": "^1.1.3", "redux-thunk": "^2.3.0", "reduxsauce": "^1.2.0", - "reselect": "^4.0.0" + "reselect": "^4.1.0" } }, "node_modules/@walmart/react-native-encrypted-storage": { @@ -25006,9 +25006,9 @@ "integrity": "sha512-P4fXm0HihY3jsOkUX7ZVICRiLOUIDo16FVOZHeie7o611ZmslNScFNWwuzEcFulKsLRq4jSU+XQKrOlUqQlW2g==" }, "@walmart/push-to-talk-mini-app": { - "version": "1.8.35", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.8.35.tgz", - "integrity": "sha512-UQ8dAPGiCToINqVaByrMhuPj3LNWe/Ui2Zriw+bIVv7lPIkBTY1iJs5GNA0A4BCszAAmhgmvtZUf8K1hVgRrRw==" + "version": "1.8.38", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.8.38.tgz", + "integrity": "sha512-5EGu7wDHo8wtH7ulPEXODAEL1NXatPFjEIuzeP9OG1T2fNG4KM+ngjHMr+SCw7Jh+O/3SEu8dOgpk30qFhNTOg==" }, "@walmart/react-native-encrypted-storage": { "version": "1.1.3", --- package.json @@ -107,7 +107,7 @@ "@walmart/payrollsolution_miniapp": "0.130.6", "@walmart/price-changes-mini-app": "1.6.8", "@walmart/profile-feature-app": "0.76.0", - "@walmart/push-to-talk-mini-app": "1.8.35", + "@walmart/push-to-talk-mini-app": "1.8.38", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.31.0-rc.1",
ptt package version update for issues
ptt package version update for issues
6dd3c558af185e96c8755ce43ab34efeb41e58a2
--- env.beta.js @@ -1,13 +1,4 @@ // Environment Overrides for Beta export const ENV = 'beta'; -export const ENV_OVERRIDES = { - graphql: { - url: 'https://developer.api.us.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', - headers: { - 'WM_SVC.NAME': 'ATHENA-GATEWAY', - 'WM_SVC.ENV': 'prod', - }, - persistedQueries: true, - }, -}; +export const ENV_OVERRIDES = {}; --- env.dev.js @@ -2,13 +2,9 @@ export const ENV = 'dev'; export const ENV_OVERRIDES = { - graphql: { - url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', - // url: 'https://athena-gateway.sstage.us.walmart.net', - headers: { - 'WM_SVC.ENV': 'stage', - REQUEST_SOURCE: 'API_PROXY', - }, - persistedQueries: true, - }, + // Comment in for Local Development on Shadow Gatway + // graphql: { + // url: 'https://athena-gateway.sstage.us.walmart.net', + // persistedQueries: false, + // }, }; --- env.prod.js @@ -1,13 +1,4 @@ // Environment Overrides for Prod export const ENV = 'prod'; -export const ENV_OVERRIDES = { - graphql: { - url: 'https://developer.api.us.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', - headers: { - 'WM_SVC.NAME': 'ATHENA-GATEWAY', - 'WM_SVC.ENV': 'prod', - }, - persistedQueries: true, - }, -}; +export const ENV_OVERRIDES = {}; --- env.teflon.js @@ -1,13 +1,4 @@ // Environment Overrides for Teflon export const ENV = 'teflon'; -export const ENV_OVERRIDES = { - graphql: { - url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', - headers: { - 'WM_SVC.NAME': 'ATHENA-GATEWAY', - 'WM_SVC.ENV': 'dev', - }, - persistedQueries: true, - }, -}; +export const ENV_OVERRIDES = {};
fix: remove env overrides that are unchanged from default
fix: remove env overrides that are unchanged from default
e9e5628c62f40b339541f1928677f92934aba17d
--- patches/@walmart+financial-wellbeing-feature-app+1.13.7.patch @@ -0,0 +1,43 @@ +diff --git a/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MoneyHintsCarousel/MoneyHintsCarouselWrapper/index.js b/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MoneyHintsCarousel/MoneyHintsCarouselWrapper/index.js +index 0e1a772..590b53b 100644 +--- a/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MoneyHintsCarousel/MoneyHintsCarouselWrapper/index.js ++++ b/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MoneyHintsCarousel/MoneyHintsCarouselWrapper/index.js +@@ -191,10 +191,18 @@ export const MoneyHintsCarouselWrapper = ({ coreAppName, }) => { + const screenName = isWalmartApp(coreAppName) + ? 'paymentselection' + : 'directDeposit.paymentSelectionMiniApp'; +- navigation.navigate(screenName, { +- screen: 'PaymentSelectionNav.PayMethodScreen', +- url: 'me', +- }); ++ // navigation.navigate(screenName, { ++ // screen: 'PaymentSelectionNav.PayMethodScreen', ++ // url: 'me', ++ // }); ++ ++ navigation.navigate("money.auth",{ ++ screenName: screenName, ++ params:{ ++ screen: 'PaymentSelectionNav.PayMethodScreen', ++ url: 'me', ++ } ++ }); + }; + const onPressAction = (type) => { + logEvent(`${MONEYHINTS}_${MONEY_HINTS_CARDS_EVENTS[type]}_${BTN_CLICKED}`, {}); +diff --git a/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MyMoney/DirectDeposit/index.js b/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MyMoney/DirectDeposit/index.js +index 9d742a5..62cc7e7 100644 +--- a/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MyMoney/DirectDeposit/index.js ++++ b/node_modules/@walmart/financial-wellbeing-feature-app/dist/components/MyMoney/DirectDeposit/index.js +@@ -20,7 +20,10 @@ export const DirectDeposit = () => { + const screenName = isWalmartApp(appName) + ? 'paymentselection' + : 'directDeposit.paymentSelectionMiniApp'; +- navigation.navigate(screenName); ++ // navigation.navigate(screenName); ++ navigation.navigate("money.auth",{ ++ screenName: screenName ++ }); + }; + const item = { + title: t('my_money.direct_deposit.title'), --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -45,6 +45,7 @@ import { FWB_NAV_SCREEN_NAME, } from '@walmart/financial-wellbeing-feature-app'; import {PayStubMiniApp} from '@walmart/pay-stub-miniapp'; +import {AuthScreen as MoneyAuthScreen} from '@walmart/money-auth-shared-components'; import {ReturnsMiniApp} from '@walmart/returns-mini-app'; import {EmergencyBannerScreen} from '@walmart/emergency-mini-app'; import {MeganavTextingScreen} from '@walmart/texting-mini-app'; @@ -197,6 +198,7 @@ export const MainStackNav = () => { component={PaymentSelectionMiniApp} /> <MainStack.Screen name='paystub' component={PayStubMiniApp} /> + <MainStack.Screen name='money.auth' component={MoneyAuthScreen} /> <MainStack.Screen name={FWB_NAV_SCREEN_NAME} component={FWBNav} /> <MainStack.Screen name='AlarmDetails' component={AlarmDetailNav} /> </MainStack.Group>
patch
patch
17e7bd5dc91cd8d3aa421f25fd0d8dcc6db3e1c8
--- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -124,6 +124,19 @@ export class AllsparkContainer< * @param config - The configuration object for the container. */ constructor(id: string, config: AllsparkContainerConfig<E, T>) { + if (!id && id.length < 1) { + throw new Error('AllsparkContainer Intilization Error: id is required'); + } + if (!config.environment) { + throw new Error( + 'AllsparkContainer Intilization Error: enviorment is required' + ); + } + if (!config.services) { + throw new Error( + 'AllsparkContainer Intilization Error: services is required' + ); + } this.id = id; this.config = config; this.features = new FeatureModuleManager(`${this.id}-features`); @@ -372,6 +385,13 @@ export class AllsparkContainer< // Environment intialized first for given env and overrides. // Other client configurations may be dependent on env so this is done first. + + if (!env) { + throw Error( + 'AllsparkContainer Intilization Error: env is required in enviorment' + ); + } + AllsparkEnvironment.initialize({ env, config: this.config.environment, @@ -379,14 +399,59 @@ export class AllsparkContainer< }); // Connects all dynamic services to their global instances. + if (!this.config.services.auth) { + throw Error( + 'AllsparkContainer Intilization Error: auth is required in services' + ); + } AuthServiceCreator(this.config.services.auth); + if (!this.config.services.clock) { + throw Error( + 'AllsparkContainer Intilization Error: clock is required in services' + ); + } ClockServiceCreator(this.config.services.clock); + if (!this.config.services.config) { + throw Error( + 'AllsparkContainer Intilization Error: config is required in services' + ); + } ConfigServiceCreator(this.config.services.config); + if (!this.config.services.device) { + throw Error( + 'AllsparkContainer Intilization Error: device is required in services' + ); + } DeviceServiceCreator(this.config.services.device); + if (!this.config.services.logger) { + throw Error( + 'AllsparkContainer Intilization Error: logger is required in services' + ); + } LoggerServiceCreator(this.config.services.logger); + if (!this.config.services.navConfig) { + throw Error( + 'AllsparkContainer Intilization Error: navConfig is required in services' + ); + } NavConfigServiceCreator(this.config.services.navConfig); + if (!this.config.services.site) { + throw Error( + 'AllsparkContainer Intilization Error: site is required in services' + ); + } SiteServiceCreator(this.config.services.site); + if (!this.config.services.telemetry) { + throw Error( + 'AllsparkContainer Intilization Error: telemetry is required in services' + ); + } TelemetryServiceCreator(this.config.services.telemetry); + if (!this.config.services.user) { + throw Error( + 'AllsparkContainer Intilization Error: user is required in services' + ); + } UserServiceCreator(this.config.services.user); AllsparkReduxStore.dispatch(
feat: setup error communication for container
feat: setup error communication for container
a55a1de3c8299d54f5e24574dd671ec1835539b6
--- package.json @@ -145,7 +145,7 @@ "@walmart/shelfavailability-mini-app": "1.5.23", "@walmart/store-feature-orders": "1.26.7", "@walmart/taskit-mini-app": "2.81.15", - "@walmart/time-clock-mini-app": "2.373.0", + "@walmart/time-clock-mini-app": "2.374.0", "@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch", "@walmart/welcomeme-mini-app": "0.90.3", --- yarn.lock @@ -7146,9 +7146,9 @@ __metadata: languageName: node linkType: hard -"@walmart/time-clock-mini-app@npm:2.373.0": - version: 2.373.0 - resolution: "@walmart/time-clock-mini-app@npm:2.373.0" +"@walmart/time-clock-mini-app@npm:2.374.0": + version: 2.374.0 + resolution: "@walmart/time-clock-mini-app@npm:2.374.0" dependencies: "@react-navigation/elements": "npm:^1.3.1" moment-timezone: "npm:0.5.33" @@ -7191,7 +7191,7 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: ^1.4.0 xdate: ^0.8.2 - checksum: 10c0/733a2ccf47e04dc4ffca2fe0b2020d070d5b513e2f5193298fddd5c59eb57b9bb50cbe5c2b2c2401000f3c87d311cdd78cdb4c5f2b4b21d0b35163107540915c + checksum: 10c0/953478a7f15dccf4aa8408f49ea2f0eaf640431b6bb3ee3268f1f8ee9d87cc947d32b060a3e9c27b6793ebdbc4f2ea2cebdb8f383726f98791d91f183b96f1ff languageName: node linkType: hard @@ -7785,7 +7785,7 @@ __metadata: "@walmart/shelfavailability-mini-app": "npm:1.5.23" "@walmart/store-feature-orders": "npm:1.26.7" "@walmart/taskit-mini-app": "npm:2.81.15" - "@walmart/time-clock-mini-app": "npm:2.373.0" + "@walmart/time-clock-mini-app": "npm:2.374.0" "@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch" "@walmart/welcomeme-mini-app": "npm:0.90.3"
TCMA v2.374.0
TCMA v2.374.0
bb4f74e76b45b8bf38d0dda0b490c41eacc37a54
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ExpandedTeamShift/ExpandedTeamShift.tsx @@ -1,8 +1,10 @@ import React from 'react'; +import { View } from 'react-native'; import { ShiftFilterList } from '../ShiftFilter/ShiftFilterList'; import { HubHeader } from '../../../Store'; import { TeamSearchInput } from '../../../Shared/Components/SearchInput/SearchInput'; import EditSavedTeams from '../EditSavedTeams/EditSavedTeams'; +import styles from './style'; // import { TouchableOpacity, View } from 'react-native'; // import { ShiftFilterStyles } from './style'; import { Divider } from '@walmart/gtp-shared-components'; @@ -55,15 +57,17 @@ export const ExpandedTeamShift = () => { }, ]; return ( - <> + <View style={styles.container}> <ShiftFilterList filterListData={shiftdata} handleSelectShift={() => {}} /> - <Divider /> + <Divider UNSAFE_style={styles.divider} /> <HubHeader title='Teams' subText='Choose the team or group you would like to view' + backgroundColor='white' + textColor='black' /> <TeamSearchInput handleChange={() => {}} /> <EditSavedTeams handleEdit={() => {}} /> @@ -71,7 +75,9 @@ export const ExpandedTeamShift = () => { <HubHeader title='Teams' subText='Choose the team or group you would like to view' + backgroundColor='white' + textColor='black' /> - </> + </View> ); }; --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ExpandedTeamShift/style.ts @@ -0,0 +1,12 @@ +import { StyleSheet } from 'react-native'; + +export default StyleSheet.create({ + container: { + marginLeft: 16, + marginRight: 16, + }, + divider: { + marginTop: 40, + marginBottom: 40, + }, +});
Adding expanded team shift component
Adding expanded team shift component
8c7a03e015cad3df9cd27d8706207344c426756c
--- jest.config.js @@ -9,10 +9,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 14.11, - branches: 3.55, - functions: 6.03, - lines: 14.32, + statements: 14.08, + branches: 3.53, + functions: 6.02, + lines: 14.29, }, }, transformIgnorePatterns: [ --- jest.config.js @@ -9,10 +9,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 14.11, - branches: 3.55, - functions: 6.03, - lines: 14.32, + statements: 14.08, + branches: 3.53, + functions: 6.02, + lines: 14.29, }, }, transformIgnorePatterns: [
merge changes
merge changes
72e66e95dc4d09808a56fb04d04b6ad4a1d2a8a7
--- package-lock.json @@ -61,6 +61,7 @@ "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", + "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.21", "@walmart/payrollsolution_miniapp": "0.130.23", "@walmart/price-changes-mini-app": "1.6.10", @@ -5605,6 +5606,25 @@ "moment": "^2.24.0" } }, + "node_modules/@walmart/OneWalmart-MiniApp": { + "version": "1.0.12", + "resolved": "https://npme.walmart.com/@walmart/OneWalmart-MiniApp/-/OneWalmart-MiniApp-1.0.12.tgz", + "integrity": "sha512-QW8uD3fnP0S1sI1SSaOOFdsRhLMrd+nV6VnCDh33s9eTHRiegyi2KYl51N6juKXI7zJXGUuehFla/IA2Ch+VWQ==", + "dependencies": { + "react-native-fast-image": "^8.5.11" + }, + "peerDependencies": { + "@react-navigation/native": "^6.0.0", + "@react-navigation/stack": "^6.1.0", + "@walmart/core-services": "^1.0.3", + "@walmart/gtp-shared-components": ">=1.8.5", + "@walmart/redux-store": "^1.0.12", + "react": "^17.0.2", + "react-native": "^0.67.4", + "react-redux": "^7.2.1", + "redux": "^4.1.2" + } + }, "node_modules/@walmart/pay-stub-miniapp": { "version": "0.9.21", "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.21.tgz", @@ -25272,6 +25292,14 @@ "resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.4.tgz", "integrity": "sha1-696avfrTbdFORoktjdt8w3uZ9hw=" }, + "@walmart/OneWalmart-MiniApp": { + "version": "1.0.12", + "resolved": "https://npme.walmart.com/@walmart/OneWalmart-MiniApp/-/OneWalmart-MiniApp-1.0.12.tgz", + "integrity": "sha512-QW8uD3fnP0S1sI1SSaOOFdsRhLMrd+nV6VnCDh33s9eTHRiegyi2KYl51N6juKXI7zJXGUuehFla/IA2Ch+VWQ==", + "requires": { + "react-native-fast-image": "^8.5.11" + } + }, "@walmart/pay-stub-miniapp": { "version": "0.9.21", "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.21.tgz", --- package.json @@ -73,6 +73,7 @@ "@react-navigation/stack": "^6.1.0", "@sharcoux/slider": "^6.1.1", "@terrylinla/react-native-sketch-canvas": "0.8.0", + "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/allspark-graphql-client": "^0.1.0", "@walmart/allspark-home-mini-app": "0.6.14", "@walmart/allspark-neon-core": "0.1.31",
added package
added package
8ee0b834814e1ad58e319b9d38ff4ee900726115
--- packages/allspark-authentication/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.1.7](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-authentication@7.1.6...@walmart/allspark-authentication@7.1.7) (2025-12-11) + +**Note:** Version bump only for package @walmart/allspark-authentication + ## [7.1.6](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-authentication@7.1.5...@walmart/allspark-authentication@7.1.6) (2025-12-09) **Note:** Version bump only for package @walmart/allspark-authentication --- packages/allspark-authentication/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-authentication", - "version": "7.1.6", + "version": "7.1.7", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.25.15](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.14...@walmart/allspark-foundation-hub@1.25.15) (2025-12-11) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.25.14](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.13...@walmart/allspark-foundation-hub@1.25.14) (2025-12-11) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.25.14", + "version": "1.25.15", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.16.13](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.16.12...@walmart/allspark-foundation@7.16.13) (2025-12-11) + +**Note:** Version bump only for package @walmart/allspark-foundation + ## [7.16.12](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.16.11...@walmart/allspark-foundation@7.16.12) (2025-12-11) ### Bug Fixes --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.16.12", + "version": "7.16.13", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/allspark-utils/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [7.3.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-utils@7.2.1...@walmart/allspark-utils@7.3.0) (2025-12-11) + +### Features + +- ALLSPARK-7410 add separate header to layout ([#526](https://gecgithub01.walmart.com/allspark/allspark/issues/526)) ([b45b76d](https://gecgithub01.walmart.com/allspark/allspark/commit/b45b76d337c4b52e502a105f8b88f1c636dde2a6)) + ## [7.2.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-utils@7.2.0...@walmart/allspark-utils@7.2.1) (2025-12-09) ### Reverts --- packages/allspark-utils/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-utils", - "version": "7.2.1", + "version": "7.3.0", "description": "", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", --- packages/my-walmart-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.7.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.7.0...@walmart/my-walmart-hub@1.7.1) (2025-12-11) + +**Note:** Version bump only for package @walmart/my-walmart-hub + # [1.7.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.6.12...@walmart/my-walmart-hub@1.7.0) (2025-12-11) ### Features --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.7.0", + "version": "1.7.1", "description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-authentication@7.1.7 - @walmart/allspark-foundation@7.16.13 - @walmart/allspark-foundation-hub@1.25.15 - @walmart/allspark-utils@7.3.0 - @walmart/my-walmart-hub@1.7.1
815771c619d72eedd9f62bd109d47f87f5dfba7f
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts @@ -18,6 +18,20 @@ export const enUS = { 'Shift A1 is selected by default, but you can change it at any time.', mandatoryShiftError: 'Select at least one shift to continue.', }, + expandedTeamShiftModal: { + shiftFilter: { + title: 'Shifts', + subText: 'Select one or more shifts.', + }, + Teams: { + title: 'Teams', + subText: 'Choose the team or group you would like to view', + }, + AllTeams: { + title: 'All Teams', + subText: 'View any team, anytime, by selecting one below.', + }, + }, }; export const esMX = { @@ -40,4 +54,19 @@ export const esMX = { 'El cambio A1 está seleccionado de forma predeterminada, pero puede cambiarlo en cualquier momento.', mandatoryShiftError: 'Seleccione al menos un turno para continuar.', }, + expandedTeamShiftModal: { + shiftFilter: { + title: 'Cambios', + subText: 'Seleccione uno o más turnos.', + }, + Teams: { + title: 'Equipos', + subText: 'Elija el equipo o grupo que desea ver', + }, + AllTeams: { + title: 'Todos los equipos', + subText: + 'Vea cualquier equipo, en cualquier momento, seleccionando uno a continuación.', + }, + }, };
Adding translations
Adding translations
c7be0ec2b2a838b4e882b110cadb85402da3fc26
--- __tests__/whatsNew/WhatsNewScreenTest.tsx @@ -1,7 +1,12 @@ import React from 'react'; import {useSelector} from 'react-redux'; import {create} from 'react-test-renderer'; -import {WhatsNewScreen, EmptyState} from '../../src/whatsNew/WhatsNewScreen'; +import { + WhatsNewScreen, + EmptyState, + combiner, + getState, +} from '../../src/whatsNew/WhatsNewScreen'; import {whatsNewData, whatsNewDataV2} from './data.mock'; const mockUseSelector = useSelector as jest.Mock; @@ -25,6 +30,16 @@ test('EmptyState', () => { expect(create(<EmptyState />).toJSON()).toMatchSnapshot(); }); +test('combiner', () => { + const result = combiner({state: 'state'}, true); + expect(result).toBe(undefined); +}); + +test('getState', () => { + const result = getState({state: 'state'}); + expect(result).toStrictEqual({state: 'state'}); +}); + describe('WhatsNewScreen', () => { mockUseSelector.mockReturnValueOnce(whatsNewData); const component = create(<WhatsNewScreen />); --- ios/AllSpark.xcodeproj/project.pbxproj @@ -536,7 +536,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = D994751F557438D6B85DBCC2 /* Pods-AllSpark.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; @@ -582,7 +582,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 99D7C873A014A98046591001 /* Pods-AllSpark.release.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; --- ios/AllSpark/Info.plist @@ -109,7 +109,7 @@ <string>remote-notification</string> </array> <key>UILaunchStoryboardName</key> - <string>LaunchScreen-Beta</string> + <string>LaunchScreen-Dev</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string> --- src/home/components/TaskCard/index.tsx @@ -33,7 +33,7 @@ export const TaskCard: FC<TaskCardProps> = (props) => { const showTaskClockStatus = useHomeAppConfig('showTaskClockStatus', true); const tmsVersion = useHomeAppConfig('tmsVersion', TMS_VERSION_2); - return true ? ( + return isClockedIn ? ( <View style={[styles.container, style]} testID='taskCard'> <Headline style={styles.titleText}> {t('teams.teamTaskTitle', {context})} --- src/whatsNew/WhatsNewScreen.tsx @@ -25,6 +25,7 @@ import { import {BackgroundImage, WhatsNewScreenStyles as styles} from './styles'; import {renderWhatsNewItem, renderWhatsNewSection} from './utils'; import {GlobalState, SiteSelectors} from '@walmart/redux-store'; +import {createSelector} from 'reselect'; const keyExtractor = (item: any, index: number) => String(index); @@ -50,14 +51,19 @@ export const EmptyState = () => { return <Text style={styles.whatsNextText}>Not found</Text>; }; +export const getState = (state: GlobalState) => state; +export const combiner = (state: GlobalState, isDC: boolean) => + getWhatsNew(state, isDC); + +export const getWhatsNewWithIsDC = createSelector( + [getState, SiteSelectors.isSiteDistributionCenter], + combiner, +); + export const WhatsNewScreen = () => { const [translate] = useTranslation('common'); - const {whatsNew, whatsNext, restrictions, version} = useSelector( - (state: GlobalState) => { - const isDC = SiteSelectors.isSiteDistributionCenter(state); - return getWhatsNew(state, isDC); - }, - ); + const {whatsNew, whatsNext, restrictions, version} = + useSelector(getWhatsNewWithIsDC); const renderSectionList = version === '2'; return (
chore: adding tests
chore: adding tests
ed2cba42aba5586cef6904d5e4b6032f045922a1
--- packages/allspark-foundation-hub/__tests__/supplyChain/AllSupplyTeamsList.test.tsx @@ -140,7 +140,7 @@ describe('AllSupplyTeamList', () => { <AllSupplyTeamList {...mockProps} isModal={false} /> ); expect(toJSON()).toMatchSnapshot(); - expect(queryByTestId('edit-saved-teams')).toBeNull(); + expect(queryByTestId('view-edit-saved-teams')).toBeNull(); }); it('should call handleSearchInput when search input changes', () => { --- packages/allspark-foundation-hub/__tests__/supplyChain/Modals/UpdateTeamsModal.test.tsx @@ -134,7 +134,7 @@ describe('UpdateTeamsModal', () => { it('renders ScrollView with correct props', () => { render(<UpdateTeamsModal modal={closeModalMock} />); - const scrollView = screen.getByTestId('scroll-view'); + const scrollView = screen.getByTestId('scroll-view-update-teams'); expect(scrollView.props.stickyHeaderIndices).toEqual([0]); expect(screen.toJSON()).toMatchSnapshot(); }); @@ -162,7 +162,7 @@ describe('UpdateTeamsModal', () => { render(<UpdateTeamsModal modal={closeModalMock} />); const pillTeamsList = screen.findByTestId('pill-team-list-item'); expect(pillTeamsList).toBeTruthy(); - const editSavedTeams = screen.findByTestId('edit-saved-teams'); + const editSavedTeams = screen.findByTestId('view-edit-saved-teams'); expect(editSavedTeams).toBeTruthy(); }); }); --- packages/allspark-foundation-hub/__tests__/supplyChain/Modals/__snapshots__/UpdateTeamsModal.test.tsx.snap @@ -249,7 +249,7 @@ exports[`UpdateTeamsModal renders ScrollView with correct props 1`] = ` "width": 750, } } - testID="scroll-view" + testID="scroll-view-update-teams" > <View> <View @@ -585,7 +585,7 @@ exports[`UpdateTeamsModal renders UpdateTeamsModal correctly 1`] = ` "width": 750, } } - testID="scroll-view" + testID="scroll-view-update-teams" > <View> <View --- packages/allspark-foundation-hub/src/SupplyChain/Modals/UpdateTeamsModal/UpdateTeamsModal.tsx @@ -202,7 +202,7 @@ export const UpdateTeamsModal = ({ return ( <> <ScrollView - testID='scroll-view' + testID='scroll-view-update-teams' stickyHeaderIndices={[0]} style={styles.rootContainer} ref={scrollViewRef}
updated test ids
updated test ids
d51a69a2353571fc028055c96fb3a17fa7f0be52
--- package.json @@ -111,7 +111,7 @@ "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.11.3", "@walmart/inbox-mini-app": "0.94.6", - "@walmart/iteminfo-mini-app": "7.15.10", + "@walmart/iteminfo-mini-app": "7.15.11", "@walmart/learning-mini-app": "20.0.23", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.1.4", --- yarn.lock @@ -6293,9 +6293,9 @@ __metadata: languageName: node linkType: hard -"@walmart/iteminfo-mini-app@npm:7.15.10": - version: 7.15.10 - resolution: "@walmart/iteminfo-mini-app@npm:7.15.10" +"@walmart/iteminfo-mini-app@npm:7.15.11": + version: 7.15.11 + resolution: "@walmart/iteminfo-mini-app@npm:7.15.11" peerDependencies: "@apollo/client": ^3.7.3 "@react-native-community/art": 1.2.0 @@ -6339,7 +6339,7 @@ __metadata: reselect: ">=4.1.0" uuid: ">=3.3.2" victory-native: ">=36.5.0" - checksum: 10c0/9fae430edfe809715d3a9489e6de81c8c0646e27c2b95f86697ee378cfa29fb18b6bf2f2a3124b6344a08a675c0a06c4c5f871be71af2211a452272454e52c93 + checksum: 10c0/9d10e3ed7276a368e7233f0ff9301fc011b9716035bd441b5870d0e7bd43bdd94ae5f593b02e68bc27f45149e0726b948b929ed22b2e50e031b353e970e38064 languageName: node linkType: hard @@ -7827,7 +7827,7 @@ __metadata: "@walmart/impersonation-mini-app": "npm:1.20.8" "@walmart/ims-print-services-ui": "npm:2.11.3" "@walmart/inbox-mini-app": "npm:0.94.6" - "@walmart/iteminfo-mini-app": "npm:7.15.10" + "@walmart/iteminfo-mini-app": "npm:7.15.11" "@walmart/learning-mini-app": "npm:20.0.23" "@walmart/manager-approvals-miniapp": "npm:0.2.4" "@walmart/me-at-walmart-athena-queries": "npm:6.1.4"
Chore update to iteminfo-mini-app@npm:7.15.11
Chore update to iteminfo-mini-app@npm:7.15.11
edfbe1d5c022653bf7904de3f5ab46382d7fb803
--- docs/CHANGELOG.md @@ -1,3 +1,34 @@ +# [2.18.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.17.0...v2.18.0) (2025-03-28) + + +### Bug Fixes + +* **bug:** fix issue where chip was only updating after second click ([dc0d9fe](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/dc0d9fe5c0a9de8e7e2831e208a342e729cfdeea)) +* **bug:** fix tests ([fecbf02](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/fecbf02334aa0c2ee4fa38db8c852c0d6ed5f4a3)) +* **bug:** fix tests ([70103b8](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/70103b8e35f28abf807ec33e053decb4b59e67bd)) +* **bug:** fix tests for the AssociateListItem.test.tsx test file ([8a29b38](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/8a29b38b7c73540f7449e31c8546c875f489f0aa)) +* **bug:** fix tests for the RosterFiltersAndInfo.test.tsx test file ([57f6296](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/57f6296b720962b8f2928cf855463fa2d214b3ef)) +* **bug:** fix tests for the ShiftSwitcherModal.test.tsx test file ([74eb6ac](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/74eb6ac161817116cc19f84a0eda763e80cab5db)) +* **bug:** fix tests for the teams.test.ts test file ([0993058](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/0993058bb9491dd8df4a124374c039039e186f5d)) +* **bug:** fixing failing AllTeamsScreen.test.tsx tests ([18bf133](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/18bf13365b765785789c6765f985d27ae93dde0f)) +* **bug:** fixing failing ListEmptyComponent.test.tsx tests ([caeebe0](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/caeebe057f10c726a24a495e67e72e67e36b5058)) +* **bug:** fixing failing rosterDetail tests ([b77c410](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b77c4101d6887746083b3cce62ca7ffce050a9b8)) +* **bug:** fixing failing WarningBanner.test.tsx tests ([3d3c56e](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/3d3c56e76acae9d158dc2a1a819ce834d43f7c52)) +* **bug:** persist selected filter when reloading roster screen ([559c18b](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/559c18bc46ae51f35deb3c338496a7695ea595ad)) +* **bug:** revert changes not specific to this bug fix ([7e20222](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/7e202221ef9070f26e7a4c552369ee7ee35f2bcb)) +* **bug:** revert yarn.lock changes ([b9ae6cf](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b9ae6cf3b8d073f5ce24d4172551f54c37e9099c)) +* **bug:** update yarn.lock ([9c5d9e0](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/9c5d9e0a7ff1edf4a745bf12a433a38e471028c4)) +* **ui:** add gemfile for code setup ([89f0ad1](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/89f0ad1521f384f3d625c594a1b1f1a027cd8946)) +* **ui:** add gemfile for code setup ([e18c788](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/e18c78869f14d7404dc021c47fce07f9330825fd)) +* **ui:** update the tsconfig to exclude reactotron ([0abc4bc](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/0abc4bc02ed2bd2573269de8f419331307c65b4f)) + + +### Features + +* **ui:** add reactotron ([89c427c](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/89c427caa6a07d291a5ada43981e382432acb723)) +* **ui:** fix broken tests on develop ([6b44618](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/6b4461821e7ca75df98ee70bef6160d507c4ceab)) +* **ui:** Rn version upgrade to v74 ([37c8795](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/37c87954b5b7d78ae8eb98686f23ea3c4cd9b488)) + # [2.17.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.16.0...v2.17.0) (2025-03-21) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.17.0", + "version": "2.18.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 2.18.0 [skip ci]
chore(release): 2.18.0 [skip ci] # [2.18.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.17.0...v2.18.0) (2025-03-28) ### Bug Fixes * **bug:** fix issue where chip was only updating after second click ([dc0d9fe](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/dc0d9fe5c0a9de8e7e2831e208a342e729cfdeea)) * **bug:** fix tests ([fecbf02](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/fecbf02334aa0c2ee4fa38db8c852c0d6ed5f4a3)) * **bug:** fix tests ([70103b8](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/70103b8e35f28abf807ec33e053decb4b59e67bd)) * **bug:** fix tests for the AssociateListItem.test.tsx test file ([8a29b38](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/8a29b38b7c73540f7449e31c8546c875f489f0aa)) * **bug:** fix tests for the RosterFiltersAndInfo.test.tsx test file ([57f6296](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/57f6296b720962b8f2928cf855463fa2d214b3ef)) * **bug:** fix tests for the ShiftSwitcherModal.test.tsx test file ([74eb6ac](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/74eb6ac161817116cc19f84a0eda763e80cab5db)) * **bug:** fix tests for the teams.test.ts test file ([0993058](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/0993058bb9491dd8df4a124374c039039e186f5d)) * **bug:** fixing failing AllTeamsScreen.test.tsx tests ([18bf133](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/18bf13365b765785789c6765f985d27ae93dde0f)) * **bug:** fixing failing ListEmptyComponent.test.tsx tests ([caeebe0](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/caeebe057f10c726a24a495e67e72e67e36b5058)) * **bug:** fixing failing rosterDetail tests ([b77c410](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b77c4101d6887746083b3cce62ca7ffce050a9b8)) * **bug:** fixing failing WarningBanner.test.tsx tests ([3d3c56e](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/3d3c56e76acae9d158dc2a1a819ce834d43f7c52)) * **bug:** persist selected filter when reloading roster screen ([559c18b](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/559c18bc46ae51f35deb3c338496a7695ea595ad)) * **bug:** revert changes not specific to this bug fix ([7e20222](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/7e202221ef9070f26e7a4c552369ee7ee35f2bcb)) * **bug:** revert yarn.lock changes ([b9ae6cf](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b9ae6cf3b8d073f5ce24d4172551f54c37e9099c)) * **bug:** update yarn.lock ([9c5d9e0](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/9c5d9e0a7ff1edf4a745bf12a433a38e471028c4)) * **ui:** add gemfile for code setup ([89f0ad1](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/89f0ad1521f384f3d625c594a1b1f1a027cd8946)) * **ui:** add gemfile for code setup ([e18c788](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/e18c78869f14d7404dc021c47fce07f9330825fd)) * **ui:** update the tsconfig to exclude reactotron ([0abc4bc](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/0abc4bc02ed2bd2573269de8f419331307c65b4f)) ### Features * **ui:** add reactotron ([89c427c](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/89c427caa6a07d291a5ada43981e382432acb723)) * **ui:** fix broken tests on develop ([6b44618](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/6b4461821e7ca75df98ee70bef6160d507c4ceab)) * **ui:** Rn version upgrade to v74 ([37c8795](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/37c87954b5b7d78ae8eb98686f23ea3c4cd9b488))
b58c5780663d215087e3a4b015c76c0336ea4ada
--- package.json @@ -148,7 +148,7 @@ "@walmart/time-clock-mini-app": "2.395.0", "@walmart/topstock-mini-app": "1.12.0", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch", - "@walmart/welcomeme-mini-app": "0.94.0", + "@walmart/welcomeme-mini-app": "0.95.1", "@walmart/wfm-ui": "0.8.12", "@walmart/wm-plus-mini-app": "0.12.20", "@walmart/wmconnect-mini-app": "2.3.0", --- yarn.lock @@ -7346,9 +7346,9 @@ __metadata: languageName: node linkType: hard -"@walmart/welcomeme-mini-app@npm:0.94.0": - version: 0.94.0 - resolution: "@walmart/welcomeme-mini-app@npm:0.94.0" +"@walmart/welcomeme-mini-app@npm:0.95.1": + version: 0.95.1 + resolution: "@walmart/welcomeme-mini-app@npm:0.95.1" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -7356,7 +7356,7 @@ __metadata: "@walmart/gtp-shared-components": ^2.0.0 react: ^18.2.0 react-native: ~0.70.5 - checksum: 10c0/0e43f0af8c487bfe5546c415a5c71e919c7d2d5f8d5ddde80dc39e21a860afa58bcb446669bfe11494268cc0848743d724bd67cda2a4e841e263f1ca7ff40129 + checksum: 10c0/7b00fa222508ef689c09238924c73970813c0fd66c58d15ede5cdddbc5d5caac44cfa863ff96d47ea65c0d8e8aa99e4d9a68887fb734bb773c5c85e3a95d71aa languageName: node linkType: hard @@ -7863,7 +7863,7 @@ __metadata: "@walmart/time-clock-mini-app": "npm:2.395.0" "@walmart/topstock-mini-app": "npm:1.12.0" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch" - "@walmart/welcomeme-mini-app": "npm:0.94.0" + "@walmart/welcomeme-mini-app": "npm:0.95.1" "@walmart/wfm-ui": "npm:0.8.12" "@walmart/wm-plus-mini-app": "npm:0.12.20" "@walmart/wmconnect-mini-app": "npm:2.3.0"
feat: package bump for welcome me accessibility fix
feat: package bump for welcome me accessibility fix
ca2d86fb4284af8b763321cd0764cb0d7a7c29ea
--- package.json @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.47.0", + "@walmart/roster-mini-app": "2.49.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.47.0" + "@walmart/roster-mini-app": "npm:2.49.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.47.0": - version: 2.47.0 - resolution: "@walmart/roster-mini-app@npm:2.47.0" +"@walmart/roster-mini-app@npm:2.49.0": + version: 2.49.0 + resolution: "@walmart/roster-mini-app@npm:2.49.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/128561cf1f6fa05b95bce3fbda227f2ca7b0802b5188e2395e76de8363e04427376e5bb9373ec65f8814da4e037f033d04a1f5da5329e7ab60117f082a0c599f + checksum: 10c0/597632f83c2c7381e89c54cac842fcd13068cfe1406bd22aabee4ef88c3cf3130509de8f2c508c11834e4e752fee4a16c656b1f0c8edc57e8811044fcd36eb07 languageName: node linkType: hard
Update roster version and count changes
Update roster version and count changes
d45eaba7fad30eec199dc318c5942ac8b6422c52
--- core/__tests__/features/inboxTest.tsx @@ -5,6 +5,7 @@ import {fireEvent, render} from '@testing-library/react-native'; import {useNavigation} from '@react-navigation/native'; import {DefaultNotificationTile} from '@walmart/ui-components'; import {InboxContainer} from '@walmart/me-at-walmart-common'; +import {useOneClick} from '../../src/oneClick/useOneClick'; import { registerInboxComponents, @@ -13,6 +14,7 @@ import { const navigation = useNavigation(); const mockUseSelector = useSelector as jest.Mock; +jest.mock('../../src/oneClick/useOneClick'); describe('InboxHeaderRight', () => { test('has expected behavior', () => { @@ -22,6 +24,7 @@ describe('InboxHeaderRight', () => { // With Badge Count (useBadgeCount as jest.Mock).mockReturnValueOnce({showBadge: true}); mockUseSelector.mockReturnValueOnce(true); //enabled + (useOneClick as jest.Mock).mockReturnValue(() => ({enable: true})); //!enabled const {getByTestId, queryByTestId, update} = render(<InboxHeaderRight />); expect(queryByTestId('headerBadge')).toBeTruthy(); @@ -32,12 +35,14 @@ describe('InboxHeaderRight', () => { // Without Badge Count (useBadgeCount as jest.Mock).mockReturnValueOnce({showBadge: false}); mockUseSelector.mockReturnValueOnce(true); //enabled + (useOneClick as jest.Mock).mockReturnValue(() => ({enable: true})); //!enabled update(<InboxHeaderRight />); expect(queryByTestId('headerBadge')).toBeFalsy(); // Disabled (useBadgeCount as jest.Mock).mockReturnValueOnce({showBadge: true}); - mockUseSelector.mockReturnValueOnce(false); //enabled + (useOneClick as jest.Mock).mockReturnValue(() => ({enable: false})); //!disabled + mockUseSelector.mockReturnValueOnce(false); //!disabled update(<InboxHeaderRight />); expect(queryByTestId('inboxHeaderIcon')).toBeFalsy(); }); --- core/src/features/inbox.tsx @@ -15,6 +15,8 @@ import { HomeHeaderRightContainer, InboxContainer, } from '@walmart/me-at-walmart-common'; +import {MINI_APPS} from '../oneClick/MiniApps'; +import {useOneClick} from '../oneClick/useOneClick'; const styles = StyleSheet.create({ headerBadge: { @@ -43,16 +45,18 @@ export const createInboxHeaderRight = const navigtion = useNavigation(); const {showBadge} = useBadgeCount(); const enabled = useSelector(getInboxHeaderEnabled); + const oneClick = useOneClick(MINI_APPS.INBOX); + const isInboxEnabled = enabled && oneClick.enable; const onPress = () => { TelemetryService.getContainerInstance().logEvent( 'inbox_icon_clicked_header', {}, ); - navigtion.navigate('inbox'); + navigtion.navigate(MINI_APPS.INBOX); }; - return enabled ? ( + return isInboxEnabled ? ( <TouchableOpacity testID='inboxHeaderIcon' onPress={onPress}
Added oneclick for inboxicon
Added oneclick for inboxicon
af8b149b7eefd16f8a3b73871194ad0007c1c749
--- .looper.multibranch.yml @@ -27,6 +27,8 @@ envs: ANDROID_GRADLE_PATH: ./android/app/build.gradle IOS_BASE_PATH: ./ios ANDROID_BASE_PATH: ./android + TEMPLATE_REPO_BRANCH: feature/allspark-6443-integrate-ruler + ANALYZE_PROCESS_ENABLED: true us-market: variables: --- app.config.US.ts @@ -291,6 +291,7 @@ const CONFIG: ExpoConfig = { ExpoPlugins.withWebexSDK, ExpoPlugins.withWifiStoreLocator, ExpoPlugins.withWorkManagerInitializer, + './plugins/withRuler', // Custom plugin for Ruler integration ], // [ // "expo-dev-launcher", --- plugins/withGradleDependencies.ts @@ -0,0 +1,45 @@ +import { + ConfigPlugin, + withProjectBuildGradle, + WarningAggregator, +} from '@expo/config-plugins'; + +import {mergeContents} from '@expo/config-plugins/build/utils/generateCode'; + +type GradleDependencyProps = { + tag: string; + dependencies: string[]; +}; + +const withGradleDependencies: ConfigPlugin<GradleDependencyProps> = ( + config, + props +) => { + return withProjectBuildGradle(config, (config) => { + if (config.modResults.language !== 'groovy') { + WarningAggregator.addWarningAndroid( + 'withProjectGradleDependencies', + 'Cannot automatically configure project build.gradle if it\'s not groovy' + ); + return config; + } + + console.log( + '[ ' + props.tag + '] applying dependencies to android/build.gradle', + props + ); + + config.modResults.contents = mergeContents({ + tag: props.tag, + src: config.modResults.contents, + newSrc: props.dependencies.join('\n'), + anchor: /dependencies(?:\s+)?\{/, + offset: 1, + comment: '//', + }).contents; + + return config; + }); +}; + +export default withGradleDependencies; --- plugins/withRuler.ts @@ -0,0 +1,39 @@ +import {ConfigPlugin, withAppBuildGradle} from '@expo/config-plugins'; +import withGradleDependencies from './withGradleDependencies'; +import {mergeContents} from '@expo/config-plugins/build/utils/generateCode'; + + +const withRuler: ConfigPlugin = (config) => { + config = withGradleDependencies(config, { + tag: 'ruler-dependencies', + dependencies: ['classpath \'com.spotify.ruler:ruler-gradle-plugin:2.0.0-beta-3\''], + }); + + config = withAppBuildGradle(config, (config) => { + const plugins = [ + '// @generated by withRuler', + 'apply plugin: "com.spotify.ruler"', + `ruler { + abi.set("arm64-v8a") + locale.set("en") + screenDensity.set(480) + sdkVersion.set(34) + }` + ]; + + config.modResults.contents = mergeContents({ + tag: 'ruler-plugins', + src: config.modResults.contents, + newSrc: plugins.join('\n'), + anchor: '', + offset: 1, + comment: '//', + }).contents; + + return config; + }); + + return config; +}; + +export default withRuler;
feat(appsizing): allspark-6443 added plugins for ruler and updated target branch for testing CI
feat(appsizing): allspark-6443 added plugins for ruler and updated target branch for testing CI
579a7d2fde8eb487d5a3b5da124a9f07317535e3
--- example/src/teamHub/tempComponentForTesting/Images/apparel.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/apparel.png differ --- example/src/teamHub/tempComponentForTesting/Images/asset_protection.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/asset_protection.png differ --- example/src/teamHub/tempComponentForTesting/Images/auto_care_center.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/auto_care_center.png differ --- example/src/teamHub/tempComponentForTesting/Images/deli_bakery.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/deli_bakery.png differ --- example/src/teamHub/tempComponentForTesting/Images/digital.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/digital.png differ --- example/src/teamHub/tempComponentForTesting/Images/entertainment.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/entertainment.png differ --- example/src/teamHub/tempComponentForTesting/Images/food_consumables.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/food_consumables.png differ --- example/src/teamHub/tempComponentForTesting/Images/front_end.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/front_end.png differ --- example/src/teamHub/tempComponentForTesting/Images/fuel.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/fuel.png differ --- example/src/teamHub/tempComponentForTesting/Images/hardlines.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/hardlines.png differ --- example/src/teamHub/tempComponentForTesting/Images/health_beauty.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/health_beauty.png differ --- example/src/teamHub/tempComponentForTesting/Images/home.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/home.png differ --- example/src/teamHub/tempComponentForTesting/Images/index.tsx @@ -0,0 +1,27 @@ +import {TeamImageNames} from '../TeamSelectionListItem'; + +export const Images: Record<TeamImageNames, any> = { + adminAndSupport: require('./management.png'), + apparel: require('./apparel.png'), + assetProtection: require('./asset_protection.png'), + autoCareCenter: require('./auto_care_center.png'), + deliBakery: require('./deli_bakery.png'), + digital: require('./digital.png'), + digitalOvernight: require('./digital.png'), + entertainment: require('./entertainment.png'), + foodConsumables: require('./food_consumables.png'), + frontEnd: require('./front_end.png'), + fuel: require('./fuel.png'), + hardlines: require('./hardlines.png'), + healthBeauty: require('./health_beauty.png'), + home: require('./home.png'), + management: require('./management.png'), + meatProduce: require('./meat_produce.png'), + pharmacy: require('./pharmacy.png'), + remodel: require('./remodel.png'), + seasonal: require('./seasonal.png'), + stockingDayOne: require('./stocking_day_one.png'), + stockingDayTwo: require('./stocking_day_two.png'), + stockingOvernight: require('./stocking_overnight.png'), + visionCenter: require('./vision_center.png'), +}; --- example/src/teamHub/tempComponentForTesting/Images/management.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/management.png differ --- example/src/teamHub/tempComponentForTesting/Images/meat_produce.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/meat_produce.png differ --- example/src/teamHub/tempComponentForTesting/Images/pharmacy.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/pharmacy.png differ --- example/src/teamHub/tempComponentForTesting/Images/remodel.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/remodel.png differ --- example/src/teamHub/tempComponentForTesting/Images/seasonal.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/seasonal.png differ --- example/src/teamHub/tempComponentForTesting/Images/stocking_day_one.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/stocking_day_one.png differ --- example/src/teamHub/tempComponentForTesting/Images/stocking_day_two.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/stocking_day_two.png differ --- example/src/teamHub/tempComponentForTesting/Images/stocking_overnight.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/stocking_overnight.png differ --- example/src/teamHub/tempComponentForTesting/Images/vision_center.png Binary files /dev/null and b/example/src/teamHub/tempComponentForTesting/Images/vision_center.png differ --- example/src/teamHub/tempComponentForTesting/styles.ts @@ -5,8 +5,7 @@ export const teamSelectionListItemStyles = (hasBorder: boolean) => StyleSheet.create({ container: { display: 'flex', - paddingTop: 16, - paddingBottom: 16, + padding: 16, justifyContent: 'space-between', alignItems: 'center', width: '100%',
feat: added images
feat: added images
8cc2f2688893ca59d186763c47b8c3ca578cdd2c
--- .looper.yml @@ -30,14 +30,23 @@ flows: default: - call: pr + yarnInstall: + - (name Yarn Install) corepack enable + - (name Yarn Version) yarn --version + - (name Install Dependencies) yarn install + + preparePackages: + - call: yarnInstall + - (name Build Packages) yarn run build + pr: - - (name Boostrap) npm install + - call: yarnInstall - (name Lint) npm run lint - (name Build and Test) npm run test:build preparePublish: - - (name Install Dependencies) npm install - - (name Build) npm run build + - call: yarnInstall + - call: preparePackages - (name Test) npm run test publishPatch:
chore: update looper for yarn
chore: update looper for yarn
bd725573fc0aa54f573e4c6fca9b04a74c490368
--- packages/associate-exp-hub-hub/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.15.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.14.0...@walmart/associate-exp-hub-hub@2.15.0) (2025-11-28) + +### Features + +- **ui:** update tests ([b25e8c6](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/b25e8c6387c48dbdf1ae0e45095d71a30429d7dc)) + # [2.14.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.13.3...@walmart/associate-exp-hub-hub@2.14.0) (2025-11-21) ### Features --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.14.0", + "version": "2.15.0", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.9.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.8.0...@walmart/associate-exp-hub-mini-app@1.9.0) (2025-11-28) + +### Features + +- **ui:** update tests ([b25e8c6](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/b25e8c6387c48dbdf1ae0e45095d71a30429d7dc)) + # [1.8.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.7.0...@walmart/associate-exp-hub-mini-app@1.8.0) (2025-11-21) ### Features --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.8.0", + "version": "1.9.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.15.0 - @walmart/associate-exp-hub-mini-app@1.9.0
6e100fce63cd2885f70743adb54e2e1b2437df93
--- package-lock.json @@ -68,7 +68,7 @@ "@walmart/push-to-talk-mini-app": "1.9.22", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", - "@walmart/react-native-logger": "1.31.0-rc.1", + "@walmart/react-native-logger": "1.33.0", "@walmart/react-native-scanner-3.0": "0.1.31", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", @@ -5772,7 +5772,9 @@ } }, "node_modules/@walmart/react-native-logger": { - "version": "1.31.0-rc.1", + "version": "1.33.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.33.0.tgz", + "integrity": "sha512-UKaoK+rj4O2p8/EmywR+tRDmn/r9UGPYAfkdAlbQs+DcleZVH7zf0AeMChVRc+aj5iFprbzVMWkYU9a43EHUDg==", "peerDependencies": { "react": "^16.8.1", "react-native": ">=0.60.0-rc.0 <1.0.x" @@ -25217,7 +25219,9 @@ "version": "0.2.0" }, "@walmart/react-native-logger": { - "version": "1.31.0-rc.1" + "version": "1.33.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.33.0.tgz", + "integrity": "sha512-UKaoK+rj4O2p8/EmywR+tRDmn/r9UGPYAfkdAlbQs+DcleZVH7zf0AeMChVRc+aj5iFprbzVMWkYU9a43EHUDg==" }, "@walmart/react-native-scanner-3.0": { "version": "0.1.31" --- package.json @@ -110,7 +110,7 @@ "@walmart/push-to-talk-mini-app": "1.9.22", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", - "@walmart/react-native-logger": "1.31.0-rc.1", + "@walmart/react-native-logger": "1.33.0", "@walmart/react-native-scanner-3.0": "0.1.31", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7",
Logger version bump.
Logger version bump.
15558bed4bba79def26b334c65b05f4d9c81635a
--- .looper.yml @@ -39,8 +39,8 @@ flows: publishFromPackage: - call: preparePublish - - (name Publish from Package) HUSKY_SKIP_HOOKS=1 npx lerna publish from-package + - (name Publish from Package) HUSKY_SKIP_HOOKS=1 npx lerna publish from-package --yes publishFromGit: - call: preparePublish - - (name Publish from Git) HUSKY_SKIP_HOOKS=1 npm run publish from-git + - (name Publish from Git) HUSKY_SKIP_HOOKS=1 npm run publish from-git --yes --- package.json @@ -14,8 +14,7 @@ "test": "npm run test --workspaces", "lint": "npm run lint --workspaces", "clean": "npm run clean --workspaces", - "build": "npm run build --workspaces", - "publish": "npm publish --workspaces" + "build": "npm run build --workspaces" }, "repository": { "type": "git",
chore: fix publish script. add yes arg for lerna ci commands.
chore: fix publish script. add yes arg for lerna ci commands.
e4fbbd235df4de7b13cecac0e2fc074455634654
--- __tests__/components/HourlyRosterWidget.test.tsx @@ -4,6 +4,10 @@ import {configureStore} from '@reduxjs/toolkit'; import {HourlyRosterWidget} from '../../src/components/MyWalmartv2/Widgets/Hourly'; import React from 'react'; +jest.mock('@walmart/associate-exp-hub-hub', () => ({ + ActivityAwareWidget: jest.fn(), +})); + // Mock all dependencies BEFORE importing the component jest.mock('@walmart/my-walmart-hub', () => ({ AssociateTeamSearchInput: (input: string) => { --- __tests__/components/SalariedOrTeamLeadRosterWidget.test.tsx @@ -8,6 +8,11 @@ import {configureStore} from '@reduxjs/toolkit'; // Import the component AFTER all mocks import {SalariedOrTeamLeadRosterWidget} from '../../src/components/MyWalmartv2/Widgets/SalariedOrTeamLead/SalariedOrTeamLeadRosterWidget'; + +jest.mock('@walmart/associate-exp-hub-hub', () => ({ + ActivityAwareWidget: jest.fn(), +})); + // Mock all dependencies BEFORE importing the component jest.mock('../../src/components/MyWalmartv2/Widgets/SalariedOrTeamLead/useSalariedOrTeamLeadRosterWidget', () => ({ useSalariedOrTeamLeadRosterWidget: () => ({ @@ -141,7 +146,7 @@ describe('SalariedOrTeamLeadRosterWidget', () => { expect(component).toBeDefined(); }); - it('renders with testID widget', () => { + it.skip('renders with testID widget', () => { renderWidget(); // The component should render the salaried-or-team-lead-roster-widget testID from the WidgetErrorBoundary expect(screen.getByTestId('salaried-or-team-lead-roster-widget')).toBeDefined(); --- __tests__/config/foundationConfig.test.ts @@ -15,6 +15,10 @@ jest.mock('@walmart/my-walmart-hub', () => ({ useUserCanSeeHub: jest.fn(), })); +jest.mock('@walmart/associate-exp-hub-hub', () => ({ + ActivityAwareWidget: jest.fn(), +})); + jest.mock('@walmart/gtp-shared-components', () => ({ ...jest.requireActual('@walmart/gtp-shared-components'), colors: { --- src/components/MyWalmartv2/Widgets/Hourly/HourlyRosterWidget.tsx @@ -186,8 +186,7 @@ const ListItem = memo( isLoading={false} testID={`associate-list-item-${associate.associateId}`} accessible - accessibilityLabel={`${displayName}, ${jobTitle}, ${ - isClockedIn ? t('status.clockedIn') : t('status.clockedOut') + accessibilityLabel={`${displayName}, ${jobTitle}, ${isClockedIn ? t('status.clockedIn') : t('status.clockedOut') }`} statusTag={ showStatusChip ? <StatusChip associate={associate} /> : undefined
feat(ui): mocking
feat(ui): mocking
495b17290967ce6955eacd81781e24af45b4af94
--- packages/me-at-walmart-container/package.json @@ -24,8 +24,7 @@ "@walmart/allspark-utils": "^6.0.14", "jwt-decode": "^3.1.2", "nanoid": "4.0.2", - "redux-flipper": "^2.0.2", - "rn-flipper-async-storage-advanced": "^1.0.5" + "redux-flipper": "^2.0.2" }, "devDependencies": { "@react-native-async-storage/async-storage": "^1.19.4", --- packages/me-at-walmart-container/src/container.ts @@ -1,28 +1,32 @@ import { AllsparkContainer } from '@walmart/allspark-foundation'; -import { IMeAtWalmartEnvironment } from '@walmart/me-at-walmart-common'; +import { + IMeAtWalmartEnvironment, + IMeAtWalmartSetupTypes, +} from '@walmart/me-at-walmart-common'; import { MeAtWalmartHttpConfig } from './http'; import { MeAtWalmartGraphQLConfig } from './graphql'; import { MeAtWalmartEnvironment } from './environment'; import { MeAtWalmartReduxConfig } from './redux'; -import { MeAtWalmartSetupComponent, MeAtWalmartSetupHook } from './setup'; import { MeAtWalmartServices } from './services'; import { MeAtWalmartTranslationConfig } from './translations'; import { MeAtWalmartNetworkConfig } from './network'; import { MeAtWalmartFeatureRunnerConfig } from './featureRunner'; import { MeAtWalmartNavigationConfig } from './navigation'; +import { MeAtWalmartSetup } from './setup'; -export const MeAtWalmartContainer = - new AllsparkContainer<IMeAtWalmartEnvironment>('Me@Walmart', { - environment: MeAtWalmartEnvironment, - featureRunner: MeAtWalmartFeatureRunnerConfig, - graphQL: MeAtWalmartGraphQLConfig, - http: MeAtWalmartHttpConfig, - navigation: MeAtWalmartNavigationConfig, - network: MeAtWalmartNetworkConfig, - redux: MeAtWalmartReduxConfig, - services: MeAtWalmartServices, - SetupComponent: MeAtWalmartSetupComponent, - setupHook: MeAtWalmartSetupHook, - translation: MeAtWalmartTranslationConfig, - }); +export const MeAtWalmartContainer = new AllsparkContainer< + IMeAtWalmartEnvironment, + IMeAtWalmartSetupTypes +>('Me@Walmart', { + environment: MeAtWalmartEnvironment, + featureRunner: MeAtWalmartFeatureRunnerConfig, + graphQL: MeAtWalmartGraphQLConfig, + http: MeAtWalmartHttpConfig, + navigation: MeAtWalmartNavigationConfig, + network: MeAtWalmartNetworkConfig, + redux: MeAtWalmartReduxConfig, + services: MeAtWalmartServices, + setup: MeAtWalmartSetup, + translation: MeAtWalmartTranslationConfig, +}); --- packages/me-at-walmart-container/src/setup.ts @@ -1,10 +1,12 @@ -import { createElement, useEffect } from 'react'; -import { AppState } from 'react-native'; +import { AppState, NativeEventSubscription } from 'react-native'; import { AllsparkNavigationClient } from '@walmart/allspark-foundation/Navigation'; import { AllsparkReduxStore } from '@walmart/allspark-foundation/Redux'; import { AllsparkNotificationClient } from '@walmart/allspark-foundation/Notification'; import { AllsparkPermissionClient } from '@walmart/allspark-foundation/Permissions'; -import { MeAtWalmartConfigActions } from '@walmart/me-at-walmart-common'; +import { + IMeAtWalmartSetupTypes, + MeAtWalmartConfigActions, +} from '@walmart/me-at-walmart-common'; import { SESSION_ID } from './session'; import { MeAtWalmartTelemetry } from './services/telemetry'; @@ -18,17 +20,13 @@ import { MeAtWalmartDeviceService } from './services/device'; import { MeAtWalmartLocationService } from './services/location'; import { MeAtWalmartInitialPermissions } from './permissions'; import { getShouldRefetchConfig } from './redux/config'; - -export const MeAtWalmartSetupComponent = () => { - return __DEV__ - ? createElement(require('rn-flipper-async-storage-advanced').default, {}) - : null; -}; +import { ContainerSetup } from '@walmart/allspark-foundation'; /** * Runs whenever app becomes active */ const onAppStateActive = () => { + // Cancel any active notifications AllsparkNotificationClient.cancelNotifications().catch((e: Error) => { MeAtWalmartLoggerService.getContainerInstance().error( 'Notification.cancelNotifications failure', @@ -38,7 +36,7 @@ const onAppStateActive = () => { ); }); - // --- Permissions --- // + // Check for permission changes AllsparkNotificationClient.checkPermission().catch((e) => MeAtWalmartLoggerService.getContainerInstance().error( 'Notification.checkPermission failure', @@ -57,30 +55,26 @@ const onAppStateActive = () => { ) ); - AllsparkPermissionClient.checkMultiple(MeAtWalmartInitialPermissions).catch( - (e) => - MeAtWalmartLoggerService.getContainerInstance().error( - 'Permission.checkMultiple failure', - { - message: e.message, - } - ) - ); - - // --- Config Retry --- // + // Check app config state const refetchConfig = AllsparkReduxStore.select(getShouldRefetchConfig); if (refetchConfig) { AllsparkReduxStore.dispatch(MeAtWalmartConfigActions.REFETCH_CONFIG()); } }; +const subscriptions = [] as Array< + NativeEventSubscription | { remove: () => {} } +>; + /** * Runs once to setup the MeAtWalmart container */ -export const setupMeAtWalmart = () => { +export const setupMeAtWalmartRoot = async () => { + // Add session id to telemetry MeAtWalmartTelemetry.setCrashAttribute('sessionId', SESSION_ID); MeAtWalmartTelemetry.setUserProperties({ sessionId: SESSION_ID }); + // Initial fetch of device info MeAtWalmartDeviceService.fetch().catch((e: Error) => MeAtWalmartLoggerService.getContainerInstance().error( 'Device.fetch failure', @@ -90,43 +84,55 @@ export const setupMeAtWalmart = () => { ) ); + // Add auth event listeners for logging const authInfoSub = MeAtWalmartAuthService.addEventListener( 'info', onAuthInfo ); + subscriptions.push(authInfoSub); + const authErrorSub = MeAtWalmartAuthService.addEventListener( 'error', onAuthError ); + subscriptions.push(authErrorSub); + // Add screen change listener for screen view logging const screenChangeSub = AllsparkNavigationClient.addScreenChangeListener( (payload) => { MeAtWalmartTelemetry.logScreenView(payload.currentRoute); } ); + subscriptions.push(screenChangeSub); + + // Check for initial permissions + AllsparkPermissionClient.checkMultiple(MeAtWalmartInitialPermissions).catch( + (e) => + MeAtWalmartLoggerService.getContainerInstance().error( + 'Permission.checkMultiple failure', + { + message: e.message, + } + ) + ); // May not run immediately from app state event listener. Firing manually here. onAppStateActive(); - const appStateSub = AppState.addEventListener('change', (state) => { if (state === 'active') { onAppStateActive(); } }); - - return () => { - authInfoSub.remove(); - authErrorSub.remove(); - screenChangeSub.remove(); - appStateSub.remove(); - }; + subscriptions.push(appStateSub); }; -export const MeAtWalmartSetupHook = () => { - useEffect(() => { - const cleanup = setupMeAtWalmart(); - return () => cleanup(); - }, []); +const cleanupMeAtWalmartRoot = () => { + subscriptions.forEach((sub) => { + sub.remove(); + }); + subscriptions.length = 0; +}; - return true; +export const MeAtWalmartSetup: ContainerSetup<IMeAtWalmartSetupTypes> = { + root: { setup: setupMeAtWalmartRoot, cleanup: cleanupMeAtWalmartRoot }, };
refactor: update setup for new format. remove setup component for flipper async storage
refactor: update setup for new format. remove setup component for flipper async storage
198184911d8b4c430d2acef7430ca4a9f5b95b90
--- src/mocks/associatesMock.ts @@ -168,8 +168,8 @@ export const associatesMock = [ }, { userId: 'j0w0558', - win: 2198687841, - associateId: '2198687841', + win: 225253267, + associateId: '225253267', firstName: 'JOSHUA', lastName: 'WHEELER', fullName: 'WHEELER, JOSHUA', --- src/mocks/teamMock.ts @@ -2375,7 +2375,7 @@ export const teamsMock = [ userId: 'v0m04v4', }, { - win: '2198687841', + win: '225253267', baseTeam: true, role: 'TA', userId: 'j0w0558', @@ -2645,7 +2645,7 @@ export const teamsMock = [ userId: 'rlane1', }, { - win: '219868784', + win: '225253267', baseTeam: true, role: 'TA', userId: 'j0w0558', --- src/mocks/associatesMock.ts @@ -168,8 +168,8 @@ export const associatesMock = [ }, { userId: 'j0w0558', - win: 2198687841, - associateId: '2198687841', + win: 225253267, + associateId: '225253267', firstName: 'JOSHUA', lastName: 'WHEELER', fullName: 'WHEELER, JOSHUA', --- src/mocks/teamMock.ts @@ -2375,7 +2375,7 @@ export const teamsMock = [ userId: 'v0m04v4', }, { - win: '2198687841', + win: '225253267', baseTeam: true, role: 'TA', userId: 'j0w0558', @@ -2645,7 +2645,7 @@ export const teamsMock = [ userId: 'rlane1', }, { - win: '219868784', + win: '225253267', baseTeam: true, role: 'TA', userId: 'j0w0558',
update my WIN number
update my WIN number
01fb1e12527a72b29741ea72d97ccd9efb15564b
--- src/auth/LoginErrorScreen/constants.ts @@ -123,6 +123,7 @@ export const NETWORK_ERRORS = ['request timed out', 'network error']; export const TIME_MISMATCH_ERRORS = [ 'more than 600 seconds before or after', 'invalid id token', + 'id token expired', ]; export const NO_BROWSER_ERROR = 'browser_not_found'; --- src/auth/LoginErrorScreen/styles.ts @@ -58,6 +58,7 @@ export default StyleSheet.create({ }, errorMessage: { flex: 0, + margin: 16, }, errorImage: { width: 120,
chore: add new error for time mismatch
chore: add new error for time mismatch
4449d5f7dcfb8bcd1fcc194da91a03b5091910ea
--- package-lock.json @@ -56,7 +56,7 @@ "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", - "@walmart/gtp-shared-components": "2.0.6", + "@walmart/gtp-shared-components": "2.0.10", "@walmart/impersonation-mini-app": "1.20.2", "@walmart/ims-print-services-ui": "2.5.1", "@walmart/inbox-mini-app": "0.86.1", @@ -7350,12 +7350,13 @@ } }, "node_modules/@walmart/gtp-shared-components": { - "version": "2.0.6", - "hasInstallScript": true, + "version": "2.0.10", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.10.tgz", + "integrity": "sha512-iplDkI4kABfYlajiSVPTqSaPFV7Q/WhxscDW4iJjPEHxu6lSRY+mhN20Bjv4jrojmQUPJ+697+P3Z7KR/tnKPQ==", "license": "Apache-2.0", "dependencies": { "@livingdesign/tokens": "0.63.0", - "@walmart/gtp-shared-icons": "1.0.6", + "@walmart/gtp-shared-icons": "1.0.7", "lodash": "^4.17.15", "moment": "^2.29.4", "react-keyed-flatten-children": "^1.3.0", @@ -7369,14 +7370,17 @@ "@react-native-community/datetimepicker": "*", "@react-native-picker/picker": "*", "react": "*", - "react-native": "*" + "react-native": "*", + "react-native-device-info": "*" } }, "node_modules/@walmart/gtp-shared-icons": { - "version": "1.0.6", + "version": "1.0.7", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.7.tgz", + "integrity": "sha512-6wNEUDQ45oKz2z4jb3M0b6aVHmnQARNqUpnvnUJ2ZJL6cEP/HJuBNrIocCPp0S5jz2HJOfmdhNKzZ5xHULvU2A==", "license": "Apache-2.0", "dependencies": { - "@livingdesign/tokens": "^0.60.2", + "@livingdesign/tokens": "0.63.0", "lodash": "^4.17.15", "moment": "^2.27.0" }, @@ -7385,10 +7389,6 @@ "react-native": "*" } }, - "node_modules/@walmart/gtp-shared-icons/node_modules/@livingdesign/tokens": { - "version": "0.60.2", - "license": "UNLICENSED" - }, "node_modules/@walmart/impersonation-mini-app": { "version": "1.20.2", "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.20.2.tgz", @@ -30513,10 +30513,12 @@ } }, "@walmart/gtp-shared-components": { - "version": "2.0.6", + "version": "2.0.10", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.10.tgz", + "integrity": "sha512-iplDkI4kABfYlajiSVPTqSaPFV7Q/WhxscDW4iJjPEHxu6lSRY+mhN20Bjv4jrojmQUPJ+697+P3Z7KR/tnKPQ==", "requires": { "@livingdesign/tokens": "0.63.0", - "@walmart/gtp-shared-icons": "1.0.6", + "@walmart/gtp-shared-icons": "1.0.7", "lodash": "^4.17.15", "moment": "^2.29.4", "react-keyed-flatten-children": "^1.3.0", @@ -30524,16 +30526,13 @@ } }, "@walmart/gtp-shared-icons": { - "version": "1.0.6", + "version": "1.0.7", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.7.tgz", + "integrity": "sha512-6wNEUDQ45oKz2z4jb3M0b6aVHmnQARNqUpnvnUJ2ZJL6cEP/HJuBNrIocCPp0S5jz2HJOfmdhNKzZ5xHULvU2A==", "requires": { - "@livingdesign/tokens": "^0.60.2", + "@livingdesign/tokens": "0.63.0", "lodash": "^4.17.15", "moment": "^2.29.4" - }, - "dependencies": { - "@livingdesign/tokens": { - "version": "0.60.2" - } } }, "@walmart/impersonation-mini-app": { --- package.json @@ -97,7 +97,7 @@ "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", - "@walmart/gtp-shared-components": "2.0.6", + "@walmart/gtp-shared-components": "2.0.10", "@walmart/impersonation-mini-app": "1.20.2", "@walmart/ims-print-services-ui": "2.5.1", "@walmart/inbox-mini-app": "0.86.1",
gtp bump to 2.0.10
gtp bump to 2.0.10
5850bc3300d4006a80ca6011cba9c9c444d4beee
--- package-lock.json @@ -53,7 +53,7 @@ "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.11.0", "@walmart/ims-print-services-ui": "1.2.2", - "@walmart/inbox-mini-app": "0.81.9", + "@walmart/inbox-mini-app": "0.81.9-400-832dccb", "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", @@ -5196,9 +5196,9 @@ } }, "node_modules/@walmart/inbox-mini-app": { - "version": "0.81.9", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.9.tgz", - "integrity": "sha512-blTbDTM9WKwCxRdcopJjDgkWo9NRmwP4/VggFVYdjWSMGU/psGG5bCrUILQ7n9wGTk3dhgo/tgqe1yTa2t7mJA==", + "version": "0.81.9-400-832dccb", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.9-400-832dccb.tgz", + "integrity": "sha512-HdpT2fIDP8CV4EwGnYy4wh3d3qe+qtXHWoi2GcC6WCX/3r9OSrvSmH13cXBlp279ALepSAWKjrnuFIBi3xZMhA==", "dependencies": { "@walmart/moment-walmart": "^1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" @@ -25090,9 +25090,9 @@ "integrity": "sha512-Mh3s0NI0QSMUtH5lkWqksw+QyROQIgz3tnb7Yn+sIAdJCo/sijB94t+dZLTdpIJcAQE0w7MGH8iSWnaGJ3gzrg==" }, "@walmart/inbox-mini-app": { - "version": "0.81.9", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.9.tgz", - "integrity": "sha512-blTbDTM9WKwCxRdcopJjDgkWo9NRmwP4/VggFVYdjWSMGU/psGG5bCrUILQ7n9wGTk3dhgo/tgqe1yTa2t7mJA==", + "version": "0.81.9-400-832dccb", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.9-400-832dccb.tgz", + "integrity": "sha512-HdpT2fIDP8CV4EwGnYy4wh3d3qe+qtXHWoi2GcC6WCX/3r9OSrvSmH13cXBlp279ALepSAWKjrnuFIBi3xZMhA==", "requires": { "@walmart/moment-walmart": "1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" --- package.json @@ -95,7 +95,7 @@ "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.11.0", "@walmart/ims-print-services-ui": "1.2.2", - "@walmart/inbox-mini-app": "0.81.9", + "@walmart/inbox-mini-app": "0.81.9-400-832dccb", "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45",
fix(inbox): update inbox PR version ssmp-4418
fix(inbox): update inbox PR version ssmp-4418
2dc2365d575d56498a4c4f6957afa98e9392f27b
--- core/__tests__/navigation/USHallway/USHallwayTest.tsx @@ -1,35 +1,79 @@ import React from 'react'; import {render} from '@testing-library/react-native'; +import {View} from 'react-native'; import {UserType} from '@walmart/me-at-walmart-common'; import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; import {UserActionCreators} from '@walmart/allspark-foundation/User'; import USHallway from '../../../src/navigation/USHallway'; +import {LazyAssociateHallway, LazyPreHireHallway} from '../../../src/navigation/USHallway/hallways'; -jest.mock('../../../src/navigation/USHallway/hallways', () => ({ - LazyAssociateHallway: () => 'AssociateHallway', - LazyPreHireHallway: () => 'PreHireHallway', -})); +const MockPreHireHallway = () => <View testID="pre-hire-hallway" />; +const MockAssociateHallway = () => <View testID="associate-hallway" />; -describe('UserRootNav', () => { +jest.mock('../../../src/navigation/USHallway/PreHireHallwayNav', () => { + return { + __esModule: true, + default: MockPreHireHallway, + }; +}); + +jest.mock('../../../src/navigation/USHallway/AssociateHallwayNav', () => { + return { + __esModule: true, + default: MockAssociateHallway, + }; +}); + +describe('USHallway and Hallways', () => { afterEach(() => { jest.clearAllMocks(); }); - it('matches snapshot when pre hire', () => { - AllsparkReduxStore.dispatch( - UserActionCreators.UPDATE({userType: UserType.prehire}), - ); - const component = render(<USHallway />); - expect(component.toJSON()).toMatchSnapshot(); + describe('Hallway Components', () => { + it('exports lazy-loaded components', () => { + expect(LazyPreHireHallway).toBeDefined(); + expect(LazyPreHireHallway.$$typeof).toBe(Symbol.for('react.lazy')); + + expect(LazyAssociateHallway).toBeDefined(); + expect(LazyAssociateHallway.$$typeof).toBe(Symbol.for('react.lazy')); + }); + + describe('PreHireHallway', () => { + it('loads successfully', async () => { + const lazyComponent = LazyPreHireHallway as any; + const result = await lazyComponent._payload._result(); + expect(result.default).toBeDefined(); + expect(typeof result.default).toBe('function'); + }); + }); + + describe('AssociateHallway', () => { + it('loads successfully', async () => { + const lazyComponent = LazyAssociateHallway as any; + const result = await lazyComponent._payload._result(); + expect(result.default).toBeDefined(); + expect(typeof result.default).toBe('function'); + }); + }); }); - it('matches snapshot when associate', () => { - AllsparkReduxStore.dispatch( - UserActionCreators.UPDATE({userType: UserType.associate}), - ); - const component = render(<USHallway />); - expect(component.toJSON()).toMatchSnapshot(); + describe('USHallway Component', () => { + it('matches snapshot when pre hire', () => { + AllsparkReduxStore.dispatch( + UserActionCreators.UPDATE({userType: UserType.prehire}), + ); + const component = render(<USHallway />); + expect(component.toJSON()).toMatchSnapshot(); + }); + + it('matches snapshot when associate', () => { + AllsparkReduxStore.dispatch( + UserActionCreators.UPDATE({userType: UserType.associate}), + ); + const component = render(<USHallway />); + expect(component.toJSON()).toMatchSnapshot(); + }); }); }); --- core/__tests__/navigation/USHallway/__snapshots__/USHallwayTest.tsx.snap @@ -1,5 +1,29 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`USHallway and Hallways USHallway Component matches snapshot when associate 1`] = ` +<View + testID="associate-hallway" +/> +`; + +exports[`USHallway and Hallways USHallway Component matches snapshot when pre hire 1`] = ` +<View + style={ + [ + { + "flex": 1, + "justifyContent": "center", + }, + ] + } +> + <ActivityIndicator + color="gray" + size="large" + /> +</View> +`; + exports[`UserRootNav matches snapshot when associate 1`] = `"AssociateHallway"`; exports[`UserRootNav matches snapshot when pre hire 1`] = `"AssociateHallway"`;
combined tests into one file and updated mocks
combined tests into one file and updated mocks
911336bd4e6ded6d844b72aeeb102950f417f3ff
--- README.md @@ -1,20 +1,50 @@ -### Pre-requisites +## Project Setup -- Xcode -- Android Studio (with Android 14 "Upside Down Cake" and Android SDK 34) -- Cocoapods 1.14.3 -- `node` >=20.10.0 -- `yarn` >=4.1.1 [installation instructions here](https://yarnpkg.com/getting-started/install) -- Java JDK (zulu@17) - -If you're setting up your development environment to run a React Native v0.73 project for the first time, React Native's "Setting up the development environment" guide has helpful instructions for installing the dependencies necessary for [Android](https://reactnative.dev/docs/0.73/environment-setup?platform=android&os=macos#installing-dependencies) and [iOS](https://reactnative.dev/docs/0.73/environment-setup?platform=ios&os=macos#installing-dependencies) setup. +### Prerequisites -### Setup and Install - -- Run `yarn install` to install node modules. -- Run `cd ios` to change directory to the `ios` folder. -- Run `pod install --repo-update --verbose` to install Pods (iOS dependencies). -- Run `cd ..` to go back to the root folder. +- Xcode +- Android Studio +- Yarn/ruby/java/node (see [mise.toml](mise.toml) for version requirements) + +### Optional prereqs +- [brew](https://brew.sh/) +- [mise](https://mise.jdx.dev/) + +### brew setup steps + +- turn off VPN or if onsite switch off of eagle to walmartwifi +- run: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"` + +### mise setup steps + +- turn off VPN or if onsite switch off of eagle to walmartwifi +- `brew install mise` + - if you want to adopt mise for your system + - otherwise run this: `echo 'eval "$(/opt/homebrew/bin/mise activate zsh)"' >> ~/.zshrc` + - review your .zshrc and comment out other version managers to reduce chances of conflicts + - restart your terminal + - if you want to only use mise adhoc when working on allspark-core + - `mise active zsh` + - run `mise i` + - `yarn -v` answer Y to download correct yarn version if prompted + - reconnect to eagle/VPN +- note that whenever you git pull and the mise.toml file changes you will need to run `mise i` + +### universal setup steps + +- `yarn` +- `yarn build` +- `bundle install` +- `cd ios` + +### ios setup steps + +- `cd ios` +- `bundle exec pod install` +- `cd ..` +- default env is dev, run: `xed ios/FeatureAppTemplateTS.xcworkspace` +- `yarn start` +- press play in Xcode ### Running on iOS
feat(ui): update the readme file
feat(ui): update the readme file
e301f457a4006c1d9b9253ae105c03f8216a7d6b
--- __tests__/core/loggerInitTest.ts @@ -248,7 +248,6 @@ describe('getNetworkAttributes', () => { wifiStrength: '59', connectionType: 'wifi', isConnected: 'true', - isInternetReachable: 'true', }); }); @@ -265,7 +264,6 @@ describe('getNetworkAttributes', () => { cellularGeneration: '22', connectionType: 'cellular', isConnected: 'true', - isInternetReachable: 'true', }); }); }); @@ -291,7 +289,6 @@ describe('onNetworkStateChanged', () => { call(DefaultLogger.setUserInfo, { connectionType: state.type, isConnected: String(state.isConnected), - isInternetReachable: String(state.isInternetReachable), wifiStrength: String(state.details.strength), } as TUserInfo), ); @@ -318,7 +315,6 @@ describe('onNetworkStateChanged', () => { call(DefaultLogger.setUserInfo, { connectionType: state.type, isConnected: String(state.isConnected), - isInternetReachable: String(state.isInternetReachable), cellularGeneration: String(state.details.cellularGeneration), } as TUserInfo), ); --- src/core/loggerInit.ts @@ -79,7 +79,6 @@ export const getNetworkAttributes = (state: NetInfoState) => { const attributes = { connectionType: state.type, isConnected: String(state.isConnected), - isInternetReachable: String(state.isInternetReachable), }; switch (state.type) {
Removing isInternetReachable
Removing isInternetReachable
3204a2327a12f59201dbf3e57d9909b212c1a450
--- package-lock.json @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.234.0-rc.2", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.234.0-rc.2.tgz", - "integrity": "sha512-onm9ILJacc3Kq+uZ1wk3vFide7ob/YRMfjmfN1h9ttefycaycidFdnpxInh6i7uaxd3azf/kLnQl2zqbI3y7uA==" + "version": "0.238.0-rc.1", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.238.0-rc.1.tgz", + "integrity": "sha512-OkLJQ/SffaYA//r2qu8gR6DdAbqLlw6rLE8UrZaYwDeHGPOs360R8XD7gZ3Qo39oWq53OdPTimtFO9LaQlqiIQ==" }, "@walmart/time-clock-mini-app": { "version": "0.4.30", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.12.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3", - "@walmart/taskit-mini-app": "0.234.0-rc.2", + "@walmart/taskit-mini-app": "0.238.0-rc.1", "@walmart/time-clock-mini-app": "0.4.30", "@walmart/ui-components": "1.3.0-rc.14", "@walmart/welcomeme-mini-app": "0.45.0",
Updating taskIt version
Updating taskIt version
357f5f5389d966c226d372829bc5966ba4593637
--- src/channels/components/ChannelRow.tsx @@ -99,7 +99,7 @@ export const ChannelRow = (props: ChannelRowProps) => { ); const firstRecipientClockedIn = associateIsClockedIn(firstRecipientAssociate); - const timeStamp = channelRowTimeStamp(lastMessage?.createdAt?.toDate()); + const lastMessageTime = channelRowTimeStamp(lastMessage?.createdAt?.toDate()); const onChannelPress = () => { navigation.navigate(ROOT_CONTAINER_SCREEN_NAME, { // @ts-ignore @@ -147,7 +147,7 @@ export const ChannelRow = (props: ChannelRowProps) => { )} </View> } - trailing={<Caption>{timeStamp}</Caption>}> + trailing={<Caption>{lastMessageTime}</Caption>}> <Body weight={unread ? '700' : '400'} numberOfLines={1}> {lastMessage?.message} </Body> --- src/utils/timestamps.ts @@ -3,15 +3,13 @@ import moment from 'moment-timezone'; export const channelRowTimeStamp = (lastMessageTimeStamp: any) => { const messageTimeStamp = moment(lastMessageTimeStamp); const currentDate = moment(); - let timeStamp; if (messageTimeStamp.isSame(currentDate, 'day')) { - return (timeStamp = messageTimeStamp.format('hh:mm a')); + return messageTimeStamp.format('hh:mm a'); } else if ( messageTimeStamp.isSame(currentDate.clone().subtract(1, 'days'), 'day') ) { - return (timeStamp = 'Yesterday'); + return 'Yesterday'; } else { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - return (timeStamp = messageTimeStamp.format('dddd')); + return messageTimeStamp.format('dddd'); } }; --- src/channels/components/ChannelRow.tsx @@ -99,7 +99,7 @@ export const ChannelRow = (props: ChannelRowProps) => { ); const firstRecipientClockedIn = associateIsClockedIn(firstRecipientAssociate); - const timeStamp = channelRowTimeStamp(lastMessage?.createdAt?.toDate()); + const lastMessageTime = channelRowTimeStamp(lastMessage?.createdAt?.toDate()); const onChannelPress = () => { navigation.navigate(ROOT_CONTAINER_SCREEN_NAME, { // @ts-ignore @@ -147,7 +147,7 @@ export const ChannelRow = (props: ChannelRowProps) => { )} </View> } - trailing={<Caption>{timeStamp}</Caption>}> + trailing={<Caption>{lastMessageTime}</Caption>}> <Body weight={unread ? '700' : '400'} numberOfLines={1}> {lastMessage?.message} </Body> --- src/utils/timestamps.ts @@ -3,15 +3,13 @@ import moment from 'moment-timezone'; export const channelRowTimeStamp = (lastMessageTimeStamp: any) => { const messageTimeStamp = moment(lastMessageTimeStamp); const currentDate = moment(); - let timeStamp; if (messageTimeStamp.isSame(currentDate, 'day')) { - return (timeStamp = messageTimeStamp.format('hh:mm a')); + return messageTimeStamp.format('hh:mm a'); } else if ( messageTimeStamp.isSame(currentDate.clone().subtract(1, 'days'), 'day') ) { - return (timeStamp = 'Yesterday'); + return 'Yesterday'; } else { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - return (timeStamp = messageTimeStamp.format('dddd')); + return messageTimeStamp.format('dddd'); } };
Added changes as per requested PR comments
Added changes as per requested PR comments
b2e826b36dae96e3f5c3f71813035004ce5ac18c
--- packages/core-services-allspark/src/graphql/links.ts @@ -58,18 +58,29 @@ export const typeRemappingLink = new ApolloLink((operation, forward) => { export const createErrorLoggerLink = (logger: IAllsparkLogger) => onError(({ graphQLErrors, operation, networkError }) => { - const baseLog = JSON.parse( - JSON.stringify({ - headers: operation.getContext()?.headers, - extensions: operation.extensions, - operation: operation.variables, - graphQLErrors: [], - }) - ); + // Base error details + const headers = operation.getContext()?.headers; + const erorrLog = { + message: '', + operationName: operation.operationName, + consumerId: headers?.['wm_consumer.id'] || 'N/A', + featureId: headers?.['x-http-client-feature-key'] || 'N/A', + persistedQuery: operation.extensions?.persistedQuery || 'N/A', + variables: operation.variables, + graphQLErrors: [] as any, + networkError: 'N/A', + }; + + // GraphQL related erorrs + if (graphQLErrors?.length) { + // Update general error message + erorrLog.message = + graphQLErrors.length > 1 + ? 'Various GraphQL Errors' + : graphQLErrors[0].message; - if (graphQLErrors) { graphQLErrors.forEach(({ message, locations, path }) => { - baseLog.graphQLErrors.push({ + erorrLog.graphQLErrors.push({ message, locations, path, @@ -77,11 +88,17 @@ export const createErrorLoggerLink = (logger: IAllsparkLogger) => }); } + // Network related errors if (networkError) { - baseLog.networkError = networkError; + // Update general error message, if none already + if (!erorrLog.message) { + erorrLog.message = 'Network Error'; + } + + erorrLog.networkError = networkError.message; } - logger.error('GraphQL error', baseLog); + logger.error('GraphQL error', erorrLog); }); export const athenaUriLink = new ApolloLink((operation, forward) => {
refactor: graphql error logger link
refactor: graphql error logger link
f506a42045836b44249d4c41fd027beee276994b
--- package-lock.json @@ -5439,9 +5439,9 @@ "integrity": "sha512-uCC2Hk4fRcAC49c4uuIpLpD3geWjG7uAQByH8ygekhQKPrijc5/F1/z+Tkt3zFQ88BlsE+ihQ6z3AWFzAyuNGw==" }, "@walmart/profile-feature-app": { - "version": "0.0.61", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.61.tgz", - "integrity": "sha512-5uJjndO7vRsL5pFEYmRPzT2ZZ0SFK1q7xWTV7BWDW9Y0BpX1oUVJaeLHqm2TZa/H9WbMXFRTjRcpri0A9ysuLw==" + "version": "0.0.62", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.62.tgz", + "integrity": "sha512-eD0VFfRlHJSDzvdn5PpZrCW6l6WIM4bmFXeaBxdItZFLIdSPOjjTKhXpvGdh2fuH4AMPaOOifIlBMHku59XnfQ==" }, "@walmart/push-to-talk-mini-app": { "version": "1.8.9", --- package.json @@ -105,7 +105,7 @@ "@walmart/pay-stub-miniapp": "0.7.1", "@walmart/payrollsolution_miniapp": "0.126.54", "@walmart/price-changes-mini-app": "1.4.11", - "@walmart/profile-feature-app": "0.0.61", + "@walmart/profile-feature-app": "0.0.62", "@walmart/push-to-talk-mini-app": "1.8.9", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "^0.2.0",
Bumped profile feature app to 0.0.62
Bumped profile feature app to 0.0.62
13e09e5f90fa0cf2bff0e5a1b33fee19d85224e7
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.31.0", + "version": "1.32.0", "main": "dist/index.js", "files": [ "dist" @@ -81,7 +81,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.20.0", - "@walmart/allspark-foundation-hub": "1.3.3", + "@walmart/allspark-foundation-hub": "1.3.4", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.31.0", + "@walmart/roster-mini-app": "2.32.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -5992,9 +5992,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.3.3": - version: 1.3.3 - resolution: "@walmart/allspark-foundation-hub@npm:1.3.3" +"@walmart/allspark-foundation-hub@npm:1.3.4": + version: 1.3.4 + resolution: "@walmart/allspark-foundation-hub@npm:1.3.4" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -6010,7 +6010,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/7030af7992a94ee2d00903434fb86c96b487ed9e89351b04194dab2ce6e81d7ec3874df68277a2cb777a91e42909710427461c214da492d58be58c407c6c2a5d + checksum: 10c0/bf649117336f52b0118eb2de9e6c833a7bd0f33aa27fcf5f540f6584847416fcb75d6ca69309519b0dafc32e70d84cc1911d58400859617314741a9c45eeb974 languageName: node linkType: hard @@ -6398,7 +6398,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.20.0" - "@walmart/allspark-foundation-hub": "npm:1.3.3" + "@walmart/allspark-foundation-hub": "npm:1.3.4" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.31.0" + "@walmart/roster-mini-app": "npm:2.32.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.31.0": - version: 2.31.0 - resolution: "@walmart/roster-mini-app@npm:2.31.0" +"@walmart/roster-mini-app@npm:2.32.0": + version: 2.32.0 + resolution: "@walmart/roster-mini-app@npm:2.32.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/6fba812a8975d0fcbd2d964ff366a1d2096b36c62d6ef6643659eb72de9f17e065efe61b5f4c7f8b6fbaa8696f50e73269ac2741be8d113e81fe6db6a4f593dc + checksum: 10c0/c8c2eeaebc24d0a9456c8c2b317dc4322766d9924204f2396113cf4455da555198b3ead74de9898e84f27adced7beaa6795fa5afb3640872e4216079f959fade languageName: node linkType: hard
Update the my team mini app version
Update the my team mini app version
f9c7d8e19208db62ab1aaf7c20508c6780cff08c
--- ios/Podfile.lock @@ -717,8 +717,8 @@ PODS: - RNWMSSOLibrary (1.1.0): - AppAuth - React - - SSO (= 1.1.8) - - SSO (1.1.8): + - SSO (= 1.2.1) + - SSO (1.2.1): - AppAuth - Starscream (3.0.6) - Yoga (1.14.0) @@ -1055,8 +1055,8 @@ SPEC CHECKSUMS: RNSketchCanvas: 6939b18677cd1794151cc3d8eb5a0a2158a4a05b RNSVG: ce9d996113475209013317e48b05c21ee988d42e RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59 - RNWMSSOLibrary: f380671dac725f608655df6cb08ff8f6bd7c8b27 - SSO: 70a7e8ba33b6c960d5d2a7fb2c5b34f559ed86b2 + RNWMSSOLibrary: 1602252933b7a5caae14e8fa071d673a85269074 + SSO: 7b015d84bb6a974eb9945c4c10ed6951dc9e7412 Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 Yoga: 7740b94929bbacbddda59bf115b5317e9a161598 --- package-lock.json @@ -12291,9 +12291,9 @@ "integrity": "sha512-Ls9qiNZzW/OLFoI25wfjjAcrf2DZ975hn2vr6U9gyuxi2nooVbzQeFoQS5vQcbCt9QX5NY8ASEEAtlLdIa6KVg==" }, "react-native-ssmp-sso-allspark": { - "version": "0.1.2", - "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.1.2.tgz", - "integrity": "sha512-ufyAJ6gSdLpfPA8jW4tSjB6x+aYlWyqc9ix6ZQxBOkdEBB/eCqSNEKSn8ZyTe6ffxZFB5YNOTXZORaHTVHuB5A==" + "version": "1.0.0", + "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.0.0.tgz", + "integrity": "sha512-gTerWGBbLZYlIj1QS1FXDk3n7AKwg/DgEaFyAV2lbFzvzndamIwGppEd1D5KqTjCru0RVw0hOjIwTA60Fu0YFg==" }, "react-native-sumo-sdk": { "version": "2.7.3-rc.4", --- package.json @@ -93,7 +93,7 @@ "react-native-screens": "^2.10.1", "react-native-sha256": "^1.3.6", "react-native-splash-screen": "^3.2.0", - "react-native-ssmp-sso-allspark": "0.1.2", + "react-native-ssmp-sso-allspark": "1.0.0", "react-native-sumo-sdk": "2.7.3-rc.4", "react-native-svg": "^12.1.0", "react-native-tab-view": "^2.15.2",
SSO version bump up (#342)
SSO version bump up (#342) Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
02c1e36b422404053ef2503345d95889912cadd3
--- __tests__/harness/index.tsx @@ -52,13 +52,13 @@ export const setupStore = (preloadedState) => { ReduxModule.manager.addReducer('wmConnect', wmConnectSlice.reducer); reducerRegistered = true; } - + const store = configureStore({ preloadedState, reducer: (state = preloadedState, action) => { // Always ensure we have the preloaded state structure const currentState = state || preloadedState; - const nextState = ReduxModule?.manager?.reducer + const nextState = ReduxModule?.manager?.reducer ? ReduxModule.manager.reducer(currentState, action) : currentState; // Merge to ensure preloaded state is never lost --- __tests__/presence/sagas-test.tsx @@ -11,6 +11,15 @@ import {getLastOfflineTime, goOnlineForUser} from '../../src/presence/service'; import {initialStateMock} from '../harness/redux/mockState'; import {UserSelectors} from '@walmart/allspark-foundation/User'; +// Import after mocks +import { + DoNotDisturbAutoResetSaga, + DoNotDisturbGoOnlineOnClockOutSaga, + DoNotDisturbSagas, + GoOnlineOnClockOut, +} from '../../src/presence/sagas'; +import {EnvironmentSelectors} from '@walmart/allspark-foundation'; + jest.mock('@walmart/allspark-foundation/Clock', () => ({ ClockActionTypes: { FETCH_SUCCESS: 'FETCH_SUCCESS', @@ -28,15 +37,6 @@ jest.mock('@walmart/allspark-foundation', () => ({ }, })); -// Import after mocks -import { - DoNotDisturbAutoResetSaga, - DoNotDisturbGoOnlineOnClockOutSaga, - DoNotDisturbSagas, - GoOnlineOnClockOut, -} from '../../src/presence/sagas'; -import {EnvironmentSelectors} from '@walmart/allspark-foundation'; - describe('DoNotDisturbAutoReset', () => { it('should go online for user if time limit expired', () => { (SiteSelectors.getData as jest.Mock).mockReturnValue( --- __tests__/setup.ts @@ -106,7 +106,7 @@ jest.mock('../src/common/feature', () => ({ jest.mock('@walmart/allspark-foundation/Environment', () => ({ EnvironmentSelectors: { getEnv: jest.fn((state) => state?.environment?.env || 'prod'), - getEnvironment: jest.fn(() => ({ env: 'prod' })), + getEnvironment: jest.fn(() => ({env: 'prod'})), getEnvironmentType: jest.fn(() => 'prod'), }, })); --- src/common/__mocks__/feature.js @@ -1,3 +1,4 @@ +/* eslint-disable no-undef */ // Mock translation lookup using actual en-US translations const mockTranslations = { 'channelsScreen.textingDisabled.textingUnavailable': 'Texting unavailable',
fix: update tests and all the deprecated imports
fix: update tests and all the deprecated imports
91ec6631c08bb6e1ddde8249897b3850b2969f78
--- package-lock.json @@ -4153,9 +4153,9 @@ } }, "@walmart/allspark-me-mini-app": { - "version": "0.31.4", - "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.31.4.tgz", - "integrity": "sha512-j04luDr0KoPgC4xOFL4imixI9BeUjW2N7B0VzTqfnnS1U0BGbogDcEfnRJWU3LyzLbxJgoML5bSo/QSzfkMkDg==", + "version": "0.31.9", + "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.31.9.tgz", + "integrity": "sha512-6Lrgp0hnngJbckzvrkxEgOo9l91SuP9TV3u1pzY74/RAkA6iAB6KrEwaBRwIseisBEM9NSks99ffjtBnu3fObQ==", "requires": { "reselect": "^4.0.0" } --- package.json @@ -72,7 +72,7 @@ "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@walmart/allspark-health-survey-mini-app": "0.0.44", "@walmart/allspark-home-mini-app": "0.5.28", - "@walmart/allspark-me-mini-app": "0.31.4", + "@walmart/allspark-me-mini-app": "0.31.9", "@walmart/allspark-neon-core": "0.1.25", "@walmart/ask-sam-mini-app": "0.40.10", "@walmart/config-components": "1.0.35",
me version bump
me version bump
2c7cf21c97b37410d78558ec7d940bd7ef89102f
--- 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.3", + "@walmart/translator-mini-app": "1.0.4", "@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.3" + "@walmart/translator-mini-app": "npm:1.0.4" "@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.3": - version: 1.0.3 - resolution: "@walmart/translator-mini-app@npm:1.0.3" +"@walmart/translator-mini-app@npm:1.0.4": + version: 1.0.4 + resolution: "@walmart/translator-mini-app@npm:1.0.4" 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/efb3bace6fb72781560c7390e46793b60d9cb3c980966390b9f6099ca2a90eb6dc8da49a8f24efcddfcd53565ceff13ff5d57fc413b6696a308cec620cc94362 + checksum: 10c0/4409f2af468217ca1e1d62ea42996f7841abc1e3f8a9db0983c2e11a5933753502dcecc05adab34691af4f468e732a6809376cd985ba09abbdef6b1cd50a990c languageName: node linkType: hard
version bump
version bump
41b698f09aa932eeff691581a5710f494ca08338
--- src/home/components/GreetingRowV2/useUserInfo.ts @@ -8,7 +8,7 @@ import {LocalStorageModule} from '@walmart/allspark-foundation/LocalStorage'; import {logServiceError} from '@/home/logger/Logger'; import {ConfigSelectors, SiteSelectors} from '@walmart/allspark-foundation'; import {CacheState, CachedData, ConfigType} from './type' -import {calculateTTL, buildCacheKey, transformGetForYouHeaderAssociateDetailsResponse} from './utils'; +import {calculateTTL, buildCacheKey, transformGetForYouHeaderAssociateDetailsResponse, hasCrossedMidnight} from './utils'; import {ID} from './constants'; // Create storage instance @@ -60,7 +60,9 @@ export const useUserInfo = ( const parsed: CachedData = JSON.parse(raw); const age = Date.now() - parsed.timestamp; - const valid = age < TTL_MS; + const crossedMidnight = hasCrossedMidnight(parsed.timestamp); + + const valid = age < TTL_MS && !crossedMidnight; if (valid) { setCacheState({ @@ -188,7 +190,9 @@ export const useUserInfo = ( if (!isFocused || !cacheState.valid || !cacheState.timestamp) return; const age = Date.now() - cacheState.timestamp; - if (age > TTL_MS) { + const crossedMidnight = hasCrossedMidnight(cacheState.timestamp); + + if (age > TTL_MS || crossedMidnight) { invalidateCache(); safeRefetch().catch((error: any) => { logServiceError('Error in useUserInfo (focus refetch)', error); @@ -196,26 +200,6 @@ export const useUserInfo = ( } }, [isFocused, cacheState.valid, cacheState.timestamp, TTL_MS, safeRefetch, invalidateCache]); - // Midnight refetch: invalidate cache and refetch when date changes - useEffect(() => { - if (!cacheState.valid || !cacheState.timestamp) return; - - const now = new Date(); - const midnight = new Date(now); - midnight.setHours(24, 0, 0, 0); // Next midnight - - const timeUntilMidnight = midnight.getTime() - now.getTime(); - - const timer = setTimeout(() => { - invalidateCache(); - safeRefetch().catch((error: any) => { - logServiceError('Error in useUserInfo (midnight refetch)', error); - }); - }, timeUntilMidnight); - - return () => clearTimeout(timer); - }, [cacheState.valid, cacheState.timestamp, safeRefetch, invalidateCache]); - // Determine data source and format const sourceData = cacheState.valid ? cacheState.data : data; const formattedData = transformGetForYouHeaderAssociateDetailsResponse(sourceData); --- src/home/components/GreetingRowV2/utils.tsx @@ -94,3 +94,11 @@ export const transformGetForYouHeaderAssociateDetailsResponse = (data?: any) => shift: data?.getAssociateById?.wfmSchedule, }; }; + +export const hasCrossedMidnight = (timestamp: number): boolean => { + const cacheDate = new Date(timestamp); + const now = new Date(); + return cacheDate.getDate() !== now.getDate() || + cacheDate.getMonth() !== now.getMonth() || + cacheDate.getFullYear() !== now.getFullYear(); +};
feat(header): add cache refresh midnight
feat(header): add cache refresh midnight
8a29b38b7c73540f7449e31c8546c875f489f0aa
--- __tests__/components/AssociateListItem.test.tsx @@ -17,6 +17,33 @@ jest.mock('@walmart/allspark-foundation/Components/SharedComponents', () => ({ }, })); +// Add this mock for gtp-shared-components +jest.mock('@walmart/gtp-shared-components', () => { + const React = require('react'); + return { + Body: ({children, ...props}) => + React.createElement('text', props, children), + Link: ({children, ...props}) => + React.createElement('view', props, children), + colors: { + gray: { + '160': '#000000', + '100': '#9E9E9E', + }, + green: { + '100': '#6DD400', + }, + blue: { + '20': '#E0F7FA', + '130': '#004f9a', + }, + }, + Icons: { + ClockIcon: () => React.createElement('view', {testID: 'clock-icon'}), + }, + }; +}); + const mockObject = { firstName: 'Alex', preferredFirstName: 'Lexi', --- __tests__/components/__snapshots__/AssociateListItem.test.tsx.snap @@ -4,7 +4,7 @@ exports[`AssociateListItem should render AssociateListItem with props 1`] = ` <View style={ { - "borderBottomColor": "#e3e4e5", + "borderBottomColor": undefined, "borderBottomWidth": 1, "display": "flex", "flexDirection": "row", @@ -30,7 +30,7 @@ exports[`AssociateListItem should render AssociateListItem with props 1`] = ` style={ { "alignItems": "center", - "backgroundColor": "#cce3f8", + "backgroundColor": "#E0F7FA", "borderRadius": 20, "display": "flex", "flexDirection": "row", @@ -56,7 +56,7 @@ exports[`AssociateListItem should render AssociateListItem with props 1`] = ` style={ { "alignItems": "center", - "backgroundColor": "#fff", + "backgroundColor": undefined, "borderRadius": 6, "display": "flex", "flexDirection": "row", @@ -73,7 +73,7 @@ exports[`AssociateListItem should render AssociateListItem with props 1`] = ` style={ { "backgroundColor": "#6DD400", - "borderColor": "#2a8703", + "borderColor": "#6DD400", "borderRadius": 4, "borderWidth": 1, "height": 8, @@ -94,52 +94,31 @@ exports[`AssociateListItem should render AssociateListItem with props 1`] = ` } } > - <Text - accessibilityRole="text" - style={ - [ - { - "color": "#2e2f32", - "fontFamily": "Bogle", - "fontSize": 16, - "fontStyle": "normal", - "fontWeight": "700", - "lineHeight": 24, - }, - { - "color": "#2e2f32", - "fontSize": 16, - "lineHeight": 24, - }, - ] + <text + UNSAFE_style={ + { + "color": "#000000", + "fontSize": 16, + "lineHeight": 24, + } } + size="medium" testID="associate-list-item-name" + weight="bold" > Lexi C - </Text> - <Text - accessibilityRole="text" - style={ - [ - { - "color": "#2e2f32", - "fontFamily": "Bogle", - "fontSize": 16, - "fontStyle": "normal", - "fontWeight": "400", - "lineHeight": 24, - }, - { - "color": "#2e2f32", - "fontSize": 14, - "lineHeight": 20, - }, - ] + </text> + <text + UNSAFE_style={ + { + "color": "#000000", + "fontSize": 14, + "lineHeight": 20, + } } - testID="Body" > Apparel Ta - </Text> + </text> </View> </View> <View
fix(bug): fix tests for the AssociateListItem.test.tsx test file
fix(bug): fix tests for the AssociateListItem.test.tsx test file
db5be68dc97ca7c90dea1c21a376ca8af60afdad
--- __tests__/__mocks__/@walmart/returns-mini-app.js @@ -1,6 +1,3 @@ -const React = require('react'); module.exports = { - default: jest.fn(() => ({ - ReturnsMiniApp: <></>, - })), + ReturnsMiniApp: 'ReturnsMiniApp', }; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -96,7 +96,7 @@ Array [ name="ReceiptCheck" /> <Screen - component="Guardedundefined" + component="GuardedReturnsMiniApp" name="Returns" /> <Screen --- src/versions/constants.ts @@ -27,6 +27,7 @@ export const LISTED_DEPENDENCIES = [ '@walmart/profile-feature-app', '@walmart/push-to-talk-mini-app', '@walmart/refrigeration-alarms-mini-app', + '@walmart/returns-mini-app', '@walmart/schedule-mini-app', '@walmart/settings-mini-app', '@walmart/shelfavailability-mini-app',
add returnsMiniApp to constants and update mock module export
add returnsMiniApp to constants and update mock module export
be0eef29e67a757e79606e6db1afdb8c46682d8f
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/inbox-mini-app": "0.83.3", "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", - "@walmart/me-field-mini-app": "12.0.22", + "@walmart/me-field-mini-app": "12.0.23", "@walmart/metrics-mini-app": "0.11.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4", @@ -5453,9 +5453,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "12.0.22", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.22.tgz", - "integrity": "sha512-hS7iZjc26tvPTLV7oVyuYT1Pt8gYz0KJJcTRxKMF30sq+fCt0c1piVug7A2WxhTb5+aBAPX4p7wBjADvdtNLBw==", + "version": "12.0.23", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.23.tgz", + "integrity": "sha512-iMPvDT/RDqhYlpCiL+xM3EZsQlUeS11/EIYW4D0s+p8GqIzUUrIgI9PUmsFC82MK865sgBxxLS5G4n2rQypsFQ==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -5470,7 +5470,7 @@ "@types/graphql": "^14.5.0", "@walmart/config-components": "^3.0.1", "@walmart/core-services": "2.0.19", - "@walmart/core-services-allspark": "2.10.16", + "@walmart/core-services-allspark": "2.10.19", "@walmart/core-utils": "~2.0.3", "@walmart/functional-components": "~4.0.3", "@walmart/gtp-shared-components": "2.0.3", @@ -25348,9 +25348,9 @@ } }, "@walmart/me-field-mini-app": { - "version": "12.0.22", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.22.tgz", - "integrity": "sha512-hS7iZjc26tvPTLV7oVyuYT1Pt8gYz0KJJcTRxKMF30sq+fCt0c1piVug7A2WxhTb5+aBAPX4p7wBjADvdtNLBw==" + "version": "12.0.23", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.23.tgz", + "integrity": "sha512-iMPvDT/RDqhYlpCiL+xM3EZsQlUeS11/EIYW4D0s+p8GqIzUUrIgI9PUmsFC82MK865sgBxxLS5G4n2rQypsFQ==" }, "@walmart/metrics-mini-app": { "version": "0.11.5", --- package.json @@ -99,7 +99,7 @@ "@walmart/inbox-mini-app": "0.83.3", "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", - "@walmart/me-field-mini-app": "12.0.22", + "@walmart/me-field-mini-app": "12.0.23", "@walmart/metrics-mini-app": "0.11.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4",
feat: :arrow_up: upgrade learning mini app version to 12.0.23
feat: :arrow_up: upgrade learning mini app version to 12.0.23
d9377134089e91f735ac809c2fa72a55972f47f7
--- .looper.multibranch.yml @@ -651,6 +651,8 @@ flows: - var(MESSAGE_TITLE): | echo ":x: ${osIcon} ${releaseType} BUILD FAILED" + - var(FILE_SIZE): + ls -l ${buildOutput} | cut -d " " -f 8 | awk '{print $1/1000000}' - slack.postMessage: message: $MESSAGE_TITLE channelId: ${slackChannel} @@ -684,7 +686,7 @@ flows: - type: mrkdwn text: "*Looper job* ${env} #:<${BUILD_URL}|${BUILD_NUMBER}>" - type: mrkdwn - text: "*Github Repo:* <${GITHUB_BRANCH_URL}|URL>" + text: "*Github Repo:* <${GITHUB_BRANCH_URL}|URL> - FS: ${FILE_SIZE}" - type: divider msteams-success:
Update .looper.multibranch.yml
Update .looper.multibranch.yml
2d193ea2744ee29b825dfc03df53008d8efd0b9c
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", - "@walmart/metrics-mini-app": "0.9.41", + "@walmart/metrics-mini-app": "0.9.42", "@walmart/mod-flex-mini-app": "1.4.5", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", @@ -5382,9 +5382,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.9.41", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.41.tgz", - "integrity": "sha512-AFCnGBMgckKWlGG/SanvR75Zhz6LziqneECZQSDTE765+Ho3TmiA4eT4yhhPz6pLtf3QIeVXIyNKfj978OciSA==", + "version": "0.9.42", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.42.tgz", + "integrity": "sha512-E57lAI/KJ0hZIDaWzzOmJWN77daDdQWc7nRoOmfgovB80Q3DD8wf50CvYnRyj8Jzo4rF8Kfml7urTvSZCV3QLA==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25114,9 +25114,9 @@ "integrity": "sha512-E6vAHwZlf/Z+rSLxDJBZsobTh19CO6crd5I6WQrYnM2+Hp+LhSZyh9dVkty6LLweJy6l4nmcVHJS6/A6QRC5aA==" }, "@walmart/metrics-mini-app": { - "version": "0.9.41", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.41.tgz", - "integrity": "sha512-AFCnGBMgckKWlGG/SanvR75Zhz6LziqneECZQSDTE765+Ho3TmiA4eT4yhhPz6pLtf3QIeVXIyNKfj978OciSA==", + "version": "0.9.42", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.42.tgz", + "integrity": "sha512-E57lAI/KJ0hZIDaWzzOmJWN77daDdQWc7nRoOmfgovB80Q3DD8wf50CvYnRyj8Jzo4rF8Kfml7urTvSZCV3QLA==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -99,7 +99,7 @@ "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", - "@walmart/metrics-mini-app": "0.9.41", + "@walmart/metrics-mini-app": "0.9.42", "@walmart/mod-flex-mini-app": "1.4.5", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14",
fix for metrics SMBLV-3218
fix for metrics SMBLV-3218
035385cd30a00ef9f605fdf7b26f2ea98c8e1eb1
--- __tests__/navigation/AssociateHallwayNav/DrawerNavTest.tsx @@ -46,6 +46,10 @@ jest.mock( }), ); +jest.mock('react-native/Libraries/Utilities/useWindowDimensions', () => ({ + default: jest.fn().mockReturnValue({width: 390, height: 725}), +})); + const mockGetCurrentRoute = getCurrentRouteName as jest.Mock; const mockUseState = useState as jest.Mock; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/DrawerNavTest.tsx.snap @@ -81,7 +81,7 @@ exports[`DrawerNav matches snapshot after initial render 1`] = ` screenOptions={ { "drawerStyle": { - "width": "89%", + "width": 347.1, }, "drawerType": "front", "headerShown": false, --- src/navigation/AssociateHallwayNav/DrawerNav.tsx @@ -1,7 +1,7 @@ import React, {useEffect, useMemo, useState} from 'react'; import {useDispatch, useSelector} from 'react-redux'; import {debounce} from 'lodash'; -import {StyleSheet} from 'react-native'; +import {StyleSheet, useWindowDimensions} from 'react-native'; import {StackHeaderProps} from '@react-navigation/stack'; import {createDrawerNavigator} from '@react-navigation/drawer'; import {ActivityMonitor, DrawerButton, Header} from '@walmart/ui-components'; @@ -19,9 +19,6 @@ import {DrawerBadge} from './Badges'; import {registerInboxComponents} from '../Inbox'; export const styles = StyleSheet.create({ - drawer: { - width: '89%', - }, initialDrawer: { width: undefined, }, @@ -46,6 +43,8 @@ export const DrawerNav = () => { const [drawerLocked, setDrawerLocked] = useState(false); const activityMonitorConfig = useSelector(getActivityMonitorConfig); const noInActiveTimerList = useSelector(getNoInActiveTimerScreenList); + const {width: windowWidth} = useWindowDimensions(); + const width = windowWidth * 0.89; // 89% const DrawerContext = useMemo( () => ({ @@ -82,7 +81,7 @@ export const DrawerNav = () => { swipeEnabled: !drawerLocked, headerShown: false, // Undefined width on mount to avoid drawer flashing open - drawerStyle: initRender ? styles.initialDrawer : styles.drawer, + drawerStyle: initRender ? styles.initialDrawer : {width}, overlayColor: 'rgba(0, 0, 0, 0.6)', drawerType: 'front', }}
drawer width fix
drawer width fix
b25af4283dec49762931e1a6d625ee513304f9cd
--- packages/allspark-foundation/GlobalElements/package.json @@ -1,6 +0,0 @@ -{ - "name": "@walmart/allspark-foundation/GlobalElements", - "private": true, - "main": "./index", - "types": "./index" -}
chore(build): Deleted root GlobalElements
chore(build): Deleted root GlobalElements
c627c0db618dd319710a0f218544dda825a046a2
--- package-lock.json @@ -3389,9 +3389,9 @@ "integrity": "sha512-73HAEev8DeHModZVTry22tqKnV5jJcaL4IyUVWvlvoyZ4iZfNgdIsR6VEzYN1TW5DHH5d44heAIR3K8kdUb4Qw==" }, "@walmart/iteminfo-mini-app": { - "version": "2.0.9", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.9.tgz", - "integrity": "sha512-yNCoqCfwUJTn+EifCnb1dWidyya4BdmZtgPu8jVN/jXQdhiTjnK4zx1Hx9tGfKSwIYBmgl0Nf+ePqaZh959mjA==", + "version": "2.0.12", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.12.tgz", + "integrity": "sha512-CjWSsz7nVReEzQS5NXe8f2VK40+J+mZoZ3jVUN6DQ+sF1zR+TsvJcmVMmb/irD8CL+PIpbTAV5Qwjp7dv0ulFQ==", "requires": { "react-native-chart-kit": "6.6.1" } @@ -12713,7 +12713,7 @@ "react-native-connect-sso-redux": { "version": "1.0.1", "resolved": "https://npme.walmart.com/react-native-connect-sso-redux/-/react-native-connect-sso-redux-1.0.1.tgz", - "integrity": "sha512-RJADBxeUB3qlJ6D0qyljw6ePrCWobUObZ/j7cxK1M4NTYCn/OGVm6TuVO80WzHyi3/1wVscTSNdoF/m/+10ipQ==" + "integrity": "sha1-qd4UZjKEiXDiPtd13qB/sjL988Y=" }, "react-native-device-info": { "version": "5.6.5", @@ -13164,27 +13164,27 @@ "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.1.0", "resolved": "https://npme.walmart.com/react-native-wm-network/-/react-native-wm-network-0.1.0.tgz", - "integrity": "sha512-lDgyoghNlFRRCK0ET3vYy+HzYK0sENPxs77RkHbkr1VxY2vMlC8MbyU5Hg13ORnDf7qst5A0bVz2bocVHR2k8Q==" + "integrity": "sha1-FagRyJUW+/eIfL/NqCnPfrY632I=" }, "react-native-wm-notification": { "version": "2.0.0", "resolved": "https://npme.walmart.com/react-native-wm-notification/-/react-native-wm-notification-2.0.0.tgz", - "integrity": "sha512-TqMxfERxOKomh3P9hGh0lGUTTLv5X6zCZMF2xXJp3hggtbT0l1o0LN5/S+ptR3QdEO48TxHLtWC0LgstkJ/UYQ==" + "integrity": "sha1-48bg0mzjuQpCaLOjUbwd+z20aj8=" }, "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.5.0", "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-0.5.0.tgz", - "integrity": "sha512-PKaL0MFy+VjTT4wcx/v90BlvlRXgdWGUU8Sz/760A2Esj175A8w/vFQCtZhUer5FVxmpYVKk7nHzoewii4ygRw==" + "integrity": "sha1-BCBLE9teUsdgAcNTXImFU/p4Niw=" }, "react-query": { "version": "3.29.1", @@ -14187,7 +14187,7 @@ "squiggly-localization": { "version": "0.0.2", "resolved": "https://npme.walmart.com/squiggly-localization/-/squiggly-localization-0.0.2.tgz", - "integrity": "sha512-9j/XUl0XvLk5wksN/nhOcRHmHesVHopX7v3Z1Hv398/656CLarKW0FAqL28zjKO68YH566s8PM1gflrAayBuMA==" + "integrity": "sha1-3ksz5Io53VPnUBiRSVDpxDaSGHU=" }, "sshpk": { "version": "1.16.1", @@ -15447,7 +15447,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", @@ -15461,7 +15461,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", @@ -15471,7 +15471,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=" } } }, @@ -15528,12 +15528,12 @@ "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", "resolved": "https://npme.walmart.com/wm-react-native-vector-icons/-/wm-react-native-vector-icons-1.0.33.tgz", - "integrity": "sha512-pAcEq6iOVxzKM55qucKOkh2ML3kii4yGJ5YdmMEOcRAGH4fQ1lHa7BETIl+jzX5n1ZVKgWkzmAiH3vw0nkuklQ==", + "integrity": "sha1-vIAL0WOWBBaAsIuacYHnzsxTQxk=", "requires": { "lodash": "^4.0.0", "prop-types": "^15.6.2", --- package.json @@ -84,7 +84,7 @@ "@walmart/impersonation-mini-app": "1.0.20", "@walmart/ims-print-services-ui": "0.0.36", "@walmart/inbox-mini-app": "0.14.0", - "@walmart/iteminfo-mini-app": "2.0.9", + "@walmart/iteminfo-mini-app": "2.0.12", "@walmart/manager-approvals-miniapp": "0.0.54", "@walmart/metrics-mini-app": "0.4.12", "@walmart/moment-walmart": "1.0.4",
ItemInfo Jan-22 fixes
ItemInfo Jan-22 fixes
ef54b92ee497c94adc6be8e474d629292374868b
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 146 + versionCode 147 versionName "1.1.0" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>146</string> + <string>147</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
bumping version
bumping version
fc443a89937c90037c6491f2603423ce06e9ffa1
--- package.json @@ -110,7 +110,7 @@ "@walmart/exception-mini-app": "1.8.19", "@walmart/expo-config-plugins": "~0.5.3", "@walmart/facilities-management-miniapp": "0.18.33", - "@walmart/feedback-all-spark-miniapp": "0.9.75", + "@walmart/feedback-all-spark-miniapp": "patch:@walmart/feedback-all-spark-miniapp@npm%3A0.9.75#~/.yarn/patches/@walmart-feedback-all-spark-miniapp-npm-0.9.75-733d2d347a.patch", "@walmart/financial-wellbeing-feature-app": "1.31.6", "@walmart/functional-components": "~6.3.28", "@walmart/global-vpi-mini-app": "1.1.40", --- yarn.lock @@ -7819,6 +7819,29 @@ __metadata: languageName: node linkType: hard +"@walmart/feedback-all-spark-miniapp@patch:@walmart/feedback-all-spark-miniapp@npm%3A0.9.75#~/.yarn/patches/@walmart-feedback-all-spark-miniapp-npm-0.9.75-733d2d347a.patch": + version: 0.9.75 + resolution: "@walmart/feedback-all-spark-miniapp@patch:@walmart/feedback-all-spark-miniapp@npm%3A0.9.75%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Ffeedback-all-spark-miniapp%252F-%252F%2540walmart%252Ffeedback-all-spark-miniapp-0.9.75.tgz#~/.yarn/patches/@walmart-feedback-all-spark-miniapp-npm-0.9.75-733d2d347a.patch::version=0.9.75&hash=f7be98" + peerDependencies: + "@react-navigation/native": ^6.0.0 + "@react-navigation/stack": ^6.1.0 + "@walmart/allspark-foundation": "*" + "@walmart/core-services": ">=6" + "@walmart/gtp-shared-components": ^2.1.9 + "@walmart/react-native-shared-navigation": ">=1.0.2" + "@walmart/redux-store": ">=6" + "@walmart/ui-components": ">=1.10.1" + crypto-js: ~4.2.0 + react: ^18.2.0 + react-native: ~0.73.7 + react-navigation: ^4.4.3 + react-redux: ^7.2.1 + reduxsauce: ^1.2.0 + reselect: ^4.0.0 + checksum: 10c0/7fdd906c973c9b359ee6c497e404dde8ed12602d86dd2ce0ba0c8d7fa4fb678b41e0ad525460ca42c2ee9526f3c187e55bcb1c9d9b4ffa957ee1c7401baa0954 + languageName: node + linkType: hard + "@walmart/financial-wellbeing-feature-app@npm:1.31.6": version: 1.31.6 resolution: "@walmart/financial-wellbeing-feature-app@npm:1.31.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffinancial-wellbeing-feature-app%2F-%2F%40walmart%2Ffinancial-wellbeing-feature-app-1.31.6.tgz" @@ -8338,7 +8361,7 @@ __metadata: "@walmart/exception-mini-app": "npm:1.8.19" "@walmart/expo-config-plugins": "npm:~0.5.3" "@walmart/facilities-management-miniapp": "npm:0.18.33" - "@walmart/feedback-all-spark-miniapp": "npm:0.9.75" + "@walmart/feedback-all-spark-miniapp": "patch:@walmart/feedback-all-spark-miniapp@npm%3A0.9.75#~/.yarn/patches/@walmart-feedback-all-spark-miniapp-npm-0.9.75-733d2d347a.patch" "@walmart/financial-wellbeing-feature-app": "npm:1.31.6" "@walmart/functional-components": "npm:~6.3.28" "@walmart/global-vpi-mini-app": "npm:1.1.40"
fix: apply feedback mini app patch from drop 33 (#4829)
fix: apply feedback mini app patch from drop 33 (#4829)
eb4c10f248b02d48a269a2f3c7c3191428409d90
--- package-lock.json @@ -3032,9 +3032,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.10.26", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.26.tgz", - "integrity": "sha512-MFLoAIPmvtL86eCXRbvzIamB0JXfSt8n+dVzpld5/n1dG3DxD4xXVF3AuSUcsTRdr9uC6eziLEQotUuNGVj5Bg==", + "version": "0.10.29", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.29.tgz", + "integrity": "sha512-SI1QpKEzQOkt4vRovF9q7jibNahBImeKkMCNkLAcYLUnAthTAI+Hx5vMcOARzVHp4nWyWDylENttbqcGUk1rcA==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -50,7 +50,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.25", "@walmart/allspark-home-mini-app": "0.1.10", "@walmart/allspark-me-mini-app": "0.0.22", - "@walmart/ask-sam-mini-app": "0.10.26", + "@walmart/ask-sam-mini-app": "0.10.29", "@walmart/config-components": "1.0.12", "@walmart/feedback-all-spark-miniapp": "0.0.37", "@walmart/functional-components": "1.0.24",
Ask Sam - Bug Fixes (#381)
Ask Sam - Bug Fixes (#381) * Incrementing ask sam * Version bump Co-authored-by: rlane1 <rlane1@walmart.com> Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
a05a467eb7166bcb77fdf4f127b10bae9281e87c
--- package.json @@ -271,7 +271,7 @@ "pre-push": "run-p solidarity coverage" } }, - "packageManager": "yarn@4.1.1", + "packageManager": "yarn@4.4.0", "engines": { "node": ">=18" } --- yarn.lock @@ -4837,7 +4837,7 @@ __metadata: languageName: node linkType: hard -"@reduxjs/toolkit@npm:^1.9.7": +"@reduxjs/toolkit@npm:1.9.7": version: 1.9.7 resolution: "@reduxjs/toolkit@npm:1.9.7" dependencies: @@ -5966,6 +5966,26 @@ __metadata: languageName: node linkType: hard +"@walmart/allspark-foundation-hub@npm:1.2.5": + version: 1.2.5 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.5" + dependencies: + "@reduxjs/toolkit": "npm:^1.9.7" + lodash: "npm:~4.17.21" + react-redux: "npm:^8.1.3" + peerDependencies: + "@react-navigation/native": 6.x + "@walmart/allspark-foundation": "workspace:^" + "@walmart/allspark-utils": "workspace:^" + "@walmart/gtp-shared-components": ">=2" + "@walmart/me-at-walmart-athena-queries": "workspace:^" + react: "*" + react-native: "*" + react-native-safe-area-context: 4.x + checksum: 10c0/8d1bcb0270dbdfdd26c06a85640c0cea60da533f36ec7e8e8e258e0d35ffb1cb35509af22ae46f4e8406391deaaf23c7136d81b74e41b406140fb6e5b5f4d3bf + languageName: node + linkType: hard + "@walmart/allspark-foundation@npm:6.25.0": version: 6.25.0 resolution: "@walmart/allspark-foundation@npm:6.25.0" @@ -7262,6 +7282,7 @@ __metadata: "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.18" "@walmart/allspark-foundation": "npm:6.25.0" + "@walmart/allspark-foundation-hub": "npm:1.2.5" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31"
Update yarn lock
Update yarn lock
7ff4234c4b0bc03373a3384246a3a97b938d2e4f
--- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/HomeStackNavTest.tsx.snap @@ -52,6 +52,11 @@ exports[`HomeStackNav matches snapshot 1`] = ` } } name="timeClock" + options={ + Object { + "headerShown": false, + } + } /> <Screen component={ @@ -222,6 +227,11 @@ exports[`HomeStackNav matches snapshot when user is not present 1`] = ` } } name="timeClock" + options={ + Object { + "headerShown": false, + } + } /> <Screen component={ --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MeStackNavTest.tsx.snap @@ -36,7 +36,7 @@ exports[`MeStackNav matches snapshot 1`] = ` name="timeClockTabs" options={ Object { - "headerShown": true, + "headerShown": false, } } /> --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MyTeamStackNavTest.tsx.snap @@ -34,6 +34,11 @@ exports[`MyTeamStackNav matches snapshot - attendanceminiapp false 1`] = ` } } name="timeClock" + options={ + Object { + "headerShown": false, + } + } /> <Screen component={ @@ -105,6 +110,11 @@ exports[`MyTeamStackNav matches snapshot 1`] = ` } } name="timeClock" + options={ + Object { + "headerShown": false, + } + } /> <Screen component={ --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -137,7 +137,7 @@ Array [ name="timeClock" options={ Object { - "headerBackImage": "CloseImage", + "headerShown": false, } } /> @@ -482,7 +482,7 @@ Array [ name="timeClock" options={ Object { - "headerBackImage": "CloseImage", + "headerShown": false, } } />
Updated snapshots
Updated snapshots
0694cde3fa1dde9c2047c7d70c7b6f4a3a0a49d0
--- __tests__/biometrics/BiometricSagasTest.tsx @@ -36,6 +36,7 @@ jest.mock('../../src/redux/SharedSagas', () => ({ jest.mock('../../src/services/logger', () => ({ logger: { error: jest.fn(), + info: jest.fn(), }, })); @@ -99,6 +100,14 @@ describe('hanldeBiometricsUnavailable', () => { it('handles should not prompt', () => { const iterator = hanldeBiometricsUnavailable(response.error); + expect(iterator.next(response).value).toEqual( + call(WmTelemetry.logEvent, 'biometrics', 'unavailable', {}), + ); + expect(iterator.next().value).toEqual( + call(logger.info, 'Biometric sensor unavailable', { + message: response.error, + }), + ); expect(iterator.next(response).value).toEqual( call(getShouldPromptOnCheckError, response.error), ); @@ -110,6 +119,14 @@ describe('hanldeBiometricsUnavailable', () => { it('handles should prompt', () => { const iterator = hanldeBiometricsUnavailable(response.error); + expect(iterator.next(response).value).toEqual( + call(WmTelemetry.logEvent, 'biometrics', 'unavailable', {}), + ); + expect(iterator.next().value).toEqual( + call(logger.info, 'Biometric sensor unavailable', { + message: response.error, + }), + ); expect(iterator.next(response).value).toEqual( call(getShouldPromptOnCheckError, response.error), ); @@ -147,9 +164,6 @@ describe('checkBiometricsAvailable', () => { const iterator = checkBiometricsAvailable(); expect(iterator.next().value).toEqual(call(Biometrics.isSensorAvailable)); expect(iterator.next(response).value).toEqual( - call(WmTelemetry.logEvent, 'biometrics', 'unavailable', {}), - ); - expect(iterator.next().value).toEqual( call(hanldeBiometricsUnavailable, response.error), ); const {value, done} = iterator.next(); --- src/biometrics/BiometricSagas.ts @@ -42,6 +42,10 @@ export function* handleBiometricPrompt(): any { } export function* hanldeBiometricsUnavailable(error: string): any { + yield call(WmTelemetry.logEvent, 'biometrics', 'unavailable', {}); + yield call(logger.info, 'Biometric sensor unavailable', { + message: error, + }); const shouldPrompt = yield call(getShouldPromptOnCheckError, error); if (shouldPrompt) { yield call(navigate, 'BiometricModal'); @@ -65,7 +69,6 @@ export function* checkBiometricsAvailable(): any { }); return true; } else { - yield call(WmTelemetry.logEvent, 'biometrics', 'unavailable', {}); yield call(hanldeBiometricsUnavailable, error); return false; }
Adding splunk log to biometric unavailable
Adding splunk log to biometric unavailable
dad8b577456eb5f62e44d2e3985fb48b3b63df8b
--- src/utils/rosterDetail.tsx @@ -10,6 +10,7 @@ import { associateIsAbsent, associateIsClockedIn, associateIsTardy, + associateShift, } from '../utils'; import {goToIndividualSchedule} from '../navigation/utils'; import {FilterValue} from '../components/FilterChip/types';
fix: adding missing import
fix: adding missing import
4cbb411f201ee95b4faba475d9e3cacb6c5e6d5d
--- .looper.multibranch.yml @@ -24,7 +24,7 @@ envs: ANDROID_BASE_PATH: targets/US/android branches: - - spec: feature/drop24-sidekick + - spec: feature/drop24 triggers: - manual: name: Publish Packages (Pre-Release) --- 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.5" + "@walmart/sidekick-mini-app": "npm:4.83.6" "@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.5": - version: 4.83.5 - resolution: "@walmart/sidekick-mini-app@npm:4.83.5" +"@walmart/sidekick-mini-app@npm:4.83.6": + version: 4.83.6 + resolution: "@walmart/sidekick-mini-app@npm:4.83.6" 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/3a40f3638c60179f174f1a5715bafea40ca7717f8edad9b6b55c6b65154c0fbc8b0fc713d7e7f4834e8bd6e67a3184583c45375992284547a62b21bfbb86a1ad + checksum: 10c0/111cb73a006a7bffd800e3a6193526ee053d169597878caba3be57c3322cd09be98c53f2506a078263113888cd692137f5874a8284fe63a578ea6708038cdeea languageName: node linkType: hard
chore: bump sidekick@4.83.6
chore: bump sidekick@4.83.6
318645084ed99857366429d61fe76986c137c1c9
--- packages/allspark-foundation/src/Components/Banners/AllsparkBanner.tsx @@ -9,6 +9,7 @@ import { } from '@walmart/gtp-shared-components'; import { AlertConfig, AllsparkBannerConfig } from './types'; import { ComponentRecord } from '../DynamicComponents'; +import { useAllsparkTranslation } from '../../Translation'; const styles = StyleSheet.create({ alertContainer: { @@ -46,6 +47,8 @@ export const AllsparkBanner = (props: { const { banner, onRemove } = props; const { id, type = 'banner', variant = 'info', closable, value } = banner; + const {t} = useAllsparkTranslation(); + const onClose = (e: GestureResponderEvent) => { banner.onClose?.(e); onRemove(id); @@ -61,7 +64,7 @@ export const AllsparkBanner = (props: { closeButtonProps={closable ? undefined : { style: styles.hidden }} onClose={onClose} > - {value} + {t(value)} </Banner> )} @@ -72,13 +75,13 @@ export const AllsparkBanner = (props: { UNSAFE_style={[styles.alert, banner.style]} actionButtonProps={{ ...((banner as AlertConfig).actionButtonProps || {}), - children: (banner as AlertConfig).actionButtonProps?.value, + children: (banner as AlertConfig).actionButtonProps?.value ? t((banner as AlertConfig).actionButtonProps!.value) : undefined, onPress: (e) => { (banner as AlertConfig).actionButtonProps?.onPress(e); }, }} > - {value} + {t(value)} </Alert> {closable && ( <IconButton
Banner values now wrapped in translations.
Banner values now wrapped in translations.
00cccf2de3a542a0d13612e1812537787351ab31
--- src/channels/components/EmptyChannels.tsx @@ -64,7 +64,9 @@ export const EmptyChannels = () => { {t('channelsScreen.emptyChannelsScreen.codeOfConduct')} </Text>{' '} and - <Text style={styles.linkStyle} onPress={() => navigate('TnC')}> + <Text + style={styles.linkStyle} + onPress={() => navigate('Settings.TermsOfUse')}> {' '} {t('channelsScreen.emptyChannelsScreen.termsOfUse')} </Text>{' '} --- src/channels/components/EmptyChannels.tsx @@ -64,7 +64,9 @@ export const EmptyChannels = () => { {t('channelsScreen.emptyChannelsScreen.codeOfConduct')} </Text>{' '} and - <Text style={styles.linkStyle} onPress={() => navigate('TnC')}> + <Text + style={styles.linkStyle} + onPress={() => navigate('Settings.TermsOfUse')}> {' '} {t('channelsScreen.emptyChannelsScreen.termsOfUse')} </Text>{' '}
update terms of use navigation
update terms of use navigation
b078866a5cd716dec1a7c1c33755b110e1185f59
--- package.json @@ -126,7 +126,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-geolocation": "1.2.0", "@walmart/metrics-mini-app": "1.29.15", - "@walmart/mod-flex-mini-app": "1.29.5", + "@walmart/mod-flex-mini-app": "1.30.2", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.4.3", "@walmart/my-walmart-components": "1.1.0", --- yarn.lock @@ -8343,7 +8343,7 @@ __metadata: "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-geolocation": "npm:1.2.0" "@walmart/metrics-mini-app": "npm:1.29.15" - "@walmart/mod-flex-mini-app": "npm:1.29.5" + "@walmart/mod-flex-mini-app": "npm:1.30.2" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.4.3" "@walmart/my-walmart-components": "npm:1.1.0" @@ -8619,9 +8619,9 @@ __metadata: languageName: node linkType: hard -"@walmart/mod-flex-mini-app@npm:1.29.5": - version: 1.29.5 - resolution: "@walmart/mod-flex-mini-app@npm:1.29.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.29.5.tgz" +"@walmart/mod-flex-mini-app@npm:1.30.2": + version: 1.30.2 + resolution: "@walmart/mod-flex-mini-app@npm:1.30.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.30.2.tgz" peerDependencies: "@react-navigation/drawer": ">=6" "@react-navigation/material-top-tabs": ">=6" @@ -8656,7 +8656,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 uuid: ^3.3.2 - checksum: 10c0/9ebcfff0973565d5688bff79ed379b18c5317115ced9ae49eff8199e18dcca52f1bfadfbd013690385c30adb29bf73b58852c6ee68ac64498fd9fda202bc12d6 + checksum: 10c0/480ec5518bf3b0933127c3994c702f0aed7df07db07c6c22493a78dbe08a2831f25f7dbf427a72a8a7360b6405d32382dcc936b024bf0b18455ecd843978074e languageName: node linkType: hard
feat(modflex): drop 34 bump modflex to v1.30.0 (#4680)
feat(modflex): drop 34 bump modflex to v1.30.0 (#4680) Co-authored-by: Balaji Murugan <balaji.murugan@walmart.com> Co-authored-by: Dana McFarlane <dana.mcfarlane@walmart.com> Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
3ac9e6f0cbfb78819132d2d731d315032af37a7f
--- package-lock.json @@ -60,7 +60,7 @@ "@walmart/impersonation-mini-app": "1.20.2", "@walmart/ims-print-services-ui": "2.5.1", "@walmart/inbox-mini-app": "0.86.1", - "@walmart/iteminfo-mini-app": "7.5.2", + "@walmart/iteminfo-mini-app": "7.5.3", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", "@walmart/metrics-mini-app": "0.13.11", @@ -7450,9 +7450,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "7.5.2", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.2.tgz", - "integrity": "sha512-Cqf1m9JQS6e1FCjd/E1IpW+U6w7njnKOQiB/NJwwyQ/4eI0tdIzoBEBU0dVLXS0zCzXc7YiG7891S+M+kErkeQ==", + "version": "7.5.3", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.3.tgz", + "integrity": "sha512-/sUhvLMgex8x1xTlunFZqb9SHqxmgIAbu36wrEBnFueIWc58MIDHL5zTtHqqcPXFpIjC3Fj0CaECCSuptzexAw==", "peerDependencies": { "@react-native-community/netinfo": ">=9.3.6", "@react-native-firebase/analytics": ">=15.1.1", @@ -30556,9 +30556,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "7.5.2", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.2.tgz", - "integrity": "sha512-Cqf1m9JQS6e1FCjd/E1IpW+U6w7njnKOQiB/NJwwyQ/4eI0tdIzoBEBU0dVLXS0zCzXc7YiG7891S+M+kErkeQ==" + "version": "7.5.3", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.3.tgz", + "integrity": "sha512-/sUhvLMgex8x1xTlunFZqb9SHqxmgIAbu36wrEBnFueIWc58MIDHL5zTtHqqcPXFpIjC3Fj0CaECCSuptzexAw==" }, "@walmart/manager-approvals-miniapp": { "version": "0.2.4" --- package.json @@ -101,7 +101,7 @@ "@walmart/impersonation-mini-app": "1.20.2", "@walmart/ims-print-services-ui": "2.5.1", "@walmart/inbox-mini-app": "0.86.1", - "@walmart/iteminfo-mini-app": "7.5.2", + "@walmart/iteminfo-mini-app": "7.5.3", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", "@walmart/metrics-mini-app": "0.13.11",
bigfixes for activate inactivate error state
bigfixes for activate inactivate error state
1385edf5ef1f2bc89ba6bbfbcc0cc4c4ae4cafde
--- src/hooks/user.ts @@ -1,5 +1,5 @@ import {useSelector} from 'react-redux'; -import {UserSelectors, User, SiteSelectors} from '@walmart/redux-store'; +import {UserSelectors, User} from '@walmart/redux-store'; import {teamLeadJobDescriptions as teamLeadJobDescriptionsSelector} from '../redux/selectors'; import {payTypes} from '../constants'; --- src/hooks/user.ts @@ -1,5 +1,5 @@ import {useSelector} from 'react-redux'; -import {UserSelectors, User, SiteSelectors} from '@walmart/redux-store'; +import {UserSelectors, User} from '@walmart/redux-store'; import {teamLeadJobDescriptions as teamLeadJobDescriptionsSelector} from '../redux/selectors'; import {payTypes} from '../constants';
fixing logical error with hook
fixing logical error with hook
5a3211659e90d4470f2d837e6e9c6f93ac4b7220
--- docs/docs/hub framework/hub-intro.md @@ -98,17 +98,18 @@ export const TeamHubContainer = **2. Create your hub** ```jsx -import { AllsparkHubContainer } from '@walmart/allspark-foundation-hub'; +import {AllsparkHubContainer} from '@walmart/allspark-foundation-hub/HubFeature/Store'; import { TEAM_HUB_CCM_NAMESPACE, TEAM_HUB_KEY, TEAM_HUB_SCREEN_NAME, + DEFAULT_WIDGET_IDS } from '@walmart/me-at-walmart-common'; export const initializeWidgets = () => { TeamHubContainer.add('roster', RosterWidget); - TeamHubContainer.add('teamHub.header', TeamHubHeader); - TeamHubContainer.add('floating.button', TeamHubButton); + TeamHubContainer.add('teamHub.header', TeamHubHeader); // For Hub specific header + //TeamHubContainer.add('floating.button', TeamHubButton); // Floating button on the Hub Dashboard }; export const TeamHub = () => { @@ -118,7 +119,7 @@ export const TeamHub = () => { TEAM_HUB_KEY, TEAM_HUB_CCM_NAMESPACE, TEAM_HUB_SCREEN_NAME, - ['roster'], + DEFAULT_WIDGET_IDS, { ['Header']: { id: 'teamHub.header' }, } @@ -144,7 +145,7 @@ With these steps in mind, you're ready to set up your first hub! Remember to con As Widget Providers, below code snippet shows how you can create the Widgets with the default HubWidget layout provided by the Hub framework. You can also choose to create your own custom widget. For detailed information on the Hub Widgets, refer to [Hub Widgets](./hub-widget.md) ```js -import {HubWidget} from '@walmart/allspark-foundation-hub/HubFeature/Hub/HubWidget'; +import {HubWidget} from '@walmart/allspark-foundation-hub/HubFeature/Store/Hub/HubWidget'; import {WidgetDataProps} from '@walmart/me-at-walmart-common'; export const TimeAndAttendanceWidget = (props: WidgetDataProps) => { @@ -185,6 +186,7 @@ export const TimeAndAttendanceWidget = (props: WidgetDataProps) => { **2. Register your widgets with the hub** [Widget providers](./hub-concepts#3-widget-providers) is expected to register their widgets to exported namespace from allspark-core. Registering involves obtaining the exposed/exported hub name and your widgets, then adding the each with a unique id to identify that. Please follow naming recommendation for the widget ids. E.g., +Recommended Widget id: <MiniAppName>.<WidgetName> ```js import { AllsparkComponentContainers } from '@walmart/allspark-foundation/Components'; --- docs/docs/hub framework/hub-team-switcher.md @@ -38,7 +38,7 @@ That's it! The Team Switcher will now be available in your app. ```jsx import React from 'react'; -import { TeamSwitcher } from '@walmart/allspark-foundation-hub'; +import {TeamSwitcher} from '@walmart/allspark-foundation-hub/HubFeature/Store/Hub/TeamSwitcher'; const teamChangeListener = (teamId) => { /** @@ -52,9 +52,14 @@ const SomeCoolComponent = () => { return ( <> <TeamSwitcher - onTeamChange={teamChangeListener} - refreshing={shouldShowRefresh} - /> + onTeamChange={(teamLabel, teamIds) => { + setTeamState({ + teamLabel: teamLabel, + teamIds: teamIds, + }); + }} + refreshing={state.refreshing} + /> <OtherComponents /> </> );
Update the docs
Update the docs
f8ffd8c79642d7407d4fc8b638cd8353e65723c3
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.36", - "@walmart/metrics-mini-app": "0.9.37", + "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", "@walmart/OneWalmart-MiniApp": "1.0.12", @@ -5507,9 +5507,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.9.37", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.37.tgz", - "integrity": "sha512-zwyMcIFO4i2E+hIqhDacYjWLDZMPPipGvNVt3wf+nYRyIyLuiDLmpTVVtsa0njZSD83la+ARAhYRFAgX/gqnew==", + "version": "0.9.38", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.38.tgz", + "integrity": "sha512-BERnU4wP6TtiGF/jjdIY+I+9J7OWAII+RFbeXQbJv7UK3nkpjxLYKfe1OBVp+FoyEyUCR7jB7g4SsDQ7eTGu+g==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25256,9 +25256,9 @@ "integrity": "sha512-MbuwFAfzl+LjNffFJUNvP7Ay7kx9sri1Haia4t/p6linZT3HxOaCotJbu0fRVqMr4tXX1ZVCeB2JmSpjsE0UsA==" }, "@walmart/metrics-mini-app": { - "version": "0.9.37", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.37.tgz", - "integrity": "sha512-zwyMcIFO4i2E+hIqhDacYjWLDZMPPipGvNVt3wf+nYRyIyLuiDLmpTVVtsa0njZSD83la+ARAhYRFAgX/gqnew==", + "version": "0.9.38", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.38.tgz", + "integrity": "sha512-BERnU4wP6TtiGF/jjdIY+I+9J7OWAII+RFbeXQbJv7UK3nkpjxLYKfe1OBVp+FoyEyUCR7jB7g4SsDQ7eTGu+g==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -101,7 +101,7 @@ "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.36", - "@walmart/metrics-mini-app": "0.9.37", + "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", "@walmart/pay-stub-miniapp": "0.9.7",
bumping metrics version
bumping metrics version
9ae540928033534cfb2de4db78689e978be00619
--- __mocks__/@walmart/learning-mini-app.js @@ -2,4 +2,5 @@ module.exports = { FieldLearningApp: 'FieldLearningApp', LearningNotificationWidget: 'LearningNotificationWidget', buildAllScreens: jest.fn(), -}; \ No newline at end of file + buildScreens: jest.fn(), +}; --- __tests__/navigation/USHallway/AssociateHallwayNav/Tabs/MyTeamStackNavTest.tsx @@ -3,6 +3,7 @@ import {create} from 'react-test-renderer'; import * as myTeamMiniApp from '@walmart/myteam-mini-app'; import * as rosterMiniApp from '@walmart/roster-mini-app'; import {MyTeamStackNav} from '../../../../../src/navigation/USHallway/AssociateHallwayNav/Tabs/MyTeamStackNav'; +import * as learningMiniApp from '@walmart/learning-mini-app'; import {HomeHeaderRightContainer} from '@walmart/me-at-walmart-common'; import {createStackNavigator} from '@react-navigation/stack'; import {render} from '@testing-library/react-native'; @@ -96,4 +97,13 @@ describe('MyTeamStackNav', () => { {Navigator: expect.anything()}, ); }); + + + it('renders learning-teamHub-widget', () => { + create(<MyTeamStackNav />); + expect(learningMiniApp.default.buildScreens).toHaveBeenCalledWith( + ['myTeam.learningDetailScreen', 'ManagerExperienceAssocView'], + {Navigator: expect.anything()}, + ); + }); }); --- package.json @@ -113,7 +113,7 @@ "@walmart/inbox-mini-app": "0.100.4", "@walmart/invue-react-native-sdk": "0.1.26-alpha.12", "@walmart/iteminfo-mini-app": "8.4.2", - "@walmart/learning-mini-app": "20.0.47", + "@walmart/learning-mini-app": "20.0.70", "@walmart/manager-approvals-miniapp": "0.3.4", "@walmart/me-at-walmart-athena-queries": "6.31.0", "@walmart/me-at-walmart-common": "workspace:^", --- src/navigation/USHallway/AssociateHallwayNav/Tabs/MyTeamStackNav.tsx @@ -8,6 +8,7 @@ import rosterFeature from '@walmart/roster-mini-app'; import AttendanceFeature from '../../../../features/attendance'; import {MyTeamStackMap} from '../types'; import {renderCommunicationHeader} from './config'; +import LearningFeature from '@walmart/learning-mini-app'; const MyTeamStack = createStackNavigator<MyTeamStackMap>(); @@ -40,6 +41,10 @@ export const MyTeamStackNav = () => { ['managedTorListScreen', 'managedTorDetailsScreen'], {Navigator: MyTeamStack}, )} + {LearningFeature.buildScreens( + ['myTeam.learningDetailScreen', 'ManagerExperienceAssocView'], + {Navigator: MyTeamStack}, + )} </MyTeamStack.Navigator> ); }; --- yarn.lock @@ -8415,9 +8415,9 @@ __metadata: languageName: node linkType: hard -"@walmart/learning-mini-app@npm:20.0.47": - version: 20.0.47 - resolution: "@walmart/learning-mini-app@npm:20.0.47::__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.47.tgz" +"@walmart/learning-mini-app@npm:20.0.70": + version: 20.0.70 + resolution: "@walmart/learning-mini-app@npm:20.0.70::__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.70.tgz" peerDependencies: "@react-native-firebase/analytics": 17.4.2 "@react-native-firebase/app": 17.4.2 @@ -8429,7 +8429,6 @@ __metadata: "@react-navigation/native": ^6.0.8 "@react-navigation/stack": ">=6" "@types/graphql": ^14.5.0 - "@walmart/allspark-foundation": "*" "@walmart/allspark-utils": ^1.5.2 "@walmart/config-components": 4.4.5 "@walmart/core-services": ~6.5.2 @@ -8445,7 +8444,7 @@ __metadata: "@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/time-clock-mini-app": ">=3.4.0" "@walmart/ui-components": 1.15.11 "@walmart/wfm-ui": 0.8.x base-64: ^1.0.0 @@ -8490,7 +8489,7 @@ __metadata: reduxsauce: ^1.2.0 reselect: ^4.0.0 wifi-store-locator: ^1.0.0-alpha2 - checksum: 10c0/6b14b3517290603b4da8b210f745c017c397da8e990792f6cff6082f2fa605741b652663309b8e008643c215905cb6e6a00052f822670fe588e1364a1c176fba + checksum: 10c0/d101827e2e58d1d49677e3dd401241faf2b7755abd13132b04e7e9916eca4849c8d08691b15bd9b6ce75cfabac7b6b7ff4bf73d36dc86cda6e3b8baca7a12322 languageName: node linkType: hard @@ -8712,7 +8711,7 @@ __metadata: "@walmart/inbox-mini-app": "npm:0.100.4" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12" "@walmart/iteminfo-mini-app": "npm:8.4.2" - "@walmart/learning-mini-app": "npm:20.0.47" + "@walmart/learning-mini-app": "npm:20.0.70" "@walmart/manager-approvals-miniapp": "npm:0.3.4" "@walmart/me-at-walmart-athena-queries": "npm:6.31.0" "@walmart/me-at-walmart-common": "workspace:^"
feat(LEARNING): bump versoin to 20.0.67 for learning mini app (#4330)
feat(LEARNING): bump versoin to 20.0.67 for learning mini app (#4330) * feat(learning): bump @walmart/learning-mini-app * feat(LEARNING): bump versoin to 20.0.67 for learning mini app * feat: Updated learning package version * feat(LEARNING): added new bump versoin for learning mini app * feat(LEARNING): added new bump version for learning mini app to 70 * feat: Removed the widget from the my teams stack nav screens config --------- Co-authored-by: a0p0f7d <a0p0f7d@homeoffice.wal-mart.com> Co-authored-by: Sanjay <bs.sanjay@walmart.com> Co-authored-by: Rashad Ahmed - r0a03gb <rashad.ahmed@walmart.com> Co-authored-by: Amit Srivastava - a0s1jca <AMIT.SRIVASTAVA1@walmart.com> Co-authored-by: Abhishek Purohit - a0p0f7d <Abhishek.Purohit0@walmart.com>
d21f0ae0399d57a8667cec69c7d96c70a0210210
--- packages/allspark-foundation/src/User/redux.ts @@ -3,6 +3,7 @@ import { AuthActionCreators } from '../Auth'; import { generateActionTypes } from '../Redux/utils'; import { InferActionTypes } from '../Redux/types'; import { AllsparkUserService, ImpersonationUser, User } from './types'; +import { merge } from 'lodash'; export type UserState = { loading: boolean; @@ -61,7 +62,7 @@ export const userSlice = createSlice({ state.impersonator = null; }, UPDATE: (state, action: PayloadAction<Partial<User>>) => { - state.data = state.data ? { ...state.data, ...action.payload } : null; + state.data = state.data ? merge(state.data, action.payload) : null; }, }, extraReducers: (builder) => {
chore: update merge function for user update
chore: update merge function for user update
3fe3ba8064f511faccc9ca6397612c293b320781
--- package-lock.json @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.178.0-rc.1", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.178.0-rc.1.tgz", - "integrity": "sha512-rpaI4WT19cYyGphYXSgQzGfz1QXkupLrD9etUlWnZbEmPLo71UedzYDMaxtpvYCiIQ/79FRGNq80lorIu6Z0KQ==" + "version": "0.184.0-rc.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.184.0-rc.0.tgz", + "integrity": "sha512-YeOTkdoEr7CjUqiGFgZF1myEzxnyznsWDBSsByZ3qWGad3o64h7eWYdptvjqwWt35Z8zRZqOu/VIPMR1cmGUQw==" }, "@walmart/time-clock-mini-app": { "version": "0.4.27", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.11.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.1", - "@walmart/taskit-mini-app": "0.178.0-rc.1", + "@walmart/taskit-mini-app": "0.184.0-rc.0", "@walmart/time-clock-mini-app": "0.4.27", "@walmart/ui-components": "1.3.0-rc.10", "@walmart/welcomeme-mini-app": "0.44.0",
Updating taskit version
Updating taskit version
8e30c40bddc497309641149fc810cad900f8c7c7
--- package-lock.json @@ -55,7 +55,7 @@ "@walmart/gtp-shared-components": "2.0.6", "@walmart/impersonation-mini-app": "1.20.2", "@walmart/ims-print-services-ui": "2.4.1", - "@walmart/inbox-mini-app": "0.85.2", + "@walmart/inbox-mini-app": "0.86.1", "@walmart/iteminfo-mini-app": "7.3.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "12.0.25", @@ -5354,9 +5354,9 @@ } }, "node_modules/@walmart/inbox-mini-app": { - "version": "0.85.2", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.2.tgz", - "integrity": "sha512-AAOapIuGpqsEHJO0lP9A1jWYus3t2IZT8LGyUN7bKDyBRdry/Dgoe8SBlGX7p9iZ2PJ5CjQn9eXipvYqav0mXA==", + "version": "0.86.1", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.86.1.tgz", + "integrity": "sha512-Td6gOuB0oiIPrLEoj/oEUtIL891NNusIKBcvBGKoq5QWN6e86C+XN8jYpu/U86FLboX2kup3LoJfQlya+kB21A==", "dependencies": { "@walmart/moment-walmart": "^1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" @@ -25311,9 +25311,9 @@ "version": "2.4.1" }, "@walmart/inbox-mini-app": { - "version": "0.85.2", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.2.tgz", - "integrity": "sha512-AAOapIuGpqsEHJO0lP9A1jWYus3t2IZT8LGyUN7bKDyBRdry/Dgoe8SBlGX7p9iZ2PJ5CjQn9eXipvYqav0mXA==", + "version": "0.86.1", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.86.1.tgz", + "integrity": "sha512-Td6gOuB0oiIPrLEoj/oEUtIL891NNusIKBcvBGKoq5QWN6e86C+XN8jYpu/U86FLboX2kup3LoJfQlya+kB21A==", "requires": { "@walmart/moment-walmart": "1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" --- package.json @@ -97,7 +97,7 @@ "@walmart/gtp-shared-components": "2.0.6", "@walmart/impersonation-mini-app": "1.20.2", "@walmart/ims-print-services-ui": "2.4.1", - "@walmart/inbox-mini-app": "0.86.0", + "@walmart/inbox-mini-app": "0.86.1", "@walmart/iteminfo-mini-app": "7.3.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "12.0.25",
Platform Components Upgrade
Platform Components Upgrade
9430cac867fcc4018567393fe51e2825b47c0b20
--- plugins/utils.ts @@ -1,3 +1,7 @@ +/** + * Same sanitization of app name that used by Expo. + * Handles transformation of Me@Walmart -> MeWalmart + */ export function sanitizedName(name: string) { return name .replace(/[\W_]+/g, "")
chore: add comment to explain plugin sanitized name method
chore: add comment to explain plugin sanitized name method
be3b2ee9b60b816a21467831d6e1d7fbb5f3da14
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/styles.ts @@ -36,7 +36,7 @@ export const editSavedTeamModalStyles = StyleSheet.create({ }, emptyStateText: { textAlign: 'center', - color: '#757575', + color: colors.gray, }, }); --- packages/allspark-foundation-hub/src/SupplyChain/Screens/OnboardingScreen/OnboardingContext.tsx @@ -36,9 +36,9 @@ export const SupplyChainOnboardingProvider = ({ children }: any) => { isTeamLead || isSalaried || isUserSalariedEmployee || isPeopleLead; const { - teamPreferenceData = [], - shiftPreferenceData = [], - onCompleted = false, + teamPreferenceData, + shiftPreferenceData, + onCompleted, data, loading: prefLoading, } = useGetSupplyChainTeamsPreferenceQuery();
fix(bug): address comments
fix(bug): address comments
925ad91105fb248243118e5ab8424df951b35cfc
--- ios/Podfile @@ -8,6 +8,7 @@ source 'git@gecgithub01.walmart.com:ssaeSCTP/CocoaPodSpecs.git' source 'https://github.com/CocoaPods/Specs.git' use_frameworks! :linkage => :static +use_modular_headers! # Convert all permission pods into static libraries pre_install do |installer| @@ -37,7 +38,7 @@ target 'AllSpark' do inherit! :complete # Pods for testing end - + # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and --- ios/Podfile.lock @@ -593,7 +593,7 @@ PODS: - React - react-native-webview (10.10.0): - React-Core - - react-native-wm-barcode (1.1.6): + - react-native-wm-barcode (2.9.0): - React - react-native-wm-voice-text (0.3.1): - React @@ -1020,7 +1020,7 @@ SPEC CHECKSUMS: react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 - react-native-wm-barcode: ed8492890e3f3bbdd5f05a318a3781f5a986532c + react-native-wm-barcode: 1f16edb27dac807563ed08edc9d0ba042e9a182d react-native-wm-voice-text: 498a87b567be0074720a30386a22b1e7cde873f5 React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5 React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6 @@ -1060,6 +1060,6 @@ SPEC CHECKSUMS: Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 Yoga: 7740b94929bbacbddda59bf115b5317e9a161598 -PODFILE CHECKSUM: 5cf9f484f892993d0a59183a66cd4b5e6e3e799d +PODFILE CHECKSUM: fadb9bc7d19559b8c170da2d43cc86b7a771ba75 COCOAPODS: 1.9.3 --- package-lock.json @@ -2996,9 +2996,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.7.9", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.7.9.tgz", - "integrity": "sha512-qyOybcet6ki2VapKe74DTJarQ4PWskgJm9vUQHQ4tT8n5bv9xKBrC/IUL+zD+iqJCFR6dSvYM86fARPlZO/SKA==", + "version": "0.8.0", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.8.0.tgz", + "integrity": "sha512-f09qGRamV0T4wJk8XquuMIQgIJ32Hy5KanIHsuBbo504ZgaKVti/Q0iYLw3JOTqht1uljAlhsZZFX1sqVPhNaQ==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", @@ -12497,9 +12497,9 @@ } }, "react-native-wm-barcode": { - "version": "2.3.0", - "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.3.0.tgz", - "integrity": "sha512-B4sr2D46JndoZ16OFnL9Zs8g/SUeFo4JItAJdf58kCZ08meMwZ3svXzRyfYtR1tWMUHmK5OuXwIu6KP4WQqd1g==" + "version": "2.9.0", + "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.9.0.tgz", + "integrity": "sha512-0JxTtX3vbAJGmn71FU0nUEApfXmJjXDe5XNLIL7rNiG+U9Clw/AOAdQw58S6WqwJ7JxGZDrF8NFsxUbJAt0whg==" }, "react-native-wm-config": { "version": "0.1.1", --- package.json @@ -48,7 +48,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.20", "@walmart/allspark-home-mini-app": "^0.1.8", "@walmart/allspark-me-mini-app": "0.0.16", - "@walmart/ask-sam-mini-app": "0.7.9", + "@walmart/ask-sam-mini-app": "0.8.0", "@walmart/config-components": "1.0.8", "@walmart/feedback-all-spark-miniapp": "0.0.31", "@walmart/functional-components": "^1.0.22", @@ -102,7 +102,7 @@ "react-native-video": "^5.1.0-alpha8", "react-native-view-shot": "^3.1.2", "react-native-webview": "^10.7.0", - "react-native-wm-barcode": "2.3.0", + "react-native-wm-barcode": "2.9.0", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.1.0", "react-native-wm-notification": "^0.1.1",
New barcode comp for scanner (#271)
New barcode comp for scanner (#271)
51deb7f5615daa2a13117f9bfee9db3e497453f8
--- docs/CHANGELOG.md @@ -1,3 +1,19 @@ +# [3.7.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.6.0...v3.7.0) (2025-09-17) + + +### Bug Fixes + +* SMDV-7771 add translation keys ([c27032d](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/c27032daec6effc70201bb4d7bf18a1458c1c92f)) + + +### Features + +* **ui:** adding new version for drop 34 ([46c5965](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/46c596562e48282a57e3f59e97bf1d8157372868)) +* **ui:** adding new version for drop 34 ([d4fb6d1](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/d4fb6d12c5b4ab951d0abc2b2449e5ba882a640e)) +* **ui:** new version for drop 34 ([24cb9a9](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/24cb9a93e5cf0e80b9c7e6db19400cdee2236be4)) +* **ui:** new version for drop 34 ([c4d0bcd](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/c4d0bcd8ba4f74d9a19b0f315c2058bc029ef120)) +* **ui:** new version for drop 34 ([abffb57](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/abffb57b9e0cfde4fb3e5c2350b1f76143e14486)) + # [3.6.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.5.0...v3.6.0) (2025-09-05) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.6.0", + "version": "3.7.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.7.0 [skip ci]
chore(release): 3.7.0 [skip ci] # [3.7.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.6.0...v3.7.0) (2025-09-17) ### Bug Fixes * SMDV-7771 add translation keys ([c27032d](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/c27032daec6effc70201bb4d7bf18a1458c1c92f)) ### Features * **ui:** adding new version for drop 34 ([46c5965](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/46c596562e48282a57e3f59e97bf1d8157372868)) * **ui:** adding new version for drop 34 ([d4fb6d1](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/d4fb6d12c5b4ab951d0abc2b2449e5ba882a640e)) * **ui:** new version for drop 34 ([24cb9a9](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/24cb9a93e5cf0e80b9c7e6db19400cdee2236be4)) * **ui:** new version for drop 34 ([c4d0bcd](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/c4d0bcd8ba4f74d9a19b0f315c2058bc029ef120)) * **ui:** new version for drop 34 ([abffb57](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/abffb57b9e0cfde4fb3e5c2350b1f76143e14486))
7e6659bb497990f210a89f5370e9da0e17298d0f
--- package-lock.json @@ -3652,9 +3652,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.30.3", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.30.3.tgz", - "integrity": "sha512-+11ew8A3ITZO8CFcSnot7+8Csn6nhYTSgVjWiMtRg2qEabRKfw28bLMAkKgla0FfiIneHYRzxYOOAgvQ+WlrQA==" + "version": "0.30.4", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.30.4.tgz", + "integrity": "sha512-L4pZnzF3aF24H9ic1S+dSb/6sqQmGd3P/UflUActHWCoD9f2CRv9WCw7rCO7foa4+XYGSANDY7fu30e7QMxSWA==" }, "@walmart/wfm-ui": { "version": "0.1.50", --- package.json @@ -99,7 +99,7 @@ "@walmart/shelfavailability-mini-app": "0.3.89", "@walmart/time-clock-mini-app": "0.4.10", "@walmart/ui-components": "1.1.57", - "@walmart/welcomeme-mini-app": "0.30.3", + "@walmart/welcomeme-mini-app": "0.30.4", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0",
version bump
version bump
c1e182353963888810832c9e3a39aaad5f59d8f1
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.1-beta.19", + "version": "1.0.1-beta.18", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Update the user domain for team switcher
Update the user domain for team switcher
88f9b9002ba6ccb9216fc590f1b46c781214b80e
--- packages/allspark-graphql-client/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.0.10](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-graphql-client@0.0.9...@walmart/allspark-graphql-client@0.0.10) (2023-01-16) + +**Note:** Version bump only for package @walmart/allspark-graphql-client + + + + + ## [0.0.9](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-graphql-client@0.0.8...@walmart/allspark-graphql-client@0.0.9) (2023-01-16) **Note:** Version bump only for package @walmart/allspark-graphql-client --- packages/allspark-graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "0.0.9", + "version": "0.0.10", "description": "> TODO: description", "license": "ISC", "main": "lib/index.js", --- packages/allspark-redux-store/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.9](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-redux-store@1.0.8...@walmart/allspark-redux-store@1.0.9) (2023-01-16) + +**Note:** Version bump only for package @walmart/allspark-redux-store + + + + + ## [1.0.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-redux-store@1.0.7...@walmart/allspark-redux-store@1.0.8) (2023-01-16) **Note:** Version bump only for package @walmart/allspark-redux-store --- packages/allspark-redux-store/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-redux-store", - "version": "1.0.8", + "version": "1.0.9", "description": "Common redux store for allspark platform", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-graphql-client@0.0.10 - @walmart/allspark-redux-store@1.0.9
c61a3d2876fb807deeb4de3d433a79aacfcfc208
--- package-lock.json @@ -47,7 +47,7 @@ "@walmart/emergency-mini-app": "1.17.0", "@walmart/exception-mini-app": "1.0.16", "@walmart/facilities-management-miniapp": "0.4.2", - "@walmart/feedback-all-spark-miniapp": "0.9.9", + "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", @@ -55,7 +55,7 @@ "@walmart/impersonation-mini-app": "1.10.0", "@walmart/ims-print-services-ui": "1.2.2", "@walmart/inbox-mini-app": "0.81.7", - "@walmart/iteminfo-mini-app": "5.3.4", + "@walmart/iteminfo-mini-app": "^5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.38", @@ -81,7 +81,7 @@ "@walmart/schedule-mini-app": "0.32.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", - "@walmart/taskit-mini-app": "0.49.6", + "@walmart/taskit-mini-app": "0.49.11", "@walmart/time-clock-mini-app": "0.30.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", @@ -5199,9 +5199,9 @@ } }, "node_modules/@walmart/feedback-all-spark-miniapp": { - "version": "0.9.9", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.9.tgz", - "integrity": "sha512-zflnSCCc2yaDFeasMBtEuH74oGEZg1E2auhNUZ05C6zzO9yZ+oHun9+0jhnt+ag6zqZDCG1/AbgUJjfzAgY2dA==", + "version": "0.9.10", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.10.tgz", + "integrity": "sha512-zqz82og6sfBPi2wYuXT6WiBgENoP8RMv3FUoQ4sb1TjIacOFRuGJbsu1TjG1YtdOz/GDrMty9W9ZH03KyNZLFg==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -5378,9 +5378,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "5.3.4", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.4.tgz", - "integrity": "sha512-jL8iD/55+BQk+1uupy1j4hvh8AeopcKdsi5efF6P7w6r9jzR9H99kkOyFyb/QgEg46BzyUSn07vzZuyobMLjXA==", + "version": "5.3.5", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.5.tgz", + "integrity": "sha512-786nix/xXHvAEPDEL7pJGEdUmH0aHt1FGBXjvzqqYsxFie6Zs2KSMxtS1eQQq/Vd9/hpn+trW88M2EmEzKDGpw==", "peerDependencies": { "@react-native-community/async-storage": ">=1.12.1", "@react-native-community/netinfo": ">=9.3.6", @@ -6117,9 +6117,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "0.49.6", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.6.tgz", - "integrity": "sha512-uIOdjSxp9dB/x036dC8bnRom0hkr+FqvXT0GdrX69M+dVEV0rrHGARrBOVqQZIN1U2tg/EhyDh3Et1avL+ZJLw==", + "version": "0.49.11", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.11.tgz", + "integrity": "sha512-D0Oi1XUgIvxIVjQL2wl0nyeTJr0Sqcvtezbag3ZG0tMlwxGJMXNB2PvkQ5n8JBuAV1YRlggsGtIp+yLz+slgCQ==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -25503,9 +25503,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "5.3.4", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.4.tgz", - "integrity": "sha512-jL8iD/55+BQk+1uupy1j4hvh8AeopcKdsi5efF6P7w6r9jzR9H99kkOyFyb/QgEg46BzyUSn07vzZuyobMLjXA==" + "version": "5.3.5", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.5.tgz", + "integrity": "sha512-786nix/xXHvAEPDEL7pJGEdUmH0aHt1FGBXjvzqqYsxFie6Zs2KSMxtS1eQQq/Vd9/hpn+trW88M2EmEzKDGpw==" }, "@walmart/manager-approvals-miniapp": { "version": "0.2.1", --- package.json @@ -97,7 +97,7 @@ "@walmart/impersonation-mini-app": "1.10.0", "@walmart/ims-print-services-ui": "1.2.2", "@walmart/inbox-mini-app": "0.81.7", - "@walmart/iteminfo-mini-app": "5.3.4", + "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.38",
Bump item-info@5.3.5
Bump item-info@5.3.5
aed1e4a8157c189379e80f9fb3762c671f480276
--- .looper.yml @@ -7,11 +7,6 @@ updateTaskStatusOnGit: true scheduling: concurrent -envs: - global: - variables: - ALLOW_NPM_PUSH_TO_AF: true - triggers: - manual: name: PR --- .yarnrc.yml @@ -8,6 +8,3 @@ logFilters: nodeLinker: node-modules -# Add the following in your Local Mac's ~/.zshrc file -# export REPOSOLNS_NPM_REPO=https://npm.ci.artifacts.walmart.com/artifactory/api/npm/npme-npm -npmRegistryServer: ${REPOSOLNS_NPM_REPO}
chore: revert artifactory changes
chore: revert artifactory changes
34d4b06fd38d0f6e920542fcce2802c369b41bb4
--- packages/allspark-utils/src/Layout.tsx @@ -12,6 +12,7 @@ export type LayoutColumnConfig = { componentId: string; component?: string; width?: number; + metaData?: { [key: string]: any }; }; export type LayoutConfig = LayoutColumnConfig[][]; @@ -49,7 +50,7 @@ export const Layout = <P = {},>(props: LayoutProps<P>) => { {layout.map((row, rowIndex) => ( <View style={styles.row} key={`${rowIndex}-${row.length}`}> {row.map((column, colIndex) => { - const { componentId, component, width } = column; + const { componentId, component, width, metaData } = column; const id = componentId || component || ''; const Component = config[id]; @@ -62,7 +63,10 @@ export const Layout = <P = {},>(props: LayoutProps<P>) => { key={`${componentId}-${rowIndex}-${colIndex}`} style={[styles.column, !!width && { flex: width }]} > - <Component {...(componentProps as any)} /> + <Component + {...(componentProps as any)} + {...(metaData as any)} + /> </View> ); })}
add metadata prop
add metadata prop
e34477cb53a6149cf4b2d9c21ca79447bb1d02a6
--- graphql.yml @@ -18,18 +18,15 @@ applications: tags: - 'v3' - name: 'GetDailyRoster' - hash: '3c6a1553234da438299662b03db04cc613b52ca997efb511ac76d5eff118a4bf' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - 'v3' - 'Drop14' - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v3' - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v3' @@ -46,17 +43,14 @@ applications: tags: - 'v1' - name: 'GetDailyRoster' - hash: '3c6a1553234da438299662b03db04cc613b52ca997efb511ac76d5eff118a4bf' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - 'v3' - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v3' - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v1'
removed hash values
removed hash values
e76c78bbdc42077658f8371e12580e183d4d2f1d
--- package-lock.json @@ -47,7 +47,7 @@ "@walmart/emergency-mini-app": "1.24.1", "@walmart/exception-mini-app": "1.2.30", "@walmart/facilities-management-miniapp": "0.6.30", - "@walmart/feedback-all-spark-miniapp": "0.9.32", + "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.6.3", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", @@ -5184,9 +5184,9 @@ } }, "node_modules/@walmart/feedback-all-spark-miniapp": { - "version": "0.9.32", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.32.tgz", - "integrity": "sha512-rjO+YZ2W5CYKXwYXGZTVt5ztJOy9l5no1wOYmvbUsnZQZ8/U7J6ZYQQ3HOX5zabGEYtSdZadEGV0CBixLgGEGg==", + "version": "0.9.33", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.33.tgz", + "integrity": "sha512-QLeqtiHcX2DX1AJQWHEGQ1kJY1uR6SlXMQL9UdIVlFnBJR1MdAsSfzj5gw5hdeTNnuNG+Xbw0ppCY96NRd39Bw==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25247,9 +25247,9 @@ "integrity": "sha512-b1EhbGSqRzP/RHE/IoRpbg8io7CWrPIKrjyiuSjhHJsl2qd54wlGcm+zoK/19ohGSjPCnXTKjfbc5qI0MZZk6A==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.9.32", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.32.tgz", - "integrity": "sha512-rjO+YZ2W5CYKXwYXGZTVt5ztJOy9l5no1wOYmvbUsnZQZ8/U7J6ZYQQ3HOX5zabGEYtSdZadEGV0CBixLgGEGg==" + "version": "0.9.33", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.33.tgz", + "integrity": "sha512-QLeqtiHcX2DX1AJQWHEGQ1kJY1uR6SlXMQL9UdIVlFnBJR1MdAsSfzj5gw5hdeTNnuNG+Xbw0ppCY96NRd39Bw==" }, "@walmart/financial-wellbeing-feature-app": { "version": "1.6.3" --- package.json @@ -89,7 +89,7 @@ "@walmart/emergency-mini-app": "1.24.1", "@walmart/exception-mini-app": "1.2.30", "@walmart/facilities-management-miniapp": "0.6.30", - "@walmart/feedback-all-spark-miniapp": "0.9.32", + "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.6.3", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16",
Feedbackmini version bump to refactor httpClient
Feedbackmini version bump to refactor httpClient
ae8b79abe7235dfe52b40358ea6d1134c79a05f8
--- packages/celebration-mini-app-graphql/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.20.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.18.1...@walmart/celebration-mini-app-graphql@1.20.0) (2025-11-27) + +### Bug Fixes + +- **ui:** celebration details count issue ([b50745e](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/b50745e463d68e12ad703f6bdc4cccbddcc576f9)) + +### Features + +- **ui:** update celebrations mini app queries ([5b753d4](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/5b753d4a55ba59ab61b8f75d24911bccdba93f2f)) +- **ui:** update celebrations mini app queries ([f92d0e5](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/f92d0e58f29662b865a9a97f7045baa68edea7f7)) +- **ui:** update celebrations mini app queries ([29aefca](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/29aefcac4be18d313103101e453feeb525b2dfbe)) + # [1.19.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.18.1...@walmart/celebration-mini-app-graphql@1.19.0) (2025-11-26) ### Features --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.19.0", + "version": "1.20.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/celebration-mini-app/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.30.1](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.30.0...@walmart/celebration-mini-app@1.30.1) (2025-11-27) + +### Bug Fixes + +- **ui:** celebration details count issue ([b50745e](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/b50745e463d68e12ad703f6bdc4cccbddcc576f9)) + # [1.30.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.29.0...@walmart/celebration-mini-app@1.30.0) (2025-11-26) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.30.0", + "version": "1.30.1", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.30.1 - @walmart/celebration-mini-app-graphql@1.20.0
717f9488f2347ab688077eabd630e74ed63b5dc4
--- packages/allspark-foundation/jest.config.js @@ -4,7 +4,7 @@ module.exports = { '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { rootMode: 'upward' }], }, transformIgnorePatterns: [ - '<rootDir>/node_modules/(?!(nanoid|react-native-reanimated|@walmart/gtp-shared-components|@walmart/gtp-shared-icons)/)', + '<rootDir>/node_modules/(?!(nanoid|react-native-reanimated|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-navigation)/)', ], globals: { __DEV__: true,
fix: additional test failures
fix: additional test failures
ffff4d5c76d45bb17500c63bd65c97ddb202aa06
--- package.json @@ -145,7 +145,7 @@ "@walmart/shelfavailability-mini-app": "1.5.23", "@walmart/store-feature-orders": "1.26.7", "@walmart/taskit-mini-app": "2.81.15", - "@walmart/time-clock-mini-app": "2.374.0", + "@walmart/time-clock-mini-app": "2.377.0", "@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch", "@walmart/welcomeme-mini-app": "0.90.3", --- yarn.lock @@ -7146,9 +7146,9 @@ __metadata: languageName: node linkType: hard -"@walmart/time-clock-mini-app@npm:2.374.0": - version: 2.374.0 - resolution: "@walmart/time-clock-mini-app@npm:2.374.0" +"@walmart/time-clock-mini-app@npm:2.377.0": + version: 2.377.0 + resolution: "@walmart/time-clock-mini-app@npm:2.377.0" dependencies: "@react-navigation/elements": "npm:^1.3.1" moment-timezone: "npm:0.5.33" @@ -7191,7 +7191,7 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: ^1.4.0 xdate: ^0.8.2 - checksum: 10c0/953478a7f15dccf4aa8408f49ea2f0eaf640431b6bb3ee3268f1f8ee9d87cc947d32b060a3e9c27b6793ebdbc4f2ea2cebdb8f383726f98791d91f183b96f1ff + checksum: 10c0/9f01e3cc0202456e4a8cbe689cc348c793d1cedb48d33acf3fa8f3ef67325754a8378bd76aafc037f49c30e5f48910a8c192f31852981a26852c860b1c35bb32 languageName: node linkType: hard @@ -7785,7 +7785,7 @@ __metadata: "@walmart/shelfavailability-mini-app": "npm:1.5.23" "@walmart/store-feature-orders": "npm:1.26.7" "@walmart/taskit-mini-app": "npm:2.81.15" - "@walmart/time-clock-mini-app": "npm:2.374.0" + "@walmart/time-clock-mini-app": "npm:2.377.0" "@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch" "@walmart/welcomeme-mini-app": "npm:0.90.3"
Update TCMA to 2.377.0
Update TCMA to 2.377.0
d756d766b1c3257e0806454c3aede9af2e4e8e2e
--- src/translations/en-US.ts @@ -17,6 +17,7 @@ export const enUS = { '@walmart/mod-flex-mini-app': 'Mod Flex', '@walmart/payrollsolution_miniapp': 'Payroll', '@walmart/price-changes-mini-app': 'Price Changes', + '@walmart/profile-feature-app': 'Associate Profile', '@walmart/push-to-talk-mini-app': 'Push To Talk', '@walmart/refrigeration-alarms-mini-app': 'Refrigeration Alarms', '@walmart/schedule-mini-app': 'Schedules', --- src/translations/es-MX.ts @@ -17,6 +17,7 @@ export const esMX = { '@walmart/mod-flex-mini-app': 'Mod Flex', '@walmart/payrollsolution_miniapp': 'Payroll', '@walmart/price-changes-mini-app': 'Cambios de precios', + '@walmart/profile-feature-app': 'Associate Profile', '@walmart/push-to-talk-mini-app': 'Push To Talk', '@walmart/refrigeration-alarms-mini-app': 'Alarmas de Refrigeración', '@walmart/schedule-mini-app': 'Schedules',
Added associate profile app name.
Added associate profile app name.
817612530373ccfae955eedc5e2f94bc9bce5043
--- package-lock.json @@ -3097,9 +3097,9 @@ "integrity": "sha512-eDS3eLxVfwTsUICU89ERbzln7RdE53bKTfT5gwYg7wn+bo7U/VtRNX5A12r1Et8nRITkwfGh9ZZS05frCO1TYQ==" }, "@walmart/time-clock-mini-app": { - "version": "0.1.2", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.2.tgz", - "integrity": "sha512-zZngpsMqNjyge8BtE22QyHnfyIgXAa5OgY0Oqlv+rxsMN1tneqRNW7n1OV7o8XcGwx2vhVj6R64mmi/TiQaT1A==", + "version": "0.1.6", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.6.tgz", + "integrity": "sha512-rUI56SF0pLMf81DZYaySYxoiSdq57KMeU8XowfPJgIUaY+lIS+bBsPIzzu/26TCL7ma7i4O5XNoNe1n8zRiYYg==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "moment-timezone": "^0.5.31", --- package.json @@ -62,7 +62,7 @@ "@walmart/redux-store": "^1.0.7", "@walmart/schedule-mini-app": "0.2.35", "@walmart/settings-mini-app": "1.1.8", - "@walmart/time-clock-mini-app": "0.1.2", + "@walmart/time-clock-mini-app": "0.1.6", "@walmart/ui-components": "^1.0.81", "i18next": "^19.7.0", "intl": "^1.2.5", --- src/navigation/Navigation.tsx @@ -21,6 +21,8 @@ import { TimeClockScreen, NewTorScreen, TorInboxScreen, + TorReviewScreen, + TorSubmissionScreen, } from '@walmart/time-clock-mini-app'; import {ScheduleMiniApp} from '@walmart/schedule-mini-app'; import {HealthSurveyMiniApp} from '@walmart/allspark-health-survey-mini-app'; @@ -264,10 +266,7 @@ const RootNav = () => { component={TimeClockScreen} options={{ ...commonModalHeaderProps, - headerStyle: { - ...styles.primaryHeader, - shadowOffset: {width: 0, height: 0}, - }, + header: Header, }} /> <RootStack.Screen @@ -275,10 +274,23 @@ const RootNav = () => { component={NewTorScreen} options={{ ...commonModalHeaderProps, - headerStyle: { - ...styles.primaryHeader, - shadowOffset: {width: 0, height: 0}, - }, + header: Header, + }} + /> + <RootStack.Screen + name='torSubmission' + component={TorSubmissionScreen} + options={{ + ...commonModalHeaderProps, + header: Header, + }} + /> + <RootStack.Screen + name='torReview' + component={TorReviewScreen} + options={{ + ...commonModalHeaderProps, + header: Header, }} /> <RootStack.Screen @@ -286,10 +298,7 @@ const RootNav = () => { component={TorInboxScreen} options={{ ...commonModalHeaderProps, - headerStyle: { - ...styles.primaryHeader, - shadowOffset: {width: 0, height: 0}, - }, + header: Header, }} /> <RootStack.Screen
Fixed time clock mini app headers and routes + Misc Fixes (#236)
Fixed time clock mini app headers and routes + Misc Fixes (#236) * Misc fixes Fixed headers and routes * Bump time clock mini app * Bump time clock mini app * More fixes Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
90bdbd2071d130d7d951be2a6d881988fe5463dd
--- package-lock.json @@ -82,7 +82,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.8.0", + "@walmart/time-clock-mini-app": "2.9.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26", @@ -6120,9 +6120,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.8.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.8.0.tgz", - "integrity": "sha512-nqCsCE9aFFj4jGZlixMknhYAs2MbwTFLS0cjcdjJVWTjPIs1g6i/iDljrUWSyGWNS0v3nAYAw4WSvg9hj6b6Ow==", + "version": "2.9.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.9.0.tgz", + "integrity": "sha512-BvodUL9zOFxxEJc8837FdYDTfD1MI0uwyb5Yb5OgiHHALNVbb7gh9Z0dilL25vt67LIHqbi83CsQLKY2qcOyXg==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -25663,9 +25663,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.8.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.8.0.tgz", - "integrity": "sha512-nqCsCE9aFFj4jGZlixMknhYAs2MbwTFLS0cjcdjJVWTjPIs1g6i/iDljrUWSyGWNS0v3nAYAw4WSvg9hj6b6Ow==", + "version": "2.9.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.9.0.tgz", + "integrity": "sha512-BvodUL9zOFxxEJc8837FdYDTfD1MI0uwyb5Yb5OgiHHALNVbb7gh9Z0dilL25vt67LIHqbi83CsQLKY2qcOyXg==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -124,7 +124,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.2", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.8.0", + "@walmart/time-clock-mini-app": "2.9.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26",
Update time clock to 2.9.0
Update time clock to 2.9.0
9b37ccd69c06fb87c77f21367338a084cfd44d5a
--- packages/allspark-foundation/src/Translation/client.ts @@ -185,7 +185,7 @@ export const TranslationClient = (config?: TranslationClientOptions) => { const syncToDeviceLanguage = async () => { const originalDeviceLanguage = await getDeviceLanguage(); const parsedDeviceLanguage = originalDeviceLanguage.replace('_', '-'); - const supportedLanguages = _instance?.options?.supportedLngs || []; + const supportedLanguages = _config?.supportedLanguages || []; const allowedDeviceLanguage = supportedLanguages.includes( parsedDeviceLanguage
Update client.ts
Update client.ts
243cd7139cf6a554dbfd3f6e32226949fed437a7
--- package.json @@ -134,7 +134,7 @@ "@walmart/me-at-walmart-common": "workspace:^", "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-location": "^1.2.20", - "@walmart/metrics-mini-app": "1.34.6", + "@walmart/metrics-mini-app": "1.34.9", "@walmart/mod-flex-mini-app": "1.31.5", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.4.3", --- yarn.lock @@ -8538,7 +8538,7 @@ __metadata: "@walmart/me-at-walmart-common": "workspace:^" "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-location": "npm:^1.2.20" - "@walmart/metrics-mini-app": "npm:1.34.6" + "@walmart/metrics-mini-app": "npm:1.34.9" "@walmart/mod-flex-mini-app": "npm:1.31.5" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.4.3" @@ -8788,9 +8788,9 @@ __metadata: languageName: node linkType: hard -"@walmart/metrics-mini-app@npm:1.34.6": - version: 1.34.6 - resolution: "@walmart/metrics-mini-app@npm:1.34.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fmetropolis-npm%2F%40walmart%2Fmetrics-mini-app%2F-%2F%40walmart%2Fmetrics-mini-app-1.34.6.tgz" +"@walmart/metrics-mini-app@npm:1.34.9": + version: 1.34.9 + resolution: "@walmart/metrics-mini-app@npm:1.34.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmetrics-mini-app%2F-%2F%40walmart%2Fmetrics-mini-app-1.34.9.tgz" dependencies: "@walmart/metrics-common": "npm:1.8.2" base-64: "npm:^1.0.0" @@ -8816,7 +8816,7 @@ __metadata: react-native: 0.73.7 react-redux: ">=8.0.4" reduxsauce: ">=1.2.0" - checksum: 10c0/e51a4c14558375fcc72a7a26894fec661e2d4453dec16be41c263b77b8378f019b306e78184666254a5b86615c1928953f94c9c40a52b73f2cb5e65c9363e9e8 + checksum: 10c0/18dfdbe67fc64e95d3a24481dc091bbceffa6f5db9023745ac7ed9393e65c4c070f4ab774c53c89c1a614d198590e4ddc3c76ed0768391e1d5138ba6b69b8e30 languageName: node linkType: hard @@ -19227,12 +19227,12 @@ __metadata: linkType: hard "path-scurry@npm:^2.0.0": - version: 2.0.1 - resolution: "path-scurry@npm:2.0.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fpath-scurry%2F-%2Fpath-scurry-2.0.1.tgz" + version: 2.0.0 + resolution: "path-scurry@npm:2.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fpath-scurry%2F-%2Fpath-scurry-2.0.0.tgz" dependencies: lru-cache: "npm:^11.0.0" minipass: "npm:^7.1.2" - checksum: 10c0/2a16ed0e81fbc43513e245aa5763354e25e787dab0d539581a6c3f0f967461a159ed6236b2559de23aa5b88e7dc32b469b6c47568833dd142a4b24b4f5cd2620 + checksum: 10c0/3da4adedaa8e7ef8d6dc4f35a0ff8f05a9b4d8365f2b28047752b62d4c1ad73eec21e37b1579ef2d075920157856a3b52ae8309c480a6f1a8bbe06ff8e52b33c languageName: node linkType: hard
feat: metrics drop 35 (#5207)
feat: metrics drop 35 (#5207) Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com>