-
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
[navigation-refactor] Use minimal action to navigate inside RHP #21067
[navigation-refactor] Use minimal action to navigate inside RHP #21067
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] |
|
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.
Coupld of comments, lets make sure we include clear testing steps and also fill out all the screen recordings
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
@adamgrzybowski Could you kindly check this comment and add tests in author's checklist as well? And there are still some comments pending to addressed? |
@abdulrahuman5196 I am working currently on the part of the documentation to explain better why we need minimal action. I can see that it may be a little confusing. I got distracted by other urgent issues. I will get back to this PR right after resolving those problems. Thanks for your patience 🙇 ! |
Hey, I updated the docs and included tests, let me know if its any clearer now 😄 @abdulrahuman5196 @mountiny |
Sure thank you. Will check on this tonight |
Hey, @abdulrahuman5196 quick sanity check 😄 I can see that the lint step is failing but there is no reason for this in the code. Do you think it's possible there is some problem with github actions? |
@adamgrzybowski Seems so. Can you try merge from main? |
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 some comments to the md
file. Other than that, it looks just fine!
I did test the flows by locally changing this #21067 (comment) and the code seems to work fine without any issues. |
Hey, @abdulrahuman5196 I fixed the leftover |
Thank you @adamgrzybowski . Will work on reviewers checklist and complete it today. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-06-26.at.11.27.52.PM.mp4Mobile Web - Chromeaz_recorder_20230626_233717.mp4Mobile Web - SafariUntitled.mp4DesktopScreen.Recording.2023-06-26.at.11.52.11.PM.mp4iOSScreen.Recording.2023-06-26.at.11.40.46.PM.mp4Androidaz_recorder_20230626_234800.mp4 |
@adamgrzybowski Could you kindly mark the QA steps and Offline tests as "Same as Tests"? |
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. @mountiny / @WoLewicki
🎀👀🎀
C+ Reviewed
@mountiny / @WoLewicki Could you kindly check on this ? #21067 (review) |
It's fine by me, but I have no power to merge it 😅 |
OOPS. Sorry. Will wait for mountiny 😶🌫️ 😆 |
Hey @mountiny it would be great to merge that. There is some code that will be also modified by PR improving resizing |
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! Also nice description 🙇
✋ 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/mountiny in version: 1.3.37-0 🚀
|
looks like this caused a regression here #22289 |
type: currentAction.type, | ||
payload: { | ||
name: currentAction.payload.params.screen, | ||
params: currentAction.payload.params.params, |
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.
params: currentAction.payload.params.params, | |
params: currentAction.payload.params.params, | |
path: currentAction.payload.params.path, |
path was missing here and it caused regression - #22308
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.
@situchan Can you raise a PR fixing this?
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.37-7 🚀
|
let currentAction = action; | ||
let currentState = state; | ||
let currentTargetKey = null; | ||
let targetName = null; |
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.
This PR caused a regression, for more details refer this PR
Details
This PR adds the utility
getMinimalAction
that is used inLinkTo
to fix the issue with back buttonAdditionally, @WoLewicki came up with the idea that this utility can help to resolve the problem with the RHN animation glitch
Fixed Issues
$ #20620
$ #20621
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
Test for #20620
Test for #20621
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)/** 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
web.mov
Mobile Web - Chrome
androidWeb.mov
Mobile Web - Safari
iosWeb.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov