Show links in integrations errors messages#56768
Conversation
|
@ 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
For QA, how will Applause do this:
Let's clarify how to force an export error, and also I think the backend won't include an error link for now anyway? |
|
✋ 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/francoisl in version: 9.0.99-0 🚀
|
|
@lakchote Can you please help with 2 step #56768 (comment) |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.99-2 🚀
|
| integrationsMessage: ({errorMessage, label, linkText, linkURL}: IntegrationSyncFailedParams) => | ||
| `failed to export this report to ${label} ("${errorMessage} ${linkText ? `<a href="${linkURL}">${linkText}</a>` : ''}")`, |
There was a problem hiding this comment.
Coming from #68656, it is a very minor bug, the space before linkText should added only if there is a link.
more details this code diff
- ${linkText ? `<a
+${linkText ? ` <a
Explanation of Change
Handle links sent from the Integration Server, so they can be shown in errors messages from the integrations.
Fixed Issues
Related to https://github.com/Expensify/Expensify/issues/460732
Tests
(note: the error shown in the image has been enforced to throw during report export from Integration-Server)
Offline tests
NA
QA Steps
Same as in 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))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
MacOS: Desktop