weblate icon indicating copy to clipboard operation
weblate copied to clipboard

Default A-Z sort for component list

Open endervad opened this issue 2 years ago • 12 comments

Describe the problem

Currently if you go into any component list, it will be sorted seemingly randomly. Usually though you'd probably want it to be sorted alphabetically.

Describe the solution you'd like

Component list should be sorted by component name by default.

Describe alternatives you've considered

Theoretically this could also be a separate setting in /accounts/profile/#preferences, something like: Component list - Default sorting order: (Component Name, Translated, Untranslated, Suggestions, etc.)

Screenshots

No response

Additional context

No response

endervad avatar Jun 08 '22 14:06 endervad

It should be a sortable list, same as listing projects or components.

nijel avatar Jun 09 '22 08:06 nijel

This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this.

You can learn about how to get started in our contributors documentation.

github-actions[bot] avatar Jun 09 '22 09:06 github-actions[bot]

I request you to assign this issue to me. As a beginner i will definately work on it to produce a worthful outcome. eager to work !

pranathi000 avatar Jun 13 '22 13:06 pranathi000

Thanks, don't hesitate to ask if anything is unclear. All of the logic (listing, sorting) is already present, it just needs to be applied on this view.

nijel avatar Jun 13 '22 14:06 nijel

Hey Nijel, I was wondering if you could give me a lil clarification. So, based on my understanding, the rows listed in the components tab in this website must be sorted alphabetically as opposed to the random sort that in place now. Am I right?

pranathi000 avatar Jun 19 '22 09:06 pranathi000

Component lists are not used on Hosted Weblate. You can see it in action here: https://translate.fedoraproject.org/component-list/fedora-34-release/

Related code is here:

https://github.com/WeblateOrg/weblate/blob/12b1090216018c4c0fdf13ec29d47ea21ce62f33/weblate/trans/views/basic.py#L464-L480

nijel avatar Jun 20 '22 08:06 nijel

Hii where can I see this components part on your website I can't find it. sorry I am new to open source contribution

mohammedpithapur avatar Aug 10 '22 03:08 mohammedpithapur

ok found it

mohammedpithapur avatar Aug 10 '22 03:08 mohammedpithapur

ok so I am a little lost here I have never done this can someone help me

mohammedpithapur avatar Aug 10 '22 03:08 mohammedpithapur

This feature is not used much, see for example the Fedora site link I've posted in https://github.com/WeblateOrg/weblate/issues/7755#issuecomment-1160114460

nijel avatar Aug 10 '22 13:08 nijel

@nijel Is this worth contributing too if it is not an issue on hosted Weblate? Should this be closed?

John-Poulos avatar Sep 04 '22 01:09 John-Poulos

please assign it to me

AkshatGoel-321 avatar Sep 07 '22 19:09 AkshatGoel-321

@John-Poulos Other installations are using this feature, so it's definitely worth implementing.

@AkshatGoel-321 Thanks for your interesting, the issue is now assigned to you.

nijel avatar Oct 25 '22 11:10 nijel