mirror of
https://github.com/actualbudget/actual.git
synced 2026-07-16 07:04:23 -05:00
[PR #3045] [MERGED] Enhance Autocomplete sorting, Payees tab filter, and Schedules tab filter to ignore characters with accents / diacritics #124082
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/actualbudget/actual/pull/3045
Author: @NullScope
Created: 7/12/2024
Status: ✅ Merged
Merged: 7/22/2024
Merged by: @matt-fidd
Base:
master← Head:sort-diacritics-and-filter-payees📝 Commits (10+)
df86ba9Autocomplete sort now ignores diacriticsf53482ePayees tab now takes into account diacriticsdfe435dCategory Autocomplete now ignores diacritics7cdf173Schedules filter now ignore diacritics3c4739cAdded release note6fc2f9aFixed type error7e2f9b9Added normalisation to manage rules filterc0923d1Added normalisation to $like operator86b26e2Added normalisation function to loot-core653ea1eFixed type error & added normalisation to notlike📊 Changes
13 files changed (+79 additions, -38 deletions)
View changed files
📝
packages/desktop-client/src/components/ManageRules.tsx(+4 -3)📝
packages/desktop-client/src/components/autocomplete/Autocomplete.tsx(+4 -10)📝
packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx(+21 -14)📝
packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx(+7 -2)📝
packages/desktop-client/src/components/payees/ManagePayees.jsx(+2 -1)📝
packages/desktop-client/src/components/schedules/SchedulesTable.tsx(+3 -2)📝
packages/loot-core/src/platform/server/sqlite/index.electron.ts(+3 -0)📝
packages/loot-core/src/platform/server/sqlite/index.web.ts(+2 -0)➕
packages/loot-core/src/platform/server/sqlite/normalise.ts(+9 -0)📝
packages/loot-core/src/server/aql/compiler.test.ts(+8 -4)📝
packages/loot-core/src/server/aql/compiler.ts(+4 -2)➕
packages/loot-core/src/shared/normalisation.ts(+6 -0)➕
upcoming-release-notes/3045.md(+6 -0)📄 Description
Following the PR #2842 from @lelemm I found some other places where we can enhance the input fields for languages with accents / diacritics.
Namely, sorting from autocomplete was giving preference to strings with longer length but no accents. I also found some pages like the Payees and Schedules that were filtering but not autocompleting that were having the same issue.
EDIT: Also done the same for category groups
Here is a video of the issue with the autocomplete sorting and Payees tab filter
https://github.com/user-attachments/assets/274a6949-a5d2-4138-b68b-bac83f74afb4
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.