-
Notifications
You must be signed in to change notification settings - Fork 304
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
Communication
: Fix empty gray area in sidebar accordion with no items
#9014
Communication
: Fix empty gray area in sidebar accordion with no items
#9014
Conversation
WalkthroughThe changes focus on enhancing the sidebar accordion component's user interface by dynamically adjusting the display based on search results. This improvement involves conditional rendering to either show the content or hide unnecessary separators, ensuring a cleaner and more intuitive user experience when no options are available. Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration 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.
Tested on TS6. No more empty grey bar in the menus. ✅ Code looks good too 👍🏼
(Personally I would prefer an "empty" message/icon when clicking the menus. Because now we can click on empty menus, it will spin the chevron on the right, but nothing shows up. But maybe that's just me 🤤)
|
|
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.
Tested on ts6, works as expected. There is no gray area in sidebar accordion with 0 elements after uncollapsing it. Code also lgtm
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.
Tested locally works as expected
Checklist
General
Client
Motivation and Context
The sidebar accordion of communication section should not render unnecessary empty areas when there are no items to display.
Closes #9002
Description
The updated sidebar accordion component includes a conditional check to prevent rendering of empty collapsible sections.
Steps for Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Exam Mode Test
Test Coverage
Screenshots
OLD
![image](https://private-user-images.githubusercontent.com/56061820/347527194-5640e578-e15d-4b54-a435-0f6d82e40184.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjc1MjIsIm5iZiI6MTczOTE2NzIyMiwicGF0aCI6Ii81NjA2MTgyMC8zNDc1MjcxOTQtNTY0MGU1NzgtZTE1ZC00YjU0LWE0MzUtMGY2ZDgyZTQwMTg0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA2MDAyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRhZjk0OTA4Nzc1ZDk5NTQzNzUyZTEzZTlmNTVkZTYwZjZlMzQ1OGIzYjBkNGY0MWRiODAwNzhmNzlkYTZkNWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hw7C9IUgidocCpqdGiQ6OI4tSYfW34MvDajk-pjpCqo)
NEW
![image](https://private-user-images.githubusercontent.com/56061820/347528571-ebde53a3-ad20-45d1-ac35-d0d3d5ad2868.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjc1MjIsIm5iZiI6MTczOTE2NzIyMiwicGF0aCI6Ii81NjA2MTgyMC8zNDc1Mjg1NzEtZWJkZTUzYTMtYWQyMC00NWQxLWFjMzUtZDBkM2Q1YWQyODY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA2MDAyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1YzVmMGUzYWM1YmVmOGY0YTY2OTY0MTJkNTI3MDA2ZjA2MTI0MGJhOTRkYTQzZTM4MDQ1ZjgzZmUwNjYwNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.679cqtvFnFvFjK3QyF-4K4B-tg54FnuywNR6YG2Xl74)
Summary by CodeRabbit
New Features
Style