[NoQA] [HR Import] Error states + reconnect prompt on the HR card - #91975
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
…licyBrickRoadIndicatorStatus
…on in getHRCards function
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bf50043b32
ℹ️ 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".
| {`${translate('workspace.hr.authenticationError', card.displayName)} `} | ||
| <TextLink | ||
| style={[styles.link, styles.fontSizeLabel]} | ||
| onPress={handleConnect} |
There was a problem hiding this comment.
Disable the inline reconnect link while offline
When the app is offline and an HR connection needs reconnecting, the overflow Reconnect item is disabled via disabled: isOffline, but this inline link still calls handleConnect. This lets users launch the HR connection flow while offline even though the other connect/reconnect entry points are blocked, leading to an avoidable failing web/OAuth flow.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
not sure, we don't really have a pattern of disabling links when offline
jmusial
left a comment
There was a problem hiding this comment.
Looks good, couple NAB comments
|
@Ollyws @roryabraham One of you needs to 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] |
|
cc: @bernhardoj or @ikevin127 (HR import project) |
|
I'm feeling unwell today. I'll review this tomorrow if not urgent. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.2.mp4Android: mWeb Chromeandroid.mweb.2.mp4iOS: HybridAppios.2.mp4iOS: mWeb Safariios.mweb.2.mp4MacOS: Chrome / Safariweb.2.mp4 |
|
@bernhardoj I resolved the conflict and implemented the suggestion |
bernhardoj
left a comment
There was a problem hiding this comment.
Thanks! All good from me!
|
On you now, @roryabraham |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 roryabraham 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.4.27-1 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.4.27-2 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
When an HR connection's
lastSync.isAuthenticationErroris set, the HR provider card switches into a "reconnect mode": a red"Couldn't connect to {provider} due to an expired connection. Reconnect."banner is shown, where the inline "Reconnect" CTA re-launches the connection flow. The overflow menu's first item also flips from "Sync now" to "Reconnect". A red-dot indicator is shown on the workspace HR row and bubbles up to the Workspaces tab.Fixed Issues
$ #90605
PROPOSAL: N/A
Tests
mergeHRConnectionsbeta is enabled.Onyx.merge('policy_<policyID>', {connections: {merge_hris: {lastSync: {isAuthenticationError: true}}}}))Offline tests
QA Steps
N/A
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
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-06-26.at.11.32.47.mov
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-06-26.at.11.41.12.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Nagranie.z.ekranu.2026-06-29.o.19.28.53.mov