commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
409a8976b61fbd984ce68ec7718f4058f5081782
--- package.json @@ -83,7 +83,7 @@ "@walmart/core-utils": "~1.0.10", "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.42.1", - "@walmart/facilities-management-miniapp": "0.0.6", + "@walmart/facilities-management-miniapp": "0.0.7", "@walmart/feedback-all-spark-miniapp": "0.6.0", "@walmart/functional-components": "2.0.3", "@walmart/gta-react-native-calendars": "0.0.15",
version bump
version bump
cb0768f72174bc03bafba5c42f9e066f4acf6838
--- lerna.json @@ -1,5 +1,5 @@ { - "version": "6.26.0-alpha.0", + "version": "6.24.0", "npmClient": "yarn", "changelogPreset": "angular", "command": {
chore: revert package version for publish
chore: revert package version for publish
889c0ef5d93a5b4b8f7faffd81ae0fe517d1bc99
--- package.json @@ -98,7 +98,7 @@ "@walmart/inbox-mini-app": "0.68.0", "@walmart/iteminfo-mini-app": "6.0.1", "@walmart/manager-approvals-miniapp": "0.1.1", - "@walmart/me-field-mini-app": "^1.1.34", + "@walmart/me-field-mini-app": "1.1.34", "@walmart/metrics-mini-app": "0.9.28", "@walmart/mod-flex-mini-app": "1.2.7", "@walmart/moment-walmart": "1.0.4",
📦 Bump learning mini-app for drop 8.3
📦 Bump learning mini-app for drop 8.3
86af31573efb8a9dce0a2bc485b8f40ffc85b1d2
--- .looper.multibranch.yml @@ -99,5 +99,4 @@ flows: mini-pr: - (name Branch Check, silent) echo "TBD" - call: build-npm - # Seems to be removed with RN 73, overriding mini-pr flow to exclude it - # - (name Build JS Bundle) ./node_modules/.bin/react-native bundle --entry-file ./index.js --bundle-output ./bundle.js --reset-cache + - (name Build JS Bundle) ./node_modules/.bin/react-native bundle --entry-file ./targets/US/index.js --bundle-output ./bundle.js --reset-cache
Update .looper.multibranch.yml
Update .looper.multibranch.yml Add build bundle step for targets.
eaff56fc59939439e8eef822985abec7cfe23be6
--- src/components/ClockedOutScreenGuard.tsx @@ -8,6 +8,7 @@ import {StyleSheet} from 'react-native'; import {Alert} from '@walmart/gtp-shared-components'; import {useSelector} from 'react-redux'; import {ClockStatusSelectors} from '@walmart/redux-store'; +import {useTranslation} from "@walmart/core-services/Translations"; const styles = StyleSheet.create({ warning: { @@ -23,6 +24,7 @@ export const ClockedOutScreenGuard: React.FC<ClockedOutScreenGuardProps> = ({ children, }) => { const clockedIn = useSelector(ClockStatusSelectors.getIsClockedIn); + const {t} = useTranslation(); if (!clockedIn) { analytics('roster', {message: 'clocked out roster access'}, 10); return ( --- src/translations/en-US.ts @@ -12,6 +12,11 @@ export const enUS = { rosterTab: 'Roster', messagesTab: 'Messages', }, + clockedOutScreenGuard: { + clockedOutMessage: + 'You are currently clocked out. This feature is only available when you are clocked in', + viewTimeClock: 'View time clock', + }, rosterScreen: { rosterName: ' Today’s {{teamName}} roster', weeklySchedule: 'Weekly schedule', --- src/translations/es-MX.ts @@ -12,6 +12,11 @@ export const esMX = { rosterTab: 'Lista', messagesTab: 'Mensajes', }, + clockedOutScreenGuard: { + clockedOutMessage: + 'Estás registrado actualmente. Esta función solo está disponible cuando estás fichado', //TODO: Used google translate needs real translation + viewTimeClock: 'Ver reloj de tiempo', //TODO: Used google translate, needs real translation + }, rosterScreen: { rosterName: ' Today’s {{teamName}} roster', weeklySchedule: 'Turno semanal', --- src/components/ClockedOutScreenGuard.tsx @@ -8,6 +8,7 @@ import {StyleSheet} from 'react-native'; import {Alert} from '@walmart/gtp-shared-components'; import {useSelector} from 'react-redux'; import {ClockStatusSelectors} from '@walmart/redux-store'; +import {useTranslation} from "@walmart/core-services/Translations"; const styles = StyleSheet.create({ warning: { @@ -23,6 +24,7 @@ export const ClockedOutScreenGuard: React.FC<ClockedOutScreenGuardProps> = ({ children, }) => { const clockedIn = useSelector(ClockStatusSelectors.getIsClockedIn); + const {t} = useTranslation(); if (!clockedIn) { analytics('roster', {message: 'clocked out roster access'}, 10); return ( --- src/translations/en-US.ts @@ -12,6 +12,11 @@ export const enUS = { rosterTab: 'Roster', messagesTab: 'Messages', }, + clockedOutScreenGuard: { + clockedOutMessage: + 'You are currently clocked out. This feature is only available when you are clocked in', + viewTimeClock: 'View time clock', + }, rosterScreen: { rosterName: ' Today’s {{teamName}} roster', weeklySchedule: 'Weekly schedule', --- src/translations/es-MX.ts @@ -12,6 +12,11 @@ export const esMX = { rosterTab: 'Lista', messagesTab: 'Mensajes', }, + clockedOutScreenGuard: { + clockedOutMessage: + 'Estás registrado actualmente. Esta función solo está disponible cuando estás fichado', //TODO: Used google translate needs real translation + viewTimeClock: 'Ver reloj de tiempo', //TODO: Used google translate, needs real translation + }, rosterScreen: { rosterName: ' Today’s {{teamName}} roster', weeklySchedule: 'Turno semanal',
adding translations
adding translations
ef803739133d849c69424caaf6914f2113f99f2b
--- package-lock.json @@ -5074,9 +5074,9 @@ "integrity": "sha512-jKGgw9xx+UMyrMxPHA5rE+/D916I47G2+GAymAuV/Fo6EUhfx6jcZhWwOYH3oBrgQiWa5DbzAu/m8gDoIWGNfQ==" }, "@walmart/ask-sam-mini-app": { - "version": "1.1.3", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.1.3.tgz", - "integrity": "sha512-KsmhQXLEXZoucVkJsPKxQ4Xhp9tJITi2wJrLFeG38dFEVp2wYZDB7BRewLg+UqtQtfQsigvWEyVQTL7A3XDH6Q==", + "version": "1.1.4", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.1.4.tgz", + "integrity": "sha512-whB3aw18I88BVYpJCof6L5aUWZDHVwaQuvSYvUuK0GQ4l6YEhu9/+hgvH7td3fnahRuWVSlw7B/C8FgC5N7pEg==", "requires": { "@walmart/core-utils": "^1.0.9", "apisauce": "^1.1.2", --- package.json @@ -76,7 +76,7 @@ "@walmart/allspark-home-mini-app": "0.5.47", "@walmart/allspark-neon-core": "0.1.29", "@walmart/amp-mini-app": "0.2.12", - "@walmart/ask-sam-mini-app": "1.1.3", + "@walmart/ask-sam-mini-app": "1.1.4", "@walmart/config-components": "3.0.2", "@walmart/core-services": "~1.2.4", "@walmart/core-services-allspark": "~1.7.12",
bumping ask sam
bumping ask sam
0f10ca1f64e3bb3f9812dc0ab4075ed228c86496
--- packages/associate-exp-hub-mini-app/src/services/teamState/teamStateManager.ts @@ -132,12 +132,12 @@ export const useTeamSelection = () => { AssociateExpHubLogger.info('Team selection updated', { message: `${logSource}: Team changed to ${teamData.teamLabel}`, teamId: teamData.teamId, - previousTeam: selectedTeamData.teamId, + previousTeam: selectedTeamData?.teamId, timestamp: Date.now(), }); } }, - [dispatch, selectedTeamData.teamId] + [dispatch, selectedTeamData?.teamId] ); /**
fix: test failure
fix: test failure
f9504779e061ddb86bc0ddee533f9adc1fddcb2e
--- ios/Podfile.lock @@ -356,7 +356,7 @@ PODS: - React - react-native-webview (10.10.0): - React-Core - - react-native-wm-barcode (2.18.0): + - react-native-wm-barcode (2.21.4-patch.1): - React - react-native-wm-voice-text (0.3.1): - React @@ -809,7 +809,7 @@ SPEC CHECKSUMS: react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 - react-native-wm-barcode: 3a88f39a396489d38a19ec8ef349d7c7a97ab6c8 + react-native-wm-barcode: edc854bcdfc7e2570af4a8bcd34a068e92f41ab1 react-native-wm-voice-text: 498a87b567be0074720a30386a22b1e7cde873f5 React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5 React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6
podfile lock update
podfile lock update
cf86db8ea4b41cd8db23e0f5a13d6a6397cee967
--- src/home/components/TaskCard/TaskClockStatusTeamCard.tsx @@ -58,9 +58,13 @@ export const TaskClockStatusTeamCard: FC<TaskCardProps> = (props) => { if (teamName) { teamDisplayText = i18n?.language === 'en-US' - ? t('teams.teamName.defaultTeamName', {teamName}) + ? t('teams.teamName.defaultTeamName', { + teamName, + interpolation: {escapeValue: false}, + }) : t(`teams.teamName.task${teamImage}`, { defaultValue: teamName, + interpolation: {escapeValue: false}, }); } --- src/home/components/TaskCard/TaskClockStatusTeamCard2.tsx @@ -70,9 +70,13 @@ export const TaskClockStatusTeamCard2: FC<TaskCardProps> = (props) => { if (teamName) { teamDisplayText = i18n?.language === 'en-US' - ? t('teams.teamName.defaultTeamName', {teamName}) + ? t('teams.teamName.defaultTeamName', { + teamName, + interpolation: {escapeValue: false}, + }) : t(`teams.teamName.task${teamImage}`, { defaultValue: teamName, + interpolation: {escapeValue: false}, }); }
fix: adding escapeValue for interpolation on translations
fix: adding escapeValue for interpolation on translations
39df57fc26c1a23f0902fde6c115b0090e9c6e4d
--- package-lock.json @@ -5322,9 +5322,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "5.1.4", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.1.4.tgz", - "integrity": "sha512-eOdL7YVYA97EqA1T4aW87l+Jhbma0W/LMyZOlSVlcPb7jzotTTzeirtlv8uPcual+FdmUjS2JAUxXxPDLsYTvw==" + "version": "5.1.5", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.1.5.tgz", + "integrity": "sha512-cB3feLY3TBXQp9JDil1wHksVHnqY1NJh5qhg9WNwyPQ8E//Sa1/N24Bi4I7wpylQUznSd/3jG7Vwc+CHlThOcw==" }, "@walmart/manager-approvals-miniapp": { "version": "0.1.1", --- package.json @@ -96,7 +96,7 @@ "@walmart/impersonation-mini-app": "1.2.0", "@walmart/ims-print-services-ui": "1.1.4", "@walmart/inbox-mini-app": "0.57.0", - "@walmart/iteminfo-mini-app": "5.1.4", + "@walmart/iteminfo-mini-app": "5.1.5", "@walmart/manager-approvals-miniapp": "0.1.1", "@walmart/me-field-mini-app": "1.1.25", "@walmart/metrics-mini-app": "0.9.20",
drop 8.1 annual event bug fix
drop 8.1 annual event bug fix
4b2c1702a9db62da96b1a2a1b9e5d4f218e4801c
--- targets/US/package.json @@ -106,7 +106,7 @@ "@walmart/feedback-all-spark-miniapp": "0.9.72", "@walmart/financial-wellbeing-feature-app": "1.29.2", "@walmart/functional-components": "~6.3.28", - "@walmart/global-vpi-mini-app": "1.1.5", + "@walmart/global-vpi-mini-app": "1.1.13", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.4", "@walmart/ims-print-services-ui": "2.16.4", --- yarn.lock @@ -6717,10 +6717,10 @@ __metadata: languageName: node linkType: hard -"@walmart/global-vpi-mini-app@npm:1.1.5": - version: 1.1.5 - resolution: "@walmart/global-vpi-mini-app@npm:1.1.5" - checksum: 10c0/47227ab6def41f458c3bf9f6b797eef67b9295bbf1bf6f130d97744dba16ce758553965230a1775fd6065ad048841e8103c92098a1137ec7d93a24e0defb0e05 +"@walmart/global-vpi-mini-app@npm:1.1.13": + version: 1.1.13 + resolution: "@walmart/global-vpi-mini-app@npm:1.1.13" + checksum: 10c0/7c8059027440a398aad7af30206b39fb652655bb01c1ad7e9359b901e424759a4c0292d169fb3980cde9c44aaf3ed086f363204c539902ec30a7351b517efb49 languageName: node linkType: hard @@ -7309,7 +7309,7 @@ __metadata: "@walmart/feedback-all-spark-miniapp": "npm:0.9.72" "@walmart/financial-wellbeing-feature-app": "npm:1.29.2" "@walmart/functional-components": "npm:~6.3.28" - "@walmart/global-vpi-mini-app": "npm:1.1.5" + "@walmart/global-vpi-mini-app": "npm:1.1.13" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.4" "@walmart/ims-print-services-ui": "npm:2.16.4"
feat: upgrade version global vpi
feat: upgrade version global vpi
e97eb31dc1baf6c5c5387a0cdcaa19bbc7a2a612
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.2.3", + "version": "1.2.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
Update package json file for hub
Update package json file for hub
2698299549c9468b1bd8fea09dd9996c99adfcb9
--- 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.383.0", + "@walmart/time-clock-mini-app": "2.386.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.383.0": - version: 2.383.0 - resolution: "@walmart/time-clock-mini-app@npm:2.383.0" +"@walmart/time-clock-mini-app@npm:2.386.0": + version: 2.386.0 + resolution: "@walmart/time-clock-mini-app@npm:2.386.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/8818c2e2b7ef04a0d650aba40056c0190a4221bed4c3bac7dbd812f34d8343b7c1bdef2851d060239b3a5321f3e158e4a81a6092054cbef28e088a2a4fa4b0ce + checksum: 10c0/caa57755e1a2da4a8b22c37822ff9fa0351bd03f5145640a24cc552afad77d214e4b5c5497607909c5c92a956b0513ebd89e7a5eded5d68bdd54646eb4a2d0cd 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.383.0" + "@walmart/time-clock-mini-app": "npm:2.386.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.386.0
Update TCMA to 2.386.0
7dfd6ce8cac3c49d3d0406ee41512545193643ff
--- packages/allspark-authentication/src/Authentication.ts @@ -235,6 +235,7 @@ export class AllsparkAuthentication { ...authResult, accessToken: refreshResult.accessToken, accessTokenExpirationDate: refreshResult.accessTokenExpirationDate, + refreshToken: refreshResult.refreshToken, }; this._cachedResult.set(newAuthResult);
Added refreshToken to newAuthResult
Added refreshToken to newAuthResult Added new refreshToken returned by Pingfed to be stored in cache for next refresh request
4777be659d3a563fb6fb4d3b561dcb6217e6d8ae
--- targets/US/package.json @@ -142,7 +142,7 @@ "@walmart/roster-mini-app": "2.4.0", "@walmart/schedule-mini-app": "0.114.2", "@walmart/shelfavailability-mini-app": "1.5.26", - "@walmart/shop-gnfr-mini-app": "1.0.87", + "@walmart/shop-gnfr-mini-app": "1.0.93", "@walmart/store-feature-orders": "1.26.9", "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.0.2#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.0.2-4cbd5b8e6d.patch", "@walmart/time-clock-mini-app": "2.395.0", --- yarn.lock @@ -6749,7 +6749,7 @@ __metadata: "@walmart/roster-mini-app": "npm:2.4.0" "@walmart/schedule-mini-app": "npm:0.114.2" "@walmart/shelfavailability-mini-app": "npm:1.5.26" - "@walmart/shop-gnfr-mini-app": "npm:1.0.87" + "@walmart/shop-gnfr-mini-app": "npm:1.0.93" "@walmart/store-feature-orders": "npm:1.26.9" "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.0.2#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.0.2-4cbd5b8e6d.patch" "@walmart/time-clock-mini-app": "npm:2.395.0" @@ -7590,9 +7590,9 @@ __metadata: languageName: node linkType: hard -"@walmart/shop-gnfr-mini-app@npm:1.0.87": - version: 1.0.87 - resolution: "@walmart/shop-gnfr-mini-app@npm:1.0.87" +"@walmart/shop-gnfr-mini-app@npm:1.0.93": + version: 1.0.93 + resolution: "@walmart/shop-gnfr-mini-app@npm:1.0.93" dependencies: "@testing-library/react-native": "npm:^12.5.1" react-native-drop-shadow: "npm:^1.0.0" @@ -7606,7 +7606,7 @@ __metadata: "@walmart/gtp-shared-components": ^2.0.0 react: ^18.2.0 react-native: ~0.70.5 - checksum: 10c0/c68af857bebf7ee315c0b1d05509300bd7871241164570f7cbf05af923a99d5f115c3ec621944588b15766a5e4c792d6f738a5dd4355bc5d6d465e40078d37ca + checksum: 10c0/f6912c90855e305ef7b85953662918e4f89ef9fc1cf58633011544f47f1308de366557c09b2f54fe9e8a68310a11b1a1dc500daa801342d35d479f7fd4fb579d languageName: node linkType: hard
Version 1.0.93
Version 1.0.93
c55d9a86756a5bf37a74a4fb9a26536d947d6f54
--- src/components/MyWalmartv2/Widgets/SalariedOrTeamLead/SalariedOrTeamLeadRosterWidget.tsx @@ -58,23 +58,6 @@ import {WarningAlert} from '../../../WarningAlert/WarningAlert'; import {styles} from './styles'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation'; -/** - * TEAM MEMBER INTERFACE - * - * Defines the structure of a team member in the roster. - * This interface ensures type safety and consistent data handling. - */ -export interface TeamMember { - id: string; // Unique identifier for the team member - name: string; // Full name of the team member - role: string; // Job title or role - avatarUrl?: string; // Optional profile picture URL - isOnline: boolean; // Online status indicator - email: string; // Email address - status: string; // Current status (working, break, etc.) - lastSeen?: string; // Last activity timestamp -} - /** * WIDGET PROPS INTERFACE * @@ -264,9 +247,6 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC< </View> )} - {/* Horizontal divider */} - <View style={styles.horizontalDivider} /> - {/* Scheduled count section */} <View style={styles.scheduleInfoContainer}> <Body size="medium" weight="bold"> @@ -320,6 +300,7 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC< state={combinedLoadingState ? 'loading' : 'default'} showDivider={true} showChevron={true} + style={styles.widgetContainer} onHeaderPress={() => { // Handle navigation to roster details rosterTelemetry.logEvent('salaried_roster_header_tap', { --- src/components/MyWalmartv2/Widgets/SalariedOrTeamLead/styles.ts @@ -5,6 +5,9 @@ export const styles = StyleSheet.create({ container: { flex: 1, }, + widgetContainer: { + padding: 16, + }, widgetStyle: { margin: 0, // Remove all margins for full screen width backgroundColor: '#ffffff', @@ -20,7 +23,8 @@ export const styles = StyleSheet.create({ }, contentContainer: { minHeight: 160, - paddingHorizontal: 16, + // paddingHorizontal: 16, + paddingVertical: 16, }, warningAlert: { marginBottom: 12, --- src/translations/en-US.ts @@ -124,6 +124,8 @@ export const enUS = { }, warningAlert: { warningMessage: 'Unable to load. Please refresh.', - buttonLabel: 'Try again.', + buttonLabel: 'Try Again', + maxRetriesMessage: 'Max retry attempts reached. Pull to refresh to try again.', + disabledButtonLabel: 'Max Retries Reached', }, }; --- src/translations/es-MX.ts @@ -122,6 +122,8 @@ export const esMX = { }, warningAlert: { warningMessage: 'No se puede cargar. Actualice.', - buttonLabel: 'Vuelve a intentarlo.', + buttonLabel: 'Vuelve a intentarlo', + maxRetriesMessage: 'Máximo de intentos alcanzado. Desliza para actualizar y volver a intentar.', + disabledButtonLabel: 'Máximo de intentos alcanzado', }, };
feat(ui): update roster widget style
feat(ui): update roster widget style
d13db8a8d760fe69836a18e1a9203220afc01487
--- package.json @@ -89,7 +89,7 @@ "@walmart/attendance-mini-app": "3.174.0", "@walmart/avp-feature-app": "0.16.19", "@walmart/avp-shared-library": "0.10.12", - "@walmart/backroom-mini-app": "1.12.0", + "@walmart/backroom-mini-app": "1.13.3", "@walmart/calling-mini-app": "0.7.63", "@walmart/checkout-mini-app": "4.14.0", "@walmart/compass-sdk-rn": "6.2.845", --- yarn.lock @@ -6813,9 +6813,9 @@ __metadata: languageName: node linkType: hard -"@walmart/backroom-mini-app@npm:1.12.0": - version: 1.12.0 - resolution: "@walmart/backroom-mini-app@npm:1.12.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.12.0.tgz" +"@walmart/backroom-mini-app@npm:1.13.3": + version: 1.13.3 + resolution: "@walmart/backroom-mini-app@npm:1.13.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.13.3.tgz" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -6838,7 +6838,7 @@ __metadata: react-native-svg-transformer: ">=1.0.0" react-redux: ">=8.0.0" redux: ">=4.0.0" - checksum: 10c0/1bc60042ddd6c0986b82d91911e6c6ea983aa6df9b7435e2f0d8a4dc6a4cfd3f945da18768f490165c503043df39d538aa663dd21fed91b2747259fc2295a227 + checksum: 10c0/1c329fbe338eac0ca3009923d7909f42479e158b9feb900dfc42c672c3b47f259dc8f31eb7b9cee7340a1ce3a413b0276e66c553cc84bbc83d17c4d001555249 languageName: node linkType: hard @@ -7601,7 +7601,7 @@ __metadata: "@walmart/attendance-mini-app": "npm:3.174.0" "@walmart/avp-feature-app": "npm:0.16.19" "@walmart/avp-shared-library": "npm:0.10.12" - "@walmart/backroom-mini-app": "npm:1.12.0" + "@walmart/backroom-mini-app": "npm:1.13.3" "@walmart/calling-mini-app": "npm:0.7.63" "@walmart/checkout-mini-app": "npm:4.14.0" "@walmart/compass-sdk-rn": "npm:6.2.845"
feat(backroom): Upgrade @walmart/backroom-mini-app to 1.13.3 (#4445)
feat(backroom): Upgrade @walmart/backroom-mini-app to 1.13.3 (#4445) Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
1b9d1f85fe4abd230337643a91e21cfe63ca4f9e
--- src/auth/AuthenticatorView.tsx @@ -52,7 +52,6 @@ export const AuthenticatorView = ( const currentLanguage = i18n.language.split('-')[0].toUpperCase(); useEffect(() => { - AuthService.getUser(); dispatch(SIGN_IN_PAGE_LOADED()); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); --- src/navigation/index.tsx @@ -10,6 +10,7 @@ import { useMinimizedCallView as getMinimizedCallView, useCallEventListeners as getCallEventListeners, } from '@walmart/calling-mini-app'; +import {AuthService} from '@walmart/allspark-foundation/Auth'; import {UpdateVersionModal} from '../updates/UpdateVersionModal'; import { @@ -63,10 +64,11 @@ export const RootStackNavigation = () => { const isAppAccessible = useSelector(getIsAppAccessible); /** - * Hide Splash Screen once root navigation is mounted + * Hide Splash Screen & check for previous user once root navigation is mounted */ useEffect(() => { SplashScreen.hide(); + AuthService.getUser(); }, []); return ( --- src/permissions/LocationScreen.tsx @@ -22,8 +22,8 @@ export const LocationScreen: FC< const insets = useSafeAreaInsets(); const [translate] = useAllsparkTranslation(); - const onEnable = async () => { - await LocationService.requestPermission(); + const onEnable = () => { + LocationService.requestPermission(); }; return ( --- src/startup/RootStartup.ts @@ -20,7 +20,7 @@ import {initWmConfig} from './wmConfigInit'; import {initBackwardsCompatability} from './BackwardsCompat'; import {deeplinkSagas} from '../navigation/DeeplinkConfig'; -const setupFirebase = async (debugToken: string) => { +const setupFirebase = async (debugToken?: string) => { if (debugToken) { const rnfbProvider = firebase .appCheck()
fix: initial get user call happening on sign out when auth view mounts
fix: initial get user call happening on sign out when auth view mounts
c01967f560a1f522a9a8810f818b46bd8a05fda4
--- package-lock.json @@ -3315,9 +3315,9 @@ "integrity": "sha512-0/flUQXWg+fviwIXyXXjLF5HWQ6JzVOQdtdty3HjPnWcgHEhf+Ow34lXeGuwaS0tSoRcDx7a+JgshWAU5tCEEw==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.0.52", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.52.tgz", - "integrity": "sha512-AianatVyjEw/mPfp7S2KJotIImR7WfQ4XGHXqNEdYAsz55pyS/q1g5kagi9WoJ1LtJp+ehUUFt4GUCe6OyicxQ==" + "version": "0.0.55", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.55.tgz", + "integrity": "sha512-h/VhUxIrOY6lVrMP/b7ORG02nqwNl65hx4uH57fvGy3isNjQ5QjRXvtnB/QJTFDyKTcowOd9uroYFhblRZh0bw==" }, "@walmart/functional-components": { "version": "1.0.27", --- package.json @@ -70,7 +70,7 @@ "@walmart/config-components": "^1.0.26", "@walmart/counts-component-miniapp": "0.0.13", "@walmart/exception-mini-app": "0.22.0", - "@walmart/feedback-all-spark-miniapp": "0.0.52", + "@walmart/feedback-all-spark-miniapp": "0.0.55", "@walmart/functional-components": "1.0.27", "@walmart/gtp-shared-components": "^1.1.8", "@walmart/impersonation-mini-app": "1.0.15",
fix keyboard covering the feedback textbox
fix keyboard covering the feedback textbox
aa2c7dd1e8b5d500a9c52d8ae1ccc11c46d10e74
--- src/ccmFallbacks.ts @@ -1,3 +1,7 @@ export const CCMFallbacks = { teamLeadJobDescriptions: ['team lead'], + codeOfConductLink: + 'https://www.walmartethics.com/content/walmartethics/en_us/code-of-conduct.html', + enableMessageButton: true, + pushToTalkEnabled: false, }; --- src/ccmFallbacks.ts @@ -1,3 +1,7 @@ export const CCMFallbacks = { teamLeadJobDescriptions: ['team lead'], + codeOfConductLink: + 'https://www.walmartethics.com/content/walmartethics/en_us/code-of-conduct.html', + enableMessageButton: true, + pushToTalkEnabled: false, };
adding enableMessageButton property and revising CCM Fallbacks
adding enableMessageButton property and revising CCM Fallbacks
5d2766cba2f44bc6bd820516728c02efb614f0a5
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 97 + versionCode 98 versionName "1.0.8" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>97</string> + <string>98</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
0e5513904f059038640c69f6963be00f5a08cb56
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/core-utils": "~1.3.0", "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.0.42", - "@walmart/emergency-mini-app": "1.10.0", + "@walmart/emergency-mini-app": "1.10.0-bannerEtc.1", "@walmart/exception-mini-app": "1.0.3", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.7", @@ -4922,9 +4922,9 @@ } }, "node_modules/@walmart/emergency-mini-app": { - "version": "1.10.0", - "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.10.0.tgz", - "integrity": "sha512-kQGWd1Ct9j3vvz3490EJDHL4lYf0duInw5e/bqfgR3ej6M4ittgIif23TNhqgZIhYU3xxGG3iS6gGyWtHY3pQw==", + "version": "1.10.0-bannerEtc.1", + "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.10.0-bannerEtc.1.tgz", + "integrity": "sha512-tOJ3gwCapHnz0GdXABXzM3CGhX8VHlrFv5OfJYyWhuqN2qszygHiapIjf45XiKPxW/EFBWZYr9EWsOaC9GNHFg==", "dependencies": { "@walmart/core-widget-registry": "^0.6.6" }, @@ -24835,9 +24835,9 @@ "integrity": "sha512-tk3UvKAl/VM29GwO/5uNURHnJkR/M1kq42Hn/2Xob+Ww7rY3gOHKhCTL3NytAPrZxyQco0ZyfGOGPbpy2aDnRw==" }, "@walmart/emergency-mini-app": { - "version": "1.10.0", - "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.10.0.tgz", - "integrity": "sha512-kQGWd1Ct9j3vvz3490EJDHL4lYf0duInw5e/bqfgR3ej6M4ittgIif23TNhqgZIhYU3xxGG3iS6gGyWtHY3pQw==", + "version": "1.10.0-bannerEtc.1", + "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.10.0-bannerEtc.1.tgz", + "integrity": "sha512-tOJ3gwCapHnz0GdXABXzM3CGhX8VHlrFv5OfJYyWhuqN2qszygHiapIjf45XiKPxW/EFBWZYr9EWsOaC9GNHFg==", "requires": { "@walmart/core-widget-registry": "^0.6.6" },
add banner related cases
add banner related cases
220e6706b05e21889fd0b753310fb3ca99da914e
--- packages/core-services-allspark/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. +# [2.12.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.11.3...@walmart/core-services-allspark@2.12.0) (2023-08-15) + + +### Features + +* **user:** remove userinfo source ([9bfa5e1](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/9bfa5e1478d191c60a7474944e963dea38964e7c)) +* **user:** update user transform. ([b7819dc](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/b7819dc47b97b28ae5d8b5c3cdf326da798174fb)) + + + + + ## [2.11.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.11.2...@walmart/core-services-allspark@2.11.3) (2023-08-11) **Note:** Version bump only for package @walmart/core-services-allspark --- packages/core-services-allspark/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "2.11.3", + "version": "2.12.0", "lockfileVersion": 1, "requires": true, "packages": { --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "2.11.3", + "version": "2.12.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -26,8 +26,8 @@ "@walmart/allspark-graphql-client": "^1.4.10", "@walmart/allspark-http-client": "^2.4.17", "@walmart/allspark-utils": "^1.6.1", - "@walmart/core-services": "^2.1.2", - "@walmart/me-at-walmart-athena-queries": "^1.4.0", + "@walmart/core-services": "^2.2.0", + "@walmart/me-at-walmart-athena-queries": "^1.5.0", "crypto-js": "~4.1.1", "jwt-decode": "^3.1.2", "luxon": "^2.4.0", --- packages/core-services/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.2.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services@2.1.2...@walmart/core-services@2.2.0) (2023-08-15) + + +### Features + +* **user:** update user transform. ([b7819dc](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/b7819dc47b97b28ae5d8b5c3cdf326da798174fb)) + + + + + ## [2.1.2](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services@2.1.1...@walmart/core-services@2.1.2) (2023-08-10) --- packages/core-services/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services", - "version": "2.1.2", + "version": "2.2.0", "lockfileVersion": 2, "requires": true, "packages": { --- packages/core-services/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services", - "version": "2.1.2", + "version": "2.2.0", "description": "", "main": "index.js", "types": "index.d.ts", --- packages/me-at-walmart-athena-queries/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.5.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@1.4.0...@walmart/me-at-walmart-athena-queries@1.5.0) (2023-08-15) + + +### Features + +* **user:** remove userinfo source ([9bfa5e1](https://gecgithub01.walmart.com/allspark/allspark/commit/9bfa5e1478d191c60a7474944e963dea38964e7c)) + + + + + # [1.4.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@1.3.11...@walmart/me-at-walmart-athena-queries@1.4.0) (2023-08-11) --- packages/me-at-walmart-athena-queries/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-athena-queries", - "version": "1.4.0", + "version": "1.5.0", "description": "> TODO: description", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "",
chore(version): updating package version
chore(version): updating package version - @walmart/core-services@2.2.0 - @walmart/core-services-allspark@2.12.0 - @walmart/me-at-walmart-athena-queries@1.5.0
b91447b0edc9531fcee6f2ee04a4c1ffac329b61
--- __tests__/navigation/AssociateHallwayNav/SideMenuContentTest.tsx @@ -174,7 +174,9 @@ describe('SideMenuContent', () => { it('handles handlePressTimeClock event', () => { globalNav.props.onPressTimeClock(); - expect(baseProps.navigation.navigate).toHaveBeenCalledWith('timeClock'); + expect(baseProps.navigation.navigate).toHaveBeenCalledWith( + 'timeClockTabs', + ); }); }); --- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -106,7 +106,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( connectedSSO.signOut(activityName, false); }; - const handlePressTimeClock = () => navigation.navigate('timeClock'); + const handlePressTimeClock = () => navigation.navigate('timeClockTabs'); const onDevelopersOptionClick = () => navigation.navigate('Impersonation');
clock in and clockout modal
clock in and clockout modal
0a3beae638391b14be08d9d8494b2655d0471bdf
--- src/channels/provider.tsx @@ -157,6 +157,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { unreadById: {}, totalUnreadChannels: 0, }; + let totalUnreadChannelsCount = 0; for (const id of Object.keys(channelState.dataById)) { const channelData = channelState.dataById[id]; const lastReadTime = channelData.recentRead?.[viewerId]?.toDate(); @@ -173,8 +174,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const count = value.data().count; delayedUpdate.totalUnread = delayedUpdate.totalUnread + count; if (count > 0) { - delayedUpdate.totalUnreadChannels = - delayedUpdate.totalUnreadChannels + 1; + totalUnreadChannelsCount = totalUnreadChannelsCount + 1; } delayedUpdate.unreadById[id] = count; } catch (e: any) { @@ -190,6 +190,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { } } } + delayedUpdate.totalUnreadChannels = totalUnreadChannelsCount; setChannelState((previous) => ({ ...previous, totalUnread: delayedUpdate.totalUnread, @@ -207,7 +208,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { } }, [channelState.dataById, viewerId]); - useEffect(() => { + useMemo(() => { dispatch( textingSlice.actions.UPDATE_UNREAD_CHANNELS_COUNT( channelState.totalUnreadChannels, --- src/channels/provider.tsx @@ -157,6 +157,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { unreadById: {}, totalUnreadChannels: 0, }; + let totalUnreadChannelsCount = 0; for (const id of Object.keys(channelState.dataById)) { const channelData = channelState.dataById[id]; const lastReadTime = channelData.recentRead?.[viewerId]?.toDate(); @@ -173,8 +174,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const count = value.data().count; delayedUpdate.totalUnread = delayedUpdate.totalUnread + count; if (count > 0) { - delayedUpdate.totalUnreadChannels = - delayedUpdate.totalUnreadChannels + 1; + totalUnreadChannelsCount = totalUnreadChannelsCount + 1; } delayedUpdate.unreadById[id] = count; } catch (e: any) { @@ -190,6 +190,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { } } } + delayedUpdate.totalUnreadChannels = totalUnreadChannelsCount; setChannelState((previous) => ({ ...previous, totalUnread: delayedUpdate.totalUnread, @@ -207,7 +208,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { } }, [channelState.dataById, viewerId]); - useEffect(() => { + useMemo(() => { dispatch( textingSlice.actions.UPDATE_UNREAD_CHANNELS_COUNT( channelState.totalUnreadChannels,
update the count value outside of for loop
update the count value outside of for loop
f99288a494570c0437943f46851699b65152a60c
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.2.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.1.0...v2.2.0) (2024-05-17) + + +### Features + +* **ui:** updating package version smdv-5695 ([0377423](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/03774234c7da01d87348006af8af170de5ecb65b)) + # [2.1.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.0.2...v2.1.0) (2024-04-25) --- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/roster-mini-app", - "version": "2.1.0", + "version": "2.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/roster-mini-app", - "version": "2.1.0", + "version": "2.2.0", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.1.0", + "version": "2.2.0", "private": false, "main": "dist/index.js", "files": [
chore(release): 2.2.0 [skip ci]
chore(release): 2.2.0 [skip ci] # [2.2.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.1.0...v2.2.0) (2024-05-17) ### Features * **ui:** updating package version smdv-5695 ([0377423](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/03774234c7da01d87348006af8af170de5ecb65b))
12122afa1b5666a6c35a2a17092b6d0e69c682ea
--- __tests__/managerExperience/components/__snapshots__/TeamSearchInput.test.tsx.snap @@ -38,12 +38,12 @@ exports[`TeamSearchInput should call handleChange when text changes 1`] = ` {}, ] } - testID="left-icon" + testID="search-icon" /> </View> <TextInput onChangeText={[Function]} - placeholder="Search associates by name" + placeholder="rosterScreen.searchInput.placeholderText" placeholderTextColor="#74767c" style={ { @@ -58,36 +58,6 @@ exports[`TeamSearchInput should call handleChange when text changes 1`] = ` } testID="search-input" /> - <View - style={ - { - "paddingLeft": 16, - "position": "absolute", - "right": 16, - } - } - testID="right-icon" - > - <Image - accessibilityRole="image" - source={ - { - "testUri": "../../@walmart/gtp-shared-icons/assets/images/icons/Microphone-24.png", - } - } - style={ - [ - { - "height": 24, - "tintColor": "black", - "width": 24, - }, - {}, - ] - } - testID="MicrophoneIcon" - /> - </View> </View> `; @@ -129,12 +99,12 @@ exports[`TeamSearchInput should render correctly with right icon 1`] = ` {}, ] } - testID="left-icon" + testID="search-icon" /> </View> <TextInput onChangeText={[Function]} - placeholder="Search associates by name" + placeholder="rosterScreen.searchInput.placeholderText" placeholderTextColor="#74767c" style={ { @@ -157,7 +127,7 @@ exports[`TeamSearchInput should render correctly with right icon 1`] = ` "right": 16, } } - testID="right-icon" + testID="microphone-icon" > <Image accessibilityRole="image" @@ -220,12 +190,12 @@ exports[`TeamSearchInput should render correctly without right icon 1`] = ` {}, ] } - testID="left-icon" + testID="search-icon" /> </View> <TextInput onChangeText={[Function]} - placeholder="Search associates by name" + placeholder="rosterScreen.searchInput.placeholderText" placeholderTextColor="#74767c" style={ { @@ -240,35 +210,5 @@ exports[`TeamSearchInput should render correctly without right icon 1`] = ` } testID="search-input" /> - <View - style={ - { - "paddingLeft": 16, - "position": "absolute", - "right": 16, - } - } - testID="right-icon" - > - <Image - accessibilityRole="image" - source={ - { - "testUri": "../../@walmart/gtp-shared-icons/assets/images/icons/Microphone-24.png", - } - } - style={ - [ - { - "height": 24, - "tintColor": "black", - "width": 24, - }, - {}, - ] - } - testID="MicrophoneIcon" - /> - </View> </View> `;
feat: updated search input snapshot
feat: updated search input snapshot
80f5f4188fda233d8c2b8e672f29f3e5a7b29b7a
--- __tests__/managerExperience/screens/AllTeamsScreen.test.tsx @@ -131,6 +131,7 @@ describe('AllTeamsScreen', () => { const loadingScreen = getByTestId('all-teams-loading'); expect(loadingScreen).toBeDefined(); expect(toJSON()).toMatchSnapshot(); + expect(loadingScreen.props.accessibilityLabel).toEqual('loading'); mock.mockClear(); }); }); --- __tests__/managerExperience/screens/__snapshots__/AllTeamsScreen.test.tsx.snap @@ -70,7 +70,6 @@ exports[`AllTeamsScreen renders list correctly if mewClockedInCount is undefined "backgroundColor": "#fff", "display": "flex", "flexDirection": "column", - "marginTop": 100, "paddingHorizontal": 16, } } @@ -644,7 +643,6 @@ exports[`AllTeamsScreen renders list correctly if primary team data is missing a "backgroundColor": "#fff", "display": "flex", "flexDirection": "column", - "marginTop": 100, "paddingHorizontal": 16, } } @@ -1651,7 +1649,6 @@ exports[`AllTeamsScreen renders loading screen if useGetTeamsByStore is loading "backgroundColor": "#fff", "display": "flex", "flexDirection": "column", - "marginTop": 100, "paddingHorizontal": 16, } } @@ -2562,7 +2559,6 @@ exports[`AllTeamsScreen renders the All Teams Screen correctly with data 1`] = ` "backgroundColor": "#fff", "display": "flex", "flexDirection": "column", - "marginTop": 100, "paddingHorizontal": 16, } }
feat: added test to test accessibility label
feat: added test to test accessibility label
852a64e95d14c891d13d4c413943c24f07ca7d30
--- __tests__/auth/__snapshots__/CustomErrorScreenCardTest.tsx.snap @@ -73,7 +73,6 @@ exports[`CustomErrorCard 1`] = ` accessible={true} collapsable={false} focusable={true} - nativeID="animatedComponent" onClick={[Function]} onResponderGrant={[Function]} onResponderMove={[Function]} @@ -94,7 +93,6 @@ exports[`CustomErrorCard 1`] = ` <View collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "backgroundColor": "rgba(0, 113, 220, 1)", @@ -111,7 +109,6 @@ exports[`CustomErrorCard 1`] = ` <Text collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "color": "#FFFFFF", @@ -139,7 +136,6 @@ exports[`CustomErrorCard 1`] = ` accessible={true} collapsable={false} focusable={true} - nativeID="animatedComponent" onClick={[Function]} onResponderGrant={[Function]} onResponderMove={[Function]} @@ -161,7 +157,6 @@ exports[`CustomErrorCard 1`] = ` <View collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "flexDirection": "row", @@ -172,7 +167,6 @@ exports[`CustomErrorCard 1`] = ` <Text collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "color": "rgba(0, 0, 0, 1)", @@ -264,6 +258,7 @@ exports[`CustomErrorCard 2`] = ` } } accessible={true} + collapsable={false} focusable={true} onClick={[Function]} onResponderGrant={[Function]} @@ -283,6 +278,7 @@ exports[`CustomErrorCard 2`] = ` testID="retry-button" > <View + collapsable={false} forwardedRef={[Function]} style={ Object { @@ -300,7 +296,6 @@ exports[`CustomErrorCard 2`] = ` <Text collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "color": "#FFFFFF", @@ -326,6 +321,7 @@ exports[`CustomErrorCard 2`] = ` } } accessible={true} + collapsable={false} focusable={true} onClick={[Function]} onResponderGrant={[Function]} @@ -346,6 +342,7 @@ exports[`CustomErrorCard 2`] = ` testID="report-button" > <View + collapsable={false} forwardedRef={[Function]} style={ Object { @@ -357,7 +354,6 @@ exports[`CustomErrorCard 2`] = ` <Text collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "color": "rgba(0, 0, 0, 1)", --- __tests__/auth/__snapshots__/ErrorScreenTest.tsx.snap @@ -302,7 +302,6 @@ exports[`ErrorScreen handles rendering the custom error 1`] = ` accessible={true} collapsable={false} focusable={true} - nativeID="animatedComponent" onClick={[Function]} onResponderGrant={[Function]} onResponderMove={[Function]} @@ -323,7 +322,6 @@ exports[`ErrorScreen handles rendering the custom error 1`] = ` <View collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "backgroundColor": "rgba(0, 113, 220, 1)", @@ -340,7 +338,6 @@ exports[`ErrorScreen handles rendering the custom error 1`] = ` <Text collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "color": "#FFFFFF", @@ -368,7 +365,6 @@ exports[`ErrorScreen handles rendering the custom error 1`] = ` accessible={true} collapsable={false} focusable={true} - nativeID="animatedComponent" onClick={[Function]} onResponderGrant={[Function]} onResponderMove={[Function]} @@ -390,7 +386,6 @@ exports[`ErrorScreen handles rendering the custom error 1`] = ` <View collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "flexDirection": "row", @@ -401,7 +396,6 @@ exports[`ErrorScreen handles rendering the custom error 1`] = ` <Text collapsable={false} forwardedRef={[Function]} - nativeID="animatedComponent" style={ Object { "color": "rgba(0, 0, 0, 1)",
update snapshots
update snapshots
ae6134f0e86c45027b1ea3772e79e397bb8aab8a
--- .looper-pr.yml @@ -31,4 +31,3 @@ envs: MONO_REPO_BASE_BRANCH: develop AUTHOR: temp SLACK_CHANNEL: 'smdv-miniapp' -
feat(ui): update looper yml for testing
feat(ui): update looper yml for testing
a4c18eca33ae7c06b16f04691bea6906cc6be1c7
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.1.0-alpha.5", + "version": "3.1.0-alpha.6", "main": "dist/index.js", "files": [ "dist", @@ -88,9 +88,9 @@ "@walmart/react-native-logger": "1.35.0", "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", - "@walmart/roster-mini-app": "3.3.0-alpha.5", + "@walmart/roster-mini-app": "3.3.0-alpha.7", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.2.0-alpha.6", + "@walmart/wmconnect-mini-app": "3.2.0-alpha.8", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6348,9 +6348,9 @@ __metadata: "@walmart/react-native-logger": "npm:1.35.0" "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" - "@walmart/roster-mini-app": "npm:3.3.0-alpha.5" + "@walmart/roster-mini-app": "npm:3.3.0-alpha.7" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.6" + "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.8" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6455,9 +6455,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:3.3.0-alpha.5": - version: 3.3.0-alpha.5 - resolution: "@walmart/roster-mini-app@npm:3.3.0-alpha.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.3.0-alpha.5.tgz" +"@walmart/roster-mini-app@npm:3.3.0-alpha.7": + version: 3.3.0-alpha.7 + resolution: "@walmart/roster-mini-app@npm:3.3.0-alpha.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.3.0-alpha.7.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6468,7 +6468,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/deceffe43ca4d83df7a9eb52e4cd0995059c3e29527f12b25abfe3f6580c9b74a39aa15a4e9f62e0890d808649321200a559f346c0d294370b97532574ab4b79 + checksum: 10c0/a1cb8821680a8537f1abc22445f0161907af8c7839b14d746e29c02eec0dd132d40b76ef2d9f35436c6fe4c47d744886eac37e545389b3cbe458f420c5de0bd2 languageName: node linkType: hard @@ -6492,9 +6492,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.6": - version: 3.2.0-alpha.6 - resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.6.tgz" +"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.8": + version: 3.2.0-alpha.8 + resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.8.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6505,7 +6505,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/a7daf649bc8bd6e0b6e4bb2cc24398de92ea7e903361ca9a6e4c4469811f1af8f14f354b9e1822f3ae92311d896b546d00c4e9f88c3179d4414d5fec3543a67e + checksum: 10c0/5d0dafa47a13bb10d53446e3e34d7fdce86e652457b4e08676005f33f5df73f1d2023e1b2dac230a4a2083f8454832d26ea1a84abcc387eadc1ac406e00b77ae languageName: node linkType: hard
feat(ui): adding new version for drop 34
feat(ui): adding new version for drop 34
7bd5c768ad98c86d25185b5d48ea2e3bc12eaaa5
--- src/navigation/index.tsx @@ -1,5 +1,6 @@ -import React from 'react'; +import React, {useCallback} from 'react'; import {SafeAreaProvider} from 'react-native-safe-area-context'; +import {useFocusEffect, useNavigation} from '@react-navigation/native'; import {initializeWidgets} from './utils'; import { AllsparkHubContainer, @@ -9,10 +10,29 @@ import { DEFAULT_WIDGET_IDS, } from '@walmart/allspark-foundation-hub'; import {WarningBanner} from '../components/WarningBanner'; +import {translationClient} from '../common/translation'; +import {renderDrawerButton} from '@walmart/allspark-foundation/Navigation'; export * from './types'; export const MyTeamMiniApp = () => { + const navigation = useNavigation(); + + // SMDV-8921: Ensure header title is set to "Team" when screen gains focus + // This fixes the bug where header shows "Work" instead of "Team" after + // navigating from Work tab following team onboarding + useFocusEffect( + useCallback(() => { + navigation.setOptions({ + title: translationClient.translate('myTeam.title', { + defaultValue: 'Team', + fallbackLng: 'en-US', + }), + headerLeft: renderDrawerButton, + }); + }, [navigation]), + ); + return ( <> <WarningBanner />
fix(myteam): add useFocusEffect for header title SMDV-8921
fix(myteam): add useFocusEffect for header title SMDV-8921 Added useFocusEffect hook to MyTeamMiniApp component to ensure the header title is set to "Team" when the screen gains focus. This fixes the bug where header shows "Work" instead of "Team" after navigating from Work tab following team onboarding. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2b9007b0478a3e8e05f1acdd881771c31f2713f2
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.24.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.23.0...v2.24.0) (2025-04-04) + + +### Features + +* **ui:** update package js for roster ([17f9dc4](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/17f9dc477a6407b0a6c61dbc871a2d87c81025a3)) + # [2.23.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.22.0...v2.23.0) (2025-04-04) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.23.0", + "version": "2.24.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 2.24.0 [skip ci]
chore(release): 2.24.0 [skip ci] # [2.24.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.23.0...v2.24.0) (2025-04-04) ### Features * **ui:** update package js for roster ([17f9dc4](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/17f9dc477a6407b0a6c61dbc871a2d87c81025a3))
6ccf2c9d0fe466186b2d33f617f5a8742ddaaaf1
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.17-alpha-1", + "version": "1.0.17-alpha-2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/roster-mini-app", - "version": "1.0.17-alpha-1", + "version": "1.0.17-alpha-2", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", @@ -66,7 +66,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.16-alpha-1", + "@walmart/wmconnect-mini-app": "1.0.16-alpha-2", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -11834,9 +11834,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.0.16-alpha-1", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-1.tgz", - "integrity": "sha512-xBdN0FWPA4hAghE7MrBe/vygaDRlgRZDRnGRn8P4pXh5jDSLv1ONKHUICZbOTfUptpmPyDlpgsudA98dHPD7TA==", + "version": "1.0.16-alpha-2", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-2.tgz", + "integrity": "sha512-YtaYJqZ6jxsMdYo3aLjBP1DEKj9NX1lcSAkg88vYuvVBeI7/AWzN3vVfgVkimIRg/r/vaA/ibwjshhpjHR5GKA==", "dev": true, "hasInstallScript": true }, @@ -41046,9 +41046,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.0.16-alpha-1", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-1.tgz", - "integrity": "sha512-xBdN0FWPA4hAghE7MrBe/vygaDRlgRZDRnGRn8P4pXh5jDSLv1ONKHUICZbOTfUptpmPyDlpgsudA98dHPD7TA==", + "version": "1.0.16-alpha-2", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-2.tgz", + "integrity": "sha512-YtaYJqZ6jxsMdYo3aLjBP1DEKj9NX1lcSAkg88vYuvVBeI7/AWzN3vVfgVkimIRg/r/vaA/ibwjshhpjHR5GKA==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.17-alpha-1", + "version": "1.0.17-alpha-2", "private": false, "main": "dist/index.js", "files": [ @@ -89,7 +89,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.16-alpha-1", + "@walmart/wmconnect-mini-app": "1.0.16-alpha-2", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
Update version
Update version
6dccd668c5555c88cc02b053f799de32cad00512
--- package-lock.json @@ -3094,9 +3094,9 @@ "integrity": "sha512-+25H67LTPtrwp3AAmNm4E3hzqIJy5G8zhJ804cEj/DsyHH/Kb1HbyehtJ3KWqE2lj/2PlXc0LmGdYGWt+NcWWA==" }, "@walmart/exception-mini-app": { - "version": "0.20.0", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.20.0.tgz", - "integrity": "sha512-mrrLcdbiDVDSpJkZF8UD3IyBS5McRGxhOBvJkPww2fe6Ha2jVH3oqKDn9Qlf+9t8xNY4UJLwlhZkkXERB+Azfw==" + "version": "0.21.0", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.21.0.tgz", + "integrity": "sha512-brlnX/b9zD0SVVdxoBX2QeGLU8Pvk0SRRQBMXosbsIxUNxcNL8yUmjvFd7CdmH+7HgH5AOBntKxUnLsP+G1xYQ==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.0.50", --- package.json @@ -69,7 +69,7 @@ "@walmart/ask-sam-mini-app": "0.29.10", "@walmart/config-components": "^1.0.26", "@walmart/counts-component-miniapp": "0.0.13", - "@walmart/exception-mini-app": "0.20.0", + "@walmart/exception-mini-app": "0.21.0", "@walmart/feedback-all-spark-miniapp": "0.0.50", "@walmart/functional-components": "1.0.27", "@walmart/gtp-shared-components": "^1.1.8",
pinpoint versionn bump
pinpoint versionn bump
09cd25ffb1d9a4ac33f6304bc58fc6463cf63594
--- packages/me-at-walmart-common/src/types.ts @@ -9,27 +9,3 @@ export enum UserType { associate = 'associate', prehire = 'pre_hire', } - -/** - * Badge IDs for AllsparkBadges used in "Me@Walmart" - * @example - * import {AllsparkBadges} from '@walmart/allspark-foundation/Components'; - * - * // Update the My Team badge to show a value of 3 and a red color - * AllsparkBadges.update('Me@Walmart.MyTeam', { value: '3', color: 'red' }); - */ -export type MeAtWalmartBadges = { - home: 'Me@Walmart.Home'; - me: 'Me@Walamrt.Me'; - myTeam: 'Me@Walamrt.MyTeam'; - taskIt: 'Me@Walamrt.TaskIt'; -}; - -// Extend Allspark global types for Me@Walmart specific typings -declare global { - namespace Allspark { - namespace Elements { - interface BadgeIDs extends MeAtWalmartBadges {} - } - } -} --- packages/me-at-walmart-container/src/dependencies.json @@ -1 +0,0 @@ -[] \ No newline at end of file
chore: cleanup unused files
chore: cleanup unused files
f8110b2da80b8544750a84fa7c0c558e7667c13a
--- package-lock.json @@ -5736,30 +5736,30 @@ } }, "node_modules/@walmart/returns-mini-app": { - "version": "0.3.2", + "version": "0.6.0", + "integrity": "sha512-K2R0mTZXapCjakp5xhj/b9YJE5BEhmnbtqJMEQcEKi9GkxIoz5WPMg4wfM6G+ZEIDuzbQOnSGMXvmcEQpDbVUw==", + "hasInstallScript": true, "dependencies": { "@walmart/common-utilities-js": "^1.2.10", "@walmart/virtual-zpl-printer-model": "^0.2.11", "react-native-html-parser": "^0.1.0" }, "peerDependencies": { - "@react-native-community/async-storage": "^1.11.0", + "@react-native-community/async-storage": "^1.12.1", "@react-navigation/native": "^5.7.3", "@react-navigation/stack": "^5.9.0", "@walmart/core-services": "^0.1.27", "@walmart/functional-components": "^1.0.27", "@walmart/gtp-shared-components": "^1.6.0", - "@walmart/react-native-logger": "^1.17.0", + "@walmart/react-native-logger": "1.29.0", + "@walmart/react-native-scanner-3.0": "0.1.24", "@walmart/react-native-shared-navigation": "^0.2.0", - "@walmart/redux-store": "^1.0.12", + "@walmart/redux-store": "^2.0.4", "big-integer": "^1.6.51", "cpc-input": "^1.7.28", - "react": "^16.13.1", - "react-native": "^0.63.2", - "react-native-encrypted-storage": "^4.0.2", + "react": "^18.2.0", + "react-native": "^0.70.5", "react-native-html-parser": "^0.1.0", - "react-native-wm-barcode": "2.36.2", - "react-native-wm-telemetry": "^0.3.0", "react-redux": "^7.2.1", "redux": "^4.0.5" } @@ -21569,7 +21569,9 @@ } }, "node_modules/wifi-store-locator": { - "version": "1.0.0-alpha2", + "version": "1.0.1", + "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.0.1.tgz", + "integrity": "sha512-fMZeW8dNlAQIqFaSbuIKxGLTSGv0OoVfb3Re4by5u3RuIqP4u/ez+N8PIGHFJV8jQ4e6iPf2CgSu6J/KFiwt4w==", "license": "MIT", "peerDependencies": { "react": "*", @@ -24983,7 +24985,9 @@ "version": "1.35.0" }, "@walmart/returns-mini-app": { - "version": "0.3.2", + "version": "0.6.0", + "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.6.0.tgz", + "integrity": "sha512-K2R0mTZXapCjakp5xhj/b9YJE5BEhmnbtqJMEQcEKi9GkxIoz5WPMg4wfM6G+ZEIDuzbQOnSGMXvmcEQpDbVUw==", "requires": { "@walmart/common-utilities-js": "^1.2.10", "@walmart/virtual-zpl-printer-model": "^0.2.11", @@ -35055,7 +35059,9 @@ "dev": true }, "wifi-store-locator": { - "version": "1.0.0-alpha2" + "version": "1.0.1", + "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.0.1.tgz", + "integrity": "sha512-fMZeW8dNlAQIqFaSbuIKxGLTSGv0OoVfb3Re4by5u3RuIqP4u/ez+N8PIGHFJV8jQ4e6iPf2CgSu6J/KFiwt4w==" }, "wm-react-native-vector-icons": { "version": "1.0.33", --- package.json @@ -118,7 +118,7 @@ "@walmart/receipt-check-miniapp": "1.8.20", "@walmart/redux-store": "3.1.2", "@walmart/refrigeration-alarms-mini-app": "1.35.0", - "@walmart/returns-mini-app": "0.3.2", + "@walmart/returns-mini-app": "0.6.0", "@walmart/schedule-mini-app": "0.26.0", "@walmart/settings-mini-app": "1.10.0", "@walmart/shelfavailability-mini-app": "1.3.2",
RN70 Returns-mini-app v0.6.0 update
RN70 Returns-mini-app v0.6.0 update
a7d10441ad96ad03044dda47eb58aca0de0d01d0
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.35", "@walmart/metrics-mini-app": "0.9.33", - "@walmart/mod-flex-mini-app": "1.3.10", + "@walmart/mod-flex-mini-app": "1.3.11", "@walmart/moment-walmart": "1.0.4", "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.7", @@ -5414,9 +5414,9 @@ "license": "MIT" }, "node_modules/@walmart/mod-flex-mini-app": { - "version": "1.3.10", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.3.10.tgz", - "integrity": "sha512-atpUsDHyyv6RFxyVCS4v9PCiV3XUk4pzCBVh4lVZN5gFgQxw14pKKkcMmmqhX6U0UKf+fjL8XTjhMvhvtNAsJQ==", + "version": "1.3.11", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.3.11.tgz", + "integrity": "sha512-lxuUoaibzzbDBU9EYlcbN04271UliWDC7+P/9dTEmqT3qoCMteHeXttPwp5Jn1LB3YF/TuevKIsV5nTFPhR/SA==", "peerDependencies": { "@react-native-community/async-storage": "^1.11.0", "@react-native-picker/picker": "^2.4.2", @@ -24963,9 +24963,9 @@ } }, "@walmart/mod-flex-mini-app": { - "version": "1.3.10", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.3.10.tgz", - "integrity": "sha512-atpUsDHyyv6RFxyVCS4v9PCiV3XUk4pzCBVh4lVZN5gFgQxw14pKKkcMmmqhX6U0UKf+fjL8XTjhMvhvtNAsJQ==" + "version": "1.3.11", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.3.11.tgz", + "integrity": "sha512-lxuUoaibzzbDBU9EYlcbN04271UliWDC7+P/9dTEmqT3qoCMteHeXttPwp5Jn1LB3YF/TuevKIsV5nTFPhR/SA==" }, "@walmart/moment-walmart": { "version": "1.0.4", --- package.json @@ -101,7 +101,7 @@ "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.35", "@walmart/metrics-mini-app": "0.9.33", - "@walmart/mod-flex-mini-app": "1.3.10", + "@walmart/mod-flex-mini-app": "1.3.11", "@walmart/moment-walmart": "1.0.4", "@walmart/pay-stub-miniapp": "0.9.7", "@walmart/payrollsolution_miniapp": "0.130.4",
bumping modflex to 1.3.11
bumping modflex to 1.3.11
697df8a62040546699859afdcf06e0c439e2c3e0
--- src/components/StatusChip.tsx @@ -76,7 +76,7 @@ export const StatusChip = (props: { return ( <> {presence === 'offline' && ( - <Tag variant='tertiary' color={'blue'} UNSAFE_style={style}> + <Tag variant='tertiary' color='spark' UNSAFE_style={style}> {t('rosterScreen.statusChips.doNotDisturb')} </Tag> )}
feat: fixed status chip color
feat: fixed status chip color
72976c7c0725e925473eefea51cd560afa55ba16
--- packages/allspark-foundation-hub/src/Store/Modals/OnboardingBottomSheet.tsx @@ -9,12 +9,15 @@ import { } from '../../Shared'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; -import { AllsparkNavigationClient } from '@walmart/allspark-foundation'; import { useUserPersonaType } from '../../Shared/Hooks/useUserPersonaType'; import { useSelector } from 'react-redux'; import { hubOnboardingSuccessBottomSheetEnabled } from '../Redux'; -export const OnboardingBottomSheet = () => { +export const OnboardingBottomSheet = ({ + modal: { closeModal }, +}: { + modal: { closeModal: () => void }; +}) => { const { t } = useAllsparkTranslation(FEATURE_ID); const bottomSheetRef = useRef<{ open: () => void; close: () => void }>(null); const onboardingBottomSheetTelemetry = useTelemetryService(); @@ -51,9 +54,8 @@ export const OnboardingBottomSheet = () => { telemetryLogHandler('Onboarding bottomsheet', loggerRef, { message: 'Onboarding banner triggered', }); - AllsparkNavigationClient.closeModal( - 'managerExperience.onboardingBottomSheet' as any - ); + closeModal(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [personaType]); const renderContent = useCallback(() => {
feat(ui): hanlding close modal on core level
feat(ui): hanlding close modal on core level
a0b45145437853a43045bfcd37bf5aa7b65581a4
--- core/__tests__/PinAccess/PinCodeSagasTest.ts @@ -22,10 +22,7 @@ import {resetTo} from '../../src/navigation/sagas'; import {PinAccessTypes} from '../../src/PinAccess/PinAccessRedux'; import {ENTRY} from '../../src/PinAccess/constants'; import {getPasscodeKey} from '../../src/PinAccess/selectors'; -import { - getBackgroundIdleTime, - getPinFeatureEnabled, -} from '../../src/PinAccess/selectors'; +import {getBackgroundIdleTime} from '../../src/PinAccess/selectors'; import {ALLSPARK_SIGN_IN} from '../../src/core/constants'; import {handleBiometricSetup} from '../../src/biometrics/BiometricSagas'; import {BiometricTypes} from '../../src/biometrics/BiometricRedux'; @@ -203,16 +200,9 @@ describe('handlePinPrompt', () => { }); describe('pinPromptFlow', () => { - it('does not await prompt action if disabled', () => { - const iterator = pinPromptFlow(); - expect(iterator.next().value).toEqual(select(getPinFeatureEnabled)); - expect(iterator.next(false).done).toEqual(true); - }); - it('waits on and handles prompt action if enabled', () => { const iterator = pinPromptFlow(); - expect(iterator.next().value).toEqual(select(getPinFeatureEnabled)); - expect(iterator.next(true).value).toEqual( + expect(iterator.next().value).toEqual( take(PinAccessTypes.PROMPT_FOR_PASSCODE), ); expect(iterator.next({reason: 'foreground_inactivity'}).value).toEqual( @@ -226,16 +216,9 @@ describe('pinPromptFlow', () => { }); describe('handlePinCode', () => { - it('handles not enabled', () => { - const iterator = handlePinCode(); - expect(iterator.next().value).toEqual(select(getPinFeatureEnabled)); - expect(iterator.next(false).done).toEqual(true); - }); - it('handles pin code not set', () => { const iterator = handlePinCode(); - expect(iterator.next().value).toEqual(select(getPinFeatureEnabled)); - expect(iterator.next(true).value).toEqual(call(getCurrentPinCode)); + expect(iterator.next().value).toEqual(call(getCurrentPinCode)); expect(iterator.next(false).value).toEqual(call(handlePinCreation)); expect(iterator.next(false).value).toEqual( call(AllsparkLocalStorage.remove, ALLSPARK_SIGN_IN), @@ -245,8 +228,7 @@ describe('handlePinCode', () => { it('handles pinRequired', () => { const iterator = handlePinCode(); - expect(iterator.next().value).toEqual(select(getPinFeatureEnabled)); - expect(iterator.next(true).value).toEqual(call(getCurrentPinCode)); + expect(iterator.next().value).toEqual(call(getCurrentPinCode)); expect(iterator.next('12345').value).toEqual( call(AllsparkLocalStorage.get, ALLSPARK_SIGN_IN), ); @@ -259,8 +241,7 @@ describe('handlePinCode', () => { it('handles not meeting any conditions', () => { mockMoment.isBefore.mockReturnValueOnce(false); const iterator = handlePinCode(); - expect(iterator.next().value).toEqual(select(getPinFeatureEnabled)); - expect(iterator.next(true).value).toEqual(call(getCurrentPinCode)); + expect(iterator.next().value).toEqual(call(getCurrentPinCode)); expect(iterator.next('12345').value).toEqual( call(AllsparkLocalStorage.get, ALLSPARK_SIGN_IN), ); --- core/src/PinAccess/PinCodeSagas.ts @@ -15,11 +15,7 @@ import {handleBiometricSetup} from '../biometrics/BiometricSagas'; import {BiometricTypes} from '../biometrics/BiometricRedux'; import {PinAccessTelemetry, Telemetry} from '../core/Telemetry'; import {Logger} from '../core/Logger'; -import { - getPasscodeKey, - getBackgroundIdleTime, - getPinFeatureEnabled, -} from './selectors'; +import {getPasscodeKey, getBackgroundIdleTime} from './selectors'; export const PIN_EXPIRY_TIME_KEY = 'pin_expiry_time'; export const PIN_REQUIRED_KEY = 'pin_required'; @@ -103,35 +99,27 @@ export function* handlePinPrompt(reason: string, resetNav: boolean) { } export function* pinPromptFlow() { - const pinFeatureEnabled: boolean = yield select(getPinFeatureEnabled); - - if (pinFeatureEnabled) { - while (true) { - const {reason} = yield take(PinAccessTypes.PROMPT_FOR_PASSCODE); - yield call(handlePinPrompt, reason, false); - AllsparkNavigationClient.dispatch(CommonActions.goBack()); - } + while (true) { + const {reason} = yield take(PinAccessTypes.PROMPT_FOR_PASSCODE); + yield call(handlePinPrompt, reason, false); + AllsparkNavigationClient.dispatch(CommonActions.goBack()); } } export function* handlePinCode() { - const pinFeatureEnabled: boolean = yield select(getPinFeatureEnabled); - - if (pinFeatureEnabled) { - const pinCode: string | null = yield call(getCurrentPinCode); - if (!pinCode) { - yield call(handlePinCreation); - } else { - // Key is set when signing in through Me@Walmart. Clearing after use. - // Will only be present when going through Me@ signin flow. - const allsparkSignIn: string | undefined = yield call( - AllsparkLocalStorage.get, - ALLSPARK_SIGN_IN, - ); - if (!allsparkSignIn) { - yield call(handlePinPrompt, 'app_launch', true); - } + const pinCode: string | null = yield call(getCurrentPinCode); + if (!pinCode) { + yield call(handlePinCreation); + } else { + // Key is set when signing in through Me@Walmart. Clearing after use. + // Will only be present when going through Me@ signin flow. + const allsparkSignIn: string | undefined = yield call( + AllsparkLocalStorage.get, + ALLSPARK_SIGN_IN, + ); + if (!allsparkSignIn) { + yield call(handlePinPrompt, 'app_launch', true); } - yield call(AllsparkLocalStorage.remove, ALLSPARK_SIGN_IN); } + yield call(AllsparkLocalStorage.remove, ALLSPARK_SIGN_IN); } --- core/src/PinAccess/selectors.ts @@ -21,9 +21,6 @@ export const getBackgroundIdleTime = DEFAULT_BACKGROUND_IDLE_TIME, ); -export const getPinFeatureEnabled = - ConfigSelectors.createContainerConfigSelector('pinFeatureEnabled'); - export const getNoInActiveTimerScreenList = ConfigSelectors.createContainerConfigSelector( 'noInactiveTimerScreenList', @@ -31,14 +28,9 @@ export const getNoInActiveTimerScreenList = ); export const getActivityMonitorConfig = createSelector( - [ - getInactivityTime, - getBackgroundIdleTime, - UserSelectors.getSiteId, - getPinFeatureEnabled, - ], - (inactivityTime, backgroundIdleTime, siteId, enabled) => ({ - enabled: !!siteId && enabled, + [getInactivityTime, getBackgroundIdleTime, UserSelectors.getSiteId], + (inactivityTime, backgroundIdleTime, siteId) => ({ + enabled: !!siteId, inactivityTime, backgroundIdleTime, }),
fix: remove pin feature enabled flag
fix: remove pin feature enabled flag
aca7a147df9d1b73f503f03efc377b8aef93fb7e
--- ios/AllSpark/Info.plist @@ -10,6 +10,8 @@ <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>com.walmart.stores.allspark.beta</string> + <key>SumoAppGroupId</key> + <string>group.com.walmart</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> --- ios/Podfile.lock @@ -526,14 +526,14 @@ PODS: - AppAuth - Starscream (3.0.6) - StructuredLogAssistantIOS (0.0.6) - - SumoSDK (2.0.0-rc.1): + - SumoSDK (2.0.0-rc.2): - Apollo (= 0.42.0) - Apollo/SQLite (= 0.42.0) - Firebase/Messaging (= 8.4.0) - StructuredLogAssistantIOS (= 0.0.6) - - walmart-react-native-sumo-sdk (2.0.0-rc.1): + - walmart-react-native-sumo-sdk (2.0.0-rc.2): - React - - SumoSDK (= 2.0.0-rc.1) + - SumoSDK (= 2.0.0-rc.2) - wifi-store-locator (1.0.0-alpha2): - React-Core - Yoga (1.14.0) @@ -902,8 +902,8 @@ SPEC CHECKSUMS: SSO: 6a7e963cb299184b6cf198991d232b1feb25bf04 Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 StructuredLogAssistantIOS: 68c6fc083b10202a570f4a737359dcc7f81ec6e4 - SumoSDK: 4578ca01baefa1facaaae670ef1cf1d1f1e8e30a - walmart-react-native-sumo-sdk: d9d01c4925dde7da7f8208ecba330a88a108c558 + SumoSDK: 042f5a0bdf8c4fb6b2b6e9f8ef2f97df5dfc5585 + walmart-react-native-sumo-sdk: 8704862f32e46cc9ae9a0223b89bc1973741a466 wifi-store-locator: 0f4d1e14ff9b98c559275105c655a5a6103ef427 Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 --- package-lock.json @@ -3499,9 +3499,9 @@ "integrity": "sha512-xXCe5sJeytOO9HAKLaTiQQMzomfUS2wUP6ICLYv9BGtdJUDmoKNT7aFYeRDGPgvPvkc1A8oFrqJIrOshjLnxSg==" }, "@walmart/react-native-sumo-sdk": { - "version": "2.0.0-rc.1", - "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.0.0-rc.1.tgz", - "integrity": "sha512-41jA/uqskb6AdoB++6dM4TdYZ0sm0AEFNA8gOfw/s7L0hlh44cHjR8wvM5tcpPkKhZadlWyC3TUsGHZV1cxN2Q==" + "version": "2.0.0-rc.2", + "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.0.0-rc.2.tgz", + "integrity": "sha512-fH90+efaDPKPz2iTcpI+XzlQ3GZ204jJiwoeZf/j9HfGUakcn9CpRNaQo8oFQhH7NDMrD9S6RksReearlcFG4Q==" }, "@walmart/redux-store": { "version": "1.0.15", --- package.json @@ -92,7 +92,7 @@ "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.27.0", "@walmart/react-native-shared-navigation": "^0.4.0", - "@walmart/react-native-sumo-sdk": "^2.0.0-rc.1", + "@walmart/react-native-sumo-sdk": "2.0.0-rc.2", "@walmart/redux-store": "^1.0.15", "@walmart/schedule-mini-app": "0.3.1", "@walmart/settings-mini-app": "1.3.7", --- scripts/updateiOSProjectConfig.sh @@ -24,6 +24,9 @@ TEFLON_SPLASH_SCREEN_NAME="<string>LaunchScreen-Teflon<\/string>" BETA_BUNDLE_ID="com.walmart.stores.allspark.beta" PROD_BUNDLE_ID="com.walmart.squiggly" +BETA_SUMO_GROUP_ID="group.com.walmart" +PROD_SUMO_GROUP_ID="group.com.walmart.sumo.appstore" + DEFAULT_APP_ICON="AppIcon" BETA_APP_ICON="AppIcon-Beta" DEV_APP_ICON="AppIcon-Dev" @@ -50,19 +53,21 @@ if [[ "${env}" == "Prod" ]]; then ENTITLEMENTS=$PROD_ENTITLEMENTS INHOUSE_PROVISION=$PROD_INHOUSE_PROVISIONING DEV_PROVISION=$PROD_DEV_PROVISIONING -else + SUMO_GROUP_ID=$PROD_SUMO_GROUP_ID +else TEAM_ID=$ENTERPRISE_TEAM_ID BUNDLE_ID=$BETA_BUNDLE_ID ENTITLEMENTS=$BETA_ENTITLEMENTS INHOUSE_PROVISION=$BETA_INHOUSE_PROVISIONING DEV_PROVISION=$BETA_DEV_PROVISIONING + SUMO_GROUP_ID=$BETA_SUMO_GROUP_ID fi ## Find and replace the Team Id echo "Updating \"$ENTERPRISE_TEAM_ID\" with Team Id \"$TEAM_ID\" " sed -Ei '' "s/$ENTERPRISE_TEAM_ID|$iTUNESCONNECT_TEAM_ID/$TEAM_ID/" ${plist} -## Find and replace the storyboard name +## Find and replace the storyboard name echo "Updating Splash Screen \"$BETA_SPLASH_SCREEN_NAME\" with \"$SPLASH_SCREEN\" " sed -Ei '' "s/$DEV_SPLASH_SCREEN_NAME|$BETA_SPLASH_SCREEN_NAME|$PROD_SPLASH_SCREEN_NAME|$TEFLON_SPLASH_SCREEN_NAME/$SPLASH_SCREEN/" ${plist} @@ -70,6 +75,10 @@ sed -Ei '' "s/$DEV_SPLASH_SCREEN_NAME|$BETA_SPLASH_SCREEN_NAME|$PROD_SPLASH_SCRE echo "Updating Bundle Id \"$BETA_BUNDLE_ID\" with \"$BUNDLE_ID\" " sed -Ei '' "s/$BETA_BUNDLE_ID|$PROD_BUNDLE_ID/$BUNDLE_ID/" ${plist} +## Find and replace the SumoAppGroupId +echo "Updating SumoAppGroupId Id \"$BETA_SUMO_GROUP_ID\" with \"$SUMO_GROUP_ID\" " +sed -Ei '' "s/$BETA_SUMO_GROUP_ID|$PROD_SUMO_GROUP_ID/$SUMO_GROUP_ID/" ${plist} + ########### Finished updating Info.plist file ############# @@ -82,7 +91,7 @@ pbxprojFile="${xcodeproj}/project.pbxproj" echo "Updating AppIcon \"$BETA_APP_ICON\" or \"$DEV_APP_ICON\" or \"$TEFLON_APP_ICON\" with \"$APP_ICON\" " sed -Ei '' "s/\"$BETA_APP_ICON\";|\"$DEV_APP_ICON\";|\"$PROD_APP_ICON\";|\"$TEFLON_APP_ICON\";/\"$APP_ICON\";/" ${pbxprojFile} -## Find and replace bundle ids. +## Find and replace bundle ids. echo "Updating Bundle Id \"$BETA_BUNDLE_ID\" with Bundle Id \"$BUNDLE_ID\" " sed -Ei '' "s/$BETA_BUNDLE_ID;|$PROD_BUNDLE_ID;/$BUNDLE_ID;/" $pbxprojFile @@ -90,7 +99,7 @@ sed -Ei '' "s/$BETA_BUNDLE_ID;|$PROD_BUNDLE_ID;/$BUNDLE_ID;/" $pbxprojFile echo "Updating \"$ENTERPRISE_TEAM_ID\" with Team Id \"$TEAM_ID\" " sed -Ei '' "s/$ENTERPRISE_TEAM_ID;|$iTUNESCONNECT_TEAM_ID;/$TEAM_ID;/" ${pbxprojFile} -## Find and replace provisiioning profiles. +## Find and replace provisiioning profiles. echo "Updating InHouse Provisioning profile with \"$INHOUSE_PROVISION\" " sed -Ei '' "s/$PROD_INHOUSE_PROVISIONING;|$BETA_INHOUSE_PROVISIONING;/$INHOUSE_PROVISION;/" ${pbxprojFile} @@ -98,4 +107,4 @@ echo "Updating Dev Provisioning profile with \"$DEV_PROVISION\" " sed -Ei '' "s/$PROD_DEV_PROVISIONING;|$BETA_DEV_PROVISIONING;/$DEV_PROVISION;/" ${pbxprojFile} echo "Copying contents of App Entitlements file with \"$ENTITLEMENTS\"" -cp $entitlementsPath/$ENTITLEMENTS $entitlementsPath/$DEFAULT_ENTITLEMENTS \ No newline at end of file +cp $entitlementsPath/$ENTITLEMENTS $entitlementsPath/$DEFAULT_ENTITLEMENTS
Back merge for provision profile and sumo changes
Back merge for provision profile and sumo changes
f4dfab7fc17c2eae5855339c0761b5ac63c99793
--- .solidarity @@ -5,14 +5,7 @@ { "rule": "cli", "binary": "node", - "semver": "12.4.0" - } - ], - "React Native": [ - { - "rule": "cli", - "binary": "react-native", - "semver": "5.0.1" + "semver": "<15.0.0" } ], "Package JSON": [ @@ -28,13 +21,6 @@ "semver": "<7.0.0" } ], - "TypeScript": [ - { - "rule": "cli", - "binary": "tsc", - "semver": "3.9.7" - } - ], "CocoaPods": [ { "rule": "cli", @@ -46,27 +32,6 @@ "rule": "dir", "location": "./ios/Pods" } - ], - "Android": [ - { - "rule": "env", - "variable": "ANDROID_HOME", - "error": "The ANDROID_HOME environment variable must be set to your local SDK. Refer to getting started docs for help." - } - ], - "Xcode": [ - { - "rule": "cli", - "binary": "xcodebuild", - "semver": "13.2.1", - "platform": "darwin" - }, - { - "rule": "cli", - "binary": "xcrun", - "semver": "60", - "platform": "darwin" - } ] } } \ No newline at end of file
fixing solidarity
fixing solidarity
d61572c0375df8a64b932a377116bb803dde8a52
--- .looper.multibranch.yml @@ -37,7 +37,7 @@ flows: - (name Yarn Install) corepack enable - (name Yarn Version) yarn --version - (name Install Dependencies) yarn install - - (name Set NPM Env) yarn run firebase:dev && cp env.dev.js env.js + - (name Set NPM Env) yarn run env:dev app-build-init: - call: initialize
chore: looper fix
chore: looper fix
aafa66c9f81916e9ef88cf3a9accd3918e103a53
--- packages/allspark-foundation/__mocks__/@react-navigation/slack.js @@ -1,5 +1,4 @@ - - module.exports = { +module.exports = { ...jest.requireActual('@react-navigation/slack'), createStackNavigator: jest.fn(), Header: jest.fn(() => null),
remove space
remove space
304f68c0104e845949bde5fd6c75e387d7a55640
--- __tests__/managerExperience/components/TeamSearchInput.test.tsx @@ -34,4 +34,24 @@ describe('TeamSearchInput', () => { fireEvent.changeText(input, 'John Doe'); expect(toJSON()).toMatchSnapshot(); }); + + it('renders loading team search input if loading is true', () => { + const {toJSON, getByTestId} = render( + <TeamSearchInput loading handleChange={() => {}} />, + ); + const loadingSearchInput = getByTestId( + 'team-search-input-loading-component', + ); + expect(loadingSearchInput).toBeDefined(); + expect(toJSON()).toMatchSnapshot(); + }); + + it('renders loading microphone icon if right icon is true', () => { + const {toJSON, getByTestId} = render( + <TeamSearchInput loading rightIcon handleChange={() => {}} />, + ); + const loadingMicrophoneIcon = getByTestId('loading-microphone-icon'); + expect(loadingMicrophoneIcon).toBeDefined(); + expect(toJSON()).toMatchSnapshot(); + }); }); --- __tests__/managerExperience/components/__snapshots__/TeamSearchInput.test.tsx.snap @@ -1,5 +1,128 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`TeamSearchInput renders loading microphone icon if right icon is true 1`] = ` +<View + style={ + { + "alignItems": "center", + "borderBottomWidth": 1, + "borderColor": "#e3e4e5", + "borderTopWidth": 1, + "display": "flex", + "flexDirection": "row", + "justifyContent": "space-between", + "padding": 17, + "width": "100%", + } + } + testID="team-search-input-loading-component" +> + <View + style={ + { + "alignItems": "center", + "display": "flex", + "flexDirection": "row", + "gap": 8, + } + } + > + <View + collapsable={false} + style={ + { + "backgroundColor": "rgba(248, 248, 248, 1)", + "borderRadius": 4, + "height": 16, + "width": 16, + } + } + testID="Skeleton" + /> + <View + collapsable={false} + style={ + { + "backgroundColor": "rgba(248, 248, 248, 1)", + "borderRadius": 4, + "height": 20, + "width": 120, + } + } + testID="Skeleton" + /> + </View> + <View + collapsable={false} + style={ + { + "backgroundColor": "rgba(248, 248, 248, 1)", + "borderRadius": 4, + "height": 24, + "width": 24, + } + } + testID="loading-microphone-icon" + /> +</View> +`; + +exports[`TeamSearchInput renders loading team search input if loading is true 1`] = ` +<View + style={ + { + "alignItems": "center", + "borderBottomWidth": 1, + "borderColor": "#e3e4e5", + "borderTopWidth": 1, + "display": "flex", + "flexDirection": "row", + "justifyContent": "space-between", + "padding": 17, + "width": "100%", + } + } + testID="team-search-input-loading-component" +> + <View + style={ + { + "alignItems": "center", + "display": "flex", + "flexDirection": "row", + "gap": 8, + } + } + > + <View + collapsable={false} + style={ + { + "backgroundColor": "rgba(248, 248, 248, 1)", + "borderRadius": 4, + "height": 16, + "width": 16, + } + } + testID="Skeleton" + /> + <View + collapsable={false} + style={ + { + "backgroundColor": "rgba(248, 248, 248, 1)", + "borderRadius": 4, + "height": 20, + "width": 120, + } + } + testID="Skeleton" + /> + </View> + <View /> +</View> +`; + exports[`TeamSearchInput should call handleChange when text changes 1`] = ` <View style={ --- src/managerExperience/components/TeamSearchInput/TeamSearchInput.tsx @@ -5,12 +5,17 @@ import {colors, Icons} from '@walmart/gtp-shared-components/dist'; import {TeamSearchInputProps} from './types'; import {ROSTER_I18N_NAMESPACE} from '../../../../src/translations'; import {useTranslation} from 'react-i18next'; +import {TeamSearchInputLoading} from './TeamSearchInputLoading'; export const TeamSearchInput = ({ + loading = false, rightIcon, handleChange, }: TeamSearchInputProps) => { const {t} = useTranslation([ROSTER_I18N_NAMESPACE]); + + if (loading) return <TeamSearchInputLoading rightIcon={rightIcon} />; + return ( <View style={styles.container}> <View style={styles.iconLeftWrapper}> --- src/managerExperience/components/TeamSearchInput/TeamSearchInputLoading.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import {Skeleton} from '@walmart/gtp-shared-components'; +import {TeamSearchInputStyles as styles} from './style'; +import {View} from 'react-native'; +import {TeamSearchInputLoadingProps} from './types'; + +export const TeamSearchInputLoading = ({ + rightIcon, +}: TeamSearchInputLoadingProps) => ( + <View + style={styles.loadingContainer} + testID='team-search-input-loading-component'> + <View style={styles.loadingLeftElements}> + <Skeleton height={16} width={16} /> + <Skeleton height={20} width={120} /> + </View> + {rightIcon ? ( + <Skeleton height={24} width={24} testID='loading-microphone-icon' /> + ) : ( + <View /> + )} + </View> +); --- src/managerExperience/components/TeamSearchInput/style.ts @@ -28,4 +28,21 @@ export const TeamSearchInputStyles = StyleSheet.create({ paddingRight: 60, color: colors.gray['100'], }, + loadingContainer: { + width: '100%', + display: 'flex', + flexDirection: 'row', + alignItems: 'center', + padding: 17, + justifyContent: 'space-between', + borderTopWidth: 1, + borderBottomWidth: 1, + borderColor: colors.separator['100'], + }, + loadingLeftElements: { + display: 'flex', + flexDirection: 'row', + alignItems: 'center', + gap: 8, + }, }); --- src/managerExperience/components/TeamSearchInput/types.ts @@ -1,4 +1,9 @@ export interface TeamSearchInputProps { + loading?: boolean; rightIcon?: boolean; handleChange: (text: string) => void; } + +export interface TeamSearchInputLoadingProps { + rightIcon: boolean | undefined; +}
feat: created loading search input component and tests
feat: created loading search input component and tests
d03da60ad1135b091bc510a741b730239dba1bff
--- package.json @@ -38,6 +38,7 @@ "@commitlint/cli": "^19.8.0", "@commitlint/config-conventional": "^19.8.0", "@digitalroute/cz-conventional-changelog-for-jira": "^8.0.1", + "expo": "^53.0.20", "husky": "^9.1.7", "jest": "~29.7.0", "lerna": "^7.0.0", --- yarn.lock @@ -8956,6 +8956,7 @@ __metadata: "@commitlint/cli": "npm:^19.8.0" "@commitlint/config-conventional": "npm:^19.8.0" "@digitalroute/cz-conventional-changelog-for-jira": "npm:^8.0.1" + expo: "npm:^53.0.20" husky: "npm:^9.1.7" jest: "npm:~29.7.0" lerna: "npm:^7.0.0"
feat: update the container
feat: update the container
c6b80a01fcaf415c7afb8cc04dcc3457bbd69ec6
--- __tests__/core/RootContainerTest.tsx @@ -17,6 +17,10 @@ jest.mock( '@walmart/gtp-shared-components/dist/theme/theme-provider', () => 'ThemeProvider', ); +jest.mock('../../env', () => ({ + __esModule: true, + default: {env: 'dev'}, +})); jest.mock('../../src/services/Auth', () => ({ AuthRef: {current: {}}, })); --- __tests__/core/__snapshots__/RootContainerTest.tsx.snap @@ -9,31 +9,7 @@ exports[`RootContainer renders and fires startup event 1`] = ` recipe={ Object { "env": Object { - "allsparkService": "https://developer.api.stg.walmart.com/api-proxy/service/allspark/api/v1", - "appConsumerId": "b5fc6fe0-5927-44a6-a693-6e922e830b04", - "bffService": "/api-proxy/service/store/systems-bff/v1", - "consumerId": "b5fc6fe0-5927-44a6-a693-6e922e830b04", - "deployment": "dev", "env": "dev", - "externalBffUrl": "https://developer.api.us.stg.walmart.com", - "externalUrl": "https://developer.api.us.stg.walmart.com", - "internalBffUrl": "https://api-proxy-es2.stg-us-azure.soa-api-proxy.platform.prod.us.walmart.net", - "internalUrl": "https://api-proxy.stg.soa-api-proxy.platform.glb.prod.walmart.com", - "logLevel": "debug", - "pingFedEnv": "CERT", - "rbacAppId": "ec9f5c40-88be-4e90-8807-a4f15f11e84c", - "redirectUri": "com.walmart.stores.allspark.beta://SSOLogin", - "splunk": Object { - "format": "json", - "index": "allspark", - "url": "https://analytics.mobile.walmart.com/analytics/allspark", - }, - "sumoOptions": Object { - "appUUID": "cb663e07-7bcc-4039-ae97-8fb8e8a9ff77", - "authToken": "", - "consumerId": "b5fc6fe0-5927-44a6-a693-6e922e830b04", - "environment": "STAGE", - }, }, } }
Updating root container test
Updating root container test
b01018eb0490f39d79f02940c767e50a4b547a62
--- package-lock.json @@ -79,7 +79,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", - "@walmart/taskit-mini-app": "2.23.11", + "@walmart/taskit-mini-app": "2.23.15", "@walmart/time-clock-mini-app": "2.34.0", "@walmart/ui-components": "1.10.0", "@walmart/welcomeme-mini-app": "0.76.0", @@ -6008,9 +6008,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "2.23.11", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.23.11.tgz", - "integrity": "sha512-5SRBCg09RiJgFI0cobE5/amQv2hjVN6Hugl6vKez86E9WFe9J4ItE+EZ6ej/usao3UXtE1mTrnMqgybJIXxY3Q==", + "version": "2.23.15", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.23.15.tgz", + "integrity": "sha512-MspdofxyatU85TLThNwc4NXdOCsVs3NClnqs+eoQRbFfMWPX4vwc9MMJuF5kTVPnvGsFl70SjefhHe2Ztv0nrA==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -25290,9 +25290,9 @@ "version": "1.5.11" }, "@walmart/taskit-mini-app": { - "version": "2.23.11", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.23.11.tgz", - "integrity": "sha512-5SRBCg09RiJgFI0cobE5/amQv2hjVN6Hugl6vKez86E9WFe9J4ItE+EZ6ej/usao3UXtE1mTrnMqgybJIXxY3Q==" + "version": "2.23.15", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.23.15.tgz", + "integrity": "sha512-MspdofxyatU85TLThNwc4NXdOCsVs3NClnqs+eoQRbFfMWPX4vwc9MMJuF5kTVPnvGsFl70SjefhHe2Ztv0nrA==" }, "@walmart/tcnumber": { "version": "2.3.3", --- package.json @@ -121,7 +121,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", - "@walmart/taskit-mini-app": "2.23.11", + "@walmart/taskit-mini-app": "2.23.15", "@walmart/time-clock-mini-app": "2.34.0", "@walmart/ui-components": "1.10.0", "@walmart/welcomeme-mini-app": "0.76.0",
Updated taskit version
Updated taskit version
211d5a0b331703f015d74a77ea90b8473764303a
--- scripts/mini-app-scan/.eslintrc-mini-app.json @@ -12,6 +12,7 @@ "Body", "Button", "Caption", + "DataTableCell", "Display", "ErrorMessage", "FilterTag", @@ -21,10 +22,12 @@ "Headline", "Label", "Link", + "LinkButton", "NotificationDueDateBadge", "Nudge", "PrimaryButton", "Subheader", + "TextComponent", "Tag", "Text", "Title" --- scripts/mini-app-scan/lint-node-module.ts @@ -108,7 +108,7 @@ console.log('==================================================='); // Packages to ignore entirely const ignorePackages: string[] = ['@walmart/gtp-shared-components']; // File patterns to ignore (test files) -const ignorePatterns: string[] = ['.test.js', '.test.ts', '.test.tsx']; +const ignorePatterns: string[] = ['*.test.js', '*.test.ts', '*.test.tsx', '*.d.ts']; // Output patterns to filter from ESLint output (rule load errors, etc) const filterPatterns: string[] = [ 'Definition for rule',
fix: ignore patterns were incorrect. missing text proxy components in config
fix: ignore patterns were incorrect. missing text proxy components in config
af7be87f9604753e87b1ec7fd731a9101bbe3497
--- __tests__/auth/__snapshots__/AuthenticatorViewTest.tsx.snap @@ -160,7 +160,7 @@ exports[`AuthenticatorView renders error 1`] = ` } > App Version - 0.0.3 + 0.0.4 </Text> </View> `; @@ -317,7 +317,7 @@ exports[`AuthenticatorView renders error 2`] = ` } > App Version - 0.0.3 + 0.0.4 </Text> </View> `; --- android/app/build.gradle @@ -134,8 +134,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 3 - versionName "0.0.3" + versionCode 4 + versionName "0.0.4" } splits { abi { --- ios/AllSpark/Info.plist @@ -17,7 +17,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>0.0.3</string> + <string>0.0.4</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>3</string> + <string>4</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -15,10 +15,10 @@ <key>CFBundlePackageType</key> <string>BNDL</string> <key>CFBundleShortVersionString</key> - <string>0.0.3</string> + <string>0.0.4</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>3</string> + <string>4</string> </dict> </plist> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "0.0.3", + "version": "0.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "0.0.3", + "version": "0.0.4", "private": true, "scripts": { "firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json",
version bump 0.0.4 (#213)
version bump 0.0.4 (#213)
36f13a16407bab42bcc76c6cd04e9122c0e6d3b5
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.17-alpha-2", + "version": "1.0.17-alpha-3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/roster-mini-app", - "version": "1.0.17-alpha-2", + "version": "1.0.17-alpha-3", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.17-alpha-2", + "version": "1.0.17-alpha-3", "private": false, "main": "dist/index.js", "files": [
versionUpdate
versionUpdate
359652556cb3c167d6f47896bf92923115f181de
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart", - "version": "1.34.1", + "version": "1.34.2", "main": "index.js", "private": true, "workspaces": [
chore: version bump to 1.34.2
chore: version bump to 1.34.2
0cf7cf14cb8a59fb0b3ada64110baa39757347bf
--- packages/allspark-foundation/src/User/redux.ts @@ -61,9 +61,7 @@ export const userSlice = createSlice({ state.impersonator = null; }, UPDATE: (state, action: PayloadAction<Partial<User>>) => { - state.data = state.data - ? Object.assign(state.data, action.payload) - : null; + state.data = state.data ? { ...state.data, ...action.payload } : null; }, }, extraReducers: (builder) => { @@ -90,7 +88,6 @@ export const UserActionCreators = userSlice.actions; */ export const USER_CHANGED_ACTIONS = [ UserActionTypes.FETCH_SUCCESS, - UserActionTypes.UPDATE, UserActionTypes.START_IMPERSONATION, UserActionTypes.EXIT_IMPERSONATION, ]; @@ -109,3 +106,9 @@ export type IUserActions = InferActionTypes<IUserActionCreators>; * Type for all possible user actions */ export type IUserAction = IUserActions[keyof IUserActions]; + +export type IUserChangedAction = + | IUserActions['FETCH_SUCCESS'] + | IUserActions['UPDATE'] + | IUserActions['START_IMPERSONATION'] + | IUserActions['EXIT_IMPERSONATION'];
refactor: remove update from user changed actions
refactor: remove update from user changed actions
5f31ff0e68a9de93bed015624f4ca188be1743a5
--- graphql.yml @@ -84,7 +84,7 @@ applications: tags: - 'v1' - name: 'getAssociateById' - hash: '0a06f624828f31fa5f8a13615385e1c3c4424732132e432655f4a45962a7fa22' + hash: 'e8b4e22d608b951a622d58320c3fc44f6641aa85208f582c253d9d0afdc3b691' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociateById.graphql' tags: - 'v1' @@ -99,7 +99,7 @@ applications: tags: - 'v1' - name: 'getLoggedInUser' - hash: 'f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c' + hash: '5ce5824a658c74e77a1b192f81838d8af33472a1a5cef0400560bf8afd0f192c' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1'
chore: update prod getLoggedInUser and getAssocaiteById query for drop 28
chore: update prod getLoggedInUser and getAssocaiteById query for drop 28
a9768fda61b27fbbc01040c4117be97d99649710
--- .looper.multibranch.yml @@ -22,7 +22,6 @@ envs: ## Global Variables global: variables: - market: .. XCODE_PROJECT_PATH: ./ios/MeWalmart.xcodeproj ANDROID_GRADLE_PATH: ./android/app/build.gradle IOS_BASE_PATH: ./ios @@ -41,6 +40,11 @@ envs: ANDROID_GRADLE_PATH: ./android/app/build.gradle IOS_BASE_PATH: ./ios ANDROID_BASE_PATH: ./android + ios: + variables: + XCODE_PROJECT_NAME: "MeWalmart.xcodeproj" + TARGET_NAME: "MeWalmart" + PLIST_PATH: "MeWalmart/Info.plist" flows: mini-pr: --- package.json @@ -287,6 +287,7 @@ "jest": "^29.2.1", "jest-expo": "~50.0.4", "jest-sonar-reporter": "^2.0.0", + "jetifier": "^2.0.0", "react-test-renderer": "18.2.0", "ts-node": "^10.4.0", "typescript": "~5.3.3", --- yarn.lock @@ -6992,6 +6992,7 @@ __metadata: jest: "npm:^29.2.1" jest-expo: "npm:~50.0.4" jest-sonar-reporter: "npm:^2.0.0" + jetifier: "npm:^2.0.0" jwt-decode: "npm:^3.1.2" lodash: "npm:~4.17.21" luxon: "npm:^1.28.0" @@ -14761,6 +14762,17 @@ __metadata: languageName: node linkType: hard +"jetifier@npm:^2.0.0": + version: 2.0.0 + resolution: "jetifier@npm:2.0.0" + bin: + jetifier: bin/jetify + jetifier-standalone: bin/jetifier-standalone + jetify: bin/jetify + checksum: 10c0/3716b7a26d1d912aef604a88fdd4aface01b26db95873860adecdb5ed4d1396f5a847efe5315630a90b2e84f447c872dedf55f368482fc9e59236edca03ff100 + languageName: node + linkType: hard + "jimp-compact@npm:0.16.1": version: 0.16.1 resolution: "jimp-compact@npm:0.16.1"
chore: fix ios looper env variables. add jetifier
chore: fix ios looper env variables. add jetifier
44a2bcf6f84bee5419b305ac9525b88efca30054
--- packages/allspark-foundation/src/HubFeature/Onboarding/TeamOnboarding/Screens/styles.ts @@ -60,6 +60,7 @@ export const TeamOnboardingScreenStyles = StyleSheet.create({ fontFamily: 'Bogle-Regular', fontSize: 16, lineHeight: 24, + paddingTop: 12, }, button: { padding: 16,
Adding padding to description
Adding padding to description
cfda1d920c3ea166a64bb6a347c0600f973ec362
--- package.json @@ -98,7 +98,7 @@ "@walmart/core-services-allspark": "workspace:^", "@walmart/core-widget-registry": "workspace:^", "@walmart/counts-component-miniapp": "0.2.6", - "@walmart/digital-locks-mini-app": "1.4.4", + "@walmart/digital-locks-mini-app": "1.4.6", "@walmart/emergency-mini-app": "1.32.5", "@walmart/exception-mini-app": "1.8.15", "@walmart/expo-config-plugins": "^0.2.0", @@ -211,7 +211,7 @@ "react-i18next": "^13.3.1", "react-native": "patch:react-native@npm%3A0.76.9#~/.yarn/patches/react-native-npm-0.76.9-d42941e680.patch", "react-native-app-auth": "7.2.0", - "react-native-ble-manager": "~11.4.0", + "react-native-ble-manager": "11.6.1", "react-native-blob-util": "^0.19.5", "react-native-calendars": "^1.1291.0", "react-native-device-info": "~10.13.1", --- src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -477,10 +477,6 @@ export const MainStackNav = () => { Navigator: MainStack, })} - {/* {DigitalLocksFeature.buildAllScreens({ - Navigator: MainStack, - })} */} - {managerExperienceFeature.buildAllScreens({ Navigator: MainStack, })} --- yarn.lock @@ -7026,20 +7026,20 @@ __metadata: languageName: node linkType: hard -"@walmart/digital-locks-mini-app@npm:1.4.4": - version: 1.4.4 - resolution: "@walmart/digital-locks-mini-app@npm:1.4.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fdigital-locks-mini-app%2F-%2F%40walmart%2Fdigital-locks-mini-app-1.4.4.tgz" +"@walmart/digital-locks-mini-app@npm:1.4.6": + version: 1.4.6 + resolution: "@walmart/digital-locks-mini-app@npm:1.4.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fdigital-locks-mini-app%2F-%2F%40walmart%2Fdigital-locks-mini-app-1.4.6.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.0.0" + expo-haptics: ~13.0.1 react: "*" react-native: "*" - react-native-ble-manager: 11.5.6 - react-native-haptic-feedback: ^1.14.0 + react-native-ble-manager: 11.6.1 react-native-sound-player: 0.13.2 dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/d24f4906700de436c9d3f8601716e948725c52031f7a0b0e0015eadea38ce83688462279997082c8898fc0a4d27bff6db2a94e5c9e920b9c1c03b998f01227e2 + checksum: 10c0/33e59fa06f4346798b307ba9e66148218846744ce5c07b1f6cd8d133fbbc64472615a4d5287b5c523dfd263fe10c9da2fcdff089accfbd60bbeb0e1858c3a147 languageName: node linkType: hard @@ -7606,7 +7606,7 @@ __metadata: "@walmart/core-services-allspark": "workspace:^" "@walmart/core-widget-registry": "workspace:^" "@walmart/counts-component-miniapp": "npm:0.2.6" - "@walmart/digital-locks-mini-app": "npm:1.4.4" + "@walmart/digital-locks-mini-app": "npm:1.4.6" "@walmart/emergency-mini-app": "npm:1.32.5" "@walmart/exception-mini-app": "npm:1.8.15" "@walmart/expo-config-plugins": "npm:^0.2.0" @@ -7735,7 +7735,7 @@ __metadata: react-i18next: "npm:^13.3.1" react-native: "patch:react-native@npm%3A0.76.9#~/.yarn/patches/react-native-npm-0.76.9-d42941e680.patch" react-native-app-auth: "npm:7.2.0" - react-native-ble-manager: "npm:~11.4.0" + react-native-ble-manager: "npm:11.6.1" react-native-blob-util: "npm:^0.19.5" react-native-calendars: "npm:^1.1291.0" react-native-device-info: "npm:~10.13.1" @@ -19073,12 +19073,12 @@ __metadata: languageName: node linkType: hard -"react-native-ble-manager@npm:~11.4.0": - version: 11.4.0 - resolution: "react-native-ble-manager@npm:11.4.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-ble-manager%2F-%2Freact-native-ble-manager-11.4.0.tgz" +"react-native-ble-manager@npm:11.6.1": + version: 11.6.1 + resolution: "react-native-ble-manager@npm:11.6.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-ble-manager%2F-%2Freact-native-ble-manager-11.6.1.tgz" peerDependencies: react-native: ">=0.60.0" - checksum: 10c0/e01e0381ad05ef612ea26c57a7b6a118c627f6488f88190dd8782b85cc2cb943fa2caeda02caf4572c2290e0bb1e1ac6d42b4c56aef89cc8d146b04b7cfc8d03 + checksum: 10c0/cb29449468955d475224d64552b654d804b26af84b59821ad5b38fafc24fd5bf931b29cb4b37dcf4f32a16c4c714fe1218a84fe0a3e6f335376d9983996edda1 languageName: node linkType: hard
feat(DIGS-973): Drop 32 bug fixes for Digital Key (#4405)
feat(DIGS-973): Drop 32 bug fixes for Digital Key (#4405) * feat(digitalkey): bump version to 1.4.5 * feat(digitalkey): Remove commented code * feat(digitalkey): bumped version to 1.4.6 --------- Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
ef2f49f7c81203ed29cd93da94488cc439fe2e6d
--- packages/allspark-foundation-hub/src/HubFeature/Store/Onboarding/TeamOnboarding/Screens/TeamOnboardingScreen.tsx @@ -1,7 +1,10 @@ import React, { useEffect } from 'react'; import { TeamOnboarding } from '../Component/TeamOnboarding'; import { AllsparkNavigationClient } from '@walmart/allspark-foundation/Navigation'; -import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; +import { + AllsparkTranslationClient, + useAllsparkTranslation, +} from '@walmart/allspark-foundation/Translation'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { OnboardingImages } from '../../../Images/images'; @@ -12,9 +15,10 @@ import { } from '../../../Redux'; import { useNavigation } from '@react-navigation/native'; import { useUserPersonaType } from '../../../Hooks/useUserPersonaType'; +import { FEATURE_ID } from '../../../constant'; export const TeamOnboardingScreen = () => { - const { t } = useAllsparkTranslation(); + const { t } = useAllsparkTranslation(FEATURE_ID); const teamSelectionTelemetry = useTelemetryService(); const personaType = useUserPersonaType(); const logger = LoggerService.getContainerInstance(); @@ -24,7 +28,7 @@ export const TeamOnboardingScreen = () => { useEffect(() => { navigation.setOptions({ - title: t('managerExperience.' + hubScreeName), + title: AllsparkTranslationClient.t('managerExperience.' + hubScreeName), }); }, [hubScreeName, navigation, t]); @@ -50,7 +54,7 @@ export const TeamOnboardingScreen = () => { 'teamOnboarding.teamOnboardingCardsData.firstCard.description', { defaultValue: - 'Easily manage team attendance, assignments, and work progress', + 'Easily manage team attendance, assignments, and work progress.', fallbackLng: 'en-US', } ), @@ -66,7 +70,7 @@ export const TeamOnboardingScreen = () => { 'teamOnboarding.teamOnboardingCardsData.secondCard.description', { defaultValue: - 'Get smart guidance to help you keep your team and the shift on track', + 'Get smart guidance to help you keep your team and the shift on track.', fallbackLng: 'en-US', } ),
Update team hub and work hub types
Update team hub and work hub types
f51fb3e1354415384049d33202927b261b1143ee
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -139,6 +139,14 @@ Array [ } } /> + <Screen + name="CreateTask" + options={ + Object { + "gestureDirection": "vertical", + } + } + /> <Screen component="ItemInfoMiniApp" name="itemInfoQuickAction"
Updated Tests
Updated Tests
bd21e31904c9427f0de6cff5e89f4e4f8201979f
--- packages/allspark-foundation/__tests__/GraphQL/links.test.ts @@ -38,7 +38,6 @@ it('should not forward the operation if persisted queries are disabled', done => }); }); - describe('DynamicLink', () => { let link: DynamicLink; @@ -49,14 +48,12 @@ describe('DynamicLink', () => { const operation = { getContext: () => ({}), }; - const forward = jest.fn((op) => { return new Observable(observer => { observer.next({ data: { result: 'result' } }); observer.complete(); }); }); - const dynamicLink = new ApolloLink((operation, forward) => { return forward(operation).map((data) => ({ ...data, @@ -66,7 +63,6 @@ describe('DynamicLink', () => { } })); }); - link.addLink(dynamicLink); link.request(operation, forward)?.subscribe({ next: (result) => { @@ -137,7 +133,6 @@ it('should add multiple dynamic links', done => { const mockClientFetch = jest.fn(); const mockDefaultFetch = jest.fn(); - beforeEach(() => { operation = { query: gql` @@ -165,16 +160,13 @@ it('should add multiple dynamic links', done => { headers: { Authorization: 'Bearer token' }, }); }); - afterEach(() => { jest.clearAllMocks(); }); - it('_buildFullURI should return the full URI when base URI is provided', () => { const uri = allsparkHttpLink['_buildFullURI']('/test-endpoint'); expect(uri).toBe('https://default-uri.com/test-endpoint'); }); - it('_buildFullURI should return the original URI when base URI is not provided', () => { allsparkHttpLink = new AllsparkHttpLink(); const uri = allsparkHttpLink['_buildFullURI']('/test-endpoint'); @@ -184,7 +176,6 @@ it('should add multiple dynamic links', done => { const link = allsparkHttpLink['_getLinkForFeatureId']({}); expect(link).toBe(allsparkHttpLink['_defaultHttpLink']); }); - it('_getLinkForFeatureId should return an existing link if it exists for the featureId', () => { const context: DefaultContext = { featureId: 'test-feature' }; const existingLink = new HttpLink({ uri: '/existing-link' }); @@ -192,7 +183,6 @@ it('should add multiple dynamic links', done => { const link = allsparkHttpLink['_getLinkForFeatureId'](context); expect(link).toBe(existingLink); }); - it('_getLinkForFeatureId should create and return a new link if featureId is provided', () => { const context: DefaultContext = { featureId: 'new-feature' }; AllsparkHttpClient.getFeatureClient.mockReturnValue({ @@ -203,7 +193,6 @@ it('should add multiple dynamic links', done => { expect(AllsparkHttpClient.getFeatureClient).toHaveBeenCalledWith('new-feature'); expect(allsparkHttpLink['_httpLinkMap'].get('new-feature')).toBe(link); }); - it('_getLinkForFeatureId should return the default link if no client is returned for the featureId', () => { const context: DefaultContext = { featureId: 'invalid-feature' }; AllsparkHttpClient.getFeatureClient.mockReturnValue(null);
trim spaces
trim spaces
8200ce7c73e54af73ea03d1f46524990cebec1e7
--- package-lock.json @@ -4137,9 +4137,9 @@ } }, "@walmart/allspark-home-mini-app": { - "version": "0.5.24", - "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.24.tgz", - "integrity": "sha512-5P8yAwuwIo7rchBLg2A812wbXo321F+82L3JBsAiXO8xq7YwCbPWnua4cBp3UfpiIvwob2GkskLrRV7MyIzb/Q==", + "version": "0.5.25", + "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.25.tgz", + "integrity": "sha512-1lzYNAFODNRkCTfqD7PPk+ZVjjdpXv2aPes2MQl8z8R2ORSCDG8rnid3jpMDNInqUHYPVF3TdFevhY+KtCqREw==", "requires": { "moment": "^2.29.0", "uuid": "^8.3.1" @@ -4273,9 +4273,9 @@ "integrity": "sha512-7nXe02E/AOFtT1u6/tVerIskwWvSoJcMgYN2DNH7vMgbb0YIFOsqwzX+nbRh/AcaZhC7YX5H2irVCc6/5/HjJw==" }, "@walmart/metrics-mini-app": { - "version": "0.5.18", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.18.tgz", - "integrity": "sha512-jYHsx+6rOdiZxFge/oHGVWnSOXESWTo5jML4n1iXcMhIplEAxqYmy1G8Spj1IqAr4O2YwD6AdZjdOMOGSLhOTQ==", + "version": "0.5.21", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.21.tgz", + "integrity": "sha512-LGuc2ly+cM0evbDBJuFJMhNsAXs7GCqxXTAlcEwNC4XRvyd6PfpHxesI54nQNQxb8ULiB8/z5uxGnNYXP4bKiQ==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -71,7 +71,7 @@ "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@walmart/allspark-health-survey-mini-app": "0.0.44", - "@walmart/allspark-home-mini-app": "0.5.24", + "@walmart/allspark-home-mini-app": "0.5.25", "@walmart/allspark-me-mini-app": "0.31.4", "@walmart/allspark-neon-core": "0.1.25", "@walmart/ask-sam-mini-app": "0.40.6", @@ -87,7 +87,7 @@ "@walmart/ims-print-services-ui": "0.1.11", "@walmart/inbox-mini-app": "0.24.0", "@walmart/manager-approvals-miniapp": "0.0.58", - "@walmart/metrics-mini-app": "0.5.18", + "@walmart/metrics-mini-app": "0.5.21", "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.85.0", "@walmart/price-changes-mini-app": "1.0.6",
metrics and home version bump
metrics and home version bump
69f491c52861397571a503b91325f7f06164981c
--- package-lock.json @@ -14,9 +14,9 @@ } }, "@apollo/client": { - "version": "3.7.4", - "resolved": "https://npme.walmart.com/@apollo/client/-/client-3.7.4.tgz", - "integrity": "sha512-bgiCKRmLSBImX4JRrw8NjqGo0AQE/mowCdHX1PJp2r5zIXrJx0UeaAYmx1qJY69Oz/KR7SKlLt4xK+bOP1jx7A==", + "version": "3.7.5", + "resolved": "https://npme.walmart.com/@apollo/client/-/client-3.7.5.tgz", + "integrity": "sha512-HEAhX2n2Y8Y2BwRr0UdteT94OTM7pn64K5/rTk/oLIdg/h7R2d83LdsCGDxSH5sBiqDqlv9vou4xdyTxxRWj/g==", "requires": { "@graphql-typed-document-node/core": "^3.1.1", "@wry/context": "^0.7.0", --- packages/allspark-http-client/src/HttpClient.ts @@ -1,16 +1,24 @@ -import axios, { AxiosRequestConfig, AxiosResponse, Method, Axios } from 'axios'; -import { TIMEOUT } from './constants'; +import axios, { + AxiosRequestConfig, + AxiosResponse, + Method, + Axios, + HeadersDefaults, +} from 'axios'; +import { TIMEOUT, NON_HEADER_KEYS } from './constants'; import { createRetryInterceptor } from './retryInterceptor'; -import { HttpClientConfig, Interceptor } from './types'; +import { HttpClientConfig, IHttpClient, Interceptor } from './types'; -class HttpClient extends Axios { +class HttpClient extends Axios implements IHttpClient { clonedInstanceMap: { [key: string]: HttpClient } = {}; // Interceptors and timeout will be defaulted so may be optional on input // but not on instance config: HttpClientConfig & { interceptors: Interceptor[]; timeout: number }; constructor(config: HttpClientConfig = {}) { + // @todo - try merge config // @ts-ignore - doesnt like mixing default and config header types but it works fine. + // super(axios.mergeConfig(axios.defaults, config)); super({ ...axios.defaults, ...config, @@ -28,12 +36,21 @@ class HttpClient extends Axios { // Add config interceptors interceptors.forEach(this.useInterceptor.bind(this)); + + // @todo - find way to migrate to base axios calls + this.post = this.createLegacyHandler('post'); + this.patch = this.createLegacyHandler('patch'); + this.put = this.createLegacyHandler('put'); } /** * @description Merges config with existing config */ public mergeConfig(config: HttpClientConfig) { + // @todo - try merge config + // @ts-ignore - is defined on axios but not typed + // const newConfig = axios.mergeConfig(this.defaults, config); + // this.defaults = newConfig; const headers = Object.assign(this.defaults.headers, config.headers || {}); Object.assign(this.config, config); Object.assign(this.defaults, { ...config, headers }); @@ -52,6 +69,15 @@ class HttpClient extends Axios { const { headers = {}, interceptors = [], ...restConfig } = config; // Merge Config + // @todo - try merge config + // @ts-ignore - mergeConfig is defined, but not on types + // const mergedConfig = axios.mergeConfig(this.defaults, { + // ...restConfig, + // headers: { + // ...headers, + // 'x-http-client-feature-key': key, + // }, + // }); const mergedConfig = { ...this.defaults, ...restConfig }; // Merge Headers @@ -159,6 +185,46 @@ class HttpClient extends Axios { interceptors.forEach(this.addInterceptor); } + public getHeaders(method: string) { + // Merge headers common headers with those for method + const headers = { + ...this.defaults.headers, + ...this.defaults.headers.common, + ...this.defaults.headers[method as keyof HeadersDefaults], + }; + + NON_HEADER_KEYS.forEach((key) => { + delete headers[key]; + }); + + return headers as unknown as Record<string, string>; + } + + private createLegacyHandler(method: Method) { + return <T = any, R = AxiosResponse<T>, D = any>( + url: string, + data?: D, + config?: AxiosRequestConfig<D> + ): Promise<R> => { + // @ts-ignore + if (data?.data) { + console.warn( + `HttpClient ${method} request to url: ${url} may be using an incorrect request format. + ${method} calls should follow the format: ${method}(url, data, config). + ` + ); + return this.formatLegacyRequest(method, url, data); + } else { + return this.request({ + method, + url, + data, + ...config, + }); + } + }; + } + /** * @description The format for post, put, patch in Http Client v1 expected data * to be nested within config. For backwards compatability this will format those --- packages/allspark-http-client/src/constants.ts @@ -1,5 +1,18 @@ export const RETRY_ERROR_CODES = [500, 502, 503, 504]; -export const TIMEOUT = 10000; -export const RETRY_COUNT = 2; -export const RETRY_DELAY = 2000; -export const HEADERS = 'headers'; +export const TIMEOUT = 10000 as const; +export const RETRY_COUNT = 2 as const; +export const RETRY_DELAY = 2000 as const; +export const HEADERS = 'headers' as const; +export const NON_HEADER_KEYS = [ + 'delete', + 'get', + 'head', + 'post', + 'put', + 'patch', + 'common', + 'link', + 'unlink', + 'options', + 'purge', +] as const; --- packages/allspark-http-client/src/defaultClient.ts @@ -1,6 +1,7 @@ import { addProxyMethod } from '@walmart/allspark-utils'; +import { IHttpClient } from '../lib'; import HttpClient from './HttpClient'; -const baseHttpClient = new HttpClient(); +const baseHttpClient: IHttpClient = new HttpClient(); export const defaultHttpClient = addProxyMethod(baseHttpClient); --- packages/allspark-http-client/src/react/context.tsx @@ -1,7 +1,7 @@ import { createContext } from 'react'; import { defaultHttpClient } from '../defaultClient'; -import HttpClient from '../HttpClient'; +import { IHttpClient } from '../types'; -export const HttpClientContext = createContext<HttpClient | undefined>( +export const HttpClientContext = createContext<IHttpClient | undefined>( defaultHttpClient ); --- packages/allspark-http-client/src/types.ts @@ -70,17 +70,7 @@ export interface HttpClientConfig extends RawAxiosRequestConfig, RetryConfig { interceptors?: Interceptor[]; } -export interface IHttpClient extends Omit<Axios, 'post' | 'put' | 'patch'> { - addInterceptor: (Interceptor: Interceptor) => void; - defaults: AxiosDefaults & RetryConfig; - clone: (config: HttpClientConfig, key: string) => IHttpClient; - setConfig: (config: HttpClientConfig) => void; - mergeConfig: (config: HttpClientConfig) => void; - removeInstance: (key: string) => void; - cancelRequests: (options: { message?: string; recursive?: boolean }) => void; - resumeRequests: (options: { recursive?: boolean }) => void; - makeRequest: Axios['request']; - service: IHttpClient; +export interface LegacyAxios extends Omit<Axios, 'put' | 'post' | 'patch'> { post<T = any, R = AxiosResponse<T>, D = any>( url: string, config?: AxiosRequestConfig<D> @@ -94,3 +84,16 @@ export interface IHttpClient extends Omit<Axios, 'post' | 'put' | 'patch'> { config?: AxiosRequestConfig<D> ): Promise<R>; } + +export interface IHttpClient extends LegacyAxios { + addInterceptor: (Interceptor: Interceptor) => void; + defaults: AxiosDefaults & RetryConfig; + clone: (config: HttpClientConfig, key: string) => IHttpClient; + setConfig: (config: HttpClientConfig) => void; + mergeConfig: (config: HttpClientConfig) => void; + removeInstance: (key: string) => void; + cancelRequests: (options: { message?: string; recursive?: boolean }) => void; + resumeRequests: (options: { recursive?: boolean }) => void; + makeRequest: Axios['request']; + service: IHttpClient; +}
feat: add handling of legacy http client requests
feat: add handling of legacy http client requests
320271ee5e8a5b4e1e3ffdb92470d9fd041e6c8f
--- .looper.multibranch.yml @@ -169,8 +169,6 @@ envs: PROVISIONING_PROFILE: ./BuildSupport/Squiggly_AppStore_Provision.mobileprovision ENTITLEMENTS: './BuildSupport/ExportOptionsProd.plist' ARCHIVE_TYPE: "app-store" - fastlane-session: - release_url: "N/A" beta: variables: env: "beta" @@ -367,8 +365,11 @@ flows: - call: android-process - echo "uploading build" - call: upload-build(version = "${version}-${env}-SNAPSHOT", artifactId = "allspark-core-${os}-${env}", buildOutput = ${buildOutput}, sourceMap = ${sourceMap}) - - call: slack-success(version = "${version}-${env}-SNAPSHOT", buildOutput = ${buildOutput}) - - call: msteams-success(version = ${version}, buildOutput = ${buildOutput}) + - if: | + %{env != "prod"} + then: + - call: slack-success(version = "${version}-${env}-SNAPSHOT", buildOutput = ${buildOutput}) + - call: msteams-success(version = ${version}, buildOutput = ${buildOutput}) catch: - echo "calling slack-failure(${version}, ${flowErrorMessage})" - call: slack-failure(version = ${version}, flowErrorMessage = ${flowErrorMessage}) @@ -402,8 +403,11 @@ flows: - (name create release tag) sh scripts/releaseTagging.sh "${version}" - echo "uploading build" - call: upload-build(version = ${version}, artifactId = ${artifactId}, buildOutput = ${buildOutput}, sourceMap = ${sourceMap}) - - call: slack-success(version = "${version}-${env}", buildOutput = ${buildOutput}) - - call: msteams-success(version = ${version}, buildOutput = ${buildOutput}) + - if: | + %{env != "prod"} + then: + - call: slack-success(version = "${version}-${env}", buildOutput = ${buildOutput}) + - call: msteams-success(version = ${version}, buildOutput = ${buildOutput}) else: - echo "artifact present; no need to build and publish. fullUrl = ${fullUrl}" catch: --- fastlane/Fastfile @@ -70,17 +70,12 @@ lane :submit_to_appcenter do |options| end def release_notes() - result = [] result << %{#{ENV['version']} (#{ENV['env']})} - result << %{Branch: `#{ENV['GITHUB_BRANCH_NAME']}` (#{ENV['GITHUB_BRANCH_HEAD_SHA'][0...8]})} - result << %{Title: #{ENV['GIT_COMMIT_MESSAGE']} by #{ENV['GIT_COMMIT_AUTHOR']}} - result << %{Branch URL: <#{ENV['GITHUB_BRANCH_URL']}>} - + result << %{Commit message: #{ENV['GIT_COMMIT_MESSAGE']} by #{ENV['GIT_COMMIT_AUTHOR']}} result << %Q{Looper: <#{ENV['BUILD_URL']}>} result - end # Use the `session` hash and the `save_session` method to store values
removing slack builds for prod environments
removing slack builds for prod environments
c57c2b813f6d1070eb4880b85d66748b5ebb8b21
--- package-lock.json @@ -4498,9 +4498,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.14.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.14.0.tgz", - "integrity": "sha512-DmHagRWZpyi8AjCQ3JMSI9upvdNziOCXJD2d4rCOlMzPFFF9w9l6cgrk9Kp0zjkHftzepgBq9MXmplRcTDhGgA==" + "version": "0.15.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.15.0.tgz", + "integrity": "sha512-eJMFoU3+khZm+k59cCYz/bdh3W+bhP2O0NaSf6mPxV2nIMD6BISGkdn+EO4xevooHtHR/5KVOlLtYzvOQywJIw==" }, "@walmart/time-clock-mini-app": { "version": "0.5.1", --- 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.14.0", + "@walmart/taskit-mini-app": "0.15.0", "@walmart/time-clock-mini-app": "0.5.1", "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.52.0",
version update
version update
f513bc0d334edd1a0045749ed438d599c2b98735
--- .looper.multibranch.yml @@ -63,8 +63,8 @@ flows: - call: sonar-scan-pr - parallel(failsafe): - (name Scanning Walmart Packages) npm run lint:changed-walmart-libs ${GITHUB_PR_TARGET_BRANCH} - - (name Scanning Deprecated Packages In Core) export GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" && export GITHUB_PR_NUMBER="${GITHUB_PR_NUMBER}" && export GITHUB_PR_TARGET_BRANCH="${GITHUB_PR_TARGET_BRANCH:-main}" && export GITHUB_PR_SOURCE_BRANCH="${GITHUB_PR_SOURCE_BRANCH}" && yarn install --frozen-lockfile && npx tsx scripts/mini-app-scan/package-deprecation/core-check/main.ts "${GITHUB_PR_TARGET_BRANCH:-main}" - - (name Scanning Deprecated Packages In Mini App) export GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" && export GITHUB_PR_NUMBER="${GITHUB_PR_NUMBER}" && export GITHUB_PR_TARGET_BRANCH="${GITHUB_PR_TARGET_BRANCH:-main}" && export GITHUB_PR_SOURCE_BRANCH="${GITHUB_PR_SOURCE_BRANCH}" && yarn install --frozen-lockfile && npx tsx scripts/mini-app-scan/package-deprecation/mini-app-check/main.ts "${GITHUB_PR_TARGET_BRANCH:-main}" + - (name Scanning Deprecated Packages In Core) corepack enable && export GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" && export GITHUB_PR_NUMBER="${GITHUB_PR_NUMBER}" && export GITHUB_PR_TARGET_BRANCH="${GITHUB_PR_TARGET_BRANCH:-main}" && export GITHUB_PR_SOURCE_BRANCH="${GITHUB_PR_SOURCE_BRANCH}" && yarn install --frozen-lockfile && npx tsx scripts/mini-app-scan/package-deprecation/core-check/main.ts "${GITHUB_PR_TARGET_BRANCH:-main}" + - (name Scanning Deprecated Packages In Mini App) corepack enable && export GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" && export GITHUB_PR_NUMBER="${GITHUB_PR_NUMBER}" && export GITHUB_PR_TARGET_BRANCH="${GITHUB_PR_TARGET_BRANCH:-main}" && export GITHUB_PR_SOURCE_BRANCH="${GITHUB_PR_SOURCE_BRANCH}" && yarn install --frozen-lockfile && npx tsx scripts/mini-app-scan/package-deprecation/mini-app-check/main.ts "${GITHUB_PR_TARGET_BRANCH:-main}" - call: slack-notification-pr(slack-pr) mini-pr: # overridden for new bundle js command
feat(lib): modify looper
feat(lib): modify looper
0b395739b495c79186937ba5d88822765035e2c5
--- src/modals/MessagesScreen.tsx @@ -228,7 +228,7 @@ export const MessagesScreen = ({ const channelExistsRef = useRef<boolean>(); const isTeamMessage = channelPath?.includes(channelTypes.TEAM); // Extract team ID from channel path for team messages - const channelTeamId = isTeamMessage ? channelPath.split('/').pop() || '' : ''; + const channelTeamId = isTeamMessage ? channelPath?.split('/').pop() || '' : ''; const primaryTeamData = useGetTeamById(channelTeamId); const isPrimaryTeamPartialError = !!(
feat(ui): added null check
feat(ui): added null check
53fe8e0a9b71dd93b1e12c20c32146e1c3d45094
--- jest.config.js @@ -9,10 +9,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 14, - branches: 3, - functions: 6, - lines: 14, + statements: 1, + branches: 1, + functions: 1, + lines: 1, }, }, transformIgnorePatterns: [ --- jest.config.js @@ -9,10 +9,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 14, - branches: 3, - functions: 6, - lines: 14, + statements: 1, + branches: 1, + functions: 1, + lines: 1, }, }, transformIgnorePatterns: [
lowering coverage treshold
lowering coverage treshold
465d896bef137a20745dd052053c47e7e294d832
--- packages/allspark-foundation/src/Components/TeamOnboarding/TeamSelection/styles.ts @@ -60,7 +60,6 @@ export const teamSelectionListStyles = StyleSheet.create({ padding: 16, display: 'flex', flexDirection: 'column', - marginTop: 8, }, headerContainer: { paddingTop: 16, @@ -95,7 +94,6 @@ export const teamSelectionListStyles = StyleSheet.create({ fontFamily: 'Bogle-Regular', fontWeight: '400', fontSize: 12, - lineHeight: 16, color: colors.gray['160'], }, areaHeader: { @@ -104,17 +102,15 @@ export const teamSelectionListStyles = StyleSheet.create({ fontWeight: '700', lineHeight: 24, color: colors.gray['160'], + marginTop: 16, }, myAreaContainaer: { marginBottom: 24, }, - teamListContainer: { - marginBottom: 24, - }, }); export const teamSelectionStyles = StyleSheet.create({ container: { - backgroundColor: colors.gray['5'], + backgroundColor: colors.red['10'], }, });
Updating styles
Updating styles
063eae3d278c461326a70033ef456738dd394911
--- .env @@ -6,4 +6,4 @@ EXPO_NO_GIT_STATUS=1 EXPO_USE_FAST_RESOLVER=1 EXPO_DEBUG=false # https://expo.dev/changelog/2024/08-14-react-native-0.75#4-optional-try-out-autolinking-speed-improvements - EXPO_UNSTABLE_CORE_AUTOLINKING=1 \ No newline at end of file +# EXPO_UNSTABLE_CORE_AUTOLINKING=1 \ No newline at end of file
chore: temporarily remove autolinking env var
chore: temporarily remove autolinking env var
5de7dedac33917e955d40669059b257c1297b02b
--- src/navConfig/NavConfigSagas.ts @@ -109,7 +109,6 @@ export function* fetchNavConfig(): any { ); if (initialized) { - console.log('fetching nav config'); const scope = yield call(getNavConfigScope); const data = yield call(GlobalNavConfig.fetchConfig, scope); yield put(NavConfigActionCreators.fetchSuccess(data));
removing console log
removing console log
8c730f2253b2d3ec466c50a8844a951f2e39c56a
--- src/images/assets/index.ts @@ -16,10 +16,12 @@ const Images: {[key: string]: ImageURISource} = { HomeTabActive: require('./home-tab-active.png'), InboxTab: require('./inbox-tab.png'), InboxTabActive: require('./inbox-tab-active.png'), + LabelIllustration: require('./label-illustration.png'), LandingIllustration: require('./landing-illustration.png'), LandingIllustration2: require('./landing-illustration2.png'), LocationIllustration: require('./location-illustration.png'), MenuIcon: require('./menu-icon.png'), + MenuIllustration: require('./menu-illustration.png'), MeTab: require('./me-tab.png'), MeTabActive: require('./me-tab-active.png'), NotificationsIllustration: require('./notifications-illustration.png'), @@ -29,10 +31,8 @@ const Images: {[key: string]: ImageURISource} = { SurveyIllustration: require('./survey-illustration.png'), TeamTab: require('./team-tab.png'), TeamTabActive: require('./team-tab-active.png'), - TranslationIllustration: require('./translation-illustration.png'), TimeclockBeepIllustration: require('./timeclock-beep-illustration.png'), TouchID: require('./touch-id.png'), - VoiceMessageIllustration: require('./voice-message-illustration.png'), WalmartSpark: require('./walmart-spark.png'), WelcomeIllustration: require('./welcome-illustration.png'), WhatsNext: require('./whats-next.png'), --- src/images/assets/label-illustration.png Binary files /dev/null and b/src/images/assets/label-illustration.png differ --- src/images/assets/label-illustration@2x.png Binary files /dev/null and b/src/images/assets/label-illustration@2x.png differ --- src/images/assets/label-illustration@3x.png Binary files /dev/null and b/src/images/assets/label-illustration@3x.png differ --- src/images/assets/menu-illustration.png Binary files /dev/null and b/src/images/assets/menu-illustration.png differ --- src/images/assets/menu-illustration@2x.png Binary files /dev/null and b/src/images/assets/menu-illustration@2x.png differ --- src/images/assets/menu-illustration@3x.png Binary files /dev/null and b/src/images/assets/menu-illustration@3x.png differ --- src/images/assets/roster-illustration.png Binary files a/src/images/assets/roster-illustration.png and b/src/images/assets/roster-illustration.png differ --- src/images/assets/roster-illustration@2x.png Binary files a/src/images/assets/roster-illustration@2x.png and b/src/images/assets/roster-illustration@2x.png differ --- src/images/assets/roster-illustration@3x.png Binary files a/src/images/assets/roster-illustration@3x.png and b/src/images/assets/roster-illustration@3x.png differ --- src/images/assets/translation-illustration.png Binary files a/src/images/assets/translation-illustration.png and /dev/null differ --- src/images/assets/translation-illustration@2x.png Binary files a/src/images/assets/translation-illustration@2x.png and /dev/null differ --- src/images/assets/translation-illustration@3x.png Binary files a/src/images/assets/translation-illustration@3x.png and /dev/null differ --- src/images/assets/voice-message-illustration.png Binary files a/src/images/assets/voice-message-illustration.png and /dev/null differ --- src/images/assets/voice-message-illustration3x.png Binary files a/src/images/assets/voice-message-illustration3x.png and /dev/null differ --- src/images/assets/voice-message-illustration@2x.png Binary files a/src/images/assets/voice-message-illustration@2x.png and /dev/null differ
Adding drop 3 whats new images. Removing drop 2.5 images
Adding drop 3 whats new images. Removing drop 2.5 images
6498953c9480beafb09f93a7a6e14b29b42ea778
--- __tests__/auth/__snapshots__/ErrorScreenTest.tsx.snap @@ -155,17 +155,6 @@ exports[`ErrorScreen matches snapshot when dirty and no userId/siteId 1`] = ` value="" /> </View> - <Text - style={ - Object { - "fontSize": 14, - "fontWeight": "700", - "lineHeight": 28, - } - } - > - en-US - </Text> <Text style={ Object { @@ -251,49 +240,49 @@ exports[`ErrorScreen matches snapshot when dirty and no userId/siteId 1`] = ` /> </View> </View> - </View> - </View> - <Text - style={ - Object { - "fontSize": 14, - "fontWeight": "700", - "lineHeight": 28, - } - } - > - ssoError.optional - </Text> - <View - style={ - Object { - "borderColor": "#909196", - "borderRadius": 5, - "borderWidth": 1, - "color": "#74767c", - } - } - > - <TextInput - editable={true} - maxLength={1000} - multiline={true} - numberOfLines={4} - onChangeText={[MockFunction]} - placeholder="ssoError.details" - style={ - Object { - "fontFamily": "Bogle", - "fontSize": 16, - "height": 128, - "marginTop": 10, - "paddingHorizontal": 16, + <Text + style={ + Object { + "fontSize": 14, + "fontWeight": "700", + "lineHeight": 28, + } } - } - testID="details-text" - textAlignVertical="top" - value="" - /> + > + ssoError.optional + </Text> + <View + style={ + Object { + "borderColor": "#909196", + "borderRadius": 5, + "borderWidth": 1, + "color": "#74767c", + } + } + > + <TextInput + editable={true} + maxLength={1000} + multiline={true} + numberOfLines={4} + onChangeText={[MockFunction]} + placeholder="ssoError.details" + style={ + Object { + "fontFamily": "Bogle", + "fontSize": 16, + "height": 128, + "marginTop": 10, + "paddingHorizontal": 16, + } + } + testID="details-text" + textAlignVertical="top" + value="" + /> + </View> + </View> </View> </View> </RCTScrollView> @@ -490,17 +479,6 @@ exports[`ErrorScreen renders default 1`] = ` value="" /> </View> - <Text - style={ - Object { - "fontSize": 14, - "fontWeight": "700", - "lineHeight": 28, - } - } - > - es-MX - </Text> <Text style={ Object { @@ -555,49 +533,49 @@ exports[`ErrorScreen renders default 1`] = ` /> </View> </View> - </View> - </View> - <Text - style={ - Object { - "fontSize": 14, - "fontWeight": "700", - "lineHeight": 28, - } - } - > - ssoError.optional - </Text> - <View - style={ - Object { - "borderColor": "#909196", - "borderRadius": 5, - "borderWidth": 1, - "color": "#74767c", - } - } - > - <TextInput - editable={true} - maxLength={1000} - multiline={true} - numberOfLines={4} - onChangeText={[MockFunction]} - placeholder="ssoError.details" - style={ - Object { - "fontFamily": "Bogle", - "fontSize": 16, - "height": 128, - "marginTop": 10, - "paddingHorizontal": 16, + <Text + style={ + Object { + "fontSize": 14, + "fontWeight": "700", + "lineHeight": 28, + } } - } - testID="details-text" - textAlignVertical="top" - value="" - /> + > + ssoError.optional + </Text> + <View + style={ + Object { + "borderColor": "#909196", + "borderRadius": 5, + "borderWidth": 1, + "color": "#74767c", + } + } + > + <TextInput + editable={true} + maxLength={1000} + multiline={true} + numberOfLines={4} + onChangeText={[MockFunction]} + placeholder="ssoError.details" + style={ + Object { + "fontFamily": "Bogle", + "fontSize": 16, + "height": 128, + "marginTop": 10, + "paddingHorizontal": 16, + } + } + testID="details-text" + textAlignVertical="top" + value="" + /> + </View> + </View> </View> </View> </RCTScrollView> --- src/auth/ErrorScreen.tsx @@ -132,7 +132,7 @@ export const ErrorScreen: FC<any> = (props) => { <KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'position' : undefined} enabled - keyboardVerticalOffset={Platform.OS === 'android' ? 60 : 80}> + keyboardVerticalOffset={Platform.OS === 'android' ? 60 : 0}> <Subheader style={styles.errorMsg} testID='errorMessage'> {translate('ssoError.errorMsg')} </Subheader>
update keyboard offset for ios - SSMP-3053
update keyboard offset for ios - SSMP-3053
e67475455521a763fc82fc37c1dbad98702aec92
--- package.json @@ -144,7 +144,6 @@ "react-native-sound-player": "0.10.9", "react-native-splash-screen": "^3.2.0", "react-native-ssmp-sso-allspark": "1.2.2", - "react-native-sumo-sdk": "^2.7.4-rc.9", "react-native-svg": "^12.1.0", "react-native-tab-view": "^2.15.2", "react-native-table-component": "^1.2.1",
Update package.json
Update package.json
d55d07d5fc739b4336ef51f715fdfdc1212de6fb
--- graphql.yml @@ -93,11 +93,11 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql' tags: - 'v1' - # - name: "getLoggedInUser" - # hash: "f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql" - # tags: - # - "v1" + - name: 'getLoggedInUser' + hash: 'f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' + tags: + - 'v1' - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql'
feat: allspark-4663 - making stage and prod in sync
feat: allspark-4663 - making stage and prod in sync
ad6946dccf66a32b64e9c2c290d1850236d63ef6
--- packages/me-at-walmart-container/src/graphql/policies.ts @@ -4,22 +4,23 @@ export const TypePolicies: StrictTypedTypePolicies = { // -- Type policy for root queries -- // Query: { fields: { + // TODO: Look into read function when userId type is WIN. How would that work? getAssociateById: { // Transform query args into cache lookup read(_, { args, toReference }) { return toReference({ __typename: 'Associate', - associateId: args?.id, + userId: args?.id.toUpperCase(), }); }, }, getTeamById: { // Transform query args into cache lookup - read(_, { args, toReference }) { + read(_, { variables, toReference }) { return toReference({ __typename: 'Team', - teamId: args?.teamId, - site: args?.storeNbr, + teamId: variables?.teamId, + site: variables?.storeNbr, }); }, }, @@ -29,67 +30,102 @@ export const TypePolicies: StrictTypedTypePolicies = { // Mutation: {}, // -- Type Policies for entities -- // Associate: { - keyFields: ['associateId'], + keyFields: ['userId'], + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + AssociateJobDetail: { + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + Badge: { + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + BadgeProgress: { + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + Compliance: { merge: true, }, + // TODO: Added by Learning. Add at mini app level. + CourseAssertion: { + keyFields: ['assignedBy', 'completionStatus', 'id'], + }, + // TODO: Added by Learning. Add at mini app level. + CourseProgress: { + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + EmploymentDetails: { + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + Learning: { + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + Library: { + merge: true, + }, + // TODO: How long does this need to be maintained? MewAssociate: { - keyFields: ['associateId'], + keyFields: ['userId'], merge: true, }, + // TODO: How long does this need to be maintained? MewTeam: { keyFields: ['teamId', 'site'], }, + // TODO: Added by Learning. Add at mini app level. + MicroLearnings: { + merge: true, + fields: { + completed: { + read(_, { args, toReference }) { + return toReference({ + __typename: 'CourseAssertion', + assignedBy: args?.assignedBy || '', + completionStatus: args?.completionStatus || '', + id: args?.id || '', + }); + }, + }, + }, + }, + // TODO: Added by Learning. Add at mini app level. + Profile: { + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + SearchCourses: { + merge: true, + }, Team: { keyFields: ['teamId', 'site'], merge: true, }, + TeamAssociateMembership: { + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + TodoTopicsCount: { + merge: true, + }, + // TODO: Added by Learning. Add at mini app level. + TopicList: { + merge: true, + }, UserInfo: { keyFields: ['userPrincipalName'], }, + // TODO: Is this needed? WorkdayAssociate: { keyFields: ['associateId'], }, + // TODO: Is this needed? WorkdayTeam: { keyFields: ['teamId'], }, - // - // AssociateDisplayPreference: { - // keyFields: ['win'], - // }, - // MewTeamAssociateMapping: { - // keyFields: [], - // }, - // MewImPresence: { - // keyFields: ['groupId'], - // }, - // TeamAssociateMapping: { - // keyFields: [], - // }, - // ProfilePicture: { - // keyFields: ['profilePic'], - // }, - // CRQActivity: { - // keyFields: ['crqNumber'], - // }, - // WFMSchedule: { - // keyFields: ['winNbr'], - // }, - // GlobalTimeAndAttendance: { - // keyFields: ['associateId'], - // }, - // MetaDataUpdatedCRQ: { - // keyFields: ['crqNumber'], - // }, - // RoleAndOrgs: { - // keyFields: ['employeeId'], - // }, - // PayStubSummary: { - // keyFields: ['checkNbr'], - // }, - // Talent: { - // keyFields: ['win'], - // }, - // Schedule: { - // keyFields: ['scheduleId', 'storeId'], - // }, };
fix: change associate type policy to use userid for key field. add policies from upstream branch.
fix: change associate type policy to use userid for key field. add policies from upstream branch.
ff1c5792e30ca6c1ca275ada8bdb27dfedfe9c0c
--- .looper.yml @@ -34,7 +34,7 @@ flows: publishFromChanges: - call: preparePublish - - (name Publish Changed Packages) npm run publish + - (name Publish Changed Packages) npm run publish-from-git publishFromPackage: - call: preparePublish @@ -42,4 +42,4 @@ flows: publishFromNpm: - call: preparePublish - - (name Publish) npm publish + - (name Publish) npm run publish
chore: change looper publish
chore: change looper publish
bdaa7019753c985f9e5fc7437e8763a9f435b2ab
--- .looper.multibranch.yml @@ -4,7 +4,7 @@ inherit: "job:///metropolis/metroloop/metroloop-parent" ## Whenever you update the nodes, please update it at the two-place, below line & the global variable LOOPER_NODES ## -node: ((stable_osx||xcode12.5)&&!MAC-LAB-MINI36&&!MAC-LAB-MINI32&&!MAC-LAB-MINI07&&!MAC-DRFQLAB-MINI43&&!MAC-LAB-MINI09) +node: ((stable_osx||xcode12.5)&&!MAC-LAB-MINI07&&!MAC-DRFQLAB-MINI43&&!MAC-LAB-MINI09) tools: android: @@ -46,7 +46,7 @@ cache: envs: global: variables: - LOOPER_NODES: "((stable_osx||xcode12.5)&&!MAC-LAB-MINI36&&!MAC-LAB-MINI32&&!MAC-LAB-MINI07&&!MAC-DRFQLAB-MINI43)" + LOOPER_NODES: "((stable_osx||xcode12.5)&&!MAC-LAB-MINI07&&!MAC-DRFQLAB-MINI43)" GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}" TMPDIR: /tmp --- fastlane/Fastfile @@ -76,22 +76,6 @@ lane :submit_to_appcenter do |options| save_session end -desc "Upload APK to App Center" -lane :submit_to_appcenter_android do |options| - - UI.message("\n\n\n=====================================\n uploading Android\n=====================================") - if options[:BUILD_OUTPUT] - appcenter_upload( - file: options[:BUILD_OUTPUT], - upload_build_only: true) - end - session[:download_link] = Actions.lane_context[SharedValues::APPCENTER_DOWNLOAD_LINK] - release_number = Actions.lane_context[SharedValues::APPCENTER_BUILD_INFORMATION]["id"] - release_url = "https://install.appcenter.ms/orgs/#{ENV['APPCENTER_OWNER_NAME']}/apps/#{ENV['APPCENTER_APP_NAME']}/distribution_groups/#{ENV["APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT"]}/releases/#{release_number}" - session[:release_url] = release_url - save_session -end - # Use the `session` hash and the `save_session` method to store values # you want to use across Fastlast lanes.
adding nodes to the pool
adding nodes to the pool
15751095ce0f318acf3fb830216b3e6513e791c3
--- packages/allspark-foundation-hub/package.json @@ -41,10 +41,10 @@ }, "peerDependencies": { "@react-navigation/native": "6.x", - "@walmart/allspark-foundation": "workspace:^", - "@walmart/allspark-utils": "workspace:^", + "@walmart/allspark-foundation": ">=6.27", + "@walmart/allspark-utils": ">=6.5", "@walmart/gtp-shared-components": ">=2", - "@walmart/me-at-walmart-athena-queries": "workspace:^", + "@walmart/me-at-walmart-athena-queries": ">=6.30", "react": "*", "react-native": "*", "react-native-safe-area-context": "4.x" --- packages/allspark-foundation/package.json @@ -121,20 +121,20 @@ "@react-navigation/drawer": "6.x", "@react-navigation/native": "6.x", "@react-navigation/stack": "6.x", - "@walmart/allspark-graphql-client": "workspace:^", - "@walmart/allspark-http-client": "workspace:^", - "@walmart/core-services": "workspace:^", - "@walmart/core-utils": "workspace:^", - "@walmart/functional-components": "workspace:^", + "@walmart/allspark-graphql-client": ">=6.3", + "@walmart/allspark-http-client": ">=6.3", + "@walmart/core-services": ">=6.5", + "@walmart/core-utils": ">=6.3", + "@walmart/functional-components": ">=6.3", "@walmart/gtp-shared-components": ">=2", - "@walmart/react-native-env": "workspace:^", + "@walmart/react-native-env": ">=6.3", "@walmart/react-native-scanner-3.0": ">=0.6.3", - "@walmart/react-native-shared-navigation": "workspace:^", + "@walmart/react-native-shared-navigation": ">=6.3", "@walmart/react-native-sumo-sdk": "^2.7.0", - "@walmart/react-native-wm-network": "workspace:^", - "@walmart/react-native-wm-notification": "workspace:^", - "@walmart/react-native-wm-telemetry": "workspace:^", - "@walmart/redux-store": "workspace:^", + "@walmart/react-native-wm-network": ">=6.3", + "@walmart/react-native-wm-notification": ">=6.3", + "@walmart/react-native-wm-telemetry": ">=6.3", + "@walmart/redux-store": ">=6.3", "react": "*", "react-native": "*", "react-native-apollo-devtools-client": "*",
fix: workspace protocol improperly used in peer dependencies
fix: workspace protocol improperly used in peer dependencies
7946c0ab86a9d4da717163d21d9aecd2b0cd9fd7
--- docs/docs/components/icons/icons-gtp-owned.md @@ -15,7 +15,7 @@ Refer to [this documentation](https://gecgithub01.walmart.com/pages/electrode-mo | CloseIcon | [core/close-icon](https://i5-me.walmartimages.com/images/core/close-icon-5acb3f778e.png) | ![CloseIcon](./images/close-icon-5acb3f778e.webp) | WalmartProtectionPlanIcon | [teams/ap-team](https://i5-me.walmartimages.com/images/teams/ap-team-f1dbc5c1e0.png) | ![WalmartProtectionPlanIcon](./images/ap-team-f1dbc5c1e0.webp) | ImageIcon | [teams/default-team](https://i5-me.walmartimages.com/images/teams/default-team-8b23f41d6a.png) | ![ImageIcon](./images/default-team-8b23f41d6a.webp) - +| HourglassFull | [preboarding/remaining-days](https://i5-me.walmartimages.com/images/preboarding/remaining-days-afb333036d.png) | ![HourglassFull](./images/remaining-days-afb333036d.webp) ## Community Icons --- docs/docs/components/icons/images/remaining-days-afb333036d.webp Binary files /dev/null and b/docs/docs/components/icons/images/remaining-days-afb333036d.webp differ
docs: additional shared icon
docs: additional shared icon
2b2436c5c6625c41951270f8bc9d4924f6999838
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.8", + "version": "2.0.9", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.8", + "version": "2.0.9", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
eedbbb828a09edff6b4b40e303e1a7e0119681b6
--- ReactotronConfig.js @@ -1,10 +1,13 @@ import {AllsparkGraphQLClient, AllsparkReduxStore} from '@walmart/allspark-foundation'; -import Reactotron from 'reactotron-react-native'; +import Reactotron, {networking} from 'reactotron-react-native'; import {reactotronRedux} from 'reactotron-redux' const reactotron = Reactotron.configure() // controls connection & communication settings .useReactNative() // add all built-in react native plugins .use(reactotronRedux()) // add redux plugin + .use(networking({ + ignoreUrls: /symbolicate/, + })) .connect(); // let's connect!
fix(reactotron): updated config for reactotron (#4308)
fix(reactotron): updated config for reactotron (#4308) Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com>
4bb6d58cec173b0f377e05cd40b33e1f58a8d7fa
--- packages/allspark-foundation/src/Components/ComponentContainers.tsx @@ -244,11 +244,11 @@ export class ComponentContainer<Props = {}> { // If allow is set, map allow to component filtering out undefined. Otherwise use all components. const components = allow ? allow - .filter((id) => this._components.has(id)) - .map( - (id) => - [id, this._components.get(id)] as [string, ComponentType<Props>] - ) + .filter((id) => this._components.has(id)) + .map( + (id) => + [id, this._components.get(id)] as [string, ComponentType<Props>] + ) : Array.from(this._components.entries()); const ComponentWrapper = this._componentWrapper ?? PassThrough; --- packages/allspark-foundation/src/Feature/AllsparkFeature.tsx @@ -461,4 +461,4 @@ export class AllsparkFeature<ID extends string = string> { } return AllsparkDynamicComponents.create<Props, IDs>(id, Template); }; -} \ No newline at end of file +} --- packages/allspark-foundation/src/Work/client.ts @@ -79,8 +79,8 @@ export class WorkClient<T extends BaseWorkflows, K extends keyof T = keyof T> { */ public runFlow = async <Key extends K>( id: Key, - metadata: T[Key] extends WorkflowExecutor<infer M, any> - ? WorkflowMetadata<M> + metadata: T[Key] extends WorkflowExecutor<infer M, any> + ? WorkflowMetadata<M> : WorkflowMetadata ): Promise<T[Key] extends WorkflowExecutor<any, infer R> ? R : any> => { const flow = this._flowMap.get(id);
chore(lint): lint fixes
chore(lint): lint fixes
3a196d30ed4813135b93eecb59d575456d10fa5f
--- package-lock.json @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.197.0-rc.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.197.0-rc.0.tgz", - "integrity": "sha512-W9OpS79mqVndX5bgw6zat6TLyf9TCt8bf0RZy7aJ25r0ZzryxhExkgw3Akq1vRmEKTaf0CNC/OO97kyY0Yfing==" + "version": "0.199.0-rc.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.199.0-rc.0.tgz", + "integrity": "sha512-NE2lQSZuN7dnvvOZPom+vnpwuo6tfdhMWUSt8bCIc2uL0IIdH/JoTSGv64eUoYVsTASMh0U8qdxKY+/HmPAyUw==" }, "@walmart/time-clock-mini-app": { "version": "0.4.27", --- 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.197.0-rc.0", + "@walmart/taskit-mini-app": "0.199.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 to latest version
Updating taskIt to latest version
e6eeb902437869b1f0f168cd18a34825bcc08215
--- packages/allspark-foundation/__tests__/Logger/LoggerModule.test.ts @@ -4,10 +4,6 @@ import { LoggerServiceFacade } from '../../src/Logger/LoggerServiceFacade'; import { createMockLoggerService } from '../utils/mockFactories'; describe('LoggerModule', () => { - // beforeEach(() => { - // LoggerModule.service = new LoggerServiceFacade(); - // }); - it('should provide a singleton instance', () => { const service1 = LoggerModule.service; const service2 = LoggerModule.service; --- packages/allspark-foundation/src/Feature/AllsparkFeature.tsx @@ -36,6 +36,10 @@ import { AllsparkDynamicComponents, ComponentRecord, } from '../Components/DynamicComponents'; +import { + createDerivedEnvironmentHook, + EnvironmentConfigMap, +} from '../Environment'; import { AllsparkFeatureModule } from './AllsparkFeatureModule'; import { @@ -53,10 +57,7 @@ import { validateModalName, validateFeatureId, } from './validate'; -import { - createDerivedEnvironmentHook, - EnvironmentConfigMap, -} from '../Environment'; + /** * Represents a feature in the Allspark framework. --- packages/allspark-foundation/src/FeatureRunner/screens/Permissions.tsx @@ -9,16 +9,15 @@ import { } from '@walmart/gtp-shared-components'; import { useSelector } from 'react-redux'; -import { NotificationSelectors } from '../../Notification'; +import { NotificationModule, NotificationSelectors } from '../../Notification'; import { PermissionStatus, isStatusRequestable, PERMISSIONS, - AllsparkPermissionClient, + PermissionsModule, PermissionSelectors, Permission, } from '../../Permissions'; -import { AllsparkNotificationClient } from '../../Notification'; const styles = StyleSheet.create({ screen: { @@ -72,7 +71,7 @@ const NotificationPermission = () => { ); const onRequest = () => - AllsparkNotificationClient.requestPermission([ + NotificationModule.manager.requestPermission([ 'alert', 'badge', 'criticalAlert', @@ -99,7 +98,7 @@ export const AnyPermission = (props: { PermissionSelectors.createPermissionSelector(permission) ); - const onRequest = () => AllsparkPermissionClient.request(permission); + const onRequest = () => PermissionsModule.manager.request(permission); return <PermissionRow name={name} status={status} onRequest={onRequest} />; };
chore: general cleanup and fixes
chore: general cleanup and fixes
a941e36ae07c12dbec419fa80c85611a7d4362d0
--- targets/US/package.json @@ -108,7 +108,7 @@ "@walmart/global-vpi-mini-app": "1.1.1", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.6-rc.1", - "@walmart/ims-print-services-ui": "2.16.4", + "@walmart/ims-print-services-ui": "2.17.2", "@walmart/inbox-mini-app": "0.97.13", "@walmart/iteminfo-mini-app": "8.1.1", "@walmart/learning-mini-app": "20.0.39", @@ -126,7 +126,7 @@ "@walmart/onewalmart-miniapp": "1.0.24", "@walmart/pay-stub-miniapp": "0.15.7", "@walmart/payrollsolution_miniapp": "0.141.19", - "@walmart/price-changes-mini-app": "1.10.25", + "@walmart/price-changes-mini-app": "1.11.0", "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch", "@walmart/react-native-cookies": "1.0.1", "@walmart/react-native-encrypted-storage": "~1.1.3", --- yarn.lock @@ -6865,9 +6865,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ims-print-services-ui@npm:2.16.4": - version: 2.16.4 - resolution: "@walmart/ims-print-services-ui@npm:2.16.4" +"@walmart/ims-print-services-ui@npm:2.17.2": + version: 2.17.2 + resolution: "@walmart/ims-print-services-ui@npm:2.17.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fims-print-services-ui%2F-%2Fims-print-services-ui-2.17.2.tgz" peerDependencies: "@react-native-firebase/analytics": ">=10.5.1" "@react-native-firebase/app": ">=10.5.0" @@ -6875,10 +6875,10 @@ __metadata: "@react-native-firebase/firestore": ">=10.5.1" "@react-native-firebase/perf": ">=10.5.1" "@react-navigation/native": ">=6.0.0" - "@walmart/functional-components": ">=1.0.22" + "@walmart/allspark-foundation": "*" "@walmart/gtp-shared-components": ">=2.0.6" "@walmart/react-native-logger": ">=1.17.0" - "@walmart/react-native-scanner-3.0": ">=0.3.0" + "@walmart/react-native-scanner-3.0": ">=0.6.0" "@walmart/ui-components": ">=1.1.11" i18next: ">=22.0.1" moment: ">=2.29.4" @@ -6888,7 +6888,7 @@ __metadata: react-native-segmented-control-tab: ">=4.0.0" react-native-wm-telemetry: ">=0.2.0" uuid: ">=3.3.2" - checksum: 10c0/b0ef161d32554ff70a56a0ca90bc2816386aabcb2602a4f0d1cdf6b63ecab710f0cf4d769cfc6fd5374981839bfa458bb34681a0ba7b9ae11c85d363224014d4 + checksum: 10c0/410084cfac04986c5de500a088ab5707fe1d65fe2e6fbf5132aabbcda32a417d965d9f78b2c3e91d0c5b5a06f66c9cb978c546225384a2f2b41fe5126ee6f393 languageName: node linkType: hard @@ -7395,7 +7395,7 @@ __metadata: "@walmart/global-vpi-mini-app": "npm:1.1.1" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.6-rc.1" - "@walmart/ims-print-services-ui": "npm:2.16.4" + "@walmart/ims-print-services-ui": "npm:2.17.2" "@walmart/inbox-mini-app": "npm:0.97.13" "@walmart/iteminfo-mini-app": "npm:8.1.1" "@walmart/learning-mini-app": "npm:20.0.39" @@ -7413,7 +7413,7 @@ __metadata: "@walmart/onewalmart-miniapp": "npm:1.0.24" "@walmart/pay-stub-miniapp": "npm:0.15.7" "@walmart/payrollsolution_miniapp": "npm:0.141.19" - "@walmart/price-changes-mini-app": "npm:1.10.25" + "@walmart/price-changes-mini-app": "npm:1.11.0" "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch" "@walmart/react-native-cookies": "npm:1.0.1" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" @@ -7851,36 +7851,28 @@ __metadata: languageName: node linkType: hard -"@walmart/price-changes-mini-app@npm:1.10.25": - version: 1.10.25 - resolution: "@walmart/price-changes-mini-app@npm:1.10.25" +"@walmart/price-changes-mini-app@npm:1.11.0": + version: 1.11.0 + resolution: "@walmart/price-changes-mini-app@npm:1.11.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.11.0.tgz" peerDependencies: - "@react-navigation/native": ^6.0.8 - "@react-navigation/stack": ^6.2.0 - "@walmart/allspark-utils": ^1.5.2 - "@walmart/counts-component-miniapp": 0.1.10 - "@walmart/gtp-shared-components": 2.2.1-rc.0 - "@walmart/ims-print-services-ui": 2.7.3 - "@walmart/react-native-scanner-3.0": 0.4.2 - "@walmart/redux-store": 3.1.3 - "@walmart/ui-components": ^1.6.0 - axios: ^0.26.1 - expo: 50.0.17 + "@react-navigation/native": ">=6.0.0" + "@react-navigation/stack": ">=6.2.0" + "@walmart/allspark-foundation": "*" + "@walmart/allspark-utils": "*" + "@walmart/counts-component-miniapp": "*" + axios: ">0.26.1" + expo: ">=50.0.17" expo-image: 1.5.0 - i18next: ^20.2.2 lodash: ^4.17.21 moment: ^2.29.4 - react: ^17.0.2 - react-i18next: ^11.7.3 + react: 18.2.0 react-native: 0.73.7 react-native-permissions: ^3.10.1 react-native-webview: ^13.6.1 - react-redux: ^7.2.1 - redux: ^4.0.5 redux-saga: ^1.1.3 reduxsauce: ^1.2.0 uuid: ^3.3.2 - checksum: 10c0/393eab995ec6e9cb9936298447bbd546a235e4f85f013abb80e6ca58a5fe7b654ea3e16d80e362bd54690ea1c8ac2b691c22ff3e2d3e3549b4300cb48aab3f6f + checksum: 10c0/7db50762ca05de57ef9fe429a4d65b02bde4469a7a6bb03938ba6412e69bf736db4a406d1b82a0ef111823949d050464df80ac47b99256e9c88468f1b5a80702 languageName: node linkType: hard
updated packages
updated packages
2aa7b79e010e5ef1a2641f0bc6bc561012212d42
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/index.ts @@ -1,2 +1,3 @@ export * from './Components/HubHeader'; export * from './Components/Popover'; +export * from './Components/TeamShiftSwitcher';
feat: added team switcher export
feat: added team switcher export
8f5c6a57d265bf80c517dcaa8d90d7be87334189
--- package-lock.json @@ -3349,9 +3349,9 @@ "integrity": "sha512-Am5QrgtwxJ23j3GsZZivaZknjiWTuPFvFxV1J0ysrQZ3H4wZcgsxuFdsCJqA3Hzufo3pZdyMTZhNtAx4IuQjjw==" }, "@walmart/inbox-mini-app": { - "version": "0.0.96", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.96.tgz", - "integrity": "sha512-jplu8SFzqVj1xWNlxMrPmR3oelBdyNBeQHJOr5YM7p7yqAWBiYO2jt9HyUkZCzRkEhrjjDufk9J5K9OJC1GhKA==" + "version": "0.1.0", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.1.0.tgz", + "integrity": "sha512-ItMErwEl2WKyN/4e5eapVcnlA6GPy+PDUS+BnMQpkymb0gX1gYZKO9F+o3pIZ1Tl3XNsC4M1BxJ54Aq9X/f4RQ==" }, "@walmart/iteminfo-mini-app": { "version": "1.0.22", --- package.json @@ -75,7 +75,7 @@ "@walmart/gtp-shared-components": "^1.1.8", "@walmart/impersonation-mini-app": "1.0.15", "@walmart/ims-print-services-ui": "0.0.19", - "@walmart/inbox-mini-app": "0.0.96", + "@walmart/inbox-mini-app": "0.1.0", "@walmart/iteminfo-mini-app": "1.0.22", "@walmart/manager-approvals-miniapp": "0.0.40", "@walmart/moment-walmart": "1.0.4",
inbox version bump
inbox version bump
847a22129db28774b3b0896f3a8db4deafc9202b
--- ios/AllSpark/Info.plist @@ -59,31 +59,6 @@ <dict> <key>NSExceptionDomains</key> <dict> - <key>mqtt.ss.glb.us.walmart.net</key> - <dict> - <key>NSExceptionAllowsInsecureHTTPLoads</key> - <true /> - </dict> - <key>ptt-vernemq-teflon_lb.cloud.wal-mart.com</key> - <dict> - <key>NSExceptionAllowsInsecureHTTPLoads</key> - <true /> - </dict> - <key>teflon.ptt.walmart.com</key> - <dict> - <key>NSExceptionAllowsInsecureHTTPLoads</key> - <true /> - </dict> - <key>dv.ptt.walmart.com</key> - <dict> - <key>NSExceptionAllowsInsecureHTTPLoads</key> - <true /> - </dict> - <key>vmq.ss.glb-qa.torbit.walmart.net</key> - <dict> - <key>NSExceptionAllowsInsecureHTTPLoads</key> - <true /> - </dict> <key>i5.walmartimages.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key>
update info plist
update info plist
84543ab9330736d6e62304c7c44784bd11a78689
--- src/auth/ErrorScreen.tsx @@ -63,8 +63,7 @@ export const ErrorScreen: FC<any> = (props) => { <ScrollView contentContainerStyle={styles.errorScrollView}> <KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'position' : undefined} - enabled - keyboardVerticalOffset={Platform.OS === 'android' ? 60 : 100}> + enabled> <Subheader style={styles.errorMsg} testID='errorMessage'> {translate('ssoError.errorMsg')} </Subheader>
fixes for ios
fixes for ios
ce3bdd68344f5cfec7ff937d6b65edd96134f817
--- docs/CHANGELOG.md @@ -1,3 +1,11 @@ +# [3.12.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.11.0...v3.12.0) (2025-12-20) + + +### Features + +* **ui:** update roster mini app version ([161b8c1](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/161b8c1affea262db61a9c400c18610608454c88)) +* **ui:** update roster mini app version ([e9456ee](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e9456eee601889cbf0800ca33b00377a0867a4f7)) + # [3.11.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.10.0...v3.11.0) (2025-12-19) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.11.0", + "version": "3.12.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.12.0 [skip ci]
chore(release): 3.12.0 [skip ci] # [3.12.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.11.0...v3.12.0) (2025-12-20) ### Features * **ui:** update roster mini app version ([161b8c1](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/161b8c1affea262db61a9c400c18610608454c88)) * **ui:** update roster mini app version ([e9456ee](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e9456eee601889cbf0800ca33b00377a0867a4f7))
466ccc54f2432025ed4ad8ae73a6ee957205aac7
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -497,7 +497,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 212ACBF9F6EA1B3866D5D388 /* Pods-AllSpark.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; @@ -537,7 +537,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 18C7AF990A657BA8B527E5F6 /* Pods-AllSpark.release.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; --- ios/AllSpark/Info.plist @@ -106,7 +106,7 @@ <string>remote-notification</string> </array> <key>UILaunchStoryboardName</key> - <string>LaunchScreen-Beta</string> + <string>LaunchScreen-Dev</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string>
setting environment to dev for pr.
setting environment to dev for pr.
ed85c2844bcad3f2a0335590988beb3bf65326c5
--- example/package-lock.json @@ -11,11 +11,10 @@ "dependencies": { "@react-navigation/bottom-tabs": "^6.2.0", "@react-navigation/drawer": "^6.6.3", - "@walmart/allspark-foundation": "^5.0.0-alpha.32", + "@walmart/allspark-foundation": "^5.0.0-beta.1", "react": "18.2.0", "react-native": "0.72.4", - "react-native-get-random-values": "1.9.0", - "react-native-modalfy": "^3.5.2" + "react-native-get-random-values": "1.9.0" }, "devDependencies": { "@babel/core": "^7.22.10", @@ -6697,9 +6696,9 @@ } }, "node_modules/@walmart/allspark-foundation": { - "version": "5.0.0-alpha.32", - "resolved": "https://npme.walmart.com/@walmart/allspark-foundation/-/allspark-foundation-5.0.0-alpha.32.tgz", - "integrity": "sha512-qCRRzv8VzuchKwTlC2NKGrRBLGk2rxqLwHJRJd99eZXZQN1ufSPWlVP0uDcpfX+6RGKkHNwn2OVpeI04X6zJpQ==", + "version": "5.0.0-beta.1", + "resolved": "https://npme.walmart.com/@walmart/allspark-foundation/-/allspark-foundation-5.0.0-beta.1.tgz", + "integrity": "sha512-PwkpMiutoh+kcJI0scGXKZ0Olpwi8Q7nE53sjCps5AKLpJSimEC7Et9kAC9AKOoWjAbtfuvcMplS8NqdP1jOOg==", "dependencies": { "@apollo/client": "^3.7.14", "@graphql-codegen/cli": "^2.16.3", @@ -6709,7 +6708,7 @@ "@graphql-codegen/typescript-react-apollo": "^3.3.7", "@lifeomic/axios-fetch": "3.0.1", "@reduxjs/toolkit": "^1.9.5", - "@walmart/allspark-utils": "^5.0.0-alpha.32", + "@walmart/allspark-utils": "^5.0.0-beta.1", "@walmart/gtp-shared-components": "^2.0.2", "axios": "~1.2.4", "crypto-js": "~4.1.1", @@ -6718,7 +6717,7 @@ "lodash": "~4.17.21", "namecase": "^1.1.2", "react-i18next": "^12.0.0", - "react-native-modalfy": "^3.3.3", + "react-native-modalfy": "^3.5.2", "react-redux": "^8.0.5", "redux": "^4.2.0", "redux-saga": "^1.2.2" @@ -6750,9 +6749,9 @@ } }, "node_modules/@walmart/allspark-utils": { - "version": "5.0.0-alpha.32", - "resolved": "https://npme.walmart.com/@walmart/allspark-utils/-/allspark-utils-5.0.0-alpha.32.tgz", - "integrity": "sha512-UNgGSjDxBsRabPAq1MNEqY0sC5dmj7yiPA6gl0re2GXwU/OUEu1JXcwRvWMdNmrU0xfPms7VgnxOMAGqE6A9EQ==", + "version": "5.0.0-beta.1", + "resolved": "https://npme.walmart.com/@walmart/allspark-utils/-/allspark-utils-5.0.0-beta.1.tgz", + "integrity": "sha512-GcK1K7Vgtmo6H54dau+IkXfg93Zsn5TaK0FHQKdxo8Gn1cQfWb0rzC8gTeHoKMg8lG3fm60Xj08cemiXOER/lQ==", "license": "ISC", "dependencies": { "crypto-js": "~4.1.1", --- example/package.json @@ -13,11 +13,10 @@ "dependencies": { "@react-navigation/bottom-tabs": "^6.2.0", "@react-navigation/drawer": "^6.6.3", - "@walmart/allspark-foundation": "^5.0.0-alpha.32", + "@walmart/allspark-foundation": "^5.0.0-beta.1", "react": "18.2.0", "react-native": "0.72.4", - "react-native-get-random-values": "1.9.0", - "react-native-modalfy": "^3.5.2" + "react-native-get-random-values": "1.9.0" }, "devDependencies": { "@babel/core": "^7.22.10", --- example/src/core/home.tsx @@ -7,8 +7,7 @@ import {AuthActionCreators} from '@walmart/allspark-foundation/Auth'; import {useContainerService} from '@walmart/allspark-foundation/Container'; import {AllsparkNotificationClient} from '@walmart/allspark-foundation/Notification'; import {useAllsparkDrawer} from '@walmart/allspark-foundation/Elements'; -import {useNavigation} from '@react-navigation/native'; -import {AllsparkNavigation} from '@walmart/allspark-foundation/Navigation'; +import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; export function HomeScreen() { const dispatch = useDispatch(); @@ -45,7 +44,7 @@ export function HomeScreen() { variant="primary" UNSAFE_style={{marginBottom: 10}} onPress={() => - AllsparkNavigation.navigate('feature1.stack', { + AllsparkNavigationClient.navigate('feature1.stack', { screen: 'nestedScreen1', }) }> @@ -54,7 +53,7 @@ export function HomeScreen() { <Button variant="primary" UNSAFE_style={{marginBottom: 10}} - onPress={() => AllsparkNavigation.navigate('feature2.home')}> + onPress={() => AllsparkNavigationClient.navigate('feature2.home')}> Open Feature 2 </Button> <Button --- example/src/core/index.tsx @@ -10,7 +10,7 @@ import {createBottomTabNavigator} from '@react-navigation/bottom-tabs'; import {AllsparkFeatureManager} from '@walmart/allspark-foundation'; import { - AllsparkNavigation, + AllsparkNavigationClient, DrawerButton, Header, } from '@walmart/allspark-foundation/Navigation'; @@ -134,7 +134,7 @@ const Navigation = () => { const drawer = useAllsparkDrawer(); useEffect(() => { - AllsparkNavigation.setNavigationResolvers({ + AllsparkNavigationClient.setNavigationResolvers({ feature1: (name, params) => ({ screen: 'container.tab1', params: { --- example/src/index.ts @@ -1,11 +1,20 @@ +import {AllsparkFeatureRunner} from '@walmart/allspark-foundation/FeatureRunner'; import {TestContainer} from './container'; import Feature1 from './feature1'; import Feature2 from './feature2'; -export const Feature1Standalone = TestContainer.createFeatureRunner(Feature1, { - env: 'dev', -}); +export const Feature1Standalone = new AllsparkFeatureRunner( + TestContainer, + Feature1, + { + env: 'dev', + }, +); -export const Feature2Standalone = TestContainer.createFeatureRunner(Feature2, { - env: 'dev', -}); +export const Feature2Standalone = new AllsparkFeatureRunner( + TestContainer, + Feature2, + { + env: 'dev', + }, +);
chore: example update
chore: example update
ca4cb8337411861627a8f84e321b72ca235840da
--- package.json @@ -147,7 +147,7 @@ "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", "@walmart/allspark-foundation": "6.25.0", - "@walmart/allspark-foundation-hub": "1.2.0", + "@walmart/allspark-foundation-hub": "1.2.3", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-utils": "~6.5.0", @@ -270,7 +270,7 @@ "pre-push": "run-p solidarity coverage" } }, - "packageManager": "yarn@4.1.1", + "packageManager": "yarn@4.4.0", "engines": { "node": ">=18" } --- targets/US/package.json @@ -78,7 +78,7 @@ "@walmart/allspark-authentication": "~6.4.1", "@walmart/allspark-cope-key-listener": "0.0.18", "@walmart/allspark-foundation": "6.25.0", - "@walmart/allspark-foundation-hub": "1.2.0", + "@walmart/allspark-foundation-hub": "1.2.3", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -5966,104 +5966,27 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.2.0": - version: 1.2.0 - resolution: "@walmart/allspark-foundation-hub@npm:1.2.0" +"@walmart/allspark-foundation-hub@npm:1.2.3": + version: 1.2.3 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.3" dependencies: - "@apollo/client": "npm:^3.8.6" - "@graphql-codegen/cli": "npm:^5.0.0" - "@graphql-codegen/near-operation-file-preset": "npm:^2.5.0" - "@graphql-codegen/typescript": "npm:^4.0.1" - "@graphql-codegen/typescript-operations": "npm:^4.0.1" - "@graphql-codegen/typescript-react-apollo": "npm:^4.1.0" "@reduxjs/toolkit": "npm:^1.9.7" - "@types/node-fetch": "npm:^2.6.9" - axios: "npm:~1.6.0" - axios-cache-interceptor: "npm:^1.3.2" - crypto-js: "npm:~4.2.0" - graphql: "npm:^16.8.1" - i18next: "npm:^23.6.0" - json-to-pretty-yaml: "npm:^1.2.2" lodash: "npm:~4.17.21" - namecase: "npm:^1.1.2" - react-hook-form: "npm:^7.38.0" - react-i18next: "npm:^13.3.1" - react-native-modalfy: "npm:^3.5.2" react-redux: "npm:^8.1.3" - redux: "npm:^4.2.1" - redux-saga: "npm:^1.2.3" - typed-redux-saga: "npm:^1.5.0" peerDependencies: - "@react-native-async-storage/async-storage": "*" - "@react-native-community/datetimepicker": "*" - "@react-native-community/netinfo": 11.x - "@react-native-firebase/analytics": 17.x - "@react-native-firebase/app": 17.x - "@react-native-picker/picker": "*" - "@react-navigation/drawer": 6.x "@react-navigation/native": 6.x - "@react-navigation/stack": 6.x - "@walmart/allspark-foundation": "*" - "@walmart/allspark-graphql-client": ">=6" - "@walmart/allspark-http-client": ">=6" - "@walmart/allspark-utils": "*" - "@walmart/core-services": ">=6" - "@walmart/core-utils": ">=6" - "@walmart/functional-components": ">=6" + "@walmart/allspark-foundation": "workspace:^" + "@walmart/allspark-utils": "workspace:^" "@walmart/gtp-shared-components": ">=2" - "@walmart/me-at-walmart-athena-queries": "*" - "@walmart/react-native-env": ">=6" - "@walmart/react-native-scanner-3.0": ">=0.6.3" - "@walmart/react-native-shared-navigation": ">=6" - "@walmart/react-native-sumo-sdk": ^2.7.0 - "@walmart/react-native-wm-network": ">=6" - "@walmart/react-native-wm-notification": ">=6" - "@walmart/react-native-wm-telemetry": ">=6" - "@walmart/redux-store": ">=6" + "@walmart/me-at-walmart-athena-queries": "workspace:^" react: "*" react-native: "*" - react-native-apollo-devtools-client: "*" - react-native-device-info: "*" - react-native-drop-shadow: "*" - react-native-flipper: "*" - react-native-gesture-handler: 2.x - react-native-get-random-values: 1.x - react-native-permissions: 3.x - react-native-reanimated: 3.x react-native-safe-area-context: 4.x - react-native-screens: 3.x - peerDependenciesMeta: - "@walmart/allspark-graphql-client": - optional: true - "@walmart/allspark-http-client": - optional: true - "@walmart/core-services": - optional: true - "@walmart/core-utils": - optional: true - "@walmart/functional-components": - optional: true - "@walmart/react-native-env": - optional: true - "@walmart/react-native-shared-navigation": - optional: true - "@walmart/react-native-wm-network": - optional: true - "@walmart/react-native-wm-notification": - optional: true - "@walmart/react-native-wm-telemetry": - optional: true - "@walmart/redux-store": - optional: true - react-native-apollo-devtools-client: - optional: true - react-native-flipper: - optional: true bin: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/181b816f7327b326a2ed3d34c738f5fb2deee7033932cd169a82851bc0869223d7c69d8353cfa819ecc30c7549b69b17fcafff8f9af2e1203fe7299c862f5bb1 + checksum: 10c0/4f46fca2539ca91d38a404bdbd5fbb68ae189fdc35a67b63619d2507e2c71cfd2c7652bebee45edfb1dd779a01b2c72ecde7959154eb2fdf620dd4e72bcfd0af languageName: node linkType: hard @@ -7363,7 +7286,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.0" + "@walmart/allspark-foundation-hub": "npm:1.2.3" "@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 review comments
Update review comments
f31796c7c76fa4f9fcd70027314950e431e3eacc
--- package-lock.json @@ -92,7 +92,7 @@ "@walmart/schedule-mini-app": "0.93.0", "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.26.2", - "@walmart/taskit-mini-app": "2.57.5", + "@walmart/taskit-mini-app": "2.57.6", "@walmart/time-clock-mini-app": "2.338.1", "@walmart/topstock-mini-app": "1.7.1", "@walmart/ui-components": "1.15.9", @@ -9843,9 +9843,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "2.57.5", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.57.5.tgz", - "integrity": "sha512-CxW/4PCtmxnFE+DLbhcesxZrsd2xifVNr1fUBKGK8WRXMYWPXX7OOW+A8fVoErwzsxUIbztl/PHDAhvT9ah/wg==", + "version": "2.57.6", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.57.6.tgz", + "integrity": "sha512-qy90YQKvjMfQVXY05iykF82KqlpsJt+6JIBH739b3DjW9pTHPjglgL8RimeS3iQZijokHzT5b9FhyXxFjuR6Zg==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -9875,12 +9875,6 @@ "big-integer": "^1.6.48" } }, - "node_modules/@walmart/texting-mini-app": { - "version": "2.1.5", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.1.5.tgz", - "integrity": "sha512-2nKMhz2s8u4i3fjkrp6LLuSYr0njLx6YzSUxjijtMoLrnWEYAjP4Madu8bqitrdynx0AqR+HhC31Ly9SeNm+hg==", - "hasInstallScript": true - }, "node_modules/@walmart/time-clock-mini-app": { "version": "2.338.1", "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.338.1.tgz", @@ -33536,9 +33530,9 @@ "integrity": "sha512-ja5c4CSJhbyaJJ9st8PECEOHSBhBfBRM2nnVpwTY9RmS8Ta9GYuDa5eCol8DUpOfbkTod+vsgBBNSQUqEnc7SQ==" }, "@walmart/taskit-mini-app": { - "version": "2.57.5", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.57.5.tgz", - "integrity": "sha512-CxW/4PCtmxnFE+DLbhcesxZrsd2xifVNr1fUBKGK8WRXMYWPXX7OOW+A8fVoErwzsxUIbztl/PHDAhvT9ah/wg==" + "version": "2.57.6", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.57.6.tgz", + "integrity": "sha512-qy90YQKvjMfQVXY05iykF82KqlpsJt+6JIBH739b3DjW9pTHPjglgL8RimeS3iQZijokHzT5b9FhyXxFjuR6Zg==" }, "@walmart/tcnumber": { "version": "2.3.3", @@ -33548,11 +33542,6 @@ "big-integer": "^1.6.48" } }, - "@walmart/texting-mini-app": { - "version": "2.1.5", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.1.5.tgz", - "integrity": "sha512-2nKMhz2s8u4i3fjkrp6LLuSYr0njLx6YzSUxjijtMoLrnWEYAjP4Madu8bqitrdynx0AqR+HhC31Ly9SeNm+hg==" - }, "@walmart/time-clock-mini-app": { "version": "2.338.1", "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.338.1.tgz", --- package.json @@ -133,7 +133,7 @@ "@walmart/schedule-mini-app": "0.93.0", "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.26.2", - "@walmart/taskit-mini-app": "2.57.5", + "@walmart/taskit-mini-app": "2.57.6", "@walmart/time-clock-mini-app": "2.338.1", "@walmart/topstock-mini-app": "1.7.1", "@walmart/ui-components": "1.15.9", --- patches/react-native-vision-camera+3.7.1.patch @@ -0,0 +1,58 @@ +diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView+TakePhoto.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView+TakePhoto.kt +index 88c085f..0d4c711 100644 +--- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView+TakePhoto.kt ++++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView+TakePhoto.kt +@@ -7,6 +7,7 @@ import android.graphics.BitmapFactory + import android.graphics.ImageFormat + import android.graphics.Matrix + import android.hardware.camera2.* ++import android.media.AudioManager + import android.util.Log + import com.facebook.react.bridge.Arguments + import com.facebook.react.bridge.ReadableMap +@@ -30,7 +31,12 @@ suspend fun CameraView.takePhoto(optionsMap: ReadableMap): WritableMap { + val flash = options["flash"] as? String ?: "off" + val enableAutoRedEyeReduction = options["enableAutoRedEyeReduction"] == true + val enableAutoStabilization = options["enableAutoStabilization"] == true +- val enableShutterSound = options["enableShutterSound"] as? Boolean ?: true ++ var enableShutterSound = options["enableShutterSound"] as? Boolean ?: true ++ ++ val canPlaySound = audioManager.ringerMode == AudioManager.RINGER_MODE_NORMAL ++ if (!canPlaySound) { ++ enableShutterSound = false ++ } + + val flashMode = Flash.fromUnionValue(flash) + val qualityPrioritizationMode = QualityPrioritization.fromUnionValue(qualityPrioritization) +diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView.kt +index 4d67098..827c489 100644 +--- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView.kt ++++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView.kt +@@ -3,6 +3,7 @@ package com.mrousavy.camera + import android.annotation.SuppressLint + import android.content.Context + import android.hardware.camera2.CameraManager ++import android.media.AudioManager + import android.util.Log + import android.view.ScaleGestureDetector + import android.widget.FrameLayout +@@ -89,6 +90,7 @@ class CameraView(context: Context) : + // private properties + private var isMounted = false + internal val cameraManager = context.getSystemService(Context.CAMERA_SERVICE) as CameraManager ++ internal val audioManager = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager + + // session + internal val cameraSession: CameraSession +diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/CameraSession.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/CameraSession.kt +index f9b3228..a5b2dc6 100644 +--- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/CameraSession.kt ++++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/CameraSession.kt +@@ -14,6 +14,7 @@ import android.hardware.camera2.CaptureRequest + import android.hardware.camera2.CaptureResult + import android.hardware.camera2.TotalCaptureResult + import android.hardware.camera2.params.MeteringRectangle ++import android.media.AudioManager + import android.media.Image + import android.media.ImageReader + import android.os.Build \ No newline at end of file
Updated taskit version
Updated taskit version
278dfd145dde7ccab9928bb3bb0b56b9dd1657dc
--- packages/allspark-graphql-client/package.json @@ -33,6 +33,7 @@ "dependencies": { "@apollo/client": "^3.7.3", "@lifeomic/axios-fetch": "3.0.1", + "@walmart/allspark-http-client": "~2.1.0", "crypto-js": "^3.3.0", "graphql": "^16.6.0" }, @@ -43,7 +44,6 @@ "@graphql-codegen/typescript-operations": "^2.5.10", "@graphql-codegen/typescript-react-apollo": "^3.3.7", "@types/crypto-js": "^3.1.43", - "@walmart/core-services": "~1.4.13", "json-to-pretty-yaml": "^1.2.2", "react": "^18.2.0" }, @@ -53,7 +53,6 @@ "@graphql-codegen/typescript": "^2.8.7", "@graphql-codegen/typescript-operations": "^2.5.10", "@graphql-codegen/typescript-react-apollo": "^3.3.7", - "@walmart/core-services": "~1.4.13", "json-to-pretty-yaml": "^1.2.2", "react": "^18.2.0" } --- packages/allspark-graphql-client/src/apollo/provider.tsx @@ -1,13 +1,13 @@ import React, { PropsWithChildren, useMemo } from 'react'; import { ApolloClient, - InMemoryCache, ApolloProvider, HttpLink, from, ApolloLink, - InMemoryCacheConfig, HttpOptions, + ApolloCache, + NormalizedCacheObject, } from '@apollo/client'; import { createPersistedQueryLink, @@ -23,7 +23,7 @@ export const AllsparkGraphQLProvider = ( props: PropsWithChildren<{ httpClient: AxiosInstance; httpConfig?: Omit<HttpOptions, 'fetch'>; - cacheConfig?: InMemoryCacheConfig; + cache: ApolloCache<NormalizedCacheObject>; persistedQueryConfig?: Omit< PersistedQueryLink.Options, 'generateHash' | 'sha256' @@ -32,9 +32,9 @@ export const AllsparkGraphQLProvider = ( }> ) => { const { + cache, httpClient, httpConfig = {}, - cacheConfig, persistedQueryConfig = {}, links = [], children, @@ -42,7 +42,7 @@ export const AllsparkGraphQLProvider = ( const client = useMemo(() => { const newClient = new ApolloClient({ - cache: new InMemoryCache(cacheConfig), + cache, link: from([ createPersistedQueryLink({ ...persistedQueryConfig, --- packages/allspark-graphql-client/src/apollo/utils.ts @@ -1,8 +1,5 @@ import { MutationHookOptions, QueryHookOptions } from '@apollo/client'; -import { - HttpClientInstance, - useHttpClient, -} from '@walmart/core-services/HttpClient'; +import { HttpClient, useHttpClient } from '@walmart/allspark-http-client'; import { useMemo } from 'react'; export { gql } from '@apollo/client'; @@ -24,7 +21,7 @@ const NON_HEADER_KEYS = [ ] as const; export const getHttpClientHeaders = ( - httpClient: HttpClientInstance, + httpClient: HttpClient, method: string ) => { const clientHeaders = { --- packages/allspark-http-client/package.json @@ -22,7 +22,7 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "axios": "~1.2.1" + "axios": "~1.2.4" }, "devDependencies": { "@walmart/allspark-utils": "^1.1.0",
feat: add http client connection. update provider to add cache prop
feat: add http client connection. update provider to add cache prop
c4c1a1392052e734d43a7087faa985bef5335f6c
--- __tests__/impersonation/impersonationScreenTest.tsx @@ -25,11 +25,11 @@ describe('ImpersonationScreen', () => { impersonateFormFuncs.onImpersonationStarted(data); await cacheImpersonationData(data.impersonatee); - expect(ImpersonationStorage.set).toHaveBeenCalledWith('impersonation', JSON.stringify(data.impersonatee)); + expect(ImpersonationStorage.set).toHaveBeenCalledWith('impersonation_dev', JSON.stringify(data.impersonatee)); impersonateFormFuncs.onImpersonationExited(data); await clearImpersonationCache() - expect(ImpersonationStorage.remove).toHaveBeenCalledWith('impersonation'); + expect(ImpersonationStorage.remove).toHaveBeenCalledWith('impersonation_dev'); }); it('test error logs for the component', () => { const component = render(<ImpersonationScreen {...props} />); --- __tests__/impersonation/utilsTest.ts @@ -36,7 +36,7 @@ describe('utils', () => { it('cache impersonation data succesfully', async () => { await cacheImpersonationData({userid: 'jdoe123'}); expect(ImpersonationStorage.set).toHaveBeenCalledWith( - 'impersonation', + 'impersonation_dev', '{"userid":"jdoe123"}', ); expect( @@ -62,7 +62,7 @@ describe('utils', () => { it('clear ImpersonationCache succesfully', async () => { (ImpersonationStorage.remove as jest.Mock).mockResolvedValue(true); await clearImpersonationCache(); - expect(ImpersonationStorage.remove).toHaveBeenCalledWith('impersonation'); + expect(ImpersonationStorage.remove).toHaveBeenCalledWith('impersonation_dev'); expect( LoggerService.createFeatureInstance('impersonation-mini-app').info, ).toHaveBeenCalledWith( @@ -87,7 +87,7 @@ describe('utils', () => { it('get ImpersonationCache succesfully', async () => { (ImpersonationStorage.get as jest.Mock).mockResolvedValue('cache'); const result = await getImpersonationCache(); - expect(ImpersonationStorage.get).toHaveBeenCalledWith('impersonation'); + expect(ImpersonationStorage.get).toHaveBeenCalledWith('impersonation_dev'); expect(result).toEqual('cache'); }); it('logs error on failure', async () => { --- src/impersonation/utils.ts @@ -3,8 +3,10 @@ import {AllsparkTranslationClient} from '@walmart/allspark-foundation/Translatio import {ImpersonationStorage} from '../core/LocalStorage'; import {ImpersonationLogger} from '../core/Logger'; +import {AllsparkEnvironment} from '@walmart/allspark-foundation'; -export const IMPERSONATION_CACHE_KEY = 'impersonation'; +const env = AllsparkEnvironment.getCurrent().env; +export const IMPERSONATION_CACHE_KEY = `impersonation_${env}`; export const cacheImpersonationData = async (impersonatee: any) => { try {
fix: impersonation persistence bug (#4488)
fix: impersonation persistence bug (#4488) * fix(impersonation): add env to impersonation cache key and update tests * chore(impersonation): reduce duplication
106b9793c8e74a7231ddf184a2bec01cae89526b
--- packages/allspark-utils/src/RenderGuard.tsx @@ -19,24 +19,57 @@ import { AtLeastOne } from './types'; * ); */ export const RenderGuard = ( - props: PropsWithChildren< - AtLeastOne<{ - preRender: () => Promise<void>; - preRenderHook: () => boolean; - }> - > + props: PropsWithChildren<{ + preRender: () => Promise<void>; + onUnmount?: () => void; + }> ) => { - const { children, preRender, preRenderHook: usePreRender } = props; + const { children, preRender = Promise.resolve, onUnmount } = props; const { value: ready, toggleOn } = useToggleState(false); // Handle pre render promise, toggle on when complete useEffect(() => { - preRender?.().then(() => toggleOn()); + preRender().then(() => toggleOn()); + return () => onUnmount?.(); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); + + return ready ? <>{children}</> : null; +}; + +/** + * A component that guards the rendering of its children until a pre-render hook returns true. + * @param props.preRenderHook - The pre-render hook that returns a boolean. + * @returns The rendered component or null if not ready. + * + * @example + * const preRenderHook = () => { + * // do something before render + * return true; + * }; + * + * return ( + * <RenderHookGuard preRenderHook={preRenderHook}> + * <div>Rendered</div> + * </RenderHookGuard> + * ); + */ +export const RenderHookGuard = ( + props: PropsWithChildren<{ + preRenderHook: () => boolean; + onUnmount?: () => void; + }> +) => { + const { children, preRenderHook: usePreRender, onUnmount } = props; + const { value: ready, toggleOn } = useToggleState(false); + + useEffect(() => { + return () => onUnmount?.(); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); // Setup pre render hook - const complete = usePreRender?.(); + const complete = usePreRender(); // Toggle on when hook first returns true useEffect(() => { @@ -49,6 +82,35 @@ export const RenderGuard = ( return ready ? <>{children}</> : null; }; +/** + * Creates a render guard component with the given configuration. + * @param config - The configuration object for the render guard. + * @returns The render guard component. + * + * @example + * const preRender = async () => { + * // do something before render + * }; + * const preRenderHook = () => { + * // do something before render + * return true; + * }; + * + * const RenderGuard = createRenderGuard({ preRender }); + * const RenderHookGuard = createRenderGuard({ preRenderHook }); + * + * return ( + * <RenderGuard> + * <div>Rendered</div> + * </RenderGuard> + * ); + * + * return ( + * <RenderHookGuard> + * <div>Rendered</div> + * </RenderHookGuard> + * ); + */ export const createRenderGuard = ( config: AtLeastOne<{ preRender: () => Promise<void>; @@ -60,33 +122,16 @@ export const createRenderGuard = ( if (usePreRender) { return (props: PropsWithChildren<{}>) => { const { children } = props; - const { value: ready, toggleOn } = useToggleState(false); - - // Setup pre render hook - const complete = usePreRender?.(); - - // Toggle on when hook first returns true - useEffect(() => { - if (complete && !ready) { - toggleOn(); - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [complete]); - - return ready ? <>{children}</> : null; + return ( + <RenderHookGuard preRenderHook={usePreRender}> + {children} + </RenderHookGuard> + ); }; } return (props: PropsWithChildren<{}>) => { const { children } = props; - const { value: ready, toggleOn } = useToggleState(false); - - // Handle pre render promise, toggle on when complete - useEffect(() => { - preRender?.().then(() => toggleOn()); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); - - return ready ? <>{children}</> : null; + return <RenderGuard preRender={preRender}>{children}</RenderGuard>; }; }; --- packages/allspark-utils/src/hooks/useToggleState.ts @@ -21,7 +21,7 @@ export const useToggleState = (initialState: boolean) => { const toggleOff = () => setValue(false); - const toggle = () => (value ? toggleOff() : toggleOn()); + const toggle = () => setValue((prev) => !prev); return { value, toggleOn, toggleOff, toggle }; };
feat: move render guard hook support to new component. add unmount callback
feat: move render guard hook support to new component. add unmount callback
aa6575bf25210ef218d0752b7003e55a84b4f9c7
--- ios/BuildSupport/build-archive.sh @@ -17,7 +17,6 @@ xcodebuild -workspace ${XC_WORKSPACE} \ -scheme ${XC_SCHEME} \ -sdk iphoneos \ -configuration ${XCODE_CONFIG} \ - -UseModernBuildSystem=NO \ archive \ -archivePath ${XCODE_ARCHIVE_DIR} --- ios/Podfile.lock @@ -387,18 +387,18 @@ PODS: - React - RNDeviceInfo (5.6.5): - React - - RNFBAnalytics (7.6.1): + - RNFBAnalytics (7.6.2): - Firebase/Analytics (~> 6.30.0) - React - RNFBApp - - RNFBApp (8.4.1): + - RNFBApp (8.4.2): - Firebase/CoreOnly (~> 6.30.0) - React - - RNFBCrashlytics (8.4.2): + - RNFBCrashlytics (8.4.4): - Firebase/Crashlytics (~> 6.30.0) - React - RNFBApp - - RNFBPerf (7.4.2): + - RNFBPerf (7.4.3): - Firebase/Performance (~> 6.30.0) - React - RNFBApp @@ -671,10 +671,10 @@ SPEC CHECKSUMS: RNCAsyncStorage: 2a692bcb9b69b76a2f1a95f33db057129700af64 RNCMaskedView: 5a8ec07677aa885546a0d98da336457e2bea557f RNDeviceInfo: c5f8f3a456adcbba405ace475254b08febc4c095 - RNFBAnalytics: ffd9149d1fe0ecee0f2571b234d53c25349b9899 - RNFBApp: e4321cad5dd23b43b3b4f0ca060300b9f85cb7a4 - RNFBCrashlytics: accacec7be2426085b715b93cdb7b0a1308eb8eb - RNFBPerf: 070e0df228f79b2d0bd5b1815e17ca79bf753273 + RNFBAnalytics: 20564db4cfd317c304fe5a8e5d840f8c9d105aaa + RNFBApp: 373cce42559cc7a9a42afc876746e3946de3e32e + RNFBCrashlytics: 834057016b34fa49e3eef028a13e35f48840c78c + RNFBPerf: cf6720eb30e6d363627c46b87a03eb9ba59fee14 RNFBRemoteConfig: 7414f1463bb8ed413f6cbd7df422ae2484ae6a04 RNGestureHandler: 7a5833d0f788dbd107fbb913e09aa0c1ff333c39 RNReanimated: 89f5e0a04d1dd52fbf27e7e7030d8f80a646a3fc --- package-lock.json @@ -1493,53 +1493,6 @@ "react-native-iphone-x-helper": "^1.2.1" } }, - "@redux-saga/core": { - "version": "1.1.3", - "resolved": "https://npme.walmart.com/@redux-saga/core/-/core-1.1.3.tgz", - "integrity": "sha512-8tInBftak8TPzE6X13ABmEtRJGjtK17w7VUs7qV17S8hCO5S3+aUTWZ/DBsBJPdE8Z5jOPwYALyvofgq1Ws+kg==", - "requires": { - "@babel/runtime": "^7.6.3", - "@redux-saga/deferred": "^1.1.2", - "@redux-saga/delay-p": "^1.1.2", - "@redux-saga/is": "^1.1.2", - "@redux-saga/symbols": "^1.1.2", - "@redux-saga/types": "^1.1.0", - "redux": "^4.0.4", - "typescript-tuple": "^2.2.1" - } - }, - "@redux-saga/deferred": { - "version": "1.1.2", - "resolved": "https://npme.walmart.com/@redux-saga/deferred/-/deferred-1.1.2.tgz", - "integrity": "sha512-908rDLHFN2UUzt2jb4uOzj6afpjgJe3MjICaUNO3bvkV/kN/cNeI9PMr8BsFXB/MR8WTAZQq/PlTq8Kww3TBSQ==" - }, - "@redux-saga/delay-p": { - "version": "1.1.2", - "resolved": "https://npme.walmart.com/@redux-saga/delay-p/-/delay-p-1.1.2.tgz", - "integrity": "sha512-ojc+1IoC6OP65Ts5+ZHbEYdrohmIw1j9P7HS9MOJezqMYtCDgpkoqB5enAAZrNtnbSL6gVCWPHaoaTY5KeO0/g==", - "requires": { - "@redux-saga/symbols": "^1.1.2" - } - }, - "@redux-saga/is": { - "version": "1.1.2", - "resolved": "https://npme.walmart.com/@redux-saga/is/-/is-1.1.2.tgz", - "integrity": "sha512-OLbunKVsCVNTKEf2cH4TYyNbbPgvmZ52iaxBD4I1fTif4+MTXMa4/Z07L83zW/hTCXwpSZvXogqMqLfex2Tg6w==", - "requires": { - "@redux-saga/symbols": "^1.1.2", - "@redux-saga/types": "^1.1.0" - } - }, - "@redux-saga/symbols": { - "version": "1.1.2", - "resolved": "https://npme.walmart.com/@redux-saga/symbols/-/symbols-1.1.2.tgz", - "integrity": "sha512-EfdGnF423glv3uMwLsGAtE6bg+R9MdqlHEzExnfagXPrIiuxwr3bdiAwz3gi+PsrQ3yBlaBpfGLtDG8rf3LgQQ==" - }, - "@redux-saga/types": { - "version": "1.1.0", - "resolved": "https://npme.walmart.com/@redux-saga/types/-/types-1.1.0.tgz", - "integrity": "sha512-afmTuJrylUU/0OtqzaRkbyYFFNgCF73Bvel/sw90pvGrWIZ+vyoIJqA6eMSoA6+nb443kTmulmBtC9NerXboNg==" - }, "@sinonjs/commons": { "version": "1.8.1", "resolved": "https://npme.walmart.com/@sinonjs/commons/-/commons-1.8.1.tgz", @@ -1887,9 +1840,9 @@ "integrity": "sha512-mSdBGR2GjE0zowLmyi+pxJIA5CDvC0NZczKk3yqfhKghON4M+2K+vpm224WklY7+UpvlFtwr/CzNsfIYyNnW1w==" }, "@walmart/redux-store": { - "version": "1.0.1", - "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-1.0.1.tgz", - "integrity": "sha512-kNID1GH1es/t3FweJ3mdf1eB0WWiiqYZNFqphR0IIjJKALEMzZ1Yazwfh7LGduM2ljV5l0A9I1Z34FB5JYwQHA==" + "version": "0.1.1", + "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-0.1.1.tgz", + "integrity": "sha512-BBwGaJpm8USmZBR4u24osa6amtvp0XDPzsyWsqwYQQ6pykR4SFFsVlAcl0mHTgb4eh5MEAGQSQ/6SMVc5BE+tQ==" }, "abab": { "version": "2.0.4", @@ -8926,14 +8879,6 @@ "resolved": "https://npme.walmart.com/redux-devtools-extension/-/redux-devtools-extension-2.13.8.tgz", "integrity": "sha512-8qlpooP2QqPtZHQZRhx3x3OP5skEV1py/zUdMY28WNAocbafxdG2tRD1MWE7sp8obGMNYuLWanhhQ7EQvT1FBg==" }, - "redux-saga": { - "version": "1.1.3", - "resolved": "https://npme.walmart.com/redux-saga/-/redux-saga-1.1.3.tgz", - "integrity": "sha512-RkSn/z0mwaSa5/xH/hQLo8gNf4tlvT18qXDNvedihLcfzh+jMchDgaariQoehCpgRltEm4zHKJyINEz6aqswTw==", - "requires": { - "@redux-saga/core": "^1.1.3" - } - }, "redux-thunk": { "version": "2.3.0", "resolved": "https://npme.walmart.com/redux-thunk/-/redux-thunk-2.3.0.tgz", @@ -10348,27 +10293,6 @@ "integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==", "dev": true }, - "typescript-compare": { - "version": "0.0.2", - "resolved": "https://npme.walmart.com/typescript-compare/-/typescript-compare-0.0.2.tgz", - "integrity": "sha512-8ja4j7pMHkfLJQO2/8tut7ub+J3Lw2S3061eJLFQcvs3tsmJKp8KG5NtpLn7KcY2w08edF74BSVN7qJS0U6oHA==", - "requires": { - "typescript-logic": "^0.0.0" - } - }, - "typescript-logic": { - "version": "0.0.0", - "resolved": "https://npme.walmart.com/typescript-logic/-/typescript-logic-0.0.0.tgz", - "integrity": "sha512-zXFars5LUkI3zP492ls0VskH3TtdeHCqu0i7/duGt60i5IGPIpAHE/DWo5FqJ6EjQ15YKXrt+AETjv60Dat34Q==" - }, - "typescript-tuple": { - "version": "2.2.1", - "resolved": "https://npme.walmart.com/typescript-tuple/-/typescript-tuple-2.2.1.tgz", - "integrity": "sha512-Zcr0lbt8z5ZdEzERHAMAniTiIKerFCMgd7yjq1fPnDJ43et/k9twIFQMUYff9k5oXcsQ0WpvFcgzK2ZKASoW6Q==", - "requires": { - "typescript-compare": "^0.0.2" - } - }, "ua-parser-js": { "version": "0.7.21", "resolved": "https://npme.walmart.com/ua-parser-js/-/ua-parser-js-0.7.21.tgz", --- package.json @@ -37,7 +37,7 @@ "@walmart/ask-sam-mini-app": "^0.3.1", "@walmart/gtp-shared-components": "^0.1.3", "@walmart/react-native-shared-navigation": "^0.2.0", - "@walmart/redux-store": "^1.0.1", + "@walmart/redux-store": "0.1.1", "intl": "^1.2.5", "lodash": "^4.17.20", "react": "16.13.1", @@ -65,7 +65,6 @@ "react-redux": "^7.2.1", "redux": "^4.0.5", "redux-devtools-extension": "^2.13.8", - "redux-saga": "^1.1.3", "redux-thunk": "^2.3.0", "rn-fetch-blob": "^0.12.0", "victory-native": "^35.0.1"
removed old build support from build-archive file for archiving.
removed old build support from build-archive file for archiving.
652988a45e9b5b8e2d6e16b03ba3e5559bb03654
--- .looper.multibranch.yml @@ -73,7 +73,6 @@ envs: ALLSPARK_CORE_GITHUB_URL: "https://gecgithub01.walmart.com/allspark/allspark-core" APPCENTER_DISTRIBUTE_DESTINATIONS: '*' - APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT: "allsparktesters" APPCENTER_OUT: "./ios/BuildSupport/appcenter_out.json" APPCENTER_OWNER_TYPE: 'organization' APPCENTER_OWNER_NAME: 'AllSpark-Me-Walmart' @@ -121,7 +120,7 @@ envs: buildTeflon: false teamsReleaseTypeIcon: "https://ih1.redbubble.net/image.1355946808.4705/flat,128x128,075,t.u1.jpg" teamsWebhookUrl: "https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/36aedf59babe497b8b4edd5920d0dd9f/f02e8323-deff-42c4-85df-613f84ca35ff" - APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT: "allsparktestersdevelop" + APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT: "allsparktestersfeature" develop: variables: @@ -547,7 +546,7 @@ flows: # @param APPCENTER_APP_NAME - AllSpark-Me-Walmart or AllSpark-Android # appcenter-upload: - - (name Uploading build to App Center) bundle exec fastlane submit_to_appcenter BUILD_OUTPUT:${buildOutput} APP_CENTER_GROUP:${APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT} + - (name Uploading build to App Center) bundle exec fastlane submit_to_appcenter BUILD_OUTPUT:${buildOutput} # sends success message to slack channel # --- fastlane/Fastfile @@ -59,7 +59,7 @@ lane :submit_to_appcenter do |options| if options[:BUILD_OUTPUT] appcenter_upload( file: options[:BUILD_OUTPUT], - destinations: options[:APP_CENTER_GROUP], + destinations: ENV['APPCENTER_DISTRIBUTION_GROUP_URL_SEGMENT'], release_notes: release_notes.join("\n\n"), # renders each line in a <p/> in App Center upload_build_only: true) end
updated group name
updated group name