diff --git a/catalog-rest-service/src/main/resources/ui/src/components/app-bar/Appbar.tsx b/catalog-rest-service/src/main/resources/ui/src/components/app-bar/Appbar.tsx
index c19e60782c7..d6df2d7ac5c 100644
--- a/catalog-rest-service/src/main/resources/ui/src/components/app-bar/Appbar.tsx
+++ b/catalog-rest-service/src/main/resources/ui/src/components/app-bar/Appbar.tsx
@@ -181,7 +181,7 @@ const Appbar: React.FC = (): JSX.Element => {
data-testid="appbar-item">
{label !== '' && }
+
{/*
*/}
{
const [serviceList, setServiceList] = useState
>([]);
const [editData, setEditData] = useState();
const [isLoading, setIsLoading] = useState(false);
+ const [searchText, setSearchText] = useState('');
const updateServiceList = (
allServiceCollectionArr: Array
@@ -126,7 +128,17 @@ const ServicesPage = () => {
);
}
};
-
+ const handleSearchAction = (searchValue: string) => {
+ setSearchText(searchValue);
+ const curServ = services[serviceName];
+ setServiceList(
+ (curServ as unknown as Array).filter(
+ (serv) =>
+ serv.description?.includes(lowerCase(searchValue)) ||
+ serv.name?.includes(lowerCase(searchValue))
+ )
+ );
+ };
const handleAddService = () => {
setEditData(undefined);
setIsModalOpen(true);
@@ -360,6 +372,14 @@ const ServicesPage = () => {
))}
+
+
+
{serviceList.length ? (
{
/>
-
- No services found.{' '}
+
+ No services found for {`"${searchText}"`}
+
+