-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: Closing receipt view using device navigation redirects user to expense report #35497
Conversation
@aimane-chnaif 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] |
@tienifr please fix conflict |
@aimane-chnaif fixed conflicts and comments above |
@tienifr please fix typescript checks. And conflicts |
@aimane-chnaif Fixed conflicts |
Screen.Recording.2024-02-05.at.7.14.09.AM.movOverall looks good but let's fix edge cases:
|
I'm checking |
@aimane-chnaif I faced with the issue when implement 2. The attachment is not shown though deeplink after login. Did we face with this problem before? Screen.Recording.2024-02-14.at.20.55.21.mp4 |
Not faced |
@aimane-chnaif That weird. I faced this issue in main. Screen.Recording.2024-02-19.at.14.34.49.mov |
@aimane-chnaif Can you help check the comment above ^? |
@aimane-chnaif The error above is fixed somewhere else, no longer happening. Can you help review again? Thanks |
@aimane-chnaif friendly bump you on 1:1 conversation |
Please merge main. I will complete review today |
This comment has been minimized.
This comment has been minimized.
The navigation is working well, just found two, probably related, issues
WhatsApp.Video.2024-03-07.at.13.42.03.mp4
WhatsApp.Video.2024-03-07.at.13.53.20.mp4The receipt not getting deleted is another bug I think, but it also happens in prod, so not related to this changes. |
I am not able to reproduce on iOS. |
Hmm it is happening in this builds #35497 (comment) but not in staging. Let me build the app. |
@tienifr let's fix this dismiss issue
This seems backend bug. The receipt is optimistically deleted successfully. |
@aimane-chnaif I fixed the conflicts and the dismiss modal issue. Can you help check again? |
@tienifr TypeScript Checks / typecheck (pull_request) Failing after 1m |
@aimane-chnaif fixed. TY |
/** whether the receipt can be replaced */ | ||
canEditReceipt?: boolean; | ||
/** Whether there are other images displayed in the same parent container */ | ||
isSingleImage?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this unnecessary diff. keep original order, so put isSingleImage under filename
Visit https://github.com/Expensify/App/pull/35497/files and find & fix all occurrences
And any reason for canEditReceipt
removal? Just optimization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to use canEditReceipt in this component anymore, we'll use it in TransactionReceiptPage
transaction={transaction} | ||
enablePreviewModal | ||
canEditReceipt={canEditReceipt} | ||
filename={receiptURIs?.filename} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I updated
@rlinoz all yours |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@rlinoz looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
Im confused, there was no emergency but everything was green? But apparently I skipped |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
That seems to be happening on other PRs. i.e. #37952 (comment), #37892 (comment) |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.50-5 🚀
|
Navigation.goBack(ROUTES.REPORT_WITH_ID_DETAILS.getRoute(report?.reportID ?? '')); | ||
}} | ||
isLoading={!transaction && reportMetadata?.isLoadingInitialReportActions} | ||
shouldShowNotFoundPage={(report?.parentReportID ?? '') !== transaction?.reportID} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tienifr Is there a special reason to add this condition here (shouldShowNotFoundPage
)?
This line is causing bugs in self DM track expense.
Details
Fixed Issues
$ #33549
PROPOSAL: #33549 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
Android: Native
Screen.Recording.2024-02-01.at.10.31.22.mov
Android: mWeb Chrome
Screen.Recording.2024-02-01.at.10.35.02.mov
iOS: Native
Screen.Recording.2024-02-01.at.10.17.42.mov
iOS: mWeb Safari
Screen.Recording.2024-02-01.at.10.32.04.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-01.at.10.00.11.mov
MacOS: Desktop
Screen.Recording.2024-02-01.at.10.25.13.mov