-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Update receipt not smart scanned copy and render link in error #60830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ok @hoangzinh @shawnborton the text wrapping is fixed now and it's ready for more review. |
The perf-test has failed. @neil-marcellini can you try to re-run it? I don't think this PR causes any perf issue. |
Nice, are there updated videos somewhere? |
There is one updated video in the PR description showing the text wrapping |
Ah okay, thanks! Here it is for quick review: I thought we wanted to truncate after 1 line for these though? Was that your understanding too @trjExpensify ? (PS - sorry for all of the pings today mate!) |
Yeeeep, for the expense rows in the report view:
|
Awesome, thanks for confirming - @neil-marcellini can we update please? Thanks! |
Ah ok, I'm glad I asked because it did seem a little intentional. I'll revert to what I had before. I'm cool with it because the user can always click into it to show the full violation. That being said I might have to fix it so it truncates with ellipsis. |
2a6dfce
to
c71f061
Compare
Yep, in the latest main, we don't show errors even in Reports. Screen.Recording.2025-05-01.at.07.16.46.mov |
Ah maybe that's a bad idea, because it will still truncate without ellipsis. I'll see if I can find out why it's not rendering the error. |
Yep I edited my message above, I will investigate |
I found the logic here which controls whether this is rendered. I think I can make it display and fix the truncating. Back to draft 🙃 |
Sounds good, thanks Neil! |
@neil-marcellini could you also check in native apps? I couldn't click in the link "Learn more" Screen.Recording.2025-05-01.at.08.01.58.mov |
I'm a bit out of my depths here, so I created an issue to get an expert on it. I like to think I could figure it out eventually, but it will be much more efficient this way 😄 |
@neil-marcellini we won't be moving forward with this PR right? Can we close it? |
I think we can close this PR. It has been implemented here #61748 |
Yes good point, thanks for helping me clean up. |
Explanation of Change
In relation to this PR to scan attached receipts in the background, extract the code changes that render links in error messages. It will be generally useful to be able to do such a thing, for example this PR [App] [HOLD pull 58099] Add cta to update to usd modal is waiting until that is implemented. The background scan PR is blocked until more backend changes are made, so let's get this part out now.
To create this PR with only these changes I branched off the original PR and then restored all files to main that didn't have anything to do with rendering the links. That's why there's so many commits here.
Related Issues
#53535
PROPOSAL: N/A
Tests
2025-04-24_07-24-46.mp4
Text wraps well for errors
2025-04-29_07-00-11.mp4
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
See above, only tested on web since it should be platform independent.
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop