Skip to content

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.

feat: condition is updated

Palash1e980c388670
diff --git a/frontend/src/container/Trace/Filters/Panel/PanelBody/CommonCheckBox/index.tsx b/frontend/src/container/Trace/Filters/Panel/PanelBody/CommonCheckBox/index.tsx
index 29255ae549..440c9652a7 100644
--- a/frontend/src/container/Trace/Filters/Panel/PanelBody/CommonCheckBox/index.tsx
+++ b/frontend/src/container/Trace/Filters/Panel/PanelBody/CommonCheckBox/index.tsx
@@ -39,6 +39,10 @@ function CommonCheckBox(props: CommonCheckBoxProps): JSX.Element {
});
};
+ const isMoreButtonAvilable = Boolean(
+ numberOfFilters && statusObj.length > numberOfFilters,
+ );
+
return (
<>
{statusObj.length > 0 && (
@@ -62,13 +66,15 @@ function CommonCheckBox(props: CommonCheckBoxProps): JSX.Element {
}
return countA - countB;
})
- .filter((_, index) => index < numberOfFilters)
.filter((filter) => {
if (searchFilter.length === 0) {
return true;
}
- return filter.includes(searchFilter);
+ return filter
+ .toLocaleLowerCase()
+ .includes(searchFilter.toLocaleLowerCase());
})
+ .filter((_, index) => index < numberOfFilters)
.map((e) => (
<CheckBoxComponent
key={e}
@@ -80,7 +86,7 @@ function CommonCheckBox(props: CommonCheckBoxProps): JSX.Element {
/>
))}
- {numberOfFilters && statusObj.length > numberOfFilters && (
+ {isMoreButtonAvilable && (
<Button onClick={onClickMoreHandler} type="link">
More
</Button>