-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
Add ability to sort add-ons by columns #17135
Conversation
@coderabbitai review |
WalkthroughThe changes introduce a new sorting functionality in the Add-on Store, allowing users to sort the list of add-ons by various columns such as name, publisher, and status. This feature is implemented through the addition of a control in the 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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
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: 2
Outside diff range, codebase verification and nitpick comments (1)
user_docs/en/changes.md (1)
Line range hint
1-1
: Reminder: Add tests.The TODO comment indicates that tests are missing.
Do you want me to generate the unit testing code or open a GitHub issue to track this task?
@nvdaes, thanks for tackling this issue. Will be very useful when the date column will be a realty. As expressed in other occasions, I (and other people) find that there are already enough combo-boxes on top in the Add-on Store's GUI. Moreover, I'd say that adding a combo-box here to sort add-ons whereas the other controls around are for filtering makes the Add-on Store's GUI less clear. Alternatively, I'd add one more item "Sort by" in the list's context menu with a submenu containing all the names of the column headers. This is similar to Windows Explorer or Desktop context menu (when no item is selected), where you can find a "Sort by" menu item with subitems allowing to sort by name, size, file type, etc. |
@CyrilleB79 , thanks for your feedback.
|
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 @nvdaes - this is a nice approach
I would also be supportive of adding this to the context menu as well, however my experience is that combo-boxes are a more common UX than context menus for sorting (both in Windows dialogs and the web). I think it makes more sense to keep sorting with the filters, rather than the add-on actions. |
Co-authored-by: Sean Budd <[email protected]>
Co-authored-by: Sean Budd <[email protected]>
Co-authored-by: Sean Budd <[email protected]>
Co-authored-by: Sean Budd <[email protected]>
Co-authored-by: Sean Budd <[email protected]>
Co-authored-by: Sean Budd <[email protected]>
See test results for failed build of commit 31746862f4 |
Finally I've tested this successfully and should be ready for review. |
See test results for failed build of commit 1040a2a4c3 |
See test results for failed build of commit f6339ea667 |
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 @nvdaes
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.
Reads well, good job
Link to issue number:
Fixes #15277
Summary of the issue:
Currently, add-ons in the store can't be sortered by column, which is desirable to search for add-ons in a confortable way.
Description of user facing changes
Description of development approach
_columnSortChoices
property, and an optionalreverse
boolean parameter tosetSortField
function (to set aself._reverseSort
_variable) have been added to theAddonListVM
class to build the combo box with ascending and descending options.Testing strategy:
Known issues with pull request:
None
Code Review Checklist:
Summary by CodeRabbit
New Features
alt+m
) to access sorting options easily.Documentation