Fix - [Better Expense Report View] Use aspect-ratio for receipt thumbnail area of expense previews#59944
Conversation
|
@shawnborton @ntdiary 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] |
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Reviewer Checklist
Screenshots/VideosAndroid: Native59944-android-native.movAndroid: mWeb Chrome59944-android-web.moviOS: Native59944-ios-native.moviOS: mWeb Safari59944-ios-safari.movMacOS: Chrome / Safari59944-mac-chrome.movMacOS: Desktop59944-mac-desktop.mov |
@dubielzyk-expensify, interesting. This only happens in the empty state expense. Its previous cc @FitseTLT
|
|
Thanks for the explainer. I only understood some of it, but is it safe to assume it's fixed? 😄 |
|
Having a tough time logging into the adhoc build on web. Mobile iOS seems pretty good to me though |
|
Seems like we gotta fix it for the empty state @FitseTLT |
|
Should we pull main and see if we can get successful adhoc builds for web? That would be great for the design team! |
|
I have already pulled main 👍 |
|
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
Dang, still can't get this to load for me on web. We're discussing internally here. |
|
@shawnborton you should be able to sign in now |
|
I'm seeing that too—but only for eReceipts and only in the preview component. |
Weird, this isn’t a simple |
|
I guess that works if we leave a clear comment in the code |
@FitseTLT, you can select a transaction, and then use mock data (replace the transaction ID). BTW, I'm looking into how the preview width is being set dynamically — if it can be arbitrary, then the height might still end up with decimals. Onyx.merge('transactions_1354754709431046803', { cardID: 21184324, bank: 'Expensify Card', cardName: 'Expensify Card - 0687', cardNumber: '455594XXXXXX0687', hasEReceipt: true, managedCard: true, mccGroup: 'Services', comment: { liabilityType: 'personal'}})unbelievable, I just noticed the
If possible, I plan to look into this issue more deeply over the weekend. :D |
|
OK, I suggest using dynamic-height.movHere’s the code I tested ( <View
onLayout={onLayout}
- style={[styles.w100, styles.h100, {transform: `scale(${scaleFactor})`, transformOrigin: 'top left'}]}
+ style={[styles.w100, styles.h100, {transform: `scale(${scaleFactor}) ${ignoreLine}`, transformOrigin: 'top left'}]}
>
<EReceipt
// eslint-disable-next-line react/jsx-props-no-spreadingthe style can be applied in either |
Oh, this is a great idea - big fan of doing this as the workaround here! |
|
@FitseTLT can you please apply that? |
|
@ntdiary can you do a final retest please? thanks! |
|
Awesome, will run a test build to double check as well 👍 |
|
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Looks good on my end too! |
|
✋ 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/mountiny in version: 9.1.29-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.29-10 🚀
|




















Details
Fixed Issues
$ #59555
PROPOSAL: #59555 (comment)
Tests
Precondition: TableReportView beta should be enabled
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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