Enabling Receipt drag and drop inside the confirmation step#53849
Conversation
|
This is looking pretty good. One thing I noticed is it seems like the receipt thumbnail height changes when it's an empty state vs when it actually has an image in there. Can we fix that so it remains at the same height in both cases? cc @Expensify/design for viz |
|
Agree with Shawn. |
|
Good catch @shawnborton i updated the styles in this commit now the height doesnt change for both pdfs and images: Screen.Recording.2024-12-12.at.02.29.14.mov |
|
@shawnborton @dubielzyk-expensify do you think we should be using our light button text color here instead of the dark? Here's what the "import spreadsheet" version looks like: And actually—can we make sure the green overlay is the same between these two? I can't tell if they're different, but let's make sure we're matching the CSV import one since we just built that recently. Yeah? |
|
I can get down with that, let's make sure everything is aligned. I think the "Let it go" UI shown above is the same thing found in the Scan receipt on desktop flow, so let's update that too. But yeah, I like using lighter text as well as the green you pointed out for import spreadsheet. |
|
Hahah well then! Nevermind!! |
|
@abzokhattab We have merge conflicts if you could take a look, thanks! |
…-inside-confirm-step
|
@Ollyws Done |
|
@abzokhattab Could you take a look at those ESLint and TS check errors too? Thanks. |
…-inside-confirm-step
|
i see that the majority of the eslint violations were not generated by the changes of this pr. should we still fix them? |
|
They're from the new ESLint rule https://expensify.slack.com/archives/C01GTK53T8Q/p1734427537784129 I think it's suggested that we fix these in our PRs, unles it's a huge file with alot of changes. |
|
@abzokhattab Could you please merge main, I think many of those ESLint violations will be fixed by now. |
…-inside-confirm-step
|
still we have lots of linting errors espically in the MoneyRequestView file https://github.com/Expensify/App/pull/53849/files#diff-eec4675b6213eb7b4c8826a7b0a536ee7455e6a5580476ef0f9c8964e5deea81 i am still trying to solve them |
|
oh this doesnt end i fixed the current errors in this commit and got another set of errors in other files if u think this is in the scope of this issue, let me know if we are required to solve them. |
|
@abzokhattab Could you merge main and see if many of them have been resolved? Thanks. |
…-inside-confirm-step
|
In the meantime, @abzokhattab can you fix the conflicts? Thanks! |
…-inside-confirm-step
|
done |
|
Thanks! |
luacmartins
left a comment
There was a problem hiding this comment.
@abzokhattab we have conflicts again. Can you please resolve them? Code LGTM otherwise
| return; | ||
| } | ||
|
|
||
| // With the image size > 24MB, we use manipulateAsync to resize the image. |
There was a problem hiding this comment.
NAB but this comment can get outdated if we change the const value
| // With the image size > 24MB, we use manipulateAsync to resize the image. | |
| // With the image size > CONST.API_ATTACHMENT_VALIDATIONS.MAX_SIZE, we use manipulateAsync to resize the image. |
|
I resolved the conflict .. please let me know if u have any other comments |
|
@abzokhattab we still have a conflict in the submodule. Can you please run |
|
@abzokhattab bump on the above. We should remove the changes to |
be57774 to
59a8b4c
Compare
|
Ready. |
|
Thanks! |
|
✋ 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/luacmartins in version: 9.0.91-0 🚀
|
|
Looks like this caused a regression - can we please fix ASAP? Thanks! #55931 |
|
@abzokhattab Found issue when validation the PR - issue #55938 |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.91-2 🚀
|




Explanation of Change
Fixed Issues
$ #53089
PROPOSAL: #53089 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as 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
Not applicable
Android: mWeb Chrome
Not applicable
iOS: Native
Not applicable
iOS: mWeb Safari
Not applicable
MacOS: Chrome / Safari
Screen.Recording.2024-12-10.at.14.37.47.mov
Screen.Recording.2024-12-10.at.14.38.14.mov
MacOS: Desktop
Screen.Recording.2024-12-10.at.14.34.53.mov
Screen.Recording.2024-12-10.at.14.36.36.mov