Skip to content
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

Allow ordering term dictionaries with the same priority using the ui order #981

Merged
merged 8 commits into from
May 21, 2024

Conversation

Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented May 20, 2024

Allowing dictionaries to be ordered by term score severely cripples the reasoning for dictionary ordering in popups and search that the user will see.

I've looked through the original intended use of this (from 8 years ago) and it appears to be redundant now. Previously this was also used to sort different words and is very tailored towards jmdict (or nowadays jitendex) to help sort more popular words over less popular ones. This is no longer how we sort words. Most other dictionaries don't have tagging like this so jmdict dictionaries almost always get the highest score and go to the top unless they are set to lower priority.

This does not make sense at all to do in the current landscape with all the different dictionaries being used and with other language support.

@Kuuuube Kuuuube added kind/enhancement The issue or PR is a new feature or request area/ui-ux The issue or PR is related to UI/UX/Design labels May 20, 2024
@Kuuuube Kuuuube requested a review from a team as a code owner May 20, 2024 17:59
@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug and removed kind/enhancement The issue or PR is a new feature or request labels May 20, 2024
@Kuuuube
Copy link
Member Author

Kuuuube commented May 20, 2024

Changed to only sort by score near the end to preserve support for sorting definitions by score within the same dictionary.

@jamesmaa jamesmaa added this pull request to the merge queue May 21, 2024
Merged via the queue into yomidevs:master with commit 1cdc1c9 May 21, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants