-
Notifications
You must be signed in to change notification settings - Fork 159
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: Scrollability issue of users list for discord users #934
base: develop
Are you sure you want to change the base?
Conversation
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.
test screenshot is missing
It was just the UX issue...so didn't update/write any tests. |
@shantanu-02 you have to update the test screenshot, it's mandatory |
Hello @shantanu-02 can you please attach the test coverage screenshot |
|
||
createElement('div', { class: 'users_section' }, [ | ||
UsersSection({ | ||
users, | ||
showUser, | ||
handleUserSelected, | ||
}), | ||
]), | ||
|
||
createElement('div', { class: 'user_details_section' }, [ | ||
UserDetailsSection({ user: users[showUser] ?? {} }), | ||
]), |
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.
Do we need to create the div here?
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
WalkthroughThe changes update the component structure and styling in the Discord-related user interface. In the App component, the Changes
Sequence Diagram(s)Poem
🪧 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 (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
users/discord/style.css (2)
66-71
: User Details Section Sticky PositioningSwitching the
.user_details_section
to useposition: sticky
and setting its height to 100% helps maintain its visibility during scroll. To ensure consistent sticky behavior across all browsers, please consider adding an explicittop: 0;
property. For example:.user_details_section { padding: 1rem; background-color: var(--light-gray); + top: 0; position: sticky; height: 100%; }
73-76
: Minor Formatting ConsistencyThe annotation on the closing block of
.user_details_field
(line 76, marked with "~") may indicate a minor formatting change. Please double-check that this change is intentional and consistent with the rest of the file’s formatting.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
users/discord/App.js
(1 hunks)users/discord/components/UserDetailsSection.js
(0 hunks)users/discord/style.css
(3 hunks)
💤 Files with no reviewable changes (1)
- users/discord/components/UserDetailsSection.js
✅ Files skipped from review due to trivial changes (1)
- users/discord/App.js
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: test
- GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
users/discord/style.css (2)
12-20
: Main Element Height ConfigurationThe addition of
height: 100%
to themain
element ensures that it stretches to fill its container, which is important for the proper layout of internal grid areas. Make sure that its parent containers (e.g.,html
andbody
) are also set toheight: 100%
to avoid potential layout issues.
41-47
: Users Section Scrollability EnhancementThe
.users_section
now includesoverflow-y: auto
andmax-height: 20rem
, which localizes scrolling to the users list. This change should effectively resolve the scrollability issue for Discord users. Consider verifying that the fixedmax-height
is appropriate across different screen sizes or if responsiveness adjustments are needed in the future.
Date: 05/01/2025
Developer Name: Shantanu Pawar
Issue Ticket Number
Description
Made a separate container for the list of users so that the scrollability of the list doesn't affect the whole page.
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Screenshot recording 1
Screen.Recording.2025-01-05.142752.mp4
Test Coverage
Screenshot 1
Additional Notes
Summary by CodeRabbit
Refactor
Style