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: logout is fixed
Palash gupta429e3bbd0d59
diff --git a/frontend/src/api/utils.ts b/frontend/src/api/utils.tsindex 56867927a8..fdfa6c32a4 100644--- a/frontend/src/api/utils.ts+++ b/frontend/src/api/utils.ts@@ -5,6 +5,7 @@ import history from 'lib/history';import store from 'store';import {LOGGED_IN,+ UPDATE_ORG,UPDATE_USER,UPDATE_USER_ACCESS_REFRESH_ACCESS_TOKEN,UPDATE_USER_ORG_ROLE,@@ -51,5 +52,12 @@ export const Logout = (): void => {},});+ store.dispatch({+ type: UPDATE_ORG,+ payload: {+ org: [],+ },+ });+history.push(ROUTES.LOGIN);};diff --git a/frontend/src/store/reducers/app.ts b/frontend/src/store/reducers/app.tsindex 5d697f6004..614179103f 100644--- a/frontend/src/store/reducers/app.ts+++ b/frontend/src/store/reducers/app.ts@@ -12,6 +12,7 @@ import {UPDATE_CURRENT_VERSION,UPDATE_LATEST_VERSION,UPDATE_LATEST_VERSION_ERROR,+ UPDATE_ORG,UPDATE_ORG_NAME,UPDATE_USER,UPDATE_USER_ACCESS_REFRESH_ACCESS_TOKEN,@@ -193,6 +194,13 @@ const appReducer = (};}+ case UPDATE_ORG: {+ return {+ ...state,+ org: action.payload.org,+ };+ }+default:return state;}diff --git a/frontend/src/types/actions/app.ts b/frontend/src/types/actions/app.tsindex 829d8ad46f..88e55fb772 100644--- a/frontend/src/types/actions/app.ts+++ b/frontend/src/types/actions/app.ts@@ -20,6 +20,7 @@ export const UPDATE_USER_IS_FETCH = 'UPDATE_USER_IS_FETCH';export const UPDATE_USER_ORG_ROLE = 'UPDATE_USER_ORG_ROLE';export const UPDATE_USER = 'UPDATE_USER';export const UPDATE_ORG_NAME = 'UPDATE_ORG_NAME';+export const UPDATE_ORG = 'UPDATE_ORG';export interface SwitchDarkMode {type: typeof SWITCH_DARK_MODE;@@ -102,6 +103,13 @@ export interface UpdateOrgName {};}+export interface UpdateOrg {+ type: typeof UPDATE_ORG;+ payload: {+ org: AppReducer['org'];+ };+}+export type AppAction =| SwitchDarkMode| LoggedInUser@@ -113,4 +121,5 @@ export type AppAction =| UpdateUserIsFetched| UpdateUserOrgRole| UpdateUser- | UpdateOrgName;+ | UpdateOrgName+ | UpdateOrg;