feat(username): add search text function with examples (#DS-5132)#1664
Conversation
|
Visit the preview URL for this PR (updated for commit fe1f91f): https://koobiq-next--prs-1664-c4djm9p8.web.app (expires Tue, 07 Jul 2026 07:39:43 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c |
There was a problem hiding this comment.
Pull request overview
Adds a new documentation example demonstrating username list filtering by displayed full name and substring highlighting, and wires it into the docs/examples registry and dev showcase for the username component.
Changes:
- Added
UsernameSearchExampleshowcasing a search input, filtering viaKbqUsernamePipe, and highlighting viakbqHighlightBackground. - Registered the new example in the docs examples index and the username dev module template.
- Updated
usernamedocs (EN/RU) with a new “Search and highlight” section referencing the example.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/docs-examples/components/username/username-search/username-search-example.ts | New docs example implementing filtering + highlight rendering for usernames. |
| packages/docs-examples/components/username/index.ts | Exposes and registers the new example in the docs examples module/index. |
| packages/components/username/username.ru.md | Adds RU docs section and embeds the new example. |
| packages/components/username/username.en.md | Adds EN docs section and embeds the new example. |
| packages/components-dev/username/module.ts | Adds the new example to the dev showcase template. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@NikGurev а в выпадашке filter pipe будет возможность применять твоё решение по подсветке комплексного поля Username |
фильтрация и подсветка будут работать, да, добавил пример. Но отображение в триггере из коробки не закастомить сейчас . И изначальный запрос я получается не совсем выполнил. |
|
@lskramarov @rmnturov @artembelik добавил функцию, которая собирает все поля и отображает по заданному формату. Формат соответствует дефолтному отображению в username, его можно кастомить Примеры обновил. У меня правда некорректно работает кастомное отображение опций в filter bar (см скриншот) .
|
да, чет со второго раза опции появляются.. либо в примере не синхронизируется стейт, либо баг в фильтр баре, посмотри пример и если что закинь баг |
@lskramarov DS-5263 |

No description provided.