mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-18 19:19:36 +02:00
Added app descriptions to local search parser
This commit is contained in:
parent
6d8ce5361a
commit
396c442062
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
### v2.X.Y (TBA)
|
||||||
|
- Local search will now include app descriptions ([#266](https://github.com/pawelmalak/flame/issues/266))
|
||||||
|
|
||||||
### v2.2.0 (2021-12-17)
|
### v2.2.0 (2021-12-17)
|
||||||
- Added option to set custom description for apps ([#201](https://github.com/pawelmalak/flame/issues/201))
|
- Added option to set custom description for apps ([#201](https://github.com/pawelmalak/flame/issues/201))
|
||||||
- Fixed fatal error while deploying Flame to cluster ([#242](https://github.com/pawelmalak/flame/issues/242))
|
- Fixed fatal error while deploying Flame to cluster ([#242](https://github.com/pawelmalak/flame/issues/242))
|
||||||
|
|
|
@ -64,8 +64,10 @@ export const Home = (): JSX.Element => {
|
||||||
if (localSearch) {
|
if (localSearch) {
|
||||||
// Search through apps
|
// Search through apps
|
||||||
setAppSearchResult([
|
setAppSearchResult([
|
||||||
...apps.filter(({ name }) =>
|
...apps.filter(({ name, description }) =>
|
||||||
new RegExp(escapeRegex(localSearch), 'i').test(name)
|
new RegExp(escapeRegex(localSearch), 'i').test(
|
||||||
|
`${name} ${description}`
|
||||||
|
)
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue