-
Notifications
You must be signed in to change notification settings - Fork 909
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
Scroll down to the debug form when a DocService URL contains … #2045
Scroll down to the debug form when a DocService URL contains … #2045
Conversation
@SooJungDev Thanks for contributing Armeria! 👍 |
@@ -68,6 +68,8 @@ interface State { | |||
type Props = OwnProps & RouteComponentProps; | |||
|
|||
class DebugPage extends React.PureComponent<Props, State> { | |||
private scrollRef = React.createRef <HTMLDivElement>(); |
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.
Question: Is it possible to define a meaningful anchor name to the reference at DOM level, such as debug-form
?
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.
Yes , I'll renaming variable. Thank you for review!
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.
Oh, does just renaming the variable change the anchor ID in DOM?
@@ -589,6 +595,13 @@ class DebugPage extends React.PureComponent<Props, State> { | |||
debugResponse, | |||
}); | |||
} | |||
|
|||
private moveScroll() { |
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.
How about renaming to scrollToDebugForm()
to make it more meaningful?
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'll renaming method! Thank you for review!
@SooJungDev To pass CI build, you might want to check |
@SooJungDev While I am seeing your commit log and git diff, I thought your branch is mixed with Could you squash and revise your commits? 😀 |
@SooJungDev Finally, could you clean up duplicated commit message? :-)
|
|
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 @SooJungDev 👍
Please check |
Codecov Report
@@ Coverage Diff @@
## master #2045 +/- ##
============================================
+ Coverage 73.77% 73.79% +0.02%
- Complexity 9388 9389 +1
============================================
Files 817 817
Lines 36121 36121
Branches 4453 4453
============================================
+ Hits 26648 26656 +8
+ Misses 7168 7159 -9
- Partials 2305 2306 +1
Continue to review full report at Codecov.
|
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.
Good job!
Motivation:
Modifications:
Result: