Aiven-Open / Aiven-Open/klaw

feat(coral): Idea - Add highlight on search term in tables

未关闭
#1,820 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement Frontend
主要语言
Java
星标
195
派生
77
平均合并
8 天 9 小时
30 天内合并 PR
1

描述

# What is currently missing?

The search field in tables is sometimes ambiguous as to *what* it searches. For example, here we are matching `TST`, `default`, `UAT`, but it's unclear:

![Screenshot 2023-09-29 at 12 47 01](https://github.com/Aiven-Open/klaw/assets/20607294/429cb2d5-b22d-49fb-9817-f34d56a4c8f9)

# How could this be improved?

We could implement highlighting of search terms in results, like in this proof of concept:

https://github.com/Aiven-Open/klaw/assets/20607294/9880c6b1-3980-45b8-bd90-fd797abb95ef

Code POC visible here: https://github.com/Aiven-Open/klaw/commit/c1b249b900b9ea76952d4eb3f7ed846fcd4bec7f

# Questions

This is a bit of a big task, given that it should be added to every table with a `search` filed (which is most of them). It also brings in an additional dependency for the highlighting (we might want to build such a feature ourselves, but it might not be worth the time).

# Other information

This is tied to this issue as well: [bug(coral/core): The `search` param in some endpoints matches on data which is not displayed](https://github.com/Aiven-Open/klaw/issues/1821)

# Is this a feature you would work on yourself?

- [ ] I plan to open a pull request for this feature

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。