[NoQA] [HR Import] Add MERGE_HR consts, types, and provider map#90949
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
No need for a C+ review here. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 54e670fead
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| /** Approval mode */ | ||
| approvalMode: ValueOf<typeof CONST.GUSTO.APPROVAL_MODE> | null; |
There was a problem hiding this comment.
ie should we rename CONST.HR.APPROVAL_MODE
There was a problem hiding this comment.
oh, good catch. we should either rename CONST.GUSTO.APPROVAL_MODE or create a separate for merge. will the approval modes be the same for merge hr that there are for gusto?
There was a problem hiding this comment.
I see these values are also being changed for gusto: #90868
There was a problem hiding this comment.
I'm assuming separate for merge unless they end up being the same. Seems like a safe guess to keep separate for now and | them?
There was a problem hiding this comment.
I agree, will separate them, thanks!
| /** Approval mode */ | ||
| approvalMode: ValueOf<typeof CONST.GUSTO.APPROVAL_MODE> | null; |
There was a problem hiding this comment.
ie should we rename CONST.HR.APPROVAL_MODE
| const MERGE_HR_PROVIDERS = { | ||
| workday: { | ||
| displayName: 'Workday', | ||
| iconUrl: 'https://merge-api-public.s3.amazonaws.com/media/PlatformWorkday.png', |
There was a problem hiding this comment.
Should these be saved and served locally?
NAB, we can deal with this when we start serving them in app
There was a problem hiding this comment.
I think we settled on using the merge's url in the design doc to not increase the bundle
There was a problem hiding this comment.
Agree. We have this internal issue to eventually cache these too but that's for R2: https://github.com/orgs/Expensify/projects/285/views/7?sliceBy%5BcolumnId%5D=348841703&sliceBy%5Bvalue%5D=R2%3A+60%2B+connections&pane=issue&itemId=188836197&issue=Expensify%7CExpensify%7C636853
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @cristipaval has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.3.76-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.77-3 🚀
|
Explanation of Change
Adds the essential constants and types needed for the merge.dev HR integrations, which are coming in following PRs.
Fixed Issues
$ #90594
PROPOSAL: N/A
Tests
Offline tests
QA Steps
No tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari