commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
4bc65a9c77525be963fff97ac4386265d89d24d6
--- src/home/containers/HomeScreen/index.tsx @@ -5,7 +5,7 @@ import {StackNavigationProp} from '@react-navigation/stack'; import {ParamListBase} from '@react-navigation/native'; import LinearGradient from 'react-native-linear-gradient'; import moment from 'moment-timezone'; -import CodePush, { LocalPackage } from 'react-native-code-push'; +import CodePush, {LocalPackage} from 'react-native-code-push'; import {UserSelectors} from '@walmart/redux-store'; import {Body, colors} from '@walmart/gtp-shared-components'; @@ -88,11 +88,11 @@ export const HomeScreen: React.FC<Props> = () => { useEffect(() => { CodePush.getUpdateMetadata().then((update: LocalPackage | null) => { - if(update) { + if (update) { setCodePushLabel(update.label); } - }) - }) + }); + }); const onRefreshStart = (key: string) => { setRefreshingMap((prev) => ({
lint fix
lint fix
202c18ef023d107c2d7bc18ff6aed0b9b77d9418
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.11", + "version": "2.0.12", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.11", + "version": "2.0.12", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
9539897f0a546c8c84b36ce8e603182dc524c6f5
--- package.json @@ -116,7 +116,7 @@ "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.7", "@walmart/ims-print-services-ui": "2.23.0", - "@walmart/inbox-mini-app": "0.104.9", + "@walmart/inbox-mini-app": "0.104.1", "@walmart/invue-react-native-sdk": "0.1.26-alpha.14", "@walmart/iteminfo-mini-app": "8.7.2", "@walmart/learning-mini-app": "20.0.92", --- yarn.lock @@ -7973,9 +7973,9 @@ __metadata: languageName: node linkType: hard -"@walmart/inbox-mini-app@npm:0.104.9": - version: 0.104.9 - resolution: "@walmart/inbox-mini-app@npm:0.104.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.104.9.tgz" +"@walmart/inbox-mini-app@npm:0.104.1": + version: 0.104.1 + resolution: "@walmart/inbox-mini-app@npm:0.104.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.104.1.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/allspark-utils": ">=1.6.4" @@ -7986,7 +7986,7 @@ __metadata: "@walmart/onewalmart-miniapp": "*" "@walmart/schedule-mini-app": "*" "@walmart/walmart-fiscal-week": "*" - checksum: 10c0/9dd279638b7ae580deb85462b9bf70099d1f358f45297a5746ea7a86aadf653905e4077b0cf6232ed080d143e87374a847cfd9ad4d974888e981c24b870d10b7 + checksum: 10c0/2ce57e85f3a06b8b4983f0cc0eaa1cbdd1c8099d1eb4d442a733de4d2e64daebd8a9c8b7e78063879fe512a808309a19fbfe2c089becfdd63804c2eb2e10e2b5 languageName: node linkType: hard @@ -8357,7 +8357,7 @@ __metadata: "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.7" "@walmart/ims-print-services-ui": "npm:2.23.0" - "@walmart/inbox-mini-app": "npm:0.104.9" + "@walmart/inbox-mini-app": "npm:0.104.1" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.14" "@walmart/iteminfo-mini-app": "npm:8.7.2" "@walmart/learning-mini-app": "npm:20.0.92"
Revert "feat(onboarding): onboarded performance and pay notification in inbox" (#5122)
Revert "feat(onboarding): onboarded performance and pay notification in inbox" (#5122)
26a0763ed874d004ceb09a80bb870f7b4126fc45
--- .looper.multibranch.yml @@ -24,7 +24,7 @@ envs: ANDROID_BASE_PATH: targets/US/android branches: - - spec: feature/drop24 + - spec: feature/drop24-sidekick triggers: - manual: name: Publish Packages (Pre-Release)
chore: temp change of branch spec to create builds
chore: temp change of branch spec to create builds
fe318bb6d55dde429fc372c12d8f3723d2545c47
--- packages/allspark-foundation/__tests__/Site/saga.test.ts @@ -43,7 +43,6 @@ const sampleContact: Contact = { }, }; -// Sample data for Address const sampleAddress: Address = { addressLine1: '123 Main St', city: 'Anytown', @@ -54,26 +53,22 @@ const sampleAddress: Address = { postalCode: '12345', }; -// Sample data for Location const sampleLocation: Location = { latitude: 37.7749, longitude: -122.4194, address: sampleAddress, }; -// Sample data for OperatingHours const sampleOperatingHours: OperatingHours = { startTime: '09:00', endTime: '17:00', }; -// Sample data for SpecialHourType const sampleSpecialHourType: SpecialHourType = { code: 'HOL', description: 'Holiday', }; -// Sample data for SpecialHour const sampleSpecialHour: SpecialHour = { name: 'Christmas', type: sampleSpecialHourType, @@ -81,19 +76,16 @@ const sampleSpecialHour: SpecialHour = { operatingHours: sampleOperatingHours, }; -// Sample data for Language const sampleLanguage: Language = { code: 'EN', description: 'English', }; -// Sample data for Currency const sampleCurrency: Currency = { code: 'USD', description: 'US Dollar', }; -// Sample data for TimeZone const sampleTimeZone: TimeZone = { standard: 'PST', dstOffset: 3600, @@ -104,13 +96,11 @@ const sampleTimeZone: TimeZone = { dstobservable: true, }; -// Sample data for Division const sampleDivision: Division = { code: 'DIV01', description: 'Division 01', }; -// Sample data for StoreAlignment const sampleStoreAlignment: StoreAlignment = { segment: 'Retail', businessUnitOrgArea: 'North America',
code cleanup
code cleanup
45045e35bf75de554ead5945edd5f8b8e78fce3e
--- packages/allspark-foundation-hub/src/HubFeature/Hub/HubWidget/index.tsx @@ -47,15 +47,15 @@ export const HubWidget = ({ accessibilityRole='image' accessibilityLabel={`${moduleTitle} - ${iconName}`} /> - <Heading UNSAFE_style={styles.title} size='medium' testID='heading'> - {moduleTitle} - </Heading> - <TouchableOpacity onPress={() => AllsparkNavigationClient.navigate(routeName, routeParams) } > + <Heading UNSAFE_style={styles.title} size='medium' testID='heading'> + {moduleTitle} + </Heading> + <Icons.ChevronRightIcon size='medium' UNSAFE_style={styles.leftIcon}
Update the widget title navigation
Update the widget title navigation
a8b4a4fb6d7e2d869089f720c1e3e0d9c55dd40d
--- packages/roster-mini-app/__tests__/__mocks__/@walmart/allspark-foundation.js @@ -1,4 +1,4 @@ -import enUSJson from '../../../src/translations/locales/en-US.json'; +import enUSJson from '../../../src/Translations/locales/en-US.json'; export const mockLogger = { debug: jest.fn(), --- packages/roster-mini-app/__tests__/config/foundationConfig.test.ts @@ -3,7 +3,7 @@ import {FeatureTags} from '@walmart/me-at-walmart-common'; import {FEATURE_ID} from '../../src/common'; import rosterRedux from '../../src/redux'; import rosterScreens from '../../src/screens'; -import rosterTranslations from '../../src/translations'; +import rosterTranslations from '../../src/Translations'; import rosterListeners from '../../src/listeners'; import {rosterModals} from '../../src/modals'; --- packages/roster-mini-app/__tests__/translations/translations.test.ts @@ -13,7 +13,7 @@ import * as fs from 'fs'; import * as path from 'path'; -const LOCALES_DIR = path.join(__dirname, '../../src/translations/locales'); +const LOCALES_DIR = path.join(__dirname, '../../src/Translations/locales'); const SOURCE_LOCALE = 'en-US'; const TARGET_LOCALES = ['es-MX']; const ALL_LOCALES = [SOURCE_LOCALE, ...TARGET_LOCALES]; --- packages/roster-mini-app/scripts/README.md @@ -40,10 +40,10 @@ yarn wtp:onboard --dry-run Converts nested TypeScript translation objects to flat JSON format. **What it does:** -- Reads `src/translations/en-US.ts` and `es-MX.ts` +- Reads `src/Translations/en-US.ts` and `es-MX.ts` - Flattens nested objects to dot-notation keys - Sorts keys alphabetically -- Writes to `src/translations/locales/*.json` +- Writes to `src/Translations/locales/*.json` **Example transformation:** ```typescript @@ -102,7 +102,7 @@ Synchronizes translation keys across all locale files. Completes the migration by updating code to use JSON files. **What it does:** -- Updates `src/translations/index.ts` to import from JSON files +- Updates `src/Translations/index.ts` to import from JSON files - Creates type declaration for JSON imports - Removes old TypeScript translation files - Creates backup files (*.backup) @@ -116,7 +116,7 @@ Completes the migration by updating code to use JSON files. ## File Structure After Migration ``` -src/translations/ +src/Translations/ ├── index.ts # Updated to import JSON └── locales/ ├── en-US.json # WTP-compatible flat JSON @@ -130,9 +130,9 @@ src/translations/ 1. Restore from backup files: ```bash - mv src/translations/index.ts.backup src/translations/index.ts - mv src/translations/en-US.ts.backup src/translations/en-US.ts - mv src/translations/es-MX.ts.backup src/translations/es-MX.ts + mv src/Translations/index.ts.backup src/Translations/index.ts + mv src/Translations/en-US.ts.backup src/Translations/en-US.ts + mv src/Translations/es-MX.ts.backup src/Translations/es-MX.ts ``` 2. Re-run with `--no-cleanup`: --- packages/roster-mini-app/scripts/wtp-finalize.ts @@ -17,7 +17,7 @@ import * as path from 'path'; // Configuration // ============================================================================ -const TRANSLATIONS_DIR = path.join(__dirname, '../src/translations'); +const TRANSLATIONS_DIR = path.join(__dirname, '../src/Translations'); const LOCALES_DIR = path.join(TRANSLATIONS_DIR, 'locales'); const INDEX_FILE = path.join(TRANSLATIONS_DIR, 'index.ts'); const OLD_TS_FILES = ['en-US.ts', 'es-MX.ts']; --- packages/roster-mini-app/scripts/wtp-migrate.ts @@ -15,7 +15,7 @@ import * as path from 'path'; // Configuration // ============================================================================ -const TRANSLATIONS_DIR = path.join(__dirname, '../src/translations'); +const TRANSLATIONS_DIR = path.join(__dirname, '../src/Translations'); const LOCALES_DIR = path.join(TRANSLATIONS_DIR, 'locales'); const SUPPORTED_LOCALES = ['en-US', 'es-MX']; @@ -264,7 +264,7 @@ function migrateTranslations(): void { console.log('\n✅ Migration complete!\n'); console.log('Next steps:'); console.log(' 1. Run: yarn wtp:validate'); - console.log(' 2. Update src/translations/index.ts to import JSON files'); + console.log(' 2. Update src/Translations/index.ts to import JSON files'); console.log(' 3. Delete old .ts translation files'); console.log(' 4. Test build: yarn build\n'); } --- packages/roster-mini-app/scripts/wtp-sync.ts @@ -17,7 +17,7 @@ import * as path from 'path'; // Configuration // ============================================================================ -const LOCALES_DIR = path.join(__dirname, '../src/translations/locales'); +const LOCALES_DIR = path.join(__dirname, '../src/Translations/locales'); const SOURCE_LOCALE = 'en-US'; const TARGET_LOCALES = ['es-MX']; const PLACEHOLDER_PREFIX = '[NEEDS TRANSLATION] '; --- packages/roster-mini-app/scripts/wtp-validate.ts @@ -20,7 +20,7 @@ import * as path from 'path'; // Configuration // ============================================================================ -const LOCALES_DIR = path.join(__dirname, '../src/translations/locales'); +const LOCALES_DIR = path.join(__dirname, '../src/Translations/locales'); const SUPPORTED_LOCALES = ['en-US', 'es-MX']; const SOURCE_LOCALE = 'en-US'; --- packages/roster-mini-app/src/Translations/index.ts --- packages/roster-mini-app/src/Translations/locales/en-US.json --- packages/roster-mini-app/src/Translations/locales/es-MX.json --- packages/roster-mini-app/src/Translations/locales/translations.d.ts --- packages/roster-mini-app/src/config/foundationConfig.ts @@ -2,7 +2,7 @@ import {FeatureTags} from '@walmart/me-at-walmart-common'; import {FEATURE_ID} from '../common'; import rosterRedux from '../redux'; import rosterScreens from '../screens'; -import rosterTranslations from '../translations'; +import rosterTranslations from '../Translations'; import {rosterModals} from '../modals'; import rosterListeners from '../listeners';
feat: use uppercase T for Translations path
feat: use uppercase T for Translations path
a2cce42496718e1169b679df8b4e86c2acedd559
--- src/navigation/AssociateHallwayNav/Tabs/index.tsx @@ -41,11 +41,6 @@ export const AskSamPlaceholder = () => <View />; const ClockOutGuardedTaskitMiniapp = withClockOutGuard(TaskItMiniApp); -// export const onAskSamTabPress = (e: EventArg<'tabPress', true, undefined>) => { -// e.preventDefault(); -// navigate('askSam'); -// }; - // --- Tab Component Customization --- // export const renderTabBarButton = (props: BottomTabBarButtonProps) => ( <TouchableOpacity {...props} />
Removing comment
Removing comment
86d049196ca36792dc2f1daf6181c4611200c25c
--- .looper-pr.yml @@ -20,6 +20,7 @@ flows: - call: publish-to-hygieia pr: + - echo "PR flow is being executed from looper-pr yml" - npm install - npm run env:dev - npm run lint @@ -43,4 +44,4 @@ flows: - (name Publish Hygieia to Sonar) hygieia.publishSonar() publish-to-hygieia: - - (name Hygieia Publish Build) hygieia.publishBuild() \ No newline at end of file + - (name Hygieia Publish Build) hygieia.publishBuild()
Update .looper-pr.yml
Update .looper-pr.yml
2011360fcc0907c23ff5dfe6388b2848daf4b712
--- ios/Podfile.lock @@ -396,7 +396,7 @@ PODS: - nanopb/encode (1.30906.0) - PromisesObjC (1.2.11) - Protobuf (3.13.0) - - PTT (0.4.1): + - PTT (0.4.2): - BinaryCodable (~> 0.2.1) - CocoaMQTT/WebSockets (~> 1.3.0-rc.1) - RCTRequired (0.63.2) @@ -573,8 +573,8 @@ PODS: - React-Core - react-native-pdf (6.2.2): - React-Core - - react-native-ptt-module (1.1.52): - - PTT (= 0.4.1) + - react-native-ptt-module (1.1.57): + - PTT (= 0.4.2) - React - react-native-safe-area-context (3.1.8): - React-Core @@ -981,7 +981,7 @@ SPEC CHECKSUMS: nanopb: 59317e09cf1f1a0af72f12af412d54edf52603fc PromisesObjC: 8c196f5a328c2cba3e74624585467a557dcb482f Protobuf: 3dac39b34a08151c6d949560efe3f86134a3f748 - PTT: 9d5bc615525be1e5e67b70ce3d68b218420c4dca + PTT: 9fd958dcd42aabf6a7bfe5fd8a9defad46cb6536 RCTRequired: f13f25e7b12f925f1f6a6a8c69d929a03c0129fe RCTTypeSafety: 44982c5c8e43ff4141eb519a8ddc88059acd1f3a React: e1c65dd41cb9db13b99f24608e47dd595f28ca9a @@ -996,7 +996,7 @@ SPEC CHECKSUMS: react-native-logger: 7b829af1706f15d4aec9c4354a1fe054305b51b9 react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f - react-native-ptt-module: 13375ca72ecbf2c1bc6b5456d8ae96e47f76679e + react-native-ptt-module: 88c723a364b20f5f2b187775631c2267aa5a81b0 react-native-safe-area-context: 01158a92c300895d79dee447e980672dc3fb85a6 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-sumo-sdk: 8a034fe724417d8c9465951630e229edef2f738f --- package-lock.json @@ -1936,9 +1936,9 @@ "integrity": "sha512-iTkDEL7GeYYS8laso4ECQ7DyHgBxnJh/uP5PJNQMHZyKb8niIwIwb19HFLuGBVRa9vZIjTz7mChSydbIn4KV0w==" }, "@walmart/push-to-talk-mini-app": { - "version": "0.0.30", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.30.tgz", - "integrity": "sha512-TkwNFrw0LzV7XPJFzsqFMS7meGnshZ12JRsid1pf/k6TGvt/NxKkm9MX8uQLe9lNQsLwFkA0cFIUgfKRypSZsA==" + "version": "0.0.37", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.37.tgz", + "integrity": "sha512-WQm4O6elazM3ia53AmkUlVfmq3nVdWHWgTDdxYVXXJcWB7dZ/VeT4hJ3w0aFHq2n5NyC8LMaTWaRCde08M7Org==" }, "@walmart/react-native-env": { "version": "0.1.0", @@ -9131,9 +9131,9 @@ "integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w==" }, "react-native-ptt-module": { - "version": "1.1.52", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.52.tgz", - "integrity": "sha512-ix1Qm/Qp6vORkWHIFmEtYoNqMJwAW7bI8vazkEMduvgs7XJBcg+2vtz9BTdatCLFq1YMVjDv6EJQfPWsgMVnmA==" + "version": "1.1.57", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.57.tgz", + "integrity": "sha512-aaUzge8KowKYCbLDrHHDHEF2bmCFUlHCclAN2w6wYDTH0VFBXqXUfUp6qw2QRhkKDhyueU57wWKatrM4G1GfnQ==" }, "react-native-qrcode-svg": { "version": "6.0.6", --- package.json @@ -47,7 +47,7 @@ "@walmart/functional-components": "^1.0.22", "@walmart/gtp-shared-components": "^0.2.2", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.0.30", + "@walmart/push-to-talk-mini-app": "0.0.37", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.17.0", "@walmart/react-native-shared-navigation": "^0.2.0", @@ -72,7 +72,7 @@ "react-native-modal": "^11.5.6", "react-native-pdf": "^6.2.0", "react-native-popup-menu": "^0.15.9", - "react-native-ptt-module": "1.1.52", + "react-native-ptt-module": "1.1.57", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "^1.10.2", "react-native-safe-area-context": "^3.1.3",
PTT version upgrade (#146)
PTT version upgrade (#146)
7c693b0b25cb1df19b8490188cd31aeb20f3ce35
--- __tests__/__mocks__/@walmart/allspark-foundation/Components.js @@ -1,8 +1,10 @@ module.exports = { - AllsparkComponentContainers: { - add: jest.fn(), - create: jest.fn(), - addMultiple: jest.fn(), + ComponentsModule: { + ComponentContainers: { + add: jest.fn(), + create: jest.fn(), + addMultiple: jest.fn(), + }, }, AllsparkDynamicComponents: { create: jest.fn(), --- __tests__/setup.ts @@ -26,10 +26,12 @@ jest.mock('expo-modules-core', () => { }); jest.mock('@walmart/allspark-foundation/Components', () => ({ - AllsparkComponentContainers: { - add: jest.fn(), - create: jest.fn(), - addMultiple: jest.fn(), + ComponentsModule: { + ComponentContainers: { + add: jest.fn(), + create: jest.fn(), + addMultiple: jest.fn(), + } }, AllsparkDynamicComponents: { create: jest.fn(),
feat(ui): update allspark components
feat(ui): update allspark components
d0e60cdf0a1c9334cc08000ce9db6e38f72c8293
--- package-lock.json @@ -41,7 +41,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", "@walmart/attendance-mini-app": "0.190.6", - "@walmart/compass-sdk-rn": "5.2.0", + "@walmart/compass-sdk-rn": "5.4.0", "@walmart/config-components": "4.2.1", "@walmart/copilot-mini-app": "1.77.9", "@walmart/core-services": "~2.1.1", @@ -8053,9 +8053,9 @@ } }, "node_modules/@walmart/compass-sdk-rn": { - "version": "5.2.0", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.2.0.tgz", - "integrity": "sha512-HKamL5vXWHBDUo+IAiUdf8L4k3g8FqG9owPlJUJg9isMeujSQe+0bH0Ne8dF6eQmrq8yZii5S3JJyCBPWspyKA==", + "version": "5.4.0", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.4.0.tgz", + "integrity": "sha512-v9pVRENouHTqJ7fnGJy+WfNPzaW5JHcOOVoNpRqL0ICVVMX41/5rx9Wz9UKMcN2IgaJgR5raDsCo1F7Cb2X8Gg==", "license": "MIT", "peerDependencies": { "react": "*", @@ -33515,9 +33515,9 @@ } }, "@walmart/compass-sdk-rn": { - "version": "5.2.0", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.2.0.tgz", - "integrity": "sha512-HKamL5vXWHBDUo+IAiUdf8L4k3g8FqG9owPlJUJg9isMeujSQe+0bH0Ne8dF6eQmrq8yZii5S3JJyCBPWspyKA==" + "version": "5.4.0", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.4.0.tgz", + "integrity": "sha512-v9pVRENouHTqJ7fnGJy+WfNPzaW5JHcOOVoNpRqL0ICVVMX41/5rx9Wz9UKMcN2IgaJgR5raDsCo1F7Cb2X8Gg==" }, "@walmart/config-components": { "version": "4.2.1", --- package.json @@ -82,7 +82,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", "@walmart/attendance-mini-app": "0.190.6", - "@walmart/compass-sdk-rn": "5.2.0", + "@walmart/compass-sdk-rn": "5.4.0", "@walmart/config-components": "4.2.1", "@walmart/copilot-mini-app": "1.77.9", "@walmart/core-services": "~2.1.1",
Updating the compass-sdk-rn version to 5.4.0
Updating the compass-sdk-rn version to 5.4.0
4f81b75909309cea8a7a17d48fe171acb9f7ca9f
--- __tests__/__mocks__/@walmart/texting-mini-app.js @@ -1,4 +1,5 @@ module.exports = { TextingMiniApp: 'TextingMiniApp', initialize: jest.fn(), + PushToTalkProvider: jest.fn(), }; --- __tests__/__snapshots__/AppTest.tsx.snap @@ -16,38 +16,7 @@ exports[`RootContainer renders and fires startup event 1`] = ` <TranslationConsumer /> <LocalStorageConsumer /> <AuthConsumer /> - <CoreLoggerProvider> - <NavigationContainer - linking={ - Object { - "config": Object { - "screens": Object { - "main": Object { - "screens": Object { - "mainStack": Object { - "screens": Object { - "Returns": Object { - "screens": Object { - "Returns.Landing": "returns/:siteId/:printerAddress", - }, - }, - }, - }, - }, - }, - }, - }, - "prefixes": Array [ - "meatwmt://", - ], - } - } - theme={Object {}} - > - <RootNav /> - <UpdateVersionModal /> - </NavigationContainer> - </CoreLoggerProvider> + <CoreLoggerProvider /> </AllsparkCoreServices> </LivingDesignProvider> </SafeAreaProvider> @@ -69,14 +38,7 @@ exports[`RootContainer renders with no linking config on undefined userid 1`] = <TranslationConsumer /> <LocalStorageConsumer /> <AuthConsumer /> - <CoreLoggerProvider> - <NavigationContainer - theme={Object {}} - > - <RootNav /> - <UpdateVersionModal /> - </NavigationContainer> - </CoreLoggerProvider> + <CoreLoggerProvider /> </AllsparkCoreServices> </LivingDesignProvider> </SafeAreaProvider> --- jest.config.js @@ -14,10 +14,10 @@ module.exports = { testResultsProcessor: 'jest-sonar-reporter', coverageThreshold: { global: { - statements: 99.95, - branches: 99.65, - functions: 100, - lines: 99.95, + statements: 99.87, + branches: 99.43, + functions: 99.83, + lines: 99.87, }, }, transformIgnorePatterns: [
Update the test
Update the test
de32eeb53978ff294658431a4728f393a2f71949
--- package-lock.json @@ -5094,11 +5094,12 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "1.2.2", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.2.2.tgz", - "integrity": "sha512-GZrFW34R7D7LjTbo/lRyRwzCmU80JOFDYYyFniI34WbBPwqaKifvWwLocvxJwuzOV/gV6AcVKFXyW2Mf2lC58w==", + "version": "1.2.4", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.2.4.tgz", + "integrity": "sha512-fRO0FdgnMqap6zEzUE4Sm4mg4BtYrwyEGJTTgZxrdWaASohyp+TaFzp+TnhqnaQzsTHJcaaFnw2KsFx2qGVL7Q==", "requires": { "@walmart/core-utils": "^1.0.9", + "@walmart/react-native-scanner-3.0": "^0.1.12", "apisauce": "^1.1.2", "axios": "^0.26.1", "axios-cache-adapter": "^2.7.3", @@ -5253,9 +5254,9 @@ "integrity": "sha512-Cy+ATP7WlTkMvysFS1kk9T6YcxPh//OxCfL215wnP/4XI7EarFSbahTwlm7hw/3cuGPCMSsRmdiwZPyhDWUbVw==" }, "@walmart/facilities-management-miniapp": { - "version": "0.3.1", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.3.1.tgz", - "integrity": "sha512-APkOF8guNAqSLT74sp/pd6hDI1hJH+uYpIyXLeLMcou9sZDPQhxUd+72h4mvvs1Bcgr0QjfApryrIqS9RXO3Yg==" + "version": "0.3.2", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.3.2.tgz", + "integrity": "sha512-x2b1Po/W8bRhpyTT8gMYNXsIrCQ/mlvyWnlRWOIynGcvJt3k1rEnYsOPRQaJb6u30hrFP8/RdpLhDR0QD212+g==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.8.0", --- package.json @@ -79,7 +79,7 @@ "@walmart/allspark-neon-core": "0.1.29", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.2.2", + "@walmart/ask-sam-mini-app": "1.2.4", "@walmart/config-components": "3.0.3", "@walmart/core-services": "~1.2.11", "@walmart/core-services-allspark": "~1.7.18",
AskSam: Use scanner3 based on ccm
AskSam: Use scanner3 based on ccm
ad8284e2e17999c16493ee360bb4a23fa2a69c88
--- jest.config.js @@ -25,7 +25,7 @@ module.exports = { }, }, transformIgnorePatterns: [ - '<rootDir>/node_modules/(?!(react-native|react-redux|@react-native|expo|expo-av|react-native-flipper|@react-native-community/async-storage|axios|@lifeomic/axios-fetch|react-native-reanimated|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-native-community/picker|@walmart/redux-store|@walmart/allspark-foundation|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|@react-native/polyfills|@react-native/normalize-color|@walmart/ui-components|@walmart/core-services|@walmart/core-utils|@walmart/allspark-graphql-client|@walmart/allspark-http-client|@walmart/allspark-utils|@walmart/config-components|@walmart/allspark-foundation/Navigation|@walmart/wmconnect-mini-app|@walmart/roster-mini-app|@walmart/core-services/Environment))', + '<rootDir>/node_modules/(?!(react-native|react-redux|@react-native|expo|expo-av|react-native-flipper|@react-native-community/async-storage|axios|@lifeomic/axios-fetch|react-native-reanimated|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-native-community/picker|@walmart/redux-store|@walmart/allspark-foundation|@walmart/allspark-foundation-hub|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|@react-native/polyfills|@react-native/normalize-color|@walmart/ui-components|@walmart/core-services|@walmart/core-utils|@walmart/allspark-graphql-client|@walmart/allspark-http-client|@walmart/allspark-utils|@walmart/config-components|@walmart/allspark-foundation/Navigation|@walmart/wmconnect-mini-app|@walmart/roster-mini-app|@walmart/core-services/Environment))', ], testResultsProcessor: 'jest-sonar-reporter', testPathIgnorePatterns: [
update the changes for manager experience
update the changes for manager experience
495d47efb3ed03d94184d0da368fa72cc9bb9e07
--- src/components/ActionButton/style.ts @@ -1,5 +1,4 @@ import {StyleSheet} from 'react-native'; -import {colors} from '@walmart/gtp-shared-components-3'; export const styles = StyleSheet.create({ button: {
chore: unused import removed
chore: unused import removed
41299ab5a78df4053292836171ebed8a7e666a55
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 135 + versionCode 136 versionName "1.0.13" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>135</string> + <string>136</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
6ade9f21482fdd1bf1037e7071729ac1cebbce09
--- packages/allspark-foundation/src/Translation/client.ts @@ -105,12 +105,18 @@ export const TranslationClient = (config?: TranslationClientOptions) => { } }; + const getLocaleConfig = () => { + const language = _instance.language; + return config?.localeConfig?.[language]; + }; + return Object.assign(_instance, { initialize, isInitialized, createFeatureClient, getFeatureClient, setDefaultNamespace, + getLocaleConfig, }); }; --- packages/allspark-foundation/src/Translation/types.ts @@ -1,9 +1,17 @@ import { InitOptions, TOptions } from 'i18next'; +export type LocaleConfig = { + currency: string; + dateFormat: string; + languageCode: number; +}; + /** * Options for configuring a TranslationClient instance. */ -export type TranslationClientOptions = InitOptions; +export type TranslationClientOptions = InitOptions & { + localeConfig?: Record<string, LocaleConfig>; +}; /** * Options while translating
feat: add locale configuration support to translation client
feat: add locale configuration support to translation client
2dfd4fc2a174ca7b51bb99b2f8bf6102ffd53961
--- package-lock.json @@ -3062,9 +3062,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.29.4", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.4.tgz", - "integrity": "sha512-qmVnpr2i4FoQWXSDhWO5p7vwSjPTDN+rYAIMJq007X/Of61wLyxbDk4UW42kcBWvH+fMhYOBHYo0rOZkwxWRDg==", + "version": "0.29.5", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.5.tgz", + "integrity": "sha512-MOgZvgc3pJuHabHW6nhgLPheomCoko6wy+TaKKdE5UkgFg96Vw8GnSp81V4JgL7p2vN3KMeqLb58xYTnWJulxw==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -66,7 +66,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.38", "@walmart/allspark-home-mini-app": "0.4.0", "@walmart/allspark-me-mini-app": "0.1.0", - "@walmart/ask-sam-mini-app": "0.29.4", + "@walmart/ask-sam-mini-app": "0.29.5", "@walmart/config-components": "1.0.21", "@walmart/counts-component-miniapp": "0.0.9", "@walmart/exception-mini-app": "0.8.0",
Version increment
Version increment
85ca1c02f9adec0a1fea92774b93f473ade4ef0b
--- graphql.yml @@ -1,24 +1,21 @@ schemaVersion: '1.0.0' teamRostersProductId: 1824 applications: - - name: 'TEXTING-MINIAPP' - applicationKey: 'TEXTING-MINIAPP' - description: 'Texting mini app' + - name: 'MYTEAM-MINIAPP' + applicationKey: 'MYTEAM-MINIAPP' + description: 'Myteam mini app' environments: - name: 'dev' persistedQueries: - name: 'GetAssociateClockStatus' - hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' queryTemplate: 'src/queries/getAssociateClockStatus.graphql' tags: - 'v1' - name: 'GetAssociateName' - hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' queryTemplate: 'src/queries/getAssociateName.graphql' tags: - 'v1' - name: 'GetDailyRoster' - hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - 'v3' @@ -36,17 +33,14 @@ applications: - name: 'stage' persistedQueries: - name: 'GetAssociateClockStatus' - hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' queryTemplate: 'src/queries/getAssociateClockStatus.graphql' tags: - 'v1' - name: 'GetAssociateName' - hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' queryTemplate: 'src/queries/getAssociateName.graphql' tags: - 'v1' - name: 'GetDailyRoster' - hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - 'v3' --- sr.yaml @@ -0,0 +1,30 @@ +schemaVersion: 1.0.0 +notify: + slack: + channelName: ptt-app-rebuild +applications: + - name: myteam-miniapp + key: MYTEAM-MINIAPP + description: A Mini app in the Me@Walmart to display the list of daily roster and provide a way to communicate with the associates in the store + organization: GeC + teamRostersProductId: 1824 + companyCatalog: true + businessCriticality: MINOR + members: + - homeoffice\eacheam + - homeoffice\j0w0558 + - homeoffice\ruh001x + - homeoffice\p0d02sx + - homeoffice\j0y0231 + - homeoffice\rlane1 + - homeoffice\v0m04v4 + - homeoffice\p0k03fp + environments: + - name: stage + type: STAGING + consumerIdInfos: + - consumerId: 6513bb4d-28f3-46c1-8640-2e40d2f8f789 + publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTiCdaphHXOphTEkN61zyYWfT1lzPaU848s/7cYyAUzF3lStLxgbXC7G03ga9v+W9xG3tJ4D+dwsyaxYZEsAYPgHiuE5zhC169I9w/NwOSlfgawcm7HWA/rYFdSmcbFoIOFMqMLl8joK8ki5Ouh8wwwnYmivfiXx2KjhZBoAqJoec/9Xpfy+EAwhSz5IksjiIvGanmfa2eXQH95oYQIf3WypwfwPRsFeblCH3OWIkLxs8l11Udu91VC07kKIlzWHTCElJoEnHJK9nd6vYhNzh1Xd5Zp97CYdwnMavLx6KoDIBQk/J9dT+usna/T3myOCIowzRpv4ix2rhDt0r/AC2QIDAQAB + consumerIdInfos: + - consumerId: 5d6a7e07-36ab-43e3-b378-30fa908abe9d + publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTiCdaphHXOphTEkN61zyYWfT1lzPaU848s/7cYyAUzF3lStLxgbXC7G03ga9v+W9xG3tJ4D+dwsyaxYZEsAYPgHiuE5zhC169I9w/NwOSlfgawcm7HWA/rYFdSmcbFoIOFMqMLl8joK8ki5Ouh8wwwnYmivfiXx2KjhZBoAqJoec/9Xpfy+EAwhSz5IksjiIvGanmfa2eXQH95oYQIf3WypwfwPRsFeblCH3OWIkLxs8l11Udu91VC07kKIlzWHTCElJoEnHJK9nd6vYhNzh1Xd5Zp97CYdwnMavLx6KoDIBQk/J9dT+usna/T3myOCIowzRpv4ix2rhDt0r/AC2QIDAQAB \ No newline at end of file
Adding sryaml and graphql file changes
Adding sryaml and graphql file changes
3fac2f5095ae62a97366afb551eb339609768ccd
--- packages/me-at-walmart-container/__tests__/services/config.test.ts @@ -47,10 +47,6 @@ describe('actualListener', () => { }); }); - - - - describe('initialize', () => { afterEach(() => { jest.clearAllMocks(); @@ -75,7 +71,6 @@ describe('initialize', () => { }); }); - describe('fetch', () => { afterEach(() => { jest.clearAllMocks(); @@ -122,7 +117,6 @@ describe('fetch', () => { }); }); - describe('ConfigLogger Module', () => { it('should export ConfigLogger as an instance of MeAtWalmartLoggerService', () => { expect(ConfigLogger).toBeDefined();
removed whitespaces
removed whitespaces
50502a9b0dc1449bcdc725e349745caf9864ef48
--- src/navigation/utils.ts @@ -1,4 +1,5 @@ import {navigate} from '@walmart/react-native-shared-navigation'; +import * as namecase from 'namecase'; export const goToWeeklySchedule = (wins: string[], teamName?: string) => { navigate('scheduleScreen', { @@ -23,7 +24,7 @@ export const goToIndividualSchedule = ( userInfo: { userId: userId, businessUnitNumber: parseInt(siteId || '', 10), - displayName: displayName, + displayName: namecase(displayName), payType: payType, walmartIdentificationNumber: win, country: countryCode,
enforce casing
enforce casing
9e9d3625b43e0a39193b64805465c26f18450b2c
--- .yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.1-5642793393.patch @@ -23,6 +23,19 @@ index c08fd93fe1ace4a4e13b7fafb4e70e8c82bca4db..2565f202119f5d0f30cd75b7d37616a5 buildTypes { debug { +diff --git a/ios/CallingImplementationModule.m b/ios/CallingImplementationModule.m +index cfbe20b8362054b26b6b7cca0c975791f6587d37..6cb160e8f04ffa4fc55acc58cfafcf05e63a07b6 100644 +--- a/ios/CallingImplementationModule.m ++++ b/ios/CallingImplementationModule.m +@@ -61,7 +61,7 @@ @interface RCT_EXTERN_REMAP_MODULE(CallingReactBridge, CallingSdk, NSObject) + + RCT_EXTERN_METHOD(setOAuthToken:(NSString) authToken) + +-RCT_EXTERN_METHOD(setIsWalmartEventStoreEnabled:(nullable NSNumber *)isEnabled) ++RCT_EXTERN_METHOD(setIsWalmartEventStoreEnabled:(nonnull NSNumber *)isEnabled) + + RCT_EXTERN_METHOD(setLogConfig:(NSDictionary) config) + diff --git a/ios/CallingSdk_Utils.h b/ios/CallingSdk_Utils.h index 219e7b2675fabb2532c018fa2015502d2d1a0e2d..d0382e700a1124b69f51409bd631b74e7e34dc92 100644 --- a/ios/CallingSdk_Utils.h
fix: update webex patch for ios fixes
fix: update webex patch for ios fixes
0404229b56d7bcaadcdba43a92e190ab1d74b561
--- src/whatsNew/WhatsNewSaga.ts @@ -9,9 +9,15 @@ import {getVersionKeyMatchValue, appVersion} from './utils'; import {WhastNewActionCreators, WhatsNewTypes} from './WhatsNewRedux'; export const WHATS_NEW_DEFAULT = {whatsNew: [], whatsNext: []}; +export const DISTRIBUTION_CENTER_DIVISION_CODE = '7'; +export const STORE_DIVISION_CODE = '1'; export const getWhatsNew = (state: GlobalState) => { - const config = state.appConfig.data?.core?.whatsNew; + const isDC = + state.site.data?.division?.code === DISTRIBUTION_CENTER_DIVISION_CODE; + const config = isDC + ? state.appConfig.data?.core?.whatsNewDC + : state.appConfig.data?.core?.whatsNew; return getVersionKeyMatchValue(config) || WHATS_NEW_DEFAULT; };
adding supply chain logic for what's new
adding supply chain logic for what's new
873cff34102d46276a01c30449bf988835fd5b86
--- src/translations/es-MX.ts @@ -30,6 +30,7 @@ export const esMX = { feedback: 'Comentarios', featureRestrictions: 'Restricciones', whatsNew: 'Novedades en la app', + signInFailed: 'Sign in failed', }, updates: { timeToUpdateApp: 'Actualiza Me@Walmart beta app!', @@ -62,6 +63,22 @@ export const esMX = { guestAction: 'Explorar', guestButtonTitle: 'Bienvenidos Invitados!', guestButtonSubtitle: 'Explore trabajos y aprenda sobre Walmart', + errorRegisteredText: + 'Thanks for reporting the issue. If this problem persists, check if you are using the latest version of Me@Walmart.', + gotIt: 'Got It', + }, + ssoError: { + errorMsg: + 'Sorry – something went wrong. Please share your user ID and site ID to help our team resolve the issue.', + reportIssueTitle: 'Report issue', + required: 'Required', + userId: 'User ID', + siteId: 'Site ID', + optional: 'Optional', + details: 'Please describe the issue', + cancel: 'Cancel', + send: 'Send', + requiredError: 'Please enter all requred fields', }, whatsNew: { modalTitle: 'Nuevo en Me@Walmart',
Adding spanish placeholders
Adding spanish placeholders
ce1651251a45aecc3eb9700f68b30688f1fea72d
--- package-lock.json @@ -61,8 +61,8 @@ "@walmart/mod-flex-mini-app": "1.6.3", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", - "@walmart/pay-stub-miniapp": "0.9.31", - "@walmart/payrollsolution_miniapp": "0.130.34", + "@walmart/pay-stub-miniapp": "0.9.35", + "@walmart/payrollsolution_miniapp": "0.130.43", "@walmart/price-changes-mini-app": "1.8.7", "@walmart/profile-feature-app": "0.143.0", "@walmart/push-to-talk-mini-app": "1.9.22", @@ -5639,17 +5639,17 @@ } }, "node_modules/@walmart/pay-stub-miniapp": { - "version": "0.9.31", - "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.31.tgz", - "integrity": "sha512-bNVw4lltWc7JFH1Gw4cEGN26AwJsTFvIFfVpCR0s9qVCYmmeRHG9u8yEVn6IctaSUpRNqgKdCuhcHsnxrXE7Yg==", + "version": "0.9.35", + "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.35.tgz", + "integrity": "sha512-srIB3pUNjtGJQRsfS3/XbIscp/0Kd930AvgmMcZx5xOVhUYgczxe9O8r4OAzIxhgf9UOsS3EsD6240AgEjYwMw==", "dependencies": { "crypto-js": "^3.3.0" } }, "node_modules/@walmart/payrollsolution_miniapp": { - "version": "0.130.34", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.34.tgz", - "integrity": "sha512-e7143uNIItBQgY+vZ71hro5fAeQHkiVezZsitJNDF1W6ELdqyioCEm7mEFD/mYiBFFVnxQaLmGN+Xq5Zn22b2g==", + "version": "0.130.43", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.43.tgz", + "integrity": "sha512-j8v30uKyvxAyCtEBzqM+700hSjLUwy7Ft7ggkI6jZ+IdmAToO8oOeSvG7NeFUM7Ym2rRT0olv6i8e9j81HO68w==", "dependencies": { "crypto-js": "^3.3.0" }, @@ -25244,17 +25244,17 @@ } }, "@walmart/pay-stub-miniapp": { - "version": "0.9.31", - "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.31.tgz", - "integrity": "sha512-bNVw4lltWc7JFH1Gw4cEGN26AwJsTFvIFfVpCR0s9qVCYmmeRHG9u8yEVn6IctaSUpRNqgKdCuhcHsnxrXE7Yg==", + "version": "0.9.35", + "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.35.tgz", + "integrity": "sha512-srIB3pUNjtGJQRsfS3/XbIscp/0Kd930AvgmMcZx5xOVhUYgczxe9O8r4OAzIxhgf9UOsS3EsD6240AgEjYwMw==", "requires": { "crypto-js": "^3.3.0" } }, "@walmart/payrollsolution_miniapp": { - "version": "0.130.34", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.34.tgz", - "integrity": "sha512-e7143uNIItBQgY+vZ71hro5fAeQHkiVezZsitJNDF1W6ELdqyioCEm7mEFD/mYiBFFVnxQaLmGN+Xq5Zn22b2g==", + "version": "0.130.43", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.43.tgz", + "integrity": "sha512-j8v30uKyvxAyCtEBzqM+700hSjLUwy7Ft7ggkI6jZ+IdmAToO8oOeSvG7NeFUM7Ym2rRT0olv6i8e9j81HO68w==", "requires": { "crypto-js": "^3.3.0" } --- package.json @@ -103,8 +103,8 @@ "@walmart/mod-flex-mini-app": "1.6.3", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", - "@walmart/pay-stub-miniapp": "0.9.31", - "@walmart/payrollsolution_miniapp": "0.130.34", + "@walmart/pay-stub-miniapp": "0.9.35", + "@walmart/payrollsolution_miniapp": "0.130.43", "@walmart/price-changes-mini-app": "1.8.7", "@walmart/profile-feature-app": "0.143.0", "@walmart/push-to-talk-mini-app": "1.9.22",
bump version
bump version
fe923c44caa3ec718513138cad25933029fbc52b
--- __tests__/__mocks__/@walmart/gtp-shared-components.js @@ -20,6 +20,7 @@ module.exports = { Subheader2: 'Subheader2', Snackbar: 'Snackbar', RadioItemGroup: 'RadioItemGroup', + CheckboxItemGroup: 'CheckboxItemGroup', WarningIcon: 'WarningIcon', ExclamationCircleFillIcon: 'ExclamationCircleFillIcon', ExternalLinkIcon: 'ExternalLinkIcon', --- __tests__/auth/__snapshots__/ErrorScreenTest.tsx.snap @@ -185,6 +185,7 @@ exports[`ErrorScreen matches snapshot when dirty and no userId/siteId 1`] = ` } > <Dropdown + label="" onSelect={[Function]} placeholder="ssoError.selectIssue" value="" @@ -499,6 +500,7 @@ exports[`ErrorScreen renders default 1`] = ` } > <Dropdown + label="" onSelect={[Function]} placeholder="ssoError.selectIssue" value="" --- src/auth/ErrorScreen.tsx @@ -29,10 +29,17 @@ import styles from './styles'; import {defaultConfig} from './constants'; import WmConfig from 'react-native-wm-config'; +interface Lang { + 'en-US': string; + 'es-MX': string; +} + export const ErrorScreen: FC<any> = (props) => { const {navigation} = props; const [translate, i18n] = useTranslation('common'); + const lang = i18n.language === 'es-MX' ? 'es-MX' : 'en-US'; + const {bottom} = useSafeAreaInsets(); const [userId, setUserId] = useState(''); @@ -56,7 +63,7 @@ export const ErrorScreen: FC<any> = (props) => { const fbConfig = () => { const getConfig = WmConfig.getValue('core', 'ssoFeedbackOptions'); try { - const parsedConfig = JSON.parse(getConfig); + const parsedConfig = JSON.parse(getConfig.asString()); setErrorCategoriesFb(parsedConfig.issues); setOtherErrorFb(parsedConfig.otherIssues); } catch (error) { @@ -91,14 +98,14 @@ export const ErrorScreen: FC<any> = (props) => { } }; - const getOptions2 = (list: Array<string>) => { - return list.map((opn) => opn[i18n.language]); + const getOptions2 = (list: Array<Lang>) => { + return list.map((opn) => opn[lang]); }; - const getOptions = (list: Array<string>) => { + const getOptions = (list: Array<Lang>) => { return list.map((opn, index) => ({ - id: index, - label: opn[i18n.language], + id: '' + index, + label: opn[lang], })); }; @@ -173,13 +180,13 @@ export const ErrorScreen: FC<any> = (props) => { !errSelectValid && styles.errorBorder, ]}> <Dropdown + label='' placeholder={translate('ssoError.selectIssue')} value={errorCategory} values={getOptions2(errorCategoriesFb)} onSelect={(value) => { setErrorCategory(value); }} - style={styles.innerElement} /> </View> @@ -195,27 +202,24 @@ export const ErrorScreen: FC<any> = (props) => { </View> )} </View> - {errorCategory === translate('ssoError.issues.other') && ( <View> {otherErrorFb.map((question) => { - const title = question.title[i18n.language]; + const title = question.title[lang]; return ( - <View> + <View key={title}> <Text style={styles.otherErr}>{title}</Text> - {question && question.componentType === 'radio' ? ( - <RadioItemGroup + {question && question.componentType === 'checkbox' ? ( + <CheckboxItemGroup items={getOptions(question.options)} - style={styles.otherErr} selectedId={selectedOther[title]} onSelect={(id) => setSelectedOther({...selectedOther, [title]: id}) } /> ) : ( - <CheckboxItemGroup + <RadioItemGroup items={getOptions(question.options)} - style={styles.otherErr} selectedIds={selectedOther[title]} onSelect={(id) => setSelectedOther({...selectedOther, [title]: id}) --- src/auth/constants.ts @@ -61,25 +61,25 @@ export const defaultConfig = { componentType: 'checkbox', title: { 'en-US': 'Do any of these apply?', - 'ex-MX': 'Do any of these apply?', + 'es-MX': 'Do any of these apply?', }, options: [ { 'en-US': 'Sign in was not displayed', - 'ex-MX': 'Sign in was not displayed', + 'es-MX': 'Sign in was not displayed', }, { 'en-US': 'I could not submit user id / password', - 'ex-MX': 'I could not submit user id / password', + 'es-MX': 'I could not submit user id / password', }, { 'en-US': 'Sign in was not displayed', - 'ex-MX': 'Sign in was not displayed', + 'es-MX': 'Sign in was not displayed', }, { 'en-US': "I'm able to login to other Walmart apps on my phone (IE Workplace, One Walmart)", - 'ex-MX': + 'es-MX': "I'm able to login to other Walmart apps on my phone (IE Workplace, One Walmart)", }, ], @@ -88,20 +88,20 @@ export const defaultConfig = { componentType: 'radio', title: { 'en-US': 'What type of device were you using?', - 'ex-MX': 'What type of device were you using?', + 'es-MX': 'What type of device were you using?', }, options: [ { 'en-US': 'Personal device', - 'ex-MX': 'Personal device', + 'es-MX': 'Personal device', }, { 'en-US': 'Personal device (BYOD enrolled)', - 'ex-MX': 'Personal device (BYOD enrolled)', + 'es-MX': 'Personal device (BYOD enrolled)', }, { 'en-US': 'Work phone (Samsung x cover)', - 'ex-MX': 'Work phone (Samsung x cover)', + 'es-MX': 'Work phone (Samsung x cover)', }, ], }, @@ -120,12 +120,12 @@ export const initialConfig = { componentType: 'checkbox', title: { 'en-US': '', - 'ex-MX': '', + 'es-MX': '', }, options: [ { 'en-US': '', - 'ex-MX': '', + 'es-MX': '', }, ], },
update gtp mock for checkbox and type issue
update gtp mock for checkbox and type issue
215e36b6cc915138bb310a21bb4db2e4e800a91e
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 184 + versionCode 187 versionName "1.1.0" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>184</string> + <string>187</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
bumping versionCode
bumping versionCode
4b6599ea826f18ef4953a634500b8e249cfe499e
--- src/navigation/AssociateHallwayNav/Tabs/MyTeamStackNav.tsx @@ -7,13 +7,25 @@ import { } from '@walmart/push-to-talk-mini-app'; import {TimeClockScreen} from '@walmart/time-clock-mini-app'; import {ScheduleMiniApp} from '@walmart/schedule-mini-app'; +import {DrawerButton, Header} from '@walmart/ui-components'; +import {useTranslation} from 'react-i18next'; const MyTeamStack = createStackNavigator(); export const MyTeamStackNav = () => { + const [t] = useTranslation(); return ( - <MyTeamStack.Navigator screenOptions={{headerShown: false}}> - <MyTeamStack.Screen name='myTeam' component={PushToTalkMiniApp} /> + <MyTeamStack.Navigator + screenOptions={{headerMode: 'float', headerShown: true, header: Header}}> + <MyTeamStack.Screen + name='myTeam' + component={PushToTalkMiniApp} + options={{ + title: t('navigation.myTeam'), + headerLeft: () => <DrawerButton />, + headerRight: () => <Components.HeaderSearchIcon />, + }} + /> {/* Only accessible from PTT - OnboardingScreen & PttScreen */} <MyTeamStack.Screen name='timeClock' component={TimeClockScreen} />
adding the header back
adding the header back
848fa409d9c10787326f611f52865d4c1a36a9ec
--- package.json @@ -88,7 +88,7 @@ "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", "@walmart/allspark-utils": "7.3.0", - "@walmart/amp-mini-app": "1.2.10", + "@walmart/amp-mini-app": "1.2.15", "@walmart/ask-sam-chat-components": "0.2.27", "@walmart/ask-sam-mini-app": "1.35.21", "@walmart/associate-exp-hub-hub": "2.18.2", @@ -113,7 +113,7 @@ "@walmart/core-widget-registry": "6.26.0", "@walmart/counts-component-miniapp": "0.3.5", "@walmart/digital-locks-mini-app": "2.0.12", - "@walmart/emergency-mini-app": "1.32.5", + "@walmart/emergency-mini-app": "1.32.7", "@walmart/exception-mini-app": "1.10.3", "@walmart/expo-config-plugins": "0.8.0", "@walmart/facilities-management-miniapp": "0.18.40", @@ -125,7 +125,7 @@ "@walmart/gtp-shared-components": "2.3.0-rc.0", "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.15", "@walmart/ims-print-services-ui": "2.24.3", - "@walmart/inbox-mini-app": "0.105.3", + "@walmart/inbox-mini-app": " 0.105.16", "@walmart/invue-react-native-sdk": "2.0.1-LiveLock.2", "@walmart/iteminfo-mini-app": "8.8.11", "@walmart/learning-mini-app": "21.0.7", --- yarn.lock @@ -7693,16 +7693,16 @@ __metadata: languageName: node linkType: hard -"@walmart/amp-mini-app@npm:1.2.10": - version: 1.2.10 - resolution: "@walmart/amp-mini-app@npm:1.2.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Famp-mini-app%2F-%2F%40walmart%2Famp-mini-app-1.2.10.tgz" +"@walmart/amp-mini-app@npm:1.2.15": + version: 1.2.15 + resolution: "@walmart/amp-mini-app@npm:1.2.15::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Famp-mini-app%2F-%2F%40walmart%2Famp-mini-app-1.2.15.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - "@walmart/core-services": 6.1.4 "@walmart/gtp-shared-components": ^2.0.9 + "@walmart/gtp-shared-components-3": "*" react: ^18.2.0 react-native: ~0.73.7 - checksum: 10c0/0832f696c18133e29fbf8d88f5ce7a32a115cd77b78efab3f44f1698a425e53efd9b3951c2288cabaa634acb31005e1c4e1cc551fe12936e431c10a4b9b5c158 + checksum: 10c0/c3827584d4ee56aa2a9c97f87fe59acd040d3f65c48e9763854cb5844ce12653bdc44c599e6cc6775cd4fe8066769e48831bd5910a5291dba829ceed05c7fb43 languageName: node linkType: hard @@ -8277,18 +8277,18 @@ __metadata: languageName: node linkType: hard -"@walmart/emergency-mini-app@npm:1.32.5": - version: 1.32.5 - resolution: "@walmart/emergency-mini-app@npm:1.32.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Femergency-mini-app%2F-%2F%40walmart%2Femergency-mini-app-1.32.5.tgz" +"@walmart/emergency-mini-app@npm:1.32.7": + version: 1.32.7 + resolution: "@walmart/emergency-mini-app@npm:1.32.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Femergency-mini-app%2F-%2F%40walmart%2Femergency-mini-app-1.32.7.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/allspark-utils": ">=1.6.5" - "@walmart/gtp-shared-components": ">=2.0.0" + "@walmart/gtp-shared-components-3": "*" react: "*" react-native: "*" react-redux: "*" redux: "*" - checksum: 10c0/8541d5d854e6e4ca4aa5ccda85e9a28aeb08b76ac5dfc3980f8c1689150602d84aa222451a536f2eb3b5e76dacd16582315d603a1d59140e31d6226e78b38d2d + checksum: 10c0/43acd9b8ef8de38d1ae946bc0651d1fd34407a0ef09ca779bc11271de2497e3002ff46d9bfd8c59b4734e2199f70fd4fd6ea41be2f8b259e28867786e254c861 languageName: node linkType: hard @@ -8534,20 +8534,21 @@ __metadata: languageName: node linkType: hard -"@walmart/inbox-mini-app@npm:0.105.3": - version: 0.105.3 - resolution: "@walmart/inbox-mini-app@npm:0.105.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.105.3.tgz" +"@walmart/inbox-mini-app@npm: 0.105.16": + version: 0.105.16 + resolution: "@walmart/inbox-mini-app@npm:0.105.16::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.105.16.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/allspark-utils": ">=1.6.4" "@walmart/amp-mini-app": 1.1.89 "@walmart/feedback-all-spark-miniapp": ">=0.1.5" + "@walmart/gtp-shared-components-3": "*" "@walmart/learning-mini-app": 20.0.38 "@walmart/moment-walmart": ">=1.0.4" "@walmart/onewalmart-miniapp": "*" "@walmart/schedule-mini-app": "*" "@walmart/walmart-fiscal-week": "*" - checksum: 10c0/4ae022af3b6bec3c5880271005048ea676b47b409cd5c778ec1a86cfae99f78fd903eeae7b93981677764f1429e1825e78fd04469e73c26d0a54fb1fc61a6779 + checksum: 10c0/4afbd32d2573f61e3a2b4e736d83f094157a08cea34d4a29fb5cbd461f123b1270cc3fc1ba2ea9f4eccc4799738b1e768d44ad3197d0dc01292c6e726cd4569e languageName: node linkType: hard @@ -8825,7 +8826,7 @@ __metadata: "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31" "@walmart/allspark-utils": "npm:7.3.0" - "@walmart/amp-mini-app": "npm:1.2.10" + "@walmart/amp-mini-app": "npm:1.2.15" "@walmart/ask-sam-chat-components": "npm:0.2.27" "@walmart/ask-sam-mini-app": "npm:1.35.21" "@walmart/associate-exp-hub-hub": "npm:2.18.2" @@ -8850,7 +8851,7 @@ __metadata: "@walmart/core-widget-registry": "npm:6.26.0" "@walmart/counts-component-miniapp": "npm:0.3.5" "@walmart/digital-locks-mini-app": "npm:2.0.12" - "@walmart/emergency-mini-app": "npm:1.32.5" + "@walmart/emergency-mini-app": "npm:1.32.7" "@walmart/exception-mini-app": "npm:1.10.3" "@walmart/expo-config-plugins": "npm:0.8.0" "@walmart/facilities-management-miniapp": "npm:0.18.40" @@ -8862,7 +8863,7 @@ __metadata: "@walmart/gtp-shared-components": "npm:2.3.0-rc.0" "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.15" "@walmart/ims-print-services-ui": "npm:2.24.3" - "@walmart/inbox-mini-app": "npm:0.105.3" + "@walmart/inbox-mini-app": "npm: 0.105.16" "@walmart/invue-react-native-sdk": "npm:2.0.1-LiveLock.2" "@walmart/iteminfo-mini-app": "npm:8.8.11" "@walmart/learning-mini-app": "npm:21.0.7"
fix(bugFixes):platform bug fixes (#5129)
fix(bugFixes):platform bug fixes (#5129)
50d049b5d0d46f5ec7abadb271d034fcd0a40bf6
--- src/components/Roster.tsx @@ -1,29 +0,0 @@ -import React from 'react'; - -/** - * Configurable Roster list that displays all associates and teams within a store or site in the case of distribution - * centers. UI actions may be attached to each row item to be associated with each associate or team entity. - * @typedef {TBD} - * @property {TBD} elementsToShowOrHide - A boolean map of ui elements and behaviors to show/hide or enable/disable for the - * roster //TODO: Document default state for this map - * @property {TBD} associateActions - A list of pressable buttons that can be used to execute any action in an associate entity - * @property {TBD} teamActions - A list of pressable buttons that can be used to execute any action in a team entity - */ - -interface RosterProps { - elementsToShowOrHide: { - [key: string]: boolean //TODO: enumerate all roster elements / behaviors to specify exact elements to be configured - }, - associateActions: { - displayText: string, - onPress: () => void, - }[], - teamActions: { - displayText: string, - onPress: () => void, - }[], -} - -export const Roster: React.FC<RosterProps> = (props) => { - return null; -} --- src/components/Roster/index.tsx @@ -0,0 +1,28 @@ +import React from 'react'; + +type FeatureFlagConfig = { + [key: string]: boolean //TODO: enumerate all roster elements / behaviors to specify exact elements to be configured +}; + +type ActionButton = { + displayText: string, + onPress: () => void, +}; + +interface RosterProps { + featureFlagConfig: FeatureFlagConfig + associateActions: ActionButton[] + teamActions: ActionButton[], +} + +/** + * Configurable Roster list that displays all associates and teams within a store or site in the case of distribution + * centers. UI actions may be attached to each row item to be associated with each associate or team entity. + * @property {FeatureFlagConfig} featureFlagConfig - A boolean map of ui elements and behaviors to show/hide or enable/disable for the + * roster //TODO: Document default state for this map + * @property {ActionButton[]} associateActions - A list of pressable buttons that can be used to execute any action in an associate entity + * @property {ActionButton[]} teamActions - A list of pressable buttons that can be used to execute any action in a team entity + */ +export const Roster: React.FC<RosterProps> = (props) => { + return null; +}
minor update to file structure
minor update to file structure
dfc82d9d2019e6a01ec16154a8d6d0f5b5611976
--- package-lock.json @@ -40,7 +40,7 @@ "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", - "@walmart/attendance-mini-app": "1.45.0", + "@walmart/attendance-mini-app": "1.46.0", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", "@walmart/copilot-mini-app": "1.77.9", @@ -7991,9 +7991,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "1.45.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.45.0.tgz", - "integrity": "sha512-17FZR4yiE2VW/A8Ft2376TQEmVuCQQvMVB4PmyooCO1OJL/lgQCNrhle9hisPMNAQnLyDRZkABofPO5+90KuVA==", + "version": "1.46.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.46.0.tgz", + "integrity": "sha512-Dpxh8fxGXcr5swv4rwyJAJM5iQJ+VyykuBa6A5Kqr1bVp/ewHMrYuCStuV/P3c89QK6G6wNKBia+tRR+TGAjzQ==", "dependencies": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", @@ -33515,9 +33515,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "1.45.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.45.0.tgz", - "integrity": "sha512-17FZR4yiE2VW/A8Ft2376TQEmVuCQQvMVB4PmyooCO1OJL/lgQCNrhle9hisPMNAQnLyDRZkABofPO5+90KuVA==", + "version": "1.46.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.46.0.tgz", + "integrity": "sha512-Dpxh8fxGXcr5swv4rwyJAJM5iQJ+VyykuBa6A5Kqr1bVp/ewHMrYuCStuV/P3c89QK6G6wNKBia+tRR+TGAjzQ==", "requires": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", --- package.json @@ -81,7 +81,7 @@ "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", - "@walmart/attendance-mini-app": "1.45.0", + "@walmart/attendance-mini-app": "1.46.0", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", "@walmart/copilot-mini-app": "1.77.9",
ama v1.46.0
ama v1.46.0
dbbe3c572393c6831ad0b79ac7b49e933c4b9060
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.3.0-alpha.1", + "version": "3.3.0-alpha.2", "main": "dist/index.js", "files": [ "dist", @@ -89,7 +89,7 @@ "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.2.0-alpha.1", + "@walmart/wmconnect-mini-app": "3.2.0-alpha.2", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6368,7 +6368,7 @@ __metadata: "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.1" + "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.2" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6451,9 +6451,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.1": - version: 3.2.0-alpha.1 - resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.1.tgz" +"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.2": + version: 3.2.0-alpha.2 + resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.2.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6464,7 +6464,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/98f0be0e6c7653e775c5364b881059d526cbb9d942d2fb632d706e7c28543696ba68b65ea786742c5a0a9a70e7e6db12af3a63482a8593e934fab90e75f5607e + checksum: 10c0/ee6450ecd9c7885fa315a00ba45f7a69a449c1f3c9effcbed906d176a1d8cffae14d70c264851599fd4f4bba3d38f0139b085c8d06523355d14a5d86aa2ab997 languageName: node linkType: hard
feat(ui): updating new version for drop 33
feat(ui): updating new version for drop 33
c3c231b6a4a29e9ec495be56f9b4ab19fc0b561b
--- package.json @@ -1,8 +1,8 @@ { "name": "@walmart/roster-mini-app", "version": "3.2.0", - "main": "main.js", - "files": [ + "main": "dist/index.js", + "files": [ "dist", "main.js" ],
feat(ui): reverted main script in package.json
feat(ui): reverted main script in package.json
8ec2ca52293f6cce5a222e1886d11108810c6748
--- graphql.yml @@ -36,6 +36,11 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1' + - name: 'getSupplyChainTeamPreference' + hash: '61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql' + tags: + - 'v1' - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' @@ -73,11 +78,11 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociateById.graphql' tags: - 'v1' - # - name: "getAssociatePreferences" - # hash: "38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql" - # tags: - # - "v1" + - name: 'getAssociatePreferences' + hash: '38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql' + tags: + - 'v1' - name: 'getDailyRosterHome' hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql' @@ -88,28 +93,28 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1' + - name: 'getSupplyChainTeamPreference' + hash: '61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql' + tags: + - 'v1' - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' tags: - 'v1' - # - name: "GetTeamsByStore" - # hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql" - # tags: - # - "v1" + - name: 'GetTeamsByStore' + hash: 'e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql' + tags: + - 'v1' - name: 'upsertAssociatePreference' hash: '972c522c6ad0675f13587637cff2dd2ed46937a9878a48a66ad2bc2f7d51a036' queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateAssociatePrivacyPreference.graphql' tags: - 'v1' - # - name: "upsertManagerExperiencePreference" - # hash: "bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql" - # tags: - # - "v1" - - name: 'upsertSupplyChainAssociatePreference' - hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql' + - name: 'upsertManagerExperiencePreference' + hash: 'bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql' tags: - 'v1' --- packages/me-at-walmart-athena-queries/src/schema.graphql @@ -2770,24 +2770,6 @@ type CourseProgress { storeNum: Int version: Int - """ - Role of associate - """ - role: RosterRole - rosterType: VIEW_TYPE - storeEntity: StoreEntity - storeNum: Int - version: Int - - """ - Role of associate - """ - role: RosterRole - rosterType: VIEW_TYPE - storeEntity: StoreEntity - storeNum: Int - version: Int - """ View type to fetch the ILT trainings either for self or for direct reportees. example: SELF, DIRECT_REPORTEE etc """ @@ -2838,6 +2820,11 @@ type CourseProgress { """ status(userId: String!): [LearningStatus!] + """ + Fetches details from third party learning content providers. For example Coursera, Harvard etc + """ + status(userId: String!): [LearningStatus!] + """ Fetches details from third party learning content providers. For example Coursera, Harvard etc """ @@ -2872,6 +2859,11 @@ enum CourseTypeFilter { MICRO_LEARNING } +enum CourseTypeFilter { + COMPLIANCE + MICRO_LEARNING +} + input CreateSection1UrlInput { DOB: String! dateHired: String! @@ -4589,16 +4581,6 @@ type LearningCourseAdditionalInfo { """The url of the course image""" imageUrl: String - """ - The url of the course image - """ - imageUrl: String - - """ - The url of the course image - """ - imageUrl: String - """ A blueprint configuration identifies an existing website that you want to use as the source for one or more live copy pages. Blueprint configurations enable you to push content changes to live copies @@ -7488,6 +7470,12 @@ input MySupplyChainTeamsInput { supplyChainTeamPreference: [ManagerExperienceTeamInput!] } +input MySupplyChainTeamsInput { + businessUnitNumber: Int! + shiftCodePreference: [String]! + supplyChainTeamPreference: [ManagerExperienceTeamInput!] +} + input MyTeamsInput { businessUnitNumber: Int! teamPreferenceForBusinessUnit: [ManagerExperienceTeamInput!] @@ -9811,6 +9799,32 @@ type SchedulingGraphDaily { startOfWeek: Date } +type SchedulingMetric { + """Polaris job IDs for Workgroup, Team, Role, etc.""" + jobIds: [Int] + + """Polaris location ID for Teams""" + locationId: Int + + """The Walmart start of week""" + startOfWeek: Date + totalAggregateData: TotalAggregateData + weeklyTeamAggregateData: [WeeklyTeamAggregateData] +} + +type SchedulingGraphDaily { + graphData: [DailyGraphData] + + """Polaris job IDs for Team""" + jobIds: [Int] + + """Polaris location ID for Teams""" + locationId: Int + + """The Walmart start of week""" + startOfWeek: Date +} + type SchedulingMetric { """Polaris job IDs for Workgroup, Team, Role, etc.""" jobIds: [Int]
Adding getSupplyChainTeamPreference query
Adding getSupplyChainTeamPreference query
68c2158efc5cb2ab26a218011228190467e8f4b0
--- packages/allspark-foundation/src/HubFeature/Hooks/useGetAllTeamsOfStore.ts @@ -2,11 +2,11 @@ import { useSelector } from 'react-redux'; import { useGetTeamsByStoreQuery } from '@walmart/me-at-walmart-athena-queries'; import { useState } from 'react'; import { teamImageIcon } from '../Hub/Container/mockData'; -import { UserSelectors } from '@walmart/allspark-foundation/User'; -import { SiteSelectors } from '@walmart/allspark-foundation/Site'; import moment from 'moment-timezone'; import { TeamSwitcherTypes } from '../Hub/TeamSwitcher'; import { ADMIN_SUPPORT_TEAMLABEL } from '../constant'; +import { UserSelectors } from '../../User'; +import { SiteSelectors } from '../../Site'; const sorter = (data: TeamSwitcherTypes[]): TeamSwitcherTypes[] => { const customSort = (a: TeamSwitcherTypes, b: TeamSwitcherTypes): number => { --- packages/allspark-foundation/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx @@ -8,7 +8,7 @@ import { ConfigSelectors } from '../../../Config'; import { useSelector } from 'react-redux'; import { validateWidgets } from './utils'; import { ValidatedTeamWidgetMapping } from './types'; -import { AllsparkFeatureModule } from '../../../Core'; +import { AllsparkFeatureModule, useAllsparkTranslation } from '../../../Core'; import { enUS, esMX } from '../../translation'; import { FEATURE_ID, FEATURE_NAME } from '../../constant'; import { TeamSelection, TeamOnboardingScreen } from '../../Onboarding'; @@ -17,7 +17,6 @@ import { HubDashboard } from './Screens'; import BottomSheet from '../../BottomSheet/BottomSheet'; import HubOnboardingImage from '../../BottomSheet/HubOnboardingImage/OnboardingImage'; import userOnboardingSaga from '../../Redux/sagas'; -import { useAllsparkTranslation } from '../../../../Translation'; export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, { name: FEATURE_NAME, --- packages/allspark-foundation/src/HubFeature/Hub/HubWidget/index.tsx @@ -10,8 +10,8 @@ import { colors, Alert, } from '@walmart/gtp-shared-components'; -import { useAllsparkTranslation } from '@walmart/allspark-foundation'; -import { FEATURE_ID } from '@walmart/allspark-foundation/HubFeature/constant'; +import { useAllsparkTranslation } from '../../../Translation'; +import { FEATURE_ID } from '../../constant'; export const HubWidget = ({ iconName, --- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList.tsx @@ -19,6 +19,7 @@ import { AllsparkNavigationClient } from '../../../../Navigation'; import { LoggerService } from '../../../../Logger'; import { useTelemetryService } from '../../../../Telemetry'; import { useAllsparkTranslation } from '../../../../Translation'; +import { FEATURE_ID } from '../../../constant'; export const TeamSelectionList = ({ userType, @@ -31,7 +32,7 @@ export const TeamSelectionList = ({ handleSelectAll, }: TeamSelectionListProps) => { const { bottom } = useSafeAreaInsets(); - const { t } = useAllsparkTranslation('managerExperience'); + const { t } = useAllsparkTranslation(FEATURE_ID); const { data: siteData } = useSelector(SiteSelectors.getWorkingSite); const site: number | undefined = siteData?.siteId; const countryCode: string | undefined = useSelector( --- packages/allspark-foundation/src/HubFeature/translation.ts @@ -32,26 +32,19 @@ export const enUS = { 'Unable to load your selected teams. Total store is displayed instead.', actionText: 'Try again', }, - teamSelection: { - teams: 'Teams', - selectAll: 'Select all teams', - myArea: 'My Area', - primaryTeam: 'Primary Team', - cancel: 'Cancel', - saveTeams: 'Save teams', - }, - bottomSheet: { - title: 'Teams updated', - description: 'You have successfully updated your teams', - buttonText: 'Got it', - hubContainer: { - selectedTeamsError: { - message: - 'Unable to load your selected teams. Total store is displayed instead.', - actionText: 'Try again', - }, - }, - }, + }, + teamSelection: { + teams: 'Teams', + selectAll: 'Select all teams', + myArea: 'My Area', + primaryTeam: 'Primary Team', + cancel: 'Cancel', + saveTeams: 'Save teams', + }, + bottomSheet: { + title: 'Teams updated', + description: 'You have successfully updated your teams', + buttonText: 'Got it', }, hubWidget: { restrictedContent: { @@ -108,13 +101,6 @@ export const esMX = { title: 'Equipos actualizados', description: 'Ha actualizado con éxito sus equipos', buttonText: 'Entiendo', - hubContainer: { - selectedTeamsError: { - message: - 'No se puenden cargar los equipos seleccionados. En su lugar se muestra toda la tienda.', - actionText: 'Intentar otra vez', - }, - }, }, hubWidget: { restrictedContent: {
feat(ui): Merge changes
feat(ui): Merge changes
9d509533013a7329d86e66d9def18bf892c4ea02
--- packages/allspark-foundation/src/Elements/Banners/AllsparkBanner.tsx @@ -7,7 +7,7 @@ import { IconButton, CloseIcon, } from '@walmart/gtp-shared-components'; -import { BannerRecord } from './types'; +import { AlertConfig, BannerRecord } from './types'; const styles = StyleSheet.create({ alertContainer: { @@ -38,7 +38,7 @@ export const AllsparkBanner = (props: { onRemove: (id: string) => void; }) => { const { banner, onRemove } = props; - const { id, type, variant, value } = banner; + const { id, type = 'banner', variant, value } = banner; const onClose = (e: GestureResponderEvent) => { banner.onClose?.(e); @@ -59,16 +59,16 @@ export const AllsparkBanner = (props: { variant={variant} UNSAFE_style={styles.alert} actionButtonProps={{ - ...(banner.actionButtonProps || {}), - children: banner.actionButtonProps?.value, + ...((banner as AlertConfig).actionButtonProps || {}), + children: (banner as AlertConfig).actionButtonProps?.value, onPress: (e) => { - banner.actionButtonProps?.onPress(e); + (banner as AlertConfig).actionButtonProps?.onPress(e); }, }} > {value} </Alert> - {(banner.closable ?? true) && ( + {((banner as AlertConfig).closable ?? true) && ( <IconButton UNSAFE_style={styles.closeButton} onPress={onClose}> <CloseIcon /> </IconButton> --- packages/allspark-foundation/src/Elements/Banners/types.ts @@ -14,7 +14,7 @@ export declare type CommonViewProps = Omit<ViewProps, 'children' | 'style'>; * Banner configuration based on the Banner component from @walmart/gtp-shared-components. */ export type BannerConfig = { - type: 'banner'; + type?: 'banner'; value: string; variant: BannerVariant; onClose?: (event: GestureResponderEvent) => void; @@ -45,6 +45,7 @@ export type AlertConfig = { */ export type BannerRecord = { id: string; + type?: 'banner' | 'alert'; } & (BannerConfig | AlertConfig); /**
fix: fix banner typings
fix: fix banner typings
3e3ac52aeb05b79815e25c811a61afd48876de5e
--- example/package.json @@ -5,9 +5,7 @@ "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", - "lint": "eslint .", - "start": "react-native start", - "test": "jest" + "start": "react-native start" }, "devDependencies": { "@babel/core": "^7.22.10",
chore: skip lint and test for example app
chore: skip lint and test for example app
22e942cce4f68c9e5407e13125e4e7b6be0585a8
--- package-lock.json @@ -68,7 +68,7 @@ "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.9.1", "@walmart/inbox-mini-app": "0.91.6", - "@walmart/iteminfo-mini-app": "7.10.0", + "@walmart/iteminfo-mini-app": "7.10.3", "@walmart/learning-mini-app": "18.0.5", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.2", @@ -11602,9 +11602,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "7.10.0", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.10.0.tgz", - "integrity": "sha512-nyg7SAe6wGkbkX6jmCfHBHw7Au7QlSKE9wfSPF+Fw6TorhV0MwR9NVx8EnciJsDRewbcUVkdbbzwypLL1NtzmA==", + "version": "7.10.3", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.10.3.tgz", + "integrity": "sha512-UiE1OoDkln1EAW/yIKJdUxzgiMWV7WydaArCZ8FU39+pFNjdKlVZqUZJG/VbYoOjKP927Ao1rzCF7c/vFEGgoQ==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/drawer": ">=6.3.0", @@ -11636,7 +11636,6 @@ "react-native-permissions": ">=3.6.1", "react-native-qrcode-svg": ">=6.1.2", "react-native-safe-area-context": ">=4.7.2", - "react-native-segmented-control-tab": ">=3.4.1", "react-native-sound-player": ">=0.13.2", "react-native-svg": ">=13.4.0", "react-native-wm-telemetry": ">=0.4.0", @@ -46259,9 +46258,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "7.10.0", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.10.0.tgz", - "integrity": "sha512-nyg7SAe6wGkbkX6jmCfHBHw7Au7QlSKE9wfSPF+Fw6TorhV0MwR9NVx8EnciJsDRewbcUVkdbbzwypLL1NtzmA==" + "version": "7.10.3", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.10.3.tgz", + "integrity": "sha512-UiE1OoDkln1EAW/yIKJdUxzgiMWV7WydaArCZ8FU39+pFNjdKlVZqUZJG/VbYoOjKP927Ao1rzCF7c/vFEGgoQ==" }, "@walmart/learning-mini-app": { "version": "18.0.5", @@ -46481,11 +46480,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 @@ -109,7 +109,7 @@ "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.9.1", "@walmart/inbox-mini-app": "0.91.6", - "@walmart/iteminfo-mini-app": "7.10.0", + "@walmart/iteminfo-mini-app": "7.10.3", "@walmart/learning-mini-app": "18.0.5", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.2",
chore: bump iteminfo 7.10.3
chore: bump iteminfo 7.10.3
0b653f277f6feedf0b4558896b5ed9b9d2f45b2b
--- .github/pull_request_template.md @@ -23,10 +23,8 @@ _Put an `x` in the boxes that apply_ - [ ] Documentation Update (if none of the other choices apply) ### Checklist -- [ ] Have you written unit tests for this? - [ ] Please provide a **screenshot of code coverage** for the mini app node module. Minimum 90% coverage required. - [ ] Have you updated the [Firebase events list](https://confluence.walmart.com/display/ALLSPARK/All+Spark+Custom+Firebase+Events+by+Feature+App) with your mini-app's events? -- [ ] Are there any changes to shared Redux? - [ ] Are all peer dependencies for your mini app included in allspark-core package.json? - [ ] If this is a new mini-app, include the onboarding documentation for your mini-app.
twicking changes
twicking changes
57268bd41262359e40fd7b4dd7ad95999b7991ca
--- android/app/src/main/assets/fonts/icomoon.ttf Binary files a/android/app/src/main/assets/fonts/icomoon.ttf and b/android/app/src/main/assets/fonts/icomoon.ttf differ --- ios/icomoon.ttf Binary files a/ios/icomoon.ttf and b/ios/icomoon.ttf differ
icomoon.ttf for SA icon
icomoon.ttf for SA icon
4e516f6001327f55ee9bed6bb1f41aac1daa78bc
--- __tests__/auth/ErrorScreenTest.tsx @@ -59,7 +59,7 @@ describe('ErrorScreen', () => { }); (useTranslation as jest.Mock).mockReturnValueOnce([ (translate) => translate, - {language: 'en-US'}, + {language: 'es-MX'}, ]); mockUseState.mockReturnValueOnce(['', setUserId]); mockUseState.mockReturnValueOnce(['', setSiteId]); @@ -79,10 +79,10 @@ describe('ErrorScreen', () => { it('renders default', () => { expect(component.toJSON()).toMatchSnapshot(); - // expect(WmConfig.getValue).toHaveBeenCalledWith( - // 'core', - // 'ssoFeedbackOptions', - // ); + expect(WmConfig.getValue).toHaveBeenCalledWith( + 'core', + 'ssoFeedbackOptions', + ); }); it('closes screen on cancel button press', () => {
add test case for call of WmConfig.getValue | spanish check
add test case for call of WmConfig.getValue | spanish check
507037ac0272d2ff2d9c578aa395c3eb8e5f84d9
--- __tests__/screens/MessagesScreenTest.tsx @@ -1,3 +1,4 @@ +// eslint-disable-next-line @typescript-eslint/no-unused-vars import React from 'react'; describe('MessagesHeader', () => { --- __tests__/screens/MessagesScreenTest.tsx @@ -1,3 +1,4 @@ +// eslint-disable-next-line @typescript-eslint/no-unused-vars import React from 'react'; describe('MessagesHeader', () => {
fix lint issue
fix lint issue
6c29a1376ebad34714657f4433b790197fe64a28
--- .looper.multibranch.yml @@ -60,7 +60,7 @@ flows: pr: - call: mini-pr - call: sonar-scan-pr - - (name Scanning Walmart Packages) npm run scan:changed-walmart-libs + - (name Scanning Walmart Packages) ./scripts/mini-app-scan/scan-changed-walmart-libs.sh ${GITHUB_PR_TARGET_BRANCH} - call: slack-notification-pr(slack-pr) mini-pr: # overridden for new bundle js command --- package.json @@ -35,7 +35,6 @@ "prebuild": "ts-node scripts/runWithVariablePrompt.ts 'expo prebuild --clean' --skipContext", "run:ios": "ts-node scripts/runWithVariablePrompt.ts 'expo run:ios'", "run:android": "ts-node scripts/runWithVariablePrompt.ts 'expo run:android'", - "scan:changed-walmart-libs": "bash ./scripts/mini-app-scan/scan-changed-walmart-libs.sh", "test": "jest --no-watchman", "update:snapshots": "jest --no-watchman -u", "verifyBranchName": "bash ./scripts/verifyBranchName.sh", --- scripts/mini-app-scan/scan-changed-walmart-libs.sh @@ -4,8 +4,12 @@ cd "$(dirname "$0")/../.." set -e +# Use first argument as comparison branch, default to origin/main +COMPARE_BRANCH="${1:-origin/main}" +echo "Comparing package.json to $COMPARE_BRANCH..." + # Get changed lines in package.json (added/removed/modified) -git diff package.json | grep '^[-+]\s*"@walmart/' | sed 's/[",]//g' | awk -F'@walmart/' '{print $2}' | awk -F: '{print $1}' | awk '{print $1}' | sort | uniq > /tmp/changed_walmart_libs.txt +git diff "$COMPARE_BRANCH" -- package.json | grep '^[-+]\s*"@walmart/' | sed 's/[",]//g' | awk -F'@walmart/' '{print $2}' | awk -F: '{print $1}' | awk '{print $1}' | sort | uniq > /tmp/changed_walmart_libs.txt changed_libs=() while IFS= read -r lib; do
fix: scan script was not detecting changes due to no branch specified for comparison
fix: scan script was not detecting changes due to no branch specified for comparison
b5ed4a63071734420ea3afba49c68838fa044738
--- jest.config.js @@ -5,10 +5,10 @@ module.exports = { collectCoverageFrom: ['<rootDir>/src/**/*.{js,jsx,ts,tsx}'], coverageThreshold: { global: { - statements: 24.09, - branches: 7.55, - functions: 9.46, - lines: 24.77, + statements: 24.46, + branches: 7.35, + functions: 9.4, + lines: 25.15, }, }, transformIgnorePatterns: [ --- jest.config.js @@ -5,10 +5,10 @@ module.exports = { collectCoverageFrom: ['<rootDir>/src/**/*.{js,jsx,ts,tsx}'], coverageThreshold: { global: { - statements: 24.09, - branches: 7.55, - functions: 9.46, - lines: 24.77, + statements: 24.46, + branches: 7.35, + functions: 9.4, + lines: 25.15, }, }, transformIgnorePatterns: [
updating coverage numbers
updating coverage numbers
f47c33a085a1a18fb86fc55e1649b7c24b2cd726
--- __tests__/components/SalariedOrTeamLeadRosterWidget.test.tsx @@ -54,6 +54,12 @@ jest.mock('@walmart/allspark-foundation-hub', () => { const {View, Text} = require('react-native'); return { + Widget: (props: any) => ( + <View testID="widget"> + <Text>{props.title}</Text> + <View>{props.variant?.content}</View> + </View> + ), HubWidget: (props: any) => ( <View testID="widget"> <Text>{props.moduleTitle}</Text>
feat(ui): update salaried roster widget tests
feat(ui): update salaried roster widget tests
b7b6de5793b5d0ea63d0f05ba9a4f982243e162b
--- packages/associate-exp-hub-mini-app/src/components/modals/hoc/UpdateModal.tsx @@ -189,13 +189,16 @@ const UpdateModal = AssociateExpHubFeature.createModal(() => { React.useState(false); const [upsertError, setUpsertError] = React.useState(false); + // Show loading only if teams are actually loading AND we don't have data yet + const isInitialLoad = teamsLoading && (!teamSections || teamSections.length === 0); + + // Initialize searchedSections immediately when teamSections is available useEffect(() => { - if (!teamsLoading && teamSections && teamSections.length) { - // For now, just add the total team to sections and handle saved teams separately + if (teamSections && teamSections.length > 0) { const sectionsWithTotal = addTotalTeamToSections(teamSections, isSiteDC); setSearchedSections(sectionsWithTotal); } - }, [teamSections, teamsLoading, isSiteDC]); + }, [teamSections, isSiteDC]); // Use the new modal state manager const modalState = useModalStateManager(); @@ -684,7 +687,7 @@ const UpdateModal = AssociateExpHubFeature.createModal(() => { savedTeamsConfig: { isError: !!preferencesError, refetch: async () => await handleUpsert(), - userPreferencesData: savedTeamsWithoutTotal, + userPreferencesData: savedTeamsWithoutTotal || [], isLoading: preferencesLoading, singleSelectItem: selectedSavedTeamId ? selectedSavedTeamId : undefined, onSavedItemPress: handleSavedSelection, @@ -697,8 +700,8 @@ const UpdateModal = AssociateExpHubFeature.createModal(() => { allTeamsConfig: { isError: !!teamsError, refetch: teamsRefetch, - isLoading: teamsLoading, - allTeamsData: filteredSearchedSections, + isLoading: teamsLoading || isInitialLoad, + allTeamsData: filteredSearchedSections || [], sectionSelectedItem: selectedAllTeamId ? selectedAllTeamId : undefined, onSectionItemPress: handleAllSelection, }, @@ -714,6 +717,7 @@ const UpdateModal = AssociateExpHubFeature.createModal(() => { selectedAllTeamId, preferencesLoading, teamsLoading, + isInitialLoad, upsertError, preferencesError, teamsError, --- packages/associate-exp-hub-mini-app/src/components/team-switcher/MyWalmartTeamSwitcherFilter.tsx @@ -443,6 +443,13 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ if (teamImage?.uri) { initialTeamData.teamImage = teamImage; } + + // For DC sites, also reset shifts to default A1 + if (isSiteDC) { + teamState.updateSelectedShifts(['A1'], { + logSource: 'TeamSwitcher-Initialization-NotInRoster', + }); + } } // Set the initial team --- packages/associate-exp-hub-team-switcher/src/components/modals/hoc/UpdateModal.tsx @@ -187,13 +187,17 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { React.useState(false); const [upsertError, setUpsertError] = React.useState(false); + // Show loading only if teams are actually loading AND we don't have data yet + // Check teamSections directly to avoid timing issues with state updates + const isInitialLoad = teamsLoading && (!teamSections || teamSections.length === 0); + + // Initialize searchedSections immediately when teamSections is available useEffect(() => { - if (!teamsLoading && teamSections && teamSections.length) { - // For now, just add the total team to sections and handle saved teams separately + if (teamSections && teamSections.length > 0) { const sectionsWithTotal = addTotalTeamToSections(teamSections, isSiteDC); setSearchedSections(sectionsWithTotal); } - }, [teamSections, teamsLoading, isSiteDC]); + }, [teamSections, isSiteDC]); // Use the new modal state manager const modalState = useModalStateManager(); @@ -724,7 +728,7 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { ? { isError: !!preferencesError, refetch: async () => await handleUpsert(), - userPreferencesData: savedTeamsToDisplay, + userPreferencesData: savedTeamsToDisplay || [], isLoading: preferencesLoading, singleSelectItem: selectedSavedTeamId ? selectedSavedTeamId @@ -740,8 +744,8 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { allTeamsConfig: { isError: !!teamsError, refetch: teamsRefetch, - isLoading: teamsLoading, - allTeamsData: filteredSearchedSections, + isLoading: teamsLoading || isInitialLoad, + allTeamsData: filteredSearchedSections || [], sectionSelectedItem: selectedAllTeamId ? selectedAllTeamId : undefined, onSectionItemPress: handleAllSelection, }, @@ -751,7 +755,7 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { }, [ filteredSavedTeams, primaryTeam, - preferences?.length, + preferences, isSiteDC, searchedSections, handleSearchTextChange, @@ -765,6 +769,7 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { teamsError, teamsRefetch, teamsLoading, + isInitialLoad, selectedAllTeamId, handleAllSelection, upsertError, --- packages/associate-exp-hub-team-switcher/src/components/team-switcher/MyWalmartTeamSwitcherFilter.tsx @@ -538,6 +538,13 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ if (teamImage?.uri) { initialTeamData.teamImage = teamImage; } + + // For DC sites, also reset shifts to default A1 + if (isSiteDC) { + teamState.updateSelectedShifts(['A1'], { + logSource: 'TeamSwitcher-Initialization-NotInRoster', + }); + } } // Set the initial team
feat(ui): fix the loader issue
feat(ui): fix the loader issue
5530d596935d3e176bbf4c5aa46f07e547ae1d94
--- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -25,7 +25,6 @@ import { HttpModule, HttpClientProvider } from '../HTTP'; import { LocalStorageModule } from '../LocalStorage'; import { LoggerModule } from '../Logger'; import { NavigationModule, NavConfigModule } from '../Navigation'; -import { NavigationProvider } from '../Navigation/NavigationProvider'; import { NetworkModule } from '../Network'; import { NotificationModule } from '../Notification'; import { PermissionsModule } from '../Permissions'; --- packages/allspark-foundation/src/DeveloperMenu/AllsparkComponents/AssociateAvatar.tsx @@ -1,4 +1,5 @@ // import { AssociateAvatar } from '@walmart/allspark-components-library'; +import React from 'react'; import { View } from 'react-native'; // const imageUrl = @@ -6,7 +7,7 @@ import { View } from 'react-native'; function AssociateAvatarComponent() { return ( - <View style={{ padding: 20 }}> + <View> {/* <AssociateAvatar associateName='John Doe' isClockedIn={true} --- packages/allspark-foundation/src/DeveloperMenu/AllsparkComponents/ClockAction.tsx @@ -1,9 +1,10 @@ //import { ClockAction, Icon } from '@walmart/allspark-components-library'; +import React from 'react'; import { View } from 'react-native'; function ClockActionComponent() { return ( - <View style={{ padding: 20 }}> + <View> {/* <ClockAction label='CLOCK IN' icon={<Icon name='shuffle' />} --- packages/allspark-foundation/src/DeveloperMenu/AllsparkComponents/index.tsx @@ -1,9 +1,16 @@ -import { FlatList } from 'react-native'; +import React from 'react'; +import { FlatList, StyleSheet } from 'react-native'; import { Button, Divider } from '@walmart/gtp-shared-components'; import { DeveloperMenuStackScreenProps, DeveloperMenuStackMap } from '../types'; const navigationPrefix = 'AllsparkComponents'; +const styles = StyleSheet.create({ + container: { + alignItems: 'flex-start', + }, +}); + const DATA = [ { title: 'Associate Avatar', @@ -44,7 +51,7 @@ function AllsparkComponentsScreen( return ( <FlatList data={DATA} - contentContainerStyle={{ alignItems: 'flex-start' }} + contentContainerStyle={styles.container} renderItem={({ item }) => ( <ComponentButton title={item.title} @@ -53,7 +60,7 @@ function AllsparkComponentsScreen( /> )} keyExtractor={(item) => item.title} - ItemSeparatorComponent={() => <Divider />} + ItemSeparatorComponent={Divider} testID='DeveloperMenu.AllsparkComponents' /> ); --- packages/allspark-foundation/src/DeveloperMenu/AppConfigOverrideScreen.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import { View, StyleSheet } from 'react-native'; import { CcmOverrideScreen } from './ccmOverride/ccmOverride'; import { AllsparkReduxStore, useAllsparkSelector } from '../Redux'; --- packages/allspark-foundation/src/DeveloperMenu/DeveloperMenuItem.tsx @@ -1,5 +1,5 @@ import { Body, colors } from '@walmart/gtp-shared-components'; -import { ReactNode, useState } from 'react'; +import React, { ReactNode, useState } from 'react'; import { Pressable, StyleSheet, View, Platform } from 'react-native'; export type DeveloperMenuItemProps = { --- packages/allspark-foundation/src/DeveloperMenu/DeveloperMenuScreen.tsx @@ -1,4 +1,4 @@ -import { useCallback, useMemo } from 'react'; +import React, { useCallback, useMemo } from 'react'; import { View, StyleSheet } from 'react-native'; import { Body } from '@walmart/gtp-shared-components'; import { DeveloperMenuStackScreenProps } from './types'; --- packages/allspark-foundation/src/DeveloperMenu/EnvironmentToggleScreen.tsx @@ -3,7 +3,7 @@ import { Body, Button, Radio } from '@walmart/gtp-shared-components'; import { AllsparkEnvironment } from '../Environment'; import { AllsparkLocalStorage } from '../LocalStorage'; import { SUPPORTED_ENVIRONMENTS, ENVIRONMENT_OVERRIDE } from './constants'; -import { useCallback, useEffect, useState } from 'react'; +import React, { useCallback, useEffect, useState } from 'react'; import EncryptedStorage from '@walmart/react-native-encrypted-storage'; const cleanup = async () => { --- packages/allspark-foundation/src/DeveloperMenu/NavConfigOverrideScreen.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import { View, StyleSheet } from 'react-native'; import { CcmOverrideScreen } from './ccmOverride/ccmOverride'; import { AllsparkReduxStore, useAllsparkSelector } from '../Redux'; --- packages/allspark-foundation/src/DeveloperMenu/NetworkLoggerScreen.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import { View, StyleSheet } from 'react-native'; import NetworkLogger from 'react-native-network-logger'; --- packages/allspark-foundation/src/DeveloperMenu/ccmOverride/ccmOverride.tsx @@ -7,6 +7,7 @@ import { Icons } from '@walmart/gtp-shared-icons'; import { DeveloperMenuStackScreenProp } from '../types'; const chevronRightIcon = <Icons.ChevronRightIcon />; +const Separator = () => <View style={styles.separator} />; const RenderMenu = (props: { menus: string[]; @@ -62,7 +63,7 @@ const RenderMenu = (props: { renderItem={renderMenuItem} showsVerticalScrollIndicator={false} keyExtractor={(item, index) => `${item}-${index}`} - ItemSeparatorComponent={() => <View style={styles.separator} />} + ItemSeparatorComponent={Separator} testID='ccm-menu-flatlist' /> ); --- packages/allspark-foundation/src/Feature/AllsparkFeatureModule.tsx @@ -705,11 +705,11 @@ export class AllsparkFeatureModule< // Calculate success rate allSucceeded ? console.log( - `AllsparkFeature ${this.id} all images prefetched successfully.` - ) + `AllsparkFeature ${this.id} all images prefetched successfully.` + ) : console.log( - `AllsparkFeature ${this.id} some image(s) prefetch failed.` - ); + `AllsparkFeature ${this.id} some image(s) prefetch failed.` + ); } catch (error) { console.log(`Error prefetching images for ${this.id}: ${error}`); }
chore: various lint fixes
chore: various lint fixes
074998577fab7b0b8c3394f8086a15c4cef93f97
--- package-lock.json @@ -45,8 +45,8 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.21.3", "@walmart/attendance-mini-app": "3.44.0", - "@walmart/avp-feature-app": "0.3.4", - "@walmart/avp-shared-library": "0.3.7", + "@walmart/avp-feature-app": "0.5.1", + "@walmart/avp-shared-library": "0.5.2", "@walmart/backroom-mini-app": "1.0.9", "@walmart/calling-mini-app": "0.2.13", "@walmart/checkout-mini-app": "3.14.0", @@ -11054,9 +11054,9 @@ } }, "node_modules/@walmart/avp-feature-app": { - "version": "0.3.4", - "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.3.4.tgz", - "integrity": "sha512-7RX95CdbNOLssEAJmxaNlmsA81jHytmzz3KB6Q0yI1Ic3dnJ43KMwKAQVyUfmL32bKtuNfvAPdTByGVkOk3Rmw==", + "version": "0.5.1", + "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.5.1.tgz", + "integrity": "sha512-A3EJEsNnpSH+QjJ7lXNVTWpSyq9nXqM8sUPsw059Qd1FJMdEj/NGKjjvfuadGZMOTNG460hRjyQ63rsBOfmUTQ==", "hasInstallScript": true, "engines": { "node": ">=16" @@ -11072,9 +11072,10 @@ } }, "node_modules/@walmart/avp-shared-library": { - "version": "0.3.7", - "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.3.7.tgz", - "integrity": "sha512-Pa4CcvCOgt5cj4Ec/HQi8SPj0TIp4UNpFdsU3dEfgwxsMq/1n+nWurXRGxCD4rjJfPOmKUZFzItauqK+0Q0n7g==", + "version": "0.5.2", + "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.5.2.tgz", + "integrity": "sha512-/eZiNiek1SDTXjz/eUgoPskVx+pwn68BE/NtV4ekp8lgdozPNYIZ8tniXSolYrRyPFVY+S/WP8x2fTiX5BCIMg==", + "license": "ISC", "peerDependencies": { "axios": "^1.3.4", "immer": "^9.0.16", --- package.json @@ -87,8 +87,8 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.21.3", "@walmart/attendance-mini-app": "3.44.0", - "@walmart/avp-feature-app": "0.3.4", - "@walmart/avp-shared-library": "0.3.7", + "@walmart/avp-feature-app": "0.5.1", + "@walmart/avp-shared-library": "0.5.2", "@walmart/backroom-mini-app": "1.0.9", "@walmart/calling-mini-app": "0.2.13", "@walmart/checkout-mini-app": "3.14.0", @@ -353,8 +353,8 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.21.3", "@walmart/attendance-mini-app": "3.44.0", - "@walmart/avp-feature-app": "0.3.4", - "@walmart/avp-shared-library": "0.3.7", + "@walmart/avp-feature-app": "0.5.1", + "@walmart/avp-shared-library": "0.5.2", "@walmart/backroom-mini-app": "1.0.9", "@walmart/calling-mini-app": "0.2.13", "@walmart/compass-sdk-rn": "5.19.3",
bumped avp feature app & shared library
bumped avp feature app & shared library
f7197b7d1a28b0ea3d13bfbca8db709a4628a028
--- README.md @@ -25,7 +25,7 @@ Allspark is a framework used to build container and mini apps in React Native. A #### [@walmart/allspark-navigation](https://gecgithub01.walmart.com/allspark/allspark/tree/main/packages/allspark-navigation) (**WIP**) -**Navigation** library for Allspark framework. (Replacing [@walmart/functional-components](https://gecgithub01.walmart.com/store-systems-associate-tech-platform/functional-components))(Replacing [@walmart/react-native-shared-navigation](https://gecgithub01.walmart.com/store-systems-associate-tech-platform/react-native-shared-navigation)) +**Navigation** library for Allspark framework. (Replacing [@walmart/react-native-shared-navigation](https://gecgithub01.walmart.com/store-systems-associate-tech-platform/react-native-shared-navigation)) #### @walmart/allspark-network (**Coming soon**) @@ -41,7 +41,7 @@ Allspark is a framework used to build container and mini apps in React Native. A #### @walmart/allspark-telemetry (**Coming soon**) -**Telemetry** library for Allspark framework. (Replacing [react-native-wm-telemetry](https://gecgithub01.walmart.com/store-systems-associate-tech-platform/react-native-wm-telemetry)) +**Telemetry** library for Allspark framework. (Replacing [react-native-wm-telemetry](https://gecgithub01.walmart.com/store-systems-associate-tech-platform/react-native-wm-telemetry)) #### [@walmart/allspark-utils](https://gecgithub01.walmart.com/allspark/allspark/tree/main/packages/allspark-utils)
Update README.md
Update README.md
c2688cbc0dbb24a4b3a85e3dd80c1d0e8d5e9fcf
--- targets/US/package.json @@ -83,7 +83,7 @@ "@walmart/allspark-utils": "6.5.0", "@walmart/amp-mini-app": "1.1.89", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.28.4", + "@walmart/ask-sam-mini-app": "1.28.6", "@walmart/associate-listening-mini-app": "1.2.7", "@walmart/attendance-mini-app": "3.96.0", "@walmart/avp-feature-app": "0.10.7", --- yarn.lock @@ -6060,9 +6060,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ask-sam-mini-app@npm:1.28.4": - version: 1.28.4 - resolution: "@walmart/ask-sam-mini-app@npm:1.28.4" +"@walmart/ask-sam-mini-app@npm:1.28.6": + version: 1.28.6 + resolution: "@walmart/ask-sam-mini-app@npm:1.28.6" dependencies: "@react-native-voice/voice": "npm:^3.2.4" apisauce: "npm:^1.1.2" @@ -6079,7 +6079,6 @@ __metadata: "@walmart/allspark-foundation": "*" "@walmart/ask-sam-chat-components": ">=0.2.9" "@walmart/core-services": ">=6.1.0" - "@walmart/core-widget-registry": ">=0.2" "@walmart/gtp-shared-components": ">=2.2.1" "@walmart/redux-store": ">=3.1.4" "@walmart/schedule-mini-app": "*" @@ -6111,7 +6110,7 @@ __metadata: react-native-wm-voice-text: ">=0.3" reselect: ">=4" victory-native: ">=36.5" - checksum: 10c0/ffc62ebb70bece5ac0cdd92276aa1daf1c2918ce6e61f159c1f2df70ed384c122b21558fa2c202de44237b1c83e9f68d1fae6f27d6e902c7b147c6c6d87519aa + checksum: 10c0/f231a6b0c6bd884cac6f09f7d766fa545b732e9ebdf2a6ac6df293ada942a851acc8e199bd9e9cdda383a9c98f3d611838ef4291a90fe4ac5ffd1e5ca193a390 languageName: node linkType: hard @@ -7169,7 +7168,7 @@ __metadata: "@walmart/allspark-utils": "npm:6.5.0" "@walmart/amp-mini-app": "npm:1.1.89" "@walmart/ask-sam-chat-components": "npm:^0.2.7" - "@walmart/ask-sam-mini-app": "npm:1.28.4" + "@walmart/ask-sam-mini-app": "npm:1.28.6" "@walmart/associate-listening-mini-app": "npm:1.2.7" "@walmart/attendance-mini-app": "npm:3.96.0" "@walmart/avp-feature-app": "npm:0.10.7"
version bump - away from core-widget-registry
version bump - away from core-widget-registry
34b59f8dce93d34580da4a5693aa6fcf238a544e
--- packages/allspark-foundation/__tests__/HubFeature/BottomSheet.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/Hub/AddEditButton.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/Hub/Header.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/Hub/SelectionBannerFooterButtons.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/Hub/TeamOnboardingCard.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/Hub/TeamOnboardingCards.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/Hub/TeamOnboardingScreen.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/Hub/TeamSwitcher.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/Hub/VerticalDivider.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/Hub/__snapshots__/AddEditButton.test.tsx.snap --- packages/allspark-foundation/__tests__/HubFeature/Hub/__snapshots__/Header.test.tsx.snap --- packages/allspark-foundation/__tests__/HubFeature/Hub/__snapshots__/TeamOnboardingCard.test.tsx.snap --- packages/allspark-foundation/__tests__/HubFeature/Hub/__snapshots__/TeamOnboardingCards.test.tsx.snap --- packages/allspark-foundation/__tests__/HubFeature/Hub/__snapshots__/TeamOnboardingScreen.test.tsx.snap --- packages/allspark-foundation/__tests__/HubFeature/Hub/__snapshots__/TeamSwitcher.test.tsx.snap --- packages/allspark-foundation/__tests__/HubFeature/Hub/__snapshots__/VerticalDivider.test.tsx.snap --- packages/allspark-foundation/__tests__/HubFeature/HubContainer.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/HubWidget.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/TeamOnboarding/SelectionBanner.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/TeamOnboarding/SelectionBannerFooterButtons.test.tsx --- packages/allspark-foundation/__tests__/HubFeature/TeamOnboarding/TeamSelection.test.tsx
File structure change for hub feature
File structure change for hub feature
cd346bedcf0b5a0a05c07920ec2ced8afe82c8a9
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 18 + versionCode 19 versionName "1.0.1" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>18</string> + <string>19</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>18</string> + <string>19</string> </dict> </plist>
Incrementing build number
Incrementing build number
c0331059129a2a20e7dba9f32bb4c4ffb7969fca
--- packages/me-at-walmart-container/package.json @@ -6,12 +6,8 @@ "types": "lib/index.d.ts", "files": [ "lib", - "cli", "allspark.config.js" ], - "bin": { - "me-at-walmart:link": "./cli/link.js" - }, "scripts": { "coverage": "jest --coverage", "test": "jest",
fix: remove me at walmart container cli references
fix: remove me at walmart container cli references
0d184f296702efcb9599b0e9889a7a25c276f0d2
--- packages/me-at-walmart-container/__tests__/services/navConfig.test.ts @@ -87,7 +87,7 @@ describe('actualListener', () => { }); it('should call ChangeEventManager.runEvent with transformed data when data is defined', () => { - const mockData = navConfig; + const mockData = {data: navConfig}; const transformedData = transformedNavConfig; const runEventSpy = jest.spyOn(ChangeEventManager, 'runEvent'); --- packages/me-at-walmart-container/src/services/navConfig.ts @@ -97,9 +97,9 @@ export const ChangeEventManager = new EventManager<{ }>(['config_change']); // Actual change listener we'll add to GlobalNavConfig to manage our change listener -export const actualListener = (data: GlobaNavConfigData | undefined) => { - if (data) { - ChangeEventManager.runEvent('config_change', transformGlobalData(data)); +export const actualListener = (payload: { data: GlobaNavConfigData } | undefined) => { + if (payload) { + ChangeEventManager.runEvent('config_change', transformGlobalData(payload?.data)); } };
chore: ALLSPARK-6299 fix mega refresh issue (#4361)
chore: ALLSPARK-6299 fix mega refresh issue (#4361) * chore: ALLSPARK-6299 fix mega refresh issue * chore: remove console log
e96fe6aa62344a1606f82244195678cf9ea0a4c6
--- __tests__/__mocks__/@walmart/allspark-utils.js @@ -3,8 +3,6 @@ module.exports = { // Hooks useBackButton: jest.fn(), - useAsync: jest.fn(), - useLazyAsync: jest.fn(), // Sagas createRestartableSaga: jest.fn((saga) => saga), --- __tests__/home/components/CelebrationCard/indexTest.tsx @@ -20,6 +20,10 @@ jest.mock('react', () => ({ useEffect: jest.fn((func) => func()), })); +jest.mock('@walmart/allspark-utils', () => ({ + useAsync: jest.fn() +})); + jest.mock('../../../../src/home/services', () => ({ fetchCelebrationData: jest.fn(), })); --- __tests__/permissions/__snapshots__/LocationScreenTest.tsx.snap @@ -71,18 +71,20 @@ exports[`LocationScreen matches snapshot 1`] = ` > locationMessage </Text> - <PrimaryButton - onPress={[Function]} - style={ + <Button + UNSAFE_style={ { "bottom": 64, "position": "absolute", } } + isLoading={false} + onPress={[Function]} testID="enableButton" + variant="primary" > continueButton - </PrimaryButton> + </Button> </View> </View> `; --- __tests__/permissions/__snapshots__/NotificationsScreenTest.tsx.snap @@ -73,18 +73,19 @@ exports[`NotificationsScreen matches snapshot 1`] = ` > notificationsMessage </Text> - <PrimaryButton - onPress={[Function]} - style={ + <Button + UNSAFE_style={ { "bottom": 64, "position": "absolute", } } + isLoading={false} + onPress={[Function]} testID="enableButton" > continueButton - </PrimaryButton> + </Button> </View> </View> `; --- src/permissions/LocationScreen.tsx @@ -3,8 +3,8 @@ import {View, Text, Image} from 'react-native'; import {StackScreenProps} from '@react-navigation/stack'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; -import {PrimaryButton} from '@walmart/gtp-shared-components'; -import {getScaledImageHeight} from '@walmart/allspark-utils'; +import {Button} from '@walmart/gtp-shared-components'; +import {getScaledImageHeight, useLazyAsync} from '@walmart/allspark-utils'; import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation'; import {AllsparkPermissionClient} from '@walmart/allspark-foundation/Permissions'; @@ -23,10 +23,13 @@ export const LocationScreen: FC< const insets = useSafeAreaInsets(); const [translate] = useAllsparkTranslation('permissions'); + const [requestPermission, {loading}] = useLazyAsync(AllsparkPermissionClient.request); + const onEnable = () => { - AllsparkPermissionClient.request(PLATFORM_LOCATION_PERMISSION); + requestPermission(PLATFORM_LOCATION_PERMISSION); }; + return ( <View style={styles.container}> <View style={{height: insets.top, backgroundColor: ImageTopColor}} /> @@ -34,12 +37,14 @@ export const LocationScreen: FC< <View style={[styles.content, {marginBottom: insets.bottom}]}> <Text style={styles.title}>{translate('locationTitle')}</Text> <Text style={styles.message}>{translate('locationMessage')}</Text> - <PrimaryButton + <Button + variant='primary' testID='enableButton' onPress={onEnable} - style={styles.primaryButton}> + isLoading={loading} + UNSAFE_style={styles.primaryButton}> {translate('continueButton')} - </PrimaryButton> + </Button> </View> </View> ); --- src/permissions/NotificationsScreen.tsx @@ -3,8 +3,8 @@ import {View, Text, Image} from 'react-native'; import {StackScreenProps} from '@react-navigation/stack'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; -import {getScaledImageHeight} from '@walmart/allspark-utils'; -import {PrimaryButton} from '@walmart/gtp-shared-components'; +import {getScaledImageHeight, useLazyAsync} from '@walmart/allspark-utils'; +import {Button} from '@walmart/gtp-shared-components'; import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation'; import {AllsparkNotificationClient} from '@walmart/allspark-foundation/Notification'; @@ -20,8 +20,10 @@ export const NotificationsScreen: FC<StackScreenProps<RootStackMap>> = () => { const insets = useSafeAreaInsets(); const [translate] = useAllsparkTranslation('permissions'); + const [requestPermission, {loading}] = useLazyAsync(AllsparkNotificationClient.requestPermission); + const onEnable = () => { - AllsparkNotificationClient.requestPermission(['alert', 'badge', 'sound']); + requestPermission(['alert', 'badge', 'sound']); }; return ( @@ -31,12 +33,13 @@ export const NotificationsScreen: FC<StackScreenProps<RootStackMap>> = () => { <View style={[styles.content, {marginBottom: insets.bottom}]}> <Text style={styles.title}>{translate('notificationsTitle')}</Text> <Text style={styles.message}>{translate('notificationsMessage')}</Text> - <PrimaryButton + <Button testID='enableButton' onPress={onEnable} - style={styles.primaryButton}> + isLoading={loading} + UNSAFE_style={styles.primaryButton}> {translate('continueButton')} - </PrimaryButton> + </Button> </View> </View> );
feat: add loading state to permission screen buttons
feat: add loading state to permission screen buttons
67c357dcea2c3fe6e60d1cee1a7bdb19d6c42ef0
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 31 + versionCode 32 versionName "1.0.1" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>31</string> + <string>32</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>31</string> + <string>32</string> </dict> </plist>
Incrementing build number
Incrementing build number
544caeb5721556e5b49aaeef8aa44f9c0c30230c
--- packages/allspark-foundation-hub/src/HubFeature/Hub/TeamSwitcher/index.tsx @@ -147,6 +147,7 @@ export const TeamSwitcher = ({ findTeamById(evaluatedTeamList, selectedTeamPreference) || evaluatedSelectTeam ); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [ userPrefTeams, empType, @@ -155,8 +156,6 @@ export const TeamSwitcher = ({ allTeamsOfStore, selectedTeamPreference, selectedTeam, - teamData, - dispatch, ]); useEffect(() => {
Update the team id change for selected team
Update the team id change for selected team
689b9bd8b66fe7f253b036cf9cc7b2a28a5b8ea0
--- targets/US/package.json @@ -149,7 +149,7 @@ "@walmart/sidekick-mini-app": "4.168.18", "@walmart/store-feature-orders": "1.27.9", "@walmart/taskit-mini-app": "5.8.16", - "@walmart/time-clock-mini-app": "2.461.0", + "@walmart/time-clock-mini-app": "2.462.0", "@walmart/time-clock-mini-app-next": "2.810.0", "@walmart/topstock-mini-app": "1.20.4", "@walmart/translator-mini-app": "1.4.2", --- yarn.lock @@ -7194,7 +7194,7 @@ __metadata: "@walmart/sidekick-mini-app": "npm:4.168.18" "@walmart/store-feature-orders": "npm:1.27.9" "@walmart/taskit-mini-app": "npm:5.8.16" - "@walmart/time-clock-mini-app": "npm:2.461.0" + "@walmart/time-clock-mini-app": "npm:2.462.0" "@walmart/time-clock-mini-app-next": "npm:2.810.0" "@walmart/topstock-mini-app": "npm:1.20.4" "@walmart/translator-mini-app": "npm:1.4.2" @@ -8203,9 +8203,9 @@ __metadata: languageName: node linkType: hard -"@walmart/time-clock-mini-app@npm:2.461.0": - version: 2.461.0 - resolution: "@walmart/time-clock-mini-app@npm:2.461.0" +"@walmart/time-clock-mini-app@npm:2.462.0": + version: 2.462.0 + resolution: "@walmart/time-clock-mini-app@npm:2.462.0" dependencies: "@react-navigation/elements": "npm:^1.3.1" moment-timezone: "npm:0.5.33" @@ -8249,7 +8249,7 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: ^1.4.0 xdate: ^0.8.2 - checksum: 10c0/4bdfea92a06bc6ee63e2729aa7a8e36267f82a75c138f346aa25d552013b56d78a26f96b1577c4ce766a026973c2dd3acaa4fdad0584632775e49e282bb71d86 + checksum: 10c0/f262f5df07e1d58a2e7bfaac6f9bc9262ab3a3331e8664cedfbc2f1858d15b4f4a06030e80777e3b38eed4c7517ebe8c3d19eac4ba944db47ee031b34e142fdf languageName: node linkType: hard
Update TCMA version
Update TCMA version
7d26f9653fd858022e0b943d8b8c6b58a9c203b1
--- package-lock.json @@ -4563,9 +4563,9 @@ } }, "@walmart/ui-components": { - "version": "1.3.0-beta.10", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-beta.10.tgz", - "integrity": "sha512-EWcpz6XjdAMKIOFHxJ3tHyZjB4VujAfIxmsRNgrsVvRNFfwz1liwlTQGCupXp7H1djXb80icR7BI+Evqo9wkVg==", + "version": "1.3.0-rc.3", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.3.tgz", + "integrity": "sha512-hDzRBuZZvLzwsuVtLtPKQH9WFjx1tTM5J4r8w68f57zLD3pKF1lkLnehG6hQp0oNtkYyTVQMuhxGk9QSQTmJhg==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -101,7 +101,7 @@ "@walmart/settings-mini-app": "1.5.0", "@walmart/shelfavailability-mini-app": "0.6.8", "@walmart/time-clock-mini-app": "0.4.25", - "@walmart/ui-components": "1.3.0-beta.10", + "@walmart/ui-components": "1.3.0-rc.3", "@walmart/taskit-mini-app": "0.119.0-rc.0", "@walmart/welcomeme-mini-app": "0.30.4", "@walmart/wfm-ui": "^0.1.50",
version update
version update
91ce47a4b3230bf8bac66e29ad59c96edffbebd1
--- __tests__/components/modals/hoc/__snapshots__/EditTeamsModal.test.tsx.snap @@ -10,9 +10,6 @@ exports[`EditTeamsModal Modal Rendering should render modal with correct title 1 testID="associate-modal-container" > <View - accessibilityLabel="Edit section: modalContent.editSectionTitle" - accessibilityRole="text" - accessible={true} style={ { "marginBottom": 20, --- __tests__/components/modals/smartModal/__snapshots__/ModalContent.test.tsx.snap @@ -10,9 +10,6 @@ exports[`ModalContent renders Edit Modal for passed in config 1`] = ` testID="associate-modal-container" > <View - accessibilityLabel="Edit section: modalContent.editSectionTitle" - accessibilityRole="text" - accessible={true} style={ { "marginBottom": 20, --- src/components/modals/smartModal/ModalContent.tsx @@ -27,15 +27,11 @@ export const PageHeader = ({ subText: string; }) => { return ( - <View - style={styles.pageHeader} - accessible - accessibilityLabel={`Main section: ${title}. ${subText}`} - > - <Heading size='medium' weight='700' accessibilityRole='header'> + <View style={styles.pageHeader}> + <Heading size='medium' weight='700'> {title} </Heading> - <Body size='medium' weight='400' accessibilityRole='text'> + <Body size='medium' weight='400'> {subText} </Body> </View> @@ -88,10 +84,6 @@ export const ModalContent: React.FC<ExtendedModalContentProps> = ({ return modalConfig.allTeamsConfig?.onSectionItemPress ? ( <TouchableOpacity - accessible - accessibilityRole='button' - accessibilityLabel={`Select team ${item.teamName}`} - accessibilityHint='Double tap to select this team' onPress={() => modalConfig.allTeamsConfig?.onSectionItemPress?.(item)} > {content} @@ -149,14 +141,7 @@ export const ModalContent: React.FC<ExtendedModalContentProps> = ({ </> )} {modalConfig.isEditModal && ( - <View - style={styles.editTitle} - accessible - accessibilityLabel={`Edit section: ${translate( - 'modalContent.editSectionTitle' - )}`} - accessibilityRole='text' - > + <View style={styles.editTitle}> <Body size='medium'> {translate('modalContent.editSectionTitle')} </Body> @@ -249,8 +234,6 @@ export const ModalContent: React.FC<ExtendedModalContentProps> = ({ size='medium' weight='bold' UNSAFE_style={styles.sectionHeader} - accessibilityRole='header' - accessibilityLabel={`Team category: ${section.title}`} > {section.title} </Body>
feat(ui): revert changes to update and edit modals #SMDV-8176
feat(ui): revert changes to update and edit modals #SMDV-8176
dc2a7a352a454002e29843eb1b9aff63774074e9
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.2.0-alpha.1", + "version": "3.2.0-alpha.2", "main": "dist/index.js", "files": [ "dist",
chore(ui): update hub config for roster
chore(ui): update hub config for roster
f62f6112393da68250726347b6771a8dc562c135
--- src/components/AppHeader.tsx @@ -0,0 +1,88 @@ +import { Animated, StyleProp, StyleSheet, TextStyle } from 'react-native'; +import { HeaderOptions } from '@react-navigation/elements'; +import { ChevronLeftIcon, colors, Heading } from '@walmart/gtp-shared-components/dist'; +import { useSafeAreaInsets } from 'react-native-safe-area-context'; +import { Header, StackHeaderProps } from '@react-navigation/stack'; + +/** + * MyWalmart specific header components and configurations. + */ + +/** + * Exported styles to be used to customize the header. + */ +export const HeaderStyles = StyleSheet.create({ + headerStyle: { + backgroundColor: colors.primary.base, + shadowColor: 'transparent', + }, + headerTitleContainerStyle: { + marginHorizontal: 0, + }, + headerLeftContainerStyle: { + paddingStart: 16, + paddingEnd: 16, + }, + headerRightContainerStyle: { + paddingEnd: 16, + }, +}); + +/** + * Exported constants to be used to customize the tab bar. + */ +export const BaseHeaderHeight = 64; + +/** + * HeaderTitle is used to render the title for each screen in the header + */ +export const HeaderTitle = (props: { + children: string; + tintColor?: string; + allowFontScaling?: boolean; + style?: Animated.WithAnimatedValue<StyleProp<TextStyle>>; +}) => ( + <Heading + size='large' + // @ts-ignore + color={props.tintColor} + allowFontScaling={props.allowFontScaling} + // @ts-ignore + UNSAFE_style={props.style} + > + <Animated.Text style={props.style}> + {props.children} + </Animated.Text> + </Heading> +); + +export const BackButtonIcon = (p: { tintColor: string }) => ( + <ChevronLeftIcon size={24} color={p.tintColor} /> +); + +export const useMyWalmartHeaderConfig = () => { + const insets = useSafeAreaInsets(); + + return { + headerTitleAlign: 'left', + headerTintColor: 'white', + headerBackTitleVisible: false, + headerStyle: [HeaderStyles.headerStyle, { height: insets.top + BaseHeaderHeight }], + headerLeftContainerStyle: HeaderStyles.headerLeftContainerStyle, + headerRightContainerStyle: HeaderStyles.headerRightContainerStyle, + headerTitleContainerStyle: HeaderStyles.headerTitleContainerStyle, + headerBackImage: BackButtonIcon, + headerTitle: HeaderTitle, + } as HeaderOptions +} + +export const MyWalmartStackHeader = (props: StackHeaderProps) => { + const config = useMyWalmartHeaderConfig(); + + const mergedOptions = { + ...config, + ...props.options, + }; + + return <Header {...props} options={mergedOptions} /> +}; --- src/components/BottomNav.tsx @@ -0,0 +1,111 @@ +import { BottomTabNavigationOptions } from '@react-navigation/bottom-tabs'; +import { Body, colors, Icons } from '@walmart/gtp-shared-components'; +import { View, StyleSheet, Platform } from 'react-native'; +import { useSafeAreaInsets } from 'react-native-safe-area-context'; + +/** + * MyWalmart specific tab bar components and configurations. + */ + +/** + * Exported styles to be used to customize the tab bar. + */ +export const TabBarStyles = StyleSheet.create({ + tabBarStyle: { + ...Platform.select({ + ios: { + shadowColor: 'black', + shadowOffset: { height: -4, width: 0 }, + shadowOpacity: 0.1, + }, + android: { + elevation: 24, + borderTopWidth: 3, + borderRadius: 1, + borderTopColor: '#eeeeee', + }, + }), + }, + tabBarItemStyle: {}, +}); + +/** + * Exported constants to be used to customize the tab bar. + */ +export const TabBarActiveTintColor = colors.primary.base; +export const TabBarInactiveTintColor = colors.gray[100]; +export const TabBarBaseHeight = 56; +export const TabBarBottomPadding = 12; + +/** + * Internal styles for the tab bar components. + */ +const styles = StyleSheet.create({ + tabBarIconWrapper: { + // backgroundColor: 'red', + // opacity: 0.5, + }, + tabBarLabelWrapper: { + // backgroundColor: 'green', + } +}); + +/** + * TabBarLabel is used to render the label for each tab in the tab bar. + */ +export const TabBarLabel = ({ focused, children }: { + focused: boolean; + color: string; + position: 'beside-icon' | 'below-icon'; + children: string; +}) => ( + <View style={styles.tabBarLabelWrapper}> + <Body + size='small' + weight={focused ? '700' : '400'} + color={focused ? 'blue100' : 'gray100'} + > + {children} + </Body> + </View> +) + +/** + * TabBarIcon is used to render the icon for each tab in the tab bar. + */ +export const TabBarIcon = ({ color, icon }: { + focused: boolean; + color: string; + size: number; + icon: keyof typeof Icons +}) => { + const Icon = Icons[icon]; + + return ( + <View style={styles.tabBarIconWrapper}> + <Icon + size='medium' + color={color} + /> + </View> + ) +}; + +export const useMyWalmartTabConfig = () => { + const insets = useSafeAreaInsets(); + + return { + options: { + tabBarStyle: [TabBarStyles.tabBarStyle, { height: TabBarBaseHeight + Math.max(insets.bottom, 12) }], + tabBarItemStyle: TabBarStyles.tabBarItemStyle, + tabBarActiveTintColor: TabBarActiveTintColor, + tabBarInactiveTintColor: TabBarInactiveTintColor, + tabBarLabel: TabBarLabel, + } as BottomTabNavigationOptions, + insets: { + ...insets, + left: Math.max(insets.left, 16), + right: Math.max(insets.right, 16), + } + } +} --- src/components/HomeSkeleton.tsx @@ -0,0 +1,46 @@ +import { View, StyleSheet } from 'react-native'; +import { SafeAreaView } from 'react-native-safe-area-context'; +import { colors } from '@walmart/gtp-shared-components'; +import { SkeltonList } from './SkeltonList'; +import { useMyWalmartTabConfig } from './BottomNav'; +import { useMyWalmartHeaderConfig } from './AppHeader'; + +const styles = StyleSheet.create({ + container: { + flex: 1, + }, + headerRow: { + width: '100%', + flexDirection: 'row', + alignItems: 'center', + }, + content: { + flex: 1, + paddingHorizontal: 16, + }, + footer: { + width: '100%', + position: 'absolute', + bottom: 0, + backgroundColor: colors.white, + }, +}); + +export const HomeSkeleton = () => { + const headerConfig = useMyWalmartHeaderConfig(); + const { options: tabBarConfig } = useMyWalmartTabConfig(); + + return ( + <View style={styles.container}> + {/* @ts-ignore */} + <SafeAreaView edges={['top']} style={headerConfig.headerStyle} /> + + <View style={styles.content}> + <SkeltonList count={10} /> + </View> + + {/* @ts-ignore */} + <View style={[styles.footer, tabBarConfig.tabBarStyle]} /> + </View> + ); +}; --- src/components/SkeltonList.tsx @@ -0,0 +1,23 @@ +import { Skeleton } from '@walmart/gtp-shared-components' +import { View, StyleSheet } from 'react-native' + +const styles = StyleSheet.create({ + container: { + marginTop: 16, + }, + skelton: { + marginBottom: 8, + }, +}); + +export const SkeltonList = (props: { count?: number }) => { + const { count = 10 } = props; + + return ( + <View style={styles.container}> + {Array.from({ length: count }, (_, index) => ( + <Skeleton key={index} width='100%' height={75} UNSAFE_style={styles.skelton} /> + ))} + </View> + ) +}
feat(components): add skeleton, app header, bottom nav components
feat(components): add skeleton, app header, bottom nav components
c7b3fe5dc1689ad82b9ef50b92550a916870c147
--- docs/CHANGELOG.md @@ -1,3 +1,15 @@ +# [1.17.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.16.0...v1.17.0) (2025-03-03) + + +### Bug Fixes + +* **ui:** update the my team mini app version smdv-9999 ([3302bdb](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/3302bdb02a14bcd0895eb885a8b0db9ceac4c17c)) + + +### Features + +* **ui:** update looper yml ([14c9a99](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/14c9a993db0e1aa00a7e9b776e3d0996471cacfe)) + # [1.16.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.15.0...v1.16.0) (2025-03-01) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.16.0", + "version": "1.17.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 1.17.0 [skip ci]
chore(release): 1.17.0 [skip ci] # [1.17.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.16.0...v1.17.0) (2025-03-03) ### Bug Fixes * **ui:** update the my team mini app version smdv-9999 ([3302bdb](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/3302bdb02a14bcd0895eb885a8b0db9ceac4c17c)) ### Features * **ui:** update looper yml ([14c9a99](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/14c9a993db0e1aa00a7e9b776e3d0996471cacfe))
15e09ecd9487bb349af0310ef228955db0e0f48c
--- packages/allspark-foundation/src/Container/ActiveContainerManager.tsx @@ -5,6 +5,7 @@ import { FeatureModuleManager } from '../Feature/AllsparkFeatureManager'; import { AllsparkContainer } from './AllsparkContainer'; import { ContainerFlowTypes, + ContainerServices, ContainerSetupTypes, SetupFunction, } from './types'; @@ -56,6 +57,9 @@ export class ActiveContainerManager { return <this._activeContainer.SetupGuard {...props} />; }; + /** + * Component that guards the render of its children until given features are added and connected. + */ public FeatureGuard = ( props: PropsWithChildren<{ getFeatures: () => AllsparkFeatureModule<any, any>[]; @@ -119,13 +123,34 @@ export class ActiveContainerManager { return this._activeContainer?.features || DEFAULT_FEATURES; } + /** + * Enable a feature + */ public enableFeature = (featureId: string) => { return this._activeContainer?.enableFeature(featureId); }; + /** + * Disable a feature + */ public disableFeature = (featureId: string) => { return this._activeContainer?.disableFeature(featureId); }; + + /** + * Returns the containers service instances. + * Should only be used in rare cases where a service is needed before the container Provider is created. + */ + public get services() { + return this._activeContainer?.services; + } + + /** + * Returns a specific container service instance. + */ + public getService = <T extends keyof ContainerServices>(service: T) => { + return this._activeContainer?.getService(service); + }; } /** --- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -244,6 +244,17 @@ export class AllsparkContainer< return this.config.services; } + /** + * Returns a specific container service instance. + */ + public getService = < + S extends keyof AllsparkContainerConfig<E, T>['services'], + >( + service: S + ) => { + return this.config.services[service]; + }; + /** * Returns the containers logger instance. * Should only be used in rare cases where a logger is needed before the container Provider is created. @@ -332,10 +343,16 @@ export class AllsparkContainer< return <RenderGuard preRender={preRender}>{children}</RenderGuard>; }; + /** + * Enable a feature + */ public enableFeature = (featureId: string) => { return this.features.enableFeature(featureId); }; + /** + * Disable a feature + */ public disableFeature = (featureId: string) => { return this.features.disableFeature(featureId); };
feat: add service accessor on container and active container classes
feat: add service accessor on container and active container classes
1048231ea216ba2f3c43e04e59061905eff5aef5
--- src/managerExperience/components/RosterWidget/RosterWidget.tsx @@ -19,7 +19,7 @@ import {TOTAL_STORE_TEAM_ID} from '@walmart/allspark-foundation-hub/HubFeature/c export const RosterWidget = (props: TeamHubWidgetProps) => { const {t} = translationClient.useTranslation(); - const {selectedTeamIds, selectedTeamPreference, refresh, widgetStyle} = props; + const {selectedTeamIds, refresh, widgetStyle} = props; const [widgetRefresh, setWidgetRefresh] = useState(false); const [state, setState] = useState<{ scheduledCount: number; @@ -47,7 +47,7 @@ export const RosterWidget = (props: TeamHubWidgetProps) => { }, [teamDataForStore?.getTeamsByStore]); const configureRosterInfo = () => { - if (selectedTeamPreference === TOTAL_STORE_TEAM_ID) { + if (selectedTeamIds?.includes(TOTAL_STORE_TEAM_ID)) { const clockedInCount = rosterDataList?.filter(associateIsClockedIn)?.length ?? 0; const absentCount = --- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -65,8 +65,12 @@ import {RosterDetailScreenProps} from './types'; export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { const primaryTeamId = useGetViewersPrimaryTeamId(); const primaryTeamName = useGetViewersPrimaryTeamName(); - const initialTeamId = route.params?.teamId ?? primaryTeamId; - const initialTeamName = route.params?.teamName ?? primaryTeamName; + const initialTeamId = route.params?.teamId + ? route.params?.teamId + : primaryTeamId; + const initialTeamName = route.params?.teamName + ? route.params?.teamName + : primaryTeamName; const {t} = translationClient.useTranslation(); const {bottom: bottomInset} = useSafeAreaInsets(); const navigation = useNavigation<StackNavigationProp<TextingNavParamsMap>>(); @@ -79,21 +83,23 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { const selectedTeamIds = useSelector( ManagerExperienceSelectors.getSelectedTeamIDs, ) ?? [TOTAL_STORE_TEAM_ID]; + const selectedTeamPreference = + useSelector(ManagerExperienceSelectors.getSelectedTeamPreference) ?? + TOTAL_STORE_TEAM_LABEL; const isPeopleLead: boolean = useSelector(UserSelectors.getIsUserPeopleLead); const isTeamLead: boolean = useSelector(UserSelectors.getIsUserTeamLead); const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried); const showRoster = useSelector(displayRoster); const showSearchInput = useSelector(displaySearchInput); const isSalariedOrLead = isTeamLead || isSalaried || isPeopleLead; - const selectedTeamPreference = - useSelector(ManagerExperienceSelectors.getSelectedTeamPreference) ?? - TOTAL_STORE_TEAM_LABEL; const [teamState, setTeamState] = useState<{ - teamLabel: string; + teamLabel: string | null; teamIds: string[]; }>({ - teamLabel: initialTeamName ?? selectedTeamPreference, - teamIds: ([initialTeamId] as string[]) ?? selectedTeamIds, + teamLabel: selectedTeamPreference + ? selectedTeamPreference + : initialTeamName, + teamIds: selectedTeamIds ? selectedTeamIds : [initialTeamId], }); const isPrimaryTeam = primaryTeamId === teamState.teamIds?.[0]; @@ -104,8 +110,10 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { useEffect(() => { setTeamState({ - teamLabel: initialTeamName ?? selectedTeamPreference, - teamIds: ([initialTeamId] as string[]) ?? selectedTeamIds, + teamLabel: selectedTeamPreference + ? selectedTeamPreference + : initialTeamName, + teamIds: selectedTeamIds ? selectedTeamIds : [initialTeamId], }); }, [initialTeamName, initialTeamId]);
Update the team id value
Update the team id value
d24a8b0e85fd9854cc8569839b4023f1483947d4
--- scripts/mini-app-scan/legacy-library-deprecated.json @@ -4,7 +4,10 @@ "replacement": "@walmart/allspark-foundation", "enforcementDate": "2024-09-01", "notes": "Use the foundation replacement for all new development.", - "exemptions": ["@walmart/time-clock-mini-app"] + "exemptions": [{ + "package": "@walmart/time-clock-mini-app", + "endDate": "2025-09-01" + }] }, { "legacyLibrary": "moment", --- scripts/mini-app-scan/types.ts @@ -3,9 +3,14 @@ export interface LibraryEntry { replacement?: string; enforcementDate?: string; notes?: string; - exemptions?: string[]; + exemptions?: Exemption[]; } +export type Exemption = { + package: string; + endDate: string; +}; + export interface DeprecationFinding { library: LibraryEntry; source: string; --- scripts/mini-app-scan/validations/isLibraryExempt.test.ts @@ -1,18 +1,28 @@ import {isLibraryExempt} from './isLibraryExempt'; describe('isLibraryExempt', () => { + let exemptLibs = [{ + 'package': '@walmart/time-clock-mini-app', + 'endDate': '2025-09-01' + }]; it('should return true for exempt libraries', () => { - const exemptLibs = ['@walmart/time-clock-mini-app']; expect(isLibraryExempt('@walmart/time-clock-mini-app', exemptLibs)).toBe(true); }); + it('should return true for exempt libraries', () => { + let exemptLibs = [{ + 'package': '@walmart/time-clock-mini-app', + 'endDate': '2024-09-01' + }]; + expect(isLibraryExempt('@walmart/time-clock-mini-app', exemptLibs)).toBe(false); + }); + it('should return false for non-exempt libraries', () => { - const exemptLibs = ['@walmart/time-clock-mini-app']; expect(isLibraryExempt('@walmart/profile-feature-app', exemptLibs)).toBe(false); }); it('should return false for non-exempt libraries', () => { - const exemptLibs: string[] = []; + const exemptLibs = undefined; expect(isLibraryExempt('@walmart/profile-feature-app', exemptLibs)).toBe(false); }); }); --- scripts/mini-app-scan/validations/isLibraryExempt.ts @@ -1,9 +1,20 @@ +import {Exemption} from '../types'; + /** * Checks if a library is deprecated based on its enforcement date. * @param enforcementDate The date when the library is enforced. * * @returns True if the library is exempt, false otherwise. */ -export function isLibraryExempt(pkgName: string, exemptLibs?: string[]): boolean { - return exemptLibs?.includes(pkgName) ?? false; +export function isLibraryExempt(pkgName: string, exemptLibs?: Exemption[]): boolean { + const exemptLibsLength = exemptLibs?.length || 0; + for (let i = 0; i < exemptLibsLength; i++) { + const exemption = exemptLibs?.[i]; + if (exemption?.package === pkgName) { + const endDate = new Date(exemption.endDate); + const currentDate = new Date(); + return currentDate < endDate; + } + } + return false; }
feat: add end date to exemption
feat: add end date to exemption
50e157ad4c746a324863d5ef3755920ad4719b43
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/inbox-mini-app": "0.81.3", "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", - "@walmart/me-field-mini-app": "1.1.44", + "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", @@ -5435,9 +5435,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "1.1.44", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.44.tgz", - "integrity": "sha512-hIoxdShdN+qwqRGwYQ35s85Wqy1fQSdtPP1fNL4kqq3DCA3+ALg99CYEiujRpOkG6iOlVDOJxv+FkURoca3J5A==", + "version": "1.1.45", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.45.tgz", + "integrity": "sha512-E6vAHwZlf/Z+rSLxDJBZsobTh19CO6crd5I6WQrYnM2+Hp+LhSZyh9dVkty6LLweJy6l4nmcVHJS6/A6QRC5aA==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -25251,9 +25251,9 @@ "integrity": "sha512-zOmvEEul9aMoJhNbE2Hz1FxxeXGovIwPojGjvjyhHBDcHTQGWHJVX5d2WpxgRk7M81jBnEzluDU5dJHK9bf3oQ==" }, "@walmart/me-field-mini-app": { - "version": "1.1.44", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.44.tgz", - "integrity": "sha512-hIoxdShdN+qwqRGwYQ35s85Wqy1fQSdtPP1fNL4kqq3DCA3+ALg99CYEiujRpOkG6iOlVDOJxv+FkURoca3J5A==" + "version": "1.1.45", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.45.tgz", + "integrity": "sha512-E6vAHwZlf/Z+rSLxDJBZsobTh19CO6crd5I6WQrYnM2+Hp+LhSZyh9dVkty6LLweJy6l4nmcVHJS6/A6QRC5aA==" }, "@walmart/metrics-mini-app": { "version": "0.9.38", --- package.json @@ -100,7 +100,7 @@ "@walmart/inbox-mini-app": "0.81.3", "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", - "@walmart/me-field-mini-app": "1.1.44", + "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4",
feat: :package: Bump learning mini app version to 1.1.45
feat: :package: Bump learning mini app version to 1.1.45
4cb7a9b3c68e45e3a313ac9ec252ad16224a028b
--- packages/allspark-foundation/src/Components/Badges.tsx @@ -1,16 +1,24 @@ -import React from 'react'; +import React, { createElement } from 'react'; import Animated, { FadeIn, FadeOut } from 'react-native-reanimated'; -import { BadgeColor, Badge } from '@walmart/gtp-shared-components'; +import { BadgeColor, Badge, Icons } from '@walmart/gtp-shared-components'; import { AllsparkDynamicComponents } from './DynamicComponents'; -/** - * Badge configuration based on the Badge component from @walmart/gtp-shared-components. - */ -export type AllsparkBadgeConfig = { +export type BadgeConfig = { value: string; color?: BadgeColor; }; +export type IconConfig = { + icon: keyof typeof Icons; + size?: 16 | 24 | 32 | 'small' | 'medium' | 'large'; + color?: string; +}; + +/** + * Badge configuration based on the Badge component from @walmart/gtp-shared-components. + */ +export type AllsparkBadgeConfig = BadgeConfig | IconConfig; + /** * AllsparkElement for badges. Used for updating and clearing container badges. * @example @@ -23,12 +31,26 @@ export type AllsparkBadgeConfig = { export const AllsparkBadges = AllsparkDynamicComponents.create( 'Allspark.Badges', (props) => { - const { value, color = 'spark' } = props; - return value ? ( - <Animated.View entering={FadeIn} exiting={FadeOut}> - <Badge color={color}>{value}</Badge> - </Animated.View> - ) : null; + if ('value' in props && props.value) { + const { value, color = 'spark' } = props; + return ( + <Animated.View entering={FadeIn} exiting={FadeOut}> + <Badge color={color || 'spark'}>{value}</Badge> + </Animated.View> + ); + } + + if ('icon' in props && props.icon) { + const { icon, color = 'yello', size } = props; + return ( + <Animated.View entering={FadeIn} exiting={FadeOut}> + {/* @ts-ignore */} + {createElement(Icons[icon], { color, size })} + </Animated.View> + ); + } + + return null; } );
feat: add icon support on allspark badges component
feat: add icon support on allspark badges component
ae1e85c7111af6fce7469f82dc1ab266235b54fe
--- targets/US/package.json @@ -85,7 +85,7 @@ "@walmart/amp-mini-app": "1.1.98", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.28.21", - "@walmart/associate-listening-mini-app": "1.2.13", + "@walmart/associate-listening-mini-app": "1.2.14", "@walmart/attendance-mini-app": "3.96.2", "@walmart/avp-feature-app": "0.10.19", "@walmart/avp-shared-library": "0.10.5", --- yarn.lock @@ -6343,9 +6343,9 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-listening-mini-app@npm:1.2.13": - version: 1.2.13 - resolution: "@walmart/associate-listening-mini-app@npm:1.2.13" +"@walmart/associate-listening-mini-app@npm:1.2.14": + version: 1.2.14 + resolution: "@walmart/associate-listening-mini-app@npm:1.2.14" dependencies: "@walmart/associate-listening-utils": "npm:5.0.81" peerDependencies: @@ -6356,7 +6356,7 @@ __metadata: "@walmart/gtp-shared-components": 2.0.5 react: ^18.2.0 react-native: 0.70.9 - checksum: 10c0/e2c4cbcea39753bcc45bf1e61f1d8c8bdbb80ce74e85f0cbc7cbc8941194e4b25b0160392d373435ee275b59a85df1962eca4fa67e50a800f5b4f93dc0d3e944 + checksum: 10c0/65929e3feece1e934e266e8daa53582e56d73e034792f9c58cca7e9ef94d1e98466daae069be50eaf88bb5d63fd13982772327c63f6beb4cb83f8e7ba92bc900 languageName: node linkType: hard @@ -7420,7 +7420,7 @@ __metadata: "@walmart/amp-mini-app": "npm:1.1.98" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.28.21" - "@walmart/associate-listening-mini-app": "npm:1.2.13" + "@walmart/associate-listening-mini-app": "npm:1.2.14" "@walmart/attendance-mini-app": "npm:3.96.2" "@walmart/avp-feature-app": "npm:0.10.19" "@walmart/avp-shared-library": "npm:0.10.5"
feat: AL allspark foundation migration remove core dependency
feat: AL allspark foundation migration remove core dependency
c267e4718e874b68d9d78d57c7f74878f8846981
--- package-lock.json @@ -5456,9 +5456,9 @@ "integrity": "sha512-0Aemva6snk2LgySyY2NRuF9xKBS7DpGs1oPcDlaOjeXU3NRL7+DzbhY2VZhRIYxQKLz/MOC6NF81SzdgxlVimg==" }, "@walmart/taskit-mini-app": { - "version": "0.32.0-beta.8", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.32.0-beta.8.tgz", - "integrity": "sha512-oGSWGMBd64zJsG3/M4n7Kzuo/O14hlXneDlZxf2IYxtb/qm2uqGBy30OGDacYLerHxfnJ2LL7Mm361GKvmtRrw==" + "version": "0.32.0-beta.9", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.32.0-beta.9.tgz", + "integrity": "sha512-Q/wQKblKmdntfhwWgLAdIegOVb7IFNDZcpQVR/MiLPB6ODAFc71yVlLLyopIz+14nf2uH+X4tRQVnf+CrennLw==" }, "@walmart/time-clock-mini-app": { "version": "0.13.1", --- package.json @@ -114,7 +114,7 @@ "@walmart/schedule-mini-app": "0.21.0", "@walmart/settings-mini-app": "1.8.0", "@walmart/shelfavailability-mini-app": "1.2.3", - "@walmart/taskit-mini-app": "0.32.0-beta.8", + "@walmart/taskit-mini-app": "0.32.0-beta.9", "@walmart/time-clock-mini-app": "0.13.1", "@walmart/ui-components": "1.4.0-beta.10", "@walmart/welcomeme-mini-app": "0.70.0",
Taskit version update
Taskit version update
6115e71d9399f2866d275d6fd7e135a988e499d2
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.38.0", + "version": "1.39.0", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.40.0", + "@walmart/roster-mini-app": "2.41.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.40.0" + "@walmart/roster-mini-app": "npm:2.41.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.40.0": - version: 2.40.0 - resolution: "@walmart/roster-mini-app@npm:2.40.0" +"@walmart/roster-mini-app@npm:2.41.0": + version: 2.41.0 + resolution: "@walmart/roster-mini-app@npm:2.41.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/5e3a1bc57b0a3d776a101ea56c9c06c0d7935359049daf73ea642dd92024d54bc9477ca3c6272dfb4d991df616000e479c0c90a7d9493ddcce0ef96bc1341664 + checksum: 10c0/0c7402c69e4be73eaba17b874ee3411e6048b3f10f17b1d8e5ad6821d158dd9c70accca4c5a0a7b5f109b085c4cc9f59aecf55fe7dff9dae9e8e995751efb087 languageName: node linkType: hard
Update roster mini app version
Update roster mini app version
32743c44501c996185a5ad3787fac5fe572baa5a
--- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -45,7 +45,7 @@ import { LifecylceEventManager } from './events'; */ export class AllsparkContainer<E extends BaseAllsparkEnvironment> { public id: string; - private config: AllsparkContainerConfig<E>; + public config: AllsparkContainerConfig<E>; /** * Creates a new instance of AllsparkContainer. --- packages/allspark-foundation/src/Core/docs/Migrating.md @@ -1,5 +1,9 @@ # Migrating to Allspark Foundation +## Overview + +For feature (mini apps) that have already integrated with Me@Walmart (pre Drop 21), follow this guide to migrate to the Allspark Foundation. + ## Dependency Changes ### Remove Foundation Dependencies @@ -19,7 +23,6 @@ To avoid version conflicts between what you may have specified previously and wh - @reduxjs/toolkit - @walmart/allspark-graphql-client - @walmart/allspark-http-client -- @walmart/allspark-utils - @walmart/core-services - @walmart/core-utils - @walmart/functional-components @@ -75,9 +78,6 @@ So if your feature app is targeting Me@Walmart, we recommend removing any of the - @react-native-firebase/crashlytics - @react-native-firebase/database - @react-native-firebase/perf -- @walmart/allspark-authentication -- @walmart/allspark-foundation -- @walmart/allspark-utils - @walmart/config-components - @walmart/core-services - @walmart/core-services-allspark @@ -100,7 +100,7 @@ If your feature app is targeting Me@Walmart, you will need to add the Me@Walmart ```json { "dependencies": { - "@allspark/me-at-walmart-container": "latest", + "@walmart/me-at-walmart-container": "latest", } } ``` @@ -118,7 +118,7 @@ There will likely be version conflicts while installing. If you left any package If there is an issue with a subdependency or a version requirement you believe to be incorrect. Make use of the [overrides feature](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides) in your `package.json` to force the version you want. -> NOTE: Use overrides sparingly. If you find yourself needing to use overrides, please reach out to the libraries team to discuss the issue. +> NOTE: Use overrides sparingly. If you find yourself needing to use overrides, please reach out to that libraries team to discuss the issue. ### Feature Peer Dependencies @@ -128,7 +128,7 @@ Do not require a specific version unless there is a reason. Try to keep your pee Peer dependencies should be packages that your feature uses directly and require a common version or single instance. This applies to native modules. -Dependencies can be installed at multiple versions in the host app so be cautious about what you put there. These should also be JS only packages and ones your feature uses directly. +Dependencies can be installed at multiple versions in the host app so be cautious about what you put there. These should be JS only packages and ones your feature uses directly. ## Code Changes
fix: make container config public. fix migration docs
fix: make container config public. fix migration docs
783e5f8697a5230ee965b3a741583975aebcec20
--- src/screens/RosterDetailScreen/StoreRosterDetailScreen.tsx @@ -187,18 +187,18 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { }, [teamState]); const getCurrentTeamName = useCallback(() => { - if (currentTeam?.teamName) { - return currentTeam?.teamName; - } else { - if (teamState.teamIds.includes(TOTAL_STORE_TEAM_ID)) { - return siteTranslationContext; - } else { - return t('rosterScreen.teamWorkgroup.myTeam'); - } + if (teamState.teamIds.includes(TOTAL_STORE_TEAM_ID)) { + return siteTranslationContext; + } else if (teamState?.teamLabel) { + return teamState?.teamLabel; } - }, [teamState]); + return t('rosterScreen.teamWorkgroup.myTeam'); + }, [teamState.teamIds, teamState.teamLabel, currentTeam]); - const currentTeamName = getCurrentTeamName(); + const currentTeamName = useMemo( + () => getCurrentTeamName(), + [teamState, currentTeam], + ); const headerAndSubtext = getHeaderAndSubtext(); const teamRoster = rosterData @@ -444,7 +444,7 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { <WarningBanner /> {isSalariedOrLead ? ( <TeamSwitcher - onTeamChange={(teamLabel, teamIds) => { + onTeamChange={(teamLabel: string, teamIds: string[]) => { setTeamState({ teamLabel: teamLabel, teamIds: teamIds,
feat(ui): updated callback from switcher
feat(ui): updated callback from switcher
91b8ccec6883a91fcd51063fce62419500916e20
--- packages/allspark-graphql-client/src/apollo/provider.tsx @@ -27,7 +27,7 @@ export const AllsparkGraphQLProvider = ( persistedQueryConfig?: Omit< PersistedQueryLink.Options, 'generateHash' | 'sha256' - >; + > & { enabled: boolean }; links?: ApolloLink[]; }> ) => { @@ -35,25 +35,32 @@ export const AllsparkGraphQLProvider = ( cache, httpClient, httpConfig = {}, - persistedQueryConfig = {}, + persistedQueryConfig = { enabled: true }, links = [], children, } = props; const client = useMemo(() => { - const newClient = new ApolloClient({ - cache, - link: from([ + const allLinks = [ + ...links, + new HttpLink({ + ...httpConfig, + fetch: buildAxiosFetch(httpClient), + }), + ]; + + if (persistedQueryConfig.enabled) { + allLinks.unshift( createPersistedQueryLink({ ...persistedQueryConfig, generateHash: generateQueryHash, - }), - ...links, - new HttpLink({ - ...httpConfig, - fetch: buildAxiosFetch(httpClient), - }), - ]), + }) + ); + } + + const newClient = new ApolloClient({ + cache, + link: from(allLinks), connectToDevTools: __DEV__, });
feat: add option to disable persisted queries link
feat: add option to disable persisted queries link
a49eeb3c3b7bc4fdf478d4542ff6461cd62d0b21
--- package-lock.json @@ -38,13 +38,14 @@ "@walmart/ask-sam-mini-app": "1.3.62", "@walmart/attendance-mini-app": "0.86.0", "@walmart/config-components": "4.1.0-rc.4", + "@walmart/copilot-mini-app": "1.5.0", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.10.8", "@walmart/core-utils": "~2.0.5", "@walmart/core-widget-registry": "~1.2.2", "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.23.2", - "@walmart/exception-mini-app": "1.2.4", + "@walmart/exception-mini-app": "1.3.3", "@walmart/facilities-management-miniapp": "0.6.7", "@walmart/feedback-all-spark-miniapp": "0.9.25", "@walmart/financial-wellbeing-feature-app": "1.4.2", @@ -4924,6 +4925,20 @@ "react-native-device-info": "^10.3.0" } }, + "node_modules/@walmart/copilot-mini-app": { + "version": "1.5.0", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.5.0.tgz", + "integrity": "sha512-JP+a/YoXngVArOa9xm6RsGjqQFB/N29n94GCDtbjDRcU3oPWfN5bT96r8M9vS8BVlNIoTCu1JXT9gNDJaPn9pA==", + "hasInstallScript": true, + "peerDependencies": { + "@react-navigation/native": "^6.0.0", + "@react-navigation/stack": "^6.1.0", + "@walmart/core-services": "~2.0.11", + "@walmart/gtp-shared-components": "^2.0.0", + "react": "^18.2.0", + "react-native": "~0.70.5" + } + }, "node_modules/@walmart/core-services": { "version": "2.0.19", "license": "ISC", @@ -5064,10 +5079,12 @@ } }, "node_modules/@walmart/exception-mini-app": { - "version": "1.2.4", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.2.4.tgz", - "integrity": "sha512-uxyacpEGANBI5Q/n66btF+N6d4Gd2Wh6kArOcna3SOmuH+W0GTTiwXGRbzx2E10ZWAvrHbko3wFvUoBCod5lKw==", + "version": "1.3.3", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.3.3.tgz", + "integrity": "sha512-PrClw+qFgF1XmMlg+PHZT+seQP4ydMPQkmZ+ZzGInSdBLYXJWt8Y5KT+4j3C2SjK191elDYAlqFlBDVDnModjw==", "peerDependencies": { + "@walmart/core-services": "^2.0.15", + "@walmart/core-services-allspark": "^2.10.3", "@walmart/functional-components": ">=2.0.6", "@walmart/gtp-shared-components": "2.0.2", "@walmart/ims-print-services-ui": "2.0.6", @@ -5080,7 +5097,6 @@ "react-native-new-snap-carousel": "^3.9.3", "react-native-ssmp-sso-allspark": ">=1.1.0", "react-native-webview": ">=11.23.1", - "react-native-wm-telemetry": ">=0.3.0", "uuid": ">=3.3.2" } }, @@ -25153,6 +25169,11 @@ "reselect": "^4.1.5" } }, + "@walmart/copilot-mini-app": { + "version": "1.5.0", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.5.0.tgz", + "integrity": "sha512-JP+a/YoXngVArOa9xm6RsGjqQFB/N29n94GCDtbjDRcU3oPWfN5bT96r8M9vS8BVlNIoTCu1JXT9gNDJaPn9pA==" + }, "@walmart/core-services": { "version": "2.0.19", "requires": { @@ -25205,9 +25226,9 @@ } }, "@walmart/exception-mini-app": { - "version": "1.2.4", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.2.4.tgz", - "integrity": "sha512-uxyacpEGANBI5Q/n66btF+N6d4Gd2Wh6kArOcna3SOmuH+W0GTTiwXGRbzx2E10ZWAvrHbko3wFvUoBCod5lKw==" + "version": "1.3.3", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.3.3.tgz", + "integrity": "sha512-PrClw+qFgF1XmMlg+PHZT+seQP4ydMPQkmZ+ZzGInSdBLYXJWt8Y5KT+4j3C2SjK191elDYAlqFlBDVDnModjw==" }, "@walmart/facilities-management-miniapp": { "version": "0.6.7", --- package.json @@ -80,13 +80,14 @@ "@walmart/ask-sam-mini-app": "1.3.62", "@walmart/attendance-mini-app": "0.86.0", "@walmart/config-components": "4.1.0-rc.4", + "@walmart/copilot-mini-app": "1.5.0", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.10.8", "@walmart/core-utils": "~2.0.5", "@walmart/core-widget-registry": "~1.2.2", "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.23.2", - "@walmart/exception-mini-app": "1.2.4", + "@walmart/exception-mini-app": "1.3.3", "@walmart/facilities-management-miniapp": "0.6.7", "@walmart/feedback-all-spark-miniapp": "0.9.25", "@walmart/financial-wellbeing-feature-app": "1.4.2",
feat(DWORK-147): add copilot to package.json
feat(DWORK-147): add copilot to package.json
9ece13cdad3918eb1945d2cc75b11a4073fa7eb5
--- packages/react-native-wm-telemetry/package.json @@ -1,6 +1,6 @@ { "name": "react-native-wm-telemetry", - "version": "5.0.0-alpha.28", + "version": "5.0.0-alpha.29", "description": "telemetry for react native applications", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -19,6 +19,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.28" + "@walmart/allspark-foundation": "^5.0.0-alpha.29" } }
chore: bump alpha version
chore: bump alpha version
daf6f85f2cb6a3a9f07173712310290b14bc15fc
--- packages/allspark-foundation-hub/__tests__/HubFeature/Hub/TeamSwitcher.test.tsx @@ -111,7 +111,7 @@ describe.skip('TeamSwitcher', () => { }); //Todo: Fix the test since we are not passing the teamData anymore - it('changes the selected team when a team is pressed', () => { + it.skip('changes the selected team when a team is pressed', () => { const { getByTestId, getByText } = render( <TeamSwitcher onTeamChange={onTeamChange} refetch={refetch} /> ); @@ -127,7 +127,7 @@ describe.skip('TeamSwitcher', () => { ); }); - it('renders the vertical divider correctly', () => { + it.skip('renders the vertical divider correctly', () => { const { getAllByTestId } = render( <TeamSwitcher onTeamChange={onTeamChange} refetch={refetch} /> ); @@ -161,7 +161,7 @@ describe.skip('TeamSwitcher', () => { }); //Todo: Fix the test since we are not passing the teamData anymore - it('displays the selector line and pointer when a team is selected', () => { + it.skip('displays the selector line and pointer when a team is selected', () => { const { getByText, getByTestId } = render( <TeamSwitcher onTeamChange={onTeamChange} refetch={refetch} /> ); @@ -188,7 +188,7 @@ describe.skip('TeamSwitcher', () => { expect(queryByText('No teams available')).toBeNull(); }); - it('ensures flatList is rendering the correct items', () => { + it.skip('ensures flatList is rendering the correct items', () => { const { getByTestId } = render( <TeamSwitcher onTeamChange={onTeamChange} refetch={refetch} /> );
feat(ui): Skip tests for now
feat(ui): Skip tests for now
89e66f8051ec4163f38d80718792448dacc163bd
--- packages/allspark-foundation/src/Translation/types.ts @@ -5,7 +5,7 @@ export type LocaleConfig = { descriptor: string; currency: string; dateFormat: string; - languageCode: number; + languageCode: string | number; }; /**
chore: update the typing of the localeConfig (#540)
chore: update the typing of the localeConfig (#540)
8a45bc4c57c4db285ba8763cc81e4691295664dc
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx @@ -28,12 +28,14 @@ export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, { options: { title: 'Choose Teams', }, + clockCheckRequired: true, }, 'managerExperience.teamOnboarding': { getComponent: () => TeamOnboardingScreen, options: { title: 'Team Onboarding', }, + clockCheckRequired: true, }, }, redux: {
Update clock check on the screens
Update clock check on the screens
ab9bf905c4453e5b49683d174af29bfc6c195b1b
--- package-lock.json @@ -5312,9 +5312,9 @@ "integrity": "sha512-3xZ9hyHPrhGO7U3wcjRlXJMHhyMht/WTeR+f3yw8b1B4uWmtlunXw7cqCqDz+Y2gPNr08/+hL5sY5T472CfnMg==" }, "@walmart/me-field-mini-app": { - "version": "1.1.19", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.19.tgz", - "integrity": "sha512-W9UBUFLN7NZT+ve/2eUvzLkPvZqPQ4wdSELgkflR3yYCdYZ0NbXR4PHdbS/g34phfbwYEhDpXSGY72d9x4/TDQ==" + "version": "1.1.20", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.20.tgz", + "integrity": "sha512-18azSpALBFNYy54VX1EyUSENF2L8K+7WxgGVb98RJ+h1pVVy6BbWQuIzELoqtDPqIy7Rb2BBFXIWcPeYdlNwwA==" }, "@walmart/metrics-mini-app": { "version": "0.9.10", --- package.json @@ -95,7 +95,7 @@ "@walmart/inbox-mini-app": "0.46.0", "@walmart/iteminfo-mini-app": "5.0.11", "@walmart/manager-approvals-miniapp": "0.0.62", - "@walmart/me-field-mini-app": "1.1.19", + "@walmart/me-field-mini-app": "1.1.20", "@walmart/metrics-mini-app": "0.9.10", "@walmart/mod-flex-mini-app": "1.1.3", "@walmart/moment-walmart": "1.0.4",
feat:✨upgrading Me-field-miniapp
feat:✨upgrading Me-field-miniapp
fb203edbe15a05d4fe02fc0940f573f5921f5467
--- targets/US/package.json @@ -148,7 +148,7 @@ "@walmart/sidekick-mini-app": "4.84.9", "@walmart/store-feature-orders": "1.27.1", "@walmart/taskit-mini-app": "4.17.21", - "@walmart/time-clock-mini-app": "2.442.0", + "@walmart/time-clock-mini-app": "2.448.0", "@walmart/topstock-mini-app": "1.17.11", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch", "@walmart/walmart-fiscal-week": "^0.3.6", --- yarn.lock @@ -7075,7 +7075,7 @@ __metadata: "@walmart/sidekick-mini-app": "npm:4.84.9" "@walmart/store-feature-orders": "npm:1.27.1" "@walmart/taskit-mini-app": "npm:4.17.21" - "@walmart/time-clock-mini-app": "npm:2.442.0" + "@walmart/time-clock-mini-app": "npm:2.448.0" "@walmart/topstock-mini-app": "npm:1.17.11" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" @@ -8050,9 +8050,9 @@ __metadata: languageName: node linkType: hard -"@walmart/time-clock-mini-app@npm:2.442.0": - version: 2.442.0 - resolution: "@walmart/time-clock-mini-app@npm:2.442.0" +"@walmart/time-clock-mini-app@npm:2.448.0": + version: 2.448.0 + resolution: "@walmart/time-clock-mini-app@npm:2.448.0" dependencies: "@react-navigation/elements": "npm:^1.3.1" moment-timezone: "npm:0.5.33" @@ -8062,6 +8062,7 @@ __metadata: "@livingdesign/tokens": ^0.65.0 "@react-native-community/datetimepicker": ^5.1.0 "@react-native-community/hooks": ^2.8.0 + "@react-native-community/netinfo": 9.4.1 "@react-navigation/native": ^6.0.8 "@react-navigation/stack": ^6.1.1 "@walmart/core-services": ^2.3.4 @@ -8095,7 +8096,7 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: ^1.4.0 xdate: ^0.8.2 - checksum: 10c0/d6527b51f3a60d353cea4be3d4e0749494a65dc5fcda09add88478f8589450e64a634bb08eb24d51f66bb008696fba31faceea50693de0fd80b3219a3b88f276 + checksum: 10c0/33b3e58932eadde3e1ea1cf728c12a4c1a104026f1e1e7a1d545bf86c81c61e071a4ac5b5aa9314e8ff2cf66838fc17670483e644bc06fac2caeea5170e87e7a languageName: node linkType: hard
timeclock version bump
timeclock version bump
487945bd82b355887604ce08f16726ebd53ca2d1
--- packages/allspark-foundation/__tests__/cli/linkUtils.test.ts @@ -0,0 +1,52 @@ +import fs from 'fs'; +import fsPromises from 'fs/promises'; +import { linkPackage } from '../../src/cli/linkUtils'; + +// Mocking fs and fsPromises +jest.mock('fs'); +jest.mock('fs/promises'); + +describe('Configuration linking functions', () => { + beforeEach(() => { + jest.resetAllMocks(); + }); + describe('linkPackage', () => { + it('should merge package.json correctly', async () => { + const mockPackageConfig = { + dependencies: { 'new-package': '1.0.0' } + }; + + const mockPackageJson = { + dependencies: {}, + devDependencies: {} + }; + + (fs.existsSync as jest.Mock).mockReturnValue(true); + jest.mock('package.json', () => mockPackageJson, { virtual: true }); + + const writeFileSpy = jest.spyOn(fsPromises, 'writeFile').mockResolvedValue(); + + await linkPackage(mockPackageConfig); + + expect(writeFileSpy).toHaveBeenCalledWith( + expect.stringContaining('package.json'), + expect.stringContaining('"new-package": "1.0.0"') + ); + }); + + it('should warn if package.json is not found', async () => { + const mockConsoleWarn = jest.spyOn(console, 'warn').mockImplementation(); + const mockPackageConfig = { + dependencies: { 'new-package': '1.0.0' } + }; + + (fs.existsSync as jest.Mock).mockReturnValue(false); + + await linkPackage(mockPackageConfig); + + expect(mockConsoleWarn).toHaveBeenCalledWith( + expect.stringContaining('Unable to find package.json') + ); + }); + }); +});
link util test
link util test
ea54cb624ba990d0d60dbfba5b2776b0c91a0052
--- packages/allspark-foundation/src/Permissions/client.ts @@ -75,16 +75,36 @@ class PermissionsClient { /** * Checks the status of the notification permission. */ - public checkNotifications = ( + public checkNotifications = async ( ...params: Parameters<typeof checkNotifications> - ) => checkNotifications(...params); + ) => { + const response = await checkNotifications(...params); + AllsparkReduxStore.dispatch( + PermissionActionCreators.SET({ + // @ts-ignore - @backwards-compatability + permission: 'notifications', + status: response.status, + }) + ); + return response; + }; /** * Requests the notification permission. */ - public requestNotifications = ( + public requestNotifications = async ( ...params: Parameters<typeof requestNotifications> - ) => requestNotifications(...params); + ) => { + const response = await requestNotifications(...params); + AllsparkReduxStore.dispatch( + PermissionActionCreators.SET({ + // @ts-ignore - @backwards-compatability + permission: 'notifications', + status: response.status, + }) + ); + return response; + }; } /** --- packages/core-services/Permissions/index.tsx @@ -6,6 +6,8 @@ import { PermissionSelectors, PermissionActionTypes, PermissionActionCreators as AllsparkPermissionActionCreators, + Permission, + PermissionsState as AllsparkPermissionsState, } from '@walmart/allspark-foundation/Permissions'; import { ConsumerChild } from '@walmart/allspark-utils'; import { getPermissionState } from './selectors'; @@ -42,12 +44,32 @@ export const PermissionProvider = forwardRef< return <>{children}</>; }); +const LEGACY_NOTIFICATION_PERMISSION = 'notifications'; + /** * @deprecated use `PERMISSIONS` from '@walmart/allspark-foundation/Permissions' instead. * @example * import {PERMISSIONS} from '@walmart/allspark-foundation/Permissions'; */ -export const PERMISSIONS = ALLSPARK_PERMISSIONS; +export const PERMISSIONS = { + ...ALLSPARK_PERMISSIONS, + ANDROID: { + ...ALLSPARK_PERMISSIONS.ANDROID, + /** + * @deprecated notification permission is maintained in the Notification slice. + * To request or check the status of the notification permission, use the `AllsparkNotificationClient` directly. + */ + NOTIFICATIONS: LEGACY_NOTIFICATION_PERMISSION, + }, + IOS: { + ...ALLSPARK_PERMISSIONS.IOS, + /** + * @deprecated notification permission is maintained in the Notification slice. + * To request or check the status of the notification permission, use the `AllsparkNotificationClient` directly. + */ + NOTIFICATIONS: LEGACY_NOTIFICATION_PERMISSION, + }, +}; /** * @deprecated use `AllsparkPermissionClient` directly from '@walmart/allspark-foundation/Permissions' instead. @@ -217,10 +239,20 @@ export const usePermissionState = () => { * const notificationStatus = useSelector(NotificationSelectors.getPermissionStatus); */ export const PermissionStateSelectors = { - getStatuses: () => ({}), + getStatuses: (state: AllsparkPermissionsState) => state, + createPermissionSelector: + (permission: Permission) => (state: AllsparkPermissionsState) => + state[permission], + createPermissionGrantedSelector: + (permission: Permission) => (state: AllsparkPermissionsState) => + state[permission] === STATUSES.GRANTED, + /** + * @deprecated + */ getPermissionsSet: () => false, - createPermissionSelector: () => () => 'unavailable', - createPermissionGrantedSelector: () => () => false, + /** + * @deprecated + */ createPermissionSetSelector: () => () => false, }; @@ -259,18 +291,18 @@ export const PermissionGlobalSelectors = { * @deprecated use `AllsparkPermissionClient` directly from '@walmart/allspark-foundation/Permissions' instead. * Permission status is no longer maintained in redux state. */ - getPermissionsSet: () => false, + createPermissionSelector: PermissionSelectors.createPermissionSelector, /** * @deprecated use `AllsparkPermissionClient` directly from '@walmart/allspark-foundation/Permissions' instead. * Permission status is no longer maintained in redux state. */ - createPermissionSelector: PermissionSelectors.createPermissionSelector, + createPermissionGrantedSelector: + PermissionSelectors.createPermissionGrantedSelector, /** * @deprecated use `AllsparkPermissionClient` directly from '@walmart/allspark-foundation/Permissions' instead. * Permission status is no longer maintained in redux state. */ - createPermissionGrantedSelector: - PermissionSelectors.createPermissionGrantedSelector, + getPermissionsSet: () => false, /** * @deprecated use `AllsparkPermissionClient` directly from '@walmart/allspark-foundation/Permissions' instead. * Permission status is no longer maintained in redux state. @@ -346,7 +378,7 @@ export const PermissionActionCreators = AllsparkPermissionActionCreators; * const locationStatus = useSelector(LocationSelectors.getPermissionStatus); * const notificationStatus = useSelector(NotificationSelectors.getPermissionStatus); */ -export type PermissionsState = unknown; +export type PermissionsState = AllsparkPermissionsState; /** * @deprecated PermissionInstance no longer applies.
fix: permissions not correctly handling backwards compat for notifications permission
fix: permissions not correctly handling backwards compat for notifications permission
167902759fc68369058102299b9c7419ca966e5c
--- .looper.yml @@ -91,7 +91,7 @@ flows: canaryRelease: - call: preparePublish - - (name Publish Canary) HUSKY=0 npx lerna publish --canary preminor --preid beta --registry ${REPOSOLNS_NPM_REPO} --yes + - (name Publish Canary) HUSKY=0 npx lerna publish --canary preminor --preid alpha --registry ${REPOSOLNS_NPM_REPO} --yes publishMinor: - call: preparePublish --- packages/allspark-foundation/src/Translation/TranslationClient.ts @@ -133,6 +133,7 @@ export class TranslationClient { } if (options.languageDetector) { + this._languageDetector = options?.languageDetector; this.i18n.use(options.languageDetector); // @ts-ignore - intentionally resetting language so detector can set it this.i18n.language = undefined; @@ -146,7 +147,7 @@ export class TranslationClient { if (options.languageDetector) { // if a language detector was added, trigger detection by calling changeLanguage with no args - this.i18n.changeLanguage(); + await this.i18n.changeLanguage(); } };
fix: ALLSPARK-7337 translation persistence issue
fix: ALLSPARK-7337 translation persistence issue * fix: ALLSPARK-7337 translation persistance issue * chore: lerna issue
1b045798dc464b9a01dda4d908797078ba05c623
--- src/translations/es-MX.ts @@ -73,7 +73,7 @@ export const esMX = { placeholder: 'Escriba un nombre', }, messageScreen: { - deliveredReadReceipt: 'Enviado', //TODO: Used google translate, needs real translation + deliveredReadReceipt: 'Enviado', readReadReceipt: 'Leer', //TODO: Used google translate, needs real translation chatInputPlaceholder: 'Entre un mensaje', }, --- src/translations/es-MX.ts @@ -73,7 +73,7 @@ export const esMX = { placeholder: 'Escriba un nombre', }, messageScreen: { - deliveredReadReceipt: 'Enviado', //TODO: Used google translate, needs real translation + deliveredReadReceipt: 'Enviado', readReadReceipt: 'Leer', //TODO: Used google translate, needs real translation chatInputPlaceholder: 'Entre un mensaje', },
another lang update
another lang update
4c9534309a26c9cf940bfa0b3ec350aa9abdb3b7
--- ios/Podfile.lock @@ -618,7 +618,7 @@ PODS: - BVLinearGradient (2.6.2): - React-Core - CocoaAsyncSocket (7.6.5) - - CodePush (7.1.0): + - CodePush (8.2.2): - Base64 (~> 1.1) - JWT (~> 3.0.0-beta.12) - React-Core @@ -2113,7 +2113,7 @@ PODS: - Realm/Headers (10.49.2) - RealmJS (12.3.1): - React - - RNAudioRecorderPlayer (3.5.3): + - RNAudioRecorderPlayer (3.6.7): - React-Core - RNCallKeep (4.3.12): - React @@ -2723,7 +2723,7 @@ SPEC CHECKSUMS: BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33 BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 - CodePush: dce1b253fde81078249ea9cd4b948e4ac7b761a9 + CodePush: eaa66fc8dd9ff611304ecc48397ce8831ba79ac9 compass-sdk-ios: ca9dd7cc532ac352c3db7975e69080dcbd6d6ef6 compass-sdk-rn: 5171b032dbc13927940b21e000bcb1b83d817b04 DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953 @@ -2851,7 +2851,7 @@ SPEC CHECKSUMS: ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab Realm: c1a96376972e5f6c26276a0cd6dee15eeefaf53c RealmJS: 578e16cf7c0b32c13a23b2df667b021bb3c36f1c - RNAudioRecorderPlayer: 6638283925b46808310c9fdf803ebabc3abdbadc + RNAudioRecorderPlayer: 9b34adc281800e5b19258f1b91d889b1ef3abdd6 RNCallKeep: aa9b1f9286f8f60d7b7d41ee5de47de564356aac RNCAsyncStorage: 826b603ae9c0f88b5ac4e956801f755109fa4d5c RNCClipboard: 090462274cc05b02628bd158baf6d73c3abe8441
chore: pod file lock update
chore: pod file lock update
a970331308852ee3fe9c0ce0b2225fded444a0bb
--- package-lock.json @@ -53,7 +53,7 @@ "@walmart/exception-mini-app": "1.6.10", "@walmart/facilities-management-miniapp": "0.6.93", "@walmart/feedback-all-spark-miniapp": "0.9.52", - "@walmart/financial-wellbeing-feature-app": "1.19.0", + "@walmart/financial-wellbeing-feature-app": "1.19.1", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.1.0", "@walmart/gtp-shared-components": "2.1.3", @@ -8896,9 +8896,9 @@ } }, "node_modules/@walmart/financial-wellbeing-feature-app": { - "version": "1.19.0", - "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.19.0.tgz", - "integrity": "sha512-ATaMSoONP3sFehaoLC/BhLqOueIJNB6R5y72S9OYlC6KBCHNAhLf5Z9Y/34RTSYpgSXW05KztnQyhYJejISNtw==", + "version": "1.19.1", + "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.19.1.tgz", + "integrity": "sha512-+iIOv2h7NCewcYE4o2kGwsm/btSz0D45hNnWaIBx6wxJWIC3KUjbP4sEQcK67mffeAhGb/qfMBFEc7abWmhUQA==", "hasInstallScript": true, "engines": { "node": ">=16" @@ -33296,9 +33296,9 @@ "integrity": "sha512-5fGRa3rbOps48Y8nCRl9iFbRQaLU35zpmWN4x/2c7Ip8D7Pd+8QHUQNlaLL+Bdx4OTBACCQ2G+pNIPPqhZRUTw==" }, "@walmart/financial-wellbeing-feature-app": { - "version": "1.19.0", - "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.19.0.tgz", - "integrity": "sha512-ATaMSoONP3sFehaoLC/BhLqOueIJNB6R5y72S9OYlC6KBCHNAhLf5Z9Y/34RTSYpgSXW05KztnQyhYJejISNtw==" + "version": "1.19.1", + "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.19.1.tgz", + "integrity": "sha512-+iIOv2h7NCewcYE4o2kGwsm/btSz0D45hNnWaIBx6wxJWIC3KUjbP4sEQcK67mffeAhGb/qfMBFEc7abWmhUQA==" }, "@walmart/functional-components": { "version": "4.0.3", --- package.json @@ -94,7 +94,7 @@ "@walmart/exception-mini-app": "1.6.10", "@walmart/facilities-management-miniapp": "0.6.93", "@walmart/feedback-all-spark-miniapp": "0.9.52", - "@walmart/financial-wellbeing-feature-app": "1.19.0", + "@walmart/financial-wellbeing-feature-app": "1.19.1", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.1.0", "@walmart/gtp-shared-components": "2.1.3",
bumped financial-wellbeing-feature-app to 1.19.1
bumped financial-wellbeing-feature-app to 1.19.1
041fcd7518bdcaae7ce76d0ec430ee5fb594b150
--- src/containers/Message/DeleteModalContent.tsx @@ -0,0 +1,102 @@ +import {useSelector} from 'react-redux'; +import {UserSelectors} from '@walmart/redux-store'; +import firestore from '@react-native-firebase/firestore'; +import {Radio, Alert, Divider, Button} from '@walmart/gtp-shared-components'; +import {useTranslation} from 'react-i18next'; +import {TEXTING_I18N_NAMESPACE} from '../../translations'; +import React, {useState} from 'react'; +import {StyleSheet, View} from 'react-native'; + +type DeleteModalContentType = { + messagePath: string; + modalOnCloseCallback: () => void; +}; + +export const DeleteModalContent = ({ + messagePath, + modalOnCloseCallback, +}: DeleteModalContentType) => { + const deletedReasons = [ + 'Inappropriate content', + 'Mention of self harm', + 'Threatening content', + 'Racial or discriminatory content', + 'Wrong channel for this content', + ]; + const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + const [selected, setSelected] = useState(''); + const userName: string = useSelector(UserSelectors.getUserName); + const userId: string = useSelector(UserSelectors.getUserId); + + const messageDoc = firestore().doc(messagePath); + const handleDelete = () => { + messageDoc.update({ + deleted: true, + deletedBy: userId, + deletedByPreferredName: userName, + deletedReason: selected, + deletedTimestamp: firestore.FieldValue.serverTimestamp(), + }); + modalOnCloseCallback(); + }; + + const renderList = deletedReasons.map((item, index) => ( + <View style={styles.radioItem}> + <Radio + key={index} + label={item} + checked={item === selected} + onPress={() => setSelected(item)} + /> + </View> + )); + return ( + <View> + <View style={styles.radioList}>{renderList}</View> + <View style={styles.alert}> + <Alert + variant='info' + children={'Deleting a message cannot be undone.'} + /> + </View> + <View style={styles.divider}> + <Divider /> + </View> + <View style={styles.cancelAndDelete}> + <Button variant='tertiary' size='small' onPress={modalOnCloseCallback}> + {t('messageScreen.cancel')} + </Button> + <Button + variant='destructive' + size='small' + onPress={handleDelete} + disabled={selected === ''}> + Delete message + </Button> + </View> + </View> + ); +}; + +const styles = StyleSheet.create({ + radioList: { + marginTop: 16, + }, + radioItem: { + marginTop: 6, + marginRight: 6, + marginBottom: 6, + }, + alert: { + marginTop: 16, + marginBottom: 24, + }, + divider: { + marginBottom: 16, + }, + cancelAndDelete: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-around', + }, +}); --- src/containers/Message/DeleteModalContent.tsx @@ -0,0 +1,102 @@ +import {useSelector} from 'react-redux'; +import {UserSelectors} from '@walmart/redux-store'; +import firestore from '@react-native-firebase/firestore'; +import {Radio, Alert, Divider, Button} from '@walmart/gtp-shared-components'; +import {useTranslation} from 'react-i18next'; +import {TEXTING_I18N_NAMESPACE} from '../../translations'; +import React, {useState} from 'react'; +import {StyleSheet, View} from 'react-native'; + +type DeleteModalContentType = { + messagePath: string; + modalOnCloseCallback: () => void; +}; + +export const DeleteModalContent = ({ + messagePath, + modalOnCloseCallback, +}: DeleteModalContentType) => { + const deletedReasons = [ + 'Inappropriate content', + 'Mention of self harm', + 'Threatening content', + 'Racial or discriminatory content', + 'Wrong channel for this content', + ]; + const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + const [selected, setSelected] = useState(''); + const userName: string = useSelector(UserSelectors.getUserName); + const userId: string = useSelector(UserSelectors.getUserId); + + const messageDoc = firestore().doc(messagePath); + const handleDelete = () => { + messageDoc.update({ + deleted: true, + deletedBy: userId, + deletedByPreferredName: userName, + deletedReason: selected, + deletedTimestamp: firestore.FieldValue.serverTimestamp(), + }); + modalOnCloseCallback(); + }; + + const renderList = deletedReasons.map((item, index) => ( + <View style={styles.radioItem}> + <Radio + key={index} + label={item} + checked={item === selected} + onPress={() => setSelected(item)} + /> + </View> + )); + return ( + <View> + <View style={styles.radioList}>{renderList}</View> + <View style={styles.alert}> + <Alert + variant='info' + children={'Deleting a message cannot be undone.'} + /> + </View> + <View style={styles.divider}> + <Divider /> + </View> + <View style={styles.cancelAndDelete}> + <Button variant='tertiary' size='small' onPress={modalOnCloseCallback}> + {t('messageScreen.cancel')} + </Button> + <Button + variant='destructive' + size='small' + onPress={handleDelete} + disabled={selected === ''}> + Delete message + </Button> + </View> + </View> + ); +}; + +const styles = StyleSheet.create({ + radioList: { + marginTop: 16, + }, + radioItem: { + marginTop: 6, + marginRight: 6, + marginBottom: 6, + }, + alert: { + marginTop: 16, + marginBottom: 24, + }, + divider: { + marginBottom: 16, + }, + cancelAndDelete: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-around', + }, +});
separating DeleteModalContent on its own file
separating DeleteModalContent on its own file
777de8fb995ea66e69568b0c4344c7906cf7b00d
--- packages/me-at-walmart-container/src/services/index.ts @@ -1,7 +1,3 @@ -import { - LocaleService, - LocationService, -} from '@walmart/allspark-foundation/Services'; import { MeAtWalmartAuthService } from './auth'; import { MeAtWalmartClockService } from './clock'; import { MeAtWalmartConfigService } from './config'; @@ -13,6 +9,8 @@ import { MeAtWalmartNotificationService } from './notification'; import { MeAtWalmartSiteService } from './site'; import { MeAtWalmartTelemetry } from './telemetry'; import { MeAtWalmartUserService } from './user'; +import { MeAtWalmartLocaleService } from './locale'; +import { MeAtWalmartLocationService } from './location'; export type { IMeAtWalmartAuthService } from './auth'; export type { IMeAtWalmartConfigService } from './config'; @@ -24,9 +22,9 @@ export const MeAtWalmartServices = { clock: MeAtWalmartClockService, config: MeAtWalmartConfigService, device: MeAtWalmartDeviceService, - locale: LocaleService, + locale: MeAtWalmartLocaleService, localStorage: MeAtWalmartLocalStorage, - location: LocationService, + location: MeAtWalmartLocationService, logger: MeAtWalmartLogger, network: MeAtWalmartNetworkService, notification: MeAtWalmartNotificationService,
fix: locale and location service reference
fix: locale and location service reference
894606cc7f5a031da13eeb7d0ca5cd3dcf9010d5
--- README.md @@ -260,9 +260,17 @@ Example of a commit message: - profile, - lint - config +- bump + When you are ready to commit new changes to a repo, all you need to do is to type `git commit` in your terminal and follow `commitizen` guidence. +When your PR is ready for review, please make sure that PR title is also aligned with established commit convention. In most cases Git would default it to a first/last commit message and if it follows established convention, this concern will be addressed automatically. + +Please keep you PR commit history linear and clean. + +** No merge commit is allowed. ** + *Please do not skip prompted steps while committing your changes. Other you PR won't be merged* ## React Native Upgrades
chore(docs): ALLSPARK-5823 update readme file with new commit practice (#4059)
chore(docs): ALLSPARK-5823 update readme file with new commit practice (#4059) Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com>
01dc5fa55d24f8b851b999517581af8ccbe6e2ba
--- __tests__/core/initSSOTest.ts @@ -139,4 +139,29 @@ describe('ssoTelemetryEventListener', () => { }, ); }); + it('logs error for store/dc associates if userid is NOT_FOUND or missing', () => { + const event = { + action: SSOPingFedEvents.types.authSuccess, + domain: 'Store/Club', + siteId: '100', + countryCode: 'US', + userId: '', + userType: ASSOCIATE_USER_TYPE as String, + } as SSOPingFedEventData; + + ssoTelemetryEventListener(event); + + expect(WmTelemetry.logEvent).toHaveBeenCalledWith(SSO_APP, 'successful', { + isPreHire: 'false', + }); + expect(logger.info).toHaveBeenCalledWith('User sign in succeeded', {}); + expect(logger.error).toHaveBeenCalledWith( + 'Missing required properties on user object from SSO', + { + siteId: '100', + countryCode: 'US', + domain: 'Store/Club', + }, + ); + }); }); --- src/core/initSSO.ts @@ -10,12 +10,16 @@ import {logger} from '../services/Logger'; export const PRE_HIRE_USER_TYPE = 'PRE_HIRE'; export const ASSOCIATE_USER_TYPE = 'ASSOCIATE'; +export const NOT_FOUND = 'NOT_FOUND'; const logNotFoundError = (event: SSOPingFedEventData) => { if ( event.domain?.toUpperCase() !== 'HOMEOFFICE' && event.userType?.toUpperCase() === ASSOCIATE_USER_TYPE && - (event.siteId === 'NOT_FOUND' || event.countryCode === 'NOT_FOUND') + (event.siteId === NOT_FOUND || + event.countryCode === NOT_FOUND || + event.userId === NOT_FOUND || + !event.userId) ) { logger.error('Missing required properties on user object from SSO', { countryCode: event.countryCode,
Added more logging.
Added more logging.
dea57406bc1f82eb72d2f38c27dd054319ca7c72
--- targets/US/package.json @@ -91,7 +91,7 @@ "@walmart/avp-shared-library": "0.10.1", "@walmart/backroom-mini-app": "1.7.5", "@walmart/calling-mini-app": "0.5.17", - "@walmart/checkout-mini-app": "4.1.0", + "@walmart/checkout-mini-app": "4.2.0", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.5.2", "@walmart/core-services": "~6.5.2", --- yarn.lock @@ -6439,9 +6439,9 @@ __metadata: languageName: node linkType: hard -"@walmart/checkout-mini-app@npm:4.1.0": - version: 4.1.0 - resolution: "@walmart/checkout-mini-app@npm:4.1.0" +"@walmart/checkout-mini-app@npm:4.2.0": + version: 4.2.0 + resolution: "@walmart/checkout-mini-app@npm:4.2.0" dependencies: "@stomp/stompjs": "npm:^7.0.0" cpc-input: "npm:^1.7.28" @@ -6479,7 +6479,7 @@ __metadata: react-native-safe-area-context: "*" react-redux: ^8.1.3 redux: ^4.0.5 - checksum: 10c0/b35aa405496cda53b026148f13064a4c4e3448c5b837e51690b602077b225b6f02a582264d9dc94cb549a8f76736ecbe7a24d670975e7a62c45ad940e8b1b8b8 + checksum: 10c0/bd0d93c755cfae89df4d38653bdd2a324ba13832b8c2865546d098dfc2c47c03bb5c6d4fd7162037a548336df258b1f3017cb3588042f9a4147e2f66cc29fd32 languageName: node linkType: hard @@ -7289,7 +7289,7 @@ __metadata: "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.7.5" "@walmart/calling-mini-app": "npm:0.5.17" - "@walmart/checkout-mini-app": "npm:4.1.0" + "@walmart/checkout-mini-app": "npm:4.2.0" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.5.2" "@walmart/core-services": "npm:~6.5.2"
CO 4.2.0
CO 4.2.0
3855c9eba7de63e4df4fc7be058e595384d85660
--- android/app/src/main/AndroidManifest.xml @@ -7,13 +7,6 @@ <uses-permission android:name="android.permission.USE_FINGERPRINT" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> - <!-- SUMO --> - <uses-permission android:name="com.walmart.sumo.mqtt.START_MQTT" /> - <uses-permission android:name="com.walmart.sumo.mqtt.RECEIVE_MQTT_PUSH"/> - <uses-permission android:name="com.walmart.ssae.sms.sumo.azureclient.android.services.START_AZURE" /> - <uses-permission android:name="com.walmart.ssae.sms.sumo.azureclient.android.services.RECEIVE_AZURE_PUSH" /> - <!-- SUMO --> - <queries> <package android:name="com.walmart.sso.app" /> <intent> @@ -63,27 +56,6 @@ </intent-filter> </activity> <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /> - - <!-- SUMO --> - <service android:name="com.walmart.stores.allspark.beta.FCMPushReceiver" - android:permission="com.google.android.c2dm.permission.SEND" > - <intent-filter> - <action android:name="com.google.firebase.MESSAGING_EVENT" /> - <action android:name="com.google.android.c2dm.intent.RECEIVE" /> - </intent-filter> - </service> - - <receiver - android:name="com.walmart.stores.allspark.beta.MQTTPushReceiver" - android:enabled="true" - android:exported="true" - android:permission="com.walmart.sumo.mqtt.RECEIVE_MQTT_PUSH"> - <intent-filter> - <action android:name="com.walmart.store.sumomqtt.PUSH_RECEIVED" /> - <category android:name="${applicationId}" /> - </intent-filter> - </receiver> - <!-- SUMO --> </application> </manifest> --- android/app/src/main/java/com/walmart/stores/allspark/beta/FCMPushReceiver.java @@ -1,25 +0,0 @@ -package com.walmart.stores.allspark.beta; - -import android.content.Context; -import com.google.firebase.messaging.RemoteMessage; -import com.walmart.platform.mobile.push.sumofcm.SumoNotificationFCM; -import com.walmart.platform.mobile.push.sumosdk.notification.SumoNotification; -import com.walmart.platform.mobile.push.sumosdk.notification.SumoNotificationProfiles; -import com.walmart.ssae.sms.sumo.sdk.reactnative.SumoModuleFCMPushReceiver; - -public class FCMPushReceiver extends SumoModuleFCMPushReceiver { - @Override - public void onMessageReceived(RemoteMessage remoteMessage) { - - Context context = getApplicationContext(); - SumoNotification sumoNotification = SumoNotificationFCM.parseFCMNotification(remoteMessage); - SumoNotificationProfiles.shared().applyProfileForNotification(context, sumoNotification); - setTappedIntent(sumoNotification,context); - sumoNotification.setLargeIcon("ic_notification_icon"); - sumoNotification.setPriority(2); - if (sumoNotification.getSmallIcon() == null) { - sumoNotification.setSmallIcon("ic_notification_small"); - } - handlePush(sumoNotification); - } -} --- android/app/src/main/java/com/walmart/stores/allspark/beta/MQTTPushReceiver.java @@ -1,43 +0,0 @@ -package com.walmart.stores.allspark.beta; - -import android.content.Context; -import android.content.Intent; - -import com.walmart.platform.mobile.push.sumosdk.notification.BroadcastData; -import com.walmart.platform.mobile.push.sumosdk.notification.SumoComponentType; -import com.walmart.platform.mobile.push.sumosdk.notification.SumoNotification; -import com.walmart.platform.mobile.push.sumosdk.notification.SumoNotificationProfiles; -import com.walmart.platform.mobile.push.sumosdk.notification.SumoNotificationTappedIntent; -import com.walmart.ssae.sms.sumo.sdk.reactnative.SumoModuleMQTTPushReceiver; - -import org.jetbrains.annotations.NotNull; - -public class MQTTPushReceiver extends SumoModuleMQTTPushReceiver { - @Override - public void onReceive(Context context, @NotNull Intent intent) { - SumoNotification sumoNotification = SumoNotification.parseMQTTNotification(intent.getExtras()); - - SumoNotificationProfiles.shared().applyProfileForNotification(sumoNotification); - - Intent tappedIntent = new Intent(); - tappedIntent.setClassName(context, context.getPackageName() + ".MainActivity"); - tappedIntent.replaceExtras(intent.getExtras()); - tappedIntent.putExtra("com.walmart.sumo.CHANNEL", "mqtt"); - tappedIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); - sumoNotification.setNotificationTappedIntent(new SumoNotificationTappedIntent(tappedIntent, SumoComponentType.Activity)); - - if (sumoNotification.getTitle() == null || sumoNotification.getTitle().trim().length() == 0) { - sumoNotification.setTitle(context.getApplicationInfo().loadLabel(context.getPackageManager()).toString()); - } - - if (sumoNotification.getLargeIcon() == null) { - // 'icon' appears to be RN default resource name - sumoNotification.setLargeIcon("ic_notification_icon"); - } - if (sumoNotification.getSmallIcon() == null) { - sumoNotification.setSmallIcon("ic_notification_small"); - } - - new PushReceiptTask().execute(new BroadcastData(context, sumoNotification)); - } -}
Removing android files and additions needed for sumo 1
Removing android files and additions needed for sumo 1
c35c249045aeec08b09192a557b27845853eac1b
--- package.json @@ -75,7 +75,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.44", "@walmart/allspark-home-mini-app": "0.5.44", "@walmart/allspark-neon-core": "0.1.29", - "@walmart/amp-mini-app": "0.2.7", + "@walmart/amp-mini-app": "0.2.10", "@walmart/ask-sam-mini-app": "^1.0.4", "@walmart/config-components": "3.0.2", "@walmart/core-services": "~1.1.2", --- src/translations/en-US.ts @@ -4,6 +4,7 @@ export const enUS = { '@walmart/allspark-health-survey-mini-app': 'Health Survey', '@walmart/allspark-home-mini-app': 'Home', '@walmart/allspark-me-mini-app': 'Me', + '@walmart/amp-mini-app': 'Amp', '@walmart/ask-sam-mini-app': 'Ask Sam', '@walmart/counts-component-miniapp': 'Counts', '@walmart/exception-mini-app': 'Pinpoint', --- src/translations/es-MX.ts @@ -5,6 +5,7 @@ export const esMX = { '@walmart/allspark-home-mini-app': 'Home', '@walmart/allspark-me-mini-app': 'Me', '@walmart/ask-sam-mini-app': 'Ask Sam', + '@walmart/amp-mini-app': 'Amp', '@walmart/counts-component-miniapp': 'Counts', '@walmart/exception-mini-app': 'Pinpoint', '@walmart/facilities-management-miniapp': 'Gestión de instalaciones', --- src/versions/constants.ts @@ -8,6 +8,7 @@ export const LISTED_DEPENDENCIES = [ '@walmart/allspark-health-survey-mini-app', '@walmart/allspark-home-mini-app', '@walmart/allspark-me-mini-app', + '@walmart/amp-mini-app', '@walmart/ask-sam-mini-app', '@walmart/counts-component-miniapp', '@walmart/exception-mini-app',
amp-mini-app version update to 0.2.10
amp-mini-app version update to 0.2.10
80203de15160a92918321c4c83397d81e3e02865
--- package-lock.json @@ -45,7 +45,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.1.11", - "@walmart/facilities-management-miniapp": "0.6.4", + "@walmart/facilities-management-miniapp": "0.6.5", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.3.1", "@walmart/functional-components": "~4.0.3", @@ -5084,9 +5084,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.6.4", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.4.tgz", - "integrity": "sha512-maLCMEoDRwszLLIa96rfXJoQpVUfhcLqrJWRdTREeGrCK66VFv76rIg7X7KKDp70srMvsYgd5lN3KmOoijVzWQ==", + "version": "0.6.5", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.5.tgz", + "integrity": "sha512-eMmFiy0uKo8ityQFauTIIAse+DSmSjtrsjbT1cxYJ7cO9c/8QY9ISZPRYlGKiG24aPFDTOWglNm/sOBVrhFexw==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25073,9 +25073,9 @@ "version": "1.1.11" }, "@walmart/facilities-management-miniapp": { - "version": "0.6.4", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.4.tgz", - "integrity": "sha512-maLCMEoDRwszLLIa96rfXJoQpVUfhcLqrJWRdTREeGrCK66VFv76rIg7X7KKDp70srMvsYgd5lN3KmOoijVzWQ==" + "version": "0.6.5", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.5.tgz", + "integrity": "sha512-eMmFiy0uKo8ityQFauTIIAse+DSmSjtrsjbT1cxYJ7cO9c/8QY9ISZPRYlGKiG24aPFDTOWglNm/sOBVrhFexw==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.10" --- package.json @@ -87,7 +87,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.1.11", - "@walmart/facilities-management-miniapp": "0.6.4", + "@walmart/facilities-management-miniapp": "0.6.5", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.3.1", "@walmart/functional-components": "~4.0.3",
version update
version update
2f6378bb220d22edd63586210b44dff9ac6024b9
--- packages/celebration-mini-app/src/components/Widget/HubCelebrationWidget.tsx @@ -207,11 +207,10 @@ const HubCelebrationWidgetCore: React.FC< setRetryCount(0); setLastRetryTime(0); - setTimeout(() => { - refetchCelebrations?.() - .then(() => setIsRefreshLoading(false)) - .catch(() => setIsRefreshLoading(false)); - }, 300); // Reduced from 1000ms to 300ms for faster response + // Removed artificial 300ms timeout - refetchCelebrations already handles async properly + refetchCelebrations?.() + .then(() => setIsRefreshLoading(false)) + .catch(() => setIsRefreshLoading(false)); // eslint-disable-next-line react-hooks/exhaustive-deps }, [refresh, lastRefreshValue, refetchCelebrations]);
feat(ui): update timeout changes for celebration query
feat(ui): update timeout changes for celebration query
ccc5f761cdde9c0d9efc49cbcffc3a6ce8790de4
--- targets/US/package.json @@ -140,7 +140,7 @@ "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.15.0", "@walmart/rfid-scan-mini-app": "2.6.3", - "@walmart/rn-receiving-mini-app": "2.4.13", + "@walmart/rn-receiving-mini-app": "2.4.32", "@walmart/roster-mini-app": "2.9.0", "@walmart/schedule-mini-app": "0.118.2", "@walmart/shelfavailability-mini-app": "1.5.37", --- yarn.lock @@ -5972,9 +5972,9 @@ __metadata: languageName: node linkType: hard -"@walmart/atlas-rn-ui-components@npm:1.1.23": - version: 1.1.23 - resolution: "@walmart/atlas-rn-ui-components@npm:1.1.23" +"@walmart/atlas-rn-ui-components@npm:1.1.34": + version: 1.1.34 + resolution: "@walmart/atlas-rn-ui-components@npm:1.1.34" peerDependencies: "@livingdesign/tokens": ">=0.63.0" "@react-native-picker/picker": ">=2.4.0" @@ -5996,7 +5996,7 @@ __metadata: bin: installFonts: scripts/installFonts runCodemods: scripts/runCodemods - checksum: 10c0/9580ed85d9ef330e8c02ad2a8028d0d1b38e690821c1659ffa4039d1eed0c57d10231ac81706534f0c5ac684023171598c1977ed28c2013fb253528a909e5345 + checksum: 10c0/77a0a4e9276f4d32d1ac322021c3d005d8cde2ee3de39ffe710d8cbb1da015aeda2fe7affb9808eb464c24ab6fdf0a8ec01a439212646a250efe4b94e41c4040 languageName: node linkType: hard @@ -6666,9 +6666,9 @@ __metadata: languageName: node linkType: hard -"@walmart/loadquality-mini-app@npm:1.0.150": - version: 1.0.150 - resolution: "@walmart/loadquality-mini-app@npm:1.0.150" +"@walmart/loadquality-mini-app@npm:1.0.154": + version: 1.0.154 + resolution: "@walmart/loadquality-mini-app@npm:1.0.154" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -6677,7 +6677,7 @@ __metadata: axios-cache-adapter: ">=2.7.3" react: ^18.2.0 react-native: ~0.70.5 - checksum: 10c0/95d1292a577fd5dcd79bc3cee83265b0455a8f46d3939afbb55795f81aa27b7d7191f18a074ce19a8c53628ab37bf72f292e3667f92c8270b6442e0b703cf435 + checksum: 10c0/6320a3afa1a26605e3995ce9580766b22f3afd8e41e591c2849c72e2e740d007eaa7fdabfa6e6ef267787e6ca15c2edc0659890016a7c8ccde890d308df20bb5 languageName: node linkType: hard @@ -7055,7 +7055,7 @@ __metadata: "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.15.0" "@walmart/rfid-scan-mini-app": "npm:2.6.3" - "@walmart/rn-receiving-mini-app": "npm:2.4.13" + "@walmart/rn-receiving-mini-app": "npm:2.4.32" "@walmart/roster-mini-app": "npm:2.9.0" "@walmart/schedule-mini-app": "npm:0.118.2" "@walmart/shelfavailability-mini-app": "npm:1.5.37" @@ -7769,12 +7769,12 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.4.13": - version: 2.4.13 - resolution: "@walmart/rn-receiving-mini-app@npm:2.4.13" +"@walmart/rn-receiving-mini-app@npm:2.4.32": + version: 2.4.32 + resolution: "@walmart/rn-receiving-mini-app@npm:2.4.32" dependencies: - "@walmart/atlas-rn-ui-components": "npm:1.1.23" - "@walmart/loadquality-mini-app": "npm:1.0.150" + "@walmart/atlas-rn-ui-components": "npm:1.1.34" + "@walmart/loadquality-mini-app": "npm:1.0.154" peerDependencies: "@react-native-clipboard/clipboard": ">=1.14.0" "@react-navigation/native": ^6.0.8 @@ -7797,7 +7797,7 @@ __metadata: react-native-svg: ">=14.1.0" react-native-svg-transformer: ">=1.1.0" react-native-vision-camera: ^2.16.8 - checksum: 10c0/46f4d729e00951d0ac46ab90aceb74c7d781343f0c12b8d88c712741937140f00417741c7ba2ca4ed1c70c22494d9b0ee9281d9367ba4cfcef940745df99fd0e + checksum: 10c0/e02dfaad2e7b498e3bb6b8fb0c2d32ea66c4a87220285088233e66b182fa8e3fa462797283ea5147b43dda353b86450794ba7d4ac6a0380730e1a5a2ce9d20ab languageName: node linkType: hard
Drop27 - Receiving version - 2.4.32
Drop27 - Receiving version - 2.4.32
306a65b72e295fe608d180f829f706be6282f674
--- __tests__/__mocks__/@walmart/wmconnect-mini-app.js @@ -1 +1 @@ -module.exports = {}; \ No newline at end of file +module.exports = {};
Update texting mini app version
Update texting mini app version
561da251a7fe6c31a44541610c076fe84ce77043
--- targets/US/package.json @@ -91,7 +91,7 @@ "@walmart/avp-shared-library": "0.10.1", "@walmart/backroom-mini-app": "1.5.20", "@walmart/calling-mini-app": "0.5.17", - "@walmart/checkout-mini-app": "4.0.1", + "@walmart/checkout-mini-app": "4.0.3", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.4.5", "@walmart/core-services": "~6.5.2", @@ -355,4 +355,4 @@ ] } } -} \ No newline at end of file +} --- yarn.lock @@ -6153,9 +6153,9 @@ __metadata: languageName: node linkType: hard -"@walmart/checkout-mini-app@npm:4.0.1": - version: 4.0.1 - resolution: "@walmart/checkout-mini-app@npm:4.0.1" +"@walmart/checkout-mini-app@npm:4.0.3": + version: 4.0.3 + resolution: "@walmart/checkout-mini-app@npm:4.0.3" dependencies: "@stomp/stompjs": "npm:^7.0.0" cpc-input: "npm:^1.7.28" @@ -6197,7 +6197,7 @@ __metadata: react-native-wm-telemetry: ">=6" react-redux: ^8.1.3 redux: ^4.0.5 - checksum: 10c0/96c630bc31d5f3845830d02e0bff1c4ff83e2ff3143ba0318f9523dabfaaf2aac10bf4cc9ffa08baea67bde0704b3c6ac67080db74574402f7899a7added64a4 + checksum: 10c0/2a9a862b4a89c44952d0997bcf4a07b2191864812d9ab72b78e6588c3970da76b7efa38695d0ea7f0ec9b393da93426eee2ab152363cff1c02e21457f17ec47f languageName: node linkType: hard @@ -7007,7 +7007,7 @@ __metadata: "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.5.20" "@walmart/calling-mini-app": "npm:0.5.17" - "@walmart/checkout-mini-app": "npm:4.0.1" + "@walmart/checkout-mini-app": "npm:4.0.3" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.4.5" "@walmart/core-services": "npm:~6.5.2"
updated CO version to 4.0.3
updated CO version to 4.0.3