-
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 LHN toggle in responsive view! #27261
Conversation
@abdulrahuman5196 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] |
docs/assets/js/main.js
Outdated
@@ -55,6 +55,7 @@ function navigateBack() { | |||
|
|||
if (referrer.includes(currentHost) && window.history.length > 1) { | |||
window.history.back(); | |||
toggleHeaderMenu(); |
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.
While implementing I found another similar bug that when the back button was clicked on the playbook section the LHN was not closed, so added this here to fix that.
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 am seeing a flicker on ios safari on back button click. I think this change is causing the below flicker on ios but still not closing the LHN on back button. If the flicker due to this change, I would suggest to remove it(If not able to fix the flicker) since this is an unrelated change to the issue actually.
Screen.Recording.2023-09-14.at.11.53.42.PM.mov
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.
@abdulrahuman5196 Yes this change was causing this issue on IOS since the behaviour seems to be a bit different on Safari and Chrome so I have reverted this change since it was unrelated to this issue and caused side-effect.
Hi @abdulrahuman5196! Bump for PR review please. |
Reviewing now |
@abdulrahuman5196 Any update on the PR review? |
@Talha345 Can you remove the test case 2 from author's checklist? It is not relevant anymore |
@abdulrahuman5196 Done! |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-09-15.at.8.57.50.PM.mp4Mobile Web - ChromeScreen.Recording.2023-09-15.at.9.00.29.PM.mp4Mobile Web - SafariScreen.Recording.2023-09-15.at.8.59.06.PM.mp4DesktopN/A iOSN/A AndroidN/A |
NAB: For future cases kindly add video screenshots for web as well even though the issue is in mobile size screens as well. For this case I have tested 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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @tgolen
🎀 👀 🎀
C+ Reviewed
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - 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/tgolen in version: 1.3.71-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.71-12 🚀
|
Details
Fixed Issues
$ #23810
PROPOSAL: #23810 (comment)
Tests
Test Case 1
Offline tests
Same as above
QA Steps
Same as above
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)/** comment above it */
this
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)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
Web
Not applicable since the issue only exists in responsive mode.
Mobile Web - Chrome
toggle-chrome.mp4
Mobile Web - Safari
toggle-safari.mp4
Desktop
Not applicable since the help docs are only available on web.
iOS
Not applicable since the help docs are only available on web.
Android
Not applicable since the help docs are only available on web.