-
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
Bump react-navigation versions #9718
Conversation
Sorry, I took this out of draft before testing on all platforms. Doing some testing on native now and putting this back on HOLD for now. |
Adding @parasharrajat to help with testing. |
Testing well on web, desktop, iOS and Android. The changes we are looking for should only affected web platforms so all that's left to check is mobile web. |
Ok, something is off on mobile web with the test flow. Checking to see if the same happens on 2022-07-05_11-28-27.mp4 |
Hmm actually I can't test at all on |
|
@marcaaron I had the same issue ( #9718 (comment) )when I upgrade all react-navigation versions to lates I guess the @react-navigation/drawer changed some logic in the late version. and we need to do some changes before we will be able to use it |
Thanks. It seems reasonable to downgrade back to the current But maybe we can create a new issue to look into why that happens. |
Ok seems to be working fine now, thanks @ahmdshrif |
Tests:
screen-2022-07-08_03.15.11.mp4There are two issues(navigation is not reliable).
Running more tests... |
Nice, thanks @parasharrajat! Also please let me know if any issues you find are also on |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, I didn't understand. Currently, nothing is decided. I am only reporting bugs. |
@parasharrajat any update here? |
I will share the update in two hours. Although this does not affect native platforms, I am still testing them. Edit: List is ready. Doing a check on MWeb. |
Ignoring the existing known navigational issues, the following is the report: WEB1
[main] ✅ [PR] ✔️ Fixed. 2
[main] ✅ [PR] ❌ Not Fixed. 3
[main] ✅ [PR] ❌ Not Fixed. 4
[main] ✅ [PR] ❌ Not Fixed. Not related to this issue. 5[main] ✅ [PR] ✔️ Fixed. 6
[main] ✅ [PR] ❌ Not Fixed. Not sure of this is a bug. 7 (Not reported yet)
[main] ✅ [PR] ❌ Not Fixed. mWeb1 #7618
[main] ✅ [PR] ✔️ Fixed. 2
[main] ✅ [PR] ❌ Not Fixed. 3
[main] ✅ [PR] ❌ Not Fixed. Not sure of this is a bug. 4
[main] ✅ [PR] ❌ Not Fixed. 5
[main] ✅ [PR] ❌ Not Fixed. |
Hey @parasharrajat to clarify - are you saying that all of the issues where you put:
that the issue is not present on |
Sorry for the confusion.
means present on main and not fixed in this PR.
means present on main and fixed in this PR. |
Nice, so no regressions? @mountiny shall we 🚢 this? We can create issues to look into the remaining things discovered 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.
Great testing @parasharrajat!
At least getting 3/12 observed problems being fixed is very nice. We should create follow-up issues for those which do not have their own yet, although I am not sure if we should export them all separately as they will most likely have a similar solution.
@marcaaron I have also updated the PR body to include the #7618 in the fixed issues sections as it seems that problem is being resolved by this PR. Feel free to self-merge once ready :) |
@marcaaron looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
Tests passed. Get with it melv. |
@parasharrajat are you able to produce videos for these failing test cases? I think it would be help us create tickets for them and determine if they are worth fixing or not. |
I will record them and share here as soon as possible. |
Web: 2, 3 - Most likely have the same root cause, but I think the reason is because we are holding something wrong. When we navigate to a new report we are not adding it to the browser history. Probably we need to...
Then some logic to say that "going back" should update the "Report" screen without having to have multiple LHN instances. I think the problem we ran into with this is that when we are pushing a drawer route on top of another drawer then rendering gets really expensive since n chats and sidebars would get stacked on top of each other. Preserving our own history could be a possible option here - but not entirely sure. 4 - Let's get a reliable repro before doing anything about that one. 6 - Not sure if this is a bug as we'd need to basically push the "home" route into the memory history. Who knows if that's what other people want to use mWeb 2 - Seems the same as web-2 and web-3 Have to consider the rest later... sure some of them are related. |
I think this issue is also solved? #8641 Tested, but would appreciate a second check @parasharrajat |
I am not able to reproduce this on PROD. The mentioned steps in OP doesn't work for me. |
Ok, I see now. There is very strange behavior. On Firefox, when you try to open a chat that you never chated before, sometimes it does not open and the user is taken back to the previously opened chat. On Chrome, the new chat does open but when I click on the chat in LHN, reportID in URL changes but not the active chat. Note: I am running all of these tests on Linux OS ATM. screen-2022-07-14_01.24.26.mp4 |
Hmm that doesn't look quite like the bug that was reported. You were not navigated out of the app. |
🚀 Deployed to production by @chiragsalian in version: 1.1.84-13 🚀
|
Sorry for the delay here. Should I report these issues on Slack? cc: @mountiny Issue: Navigating Back takes the user to the home screen on the web. Steps:
Expected Result: The user should not leave the app. screen-2022-07-26_04.25.02.mp4Issue: Navigating Back takes the user to the home screen on the web. Steps WEB:
Steps mWEB:
Expected Result: The user should not leave the app. screen-2022-07-26_04.30.40.mp4screen-2022-07-26_05.27.55.mp4Issue: Navigating Back takes the user to the home screen on the web when app is directly opened via RHN links. For example ( https://staging.new.expensify.com/new/chat) Steps WEB:
Steps MWeb:
Expected Result: The user should not leave the app. screen-2022-07-26_04.37.55.mp4screen-2022-07-26_05.30.36.mp4Not able to reproduce WEB 4, 7 on staging web app. ISSUE MWeb 4, 5 are not reproducible on staging anymore. |
@parasharrajat I think sticking to the bug reporting process is good unless those issues already exist in GH and you know about them. We might want to monitor it too and put it under one project or some tracking issue as we have done before. Thank you! |
We have this project -> https://github.com/Expensify/App/projects/2 used for navigation related issues that I have been using as our "wish list". |
Details
Update includes an upstream fix for the linked issue
Fixed Issues
$ #8101
$ #7618
$ #8641
Tests
Web navigation
Test mobile navigation for any obvious regressions
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
Web navigation
Test mobile navigation for any obvious regressions
Screenshots
Web
Mobile Web
Desktop
iOS
Android