-
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: tapping assignee and mark as complete quickly navigates to not found page #41667
Conversation
@mananjadhav 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] |
@mananjadhav After tapping Assignee, if we quickly tap Root cause is because the App/src/components/Pressable/PressableWithFeedback.tsx Lines 80 to 81 in 6dc6f81
causing it to misunderstand that we're long pressing and dim the button:
I think this issue has a different root cause and out of scope of this PR because it happens in many places like the Invite member button in Workspace: video_2024-06-20_18-42-09.mp4 |
Bump @mananjadhav. |
Will review this today/tomorrow. |
I think we can treat it separately. You can report it on the bug channel. @tienifr Can you update the PR body to remove |
Also @tienifr Can you please add a comment on why we're adding these route checks? |
Navigation.isActiveRoute(ROUTES.TASK_ASSIGNEE.getRoute(report.reportID)) || | ||
Navigation.isActiveRoute(ROUTES.REPORT_DESCRIPTION.getRoute(report.reportID)) | ||
) { | ||
return; |
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.
If we're already navigating to these task editing pages, early return not to mark as completed, otherwise we would have not found page.
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 I mean comment in the code.
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.
Thanks. Updated.
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-assignee-complee.movAndroid: mWeb Chromemweb-chrome-assignee-complete.moviOS: Nativeios-assignee-complete.moviOS: mWeb Safarimweb-safari-assignee-complete.movMacOS: Chrome / Safariweb-assignee-complete.movMacOS: Desktopdesktop-assignee-complete.mov |
I am getting build errors on this branch for Native apps.
@tienifr Did you face this issue? I am getting this only for this branch. Can you sync with the latest main? |
@tienifr Quick bump on the previous message. Can you sync your code to latest main? Syncing to main resolves the earlier error for me. |
@mananjadhav I synced |
This comment has been minimized.
This comment has been minimized.
onPress={Session.checkIfActionIsAllowed(() => (ReportUtils.isCompletedTaskReport(report) ? Task.reopenTask(report) : Task.completeTask(report)))} | ||
onPress={Session.checkIfActionIsAllowed(() => { | ||
// If we're already navigating to these task editing pages, early return not to mark as completed, otherwise we would have not found page. | ||
if (Navigation.isActiveRoute(ROUTES.TASK_ASSIGNEE.getRoute(report.reportID)) || Navigation.isActiveRoute(ROUTES.REPORT_DESCRIPTION.getRoute(report.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.
I think we have to add the TASK_TITLE
route here as well, only click I am getting the 404 now.
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.
Added.
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.
Please trigger another build so we can retest it.
Just triggered a new build |
🧪🧪 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.
It tests well, thanks!
@mananjadhav just missing one item in the checklist now 🚀 |
Done @rlinoz |
✋ 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/rlinoz in version: 9.0.7-3 🚀
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
Details
Tapping assignee then marking the task as complete at the same time navigates to not found page. This PR fixes that.
Fixed Issues
$ #38577
PROPOSAL: #38577 (comment)
Tests
Offline tests
NA
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 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
Android: Native
video_2024-06-20_18-22-11.mp4
Android: mWeb Chrome
video_2024-06-20_17-42-16.mp4
iOS: Native
Screen.Recording.2024-05-06.at.19.01.42-compressed.mov
iOS: mWeb Safari
Screen.Recording.2024-05-06.at.19.02.24-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-06.at.18.38.03-compressed.mov
MacOS: Desktop
Screen.Recording.2024-05-06.at.18.38.03-compressed.mov