-
Notifications
You must be signed in to change notification settings - Fork 46
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
refactor(web): jurors-page-scroll #1885
Conversation
WalkthroughThis pull request updates the scroll behavior by modifying the Changes
Sequence Diagram(s)sequenceDiagram
participant D as DisplayJurors
participant H as useScrollTop Hook
participant B as Browser
D->>H: Call scrollTop(true)
H->>B: Execute scroll({ top: 0, behavior: "smooth" })
B-->>D: Top of page reached
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for kleros-v2-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kleros-v2-neo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kleros-v2-university ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kleros-v2-testnet-devtools ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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 don't see the flashing now, but is the scrolling working as expected?
Screen.Recording.2025-02-04.at.16.58.10.mp4
also have to change the 20 jurors per page to 10 jurors per page |
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.
lgtm
Code Climate has analyzed commit b5da6d7 and detected 0 issues on this pull request. View more on Code Climate. |
|
PR-Codex overview
This PR focuses on enhancing the
scrollTop
functionality in theuseScrollTop
hook to support smooth scrolling and integrating this feature into theDisplayJurors
component for improved user experience during page navigation.Detailed summary
scrollTop
function inuseScrollTop
to accept asmooth
parameter for smooth scrolling.useScrollTop
intoDisplayJurors
component.handlePageChange
to callscrollTop(true)
for smooth scrolling when changing pages.useIsDesktop
import and variable.Summary by CodeRabbit