-
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
Reattempt to fix multiline comment link show pointer cursor in the empty space line #20114
Conversation
@Gonals @narefyev91 One of you needs to 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] |
Oops, I think @thesahindia @grgia should be the one that review this? I linked #19934 too because the proposal I use is from my comment over there. |
@bernhardoj no problem, I'll fix the reviewers. In the future, no need to link already closed/dupe issues! |
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.
@bernhardoj can you please update the Test Steps and QA steps for this PR
...anchorForCommentsOnlyPropTypes, | ||
...windowDimensionsPropTypes, | ||
}; | ||
|
||
const defaultProps = { | ||
onPressIn: undefined, | ||
onPressOut: undefined, | ||
containerStyles: {}, |
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.
Let's use the array and spread syntax described here https://github.com/Expensify/App/blob/main/contributingGuides/STYLING.md#complex-component
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.
Updated!
@grgia sorry, which part of the test should I update? Is it missing any step? |
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 look good, @thesahindia I think this is ready for C+ review, thanks!
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-06-06.at.4.37.30.PM.movMobile Web - ChromeScreen.Recording.2023-06-06.at.4.59.52.PM.movMobile Web - SafariScreen.Recording.2023-06-06.at.5.05.07.PM.movDesktopScreen.Recording.2023-06-06.at.4.44.17.PM.moviOSScreen.Recording.2023-06-06.at.5.01.23.PM.movAndroidScreen.Recording.2023-06-06.at.4.57.52.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.
Looks good to me as well!
cc: @grgia
Friendly bump @grgia. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@bernhardoj @thesahindia @grgia It looks like this PR will display a normal link in a separate line. I found it when I'm preparing the PR for the other issue. For example we can add a comment like
See demo video Screen.Recording.2023-06-08.at.10.23.11.AM.mov |
That makes sense because the link display is now block. I think we should revert this PR. (or maybe I can push a new PR that reverts this and include a different changes?) |
Thanks @eh2077 for mentioning it. @bernhardoj, yes please go ahead. Let's resolve this quickly. |
PR is here #20440 |
@@ -60,7 +60,7 @@ const ImageRenderer = (props) => { | |||
> | |||
{({show}) => ( | |||
<PressableWithoutFocus | |||
styles={[styles.noOutline, styles.alignItemsStart]} | |||
style={styles.noOutline} |
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.
Invalid prop being passed here. The correct prop is styles
.
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.
Interesting. That change is a straight revert from this
https://github.com/Expensify/App/pull/17496/files#diff-d5148cab886899d1e6ec29f3b13f0d9ea4736d2db1324586afb18ebeb8a611b0L69
which means the style props has been wrong for a long time.
But the noOutline
style will hide the focus outline when we navigate with keyboard.
Here is how it looks if we have the outline
consistent with what we have in attachment
So, I guess we should remove the style?
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.
nevermind, @Nikhil-Vats handle this in their PR #19545
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 for taking care of it @Nikhil-Vats!
🚀 Deployed to staging by https://github.com/grgia in version: 1.3.26-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.26-4 🚀
|
Details
Reverting #17496 and reattempt to fix the initial issue #16526.
Fixed Issues
$ #19717
$ #19934
PROPOSAL: #19934 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Attachment
Link (iOS/Android/mWeb)
To make sure #16526 is fixed here (Web/Desktop):
link example:
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
Screen.Recording.2023-06-03.at.11.40.57.mov
Mobile Web - Chrome
Screen.Recording.2023-06-03.at.12.07.57.mov
Mobile Web - Safari
Screen.Recording.2023-06-03.at.12.02.02.mov
Desktop
Screen.Recording.2023-06-03.at.11.43.43.mov
iOS
Screen.Recording.2023-06-03.at.11.56.09.mov
Android
Screen.Recording.2023-06-03.at.12.13.29.mov