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.

fix: dashboard panel light theme (#4556)

Vikrant Gupta548c53195651
diff --git a/frontend/src/lib/logs/flatLogData.ts b/frontend/src/lib/logs/flatLogData.ts
index d0bf6cf5dd..dfb59b9c68 100644
--- a/frontend/src/lib/logs/flatLogData.ts
+++ b/frontend/src/lib/logs/flatLogData.ts
@@ -1,3 +1,4 @@
+import { defaultTo } from 'lodash-es';
import { ILog } from 'types/api/logs/log';
export function FlatLogData(log: ILog): Record<string, string> {
@@ -7,7 +8,7 @@ export function FlatLogData(log: ILog): Record<string, string> {
if (typeof log[key as never] !== 'object') {
flattenLogObject[key] = log[key as never];
} else {
- Object.keys(log[key as never]).forEach((childKey) => {
+ Object.keys(defaultTo(log[key as never], {})).forEach((childKey) => {
flattenLogObject[childKey] = log[key as never][childKey];
});
}
diff --git a/frontend/src/styles.scss b/frontend/src/styles.scss
index 2cb3ed419c..05f7c400ab 100644
--- a/frontend/src/styles.scss
+++ b/frontend/src/styles.scss
@@ -224,3 +224,21 @@ body {
margin-left: 8px;
margin-right: 8px;
}
+
+.lightMode {
+ .ant-dropdown-menu {
+ border: 1px solid var(--bg-vanilla-300);
+ background: var(--bg-vanilla-100);
+ box-shadow: 4px 10px 16px 2px rgba(0, 0, 0, 0.2);
+ }
+
+ .ant-dropdown-menu-item {
+ &:hover {
+ background-color: var(--bg-vanilla-300) !important;
+
+ &.ant-dropdown-menu-item-danger {
+ background-color: var(--bg-cherry-500) !important;
+ }
+ }
+ }
+}