discourse/app/assets/javascripts/admin/addon
Krzysztof Kotlarek 8eb317b0f9
FIX: improvements for admin search (#33006)
Some adjustments to improve admin search results:
- trim filter phrase and remove multiple spaces
- score for partial label match: "the" should find "Theme and
Components"
- partial keyword score: "custom field" should find "custom fields"
- for keyword and fallback searches, ensure the keyword has at least 3
character to not be flooded by "the", "a", "and" etc.
<img width="728" alt="Screenshot 2025-05-30 at 1 52 38 pm"
src="https://github.com/user-attachments/assets/4d97800d-6ec1-4a54-8ea5-78ceb75b93b8"
/>
<img width="730" alt="Screenshot 2025-05-30 at 1 52 46 pm"
src="https://github.com/user-attachments/assets/ca7baa4e-f19e-4512-ab35-63e594a571cc"
/>
<img width="733" alt="Screenshot 2025-05-30 at 1 52 54 pm"
src="https://github.com/user-attachments/assets/7f5ea85b-11ca-4f59-a564-72364d2a65be"
/>
<img width="721" alt="Screenshot 2025-05-30 at 1 56 18 pm"
src="https://github.com/user-attachments/assets/eb42a293-f14b-4bfa-ad6b-9f63b5fe3303"
/>
2025-05-30 14:52:52 +08:00
..
adapters PERF: Improve performance of the new themes listing page (#32641) 2025-05-08 19:18:07 +03:00
components DEV: remove old themes/components code (#32875) 2025-05-26 09:21:15 +08:00
controllers DEV: remove old themes/components code (#32875) 2025-05-26 09:21:15 +08:00
helpers DEV: Drop legacy topic-list and raw-handlebars compilation system (#32081) 2025-04-14 10:42:40 +01:00
lib DEV: Improve site setting search ranking (#32461) 2025-04-28 16:58:27 +08:00
mixins FEATURE: porting type object to site settings (#32706) 2025-05-13 14:30:24 -03:00
models DEV: revert admin users list change (#32723) 2025-05-15 09:48:01 +02:00
routes DEV: remove old themes/components code (#32875) 2025-05-26 09:21:15 +08:00
services FIX: improvements for admin search (#33006) 2025-05-30 14:52:52 +08:00
templates DEV: remove old themes/components code (#32875) 2025-05-26 09:21:15 +08:00