SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: update search logic in dashboard to search for title, description, tags (#4427)
Yunus M6d67ca72a094
diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsxindex 2b55907c17..4b7d30c5ff 100644--- a/frontend/src/AppRoutes/index.tsx+++ b/frontend/src/AppRoutes/index.tsx@@ -28,7 +28,11 @@ import AppReducer, { User } from 'types/reducer/app';import { extractDomain, isCloudUser, isEECloudUser } from 'utils/app';import PrivateRoute from './Private';-import defaultRoutes, { AppRoutes, SUPPORT_ROUTE } from './routes';+import defaultRoutes, {+ AppRoutes,+ LIST_LICENSES,+ SUPPORT_ROUTE,+} from './routes';function App(): JSX.Element {const themeConfig = useThemeConfig();@@ -150,6 +154,10 @@ function App(): JSX.Element {if (isCloudUserVal || isEECloudUser()) {const newRoutes = [...routes, SUPPORT_ROUTE];+ setRoutes(newRoutes);+ } else {+ const newRoutes = [...routes, LIST_LICENSES];+setRoutes(newRoutes);}diff --git a/frontend/src/AppRoutes/routes.ts b/frontend/src/AppRoutes/routes.tsindex 6fa3accde0..f6923c809a 100644--- a/frontend/src/AppRoutes/routes.ts+++ b/frontend/src/AppRoutes/routes.ts@@ -191,13 +191,6 @@ const routes: AppRoutes[] = [component: AllErrors,key: 'ALL_ERROR',},- {- path: ROUTES.LIST_LICENSES,- exact: true,- component: LicensePage,- isPrivate: true,- key: 'LIST_LICENSES',- },{path: ROUTES.ERROR_DETAIL,exact: true,@@ -320,6 +313,14 @@ export const SUPPORT_ROUTE: AppRoutes = {isPrivate: true,};+export const LIST_LICENSES: AppRoutes = {+ path: ROUTES.LIST_LICENSES,+ exact: true,+ component: LicensePage,+ isPrivate: true,+ key: 'LIST_LICENSES',+};+export interface AppRoutes {component: RouteProps['component'];path: RouteProps['path'];diff --git a/frontend/src/container/ListOfDashboard/utils.ts b/frontend/src/container/ListOfDashboard/utils.tsindex 150aeab6c8..ec3e1016d6 100644--- a/frontend/src/container/ListOfDashboard/utils.ts+++ b/frontend/src/container/ListOfDashboard/utils.ts@@ -4,17 +4,24 @@ export const filterDashboard = (searchValue: string,dashboardList: Dashboard[],): Dashboard[] => {- // Convert the searchValue to lowercase for case-insensitive search- const searchValueLowerCase = searchValue.toLowerCase();- // Use the filter method to find matching objects+ const searchValueLowerCase = searchValue?.toLowerCase();++ // Filter by title, description, tagsreturn dashboardList.filter((item: Dashboard) => {- // Convert each property value to lowercase for case-insensitive search- const itemValues = Object.values(item?.data).map((value) => {- if (value === null || value === undefined) return '';- return value.toString().toLowerCase();- });+ const { title, description, tags } = item.data;+ const itemValuesNew = [title, description];++ if (tags && tags.length > 0) {+ itemValuesNew.push(...tags);+ }// Check if any property value contains the searchValue- return itemValues.some((value) => value.includes(searchValueLowerCase));+ return itemValuesNew.some((value) => {+ if (value) {+ return value.toLowerCase().includes(searchValueLowerCase);+ }++ return false;+ });});};diff --git a/frontend/src/container/SideNav/SideNav.tsx b/frontend/src/container/SideNav/SideNav.tsxindex 3fd937a52f..7f29b96c3a 100644--- a/frontend/src/container/SideNav/SideNav.tsx+++ b/frontend/src/container/SideNav/SideNav.tsx@@ -199,10 +199,7 @@ function SideNav({useEffect(() => {if (isCloudUser() || isEECloudUser()) {- const updatedUserManagementMenuItems = [- helpSupportMenuItem,- manageLicenseMenuItem,- ];+ const updatedUserManagementMenuItems = [helpSupportMenuItem];setUserManagementMenuItems(updatedUserManagementMenuItems);} else if (currentVersion && latestVersion) {diff --git a/frontend/src/container/TopNav/DateTimeSelection/index.tsx b/frontend/src/container/TopNav/DateTimeSelection/index.tsxindex 785f65da8f..c73b5f6d36 100644--- a/frontend/src/container/TopNav/DateTimeSelection/index.tsx+++ b/frontend/src/container/TopNav/DateTimeSelection/index.tsx@@ -211,7 +211,6 @@ function DateTimeSelection({};const onCustomDateHandler = (dateTimeRange: DateTimeRangeType): void => {- console.log('dateTimeRange', dateTimeRange);if (dateTimeRange !== null) {const [startTimeMoment, endTimeMoment] = dateTimeRange;if (startTimeMoment && endTimeMoment) {