-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[grid] Add "URI" to the list of sort-by choices on Overview UI #16004
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
Pull Request Overview
This PR enhances the Grid Overview UI by adding URI as a sortable column and covering its functionality with a new test.
- Introduce a
uri
comparator to the sort properties - Add the “URI” label to the sort dropdown
- Add a test to verify ascending URI sorting
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
javascript/grid-ui/src/screens/Overview/Overview.tsx | Add uri comparator and label to sortProperties |
javascript/grid-ui/src/tests/components/Overview.test.tsx | Add test case for URI sorting functionality |
Comments suppressed due to low confidence (1)
javascript/grid-ui/src/tests/components/Overview.test.tsx:258
- [nitpick] Consider adding a test case to verify sorting in descending order when the 'Descending' checkbox is checked, ensuring full coverage of both sort directions for the URI option.
it('sorts nodes by URI when selected', async () => {
Thank you @VietND96 !! Will these changes make it into grid 4.35? |
User description
🔗 Related Issues
Fixes #15955
💥 What does this PR do?
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add URI sorting option to Grid Overview UI
Include URI comparison function in sort properties
Add test coverage for URI sorting functionality
Changes diagram
Changes walkthrough 📝
Overview.tsx
Add URI sorting functionality
javascript/grid-ui/src/screens/Overview/Overview.tsx
uri
property tosortProperties
object with comparison functionURI
label tosortPropertiesLabel
mappingOverview.test.tsx
Add URI sorting test
javascript/grid-ui/src/tests/components/Overview.test.tsx