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
chore(fmt): enable oxfmt (#11057)
Vinicius Lourençoa92871d70489
diff --git a/frontend/index.html b/frontend/index.htmlindex 8d6059c0d6..0f328a7e18 100644--- a/frontend/index.html+++ b/frontend/index.html@@ -1,4 +1,4 @@-<!DOCTYPE html>+<!doctype html><html lang="en"><head><meta charset="utf-8" />@@ -72,10 +72,12 @@// to that prefix by the React app (see utils/storage.ts getScopedKey).// Read the <base> tag — already populated by the Go template — to derive// the same prefix here, before any JS module has loaded.- var basePath = (document.querySelector('base') || {}).getAttribute('href') || '/';+ var basePath =+ (document.querySelector('base') || {}).getAttribute('href') || '/';var prefix = basePath === '/' ? '' : basePath;var theme = localStorage.getItem(prefix + 'THEME');- var autoSwitch = localStorage.getItem(prefix + 'THEME_AUTO_SWITCH') === 'true';+ var autoSwitch =+ localStorage.getItem(prefix + 'THEME_AUTO_SWITCH') === 'true';if (autoSwitch) {theme = window.matchMedia('(prefers-color-scheme: dark)').matches? 'dark'diff --git a/frontend/jest.setup.ts b/frontend/jest.setup.tsindex 9562de4cde..af49ae8b40 100644--- a/frontend/jest.setup.ts+++ b/frontend/jest.setup.ts@@ -42,13 +42,13 @@ window.getComputedStyle = function (} catch {// Return a minimal CSSStyleDeclaration so callers (testing-library, Radix UI)// see the element as visible and without animations.- return ({+ return {display: '',visibility: '',opacity: '1',animationName: 'none',getPropertyValue: () => '',- } as unknown) as CSSStyleDeclaration;+ } as unknown as CSSStyleDeclaration;}};diff --git a/frontend/package.json b/frontend/package.jsonindex d0f4ee3f4e..004101dfd9 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -9,7 +9,7 @@"build": "vite build","preview": "vite preview","prettify": "oxfmt",- "fmt": "echo 'Disabled due to migration' || oxfmt --check",+ "fmt": "oxfmt --check","lint": "oxlint ./src && stylelint \"src/**/*.scss\"","lint:js": "oxlint ./src","lint:generated": "oxlint ./src/api/generated --fix",@@ -240,7 +240,7 @@},"lint-staged": {"*.(js|jsx|ts|tsx)": [- "echo 'Disabled due to migration' || oxfmt --check",+ "oxfmt --check","oxlint --fix","sh scripts/typecheck-staged.sh"]diff --git a/frontend/plugins/rules/no-raw-absolute-path.mjs b/frontend/plugins/rules/no-raw-absolute-path.mjsindex 681a4aabb4..0cba9217f6 100644--- a/frontend/plugins/rules/no-raw-absolute-path.mjs+++ b/frontend/plugins/rules/no-raw-absolute-path.mjs@@ -56,7 +56,6 @@ function isExternalUrl(node) {return false;}-// window.open(withBasePath(x)) and window.open(getAbsoluteUrl(x)) are already safe.function isSafeHelperCall(node) {return (@@ -97,18 +96,27 @@ export default {callee.object.type !== 'Identifier' ||callee.object.name !== 'window' ||callee.property.name !== 'open'- )- {return;}- if (args.length === 0) {return;}- if (isExternalUrl(args[0])) {return;}- if (isSafeHelperCall(args[0])) {return;}+ ) {+ return;+ }+ if (args.length === 0) {+ return;+ }+ if (isExternalUrl(args[0])) {+ return;+ }+ if (isSafeHelperCall(args[0])) {+ return;+ }context.report({ node, messageId: 'windowOpen' });},// window.location.origin + pathBinaryExpression(node) {- if (node.operator !== '+') {return;}+ if (node.operator !== '+') {+ return;+ }if (isOriginAccess(node.left) || isOriginAccess(node.right)) {context.report({ node, messageId: 'originConcat' });}@@ -124,26 +132,40 @@ export default {// window.location.origin used directly (not in concatenation)// Catches: frontendBaseUrl: window.location.originMemberExpression(node) {- if (!isOriginAccess(node)) {return;}+ if (!isOriginAccess(node)) {+ return;+ }const parent = node.parent;// Skip if parent is BinaryExpression with + (handled by BinaryExpression visitor)- if (parent.type === 'BinaryExpression' && parent.operator === '+') {return;}+ if (parent.type === 'BinaryExpression' && parent.operator === '+') {+ return;+ }// Skip if inside TemplateLiteral (handled by TemplateLiteral visitor)- if (parent.type === 'TemplateLiteral') {return;}+ if (parent.type === 'TemplateLiteral') {+ return;+ }context.report({ node, messageId: 'originDirect' });},// window.location.href = pathAssignmentExpression(node) {- if (node.operator !== '=') {return;}- if (!isHrefAccess(node.left)) {return;}+ if (node.operator !== '=') {+ return;+ }+ if (!isHrefAccess(node.left)) {+ return;+ }// Allow external URLs- if (isExternalUrl(node.right)) {return;}+ if (isExternalUrl(node.right)) {+ return;+ }// Allow safe helper calls- if (isSafeHelperCall(node.right)) {return;}+ if (isSafeHelperCall(node.right)) {+ return;+ }context.report({ node, messageId: 'hrefAssign' });},diff --git a/frontend/src/api/interceptors.test.ts b/frontend/src/api/interceptors.test.tsindex 130572602e..4ba8b2cafe 100644--- a/frontend/src/api/interceptors.test.ts+++ b/frontend/src/api/interceptors.test.ts@@ -39,8 +39,8 @@ jest.mock('axios', () => {describe('interceptorRejected', () => {beforeEach(() => {jest.clearAllMocks();- ((axios as unknown) as jest.Mock).mockResolvedValue({ data: 'success' });- ((axios.isAxiosError as unknown) as jest.Mock).mockReturnValue(true);+ (axios as unknown as jest.Mock).mockResolvedValue({ data: 'success' });+ (axios.isAxiosError as unknown as jest.Mock).mockReturnValue(true);});it('should preserve array payload structure when retrying a 401 request', async () => {@@ -49,7 +49,7 @@ describe('interceptorRejected', () => {{ relation: 'assignee', object: { resource: { name: 'editor' } } },];- const error = ({+ const error = {response: {status: 401,config: {@@ -67,7 +67,7 @@ describe('interceptorRejected', () => {headers: new AxiosHeaders(),data: JSON.stringify(arrayPayload),},- } as unknown) as AxiosResponse;+ } as unknown as AxiosResponse;try {await interceptorRejected(error);@@ -75,7 +75,7 @@ describe('interceptorRejected', () => {// Expected to reject after retry}- const mockAxiosFn = (axios as unknown) as jest.Mock;+ const mockAxiosFn = axios as unknown as jest.Mock;expect(mockAxiosFn.mock.calls.length).toBe(1);const retryCallConfig = mockAxiosFn.mock.calls[0][0];expect(Array.isArray(JSON.parse(retryCallConfig.data))).toBe(true);@@ -85,7 +85,7 @@ describe('interceptorRejected', () => {it('should preserve object payload structure when retrying a 401 request', async () => {const objectPayload = { key: 'value', nested: { data: 123 } };- const error = ({+ const error = {response: {status: 401,config: {@@ -103,7 +103,7 @@ describe('interceptorRejected', () => {headers: new AxiosHeaders(),data: JSON.stringify(objectPayload),},- } as unknown) as AxiosResponse;+ } as unknown as AxiosResponse;try {await interceptorRejected(error);@@ -111,14 +111,14 @@ describe('interceptorRejected', () => {// Expected to reject after retry}- const mockAxiosFn = (axios as unknown) as jest.Mock;+ const mockAxiosFn = axios as unknown as jest.Mock;expect(mockAxiosFn.mock.calls.length).toBe(1);const retryCallConfig = mockAxiosFn.mock.calls[0][0];expect(JSON.parse(retryCallConfig.data)).toEqual(objectPayload);});it('should handle undefined data gracefully when retrying', async () => {- const error = ({+ const error = {response: {status: 401,config: {@@ -136,7 +136,7 @@ describe('interceptorRejected', () => {headers: new AxiosHeaders(),data: undefined,},- } as unknown) as AxiosResponse;+ } as unknown as AxiosResponse;try {await interceptorRejected(error);@@ -144,7 +144,7 @@ describe('interceptorRejected', () => {// Expected to reject after retry}- const mockAxiosFn = (axios as unknown) as jest.Mock;+ const mockAxiosFn = axios as unknown as jest.Mock;expect(mockAxiosFn.mock.calls.length).toBe(1);const retryCallConfig = mockAxiosFn.mock.calls[0][0];expect(retryCallConfig.data).toBeUndefined();diff --git a/frontend/src/api/settings/getRetentionV2.ts b/frontend/src/api/settings/getRetentionV2.tsindex 8fa5ab1d85..c6961bcd4b 100644--- a/frontend/src/api/settings/getRetentionV2.ts+++ b/frontend/src/api/settings/getRetentionV2.ts@@ -9,9 +9,8 @@ const getRetentionV2 = async (): Promise<SuccessResponseV2<PayloadProps<'logs'>>> => {try {- const response = await ApiV2Instance.get<PayloadProps<'logs'>>(- `/settings/ttl`,- );+ const response =+ await ApiV2Instance.get<PayloadProps<'logs'>>(`/settings/ttl`);return {httpStatusCode: response.status,diff --git a/frontend/src/api/v5/queryRange/convertV5Response.test.ts b/frontend/src/api/v5/queryRange/convertV5Response.test.tsindex 723f2e857c..9c7e0cabf2 100644--- a/frontend/src/api/v5/queryRange/convertV5Response.test.ts+++ b/frontend/src/api/v5/queryRange/convertV5Response.test.ts@@ -52,18 +52,18 @@ describe('convertV5ResponseToLegacy', () => {alias: '__result_0',meta: {},series: [- ({+ {labels: [{- key: ({ name: 'service.name' } as unknown) as TelemetryFieldKey,+ key: { name: 'service.name' } as unknown as TelemetryFieldKey,value: 'adservice',},],values: [- ({ timestamp: 1000, value: 10 } as unknown) as TimeSeriesValue,- ({ timestamp: 2000, value: 12 } as unknown) as TimeSeriesValue,+ { timestamp: 1000, value: 10 } as unknown as TimeSeriesValue,+ { timestamp: 2000, value: 12 } as unknown as TimeSeriesValue,],- } as unknown) as TimeSeries,+ } as unknown as TimeSeries,],},],@@ -88,10 +88,8 @@ describe('convertV5ResponseToLegacy', () => {},]);- const input: SuccessResponse<- MetricRangePayloadV5,- QueryRangeRequestV5- > = makeBaseSuccess({ data: v5Data }, params);+ const input: SuccessResponse<MetricRangePayloadV5, QueryRangeRequestV5> =+ makeBaseSuccess({ data: v5Data }, params);const legendMap = { A: '{{service.name}}' };const result = convertV5ResponseToLegacy(input, legendMap, false);@@ -121,33 +119,33 @@ describe('convertV5ResponseToLegacy', () => {const scalar: ScalarData = {columns: [// group column- ({+ {name: 'service.name',queryName: 'A',aggregationIndex: 0,columnType: 'group',- } as unknown) as ScalarData['columns'][number],+ } as unknown as ScalarData['columns'][number],// aggregation 0- ({+ {name: '__result_0',queryName: 'A',aggregationIndex: 0,columnType: 'aggregation',- } as unknown) as ScalarData['columns'][number],+ } as unknown as ScalarData['columns'][number],// aggregation 1- ({+ {name: '__result_1',queryName: 'A',aggregationIndex: 1,columnType: 'aggregation',- } as unknown) as ScalarData['columns'][number],+ } as unknown as ScalarData['columns'][number],// formula F1- ({+ {name: '__result',queryName: 'F1',aggregationIndex: 0,columnType: 'aggregation',- } as unknown) as ScalarData['columns'][number],+ } as unknown as ScalarData['columns'][number],],data: [['adservice', 606, 1.452, 151.5]],};@@ -174,17 +172,15 @@ describe('convertV5ResponseToLegacy', () => {},{type: 'builder_formula',- spec: ({+ spec: {name: 'F1',expression: 'A * 0.25',- } as unknown) as QueryBuilderFormula,+ } as unknown as QueryBuilderFormula,},]);- const input: SuccessResponse<- MetricRangePayloadV5,- QueryRangeRequestV5- > = makeBaseSuccess({ data: v5Data }, params);+ const input: SuccessResponse<MetricRangePayloadV5, QueryRangeRequestV5> =+ makeBaseSuccess({ data: v5Data }, params);const legendMap = { A: '{{service.name}}', F1: '' };const result = convertV5ResponseToLegacy(input, legendMap, false);@@ -254,10 +250,8 @@ describe('convertV5ResponseToLegacy', () => {},]);- const input: SuccessResponse<- MetricRangePayloadV5,- QueryRangeRequestV5- > = makeBaseSuccess({ data: v5Data }, params);+ const input: SuccessResponse<MetricRangePayloadV5, QueryRangeRequestV5> =+ makeBaseSuccess({ data: v5Data }, params);const legendMap = { A: '{{service.name}}' };const result = convertV5ResponseToLegacy(input, legendMap, true);diff --git a/frontend/src/api/v5/queryRange/convertV5Response.ts b/frontend/src/api/v5/queryRange/convertV5Response.tsindex 863da04daf..f0f45f92dd 100644--- a/frontend/src/api/v5/queryRange/convertV5Response.ts+++ b/frontend/src/api/v5/queryRange/convertV5Response.ts@@ -93,7 +93,7 @@ function convertTimeSeriesData(labels: series.labels? Object.fromEntries(series.labels.map((label: any) => [label.key.name, label.value]),- )+ ): {},labelsArray: series.labels? series.labels.map((label: any) => ({ [label.key.name]: label.value }))@@ -358,16 +358,19 @@ export function convertV5ResponseToLegacy(const aggregationPerQuery =(params as QueryRangeRequestV5)?.compositeQuery?.queries?.filter((query) => query.type === 'builder_query')- .reduce((acc, query) => {- if (- query.type === 'builder_query' &&- 'aggregations' in query.spec &&- query.spec.name- ) {- acc[query.spec.name] = query.spec.aggregations;- }- return acc;- }, {} as Record<string, any>) || {};+ .reduce(+ (acc, query) => {+ if (+ query.type === 'builder_query' &&+ 'aggregations' in query.spec &&+ query.spec.name+ ) {+ acc[query.spec.name] = query.spec.aggregations;+ }+ return acc;+ },+ {} as Record<string, any>,+ ) || {};// If formatForWeb is true, return as-is (like existing logic)if (formatForWeb && v5Data?.type === 'scalar') {diff --git a/frontend/src/api/v5/queryRange/prepareQueryRangePayloadV5.test.ts b/frontend/src/api/v5/queryRange/prepareQueryRangePayloadV5.test.tsindex 4481b3fdca..773946d8d5 100644--- a/frontend/src/api/v5/queryRange/prepareQueryRangePayloadV5.test.ts+++ b/frontend/src/api/v5/queryRange/prepareQueryRangePayloadV5.test.ts@@ -713,7 +713,7 @@ describe('prepareQueryRangePayloadV5', () => {baseBuilderQuery({dataSource: DataSource.LOGS,filter: { expression: 'http.status_code >= 500' },- filters: (undefined as unknown) as IBuilderQuery['filters'],+ filters: undefined as unknown as IBuilderQuery['filters'],}),],queryFormulas: [],@@ -746,7 +746,7 @@ describe('prepareQueryRangePayloadV5', () => {queryData: [baseBuilderQuery({dataSource: DataSource.LOGS,- filter: (undefined as unknown) as IBuilderQuery['filter'],+ filter: undefined as unknown as IBuilderQuery['filter'],filters: {items: [{@@ -834,8 +834,8 @@ describe('prepareQueryRangePayloadV5', () => {queryData: [baseBuilderQuery({dataSource: DataSource.LOGS,- filter: (undefined as unknown) as IBuilderQuery['filter'],- filters: (undefined as unknown) as IBuilderQuery['filters'],+ filter: undefined as unknown as IBuilderQuery['filter'],+ filters: undefined as unknown as IBuilderQuery['filters'],}),],queryFormulas: [],diff --git a/frontend/src/api/v5/queryRange/prepareQueryRangePayloadV5.ts b/frontend/src/api/v5/queryRange/prepareQueryRangePayloadV5.tsindex 436a1e70a8..0ef02c091d 100644--- a/frontend/src/api/v5/queryRange/prepareQueryRangePayloadV5.ts+++ b/frontend/src/api/v5/queryRange/prepareQueryRangePayloadV5.ts@@ -139,10 +139,9 @@ function createBaseSpec(requestType: RequestType,panelType?: PANEL_TYPES,): BaseBuilderQuery {- const nonEmptySelectColumns = (queryData.selectColumns as (- | BaseAutocompleteData- | TelemetryFieldKey- )[])?.filter((c) => ('key' in c ? c?.key : c?.name));+ const nonEmptySelectColumns = (+ queryData.selectColumns as (BaseAutocompleteData | TelemetryFieldKey)[]+ )?.filter((c) => ('key' in c ? c?.key : c?.name));return {stepInterval: queryData?.stepInterval || null,@@ -160,7 +159,7 @@ function createBaseSpec(signal: item?.signal,materialized: item?.materialized,}),- )+ ): undefined,limit:panelType === PANEL_TYPES.TABLE || panelType === PANEL_TYPES.LIST@@ -179,52 +178,48 @@ function createBaseSpec(},direction: order.order,}),- )+ ): undefined,legend: isEmpty(queryData.legend) ? undefined : queryData.legend,having: isEmpty(queryData.having) ? undefined : (queryData?.having as Having),functions: isEmpty(queryData.functions)? undefined- : queryData.functions.map(- (func: QueryFunction): QueryFunction => {- // Normalize function name to handle case sensitivity- const normalizedName = normalizeFunctionName(func?.name);- return {- name: normalizedName as FunctionName,- args: isEmpty(func.namedArgs)- ? func.args?.map((arg) => ({- value: arg?.value,- }))- : Object.entries(func?.namedArgs || {}).map(([name, value]) => ({- name,- value,- })),- };- },- ),+ : queryData.functions.map((func: QueryFunction): QueryFunction => {+ // Normalize function name to handle case sensitivity+ const normalizedName = normalizeFunctionName(func?.name);+ return {+ name: normalizedName as FunctionName,+ args: isEmpty(func.namedArgs)+ ? func.args?.map((arg) => ({+ value: arg?.value,+ }))+ : Object.entries(func?.namedArgs || {}).map(([name, value]) => ({+ name,+ value,+ })),+ };+ }),selectFields: isEmpty(nonEmptySelectColumns)? undefined- : nonEmptySelectColumns?.map(- (column: any): TelemetryFieldKey => {- const fieldName = column.name ?? column.key;- const isDeprecated = isDeprecatedField(fieldName);-- const fieldObj: TelemetryFieldKey = {- name: fieldName,- fieldDataType:- column?.fieldDataType ?? (column?.dataType as FieldDataType),- signal: column?.signal ?? undefined,- };-- // Only add fieldContext if the field is NOT deprecated- if (!isDeprecated && fieldName !== 'name') {- fieldObj.fieldContext =- column?.fieldContext ?? (column?.type as FieldContext);- }-- return fieldObj;- },- ),+ : nonEmptySelectColumns?.map((column: any): TelemetryFieldKey => {+ const fieldName = column.name ?? column.key;+ const isDeprecated = isDeprecatedField(fieldName);++ const fieldObj: TelemetryFieldKey = {+ name: fieldName,+ fieldDataType:+ column?.fieldDataType ?? (column?.dataType as FieldDataType),+ signal: column?.signal ?? undefined,+ };++ // Only add fieldContext if the field is NOT deprecated+ if (!isDeprecated && fieldName !== 'name') {+ fieldObj.fieldContext =+ column?.fieldContext ?? (column?.type as FieldContext);+ }++ return fieldObj;+ }),};}@@ -236,7 +231,8 @@ export function parseAggregations(const result: { expression: string; alias?: string }[] = [];// Matches function calls like "count()" or "sum(field)" with optional alias like "as 'alias'"// Handles quoted ('alias'), dash-separated (field-name), and unquoted values after "as" keyword- const regex = /([a-zA-Z0-9_]+\([^)]*\))(?:\s*as\s+((?:'[^']*'|"[^"]*"|[a-zA-Z0-9_-]+)))?/g;+ const regex =+ /([a-zA-Z0-9_]+\([^)]*\))(?:\s*as\s+((?:'[^']*'|"[^"]*"|[a-zA-Z0-9_-]+)))?/g;let match = regex.exec(expression);while (match !== null) {const expr = match[1];@@ -365,10 +361,9 @@ function createTraceOperatorBaseSpec(requestType: RequestType,panelType?: PANEL_TYPES,): BaseBuilderQuery {- const nonEmptySelectColumns = (queryData.selectColumns as (- | BaseAutocompleteData- | TelemetryFieldKey- )[])?.filter((c) => ('key' in c ? c?.key : c?.name));+ const nonEmptySelectColumns = (+ queryData.selectColumns as (BaseAutocompleteData | TelemetryFieldKey)[]+ )?.filter((c) => ('key' in c ? c?.key : c?.name));const {stepInterval,@@ -395,7 +390,7 @@ function createTraceOperatorBaseSpec(signal: item?.signal,materialized: item?.materialized,}),- )+ ): undefined,limit:panelType === PANEL_TYPES.TABLE || panelType === PANEL_TYPES.LIST@@ -411,7 +406,7 @@ function createTraceOperatorBaseSpec(},direction: order.order,}),- )+ ): undefined,legend: isEmpty(legend) ? undefined : legend,having: isEmpty(having) ? undefined : (having as Having),@@ -425,7 +420,7 @@ function createTraceOperatorBaseSpec(fieldContext: column?.fieldContext ?? (column?.type as FieldContext),signal: column?.signal ?? undefined,}),- ),+ ),};}@@ -507,18 +502,22 @@ export function convertClickHouseQueriesToV5(/*** Helper function to reduce query arrays to objects*/-function reduceQueriesToObject(- queryArray: any[],-): { queries: Record<string, any>; legends: Record<string, string> } {+function reduceQueriesToObject(queryArray: any[]): {+ queries: Record<string, any>;+ legends: Record<string, string>;+} {const legends: Record<string, string> = {};- const queries = queryArray.reduce((acc, queryItem) => {- if (!queryItem.query) {+ const queries = queryArray.reduce(+ (acc, queryItem) => {+ if (!queryItem.query) {+ return acc;+ }+ acc[queryItem.name] = queryItem;+ legends[queryItem.name] = queryItem.legend;return acc;- }- acc[queryItem.name] = queryItem;- legends[queryItem.name] = queryItem.legend;- return acc;- }, {} as Record<string, any>);+ },+ {} as Record<string, any>,+ );return { queries, legends };}@@ -554,7 +553,7 @@ export const prepareQueryRangePayloadV5 = ({queryTraceOperator && queryTraceOperator.length > 0? queryTraceOperator.filter((traceOperator) =>Boolean(traceOperator.expression.trim()),- )+ ): [];const currentTraceOperator = mapQueryDataToApi(@@ -648,15 +647,18 @@ export const prepareQueryRangePayloadV5 = ({: graphType === PANEL_TYPES.TABLE),fillGaps: fillGaps || false,},- variables: Object.entries(variables).reduce((acc, [key, value]) => {- acc[key] = {- value,- type: dynamicVariables- ?.find((v) => v.name === key)- ?.type?.toLowerCase() as VariableType,- };- return acc;- }, {} as Record<string, VariableItem>),+ variables: Object.entries(variables).reduce(+ (acc, [key, value]) => {+ acc[key] = {+ value,+ type: dynamicVariables+ ?.find((v) => v.name === key)+ ?.type?.toLowerCase() as VariableType,+ };+ return acc;+ },+ {} as Record<string, VariableItem>,+ ),};return { legendMap, queryPayload };diff --git a/frontend/src/components/AppLoading/__tests__/AppLoading.test.tsx b/frontend/src/components/AppLoading/__tests__/AppLoading.test.tsxindex 834da089fd..0dace6194f 100644--- a/frontend/src/components/AppLoading/__tests__/AppLoading.test.tsx+++ b/frontend/src/components/AppLoading/__tests__/AppLoading.test.tsx@@ -9,7 +9,7 @@ jest.mock('../../../api/browser/localstorage/get', () => ({}));// Access the mocked function-const mockGet = (getLocal as unknown) as jest.Mock;+const mockGet = getLocal as unknown as jest.Mock;describe('AppLoading', () => {const SIGNOZ_TEXT = 'SigNoz';diff --git a/frontend/src/components/CeleryOverview/CeleryOverviewConfigOptions/CeleryOverviewConfigOptions.tsx b/frontend/src/components/CeleryOverview/CeleryOverviewConfigOptions/CeleryOverviewConfigOptions.tsxindex 70c47e7911..d602b721f7 100644--- a/frontend/src/components/CeleryOverview/CeleryOverviewConfigOptions/CeleryOverviewConfigOptions.tsx+++ b/frontend/src/components/CeleryOverview/CeleryOverviewConfigOptions/CeleryOverviewConfigOptions.tsx@@ -31,9 +31,8 @@ export function FilterSelect({onChange,isMultiple,}: SelectOptionConfig): JSX.Element {- const { handleSearch, isFetching, options } = useCeleryFilterOptions(- filterType,- );+ const { handleSearch, isFetching, options } =+ useCeleryFilterOptions(filterType);const urlQuery = useUrlQuery();const history = useHistory();diff --git a/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.tsx b/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.tsxindex 94ca6cca70..bb35763d0f 100644--- a/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.tsx+++ b/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.tsx@@ -280,30 +280,28 @@ function getTableData(data: QueueOverviewResponse['data']): RowData[] {];const tableData: RowData[] =- data?.map(- (row, index: number): RowData => {- const rowData: Record<string, string | number> = {};- columnOrder.forEach((key) => {- const value = row.data[key as keyof typeof row.data];- if (typeof value === 'string' || typeof value === 'number') {- rowData[key] = value;- }- });- Object.entries(row.data).forEach(([key, value]) => {- if (- !columnOrder.includes(key) &&- (typeof value === 'string' || typeof value === 'number')- ) {- rowData[key] = value;- }- });+ data?.map((row, index: number): RowData => {+ const rowData: Record<string, string | number> = {};+ columnOrder.forEach((key) => {+ const value = row.data[key as keyof typeof row.data];+ if (typeof value === 'string' || typeof value === 'number') {+ rowData[key] = value;+ }+ });+ Object.entries(row.data).forEach(([key, value]) => {+ if (+ !columnOrder.includes(key) &&+ (typeof value === 'string' || typeof value === 'number')+ ) {+ rowData[key] = value;+ }+ });- return {- ...rowData,- key: index,- };- },- ) || [];+ return {+ ...rowData,+ key: index,+ };+ }) || [];return tableData;}@@ -480,10 +478,10 @@ export default function CeleryOverviewTable({[searchText],);- const filteredData = useMemo(() => getFilteredData(tableData), [- getFilteredData,- tableData,- ]);+ const filteredData = useMemo(+ () => getFilteredData(tableData),+ [getFilteredData, tableData],+ );const prevTableDataRef = useRef<string>();diff --git a/frontend/src/components/CeleryTask/CeleryTaskConfigOptions/CeleryTaskConfigOptions.tsx b/frontend/src/components/CeleryTask/CeleryTaskConfigOptions/CeleryTaskConfigOptions.tsxindex 33952fc42e..62fda94d8b 100644--- a/frontend/src/components/CeleryTask/CeleryTaskConfigOptions/CeleryTaskConfigOptions.tsx+++ b/frontend/src/components/CeleryTask/CeleryTaskConfigOptions/CeleryTaskConfigOptions.tsx@@ -13,9 +13,8 @@ import { useCeleryFilterOptions } from '../useCeleryFilterOptions';import './CeleryTaskConfigOptions.styles.scss';function CeleryTaskConfigOptions(): JSX.Element {- const { handleSearch, isFetching, options } = useCeleryFilterOptions(- 'celery.task_name',- );+ const { handleSearch, isFetching, options } =+ useCeleryFilterOptions('celery.task_name');const history = useHistory();const location = useLocation();diff --git a/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraphUtils.ts b/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraphUtils.tsindex 484c702342..26f1d0630f 100644--- a/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraphUtils.ts+++ b/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraphUtils.ts@@ -469,8 +469,7 @@ export const celeryActiveTasksWidgetData = ({aggregateAttribute: {dataType: DataTypes.Float64,- id:- 'flower_worker_number_of_currently_executing_tasks--float64--Gauge--true',+ id: 'flower_worker_number_of_currently_executing_tasks--float64--Gauge--true',key: 'flower_worker_number_of_currently_executing_tasks',type: 'Gauge',},diff --git a/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskLatencyGraph.tsx b/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskLatencyGraph.tsxindex cf4870c194..373d1493cc 100644--- a/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskLatencyGraph.tsx+++ b/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskLatencyGraph.tsx@@ -127,22 +127,17 @@ function CeleryTaskLatencyGraph({const onGraphClickHandler = useGraphClickHandler(handleSetTimeStamp);const onGraphClick = useCallback(- (type: string): OnClickPluginOpts['onClick'] => (- xValue,- yValue,- mouseX,- mouseY,- data,- ): Promise<void> => {- const [firstDataPoint] = Object.entries(data || {});- const [entity, value] = firstDataPoint;- setEntityData({- entity,- value,- });+ (type: string): OnClickPluginOpts['onClick'] =>+ (xValue, yValue, mouseX, mouseY, data): Promise<void> => {+ const [firstDataPoint] = Object.entries(data || {});+ const [entity, value] = firstDataPoint;+ setEntityData({+ entity,+ value,+ });- return onGraphClickHandler(xValue, yValue, mouseX, mouseY, type);- },+ return onGraphClickHandler(xValue, yValue, mouseX, mouseY, type);+ },// eslint-disable-next-line react-hooks/exhaustive-deps[handleSetTimeStamp],);diff --git a/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskStateGraphConfig.tsx b/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskStateGraphConfig.tsxindex 9489bde476..bf08866886 100644--- a/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskStateGraphConfig.tsx+++ b/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskStateGraphConfig.tsx@@ -92,10 +92,10 @@ function CeleryTaskStateGraphConfig({{isLoading? '-': isError- ? '-'- : Number.isNaN(values[index])- ? '-'- : Math.round(Number(values[index]))}+ ? '-'+ : Number.isNaN(values[index])+ ? '-'+ : Math.round(Number(values[index]))}</div></div>{tab.key === barState && <div className="celery-task-states__indicator" />}diff --git a/frontend/src/components/CeleryTask/CeleryUtils.ts b/frontend/src/components/CeleryTask/CeleryUtils.tsindex 41278c378e..fcea636689 100644--- a/frontend/src/components/CeleryTask/CeleryUtils.ts+++ b/frontend/src/components/CeleryTask/CeleryUtils.ts@@ -65,7 +65,7 @@ export function applyCeleryFilterOnWidgetData(items: [...(queryItem.filters?.items || []), ...filters],op: queryItem.filters?.op || 'AND',},- }+ }: queryItem,),},diff --git a/frontend/src/components/CeleryTask/useGetGraphCustomSeries.ts b/frontend/src/components/CeleryTask/useGetGraphCustomSeries.tsindex 6e8fc557fa..04bb7c3bec 100644--- a/frontend/src/components/CeleryTask/useGetGraphCustomSeries.ts+++ b/frontend/src/components/CeleryTask/useGetGraphCustomSeries.ts@@ -9,7 +9,7 @@ import { paths } from './CeleryUtils';interface UseGetGraphCustomSeriesProps {isDarkMode: boolean;- drawStyle?: typeof drawStyles[keyof typeof drawStyles];+ drawStyle?: (typeof drawStyles)[keyof typeof drawStyles];colorMapping?: Record<string, string>;}diff --git a/frontend/src/components/ChangelogModal/ChangelogModal.tsx b/frontend/src/components/ChangelogModal/ChangelogModal.tsxindex 88c059ae82..9922a911b4 100644--- a/frontend/src/components/ChangelogModal/ChangelogModal.tsx+++ b/frontend/src/components/ChangelogModal/ChangelogModal.tsx@@ -37,9 +37,8 @@ function ChangelogModal({ changelog, onClose }: Props): JSX.Element {preference.name === USER_PREFERENCES.LAST_SEEN_CHANGELOG_VERSION,)?.value as string;- const { mutate: updateUserPreferenceMutation } = useMutation(- updateUserPreference,- );+ const { mutate: updateUserPreferenceMutation } =+ useMutation(updateUserPreference);useEffect(() => {// Update the seen version@@ -60,11 +59,8 @@ function ChangelogModal({ changelog, onClose }: Props): JSX.Element {const checkScroll = useCallback((): void => {if (changelogContentSectionRef.current) {- const {- scrollHeight,- clientHeight,- scrollTop,- } = changelogContentSectionRef.current;+ const { scrollHeight, clientHeight, scrollTop } =+ changelogContentSectionRef.current;const isAtBottom = scrollHeight - clientHeight - scrollTop <= 8;setHasScroll(scrollHeight > clientHeight + 24 && !isAtBottom); // 24px - buffer height to show show more}diff --git a/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx b/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsxindex f7258690d2..7da976a3cd 100644--- a/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx+++ b/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx@@ -14,9 +14,8 @@ import { getBaseUrl } from 'utils/basePath';export default function ChatSupportGateway(): JSX.Element {const { notifications } = useNotifications();- const [isAddCreditCardModalOpen, setIsAddCreditCardModalOpen] = useState(- false,- );+ const [isAddCreditCardModalOpen, setIsAddCreditCardModalOpen] =+ useState(false);const handleBillingOnSuccess = (data: SuccessResponseV2<CheckoutSuccessPayloadProps>,diff --git a/frontend/src/components/ClientSideQBSearch/ClientSideQBSearch.tsx b/frontend/src/components/ClientSideQBSearch/ClientSideQBSearch.tsxindex 6ffa5194c7..33124f6b40 100644--- a/frontend/src/components/ClientSideQBSearch/ClientSideQBSearch.tsx+++ b/frontend/src/components/ClientSideQBSearch/ClientSideQBSearch.tsx@@ -388,7 +388,7 @@ function ClientSideQBSearch(({label: key.key,value: key,- } as Option),+ }) as Option,) || [],);}@@ -462,7 +462,7 @@ function ClientSideQBSearch(({label: checkCommaInValue(String(val)),value: val,- } as Option),+ }) as Option,),);} else {@@ -490,7 +490,7 @@ function ClientSideQBSearch(Array.isArray(tag.value) &&tag.value[tag.value.length - 1] === ''? tag.value?.slice(0, -1)- : tag.value ?? '';+ : (tag.value ?? '');filterTags.items.push({id: tag.id || uuid().slice(0, 8),key: tag.key,diff --git a/frontend/src/components/CreateServiceAccountModal/CreateServiceAccountModal.tsx b/frontend/src/components/CreateServiceAccountModal/CreateServiceAccountModal.tsxindex a138488f28..ceb51550a9 100644--- a/frontend/src/components/CreateServiceAccountModal/CreateServiceAccountModal.tsx+++ b/frontend/src/components/CreateServiceAccountModal/CreateServiceAccountModal.tsx@@ -47,25 +47,23 @@ function CreateServiceAccountModal(): JSX.Element {},});- const {- mutate: createServiceAccount,- isLoading: isSubmitting,- } = useCreateServiceAccount({- mutation: {- onSuccess: async () => {- toast.success('Service account created successfully');- reset();- await setIsOpen(null);- await invalidateListServiceAccounts(queryClient);- },- onError: (err) => {- const errMessage = convertToApiError(- err as AxiosError<RenderErrorResponseDTO, unknown> | null,- );- showErrorModal(errMessage as APIError);+ const { mutate: createServiceAccount, isLoading: isSubmitting } =+ useCreateServiceAccount({+ mutation: {+ onSuccess: async () => {+ toast.success('Service account created successfully');+ reset();+ await setIsOpen(null);+ await invalidateListServiceAccounts(queryClient);+ },+ onError: (err) => {+ const errMessage = convertToApiError(+ err as AxiosError<RenderErrorResponseDTO, unknown> | null,+ );+ showErrorModal(errMessage as APIError);+ },},- },- });+ });function handleClose(): void {reset();diff --git a/frontend/src/components/CustomTimePicker/CustomTimePicker.tsx b/frontend/src/components/CustomTimePicker/CustomTimePicker.tsxindex 8b679e399f..05a67f1199 100644--- a/frontend/src/components/CustomTimePicker/CustomTimePicker.tsx+++ b/frontend/src/components/CustomTimePicker/CustomTimePicker.tsx@@ -96,10 +96,8 @@ function CustomTimePicker({maxTime,isModalTimeSelection = false,}: CustomTimePickerProps): JSX.Element {- const [- selectedTimePlaceholderValue,- setSelectedTimePlaceholderValue,- ] = useState('Select / Enter Time Range');+ const [selectedTimePlaceholderValue, setSelectedTimePlaceholderValue] =+ useState('Select / Enter Time Range');const [inputValue, setInputValue] = useState('');const [inputStatus, setInputStatus] = useState<CustomTimePickerInputStatus>(diff --git a/frontend/src/components/CustomTimePicker/CustomTimePickerPopoverContent.tsx b/frontend/src/components/CustomTimePicker/CustomTimePickerPopoverContent.tsxindex 296b7c7f1c..a2767964af 100644--- a/frontend/src/components/CustomTimePicker/CustomTimePickerPopoverContent.tsx+++ b/frontend/src/components/CustomTimePicker/CustomTimePickerPopoverContent.tsx@@ -116,9 +116,10 @@ function CustomTimePickerPopoverContent({}: CustomTimePickerPopoverContentProps): JSX.Element {const { pathname } = useLocation();- const isLogsExplorerPage = useMemo(() => pathname === ROUTES.LOGS_EXPLORER, [- pathname,- ]);+ const isLogsExplorerPage = useMemo(+ () => pathname === ROUTES.LOGS_EXPLORER,+ [pathname],+ );const url = new URLSearchParams(window.location.search);@@ -154,8 +155,8 @@ function CustomTimePickerPopoverContent({if (!customDateTimeVisible) {const customTimeRanges = getCustomTimeRanges();- const formattedCustomTimeRanges: RecentlyUsedDateTimeRange[] = customTimeRanges.map(- (range) => ({+ const formattedCustomTimeRanges: RecentlyUsedDateTimeRange[] =+ customTimeRanges.map((range) => ({label: `${dayjs(range.from).tz(timezone.value).format(DATE_TIME_FORMATS.DD_MMM_YYYY_HH_MM_SS)} - ${dayjs(range.to)@@ -165,8 +166,7 @@ function CustomTimePickerPopoverContent({to: range.to,value: range.timestamp,timestamp: range.timestamp,- }),- );+ }));setRecentlyUsedTimeRanges(formattedCustomTimeRanges);}diff --git a/frontend/src/components/CustomTimePicker/timezoneUtils.ts b/frontend/src/components/CustomTimePicker/timezoneUtils.tsindex 5651f077f0..b06649d02d 100644--- a/frontend/src/components/CustomTimePicker/timezoneUtils.ts+++ b/frontend/src/components/CustomTimePicker/timezoneUtils.ts@@ -19,7 +19,7 @@ const TIMEZONE_TYPES = {STANDARD: 'STANDARD',} as const;-type TimezoneType = typeof TIMEZONE_TYPES[keyof typeof TIMEZONE_TYPES];+type TimezoneType = (typeof TIMEZONE_TYPES)[keyof typeof TIMEZONE_TYPES];export const UTC_TIMEZONE: Timezone = {name: 'Coordinated Universal Time — UTC, GMT',diff --git a/frontend/src/components/DraggableTableRow/index.tsx b/frontend/src/components/DraggableTableRow/index.tsxindex 8ec848fb8b..2985d22bac 100644--- a/frontend/src/components/DraggableTableRow/index.tsx+++ b/frontend/src/components/DraggableTableRow/index.tsx@@ -41,8 +41,7 @@ function DraggableTableRow({);}-interface DraggableTableRowProps- extends React.HTMLAttributes<HTMLTableRowElement> {+interface DraggableTableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {index: number;moveRow: (dragIndex: number, hoverIndex: number) => void;}diff --git a/frontend/src/components/DraggableTableRow/utils.ts b/frontend/src/components/DraggableTableRow/utils.tsindex 475145fdee..142f845812 100644--- a/frontend/src/components/DraggableTableRow/utils.ts+++ b/frontend/src/components/DraggableTableRow/utils.ts@@ -6,9 +6,9 @@ export function dropHandler(monitor: DropTargetMonitor): { isOver: boolean } {};}-export function dragHandler(- monitor: DragSourceMonitor,-): { isDragging: boolean } {+export function dragHandler(monitor: DragSourceMonitor): {+ isDragging: boolean;+} {return {isDragging: monitor.isDragging(),};diff --git a/frontend/src/components/EditMemberDrawer/EditMemberDrawer.tsx b/frontend/src/components/EditMemberDrawer/EditMemberDrawer.tsxindex 8992c45542..931dc4070c 100644--- a/frontend/src/components/EditMemberDrawer/EditMemberDrawer.tsx+++ b/frontend/src/components/EditMemberDrawer/EditMemberDrawer.tsx@@ -158,10 +158,8 @@ function EditMemberDrawer({new Date(String(existingToken.expiresAt)) < new Date();// Create/regenerate token mutation- const {- mutateAsync: createTokenMutation,- isLoading: isGeneratingLink,- } = useCreateResetPasswordToken();+ const { mutateAsync: createTokenMutation, isLoading: isGeneratingLink } =+ useCreateResetPasswordToken();const fetchedDisplayName =fetchedUser?.data?.displayName ?? member?.name ?? '';@@ -221,22 +219,20 @@ function EditMemberDrawer({});const makeRoleRetry = useCallback(- (- context: string,- rawRetry: () => Promise<void>,- ) => async (): Promise<void> => {- try {- await rawRetry();- setSaveErrors((prev) => prev.filter((e) => e.context !== context));- refetchUser();- } catch (err) {- setSaveErrors((prev) =>- prev.map((e) =>- e.context === context ? { ...e, apiError: toSaveApiError(err) } : e,- ),- );- }- },+ (context: string, rawRetry: () => Promise<void>) =>+ async (): Promise<void> => {+ try {+ await rawRetry();+ setSaveErrors((prev) => prev.filter((e) => e.context !== context));+ refetchUser();+ } catch (err) {+ setSaveErrors((prev) =>+ prev.map((e) =>+ e.context === context ? { ...e, apiError: toSaveApiError(err) } : e,+ ),+ );+ }+ },[refetchUser],);@@ -280,7 +276,7 @@ function EditMemberDrawer({: updateUser({pathParams: { id: member.id },data: { displayName: localDisplayName },- })+ }): Promise.resolve();const [nameResult, rolesResult] = await Promise.allSettled([@@ -389,7 +385,7 @@ function EditMemberDrawer({? formatTimezoneAdjustedTimestamp(String(response.data.expiresAt),DATE_TIME_FORMATS.DASH_DATETIME,- )+ ): null,);setHasCopiedResetLink(false);@@ -498,8 +494,8 @@ function EditMemberDrawer({isRootUser? ROOT_USER_TOOLTIP: isDeleted- ? undefined- : 'You cannot modify your own role'+ ? undefined+ : 'You cannot modify your own role'}><div className="edit-member-drawer__input-wrapper edit-member-drawer__input-wrapper--disabled">@@ -622,13 +618,13 @@ function EditMemberDrawer({{isGeneratingLink? 'Generating...': isInvited- ? getInviteButtonLabel(- isLoadingTokenStatus,- existingToken,- isTokenExpired,- tokenNotFound,- )- : 'Generate Password Reset Link'}+ ? getInviteButtonLabel(+ isLoadingTokenStatus,+ existingToken,+ isTokenExpired,+ tokenNotFound,+ )+ : 'Generate Password Reset Link'}</Button></span></Tooltip>diff --git a/frontend/src/components/ErrorModal/components/ErrorContent.styles.scss b/frontend/src/components/ErrorModal/components/ErrorContent.styles.scssindex f1c97d817e..2f86a5725c 100644--- a/frontend/src/components/ErrorModal/components/ErrorContent.styles.scss+++ b/frontend/src/components/ErrorModal/components/ErrorContent.styles.scss@@ -168,9 +168,12 @@gap: 3px;background: var(--l1-border);border-radius: 20px;- box-shadow: 0px 103px 12px 0px rgba(0, 0, 0, 0.01),- 0px 66px 18px 0px rgba(0, 0, 0, 0.01), 0px 37px 22px 0px rgba(0, 0, 0, 0.03),- 0px 17px 17px 0px rgba(0, 0, 0, 0.04), 0px 4px 9px 0px rgba(0, 0, 0, 0.04);+ box-shadow:+ 0px 103px 12px 0px rgba(0, 0, 0, 0.01),+ 0px 66px 18px 0px rgba(0, 0, 0, 0.01),+ 0px 37px 22px 0px rgba(0, 0, 0, 0.03),+ 0px 17px 17px 0px rgba(0, 0, 0, 0.04),+ 0px 4px 9px 0px rgba(0, 0, 0, 0.04);}&__scroll-hint-text {diff --git a/frontend/src/components/ErrorModal/components/ErrorContent.tsx b/frontend/src/components/ErrorModal/components/ErrorContent.tsxindex 21ee381346..b10c0aa92e 100644--- a/frontend/src/components/ErrorModal/components/ErrorContent.tsx+++ b/frontend/src/components/ErrorModal/components/ErrorContent.tsx@@ -25,15 +25,14 @@ function ErrorContent({ error, icon }: ErrorContentProps): JSX.Element {errors: errorMessages,code: errorCode,message: errorMessage,- } =- error && 'error' in error- ? error?.error?.error || {}- : {- url: undefined,- errors: [],- code: error.code || 500,- message: error.message || 'Something went wrong',- };+ } = error && 'error' in error+ ? error?.error?.error || {}+ : {+ url: undefined,+ errors: [],+ code: error.code || 500,+ message: error.message || 'Something went wrong',+ };return (<section className="error-content">{/* Summary Header */}diff --git a/frontend/src/components/ExplorerCard/MenuItemGenerator.tsx b/frontend/src/components/ExplorerCard/MenuItemGenerator.tsxindex dc4c86e622..60ba524355 100644--- a/frontend/src/components/ExplorerCard/MenuItemGenerator.tsx+++ b/frontend/src/components/ExplorerCard/MenuItemGenerator.tsx@@ -23,11 +23,8 @@ function MenuItemGenerator({refetchAllView,sourcePage,}: MenuItemLabelGeneratorProps): JSX.Element {- const {- panelType,- redirectWithQueryBuilderData,- updateAllQueriesOperators,- } = useQueryBuilder();+ const { panelType, redirectWithQueryBuilderData, updateAllQueriesOperators } =+ useQueryBuilder();const { handleExplorerTabChange } = useHandleExplorerTabChange();const { notifications } = useNotifications();diff --git a/frontend/src/components/ExplorerCard/SaveViewWithName.tsx b/frontend/src/components/ExplorerCard/SaveViewWithName.tsxindex 309e383844..10b36ba572 100644--- a/frontend/src/components/ExplorerCard/SaveViewWithName.tsx+++ b/frontend/src/components/ExplorerCard/SaveViewWithName.tsx@@ -17,11 +17,8 @@ function SaveViewWithName({}: SaveViewWithNameProps): JSX.Element {const [form] = Form.useForm<SaveViewFormProps>();const { t } = useTranslation(['explorer']);- const {- currentQuery,- panelType,- redirectWithQueryBuilderData,- } = useQueryBuilder();+ const { currentQuery, panelType, redirectWithQueryBuilderData } =+ useQueryBuilder();const { notifications } = useNotifications();const compositeQuery = mapCompositeQueryFromQuery(currentQuery, panelType);diff --git a/frontend/src/components/ExplorerCard/constants.ts b/frontend/src/components/ExplorerCard/constants.tsindex ee06168796..aeaa553383 100644--- a/frontend/src/components/ExplorerCard/constants.ts+++ b/frontend/src/components/ExplorerCard/constants.ts@@ -1,8 +1,7 @@import { QueryParams } from 'constants/query';export const ExploreHeaderToolTip = {- url:- 'https://signoz.io/docs/userguide/query-builder/?utm_source=product&utm_medium=new-query-builder',+ url: 'https://signoz.io/docs/userguide/query-builder/?utm_source=product&utm_medium=new-query-builder',text: 'More details on how to use query builder',};diff --git a/frontend/src/components/Graph/Plugin/DragSelect.ts b/frontend/src/components/Graph/Plugin/DragSelect.tsindex f6e8858ee2..e90444e22d 100644--- a/frontend/src/components/Graph/Plugin/DragSelect.ts+++ b/frontend/src/components/Graph/Plugin/DragSelect.ts@@ -55,9 +55,8 @@ function createMousedownHandler(startDragPositionX = right;}- const startValuePositionX = chart.scales.x.getValueForPixel(- startDragPositionX,- );+ const startValuePositionX =+ chart.scales.x.getValueForPixel(startDragPositionX);dragData.onDragStart(startDragPositionX, startValuePositionX);};@@ -109,9 +108,8 @@ function createMouseupHandler(endRelativePostionX = right;}- const endValuePositionX = chart.scales.x.getValueForPixel(- endRelativePostionX,- );+ const endValuePositionX =+ chart.scales.x.getValueForPixel(endRelativePostionX);dragData.onDragEnd(endRelativePostionX, endValuePositionX);diff --git a/frontend/src/components/Graph/Plugin/IntersectionCursor.ts b/frontend/src/components/Graph/Plugin/IntersectionCursor.tsindex 055350c82e..29cf546147 100644--- a/frontend/src/components/Graph/Plugin/IntersectionCursor.ts+++ b/frontend/src/components/Graph/Plugin/IntersectionCursor.ts@@ -12,11 +12,12 @@ export type IntersectionCursorPluginOptions = {gapSize?: number;};-export const defaultIntersectionCursorPluginOptions: Required<IntersectionCursorPluginOptions> = {- color: 'white',- dashSize: 3,- gapSize: 3,-};+export const defaultIntersectionCursorPluginOptions: Required<IntersectionCursorPluginOptions> =+ {+ color: 'white',+ dashSize: 3,+ gapSize: 3,+ };export function createIntersectionCursorPluginOptions(isEnabled: boolean,diff --git a/frontend/src/components/Graph/Plugin/Legend.ts b/frontend/src/components/Graph/Plugin/Legend.tsindex a0efe10a07..0dfc8728f6 100644--- a/frontend/src/components/Graph/Plugin/Legend.ts+++ b/frontend/src/components/Graph/Plugin/Legend.ts@@ -52,7 +52,7 @@ export const legend = (id: string, isLonger: boolean): Plugin<ChartType> => ({])? get(chart, ['options', 'plugins', 'legend', 'labels', 'generateLabels'])(chart,- )+ ): null;items?.forEach((item: Record<any, any>, index: number) => {diff --git a/frontend/src/components/Graph/utils.ts b/frontend/src/components/Graph/utils.tsindex 1f1ce56f0d..01f1bf6cf4 100644--- a/frontend/src/components/Graph/utils.ts+++ b/frontend/src/components/Graph/utils.ts@@ -95,7 +95,7 @@ export const getGraphOptions = (},],},- }+ }: {}),title: {display: title !== undefined,diff --git a/frontend/src/components/InviteMembersModal/InviteMembersModal.styles.scss b/frontend/src/components/InviteMembersModal/InviteMembersModal.styles.scssindex fa80d146cc..3b2c6fade5 100644--- a/frontend/src/components/InviteMembersModal/InviteMembersModal.styles.scss+++ b/frontend/src/components/InviteMembersModal/InviteMembersModal.styles.scss@@ -177,7 +177,9 @@color: var(--destructive);opacity: 0.6;padding: 0;- transition: background-color 0.2s, opacity 0.2s;+ transition:+ background-color 0.2s,+ opacity 0.2s;box-shadow: none;&:hover {diff --git a/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx b/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsxindex d69b10dd31..de6bdc3289 100644--- a/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx+++ b/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx@@ -47,9 +47,8 @@ function LaunchChatSupport({featureFlagsFetchError,isLoggedIn,} = useAppContext();- const [isAddCreditCardModalOpen, setIsAddCreditCardModalOpen] = useState(- false,- );+ const [isAddCreditCardModalOpen, setIsAddCreditCardModalOpen] =+ useState(false);const { pathname } = useLocation();diff --git a/frontend/src/components/LogDetail/constants.ts b/frontend/src/components/LogDetail/constants.tsindex dea5121dd1..fa7c7c45bd 100644--- a/frontend/src/components/LogDetail/constants.ts+++ b/frontend/src/components/LogDetail/constants.ts@@ -5,7 +5,7 @@ export const VIEW_TYPES = {INFRAMETRICS: 'INFRAMETRICS',} as const;-export type VIEWS = typeof VIEW_TYPES[keyof typeof VIEW_TYPES];+export type VIEWS = (typeof VIEW_TYPES)[keyof typeof VIEW_TYPES];export const RESOURCE_KEYS = {CLUSTER_NAME: 'k8s.cluster.name',diff --git a/frontend/src/components/LogDetail/index.tsx b/frontend/src/components/LogDetail/index.tsxindex 43558df79d..3fcdb8fafa 100644--- a/frontend/src/components/LogDetail/index.tsx+++ b/frontend/src/components/LogDetail/index.tsx@@ -261,7 +261,7 @@ function LogDetailInner({...query.filter,expression: value,},- }+ }: query,),},diff --git a/frontend/src/components/Logs/AddToQueryHOC.tsx b/frontend/src/components/Logs/AddToQueryHOC.tsxindex 51c092b0a1..61f82addcd 100644--- a/frontend/src/components/Logs/AddToQueryHOC.tsx+++ b/frontend/src/components/Logs/AddToQueryHOC.tsx@@ -20,9 +20,10 @@ function AddToQueryHOC({onAddToQuery(fieldKey, fieldValue, OPERATORS['='], dataType);};- const popOverContent = useMemo(() => <span>Add to query: {fieldKey}</span>, [- fieldKey,- ]);+ const popOverContent = useMemo(+ () => <span>Add to query: {fieldKey}</span>,+ [fieldKey],+ );return (<div className={cx('addToQueryContainer', fontSize)} onClick={handleQueryAdd}>diff --git a/frontend/src/components/Logs/ListLogView/index.tsx b/frontend/src/components/Logs/ListLogView/index.tsxindex 0f131686be..4cc46e9483 100644--- a/frontend/src/components/Logs/ListLogView/index.tsx+++ b/frontend/src/components/Logs/ListLogView/index.tsx@@ -104,7 +104,7 @@ type ListLogViewProps = {selectedFields: IField[];onSetActiveLog: (log: ILog,- selectedTab?: typeof VIEW_TYPES[keyof typeof VIEW_TYPES],+ selectedTab?: (typeof VIEW_TYPES)[keyof typeof VIEW_TYPES],) => void;onAddToQuery: AddToQueryHOCProps['onAddToQuery'];activeLog?: ILog | null;@@ -166,11 +166,11 @@ function ListLogView({? formatTimezoneAdjustedTimestamp(flattenLogData.timestamp,DATE_TIME_FORMATS.ISO_DATETIME_MS,- )+ ): formatTimezoneAdjustedTimestamp(flattenLogData.timestamp / 1e6,DATE_TIME_FORMATS.ISO_DATETIME_MS,- ),+ ),[flattenLogData.timestamp, formatTimezoneAdjustedTimestamp],);diff --git a/frontend/src/components/Logs/ListLogView/styles.ts b/frontend/src/components/Logs/ListLogView/styles.tsindex 16f1109d43..45da967744 100644--- a/frontend/src/components/Logs/ListLogView/styles.ts+++ b/frontend/src/components/Logs/ListLogView/styles.ts@@ -24,10 +24,10 @@ export const Container = styled(Card)<{fontSize === FontSize.SMALL? `margin-bottom:0.1rem;`: fontSize === FontSize.MEDIUM- ? `margin-bottom: 0.2rem;`- : fontSize === FontSize.LARGE- ? `margin-bottom:0.3rem;`- : ``}+ ? `margin-bottom: 0.2rem;`+ : fontSize === FontSize.LARGE+ ? `margin-bottom:0.3rem;`+ : ``}cursor: pointer;&:not(:hover) .log-line-action-buttons {@@ -41,10 +41,10 @@ export const Container = styled(Card)<{fontSize === FontSize.SMALL? `padding:0.1rem 0.6rem;`: fontSize === FontSize.MEDIUM- ? `padding: 0.2rem 0.6rem;`- : fontSize === FontSize.LARGE- ? `padding:0.3rem 0.6rem;`- : ``}+ ? `padding: 0.2rem 0.6rem;`+ : fontSize === FontSize.LARGE+ ? `padding:0.3rem 0.6rem;`+ : ``}${({ $isActiveLog, $isDarkMode, $logType }): string =>getActiveLogBackground($isActiveLog, $isDarkMode, $logType)}@@ -65,8 +65,8 @@ export const LogContainer = styled.div<LogContainerProps>`fontSize === FontSize.SMALL? `gap: 2px;`: fontSize === FontSize.MEDIUM- ? ` gap:4px;`- : `gap:6px;`}+ ? ` gap:4px;`+ : `gap:6px;`}`;export const LogText = styled.div<LogTextProps>`diff --git a/frontend/src/components/Logs/RawLogView/index.tsx b/frontend/src/components/Logs/RawLogView/index.tsxindex fec2994235..8c9f1f7f8b 100644--- a/frontend/src/components/Logs/RawLogView/index.tsx+++ b/frontend/src/components/Logs/RawLogView/index.tsx@@ -88,11 +88,11 @@ function RawLogView({? formatTimezoneAdjustedTimestamp(data.timestamp,DATE_TIME_FORMATS.ISO_DATETIME_MS,- )+ ): formatTimezoneAdjustedTimestamp(data.timestamp / 1e6,DATE_TIME_FORMATS.ISO_DATETIME_MS,- );+ );parts.push(date);}diff --git a/frontend/src/components/Logs/RawLogView/styles.ts b/frontend/src/components/Logs/RawLogView/styles.tsindex 531cc68f62..587cc3eb9c 100644--- a/frontend/src/components/Logs/RawLogView/styles.ts+++ b/frontend/src/components/Logs/RawLogView/styles.ts@@ -39,22 +39,22 @@ export const RawLogViewContainer = styled(Row)<{fontSize === FontSize.SMALL? `margin: 1px 0;`: fontSize === FontSize.MEDIUM- ? `margin: 1px 0;`- : `margin: 2px 0;`}+ ? `margin: 1px 0;`+ : `margin: 2px 0;`}}${({ $isReadOnly, $isActiveLog, $isDarkMode, $logType }): string =>$isActiveLog? getActiveLogBackground($isActiveLog, $isDarkMode, $logType): !$isReadOnly- ? `&:hover { ${getActiveLogBackground(true, $isDarkMode, $logType)} }`- : ''}+ ? `&:hover { ${getActiveLogBackground(true, $isDarkMode, $logType)} }`+ : ''}${({ $isHightlightedLog, $isDarkMode }): string =>$isHightlightedLog? `background-color: ${$isDarkMode ? Color.BG_ROBIN_600 : Color.BG_VANILLA_400- };+ };transition: background-color 2s ease-in;`: ''}@@ -104,8 +104,8 @@ export const RawLogContent = styled.div<RawLogContentProps>`fontSize === FontSize.SMALL? `font-size:11px; line-height:16px; padding:1px;`: fontSize === FontSize.MEDIUM- ? `font-size:13px; line-height:20px; padding:1px;`- : `font-size:14px; line-height:24px; padding:2px;`}+ ? `font-size:13px; line-height:20px; padding:1px;`+ : `font-size:14px; line-height:24px; padding:2px;`}cursor: ${({ $isActiveLog, $isReadOnly }): string =>$isActiveLog || $isReadOnly ? 'initial' : 'pointer'};diff --git a/frontend/src/components/Logs/RawLogView/types.ts b/frontend/src/components/Logs/RawLogView/types.tsindex e8ba3febea..331aef8b88 100644--- a/frontend/src/components/Logs/RawLogView/types.ts+++ b/frontend/src/components/Logs/RawLogView/types.ts@@ -19,7 +19,7 @@ export interface RawLogViewProps {handleChangeSelectedView?: ChangeViewFunctionType;onSetActiveLog?: (log: ILog,- selectedTab?: typeof VIEW_TYPES[keyof typeof VIEW_TYPES],+ selectedTab?: (typeof VIEW_TYPES)[keyof typeof VIEW_TYPES],) => void;onClearActiveLog?: () => void;}diff --git a/frontend/src/components/Logs/TableView/styles.ts b/frontend/src/components/Logs/TableView/styles.tsindex 43176bacc9..0ffdcf216b 100644--- a/frontend/src/components/Logs/TableView/styles.ts+++ b/frontend/src/components/Logs/TableView/styles.ts@@ -27,6 +27,6 @@ export const TableBodyContent = styled.div<TableBodyContentProps>`fontSize === FontSize.SMALL? `font-size:11px; line-height:16px;`: fontSize === FontSize.MEDIUM- ? `font-size:13px; line-height:20px;`- : `font-size:14px; line-height:24px;`}+ ? `font-size:13px; line-height:20px;`+ : `font-size:14px; line-height:24px;`}`;diff --git a/frontend/src/components/Logs/TableView/useLogsTableColumns.tsx b/frontend/src/components/Logs/TableView/useLogsTableColumns.tsxindex e6e421fbe3..7b554318a7 100644--- a/frontend/src/components/Logs/TableView/useLogsTableColumns.tsx+++ b/frontend/src/components/Logs/TableView/useLogsTableColumns.tsx@@ -75,10 +75,10 @@ export function useLogsTableColumns({: formatTimezoneAdjustedTimestamp(ts / 1e6,DATE_TIME_FORMATS.ISO_DATETIME_MS,- );+ );return <TanStackTable.Text>{formatted}</TanStackTable.Text>;},- }+ }: null;const bodyCol: TableColumnDef<ILog> | null = fields.some(@@ -100,7 +100,7 @@ export function useLogsTableColumns({data-active={isActive}/>),- }+ }: null;return [diff --git a/frontend/src/components/Logs/TableView/useTableView.tsx b/frontend/src/components/Logs/TableView/useTableView.tsxindex 9466e34bd1..d92e0b3ac7 100644--- a/frontend/src/components/Logs/TableView/useTableView.tsx+++ b/frontend/src/components/Logs/TableView/useTableView.tsx@@ -34,9 +34,10 @@ export const useTableView = (props: UseTableViewProps): UseTableViewResult => {const isDarkMode = useIsDarkMode();- const flattenLogData = useMemo(() => logs.map((log) => FlatLogData(log)), [- logs,- ]);+ const flattenLogData = useMemo(+ () => logs.map((log) => FlatLogData(log)),+ [logs],+ );const { formatTimezoneAdjustedTimestamp } = useTimezone();@@ -115,11 +116,11 @@ export const useTableView = (props: UseTableViewProps): UseTableViewResult => {? formatTimezoneAdjustedTimestamp(field,DATE_TIME_FORMATS.ISO_DATETIME_MS,- )+ ): formatTimezoneAdjustedTimestamp(field / 1e6,DATE_TIME_FORMATS.ISO_DATETIME_MS,- );+ );return {children: (<div className="table-timestamp">@@ -129,7 +130,7 @@ export const useTableView = (props: UseTableViewProps): UseTableViewResult => {};},},- ]+ ]: []),...(appendTo === 'center' ? fieldColumns : []),...(fields.some((field) => field.name === 'body')@@ -160,7 +161,7 @@ export const useTableView = (props: UseTableViewProps): UseTableViewResult => {),}),},- ]+ ]: []),...(appendTo === 'end' ? fieldColumns : []),];diff --git a/frontend/src/components/LogsFormatOptionsMenu/LogsFormatOptionsMenu.tsx b/frontend/src/components/LogsFormatOptionsMenu/LogsFormatOptionsMenu.tsxindex fc7e73e7ed..bac05ae4cd 100644--- a/frontend/src/components/LogsFormatOptionsMenu/LogsFormatOptionsMenu.tsx+++ b/frontend/src/components/LogsFormatOptionsMenu/LogsFormatOptionsMenu.tsx@@ -35,13 +35,11 @@ function OptionsMenu({const [fontSizeValue, setFontSizeValue] = useState<FontSize>(fontSize?.value || FontSize.SMALL,);- const [isFontSizeOptionsOpen, setIsFontSizeOptionsOpen] = useState<boolean>(- false,- );+ const [isFontSizeOptionsOpen, setIsFontSizeOptionsOpen] =+ useState<boolean>(false);- const [showAddNewColumnContainer, setShowAddNewColumnContainer] = useState(- false,- );+ const [showAddNewColumnContainer, setShowAddNewColumnContainer] =+ useState(false);const [selectedValue, setSelectedValue] = useState<string | null>(null);const listRef = useRef<HTMLDivElement>(null);diff --git a/frontend/src/components/NewSelect/CustomMultiSelect.tsx b/frontend/src/components/NewSelect/CustomMultiSelect.tsxindex b258c18a62..a4ec8bab05 100644--- a/frontend/src/components/NewSelect/CustomMultiSelect.tsx+++ b/frontend/src/components/NewSelect/CustomMultiSelect.tsx@@ -260,23 +260,28 @@ const CustomMultiSelect: React.FC<CustomMultiSelectProps> = ({/*** Separates section and non-section options*/- const splitOptions = useCallback((options: OptionData[]): {- sectionOptions: OptionData[];- nonSectionOptions: OptionData[];- } => {- const sectionOptions: OptionData[] = [];- const nonSectionOptions: OptionData[] = [];-- options.forEach((option) => {- if ('options' in option && Array.isArray(option.options)) {- sectionOptions.push(option);- } else {- nonSectionOptions.push(option);- }- });+ const splitOptions = useCallback(+ (+ options: OptionData[],+ ): {+ sectionOptions: OptionData[];+ nonSectionOptions: OptionData[];+ } => {+ const sectionOptions: OptionData[] = [];+ const nonSectionOptions: OptionData[] = [];++ options.forEach((option) => {+ if ('options' in option && Array.isArray(option.options)) {+ sectionOptions.push(option);+ } else {+ nonSectionOptions.push(option);+ }+ });- return { sectionOptions, nonSectionOptions };- }, []);+ return { sectionOptions, nonSectionOptions };+ },+ [],+ );/*** Apply search filtering to options@@ -1629,7 +1634,7 @@ const CustomMultiSelect: React.FC<CustomMultiSelectProps> = ({}}data={enhancedNonSectionOptions}itemContent={(index, item): React.ReactNode =>- (mapOptions([item]) as unknown) as React.ReactElement+ mapOptions([item]) as unknown as React.ReactElement}totalCount={enhancedNonSectionOptions.length}itemSize={(): number => 40}@@ -1671,7 +1676,7 @@ const CustomMultiSelect: React.FC<CustomMultiSelectProps> = ({}}data={section.options || []}itemContent={(index, item): React.ReactNode =>- (mapOptions([item]) as unknown) as React.ReactElement+ mapOptions([item]) as unknown as React.ReactElement}totalCount={section.options?.length || 0}itemSize={(): number => 40}@@ -1936,7 +1941,7 @@ const CustomMultiSelect: React.FC<CustomMultiSelectProps> = ({? {borderColor: Color.BG_ROBIN_500,backgroundColor: Color.BG_SLATE_400,- }+ }: undefined}>diff --git a/frontend/src/components/NewSelect/CustomSelect.tsx b/frontend/src/components/NewSelect/CustomSelect.tsxindex 5c7087e332..6ad6b027f9 100644--- a/frontend/src/components/NewSelect/CustomSelect.tsx+++ b/frontend/src/components/NewSelect/CustomSelect.tsx@@ -112,23 +112,28 @@ const CustomSelect: React.FC<CustomSelectProps> = ({/*** Separates section and non-section options*/- const splitOptions = useCallback((options: OptionData[]): {- sectionOptions: OptionData[];- nonSectionOptions: OptionData[];- } => {- const sectionOptions: OptionData[] = [];- const nonSectionOptions: OptionData[] = [];-- options.forEach((option) => {- if ('options' in option && Array.isArray(option.options)) {- sectionOptions.push(option);- } else {- nonSectionOptions.push(option);- }- });+ const splitOptions = useCallback(+ (+ options: OptionData[],+ ): {+ sectionOptions: OptionData[];+ nonSectionOptions: OptionData[];+ } => {+ const sectionOptions: OptionData[] = [];+ const nonSectionOptions: OptionData[] = [];++ options.forEach((option) => {+ if ('options' in option && Array.isArray(option.options)) {+ sectionOptions.push(option);+ } else {+ nonSectionOptions.push(option);+ }+ });- return { sectionOptions, nonSectionOptions };- }, []);+ return { sectionOptions, nonSectionOptions };+ },+ [],+ );/*** Apply search filtering to options@@ -322,9 +327,8 @@ const CustomSelect: React.FC<CustomSelectProps> = ({processedOptions = filterOptionsBySearch(processedOptions, searchText);}- const { sectionOptions, nonSectionOptions } = splitOptions(- processedOptions,- );+ const { sectionOptions, nonSectionOptions } =+ splitOptions(processedOptions);// Add custom option if neededif (diff --git a/frontend/src/components/NewSelect/__test__/CustomMultiSelect.test.tsx b/frontend/src/components/NewSelect/__test__/CustomMultiSelect.test.tsxindex 15ecaf47de..896ff46533 100644--- a/frontend/src/components/NewSelect/__test__/CustomMultiSelect.test.tsx+++ b/frontend/src/components/NewSelect/__test__/CustomMultiSelect.test.tsx@@ -336,7 +336,7 @@ describe('CustomMultiSelect Component', () => {renderWithVirtuoso(<CustomMultiSelectoptions={mockGroupedOptions}- value={('__ALL__' as unknown) as string[]}+ value={'__ALL__' as unknown as string[]}/>,);diff --git a/frontend/src/components/NewSelect/styles.scss b/frontend/src/components/NewSelect/styles.scssindex 014adeec37..817d20977a 100644--- a/frontend/src/components/NewSelect/styles.scss+++ b/frontend/src/components/NewSelect/styles.scss@@ -180,7 +180,9 @@ $custom-border-color: #2c3044;.custom-multiselect-dropdown-container {z-index: 1050 !important;padding: 0;- box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.5), 0 6px 16px 0 rgba(0, 0, 0, 0.4),+ box-shadow:+ 0 3px 6px -4px rgba(0, 0, 0, 0.5),+ 0 6px 16px 0 rgba(0, 0, 0, 0.4),0 9px 28px 8px rgba(0, 0, 0, 0.3);background-color: var(--l2-background);border: 1px solid var(--l1-border);@@ -804,8 +806,10 @@ $custom-border-color: #2c3044;.custom-multiselect-dropdown-container {background-color: var(--l1-background);border: 1px solid var(--l1-border);- box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),- 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);+ box-shadow:+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),+ 0 9px 28px 8px rgba(0, 0, 0, 0.05);.empty-message {color: var(--l2-foreground);@@ -976,7 +980,9 @@ $custom-border-color: #2c3044;font-weight: 500;z-index: 2;pointer-events: none;- transition: opacity 0.2s ease, visibility 0.2s ease;+ transition:+ opacity 0.2s ease,+ visibility 0.2s ease;.lightMode & {color: rgba(0, 0, 0, 0.85);diff --git a/frontend/src/components/NewSelect/types.ts b/frontend/src/components/NewSelect/types.tsindex 2e8a19de82..ca5b8d3c76 100644--- a/frontend/src/components/NewSelect/types.ts+++ b/frontend/src/components/NewSelect/types.ts@@ -40,8 +40,10 @@ export interface CustomTagProps {onClose: () => void;}-export interface CustomMultiSelectProps- extends Omit<SelectProps<string[] | string>, 'options'> {+export interface CustomMultiSelectProps extends Omit<+ SelectProps<string[] | string>,+ 'options'+> {placeholder?: string;className?: string;loading?: boolean;diff --git a/frontend/src/components/OverlayScrollbar/OverlayScrollbar.tsx b/frontend/src/components/OverlayScrollbar/OverlayScrollbar.tsxindex 258d16fc01..a9ab516ad9 100644--- a/frontend/src/components/OverlayScrollbar/OverlayScrollbar.tsx+++ b/frontend/src/components/OverlayScrollbar/OverlayScrollbar.tsx@@ -26,7 +26,7 @@ function OverlayScrollbar({theme: isDarkMode ? 'os-theme-light' : 'os-theme-dark',},...(customOptions || {}),- } as PartialOptions),+ }) as PartialOptions,[customOptions, isDarkMode],);diff --git a/frontend/src/components/QueryBuilderV2/QueryBuilderV2.styles.scss b/frontend/src/components/QueryBuilderV2/QueryBuilderV2.styles.scssindex a3acd2ce00..7080ada0b7 100644--- a/frontend/src/components/QueryBuilderV2/QueryBuilderV2.styles.scss+++ b/frontend/src/components/QueryBuilderV2/QueryBuilderV2.styles.scss@@ -10,8 +10,14 @@border-bottom: 1px solid var(--l1-border);border-top: 1px solid var(--l1-border);- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,- 'Helvetica Neue', sans-serif;+ font-family:+ Inter,+ -apple-system,+ BlinkMacSystemFont,+ 'Segoe UI',+ Roboto,+ 'Helvetica Neue',+ sans-serif;border-right: none;border-left: none;diff --git a/frontend/src/components/QueryBuilderV2/QueryBuilderV2.tsx b/frontend/src/components/QueryBuilderV2/QueryBuilderV2.tsxindex 5dde71da36..78a2071e38 100644--- a/frontend/src/components/QueryBuilderV2/QueryBuilderV2.tsx+++ b/frontend/src/components/QueryBuilderV2/QueryBuilderV2.tsx@@ -76,32 +76,34 @@ export const QueryBuilderV2 = memo(function QueryBuilderV2({[showTraceOperator, isListViewPanel],);- const listViewLogFilterConfigs: QueryBuilderProps['filterConfigs'] = useMemo(() => {- const config: QueryBuilderProps['filterConfigs'] = {- stepInterval: { isHidden: true, isDisabled: true },- having: { isHidden: true, isDisabled: true },- filters: {- customKey: 'body',- customOp: OPERATORS.CONTAINS,- },- };-- return config;- }, []);-- const listViewTracesFilterConfigs: QueryBuilderProps['filterConfigs'] = useMemo(() => {- const config: QueryBuilderProps['filterConfigs'] = {- stepInterval: { isHidden: true, isDisabled: true },- having: { isHidden: true, isDisabled: true },- limit: { isHidden: true, isDisabled: true },- filters: {- customKey: 'body',- customOp: OPERATORS.CONTAINS,- },- };-- return config;- }, []);+ const listViewLogFilterConfigs: QueryBuilderProps['filterConfigs'] =+ useMemo(() => {+ const config: QueryBuilderProps['filterConfigs'] = {+ stepInterval: { isHidden: true, isDisabled: true },+ having: { isHidden: true, isDisabled: true },+ filters: {+ customKey: 'body',+ customOp: OPERATORS.CONTAINS,+ },+ };++ return config;+ }, []);++ const listViewTracesFilterConfigs: QueryBuilderProps['filterConfigs'] =+ useMemo(() => {+ const config: QueryBuilderProps['filterConfigs'] = {+ stepInterval: { isHidden: true, isDisabled: true },+ having: { isHidden: true, isDisabled: true },+ limit: { isHidden: true, isDisabled: true },+ filters: {+ customKey: 'body',+ customOp: OPERATORS.CONTAINS,+ },+ };++ return config;+ }, []);const queryFilterConfigs = useMemo(() => {if (isListViewPanel) {diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/MetricsSelect/MetricsSelect.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/MetricsSelect/MetricsSelect.tsxindex e9c7f54c49..75f105e709 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/MetricsSelect/MetricsSelect.tsx+++ b/frontend/src/components/QueryBuilderV2/QueryV2/MetricsSelect/MetricsSelect.tsx@@ -49,11 +49,8 @@ export const MetricsSelect = memo(function MetricsSelect({entityVersion: version,});- const {- updateAllQueriesOperators,- handleSetQueryData,- panelType,- } = useQueryBuilder();+ const { updateAllQueriesOperators, handleSetQueryData, panelType } =+ useQueryBuilder();const source = useMemo(() => (signalSource === 'meter' ? 'meter' : 'metrics'),@@ -123,9 +120,8 @@ export const MetricsSelect = memo(function MetricsSelect({signalSource: newSignalSource,panelType: panelType || '',});- const savedQuery: IBuilderQuery | null = getPreviousQueryFromKey(- newQueryKey,- );+ const savedQuery: IBuilderQuery | null =+ getPreviousQueryFromKey(newQueryKey);// remove the new query key from session storageremoveKeyFromPreviousQuery(newQueryKey);diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/QueryAddOns/QueryAddOns.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/QueryAddOns/QueryAddOns.tsxindex 45bca14c65..c0ca119902 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/QueryAddOns/QueryAddOns.tsx+++ b/frontend/src/components/QueryBuilderV2/QueryV2/QueryAddOns/QueryAddOns.tsx@@ -464,36 +464,37 @@ function QueryAddOns({</div>)}- {selectedViews.find((view) => view.key === 'reduce_to') && showReduceTo && (- <div className="add-on-content" data-testid="reduce-to-content">- <div className="periscope-input-with-label">- <Tooltip- title={- <TooltipContent- label="Reduce to"- description="Apply mathematical operations like sum, average, min, max, or percentiles to reduce multiple time series into a single value."- docLink="https://signoz.io/docs/userguide/query-builder-v5/#reduce-operations"- />- }- placement="top"- mouseEnterDelay={0.5}- >- <div className="label" style={{ cursor: 'help' }}>- Reduce to+ {selectedViews.find((view) => view.key === 'reduce_to') &&+ showReduceTo && (+ <div className="add-on-content" data-testid="reduce-to-content">+ <div className="periscope-input-with-label">+ <Tooltip+ title={+ <TooltipContent+ label="Reduce to"+ description="Apply mathematical operations like sum, average, min, max, or percentiles to reduce multiple time series into a single value."+ docLink="https://signoz.io/docs/userguide/query-builder-v5/#reduce-operations"+ />+ }+ placement="top"+ mouseEnterDelay={0.5}+ >+ <div className="label" style={{ cursor: 'help' }}>+ Reduce to+ </div>+ </Tooltip>+ <div className="input">+ <ReduceToFilter query={query} onChange={handleChangeReduceToV5} /></div>- </Tooltip>- <div className="input">- <ReduceToFilter query={query} onChange={handleChangeReduceToV5} />- </div>- <Button- className="close-btn periscope-btn ghost"- icon={<ChevronUp size={16} />}- onClick={(): void => handleRemoveView('reduce_to')}- />+ <Button+ className="close-btn periscope-btn ghost"+ icon={<ChevronUp size={16} />}+ onClick={(): void => handleRemoveView('reduce_to')}+ />+ </div></div>- </div>- )}+ )}{selectedViews.find((view) => view.key === 'legend_format') && (<div className="add-on-content" data-testid="legend-format-content">diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/QueryAggregation/QueryAggregationSelect.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/QueryAggregation/QueryAggregationSelect.tsxindex 7d6896b37d..64141f064c 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/QueryAggregation/QueryAggregationSelect.tsx+++ b/frontend/src/components/QueryBuilderV2/QueryV2/QueryAggregation/QueryAggregationSelect.tsx@@ -290,12 +290,12 @@ function QueryAggregationSelect({}const regex = /([a-zA-Z_][\w]*)\s*\(([^)]*)\)/g;- const oldMatches = [- ...tr.startState.doc.toString().matchAll(regex),- ].filter((match) => validFunctions.includes(match[1].toLowerCase()));- const newMatches = [- ...tr.newDoc.toString().matchAll(regex),- ].filter((match) => validFunctions.includes(match[1].toLowerCase()));+ const oldMatches = [...tr.startState.doc.toString().matchAll(regex)].filter(+ (match) => validFunctions.includes(match[1].toLowerCase()),+ );+ const newMatches = [...tr.newDoc.toString().matchAll(regex)].filter(+ (match) => validFunctions.includes(match[1].toLowerCase()),+ );if (newMatches.length > oldMatches.length &&@@ -558,7 +558,7 @@ function QueryAggregationSelect({? availableSuggestions: availableSuggestions.filter((suggestion) =>suggestion.label.toLowerCase().includes(inputText.toLowerCase()),- );+ );return {from: startOfArg,diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.styles.scss b/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.styles.scssindex d62cde965f..079a945a52 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.styles.scss+++ b/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.styles.scss@@ -5,8 +5,14 @@display: flex;flex-direction: column;gap: 8px;- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,- 'Helvetica Neue', sans-serif;+ font-family:+ Inter,+ -apple-system,+ BlinkMacSystemFont,+ 'Segoe UI',+ Roboto,+ 'Helvetica Neue',+ sans-serif;.query-where-clause-editor-container {position: relative;diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.tsxindex 2d73ce0d7e..d5707159e3 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.tsx+++ b/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.tsx@@ -194,10 +194,8 @@ function QuerySearch({const [cursorPos, setCursorPos] = useState({ line: 0, ch: 0 });- const [- isFetchingCompleteValuesList,- setIsFetchingCompleteValuesList,- ] = useState<boolean>(false);+ const [isFetchingCompleteValuesList, setIsFetchingCompleteValuesList] =+ useState<boolean>(false);const lastPosRef = useRef<{ line: number; ch: number }>({ line: 0, ch: 0 });diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/QueryV2.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/QueryV2.tsxindex 214915d407..3a414b07ff 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/QueryV2.tsx+++ b/frontend/src/components/QueryBuilderV2/QueryV2/QueryV2.tsx@@ -93,9 +93,10 @@ export const QueryV2 = forwardRef(function QueryV2([dataSource, panelType],);- const showSpanScopeSelector = useMemo(() => dataSource === DataSource.TRACES, [- dataSource,- ]);+ const showSpanScopeSelector = useMemo(+ () => dataSource === DataSource.TRACES,+ [dataSource],+ );const showInlineQuerySearch = useMemo(() => {if (!showTraceOperator) {@@ -212,7 +213,7 @@ export const QueryV2 = forwardRef(function QueryV2(icon: <Trash size={14} />,onClick: handleDeleteQuery,},- ]+ ]: []),],}}diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/__tests__/utils.test.ts b/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/__tests__/utils.test.tsindex 872c1e8537..88443842ce 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/__tests__/utils.test.ts+++ b/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/__tests__/utils.test.ts@@ -3,7 +3,7 @@ import { IBuilderTraceOperator } from 'types/api/queryBuilder/queryBuilderData';import { getInvolvedQueriesInTraceOperator } from '../utils/utils';const makeTraceOperator = (expression: string): IBuilderTraceOperator =>- (({ expression } as unknown) as IBuilderTraceOperator);+ ({ expression }) as unknown as IBuilderTraceOperator;describe('getInvolvedQueriesInTraceOperator', () => {it('returns empty array for empty input', () => {diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/utils/traceOperatorContextUtils.ts b/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/utils/traceOperatorContextUtils.tsindex ebc4e643c5..e12a0ec71f 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/utils/traceOperatorContextUtils.ts+++ b/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/utils/traceOperatorContextUtils.ts@@ -98,9 +98,7 @@ export function createTraceOperatorContext(}// Helper to determine token context-function determineTraceTokenContext(- token: IToken,-): {+function determineTraceTokenContext(token: IToken): {isInAtom: boolean;isInOperator: boolean;isInParenthesis: boolean;diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/__tests__/QuerySearch.test.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/__tests__/QuerySearch.test.tsxindex 2a59dc1f29..c08a7c969b 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/__tests__/QuerySearch.test.tsx+++ b/frontend/src/components/QueryBuilderV2/QueryV2/__tests__/QuerySearch.test.tsx@@ -36,14 +36,14 @@ beforeAll(() => {const mockRange = {// CodeMirror uses these for text measurementgetClientRects: (): DOMRectList =>- (({+ ({length: 1,item: (index: number): DOMRect | null => (index === 0 ? mockRect : null),0: mockRect,*[Symbol.iterator](): Generator<DOMRect> {yield mockRect;},- } as unknown) as DOMRectList),+ }) as unknown as DOMRectList,getBoundingClientRect: (): DOMRect => mockRect,// CodeMirror calls these to set up text rangessetStart: (node: Node, offset: number): void => {@@ -72,7 +72,7 @@ beforeAll(() => {},commonAncestorContainer: document.body,};- return (mockRange as unknown) as Range;+ return mockRange as unknown as Range;};// Mock document.createRange to return a new Range instance each timediff --git a/frontend/src/components/QueryBuilderV2/QueryV2/__tests__/QueryV2.test.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/__tests__/QueryV2.test.tsxindex 46911e1bc0..09f95b27cc 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/__tests__/QueryV2.test.tsx+++ b/frontend/src/components/QueryBuilderV2/QueryV2/__tests__/QueryV2.test.tsx@@ -94,13 +94,12 @@ describe('QueryBuilderV2 + QueryV2 - base render', () => {},};- const updateAllQueriesOperators: QueryBuilderContextType['updateAllQueriesOperators'] = (- q,- ) => q;+ const updateAllQueriesOperators: QueryBuilderContextType['updateAllQueriesOperators'] =+ (q) => q;const updateQueriesData: QueryBuilderContextType['updateQueriesData'] = (q) =>q;- const baseContext = ({+ const baseContext = {currentQuery: currentQueryObj,stagedQuery: null,lastUsedQuery: null,@@ -133,7 +132,7 @@ describe('QueryBuilderV2 + QueryV2 - base render', () => {initQueryBuilderData: jest.fn(),isStagedQueryUpdated: jest.fn(() => false),isDefaultQuery: jest.fn(() => false),- } as unknown) as QueryBuilderContextType;+ } as unknown as QueryBuilderContextType;baseQBContext = baseContext;mockedUseQueryBuilder.mockReturnValue(baseQBContext);@@ -149,7 +148,8 @@ describe('QueryBuilderV2 + QueryV2 - base render', () => {handleChangeAggregatorAttribute: jest.fn(),handleChangeDataSource: jest.fn(),handleDeleteQuery: jest.fn(),- handleChangeQueryData: (jest.fn() as unknown) as ReturnType<UseQueryOperations>['handleChangeQueryData'],+ handleChangeQueryData:+ jest.fn() as unknown as ReturnType<UseQueryOperations>['handleChangeQueryData'],handleChangeFormulaData: jest.fn(),handleQueryFunctionsUpdates: handleQueryFunctionsUpdatesMock,listOfAdditionalFormulaFilters: [],diff --git a/frontend/src/components/QueryBuilderV2/__tests__/QueryBuilder.PrevQuery.test.tsx b/frontend/src/components/QueryBuilderV2/__tests__/QueryBuilder.PrevQuery.test.tsxindex 254a697a1c..b3df1a5f0e 100644--- a/frontend/src/components/QueryBuilderV2/__tests__/QueryBuilder.PrevQuery.test.tsx+++ b/frontend/src/components/QueryBuilderV2/__tests__/QueryBuilder.PrevQuery.test.tsx@@ -57,7 +57,7 @@ describe('MetricsSelect - signal source switching (standalone)', () => {beforeEach(() => {clearPreviousQuery();- handleSetQueryDataMock = (jest.fn() as unknown) as jest.MockedFunction<+ handleSetQueryDataMock = jest.fn() as unknown as jest.MockedFunction<(index: number, q: IBuilderQuery) => void>;@@ -222,7 +222,7 @@ describe('DataSource change - Logs to Traces', () => {beforeEach(() => {clearPreviousQuery();- handleSetQueryDataMock = (jest.fn() as unknown) as jest.MockedFunction<+ handleSetQueryDataMock = jest.fn() as unknown as jest.MockedFunction<(i: number, q: IBuilderQuery) => void>;diff --git a/frontend/src/components/QueryBuilderV2/__tests__/utils.test.ts b/frontend/src/components/QueryBuilderV2/__tests__/utils.test.tsindex c510bcceb2..feff0667f9 100644--- a/frontend/src/components/QueryBuilderV2/__tests__/utils.test.ts+++ b/frontend/src/components/QueryBuilderV2/__tests__/utils.test.ts@@ -947,7 +947,7 @@ describe('convertAggregationToExpression', () => {it('should handle undefined aggregateAttribute parameter with traces', () => {const result = convertAggregationToExpression({aggregateOperator: 'noop',- aggregateAttribute: (undefined as unknown) as BaseAutocompleteData,+ aggregateAttribute: undefined as unknown as BaseAutocompleteData,dataSource: DataSource.TRACES,});@@ -961,7 +961,7 @@ describe('convertAggregationToExpression', () => {it('should handle undefined aggregateAttribute parameter with logs', () => {const result = convertAggregationToExpression({aggregateOperator: 'noop',- aggregateAttribute: (undefined as unknown) as BaseAutocompleteData,+ aggregateAttribute: undefined as unknown as BaseAutocompleteData,dataSource: DataSource.LOGS,});diff --git a/frontend/src/components/QueryBuilderV2/utils.ts b/frontend/src/components/QueryBuilderV2/utils.tsindex faf4047a43..302f7fc308 100644--- a/frontend/src/components/QueryBuilderV2/utils.ts+++ b/frontend/src/components/QueryBuilderV2/utils.ts@@ -210,8 +210,8 @@ export const convertExpressionToFilters = (type: '',},value: pair.isMultiValue- ? formatValuesForFilter(pair.valueList as string[]) ?? []- : formatValuesForFilter(pair.value as string) ?? '',+ ? (formatValuesForFilter(pair.valueList as string[]) ?? [])+ : (formatValuesForFilter(pair.value as string) ?? ''),});});@@ -469,8 +469,8 @@ export const convertFiltersToExpressionWithExistingQuery = (type: '',},value: pair.isMultiValue- ? formatValuesForFilter(pair.valueList as string[]) ?? ''- : formatValuesForFilter(pair.value as string) ?? '',+ ? (formatValuesForFilter(pair.valueList as string[]) ?? '')+ : (formatValuesForFilter(pair.value as string) ?? ''),});}});@@ -554,7 +554,7 @@ export const removeKeysFromExpression = (}const value = pair.value?.toString().trim();return value && value.includes('$');- })+ }): existingQueryPairs;// Build a map for quick lookup of query pairs by their lowercase trimmed keys@@ -744,15 +744,18 @@ export function getQueryLabelWithAggregation(const labels: { label: string; value: string }[] = [];const aggregationPerQuery =- queryData.reduce((acc, query) => {- if (query.queryName && query.aggregations?.length) {- acc[query.queryName] = createAggregation(query).map((a: any) => ({- alias: a.alias,- expression: a.expression,- }));- }- return acc;- }, {} as Record<string, any>) || {};+ queryData.reduce(+ (acc, query) => {+ if (query.queryName && query.aggregations?.length) {+ acc[query.queryName] = createAggregation(query).map((a: any) => ({+ alias: a.alias,+ expression: a.expression,+ }));+ }+ return acc;+ },+ {} as Record<string, any>,+ ) || {};Object.entries(aggregationPerQuery).forEach(([queryName, aggregations]) => {const isMultipleAggregations = aggregations.length > 1;diff --git a/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.test.tsx b/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.test.tsxindex 7a70feb2ae..928b9bd7dd 100644--- a/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.test.tsx+++ b/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.test.tsx@@ -83,7 +83,7 @@ const createMockQueryBuilderData = (hasActiveFilters = false): any => ({op: 'in',value: [OTEL_DEMO, SAMPLE_FLASK],},- ]+ ]: [],},},@@ -99,7 +99,7 @@ describe('CheckboxFilter - User Flows', () => {jest.clearAllMocks();// Default mock implementations for useGetAggregateValues- mockUseGetAggregateValues.mockReturnValue(({+ mockUseGetAggregateValues.mockReturnValue({data: {payload: {stringAttributeValues: MOCK_SERVICE_NAMES,@@ -107,7 +107,7 @@ describe('CheckboxFilter - User Flows', () => {},isLoading: false,refetch: jest.fn(),- } as unknown) as UseQueryResult<SuccessResponse<IAttributeValuesResponse>>);+ } as unknown as UseQueryResult<SuccessResponse<IAttributeValuesResponse>>);// Default mock implementations for useGetQueryKeyValueSuggestions// Returns data in the format expected by the hookdiff --git a/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.tsx b/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.tsxindex ed5550807f..ff59f44d60 100644--- a/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.tsx+++ b/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.tsx@@ -82,10 +82,8 @@ export default function CheckboxFilter(props: ICheckboxProps): JSX.Element {// Check if this filter has active filters in the queryconst isSomeFilterPresentForCurrentAttribute = useMemo(() =>- currentQuery.builder.queryData?.[- activeQueryIndex- ]?.filters?.items?.some((item) =>- isKeyMatch(item.key?.key, filter.attributeKey.key),+ currentQuery.builder.queryData?.[activeQueryIndex]?.filters?.items?.some(+ (item) => isKeyMatch(item.key?.key, filter.attributeKey.key),),[currentQuery.builder.queryData, activeQueryIndex, filter.attributeKey.key],);@@ -126,18 +124,16 @@ export default function CheckboxFilter(props: ICheckboxProps): JSX.Element {},);- const {- data: keyValueSuggestions,- isLoading: isLoadingKeyValueSuggestions,- } = useGetQueryKeyValueSuggestions({- key: filter.attributeKey.key,- signal: filter.dataSource || DataSource.LOGS,- signalSource: 'meter',- options: {- enabled: isOpen && source === QuickFiltersSource.METER_EXPLORER,- keepPreviousData: true,- },- });+ const { data: keyValueSuggestions, isLoading: isLoadingKeyValueSuggestions } =+ useGetQueryKeyValueSuggestions({+ key: filter.attributeKey.key,+ signal: filter.dataSource || DataSource.LOGS,+ signalSource: 'meter',+ options: {+ enabled: isOpen && source === QuickFiltersSource.METER_EXPLORER,+ keepPreviousData: true,+ },+ });const attributeValues: string[] = useMemo(() => {const dataType = filter.attributeKey.dataType || DataTypes.String;@@ -282,7 +278,7 @@ export default function CheckboxFilter(props: ICheckboxProps): JSX.Element {idx === activeQueryIndex? item.filters?.items?.filter((fil) => !isKeyMatch(fil.key?.key, filter.attributeKey.key),- ) || []+ ) || []: [...(item.filters?.items || [])],op: item.filters?.op || 'AND',},diff --git a/frontend/src/components/QuickFilters/FilterRenderers/Duration/Duration.tsx b/frontend/src/components/QuickFilters/FilterRenderers/Duration/Duration.tsxindex 040c0069a5..adadac9805 100644--- a/frontend/src/components/QuickFilters/FilterRenderers/Duration/Duration.tsx+++ b/frontend/src/components/QuickFilters/FilterRenderers/Duration/Duration.tsx@@ -36,12 +36,13 @@ function Duration({onFilterChange?: (query: Query) => void;source?: QuickFiltersSource;}): JSX.Element {- const [selectedFilters, setSelectedFilters] = useState<- Record<- AllTraceFilterKeys,- { values: string[] | string; keys: BaseAutocompleteData }- >- >();+ const [selectedFilters, setSelectedFilters] =+ useState<+ Record<+ AllTraceFilterKeys,+ { values: string[] | string; keys: BaseAutocompleteData }+ >+ >();const [activeKeys, setActiveKeys] = useState<string[]>([filter.defaultOpen ? 'durationNano' : '',]);diff --git a/frontend/src/components/QuickFilters/QuickFiltersSettings/AddedFilters.tsx b/frontend/src/components/QuickFilters/QuickFiltersSettings/AddedFilters.tsxindex 4f87e71900..3293a13ea2 100644--- a/frontend/src/components/QuickFilters/QuickFiltersSettings/AddedFilters.tsx+++ b/frontend/src/components/QuickFilters/QuickFiltersSettings/AddedFilters.tsx@@ -30,13 +30,8 @@ function SortableFilter({allowDrag: boolean;allowRemove: boolean;}): JSX.Element {- const {- attributes,- listeners,- setNodeRef,- transform,- transition,- } = useSortable({ id: filter.key });+ const { attributes, listeners, setNodeRef, transform, transition } =+ useSortable({ id: filter.key });const style = {transform: CSS.Transform.toString(transform),diff --git a/frontend/src/components/QuickFilters/QuickFiltersSettings/OtherFilters.tsx b/frontend/src/components/QuickFilters/QuickFiltersSettings/OtherFilters.tsxindex bcd337152a..8bdbba2f52 100644--- a/frontend/src/components/QuickFilters/QuickFiltersSettings/OtherFilters.tsx+++ b/frontend/src/components/QuickFilters/QuickFiltersSettings/OtherFilters.tsx@@ -48,52 +48,46 @@ function OtherFilters({[signal],);- const {- data: suggestionsData,- isFetching: isFetchingSuggestions,- } = useGetAttributeSuggestions(- {- searchText: inputValue,- dataSource: SIGNAL_DATA_SOURCE_MAP[signal as SignalType],- filters: {} as TagFilter,- },- {- queryKey: [REACT_QUERY_KEY.GET_OTHER_FILTERS, inputValue],- enabled: !!signal && isLogDataSource,- },- );+ const { data: suggestionsData, isFetching: isFetchingSuggestions } =+ useGetAttributeSuggestions(+ {+ searchText: inputValue,+ dataSource: SIGNAL_DATA_SOURCE_MAP[signal as SignalType],+ filters: {} as TagFilter,+ },+ {+ queryKey: [REACT_QUERY_KEY.GET_OTHER_FILTERS, inputValue],+ enabled: !!signal && isLogDataSource,+ },+ );- const {- data: aggregateKeysData,- isFetching: isFetchingAggregateKeys,- } = useGetAggregateKeys(- {- searchText: inputValue,- dataSource: SIGNAL_DATA_SOURCE_MAP[signal as SignalType],- aggregateOperator: 'noop',- aggregateAttribute: '',- tagType: '',- },- {- queryKey: [REACT_QUERY_KEY.GET_OTHER_FILTERS, inputValue],- enabled: !!signal && !isLogDataSource && !isMeterDataSource,- },- );+ const { data: aggregateKeysData, isFetching: isFetchingAggregateKeys } =+ useGetAggregateKeys(+ {+ searchText: inputValue,+ dataSource: SIGNAL_DATA_SOURCE_MAP[signal as SignalType],+ aggregateOperator: 'noop',+ aggregateAttribute: '',+ tagType: '',+ },+ {+ queryKey: [REACT_QUERY_KEY.GET_OTHER_FILTERS, inputValue],+ enabled: !!signal && !isLogDataSource && !isMeterDataSource,+ },+ );- const {- data: fieldKeysData,- isLoading: isLoadingFieldKeys,- } = useGetQueryKeySuggestions(- {- searchText: inputValue,- signal: SIGNAL_DATA_SOURCE_MAP[signal as SignalType],- signalSource: 'meter',- },- {- queryKey: [REACT_QUERY_KEY.GET_OTHER_FILTERS, inputValue],- enabled: !!signal && isMeterDataSource,- },- );+ const { data: fieldKeysData, isLoading: isLoadingFieldKeys } =+ useGetQueryKeySuggestions(+ {+ searchText: inputValue,+ signal: SIGNAL_DATA_SOURCE_MAP[signal as SignalType],+ signalSource: 'meter',+ },+ {+ queryKey: [REACT_QUERY_KEY.GET_OTHER_FILTERS, inputValue],+ enabled: !!signal && isMeterDataSource,+ },+ );const otherFilters = useMemo(() => {let filterAttributes;@@ -110,7 +104,7 @@ function OtherFilters({dataType: attr.fieldDataType,type: attr.fieldContext,signal: attr.signal,- } as BaseAutocompleteData),+ }) as BaseAutocompleteData,);} else {filterAttributes = aggregateKeysData?.payload?.attributeKeys || [];diff --git a/frontend/src/components/QuickFilters/QuickFiltersSettings/hooks/useQuickFilterSettings.tsx b/frontend/src/components/QuickFilters/QuickFiltersSettings/hooks/useQuickFilterSettings.tsxindex 6488ffcfe5..8260053728 100644--- a/frontend/src/components/QuickFilters/QuickFiltersSettings/hooks/useQuickFilterSettings.tsx+++ b/frontend/src/components/QuickFilters/QuickFiltersSettings/hooks/useQuickFilterSettings.tsx@@ -40,28 +40,26 @@ const useQuickFilterSettings = ({const [addedFilters, setAddedFilters] = useState<FilterType[]>(customFilters);const { notifications } = useNotifications();- const {- mutate: updateCustomFilters,- isLoading: isUpdatingCustomFilters,- } = useMutation(updateCustomFiltersAPI, {- onSuccess: () => {- setIsSettingsOpen(false);- refetchCustomFilters();- logEvent('Quick Filters Settings: changes saved', {- addedFilters,- });- notifications.success({- message: 'Quick filters updated successfully',- placement: 'bottomRight',- });- },- onError: (error: AxiosError) => {- notifications.error({- message: axios.isAxiosError(error) ? error.message : SOMETHING_WENT_WRONG,- placement: 'bottomRight',- });- },- });+ const { mutate: updateCustomFilters, isLoading: isUpdatingCustomFilters } =+ useMutation(updateCustomFiltersAPI, {+ onSuccess: () => {+ setIsSettingsOpen(false);+ refetchCustomFilters();+ logEvent('Quick Filters Settings: changes saved', {+ addedFilters,+ });+ notifications.success({+ message: 'Quick filters updated successfully',+ placement: 'bottomRight',+ });+ },+ onError: (error: AxiosError) => {+ notifications.error({+ message: axios.isAxiosError(error) ? error.message : SOMETHING_WENT_WRONG,+ placement: 'bottomRight',+ });+ },+ });const debouncedUpdate = useDebouncedFn((value) => {setDebouncedInputValue(value as string);}, 400);diff --git a/frontend/src/components/QuickFilters/hooks/useFilterConfig.tsx b/frontend/src/components/QuickFilters/hooks/useFilterConfig.tsxindex da1567b3a1..6b04c85564 100644--- a/frontend/src/components/QuickFilters/hooks/useFilterConfig.tsx+++ b/frontend/src/components/QuickFilters/hooks/useFilterConfig.tsx@@ -38,9 +38,10 @@ const useFilterConfig = ({},);- const isDynamicFilters = useMemo(() => customFilters.length > 0, [- customFilters,- ]);+ const isDynamicFilters = useMemo(+ () => customFilters.length > 0,+ [customFilters],+ );const filterConfig = useMemo(() => getFilterConfig(signal, customFilters, config),diff --git a/frontend/src/components/QuickFilters/utils.tsx b/frontend/src/components/QuickFilters/utils.tsxindex a73513f56a..c3e5e82a66 100644--- a/frontend/src/components/QuickFilters/utils.tsx+++ b/frontend/src/components/QuickFilters/utils.tsx@@ -55,6 +55,6 @@ export const getFilterConfig = (type: att.type,},defaultOpen: index < 2,- } as IQuickFiltersConfig),+ }) as IQuickFiltersConfig,);};diff --git a/frontend/src/components/ResizeTable/DynamicColumnTable.tsx b/frontend/src/components/ResizeTable/DynamicColumnTable.tsxindex 70ba75270e..82d369efd7 100644--- a/frontend/src/components/ResizeTable/DynamicColumnTable.tsx+++ b/frontend/src/components/ResizeTable/DynamicColumnTable.tsx@@ -52,39 +52,38 @@ function DynamicColumnTable({...prevColumns.slice(0, prevColumns.length - 1),...visibleColumns,prevColumns[prevColumns.length - 1],- ]+ ]: undefined,);// eslint-disable-next-line react-hooks/exhaustive-deps}, [columns, dynamicColumns]);- const onToggleHandler = (- index: number,- column: ColumnGroupType<any> | ColumnType<any>,- ) => (checked: boolean, event: React.MouseEvent<HTMLButtonElement>): void => {- event.stopPropagation();-- if (shouldSendAlertsLogEvent) {- logEvent('Alert: Column toggled', {- column: column?.title,- action: checked ? 'Enable' : 'Disable',- });- }- setVisibleColumns({- tablesource,- dynamicColumns,- index,- checked,- });- setColumnsData((prevColumns) =>- getNewColumnData({- checked,- index,- prevColumns,+ const onToggleHandler =+ (index: number, column: ColumnGroupType<any> | ColumnType<any>) =>+ (checked: boolean, event: React.MouseEvent<HTMLButtonElement>): void => {+ event.stopPropagation();++ if (shouldSendAlertsLogEvent) {+ logEvent('Alert: Column toggled', {+ column: column?.title,+ action: checked ? 'Enable' : 'Disable',+ });+ }+ setVisibleColumns({+ tablesource,dynamicColumns,- }),- );- };+ index,+ checked,+ });+ setColumnsData((prevColumns) =>+ getNewColumnData({+ checked,+ index,+ prevColumns,+ dynamicColumns,+ }),+ );+ };const items: MenuProps['items'] =dynamicColumns?.map((column, index) => ({diff --git a/frontend/src/components/ResizeTable/ResizeTable.tsx b/frontend/src/components/ResizeTable/ResizeTable.tsxindex df6f96bcab..ac98732353 100644--- a/frontend/src/components/ResizeTable/ResizeTable.tsx+++ b/frontend/src/components/ResizeTable/ResizeTable.tsx@@ -45,20 +45,18 @@ function ResizeTable({}, [onColumnWidthsChange]);const handleResize = useCallback(- (index: number) => (- e: SyntheticEvent<Element>,- { size }: ResizeCallbackData,- ): void => {- e.preventDefault();- e.stopPropagation();-- const newColumns = [...columnsData];- newColumns[index] = {- ...newColumns[index],- width: size.width,- };- setColumns(newColumns);- },+ (index: number) =>+ (e: SyntheticEvent<Element>, { size }: ResizeCallbackData): void => {+ e.preventDefault();+ e.stopPropagation();++ const newColumns = [...columnsData];+ newColumns[index] = {+ ...newColumns[index],+ width: size.width,+ };+ setColumns(newColumns);+ },[columnsData],);diff --git a/frontend/src/components/ResizeTable/types.ts b/frontend/src/components/ResizeTable/types.tsindex 3c009653c9..374fc27724 100644--- a/frontend/src/components/ResizeTable/types.ts+++ b/frontend/src/components/ResizeTable/types.ts@@ -27,7 +27,7 @@ export interface ResizeTableProps extends TableProps<any> {onColumnWidthsChange?: (widths: ColumnWidths) => void;}export interface DynamicColumnTableProps extends TableProps<any> {- tablesource: typeof TableDataSource[keyof typeof TableDataSource];+ tablesource: (typeof TableDataSource)[keyof typeof TableDataSource];dynamicColumns: TableProps<any>['columns'];onDragColumn?: (fromIndex: number, toIndex: number) => void;facingIssueBtn?: LaunchChatSupportProps;@@ -40,7 +40,7 @@ export type GetVisibleColumnsFunction = () => (ColumnGroupType<any> | ColumnType<any>)[];export type GetVisibleColumnProps = {- tablesource: typeof TableDataSource[keyof typeof TableDataSource];+ tablesource: (typeof TableDataSource)[keyof typeof TableDataSource];dynamicColumns?: ColumnsType<any>;columnsData?: ColumnsType;};@@ -48,7 +48,7 @@ export type GetVisibleColumnProps = {export type SetVisibleColumnsProps = {checked: boolean;index: number;- tablesource: typeof TableDataSource[keyof typeof TableDataSource];+ tablesource: (typeof TableDataSource)[keyof typeof TableDataSource];dynamicColumns?: ColumnsType<any>;};diff --git a/frontend/src/components/ResizeTable/utils.ts b/frontend/src/components/ResizeTable/utils.tsindex 1f1b029f7c..0acd043bb5 100644--- a/frontend/src/components/ResizeTable/utils.ts+++ b/frontend/src/components/ResizeTable/utils.ts@@ -71,7 +71,7 @@ export const getNewColumnData: GetNewColumnDataFunction = ({...prevColumns.slice(0, prevColumns.length - 1),dynamicColumns[index],prevColumns[prevColumns.length - 1],- ]+ ]: undefined;}return prevColumns && dynamicColumnsdiff --git a/frontend/src/components/ServiceAccountDrawer/AddKeyModal/index.tsx b/frontend/src/components/ServiceAccountDrawer/AddKeyModal/index.tsxindex c116062be5..b0c906bbaa 100644--- a/frontend/src/components/ServiceAccountDrawer/AddKeyModal/index.tsx+++ b/frontend/src/components/ServiceAccountDrawer/AddKeyModal/index.tsx@@ -37,10 +37,8 @@ function AddKeyModal(): JSX.Element {const open = isAddKeyOpen && !!accountId;const [phase, setPhase] = useState<Phase>(Phase.FORM);- const [- createdKey,- setCreatedKey,- ] = useState<ServiceaccounttypesGettableFactorAPIKeyWithKeyDTO | null>(null);+ const [createdKey, setCreatedKey] =+ useState<ServiceaccounttypesGettableFactorAPIKeyWithKeyDTO | null>(null);const [hasCopied, setHasCopied] = useState(false);const {@@ -67,30 +65,28 @@ function AddKeyModal(): JSX.Element {}}, [open, reset]);- const {- mutate: createKey,- isLoading: isSubmitting,- } = useCreateServiceAccountKey({- mutation: {- onSuccess: async (response) => {- const keyData = response?.data;- if (keyData) {- setCreatedKey(keyData);- setPhase(Phase.CREATED);- if (accountId) {- await invalidateListServiceAccountKeys(queryClient, { id: accountId });+ const { mutate: createKey, isLoading: isSubmitting } =+ useCreateServiceAccountKey({+ mutation: {+ onSuccess: async (response) => {+ const keyData = response?.data;+ if (keyData) {+ setCreatedKey(keyData);+ setPhase(Phase.CREATED);+ if (accountId) {+ await invalidateListServiceAccountKeys(queryClient, { id: accountId });+ }}- }- },- onError: (error) => {- showErrorModal(- convertToApiError(- error as AxiosError<RenderErrorResponseDTO, unknown> | null,- ) as APIError,- );+ },+ onError: (error) => {+ showErrorModal(+ convertToApiError(+ error as AxiosError<RenderErrorResponseDTO, unknown> | null,+ ) as APIError,+ );+ },},- },- });+ });function handleCreate({keyName,diff --git a/frontend/src/components/ServiceAccountDrawer/DeleteAccountModal.tsx b/frontend/src/components/ServiceAccountDrawer/DeleteAccountModal.tsxindex 40670868d1..9b62463d32 100644--- a/frontend/src/components/ServiceAccountDrawer/DeleteAccountModal.tsx+++ b/frontend/src/components/ServiceAccountDrawer/DeleteAccountModal.tsx@@ -30,30 +30,28 @@ function DeleteAccountModal(): JSX.Element {const cachedAccount = accountId? queryClient.getQueryData<{data: ServiceaccounttypesServiceAccountDTO;- }>(getGetServiceAccountQueryKey({ id: accountId }))+ }>(getGetServiceAccountQueryKey({ id: accountId })): null;const accountName = cachedAccount?.data?.name;- const {- mutate: deleteAccount,- isLoading: isDeleting,- } = useDeleteServiceAccount({- mutation: {- onSuccess: async () => {- toast.success('Service account deleted');- await setIsDeleteOpen(null);- await setAccountId(null);- await invalidateListServiceAccounts(queryClient);+ const { mutate: deleteAccount, isLoading: isDeleting } =+ useDeleteServiceAccount({+ mutation: {+ onSuccess: async () => {+ toast.success('Service account deleted');+ await setIsDeleteOpen(null);+ await setAccountId(null);+ await invalidateListServiceAccounts(queryClient);+ },+ onError: (error) => {+ showErrorModal(+ convertToApiError(+ error as AxiosError<RenderErrorResponseDTO, unknown> | null,+ ) as APIError,+ );+ },},- onError: (error) => {- showErrorModal(- convertToApiError(- error as AxiosError<RenderErrorResponseDTO, unknown> | null,- ) as APIError,- );- },- },- });+ });function handleConfirm(): void {if (!accountId) {diff --git a/frontend/src/components/ServiceAccountDrawer/EditKeyModal/index.tsx b/frontend/src/components/ServiceAccountDrawer/EditKeyModal/index.tsxindex 832af96057..d705e96623 100644--- a/frontend/src/components/ServiceAccountDrawer/EditKeyModal/index.tsx+++ b/frontend/src/components/ServiceAccountDrawer/EditKeyModal/index.tsx@@ -89,31 +89,29 @@ function EditKeyModal({ keyItem }: EditKeyModalProps): JSX.Element {},});- const {- mutate: revokeKey,- isLoading: isRevoking,- } = useRevokeServiceAccountKey({- mutation: {- onSuccess: async () => {- toast.success('Key revoked successfully');- setIsRevokeConfirmOpen(false);- await setEditKeyId(null);- if (selectedAccountId) {- await invalidateListServiceAccountKeys(queryClient, {- id: selectedAccountId,- });- }- },- // eslint-disable-next-line sonarjs/no-identical-functions- onError: (error) => {- showErrorModal(- convertToApiError(- error as AxiosError<RenderErrorResponseDTO, unknown> | null,- ) as APIError,- );+ const { mutate: revokeKey, isLoading: isRevoking } =+ useRevokeServiceAccountKey({+ mutation: {+ onSuccess: async () => {+ toast.success('Key revoked successfully');+ setIsRevokeConfirmOpen(false);+ await setEditKeyId(null);+ if (selectedAccountId) {+ await invalidateListServiceAccountKeys(queryClient, {+ id: selectedAccountId,+ });+ }+ },+ // eslint-disable-next-line sonarjs/no-identical-functions+ onError: (error) => {+ showErrorModal(+ convertToApiError(+ error as AxiosError<RenderErrorResponseDTO, unknown> | null,+ ) as APIError,+ );+ },},- },- });+ });function handleClose(): void {setEditKeyId(null);diff --git a/frontend/src/components/ServiceAccountDrawer/RevokeKeyModal.tsx b/frontend/src/components/ServiceAccountDrawer/RevokeKeyModal.tsxindex 9fd24d013e..acee75dba1 100644--- a/frontend/src/components/ServiceAccountDrawer/RevokeKeyModal.tsx+++ b/frontend/src/components/ServiceAccountDrawer/RevokeKeyModal.tsx@@ -67,31 +67,29 @@ function RevokeKeyModal(): JSX.Element {const cachedKeys = accountId? queryClient.getQueryData<{data: ServiceaccounttypesGettableFactorAPIKeyDTO[];- }>(getListServiceAccountKeysQueryKey({ id: accountId }))+ }>(getListServiceAccountKeysQueryKey({ id: accountId })): null;const keyName = cachedKeys?.data?.find((k) => k.id === revokeKeyId)?.name;- const {- mutate: revokeKey,- isLoading: isRevoking,- } = useRevokeServiceAccountKey({- mutation: {- onSuccess: async () => {- toast.success('Key revoked successfully');- await setRevokeKeyId(null);- if (accountId) {- await invalidateListServiceAccountKeys(queryClient, { id: accountId });- }- },- onError: (error) => {- showErrorModal(- convertToApiError(- error as AxiosError<RenderErrorResponseDTO, unknown> | null,- ) as APIError,- );+ const { mutate: revokeKey, isLoading: isRevoking } =+ useRevokeServiceAccountKey({+ mutation: {+ onSuccess: async () => {+ toast.success('Key revoked successfully');+ await setRevokeKeyId(null);+ if (accountId) {+ await invalidateListServiceAccountKeys(queryClient, { id: accountId });+ }+ },+ onError: (error) => {+ showErrorModal(+ convertToApiError(+ error as AxiosError<RenderErrorResponseDTO, unknown> | null,+ ) as APIError,+ );+ },},- },- });+ });function handleConfirm(): void {if (!revokeKeyId || !accountId) {diff --git a/frontend/src/components/ServiceAccountDrawer/ServiceAccountDrawer.tsx b/frontend/src/components/ServiceAccountDrawer/ServiceAccountDrawer.tsxindex 479cb9dff5..15ff5c3803 100644--- a/frontend/src/components/ServiceAccountDrawer/ServiceAccountDrawer.tsx+++ b/frontend/src/components/ServiceAccountDrawer/ServiceAccountDrawer.tsx@@ -231,21 +231,19 @@ function ServiceAccountDrawer({}, []);const makeRoleRetry = useCallback(- (- context: string,- rawRetry: () => Promise<void>,- ) => async (): Promise<void> => {- try {- await rawRetry();- setSaveErrors((prev) => prev.filter((e) => e.context !== context));- } catch (err) {- setSaveErrors((prev) =>- prev.map((e) =>- e.context === context ? { ...e, apiError: toSaveApiError(err) } : e,- ),- );- }- },+ (context: string, rawRetry: () => Promise<void>) =>+ async (): Promise<void> => {+ try {+ await rawRetry();+ setSaveErrors((prev) => prev.filter((e) => e.context !== context));+ } catch (err) {+ setSaveErrors((prev) =>+ prev.map((e) =>+ e.context === context ? { ...e, apiError: toSaveApiError(err) } : e,+ ),+ );+ }+ },[],);@@ -302,7 +300,7 @@ function ServiceAccountDrawer({? updateMutateAsync({pathParams: { id: account.id },data: { name: localName },- })+ }): Promise.resolve();const [nameResult, rolesResult] = await Promise.allSettled([diff --git a/frontend/src/components/ServiceAccountsTable/ServiceAccountsTable.tsx b/frontend/src/components/ServiceAccountsTable/ServiceAccountsTable.tsxindex 459d398c7d..ae8c037f7d 100644--- a/frontend/src/components/ServiceAccountsTable/ServiceAccountsTable.tsx+++ b/frontend/src/components/ServiceAccountsTable/ServiceAccountsTable.tsx@@ -52,7 +52,7 @@ function ServiceAccountsTable({showSizeChanger: false,onChange: (page: number): void => void setPage(page),className: 'sa-table-pagination',- }+ }: false}rowClassName={(_, index): string =>diff --git a/frontend/src/components/SpanHoverCard/SpanHoverCard.tsx b/frontend/src/components/SpanHoverCard/SpanHoverCard.tsxindex 6ca4789c8b..7168e0466d 100644--- a/frontend/src/components/SpanHoverCard/SpanHoverCard.tsx+++ b/frontend/src/components/SpanHoverCard/SpanHoverCard.tsx@@ -26,18 +26,15 @@ function SpanHoverCard({children,}: SpanHoverCardProps): JSX.Element {const duration = span.durationNano / 1e6; // Convert nanoseconds to milliseconds- const { time: formattedDuration, timeUnitName } = convertTimeToRelevantUnit(- duration,- );+ const { time: formattedDuration, timeUnitName } =+ convertTimeToRelevantUnit(duration);const { timezone } = useTimezone();// Calculate relative start time from trace startconst relativeStartTime = span.timestamp - traceMetadata.startTime;- const {- time: relativeTime,- timeUnitName: relativeTimeUnit,- } = convertTimeToRelevantUnit(relativeStartTime);+ const { time: relativeTime, timeUnitName: relativeTimeUnit } =+ convertTimeToRelevantUnit(relativeStartTime);// Format absolute start timeconst startTimeFormatted = dayjs(span.timestamp)diff --git a/frontend/src/components/TanStackTableView/TanStackHeaderRow.module.scss b/frontend/src/components/TanStackTableView/TanStackHeaderRow.module.scssindex 9c0d0cb8d7..d32004aa9b 100644--- a/frontend/src/components/TanStackTableView/TanStackHeaderRow.module.scss+++ b/frontend/src/components/TanStackTableView/TanStackHeaderRow.module.scss@@ -104,7 +104,9 @@font-size: 12px;line-height: 16px;font-weight: 500;- transition: background-color 120ms ease, color 120ms ease;+ transition:+ background-color 120ms ease,+ color 120ms ease;&:hover {background: var(--l2-background-hover);@@ -147,7 +149,9 @@transform: translateX(-50%);opacity: 1;pointer-events: none;- transition: background 120ms ease, width 120ms ease;+ transition:+ background 120ms ease,+ width 120ms ease;background: transparent;}diff --git a/frontend/src/components/TanStackTableView/TanStackRowCell.tsx b/frontend/src/components/TanStackTableView/TanStackRowCell.tsxindex 95d771d311..b5dc9f09c6 100644--- a/frontend/src/components/TanStackTableView/TanStackRowCell.tsx+++ b/frontend/src/components/TanStackTableView/TanStackRowCell.tsx@@ -85,4 +85,5 @@ const TanStackRowCellMemo = memo(TanStackRowCellMemo.displayName = 'TanStackRowCell';-export const TanStackRowCell = TanStackRowCellMemo as typeof TanStackRowCellInner;+export const TanStackRowCell =+ TanStackRowCellMemo as typeof TanStackRowCellInner;diff --git a/frontend/src/components/TanStackTableView/TanStackTable.tsx b/frontend/src/components/TanStackTableView/TanStackTable.tsxindex 2def877b56..1c9612fa34 100644--- a/frontend/src/components/TanStackTableView/TanStackTable.tsx+++ b/frontend/src/components/TanStackTableView/TanStackTable.tsx@@ -152,7 +152,7 @@ function TanStackTableInner<TData>(const effectiveVisibility = columnStorageKey ? storeVisibility : {};const effectiveSizing = columnStorageKey? storeSizing- : columnSizingProp ?? {};+ : (columnSizingProp ?? {});const effectiveData = useEffectiveData<TData>({data,@@ -429,7 +429,7 @@ function TanStackTableInner<TData>(if (prop in target) {return Reflect.get(target, prop);}- const v = (virtuosoRef.current as unknown) as Record<string, unknown>;+ const v = virtuosoRef.current as unknown as Record<string, unknown>;const value = v?.[prop as string];if (typeof value === 'function') {return (value as (...a: unknown[]) => unknown).bind(virtuosoRef.current);@@ -473,7 +473,7 @@ function TanStackTableInner<TData>(() =>({'--tanstack-plain-body-line-clamp': plainTextCellLineClamp,- } as CSSProperties),+ }) as CSSProperties,[plainTextCellLineClamp],);diff --git a/frontend/src/components/TanStackTableView/TanStackTableSkeleton.tsx b/frontend/src/components/TanStackTableView/TanStackTableSkeleton.tsxindex abed98acab..a08a75b2a2 100644--- a/frontend/src/components/TanStackTableView/TanStackTableSkeleton.tsx+++ b/frontend/src/components/TanStackTableView/TanStackTableSkeleton.tsx@@ -21,9 +21,10 @@ export function TanStackTableSkeleton<TData>({isDarkMode,columnSizing,}: TanStackTableSkeletonProps<TData>): JSX.Element {- const rows = useMemo(() => Array.from({ length: rowCount }, (_, i) => i), [- rowCount,- ]);+ const rows = useMemo(+ () => Array.from({ length: rowCount }, (_, i) => i),+ [rowCount],+ );return (<table className={tableStyles.tanStackTable}>diff --git a/frontend/src/components/TanStackTableView/__tests__/testUtils.tsx b/frontend/src/components/TanStackTableView/__tests__/testUtils.tsxindex ae0f321d3c..002279beb3 100644--- a/frontend/src/components/TanStackTableView/__tests__/testUtils.tsx+++ b/frontend/src/components/TanStackTableView/__tests__/testUtils.tsx@@ -54,8 +54,8 @@ export function renderTanStackTable<T = TestRow>(const { props = {}, queryParams, onUrlUpdate } = options;const mergedProps = {- data: (defaultData as unknown) as T[],- columns: (defaultColumns as unknown) as TableColumnDef<T>[],+ data: defaultData as unknown as T[],+ columns: defaultColumns as unknown as TableColumnDef<T>[],...props,} as TanStackTableProps<T>;diff --git a/frontend/src/components/TanStackTableView/types.ts b/frontend/src/components/TanStackTableView/types.tsindex f6faa62b15..15dd522e52 100644--- a/frontend/src/components/TanStackTableView/types.ts+++ b/frontend/src/components/TanStackTableView/types.ts@@ -42,7 +42,7 @@ export type RowKeyData = {export type TableColumnDef<TData,TKey extends keyof TData = any,- TValue = TData[TKey]+ TValue = TData[TKey],> = {id: string;header: string | (() => ReactNode);diff --git a/frontend/src/components/TanStackTableView/useColumnState.ts b/frontend/src/components/TanStackTableView/useColumnState.tsindex 3acda3950c..aae8b04f48 100644--- a/frontend/src/components/TanStackTableView/useColumnState.ts+++ b/frontend/src/components/TanStackTableView/useColumnState.ts@@ -96,9 +96,10 @@ export function useColumnState<TData>({);const columnOrder = useStoreOrder(storageKey ?? '');- const columnMap = useMemo(() => new Map(columns.map((c) => [c.id, c])), [- columns,- ]);+ const columnMap = useMemo(+ () => new Map(columns.map((c) => [c.id, c])),+ [columns],+ );const hiddenColumnIds = useMemo(() =>diff --git a/frontend/src/components/TanStackTableView/useRowKeyData.ts b/frontend/src/components/TanStackTableView/useRowKeyData.tsindex c535b6e47d..c31abed3b0 100644--- a/frontend/src/components/TanStackTableView/useRowKeyData.ts+++ b/frontend/src/components/TanStackTableView/useRowKeyData.ts@@ -43,37 +43,36 @@ export function useRowKeyData<TData>({const keyCount = new Map<string, number>();- return data.map(- (item, index): RowKeyDataItem => {- const itemIdentifier = getRowKey(item);- const itemKey = getItemKey?.(item) ?? itemIdentifier;- const groupMeta = groupBy?.length ? getGroupKey?.(item) : undefined;+ return data.map((item, index): RowKeyDataItem => {+ const itemIdentifier = getRowKey(item);+ const itemKey = getItemKey?.(item) ?? itemIdentifier;+ const groupMeta = groupBy?.length ? getGroupKey?.(item) : undefined;- // Build rowKey with group prefix when grouped- let rowKey: string;- if (groupBy?.length && groupMeta) {- const groupKeyStr = Object.values(groupMeta).join('-');- if (groupKeyStr && itemIdentifier) {- rowKey = `${groupKeyStr}-${itemIdentifier}`;- } else {- rowKey = groupKeyStr || itemIdentifier || String(index);- }+ // Build rowKey with group prefix when grouped+ let rowKey: string;+ if (groupBy?.length && groupMeta) {+ const groupKeyStr = Object.values(groupMeta).join('-');+ if (groupKeyStr && itemIdentifier) {+ rowKey = `${groupKeyStr}-${itemIdentifier}`;} else {- rowKey = itemIdentifier || String(index);+ rowKey = groupKeyStr || itemIdentifier || String(index);}+ } else {+ rowKey = itemIdentifier || String(index);+ }- const count = keyCount.get(rowKey) || 0;- keyCount.set(rowKey, count + 1);- const finalKey = count > 0 ? `${rowKey}-${count}` : rowKey;+ const count = keyCount.get(rowKey) || 0;+ keyCount.set(rowKey, count + 1);+ const finalKey = count > 0 ? `${rowKey}-${count}` : rowKey;- return { finalKey, itemKey, groupMeta };- },- );+ return { finalKey, itemKey, groupMeta };+ });}, [data, getRowKey, getItemKey, groupBy, getGroupKey, isLoading]);- const getRowKeyData = useCallback((index: number) => rowKeyData?.[index], [- rowKeyData,- ]);+ const getRowKeyData = useCallback(+ (index: number) => rowKeyData?.[index],+ [rowKeyData],+ );return { rowKeyData, getRowKeyData };}diff --git a/frontend/src/components/TanStackTableView/useTableParams.ts b/frontend/src/components/TanStackTableView/useTableParams.tsindex 0ae6ac75a5..e36a510233 100644--- a/frontend/src/components/TanStackTableView/useTableParams.ts+++ b/frontend/src/components/TanStackTableView/useTableParams.ts@@ -53,26 +53,26 @@ export function useTableParams(typeof enableQueryParams === 'string'? `${enableQueryParams}_page`: typeof enableQueryParams === 'object'- ? enableQueryParams.page- : 'page';+ ? enableQueryParams.page+ : 'page';const limitQueryParam =typeof enableQueryParams === 'string'? `${enableQueryParams}_limit`: typeof enableQueryParams === 'object'- ? enableQueryParams.limit- : 'limit';+ ? enableQueryParams.limit+ : 'limit';const orderByQueryParam =typeof enableQueryParams === 'string'? `${enableQueryParams}_order_by`: typeof enableQueryParams === 'object'- ? enableQueryParams.orderBy- : 'order_by';+ ? enableQueryParams.orderBy+ : 'order_by';const expandedQueryParam =typeof enableQueryParams === 'string'? `${enableQueryParams}_expanded`: typeof enableQueryParams === 'object'- ? enableQueryParams.expanded- : 'expanded';+ ? enableQueryParams.expanded+ : 'expanded';const pageDefault = defaults?.page ?? DEFAULT_PAGE;const limitDefault = defaults?.limit ?? DEFAULT_LIMIT;const orderByDefault = defaults?.orderBy ?? null;@@ -88,9 +88,8 @@ export function useTableParams(const [localOrderBy, setLocalOrderBy] = useState<SortState | null>(orderByDefault,);- const [localExpanded, setLocalExpanded] = useState<ExpandedState>(- expandedDefault,- );+ const [localExpanded, setLocalExpanded] =+ useState<ExpandedState>(expandedDefault);const [urlPage, setUrlPage] = useQueryState(pageQueryParam,diff --git a/frontend/src/components/TimelineV2/utils.ts b/frontend/src/components/TimelineV2/utils.tsindex f97bc96d03..5f3b18005e 100644--- a/frontend/src/components/TimelineV2/utils.ts+++ b/frontend/src/components/TimelineV2/utils.ts@@ -71,7 +71,7 @@ export function getIntervals(intervalSpread < 1.0? intervalSpread: Math.floor(Number(integerPartString) / 10 ** (integerPartLength - 1)) *- 10 ** (integerPartLength - 1);+ 10 ** (integerPartLength - 1);let intervalUnit = INTERVAL_UNITS[0];for (let idx = INTERVAL_UNITS.length - 1; idx >= 0; idx -= 1) {diff --git a/frontend/src/components/ValueGraph/__tests__/ValueGraph.test.tsx b/frontend/src/components/ValueGraph/__tests__/ValueGraph.test.tsxindex 478c253a17..dd5fbf3fad 100644--- a/frontend/src/components/ValueGraph/__tests__/ValueGraph.test.tsx+++ b/frontend/src/components/ValueGraph/__tests__/ValueGraph.test.tsx@@ -12,9 +12,10 @@ jest.mock('../utils', () => ({})),}));-const mockGetBackgroundColorAndThresholdCheck = getBackgroundColorAndThresholdCheck as jest.MockedFunction<- typeof getBackgroundColorAndThresholdCheck->;+const mockGetBackgroundColorAndThresholdCheck =+ getBackgroundColorAndThresholdCheck as jest.MockedFunction<+ typeof getBackgroundColorAndThresholdCheck+ >;const TEST_ID_VALUE_GRAPH_TEXT = 'value-graph-text';const TEST_ID_VALUE_GRAPH_PREFIX_UNIT = 'value-graph-prefix-unit';diff --git a/frontend/src/components/ValueGraph/index.tsx b/frontend/src/components/ValueGraph/index.tsxindex 5570b7a328..e8abc0a633 100644--- a/frontend/src/components/ValueGraph/index.tsx+++ b/frontend/src/components/ValueGraph/index.tsx@@ -85,10 +85,8 @@ function ValueGraph({};}, []);- const {- threshold,- isConflictingThresholds,- } = getBackgroundColorAndThresholdCheck(thresholds, rawValue, yAxisUnit);+ const { threshold, isConflictingThresholds } =+ getBackgroundColorAndThresholdCheck(thresholds, rawValue, yAxisUnit);return (<divdiff --git a/frontend/src/components/WarningPopover/WarningPopover.styles.scss b/frontend/src/components/WarningPopover/WarningPopover.styles.scssindex 222f1e0b10..1f985d9a14 100644--- a/frontend/src/components/WarningPopover/WarningPopover.styles.scss+++ b/frontend/src/components/WarningPopover/WarningPopover.styles.scss@@ -169,9 +169,12 @@gap: 3px;background: var(--l1-border);border-radius: 20px;- box-shadow: 0px 103px 12px 0px rgba(0, 0, 0, 0.01),- 0px 66px 18px 0px rgba(0, 0, 0, 0.01), 0px 37px 22px 0px rgba(0, 0, 0, 0.03),- 0px 17px 17px 0px rgba(0, 0, 0, 0.04), 0px 4px 9px 0px rgba(0, 0, 0, 0.04);+ box-shadow:+ 0px 103px 12px 0px rgba(0, 0, 0, 0.01),+ 0px 66px 18px 0px rgba(0, 0, 0, 0.01),+ 0px 37px 22px 0px rgba(0, 0, 0, 0.03),+ 0px 17px 17px 0px rgba(0, 0, 0, 0.04),+ 0px 4px 9px 0px rgba(0, 0, 0, 0.04);}&__scroll-hint-text {diff --git a/frontend/src/components/YAxisUnitSelector/YAxisUnitSelector.tsx b/frontend/src/components/YAxisUnitSelector/YAxisUnitSelector.tsxindex 878613e64a..1b50202b93 100644--- a/frontend/src/components/YAxisUnitSelector/YAxisUnitSelector.tsx+++ b/frontend/src/components/YAxisUnitSelector/YAxisUnitSelector.tsx@@ -34,9 +34,8 @@ function YAxisUnitSelector({const initialUniversalUnit = mapMetricUnitToUniversalUnit(initialValue);const currentUniversalUnit = mapMetricUnitToUniversalUnit(value);if (initialUniversalUnit !== currentUniversalUnit) {- const initialUniversalUnitName = getUniversalNameFromMetricUnit(- initialValue,- );+ const initialUniversalUnitName =+ getUniversalNameFromMetricUnit(initialValue);const currentUniversalUnitName = getUniversalNameFromMetricUnit(value);return `Unit mismatch. The metric was sent with unit ${initialUniversalUnitName}, but ${currentUniversalUnitName} is selected.`;}diff --git a/frontend/src/components/createGuardedRoute/createGuardedRoute.test.tsx b/frontend/src/components/createGuardedRoute/createGuardedRoute.test.tsxindex e8eac20809..2b3be89835 100644--- a/frontend/src/components/createGuardedRoute/createGuardedRoute.test.tsx+++ b/frontend/src/components/createGuardedRoute/createGuardedRoute.test.tsx@@ -57,8 +57,8 @@ describe('createGuardedRoute', () => {const props = {testProp: 'test-value',match: mockMatch,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props} />);@@ -92,8 +92,8 @@ describe('createGuardedRoute', () => {const props = {testProp: 'test-value',match: mockMatch,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props} />);@@ -144,8 +144,8 @@ describe('createGuardedRoute', () => {const props = {testProp: 'test-value',match: mockMatch,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props} />);@@ -179,8 +179,8 @@ describe('createGuardedRoute', () => {const props = {testProp: 'test-value',match: mockMatch,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props} />);@@ -217,8 +217,8 @@ describe('createGuardedRoute', () => {const props = {testProp: 'test-value',match: mockMatch,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props} />);@@ -252,8 +252,8 @@ describe('createGuardedRoute', () => {const props = {testProp: 'test-value',match: mockMatch,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props} />);@@ -291,8 +291,8 @@ describe('createGuardedRoute', () => {const props = {testProp: 'test-value',match: mockMatch,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props} />);@@ -350,8 +350,8 @@ describe('createGuardedRoute', () => {prop2: 42,prop3: true,match: mockMatch,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props} />);@@ -396,8 +396,8 @@ describe('createGuardedRoute', () => {const props1 = {testProp: 'test-value-1',match: mockMatch1,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};const { unmount } = render(<GuardedComponent {...props1} />);@@ -421,8 +421,8 @@ describe('createGuardedRoute', () => {const props2 = {testProp: 'test-value-2',match: mockMatch2,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props2} />);@@ -459,8 +459,8 @@ describe('createGuardedRoute', () => {const props = {testProp: 'test-value',match: mockMatch,- location: ({} as unknown) as RouteComponentProps['location'],- history: ({} as unknown) as RouteComponentProps['history'],+ location: {} as unknown as RouteComponentProps['location'],+ history: {} as unknown as RouteComponentProps['history'],};render(<GuardedComponent {...props} />);diff --git a/frontend/src/constants/queryBuilder.ts b/frontend/src/constants/queryBuilder.tsindex 3761febe40..eb174fdc16 100644--- a/frontend/src/constants/queryBuilder.ts+++ b/frontend/src/constants/queryBuilder.ts@@ -267,10 +267,11 @@ export const initialFormulaBuilderFormValues: IBuilderFormula = {legend: '',};-export const initialQueryBuilderFormTraceOperatorValues: IBuilderTraceOperator = {- ...initialQueryBuilderFormTracesValues,- queryName: TRACE_OPERATOR_QUERY_NAME,-};+export const initialQueryBuilderFormTraceOperatorValues: IBuilderTraceOperator =+ {+ ...initialQueryBuilderFormTracesValues,+ queryName: TRACE_OPERATOR_QUERY_NAME,+ };export const initialQueryPromQLData: IPromQLQuery = {name: createNewBuilderItemName({ existNames: [], sourceNames: alphabet }),diff --git a/frontend/src/container/AlertHistory/Statistics/StatsCard/StatsCard.tsx b/frontend/src/container/AlertHistory/Statistics/StatsCard/StatsCard.tsxindex 082e798529..8884a1a989 100644--- a/frontend/src/container/AlertHistory/Statistics/StatsCard/StatsCard.tsx+++ b/frontend/src/container/AlertHistory/Statistics/StatsCard/StatsCard.tsx@@ -98,9 +98,8 @@ function StatsCard({if (!displayTime) {displayTime = '';}- const formattedStartTimeForTooltip = convertTimestampToLocaleDateString(- startTime,- );+ const formattedStartTimeForTooltip =+ convertTimestampToLocaleDateString(startTime);const formattedEndTimeForTooltip = convertTimestampToLocaleDateString(endTime);return (diff --git a/frontend/src/container/AlertHistory/Statistics/StatsCardsRenderer/StatsCardsRenderer.tsx b/frontend/src/container/AlertHistory/Statistics/StatsCardsRenderer/StatsCardsRenderer.tsxindex 748277f610..05f8c49e70 100644--- a/frontend/src/container/AlertHistory/Statistics/StatsCardsRenderer/StatsCardsRenderer.tsx+++ b/frontend/src/container/AlertHistory/Statistics/StatsCardsRenderer/StatsCardsRenderer.tsx@@ -28,14 +28,8 @@ type StatsCardsRendererProps = {function StatsCardsRenderer({setTotalCurrentTriggers,}: StatsCardsRendererProps): JSX.Element {- const {- isLoading,- isRefetching,- isError,- data,- isValidRuleId,- ruleId,- } = useGetAlertRuleDetailsStats();+ const { isLoading, isRefetching, isError, data, isValidRuleId, ruleId } =+ useGetAlertRuleDetailsStats();useEffect(() => {if (data?.payload?.data?.totalCurrentTriggers !== undefined) {diff --git a/frontend/src/container/AlertHistory/Statistics/TopContributorsRenderer/TopContributorsRenderer.tsx b/frontend/src/container/AlertHistory/Statistics/TopContributorsRenderer/TopContributorsRenderer.tsxindex b773579ca0..55b438115b 100644--- a/frontend/src/container/AlertHistory/Statistics/TopContributorsRenderer/TopContributorsRenderer.tsx+++ b/frontend/src/container/AlertHistory/Statistics/TopContributorsRenderer/TopContributorsRenderer.tsx@@ -11,14 +11,8 @@ type TopContributorsRendererProps = {function TopContributorsRenderer({totalCurrentTriggers,}: TopContributorsRendererProps): JSX.Element {- const {- isLoading,- isRefetching,- isError,- data,- isValidRuleId,- ruleId,- } = useGetAlertRuleDetailsTopContributors();+ const { isLoading, isRefetching, isError, data, isValidRuleId, ruleId } =+ useGetAlertRuleDetailsTopContributors();const response = data?.payload?.data;// TODO(shaheer): render the DataStateRenderer inside the TopContributorsCard, it should display the title and view alldiff --git a/frontend/src/container/AlertHistory/Timeline/Graph/Graph.tsx b/frontend/src/container/AlertHistory/Timeline/Graph/Graph.tsxindex 2781888335..b660c6acd8 100644--- a/frontend/src/container/AlertHistory/Timeline/Graph/Graph.tsx+++ b/frontend/src/container/AlertHistory/Timeline/Graph/Graph.tsx@@ -119,7 +119,7 @@ function HorizontalTimelineGraph({count: transformedData.length - 1,...TIMELINE_OPTIONS,}),- ]+ ]: [],tzDate: (timestamp: number): Date =>diff --git a/frontend/src/container/AlertHistory/Timeline/GraphWrapper/GraphWrapper.tsx b/frontend/src/container/AlertHistory/Timeline/GraphWrapper/GraphWrapper.tsxindex d1653ed755..530fa0d504 100644--- a/frontend/src/container/AlertHistory/Timeline/GraphWrapper/GraphWrapper.tsx+++ b/frontend/src/container/AlertHistory/Timeline/GraphWrapper/GraphWrapper.tsx@@ -15,14 +15,8 @@ function GraphWrapper({const relativeTime = urlQuery.get('relativeTime');- const {- isLoading,- isRefetching,- isError,- data,- isValidRuleId,- ruleId,- } = useGetAlertRuleDetailsTimelineGraphData();+ const { isLoading, isRefetching, isError, data, isValidRuleId, ruleId } =+ useGetAlertRuleDetailsTimelineGraphData();// TODO(shaheer): uncomment when the API is ready for// const { startTime } = useAlertHistoryQueryParams();diff --git a/frontend/src/container/AlertHistory/Timeline/Table/Table.tsx b/frontend/src/container/AlertHistory/Timeline/Table/Table.tsxindex ef0919b13b..d9af13ceba 100644--- a/frontend/src/container/AlertHistory/Timeline/Table/Table.tsx+++ b/frontend/src/container/AlertHistory/Timeline/Table/Table.tsx@@ -18,14 +18,8 @@ import './Table.styles.scss';function TimelineTable(): JSX.Element {const [filters, setFilters] = useState<TagFilter>(initialFilters);- const {- isLoading,- isRefetching,- isError,- data,- isValidRuleId,- ruleId,- } = useGetAlertRuleDetailsTimelineTable({ filters });+ const { isLoading, isRefetching, isError, data, isValidRuleId, ruleId } =+ useGetAlertRuleDetailsTimelineTable({ filters });const { timelineData, totalItems, labels } = useMemo(() => {const response = data?.payload?.data;diff --git a/frontend/src/container/AllError/index.tsx b/frontend/src/container/AllError/index.tsxindex 9fa466c30d..5c1822f660 100644--- a/frontend/src/container/AllError/index.tsx+++ b/frontend/src/container/AllError/index.tsx@@ -126,50 +126,48 @@ function AllErrors(): JSX.Element {const setIsFetching = useAllErrorsQueryState((s) => s.setIsFetching);const isCancelled = useAllErrorsQueryState((s) => s.isCancelled);- const [- { isLoading, isFetching: isErrorsFetching, data },- errorCountResponse,- ] = useQueries([- {- queryKey: ['getAllErrors', updatedPath, maxTime, minTime, compositeData],- queryFn: (): Promise<SuccessResponse<PayloadProps> | ErrorResponse> =>- getAll({- end: maxTime,- start: minTime,- order: updatedOrder,- limit: getUpdatedPageSize,- offset: getUpdatedOffset,- orderParam: getUpdatedParams,- exceptionType: getUpdatedExceptionType,- serviceName: getUpdatedServiceName,- tags: convertCompositeQueryToTraceSelectedTags(- compositeData?.builder.queryData?.[0]?.filters?.items || [],- ),- }),- enabled: !loading,- },- {- queryKey: [- 'getErrorCounts',- maxTime,- minTime,- getUpdatedExceptionType,- getUpdatedServiceName,- compositeData,- ],- queryFn: (): Promise<ErrorResponse | SuccessResponse<number>> =>- getErrorCounts({- end: maxTime,- start: minTime,- exceptionType: getUpdatedExceptionType,- serviceName: getUpdatedServiceName,- tags: convertCompositeQueryToTraceSelectedTags(- compositeData?.builder.queryData?.[0]?.filters?.items || [],- ),- }),- enabled: !loading,- },- ]);+ const [{ isLoading, isFetching: isErrorsFetching, data }, errorCountResponse] =+ useQueries([+ {+ queryKey: ['getAllErrors', updatedPath, maxTime, minTime, compositeData],+ queryFn: (): Promise<SuccessResponse<PayloadProps> | ErrorResponse> =>+ getAll({+ end: maxTime,+ start: minTime,+ order: updatedOrder,+ limit: getUpdatedPageSize,+ offset: getUpdatedOffset,+ orderParam: getUpdatedParams,+ exceptionType: getUpdatedExceptionType,+ serviceName: getUpdatedServiceName,+ tags: convertCompositeQueryToTraceSelectedTags(+ compositeData?.builder.queryData?.[0]?.filters?.items || [],+ ),+ }),+ enabled: !loading,+ },+ {+ queryKey: [+ 'getErrorCounts',+ maxTime,+ minTime,+ getUpdatedExceptionType,+ getUpdatedServiceName,+ compositeData,+ ],+ queryFn: (): Promise<ErrorResponse | SuccessResponse<number>> =>+ getErrorCounts({+ end: maxTime,+ start: minTime,+ exceptionType: getUpdatedExceptionType,+ serviceName: getUpdatedServiceName,+ tags: convertCompositeQueryToTraceSelectedTags(+ compositeData?.builder.queryData?.[0]?.filters?.items || [],+ ),+ }),+ enabled: !loading,+ },+ ]);const isFetching = isErrorsFetching || errorCountResponse.isFetching;useEffect(() => {@@ -208,33 +206,34 @@ function AllErrors(): JSX.Element {confirm: (param?: FilterConfirmProps) => void,filterValue: string,filterKey: string,- ): VoidFunction => (): void => {- const { exceptionFilterValue, serviceFilterValue } = getFilterValues(- getUpdatedServiceName || '',- getUpdatedExceptionType || '',- filterKey,- filterValue || '',- );+ ): VoidFunction =>+ (): void => {+ const { exceptionFilterValue, serviceFilterValue } = getFilterValues(+ getUpdatedServiceName || '',+ getUpdatedExceptionType || '',+ filterKey,+ filterValue || '',+ );- const queryParams: QueryParams = {- order: updatedOrder,- offset: getUpdatedOffset,- orderParam: getUpdatedParams,- pageSize: getUpdatedPageSize,- compositeQuery: getUpdatedCompositeQuery,- };+ const queryParams: QueryParams = {+ order: updatedOrder,+ offset: getUpdatedOffset,+ orderParam: getUpdatedParams,+ pageSize: getUpdatedPageSize,+ compositeQuery: getUpdatedCompositeQuery,+ };- if (exceptionFilterValue && exceptionFilterValue !== 'undefined') {- queryParams.exceptionType = exceptionFilterValue;- }+ if (exceptionFilterValue && exceptionFilterValue !== 'undefined') {+ queryParams.exceptionType = exceptionFilterValue;+ }- if (serviceFilterValue && serviceFilterValue !== 'undefined') {- queryParams.serviceName = serviceFilterValue;- }+ if (serviceFilterValue && serviceFilterValue !== 'undefined') {+ queryParams.serviceName = serviceFilterValue;+ }- history.replace(`${pathname}?${createQueryParams(queryParams)}`);- confirm();- },+ history.replace(`${pathname}?${createQueryParams(queryParams)}`);+ confirm();+ },[getUpdatedExceptionType,getUpdatedOffset,diff --git a/frontend/src/container/AnomalyAlertEvaluationView/AnomalyAlertEvaluationView.tsx b/frontend/src/container/AnomalyAlertEvaluationView/AnomalyAlertEvaluationView.tsxindex 44cf926bc0..0275f0f85b 100644--- a/frontend/src/container/AnomalyAlertEvaluationView/AnomalyAlertEvaluationView.tsx+++ b/frontend/src/container/AnomalyAlertEvaluationView/AnomalyAlertEvaluationView.tsx@@ -144,7 +144,7 @@ function AnomalyAlertEvaluationView({? [seriesData[allSeries[0]].data[0], // Shared X-axis...allSeries.map((key) => seriesData[key].data[1]), // Map through Y-axis data for all series- ]+ ]: [];const { timezone } = useTimezone();@@ -229,7 +229,7 @@ function AnomalyAlertEvaluationView({size: 1,},},- ]+ ]: allSeries.map((seriesKey) => ({label: seriesKey,stroke: seriesData[seriesKey].color,@@ -237,7 +237,7 @@ function AnomalyAlertEvaluationView({show: true,paths: _spline,spanGaps: true,- }))),+ }))),],scales: {x: {diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/AllEndPoints.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/AllEndPoints.tsxindex 2f7d80644d..31dd79ff81 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/AllEndPoints.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/AllEndPoints.tsx@@ -44,16 +44,14 @@ function AllEndPoints({[key: string]: any;}>({});- const {- data: groupByFiltersData,- isLoading: isLoadingGroupByFilters,- } = useGetAggregateKeys({- dataSource: DataSource.TRACES,- aggregateAttribute: '',- aggregateOperator: 'noop',- searchText: groupBySearchValue,- tagType: '',- });+ const { data: groupByFiltersData, isLoading: isLoadingGroupByFilters } =+ useGetAggregateKeys({+ dataSource: DataSource.TRACES,+ aggregateAttribute: '',+ aggregateOperator: 'noop',+ searchText: groupBySearchValue,+ tagType: '',+ });const [groupByOptions, setGroupByOptions] = useState<{ value: string; label: string }[]@@ -121,7 +119,7 @@ function AllEndPoints({const newGroupBy = [];for (let index = 0; index < value.length; index++) {- const element = (value[index] as unknown) as string;+ const element = value[index] as unknown as string;// Check if the key exists in our cached options firstif (allAvailableGroupByOptions[element]) {diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.styles.scss b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.styles.scssindex 1c942a6f1e..188fd666e0 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.styles.scss+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.styles.scss@@ -343,7 +343,9 @@.ant-table-thead> tr- > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {+ > th:not(:last-child):not(.ant-table-selection-column):not(+ .ant-table-row-expand-icon-cell+ ):not([colspan])::before {background-color: transparent;}@@ -565,7 +567,9 @@.ant-table-thead> tr- > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {+ > th:not(:last-child):not(.ant-table-selection-column):not(+ .ant-table-row-expand-icon-cell+ ):not([colspan])::before {background-color: transparent;}@@ -835,7 +839,9 @@.ant-table-thead> tr- > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {+ > th:not(:last-child):not(.ant-table-selection-column):not(+ .ant-table-row-expand-icon-cell+ ):not([colspan])::before {background-color: transparent;}diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.tsxindex d1a5f7117f..7724a41b02 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.tsx@@ -51,9 +51,8 @@ function DomainDetails({const [endPointsGroupBy, setEndPointsGroupBy] = useState<IBuilderQuery['groupBy']>([]);- const [initialFiltersEndPointStats, setInitialFiltersEndPointStats] = useState<- IBuilderQuery['filters']- >(domainListFilters);+ const [initialFiltersEndPointStats, setInitialFiltersEndPointStats] =+ useState<IBuilderQuery['filters']>(domainListFilters);const handleTabChange = (e: RadioChangeEvent): void => {setSelectedView(e.target.value);@@ -83,12 +82,14 @@ function DomainDetails({GlobalReducer>((state) => state.globalTime);- const startMs = useMemo(() => Math.floor(Number(minTime) / TimeRangeOffset), [- minTime,- ]);- const endMs = useMemo(() => Math.floor(Number(maxTime) / TimeRangeOffset), [- maxTime,- ]);+ const startMs = useMemo(+ () => Math.floor(Number(minTime) / TimeRangeOffset),+ [minTime],+ );+ const endMs = useMemo(+ () => Math.floor(Number(maxTime) / TimeRangeOffset),+ [maxTime],+ );const [selectedInterval, setSelectedInterval] = useState<Time>((params.selectedInterval as Time) || (selectedTime as Time),diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/TopErrors.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/TopErrors.tsxindex 6e20aa2228..0382f1af7f 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/TopErrors.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/TopErrors.tsx@@ -45,9 +45,8 @@ function TopErrors({const { startTime: minTime, endTime: maxTime } = timeRange;const [endPointName, setSelectedEndPointName] = useState<string>('');- const [showStatusCodeErrors, setShowStatusCodeErrors] = useState<boolean>(- true,- );+ const [showStatusCodeErrors, setShowStatusCodeErrors] =+ useState<boolean>(true);const queryPayload = useMemo(() =>@@ -72,7 +71,7 @@ function TopErrors({op: '=',value: endPointName,},- ]+ ]: [...(initialFilters?.items || [])],op: 'AND',},diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DependentServices.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DependentServices.tsxindex 6a56cf724e..e2e34b2b56 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DependentServices.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DependentServices.tsx@@ -29,13 +29,8 @@ function DependentServices({dependentServicesQuery,timeRange,}: DependentServicesProps): JSX.Element {- const {- data,- refetch,- isError,- isLoading,- isRefetching,- } = dependentServicesQuery;+ const { data, refetch, isError, isLoading, isRefetching } =+ dependentServicesQuery;const [isExpanded, setIsExpanded] = useState<boolean>(false);diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.test.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.test.tsxindex 4da85e8f35..7225ae1c01 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.test.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.test.tsx@@ -96,7 +96,7 @@ describe('EndPointMetrics - V5 Query Payload Tests', () => {refetch: jest.fn(),remove: jest.fn(),...overrides,- } as UseQueryResult<SuccessResponse<any>, unknown>);+ }) as UseQueryResult<SuccessResponse<any>, unknown>;const renderComponent = (endPointMetricsDataQuery: UseQueryResult<SuccessResponse<any>, unknown>,diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.tsxindex fd8bcfd0ac..9a5eb3686e 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.tsx@@ -16,13 +16,8 @@ function EndPointMetrics({}: {endPointMetricsDataQuery: UseQueryResult<SuccessResponse<any>, unknown>;}): JSX.Element {- const {- isLoading,- isRefetching,- isError,- data,- refetch,- } = endPointMetricsDataQuery;+ const { isLoading, isRefetching, isError, data, refetch } =+ endPointMetricsDataQuery;const metricsData = useMemo(() => {if (isLoading || isRefetching || isError) {diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/ExpandedRow.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/ExpandedRow.tsxindex ab2ae708a7..b28758bea0 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/ExpandedRow.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/ExpandedRow.tsx@@ -88,7 +88,7 @@ function ExpandedRow({queryFn: (): Promise<SuccessResponse<MetricRangePayloadProps>> =>GetMetricQueryRange(payload, ENTITY_VERSION_V4),enabled: !!payload && !!selectedRowData,- }))+ })): [],);@@ -107,7 +107,7 @@ function ExpandedRow({groupedByRowQuery.data?.payload.data.result[0].table?.rows,[],orderBy,- )+ ): []}pagination={false}diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeBarCharts.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeBarCharts.tsxindex 350d931123..8a6c8e8c14 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeBarCharts.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeBarCharts.tsx@@ -57,13 +57,11 @@ function StatusCodeBarCharts({// 1 : Status Code Latencyconst [currentWidgetInfoIndex, setCurrentWidgetInfoIndex] = useState(0);- const {- data: endPointStatusCodeBarChartsData,- } = endPointStatusCodeBarChartsDataQuery;+ const { data: endPointStatusCodeBarChartsData } =+ endPointStatusCodeBarChartsDataQuery;- const {- data: endPointStatusCodeLatencyBarChartsData,- } = endPointStatusCodeLatencyBarChartsDataQuery;+ const { data: endPointStatusCodeLatencyBarChartsData } =+ endPointStatusCodeLatencyBarChartsDataQuery;const { startTime: minTime, endTime: maxTime } = timeRange;diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeTable.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeTable.tsxindex ba10ee53b4..10a4d6eb87 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeTable.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeTable.tsx@@ -16,13 +16,8 @@ function StatusCodeTable({}: {endPointStatusCodeDataQuery: UseQueryResult<SuccessResponse<any>, unknown>;}): JSX.Element {- const {- isLoading,- isRefetching,- isError,- data,- refetch,- } = endPointStatusCodeDataQuery;+ const { isLoading, isRefetching, isError, data, refetch } =+ endPointStatusCodeDataQuery;const statusCodeData = useMemo(() => {if (isLoading || isRefetching || isError) {diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainList.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainList.tsxindex 00b1596bc2..df369b0af2 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainList.tsx+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainList.tsx@@ -44,9 +44,10 @@ function DomainList(): JSX.Element {const queryClient = useQueryClient();const { currentQuery, handleRunQuery } = useQueryBuilder();- const query = useMemo(() => currentQuery?.builder?.queryData[0] || null, [- currentQuery,- ]);+ const query = useMemo(+ () => currentQuery?.builder?.queryData[0] || null,+ [currentQuery],+ );const { handleChangeQueryData } = useQueryOperations({index: 0,diff --git a/frontend/src/container/ApiMonitoring/Explorer/Explorer.styles.scss b/frontend/src/container/ApiMonitoring/Explorer/Explorer.styles.scssindex 0e94834247..e63a9a760f 100644--- a/frontend/src/container/ApiMonitoring/Explorer/Explorer.styles.scss+++ b/frontend/src/container/ApiMonitoring/Explorer/Explorer.styles.scss@@ -134,7 +134,9 @@.ant-table-thead> tr- > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {+ > th:not(:last-child):not(.ant-table-selection-column):not(+ .ant-table-row-expand-icon-cell+ ):not([colspan])::before {background-color: transparent;}diff --git a/frontend/src/container/ApiMonitoring/constants.ts b/frontend/src/container/ApiMonitoring/constants.tsindex aadce55de6..d1ae0e7f96 100644--- a/frontend/src/container/ApiMonitoring/constants.ts+++ b/frontend/src/container/ApiMonitoring/constants.ts@@ -3,28 +3,29 @@ import { QueryKeyDataSuggestionsProps } from 'types/api/querySuggestions/types';import { SPAN_ATTRIBUTES } from './Explorer/Domains/DomainDetails/constants';-export const ApiMonitoringHardcodedAttributeKeys: QueryKeyDataSuggestionsProps[] = [- {- label: 'deployment.environment',- type: 'resource',- name: 'deployment.environment',- signal: 'traces',- fieldDataType: QUERY_BUILDER_KEY_TYPES.STRING,- },- {- label: 'service.name',- type: 'resource',- name: 'service.name',- signal: 'traces',- fieldDataType: QUERY_BUILDER_KEY_TYPES.STRING,- },- {- label: 'rpc.method',- type: 'tag',- name: 'rpc.method',- signal: 'traces',- fieldDataType: QUERY_BUILDER_KEY_TYPES.STRING,- },-];+export const ApiMonitoringHardcodedAttributeKeys: QueryKeyDataSuggestionsProps[] =+ [+ {+ label: 'deployment.environment',+ type: 'resource',+ name: 'deployment.environment',+ signal: 'traces',+ fieldDataType: QUERY_BUILDER_KEY_TYPES.STRING,+ },+ {+ label: 'service.name',+ type: 'resource',+ name: 'service.name',+ signal: 'traces',+ fieldDataType: QUERY_BUILDER_KEY_TYPES.STRING,+ },+ {+ label: 'rpc.method',+ type: 'tag',+ name: 'rpc.method',+ signal: 'traces',+ fieldDataType: QUERY_BUILDER_KEY_TYPES.STRING,+ },+ ];export const domainNameKey = SPAN_ATTRIBUTES.SERVER_NAME;diff --git a/frontend/src/container/ApiMonitoring/utils.tsx b/frontend/src/container/ApiMonitoring/utils.tsxindex 1964dd6a3a..0d3a0df4d4 100644--- a/frontend/src/container/ApiMonitoring/utils.tsx+++ b/frontend/src/container/ApiMonitoring/utils.tsx@@ -302,14 +302,17 @@ export const formatDataForTable = (data: string[][],columns: APIMonitoringResponseColumn[],): APIDomainsRowData[] => {- const indexMap = columns.reduce((acc, column, index) => {- if (column.name === domainNameKey) {- acc[column.name] = index;- } else {- acc[column.queryName] = index;- }- return acc;- }, {} as Record<string, number>);+ const indexMap = columns.reduce(+ (acc, column, index) => {+ if (column.name === domainNameKey) {+ acc[column.name] = index;+ } else {+ acc[column.queryName] = index;+ }+ return acc;+ },+ {} as Record<string, number>,+ );return data.map((row) => {const rowData: APIDomainsRowData = {@@ -976,7 +979,7 @@ export const getEndPointsColumnsConfig = (>{value === '' ? '<no-value>' : value}</Tag>- ))+ )): endPointName}</div>);@@ -1021,9 +1024,9 @@ export const getEndPointsColumnsConfig = (<Progressstatus="active"percent={Number(- ((errorRate === 'n/a' || errorRate === '-'- ? 0- : errorRate) as number).toFixed(1),+ (+ (errorRate === 'n/a' || errorRate === '-' ? 0 : errorRate) as number+ ).toFixed(1),)}strokeLinecap="butt"size="small"@@ -1137,10 +1140,13 @@ export const formatEndPointsDataForTable = (endpoint.data.D === 'n/a' || endpoint.data.D === undefined? 0: Number(endpoint.data.D),- groupedByMeta: groupedByAttributeData.reduce((acc, attribute) => {- acc[attribute] = endpoint.data[attribute] || '';- return acc;- }, {} as Record<string, string | number>),+ groupedByMeta: groupedByAttributeData.reduce(+ (acc, attribute) => {+ acc[attribute] = endpoint.data[attribute] || '';+ return acc;+ },+ {} as Record<string, string | number>,+ ),};});}@@ -1281,53 +1287,54 @@ export const getTopErrorsCoRelationQueryFilters = (};};-export const getTopErrorsColumnsConfig = (): ColumnType<TopErrorsTableRowData>[] => [- {- title: <div className="endpoint-name-header">Endpoint</div>,- dataIndex: 'endpointName',- key: 'endpointName',- width: 180,- ellipsis: true,- sorter: false,- className: 'column',- render: (text: string, record: TopErrorsTableRowData): React.ReactNode => {- const { endpoint } = extractPortAndEndpoint(record.endpointName);- return (- <Tooltip title="Click to open traces">- <div className="endpoint-name-value">{endpoint}</div>- </Tooltip>- );+export const getTopErrorsColumnsConfig =+ (): ColumnType<TopErrorsTableRowData>[] => [+ {+ title: <div className="endpoint-name-header">Endpoint</div>,+ dataIndex: 'endpointName',+ key: 'endpointName',+ width: 180,+ ellipsis: true,+ sorter: false,+ className: 'column',+ render: (text: string, record: TopErrorsTableRowData): React.ReactNode => {+ const { endpoint } = extractPortAndEndpoint(record.endpointName);+ return (+ <Tooltip title="Click to open traces">+ <div className="endpoint-name-value">{endpoint}</div>+ </Tooltip>+ );+ },},- },- {- title: <div className="column-header">Status code</div>,- dataIndex: 'statusCode',- key: 'statusCode',- width: 180,- ellipsis: true,- sorter: false,- align: 'right',- className: `column`,- },- {- title: <div className="column-header">Status message</div>,- dataIndex: 'statusMessage',- key: 'statusMessage',- width: 180,- ellipsis: true,- align: 'right',- className: `column`,- },- {- title: <div>Count</div>,- dataIndex: 'count',- key: 'count',- width: 120,- sorter: false,- align: 'right',- className: `column`,- },-];+ {+ title: <div className="column-header">Status code</div>,+ dataIndex: 'statusCode',+ key: 'statusCode',+ width: 180,+ ellipsis: true,+ sorter: false,+ align: 'right',+ className: `column`,+ },+ {+ title: <div className="column-header">Status message</div>,+ dataIndex: 'statusMessage',+ key: 'statusMessage',+ width: 180,+ ellipsis: true,+ align: 'right',+ className: `column`,+ },+ {+ title: <div>Count</div>,+ dataIndex: 'count',+ key: 'count',+ width: 120,+ sorter: false,+ align: 'right',+ className: `column`,+ },+ ];export const createFiltersForSelectedRowData = (selectedRowData: EndPointsTableRowData,@@ -3010,24 +3017,24 @@ export const getAllEndpointsWidgetData = (? '-': getLastUsedRelativeTime(new Date(new Date(lastUsed).toISOString()).getTime(),- )}+ )}</span>),F1: (errorRate: any): ReactNode => (<Progressstatus="active"percent={Number(- ((errorRate === 'n/a' || errorRate === '-'- ? 0- : errorRate) as number).toFixed(2),+ (+ (errorRate === 'n/a' || errorRate === '-' ? 0 : errorRate) as number+ ).toFixed(2),)}strokeLinecap="butt"size="small"strokeColor={((): string => {const errorRatePercent = Number(- ((errorRate === 'n/a' || errorRate === '-'- ? 0- : errorRate) as number).toFixed(2),+ (+ (errorRate === 'n/a' || errorRate === '-' ? 0 : errorRate) as number+ ).toFixed(2),);if (errorRatePercent >= 90) {return Color.BG_SAKURA_500;@@ -3257,7 +3264,7 @@ export const createGroupByFiltersForBarChart = (op: '<=',value: endStatusCode,},- ]+ ]: [];}).flat();diff --git a/frontend/src/container/AppLayout/index.tsx b/frontend/src/container/AppLayout/index.tsxindex 337c4ae079..a615f670ea 100644--- a/frontend/src/container/AppLayout/index.tsx+++ b/frontend/src/container/AppLayout/index.tsx@@ -107,10 +107,8 @@ function AppLayout(props: AppLayoutProps): JSX.Element {const { notifications } = useNotifications();- const [- showPaymentFailedWarning,- setShowPaymentFailedWarning,- ] = useState<boolean>(false);+ const [showPaymentFailedWarning, setShowPaymentFailedWarning] =+ useState<boolean>(false);const errorBoundaryRef = useRef<Sentry.ErrorBoundary>(null);@@ -168,15 +166,13 @@ function AppLayout(props: AppLayoutProps): JSX.Element {});};- const {- mutate: manageCreditCard,- isLoading: isLoadingManageBilling,- } = useMutation(manageCreditCardApi, {- onSuccess: (data) => {- handleBillingOnSuccess(data);- },- onError: handleBillingOnError,- });+ const { mutate: manageCreditCard, isLoading: isLoadingManageBilling } =+ useMutation(manageCreditCardApi, {+ onSuccess: (data) => {+ handleBillingOnSuccess(data);+ },+ onError: handleBillingOnError,+ });const isDarkMode = useIsDarkMode();diff --git a/frontend/src/container/BillingContainer/BillingContainer.test.tsx b/frontend/src/container/BillingContainer/BillingContainer.test.tsxindex efec53d797..5152c9b855 100644--- a/frontend/src/container/BillingContainer/BillingContainer.test.tsx+++ b/frontend/src/container/BillingContainer/BillingContainer.test.tsx@@ -131,9 +131,8 @@ describe('BillingContainer', () => {});expect(manageBillingButton).toBeInTheDocument();- const dayRemainingInBillingPeriod = await screen.findByText(- /1 days_remaining/i,- );+ const dayRemainingInBillingPeriod =+ await screen.findByText(/1 days_remaining/i);expect(dayRemainingInBillingPeriod).toBeInTheDocument();});});diff --git a/frontend/src/container/BillingContainer/BillingContainer.tsx b/frontend/src/container/BillingContainer/BillingContainer.tsxindex c6792b7316..1490edbcc3 100644--- a/frontend/src/container/BillingContainer/BillingContainer.tsx+++ b/frontend/src/container/BillingContainer/BillingContainer.tsx@@ -307,15 +307,13 @@ export default function BillingContainer(): JSX.Element {},);- const {- mutate: manageCreditCard,- isLoading: isLoadingManageBilling,- } = useMutation(manageCreditCardApi, {- onSuccess: (data) => {- handleBillingOnSuccess(data);- },- onError: handleBillingOnError,- });+ const { mutate: manageCreditCard, isLoading: isLoadingManageBilling } =+ useMutation(manageCreditCardApi, {+ onSuccess: (data) => {+ handleBillingOnSuccess(data);+ },+ onError: handleBillingOnError,+ });const handleBilling = useCallback(async () => {if (!trialInfo?.trialConvertedToSubscription) {@@ -487,7 +485,7 @@ export default function BillingContainer(): JSX.Element {showIconstyle={{ marginTop: 12 }}/>- )+ ): null}{isLoading || isFetchingBillingData ? (diff --git a/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx b/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsxindex 58bbf6822c..7060b0b819 100644--- a/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx+++ b/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx@@ -82,9 +82,10 @@ export function BillingUsageGraph(props: BillingUsageGraphProps): JSX.Element {const isDarkMode = useIsDarkMode();const containerDimensions = useResizeObserver(graphRef);- const { startTime, endTime } = useMemo(() => calculateStartEndTime(data), [- data,- ]);+ const { startTime, endTime } = useMemo(+ () => calculateStartEndTime(data),+ [data],+ );const getGraphSeries = (color: string, label: string): any => ({drawStyle: 'bars',diff --git a/frontend/src/container/BillingContainer/BillingUsageGraph/utils.ts b/frontend/src/container/BillingContainer/BillingUsageGraph/utils.tsindex bdc024486b..afeea9d5da 100644--- a/frontend/src/container/BillingContainer/BillingUsageGraph/utils.ts+++ b/frontend/src/container/BillingContainer/BillingUsageGraph/utils.ts@@ -115,9 +115,7 @@ export function csvFileName(csvData: QuantityData[]): string {return `billing_usage_(${startDate}-${endDate}).csv`;}-export function prepareCsvData(- data: Partial<UsageResponsePayloadProps>,-): {+export function prepareCsvData(data: Partial<UsageResponsePayloadProps>): {csvData: string;fileName: string;} {diff --git a/frontend/src/container/CreateAlertRule/__tests__/CreateAlertRule.test.tsx b/frontend/src/container/CreateAlertRule/__tests__/CreateAlertRule.test.tsxindex 95d0ea08c2..d9e1bf2c0b 100644--- a/frontend/src/container/CreateAlertRule/__tests__/CreateAlertRule.test.tsx+++ b/frontend/src/container/CreateAlertRule/__tests__/CreateAlertRule.test.tsx@@ -59,11 +59,11 @@ const CREATE_ALERT_V2_TEXT = 'Create Alert V2';describe('CreateAlertRule', () => {beforeEach(() => {jest.clearAllMocks();- useUrlQuerySpy.mockReturnValue(({+ useUrlQuerySpy.mockReturnValue({set: mockSetUrlQuery,toString: mockToString,get: mockGetUrlQuery,- } as Partial<URLSearchParams>) as URLSearchParams);+ } as Partial<URLSearchParams> as URLSearchParams);useCompositeQueryParamSpy.mockReturnValue(initialQueriesMap.metrics);});diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadence.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadence.tsxindex 315fecba3b..6aaed4e0dc 100644--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadence.tsx+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadence.tsx@@ -18,10 +18,8 @@ function EvaluationCadence(): JSX.Element {isEvaluationCadenceDetailsVisible,setIsEvaluationCadenceDetailsVisible,] = useState(false);- const [- isCustomScheduleButtonVisible,- setIsCustomScheduleButtonVisible,- ] = useState(true);+ const [isCustomScheduleButtonVisible, setIsCustomScheduleButtonVisible] =+ useState(true);const [isEvaluationCadencePreviewVisible,setIsEvaluationCadencePreviewVisible,diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationSettings.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationSettings.tsxindex 1a6cbc16e9..636a030af5 100644--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationSettings.tsx+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationSettings.tsx@@ -11,10 +11,8 @@ import './styles.scss';function EvaluationSettings(): JSX.Element {const { evaluationWindow, setEvaluationWindow } = useCreateAlertState();- const [- isEvaluationWindowPopoverOpen,- setIsEvaluationWindowPopoverOpen,- ] = useState(false);+ const [isEvaluationWindowPopoverOpen, setIsEvaluationWindowPopoverOpen] =+ useState(false);const popoverContent = (<Popoverdiff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowPopover.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowPopover.tsxindex 51f00923be..7f2a0d96d9 100644--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowPopover.tsx+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowPopover.tsx@@ -20,30 +20,28 @@ function EvaluationWindowPopover({evaluationWindow,setEvaluationWindow,}: IEvaluationWindowPopoverProps): JSX.Element {- const {- containerRef,- firstItemRef,- } = useKeyboardNavigationForEvaluationWindowPopover({- onSelect: (value: string, sectionId: string): void => {- if (sectionId === 'window-type') {- setEvaluationWindow({- type: 'SET_WINDOW_TYPE',- payload: value as 'rolling' | 'cumulative',- });- } else if (sectionId === 'timeframe') {- setEvaluationWindow({- type: 'SET_TIMEFRAME',- payload: value as RollingWindowTimeframes | CumulativeWindowTimeframes,- });- }- },- onEscape: (): void => {- const triggerElement = document.querySelector(- '[aria-haspopup="true"]',- ) as HTMLElement;- triggerElement?.focus();- },- });+ const { containerRef, firstItemRef } =+ useKeyboardNavigationForEvaluationWindowPopover({+ onSelect: (value: string, sectionId: string): void => {+ if (sectionId === 'window-type') {+ setEvaluationWindow({+ type: 'SET_WINDOW_TYPE',+ payload: value as 'rolling' | 'cumulative',+ });+ } else if (sectionId === 'timeframe') {+ setEvaluationWindow({+ type: 'SET_TIMEFRAME',+ payload: value as RollingWindowTimeframes | CumulativeWindowTimeframes,+ });+ }+ },+ onEscape: (): void => {+ const triggerElement = document.querySelector(+ '[aria-haspopup="true"]',+ ) as HTMLElement;+ triggerElement?.focus();+ },+ });const renderEvaluationWindowContent = (label: string,diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/AdvancedOptions.test.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/AdvancedOptions.test.tsxindex a4f2757b1e..6f752d9035 100644--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/AdvancedOptions.test.tsx+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/AdvancedOptions.test.tsx@@ -67,9 +67,10 @@ describe('AdvancedOptions', () => {const alertWhenDataStopsComingContainer = screen.getByText(ALERT_WHEN_DATA_STOPS_COMING_TEXT).closest(ADVANCED_OPTION_ITEM_CLASS);- const alertWhenDataStopsComingSwitch = alertWhenDataStopsComingContainer?.querySelector(- SWITCH_ROLE_SELECTOR,- ) as HTMLElement;+ const alertWhenDataStopsComingSwitch =+ alertWhenDataStopsComingContainer?.querySelector(+ SWITCH_ROLE_SELECTOR,+ ) as HTMLElement;fireEvent.click(alertWhenDataStopsComingSwitch);diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/EvaluationCadenceDetails.test.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/EvaluationCadenceDetails.test.tsxindex 4b626491e6..121198051a 100644--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/EvaluationCadenceDetails.test.tsx+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/EvaluationCadenceDetails.test.tsx@@ -28,13 +28,14 @@ jest.mock('dayjs', () => {return mockDayjs;});-const INITIAL_ADVANCED_OPTIONS_STATE_WITH_CUSTOM_SCHEDULE: AdvancedOptionsState = {- ...INITIAL_ADVANCED_OPTIONS_STATE,- evaluationCadence: {- ...INITIAL_ADVANCED_OPTIONS_STATE.evaluationCadence,- mode: 'custom',- },-};+const INITIAL_ADVANCED_OPTIONS_STATE_WITH_CUSTOM_SCHEDULE: AdvancedOptionsState =+ {+ ...INITIAL_ADVANCED_OPTIONS_STATE,+ evaluationCadence: {+ ...INITIAL_ADVANCED_OPTIONS_STATE.evaluationCadence,+ mode: 'custom',+ },+ };const mockSetAdvancedOptions = jest.fn();jest.spyOn(alertState, 'useCreateAlertState').mockReturnValue(diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/EvaluationWindowPopover.test.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/EvaluationWindowPopover.test.tsxindex 4364fe1f08..3bac9d3181 100644--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/EvaluationWindowPopover.test.tsx+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/EvaluationWindowPopover.test.tsx@@ -8,7 +8,8 @@ import {import EvaluationWindowPopover from '../EvaluationWindowPopover';import { createMockEvaluationWindowState } from './testUtils';-const mockEvaluationWindow: EvaluationWindowState = createMockEvaluationWindowState();+const mockEvaluationWindow: EvaluationWindowState =+ createMockEvaluationWindowState();const mockSetEvaluationWindow = jest.fn();const EVALUATION_WINDOW_CONTENT_LIST_ITEM_CLASS =diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/utils.test.ts b/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/utils.test.tsindex 52fae88ea2..5e03899552 100644--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/utils.test.ts+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/__tests__/utils.test.ts@@ -14,7 +14,7 @@ jest.mock('dayjs', () => {return originalDayjs(MOCK_DATE_STRING);});Object.keys(originalDayjs).forEach((key) => {- ((mockDayjs as unknown) as Record<string, unknown>)[key] = originalDayjs[key];+ (mockDayjs as unknown as Record<string, unknown>)[key] = originalDayjs[key];});return mockDayjs;});diff --git a/frontend/src/container/CreateAlertV2/Footer/__tests__/Footer.test.tsx b/frontend/src/container/CreateAlertV2/Footer/__tests__/Footer.test.tsxindex 46e453beb8..a6686f9f0e 100644--- a/frontend/src/container/CreateAlertV2/Footer/__tests__/Footer.test.tsx+++ b/frontend/src/container/CreateAlertV2/Footer/__tests__/Footer.test.tsx@@ -263,14 +263,12 @@ describe('Footer', () => {const { container } = render(<Footer />);// When testing alert rule, the play icon is replaced with a loader icon- const playIconForTestNotificationButton = container.querySelector(- PLAY_ICON_SELECTOR,- );+ const playIconForTestNotificationButton =+ container.querySelector(PLAY_ICON_SELECTOR);expect(playIconForTestNotificationButton).not.toBeInTheDocument();- const loaderIconForTestNotificationButton = container.querySelector(- LOADER_ICON_SELECTOR,- );+ const loaderIconForTestNotificationButton =+ container.querySelector(LOADER_ICON_SELECTOR);expect(loaderIconForTestNotificationButton).toBeInTheDocument();});@@ -282,14 +280,12 @@ describe('Footer', () => {const { container } = render(<Footer />);// When updating alert rule, the check icon is replaced with a loader icon- const checkIconForSaveAlertRuleButton = container.querySelector(- CHECK_ICON_SELECTOR,- );+ const checkIconForSaveAlertRuleButton =+ container.querySelector(CHECK_ICON_SELECTOR);expect(checkIconForSaveAlertRuleButton).not.toBeInTheDocument();- const loaderIconForSaveAlertRuleButton = container.querySelector(- LOADER_ICON_SELECTOR,- );+ const loaderIconForSaveAlertRuleButton =+ container.querySelector(LOADER_ICON_SELECTOR);expect(loaderIconForSaveAlertRuleButton).toBeInTheDocument();});@@ -301,14 +297,12 @@ describe('Footer', () => {const { container } = render(<Footer />);// When creating alert rule, the check icon is replaced with a loader icon- const checkIconForSaveAlertRuleButton = container.querySelector(- CHECK_ICON_SELECTOR,- );+ const checkIconForSaveAlertRuleButton =+ container.querySelector(CHECK_ICON_SELECTOR);expect(checkIconForSaveAlertRuleButton).not.toBeInTheDocument();- const loaderIconForSaveAlertRuleButton = container.querySelector(- LOADER_ICON_SELECTOR,- );+ const loaderIconForSaveAlertRuleButton =+ container.querySelector(LOADER_ICON_SELECTOR);expect(loaderIconForSaveAlertRuleButton).toBeInTheDocument();});});diff --git a/frontend/src/container/CreateAlertV2/Footer/__tests__/utils.test.ts b/frontend/src/container/CreateAlertV2/Footer/__tests__/utils.test.tsindex f5fdc7d45c..638f7861a6 100644--- a/frontend/src/container/CreateAlertV2/Footer/__tests__/utils.test.ts+++ b/frontend/src/container/CreateAlertV2/Footer/__tests__/utils.test.ts@@ -401,15 +401,16 @@ describe('Footer utils', () => {describe('buildCreateThresholdAlertRulePayload', () => {const mockCreateAlertContextState = createMockAlertContextState();- const INITIAL_BUILD_CREATE_ALERT_RULE_PAYLOAD_ARGS: BuildCreateAlertRulePayloadArgs = {- basicAlertState: mockCreateAlertContextState.alertState,- thresholdState: mockCreateAlertContextState.thresholdState,- advancedOptions: mockCreateAlertContextState.advancedOptions,- evaluationWindow: mockCreateAlertContextState.evaluationWindow,- notificationSettings: mockCreateAlertContextState.notificationSettings,- query: initialQueriesMap.metrics,- alertType: mockCreateAlertContextState.alertType,- };+ const INITIAL_BUILD_CREATE_ALERT_RULE_PAYLOAD_ARGS: BuildCreateAlertRulePayloadArgs =+ {+ basicAlertState: mockCreateAlertContextState.alertState,+ thresholdState: mockCreateAlertContextState.thresholdState,+ advancedOptions: mockCreateAlertContextState.advancedOptions,+ evaluationWindow: mockCreateAlertContextState.evaluationWindow,+ notificationSettings: mockCreateAlertContextState.notificationSettings,+ query: initialQueriesMap.metrics,+ alertType: mockCreateAlertContextState.alertType,+ };it('verify buildCreateThresholdAlertRulePayload', () => {const props = buildCreateThresholdAlertRulePayload(diff --git a/frontend/src/container/CreateAlertV2/Footer/utils.tsx b/frontend/src/container/CreateAlertV2/Footer/utils.tsxindex 9e0fc1ccf2..f8a141aa89 100644--- a/frontend/src/container/CreateAlertV2/Footer/utils.tsx+++ b/frontend/src/container/CreateAlertV2/Footer/utils.tsx@@ -56,18 +56,19 @@ export function validateCreateAlertState(export function getNotificationSettingsProps(notificationSettings: NotificationSettingsState,): PostableAlertRuleV2['notificationSettings'] {- const notificationSettingsProps: PostableAlertRuleV2['notificationSettings'] = {- groupBy: notificationSettings.multipleNotifications || [],- usePolicy: notificationSettings.routingPolicies,- renotify: {- enabled: notificationSettings.reNotification.enabled,- interval: getFormattedTimeValue(- notificationSettings.reNotification.value,- notificationSettings.reNotification.unit,- ),- alertStates: notificationSettings.reNotification.conditions,- },- };+ const notificationSettingsProps: PostableAlertRuleV2['notificationSettings'] =+ {+ groupBy: notificationSettings.multipleNotifications || [],+ usePolicy: notificationSettings.routingPolicies,+ renotify: {+ enabled: notificationSettings.reNotification.enabled,+ interval: getFormattedTimeValue(+ notificationSettings.reNotification.value,+ notificationSettings.reNotification.unit,+ ),+ alertStates: notificationSettings.reNotification.conditions,+ },+ };return notificationSettingsProps;}@@ -243,14 +244,12 @@ export function buildCreateThresholdAlertRulePayload(const alertOnAbsentProps = getAlertOnAbsentProps(advancedOptions);// Enforce minimum datapoints- const enforceMinimumDatapointsProps = getEnforceMinimumDatapointsProps(- advancedOptions,- );+ const enforceMinimumDatapointsProps =+ getEnforceMinimumDatapointsProps(advancedOptions);// Notification settings- const notificationSettingsProps = getNotificationSettingsProps(- notificationSettings,- );+ const notificationSettingsProps =+ getNotificationSettingsProps(notificationSettings);// Evaluationconst evaluationProps = getEvaluationProps(evaluationWindow, advancedOptions);@@ -314,13 +313,11 @@ export function buildCreateAnomalyAlertRulePayload(});const alertOnAbsentProps = getAlertOnAbsentProps(advancedOptions);- const enforceMinimumDatapointsProps = getEnforceMinimumDatapointsProps(- advancedOptions,- );+ const enforceMinimumDatapointsProps =+ getEnforceMinimumDatapointsProps(advancedOptions);const evaluationProps = getEvaluationProps(evaluationWindow, advancedOptions);- const notificationSettingsProps = getNotificationSettingsProps(- notificationSettings,- );+ const notificationSettingsProps =+ getNotificationSettingsProps(notificationSettings);return {alert: basicAlertState.name,diff --git a/frontend/src/container/CreateAlertV2/NotificationSettings/MultipleNotifications.tsx b/frontend/src/container/CreateAlertV2/NotificationSettings/MultipleNotifications.tsxindex 61e45f44d8..538cc96d7b 100644--- a/frontend/src/container/CreateAlertV2/NotificationSettings/MultipleNotifications.tsx+++ b/frontend/src/container/CreateAlertV2/NotificationSettings/MultipleNotifications.tsx@@ -7,10 +7,8 @@ import { ALL_SELECTED_VALUE } from '../constants';import { useCreateAlertState } from '../context';function MultipleNotifications(): JSX.Element {- const {- notificationSettings,- setNotificationSettings,- } = useCreateAlertState();+ const { notificationSettings, setNotificationSettings } =+ useCreateAlertState();const { currentQuery } = useQueryBuilder();const isAllOptionSelected = useMemo(diff --git a/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationMessage.tsx b/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationMessage.tsxindex 7aa67b519f..cdf501ef87 100644--- a/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationMessage.tsx+++ b/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationMessage.tsx@@ -4,10 +4,8 @@ import { Info } from 'lucide-react';import { useCreateAlertState } from '../context';function NotificationMessage(): JSX.Element {- const {- notificationSettings,- setNotificationSettings,- } = useCreateAlertState();+ const { notificationSettings, setNotificationSettings } =+ useCreateAlertState();// const templateVariables = [// { variable: '{{alertname}}', description: 'Name of the alert rule' },diff --git a/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationSettings.tsx b/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationSettings.tsxindex 3a7434082f..52945fea2e 100644--- a/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationSettings.tsx+++ b/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationSettings.tsx@@ -13,10 +13,8 @@ import NotificationMessage from './NotificationMessage';import './styles.scss';function NotificationSettings(): JSX.Element {- const {- notificationSettings,- setNotificationSettings,- } = useCreateAlertState();+ const { notificationSettings, setNotificationSettings } =+ useCreateAlertState();const repeatNotificationsInput = (<div className="repeat-notifications-input">diff --git a/frontend/src/container/CreateAlertV2/NotificationSettings/__tests__/NotificationMessage.test.tsx b/frontend/src/container/CreateAlertV2/NotificationSettings/__tests__/NotificationMessage.test.tsxindex b895ee8c69..435b3eeb0c 100644--- a/frontend/src/container/CreateAlertV2/NotificationSettings/__tests__/NotificationMessage.test.tsx+++ b/frontend/src/container/CreateAlertV2/NotificationSettings/__tests__/NotificationMessage.test.tsx@@ -20,8 +20,8 @@ jest.mock('uplot', () => {});const mockSetNotificationSettings = jest.fn();-const initialNotificationSettingsState = createMockAlertContextState()- .notificationSettings;+const initialNotificationSettingsState =+ createMockAlertContextState().notificationSettings;jest.spyOn(createAlertContext, 'useCreateAlertState').mockReturnValue(createMockAlertContextState({notificationSettings: {@@ -63,7 +63,7 @@ describe('NotificationMessage', () => {description: 'Existing message',},setNotificationSettings: mockSetNotificationSettings,- } as any),+ }) as any,);render(<NotificationMessage />);diff --git a/frontend/src/container/CreateAlertV2/NotificationSettings/__tests__/NotificationSettings.test.tsx b/frontend/src/container/CreateAlertV2/NotificationSettings/__tests__/NotificationSettings.test.tsxindex 7b8c36a5c3..89a0019034 100644--- a/frontend/src/container/CreateAlertV2/NotificationSettings/__tests__/NotificationSettings.test.tsx+++ b/frontend/src/container/CreateAlertV2/NotificationSettings/__tests__/NotificationSettings.test.tsx@@ -27,8 +27,8 @@ jest.mock('container/CreateAlertV2/utils', () => ({...jest.requireActual('container/CreateAlertV2/utils'),}));-const initialNotificationSettings = createMockAlertContextState()- .notificationSettings;+const initialNotificationSettings =+ createMockAlertContextState().notificationSettings;const mockSetNotificationSettings = jest.fn();jest.spyOn(createAlertContext, 'useCreateAlertState').mockReturnValue(createMockAlertContextState({diff --git a/frontend/src/container/CreateAlertV2/QuerySection/ChartPreview/ChartPreview.tsx b/frontend/src/container/CreateAlertV2/QuerySection/ChartPreview/ChartPreview.tsxindex 9b2c3266e2..7b77cb09fa 100644--- a/frontend/src/container/CreateAlertV2/QuerySection/ChartPreview/ChartPreview.tsx+++ b/frontend/src/container/CreateAlertV2/QuerySection/ChartPreview/ChartPreview.tsx@@ -29,13 +29,8 @@ function ChartPreview({onFetchingStateChange,}: ChartPreviewProps): JSX.Element {const { currentQuery, panelType, stagedQuery } = useQueryBuilder();- const {- alertType,- thresholdState,- alertState,- setAlertState,- isEditMode,- } = useCreateAlertState();+ const { alertType, thresholdState, alertState, setAlertState, isEditMode } =+ useCreateAlertState();const { selectedTime: globalSelectedInterval } = useSelector<AppState,GlobalReducer@@ -54,9 +49,8 @@ function ChartPreview({}, [isEditMode, alertType, source]);const selectedQueryName = thresholdState.selectedQuery;- const { yAxisUnit: initialYAxisUnit, isLoading } = useGetYAxisUnit(- selectedQueryName,- );+ const { yAxisUnit: initialYAxisUnit, isLoading } =+ useGetYAxisUnit(selectedQueryName);// Every time a new metric is selected, set the y-axis unit to its unit value if present// Only for metrics-based alerts in create modediff --git a/frontend/src/container/CreateAlertV2/QuerySection/QuerySection.tsx b/frontend/src/container/CreateAlertV2/QuerySection/QuerySection.tsxindex 9579776502..395630c262 100644--- a/frontend/src/container/CreateAlertV2/QuerySection/QuerySection.tsx+++ b/frontend/src/container/CreateAlertV2/QuerySection/QuerySection.tsx@@ -39,9 +39,10 @@ function QuerySection(): JSX.Element {redirectWithQueryBuilderData(query);};- const source = useMemo(() => urlQuery.get(QueryParams.source) as YAxisSource, [- urlQuery,- ]);+ const source = useMemo(+ () => urlQuery.get(QueryParams.source) as YAxisSource,+ [urlQuery],+ );const didQueryChange = useMemo(() => {if (alertType !== AlertTypes.METRICS_BASED_ALERT) {diff --git a/frontend/src/container/CreateAlertV2/QuerySection/__tests__/QuerySection.test.tsx b/frontend/src/container/CreateAlertV2/QuerySection/__tests__/QuerySection.test.tsxindex 8513037638..3a35ecc308 100644--- a/frontend/src/container/CreateAlertV2/QuerySection/__tests__/QuerySection.test.tsx+++ b/frontend/src/container/CreateAlertV2/QuerySection/__tests__/QuerySection.test.tsx@@ -368,9 +368,8 @@ describe('QuerySection', () => {mockUseQueryBuilder.redirectWithQueryBuilderData,).toHaveBeenCalledTimes(1);- const [- queryArg,- ] = mockUseQueryBuilder.redirectWithQueryBuilderData.mock.calls[0];+ const [queryArg] =+ mockUseQueryBuilder.redirectWithQueryBuilderData.mock.calls[0];expect(queryArg).toEqual({...mockUseQueryBuilder.currentQuery,@@ -423,9 +422,8 @@ describe('QuerySection', () => {mockUseQueryBuilder.redirectWithQueryBuilderData,).toHaveBeenCalledTimes(1);- const [- queryArg,- ] = mockUseQueryBuilder.redirectWithQueryBuilderData.mock.calls[0];+ const [queryArg] =+ mockUseQueryBuilder.redirectWithQueryBuilderData.mock.calls[0];expect(queryArg).toEqual({...mockCurrentQueryWithPromQL,@@ -478,9 +476,8 @@ describe('QuerySection', () => {mockUseQueryBuilder.redirectWithQueryBuilderData,).toHaveBeenCalledTimes(1);- const [- queryArg,- ] = mockUseQueryBuilder.redirectWithQueryBuilderData.mock.calls[0];+ const [queryArg] =+ mockUseQueryBuilder.redirectWithQueryBuilderData.mock.calls[0];expect(queryArg).toEqual({...mockCurrentQueryWithClickhouseSQL,diff --git a/frontend/src/container/CreateAlertV2/constants.ts b/frontend/src/container/CreateAlertV2/constants.tsindex 79ef1f23bb..6fc4d5e419 100644--- a/frontend/src/container/CreateAlertV2/constants.ts+++ b/frontend/src/container/CreateAlertV2/constants.ts@@ -18,15 +18,16 @@ const defaultAnnotations = {'The rule threshold is set to {{$threshold}}, and the observed metric value is {{$value}}',};-const defaultNotificationSettings: PostableAlertRuleV2['notificationSettings'] = {- groupBy: [],- renotify: {- enabled: false,- interval: '30m',- alertStates: [],- },- usePolicy: false,-};+const defaultNotificationSettings: PostableAlertRuleV2['notificationSettings'] =+ {+ groupBy: [],+ renotify: {+ enabled: false,+ interval: '30m',+ alertStates: [],+ },+ usePolicy: false,+ };const defaultEvaluation: PostableAlertRuleV2['evaluation'] = {kind: 'rolling',diff --git a/frontend/src/container/CreateAlertV2/context/index.tsx b/frontend/src/container/CreateAlertV2/context/index.tsxindex 3a56bd3b6c..daa763d03c 100644--- a/frontend/src/container/CreateAlertV2/context/index.tsx+++ b/frontend/src/container/CreateAlertV2/context/index.tsx@@ -55,13 +55,8 @@ export const useCreateAlertState = (): ICreateAlertContextProps => {export function CreateAlertProvider(props: ICreateAlertProviderProps,): JSX.Element {- const {- children,- initialAlertState,- isEditMode,- ruleId,- initialAlertType,- } = props;+ const { children, initialAlertState, isEditMode, ruleId, initialAlertType } =+ props;const { currentQuery, redirectWithQueryBuilderData } = useQueryBuilder();@@ -214,17 +209,13 @@ export function CreateAlertProvider(handleAlertTypeChange(AlertTypes.METRICS_BASED_ALERT);}, [handleAlertTypeChange]);- const {- mutate: createAlertRule,- isLoading: isCreatingAlertRule,- } = useCreateRule();+ const { mutate: createAlertRule, isLoading: isCreatingAlertRule } =+ useCreateRule();const { mutate: testAlertRule, isLoading: isTestingAlertRule } = useTestRule();- const {- mutate: updateAlertRule,- isLoading: isUpdatingAlertRule,- } = useUpdateRuleByID();+ const { mutate: updateAlertRule, isLoading: isUpdatingAlertRule } =+ useUpdateRuleByID();const contextValue: ICreateAlertContextProps = useMemo(() => ({diff --git a/frontend/src/container/CreateAlertV2/utils.tsx b/frontend/src/container/CreateAlertV2/utils.tsxindex f1cd34b21a..d41adc786f 100644--- a/frontend/src/container/CreateAlertV2/utils.tsx+++ b/frontend/src/container/CreateAlertV2/utils.tsx@@ -55,9 +55,10 @@ export function getColorForThreshold(thresholdLabel: string): string {return getRandomColor();}-export function parseGoTime(- input: string,-): { time: number; unit: UniversalYAxisUnit } {+export function parseGoTime(input: string): {+ time: number;+ unit: UniversalYAxisUnit;+} {const regex = /(\d+)([hms])/g;const matches = [...input.matchAll(regex)];@@ -349,9 +350,8 @@ export function getCreateAlertLocalStateFromAlertDef(const evaluationWindowState = getEvaluationWindowStateFromAlertDef(alertDef);- const notificationSettingsState = getNotificationSettingsStateFromAlertDef(- alertDef,- );+ const notificationSettingsState =+ getNotificationSettingsStateFromAlertDef(alertDef);return {basic: basicAlertState,diff --git a/frontend/src/container/CustomDomainSettings/CustomDomainEditModal.tsx b/frontend/src/container/CustomDomainSettings/CustomDomainEditModal.tsxindex e6c1a2a7c8..b62bce5761 100644--- a/frontend/src/container/CustomDomainSettings/CustomDomainEditModal.tsx+++ b/frontend/src/container/CustomDomainSettings/CustomDomainEditModal.tsx@@ -82,8 +82,8 @@ export default function CustomDomainEditModal({const errorMessage =validationError ??(is409- ? apiErrorMessage ??- "You've already updated the custom domain once today. Please contact support."+ ? (apiErrorMessage ??+ "You've already updated the custom domain once today. Please contact support."): apiErrorMessage);const hasError = Boolean(errorMessage);diff --git a/frontend/src/container/CustomDomainSettings/CustomDomainSettings.styles.scss b/frontend/src/container/CustomDomainSettings/CustomDomainSettings.styles.scssindex abbf74ce42..02b5b83122 100644--- a/frontend/src/container/CustomDomainSettings/CustomDomainSettings.styles.scss+++ b/frontend/src/container/CustomDomainSettings/CustomDomainSettings.styles.scss@@ -90,7 +90,9 @@gap: var(--spacing-3);color: var(--l1-foreground);font-variant-numeric: lining-nums tabular-nums slashed-zero;- font-feature-settings: 'dlig' on, 'salt' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: var(--paragraph-small-400-font-size);font-style: normal;diff --git a/frontend/src/container/DashboardContainer/DashboardDescription/__tests__/DashboardDescription.test.tsx b/frontend/src/container/DashboardContainer/DashboardDescription/__tests__/DashboardDescription.test.tsxindex 21b73b6da5..ed9bb33501 100644--- a/frontend/src/container/DashboardContainer/DashboardDescription/__tests__/DashboardDescription.test.tsx+++ b/frontend/src/container/DashboardContainer/DashboardDescription/__tests__/DashboardDescription.test.tsx@@ -196,7 +196,7 @@ describe('Dashboard landing page actions header tests', () => {(useLocation as jest.Mock).mockReturnValue(mockLocation);useDashboardStore.setState({- dashboardData: (getDashboardById.data as unknown) as Dashboard,+ dashboardData: getDashboardById.data as unknown as Dashboard,layouts: [],panelMap: {},setPanelMap: jest.fn(),diff --git a/frontend/src/container/DashboardContainer/DashboardDescription/index.tsx b/frontend/src/container/DashboardContainer/DashboardDescription/index.tsxindex c3cc9840a1..5d90d994ef 100644--- a/frontend/src/container/DashboardContainer/DashboardDescription/index.tsx+++ b/frontend/src/container/DashboardContainer/DashboardDescription/index.tsx@@ -90,9 +90,8 @@ function DashboardDescription(props: DashboardDescriptionProps): JSX.Element {const handleDashboardLockToggle = useLockDashboard();const variablesSettingsTabHandle = useRef<VariablesSettingsTab>(null);- const [isSettingsDrawerOpen, setIsSettingsDrawerOpen] = useState<boolean>(- false,- );+ const [isSettingsDrawerOpen, setIsSettingsDrawerOpen] =+ useState<boolean>(false);const { isCloudUser, isEnterpriseSelfHostedUser } = useGetTenantLicense();@@ -102,12 +101,16 @@ function DashboardDescription(props: DashboardDescriptionProps): JSX.Element {? {...dashboardData.data,uuid: dashboardData.id,- }+ }: ({} as DashboardData);const { dashboardVariables } = useDashboardVariables();- const { title = '', description, tags, image = Base64Icons[0] } =- selectedData || {};+ const {+ title = '',+ description,+ tags,+ image = Base64Icons[0],+ } = selectedData || {};const [updatedTitle, setUpdatedTitle] = useState<string>(title);@@ -117,17 +120,14 @@ function DashboardDescription(props: DashboardDescriptionProps): JSX.Element {const { user } = useAppContext();const [editDashboard] = useComponentPermission(['edit_dashboard'], user.role);- const [isDashboardSettingsOpen, setIsDashbordSettingsOpen] = useState<boolean>(- false,- );+ const [isDashboardSettingsOpen, setIsDashbordSettingsOpen] =+ useState<boolean>(false);- const [isRenameDashboardOpen, setIsRenameDashboardOpen] = useState<boolean>(- false,- );+ const [isRenameDashboardOpen, setIsRenameDashboardOpen] =+ useState<boolean>(false);- const [isPanelNameModalOpen, setIsPanelNameModalOpen] = useState<boolean>(- false,- );+ const [isPanelNameModalOpen, setIsPanelNameModalOpen] =+ useState<boolean>(false);const [isPublicDashboard, setIsPublicDashboard] = useState<boolean>(false);diff --git a/frontend/src/container/DashboardContainer/DashboardDescription/types.ts b/frontend/src/container/DashboardContainer/DashboardDescription/types.tsindex 7581d6f7a3..7a5cfcd592 100644--- a/frontend/src/container/DashboardContainer/DashboardDescription/types.ts+++ b/frontend/src/container/DashboardContainer/DashboardDescription/types.ts@@ -4,4 +4,5 @@ export interface VariablesSettingsTab {resetState: () => void;}-export type VariablesSettingsTabHandle = MutableRefObject<VariablesSettingsTab | null>;+export type VariablesSettingsTabHandle =+ MutableRefObject<VariablesSettingsTab | null>;diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsxindex f64a00f525..262b04d552 100644--- a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx+++ b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx@@ -84,10 +84,8 @@ function VariableItem({const [variableName, setVariableName] = useState<string>(variableData.name || '',);- const [- hasUserManuallyChangedName,- setHasUserManuallyChangedName,- ] = useState<boolean>(false);+ const [hasUserManuallyChangedName, setHasUserManuallyChangedName] =+ useState<boolean>(false);const [variableDescription, setVariableDescription] = useState<string>(variableData.description || '',);@@ -103,12 +101,10 @@ function VariableItem({const [variableTextboxValue, setVariableTextboxValue] = useState<string>(variableData.textboxValue || '',);- const [- variableSortType,- setVariableSortType,- ] = useState<TSortVariableValuesType>(- variableData.sort || VariableSortTypeArr[0],- );+ const [variableSortType, setVariableSortType] =+ useState<TSortVariableValuesType>(+ variableData.sort || VariableSortTypeArr[0],+ );const [variableMultiSelect, setVariableMultiSelect] = useState<boolean>(variableData.multiSelect || false,);@@ -122,19 +118,15 @@ function VariableItem({const isDarkMode = useIsDarkMode();- const [- dynamicVariablesSelectedValue,- setDynamicVariablesSelectedValue,- ] = useState<{ name: string; value: string }>();+ const [dynamicVariablesSelectedValue, setDynamicVariablesSelectedValue] =+ useState<{ name: string; value: string }>();// Error messagesconst [errorName, setErrorName] = useState<boolean>(false);const [errorNameMessage, setErrorNameMessage] = useState<string>('');const [errorAttributeKey, setErrorAttributeKey] = useState<boolean>(false);- const [- errorAttributeKeyMessage,- setErrorAttributeKeyMessage,- ] = useState<string>('');+ const [errorAttributeKeyMessage, setErrorAttributeKeyMessage] =+ useState<string>('');const [errorPreview, setErrorPreview] = useState<string | null>(null);useEffect(() => {diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/addTagFiltersToDashboard.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/addTagFiltersToDashboard.tsxindex ed5a25d190..4c3d93f407 100644--- a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/addTagFiltersToDashboard.tsx+++ b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/addTagFiltersToDashboard.tsx@@ -34,9 +34,11 @@ const updateQueryFilters = (newFilter.value = valueToAdd;newFilter.op = 'IN';} else {- newFilter.value = (isArray(newFilter.value)- ? [...newFilter.value, valueToAdd]- : [newFilter.value, valueToAdd]) as string[] | string;+ newFilter.value = (+ isArray(newFilter.value)+ ? [...newFilter.value, valueToAdd]+ : [newFilter.value, valueToAdd]+ ) as string[] | string;newFilter.op = 'IN';}diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/index.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/index.tsxindex b0560efad1..7c72dc3ba9 100644--- a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/index.tsx+++ b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/index.tsx@@ -102,10 +102,8 @@ function VariablesSettings({null,);- const [- variableEditData,- setVariableEditData,- ] = useState<null | IDashboardVariable>(null);+ const [variableEditData, setVariableEditData] =+ useState<null | IDashboardVariable>(null);const onDoneVariableViewMode = (): void => {setVariableViewMode(null);diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/General/index.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/General/index.tsxindex ddf4fab5ba..43905daf10 100644--- a/frontend/src/container/DashboardContainer/DashboardSettings/General/index.tsx+++ b/frontend/src/container/DashboardContainer/DashboardSettings/General/index.tsx@@ -21,8 +21,12 @@ function GeneralDashboardSettings(): JSX.Element {const selectedData = dashboardData?.data;- const { title = '', tags = [], description = '', image = Base64Icons[0] } =- selectedData || {};+ const {+ title = '',+ tags = [],+ description = '',+ image = Base64Icons[0],+ } = selectedData || {};const [updatedTitle, setUpdatedTitle] = useState<string>(title);const [updatedTags, setUpdatedTags] = useState<string[]>(tags || []);@@ -30,9 +34,8 @@ function GeneralDashboardSettings(): JSX.Element {description || '',);const [updatedImage, setUpdatedImage] = useState<string>(image);- const [numberOfUnsavedChanges, setNumberOfUnsavedChanges] = useState<number>(- 0,- );+ const [numberOfUnsavedChanges, setNumberOfUnsavedChanges] =+ useState<number>(0);const { t } = useTranslation('common');diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/PublicDashboard/__tests__/PublicDashboard.test.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/PublicDashboard/__tests__/PublicDashboard.test.tsxindex e2889b5858..cd48d06981 100644--- a/frontend/src/container/DashboardContainer/DashboardSettings/PublicDashboard/__tests__/PublicDashboard.test.tsx+++ b/frontend/src/container/DashboardContainer/DashboardSettings/PublicDashboard/__tests__/PublicDashboard.test.tsx@@ -69,15 +69,15 @@ beforeEach(() => {window.open = jest.fn();// Mock useDashboardStore- mockUseDashboard.mockReturnValue(({+ mockUseDashboard.mockReturnValue({dashboardData: mockDashboardData,- } as unknown) as ReturnType<typeof useDashboardStore>);+ } as unknown as ReturnType<typeof useDashboardStore>);// Mock useCopyToClipboard- mockUseCopyToClipboard.mockReturnValue(([+ mockUseCopyToClipboard.mockReturnValue([undefined,mockSetCopyPublicDashboardURL,- ] as unknown) as ReturnType<typeof useCopyToClipboard>);+ ] as unknown as ReturnType<typeof useCopyToClipboard>);});afterEach(() => {diff --git a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/DynamicVariableInput.tsx b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/DynamicVariableInput.tsxindex 2b6b5b4a64..6b28ce4339 100644--- a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/DynamicVariableInput.tsx+++ b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/DynamicVariableInput.tsx@@ -168,8 +168,8 @@ function DynamicVariableInput({const currentStrings = Array.isArray(tempSelection)? tempSelection.map((v) => v.toString()): tempSelection- ? [tempSelection.toString()]- : [];+ ? [tempSelection.toString()]+ : [];const areSame =currentStrings.length === latestValues.length &&diff --git a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/__test__/DashboardVariableSelection.test.tsx b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/__test__/DashboardVariableSelection.test.tsxindex f4448a5f69..20e69b079c 100644--- a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/__test__/DashboardVariableSelection.test.tsx+++ b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/__test__/DashboardVariableSelection.test.tsx@@ -44,7 +44,8 @@ jest.mock('providers/Dashboard/store/useDashboardStore', () => ({const state = {dashboardData: { id: 'dash-1' },setDashboardData: mockSetDashboardData,- updateLocalStorageDashboardVariables: mockUpdateLocalStorageDashboardVariables,+ updateLocalStorageDashboardVariables:+ mockUpdateLocalStorageDashboardVariables,};return selector ? selector(state) : state;},diff --git a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/useDashboardVariableUpdate.ts b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/useDashboardVariableUpdate.tsindex 4bf00b42cd..5ee6601e2a 100644--- a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/useDashboardVariableUpdate.ts+++ b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/useDashboardVariableUpdate.ts@@ -37,202 +37,208 @@ interface UseDashboardVariableUpdateReturn {) => void;}-export const useDashboardVariableUpdate = (): UseDashboardVariableUpdateReturn => {- const { dashboardId, dashboardData, setDashboardData } = useDashboardStore(- useShallow((s) => ({- dashboardId: s.dashboardData?.id ?? '',- dashboardData: s.dashboardData,- setDashboardData: s.setDashboardData,- })),- );- const addDynamicVariableToPanels = useAddDynamicVariableToPanels();- const updateMutation = useUpdateDashboard();-- const onValueUpdate = useCallback(- (- name: string,- id: string,- value: IDashboardVariable['selectedValue'],- allSelected: boolean,- haveCustomValuesSelected?: boolean,- ): void => {- if (id) {- // Performance optimization: For dynamic variables with allSelected=true, we don't store- // individual values in localStorage since we can always derive them from available options.- // This makes localStorage much lighter and more efficient.- // currently all the variables are dynamic- const isDynamic = true;- updateLocalStorageDashboardVariable(- dashboardId,- name,- value,- allSelected,- isDynamic,- );-- if (dashboardData) {- setDashboardData((prev) => {- if (prev) {- const oldVariables = prev?.data.variables;- // this is added to handle case where we have two different- // schemas for variable response- const updatedVariables = { ...oldVariables };- if (updatedVariables?.[id]) {- updatedVariables[id] = {- ...updatedVariables[id],- selectedValue: value,- allSelected,- haveCustomValuesSelected,- };- }- if (updatedVariables?.[name]) {- updatedVariables[name] = {- ...updatedVariables[name],- selectedValue: value,- allSelected,- haveCustomValuesSelected,+export const useDashboardVariableUpdate =+ (): UseDashboardVariableUpdateReturn => {+ const { dashboardId, dashboardData, setDashboardData } = useDashboardStore(+ useShallow((s) => ({+ dashboardId: s.dashboardData?.id ?? '',+ dashboardData: s.dashboardData,+ setDashboardData: s.setDashboardData,+ })),+ );+ const addDynamicVariableToPanels = useAddDynamicVariableToPanels();+ const updateMutation = useUpdateDashboard();++ const onValueUpdate = useCallback(+ (+ name: string,+ id: string,+ value: IDashboardVariable['selectedValue'],+ allSelected: boolean,+ haveCustomValuesSelected?: boolean,+ ): void => {+ if (id) {+ // Performance optimization: For dynamic variables with allSelected=true, we don't store+ // individual values in localStorage since we can always derive them from available options.+ // This makes localStorage much lighter and more efficient.+ // currently all the variables are dynamic+ const isDynamic = true;+ updateLocalStorageDashboardVariable(+ dashboardId,+ name,+ value,+ allSelected,+ isDynamic,+ );++ if (dashboardData) {+ setDashboardData((prev) => {+ if (prev) {+ const oldVariables = prev?.data.variables;+ // this is added to handle case where we have two different+ // schemas for variable response+ const updatedVariables = { ...oldVariables };+ if (updatedVariables?.[id]) {+ updatedVariables[id] = {+ ...updatedVariables[id],+ selectedValue: value,+ allSelected,+ haveCustomValuesSelected,+ };+ }+ if (updatedVariables?.[name]) {+ updatedVariables[name] = {+ ...updatedVariables[name],+ selectedValue: value,+ allSelected,+ haveCustomValuesSelected,+ };+ }+ return {+ ...prev,+ data: {+ ...prev?.data,+ variables: updatedVariables,+ },};}- return {- ...prev,- data: {- ...prev?.data,- variables: updatedVariables,- },- };- }- return prev;- });+ return prev;+ });+ }+ }+ },+ [dashboardId, dashboardData, setDashboardData],+ );++ const updateVariables = useCallback(+ (+ updatedVariablesData: IDashboardVariables,+ currentRequestedId?: string,+ widgetIds?: string[],+ applyToAll?: boolean,+ ): void => {+ if (!dashboardData) {+ return;}- }- },- [dashboardId, dashboardData, setDashboardData],- );-- const updateVariables = useCallback(- (- updatedVariablesData: IDashboardVariables,- currentRequestedId?: string,- widgetIds?: string[],- applyToAll?: boolean,- ): void => {- if (!dashboardData) {- return;- }-- const newDashboard =- (currentRequestedId &&- addDynamicVariableToPanels(- dashboardData,- updatedVariablesData[currentRequestedId || ''],- widgetIds,- applyToAll,- )) ||- dashboardData;-- updateMutation.mutateAsync(- {- id: dashboardData.id,-- data: {- ...newDashboard.data,- variables: updatedVariablesData,++ const newDashboard =+ (currentRequestedId &&+ addDynamicVariableToPanels(+ dashboardData,+ updatedVariablesData[currentRequestedId || ''],+ widgetIds,+ applyToAll,+ )) ||+ dashboardData;++ updateMutation.mutateAsync(+ {+ id: dashboardData.id,++ data: {+ ...newDashboard.data,+ variables: updatedVariablesData,+ },},- },- {- onSuccess: (updatedDashboard) => {- if (updatedDashboard.data) {- setDashboardData(updatedDashboard.data);- // notifications.success({- // message: t('variable_updated_successfully'),- // });- }+ {+ onSuccess: (updatedDashboard) => {+ if (updatedDashboard.data) {+ setDashboardData(updatedDashboard.data);+ // notifications.success({+ // message: t('variable_updated_successfully'),+ // });+ }+ },},- },- );- },- [dashboardData, addDynamicVariableToPanels, updateMutation, setDashboardData],- );-- const createVariable = useCallback(- (- name: string,- value: IDashboardVariable['selectedValue'],- // type: IDashboardVariable['type'] = 'DYNAMIC',- description = '',- source: 'logs' | 'traces' | 'metrics' | 'all sources' = 'all sources',- // widgetId?: string,- ): void => {- if (!dashboardData) {- console.warn('No dashboard selected for variable creation');- return;- }-- // Get current dashboard variables- const currentVariables = dashboardData.data.variables || {};-- // Create tableRowData like Dashboard Settings does- const tableRowData = [];- const variableOrderArr = [];- for (const [key, value] of Object.entries(currentVariables)) {- const { order, id } = value;+ );+ },+ [+ dashboardData,+ addDynamicVariableToPanels,+ updateMutation,+ setDashboardData,+ ],+ );++ const createVariable = useCallback(+ (+ name: string,+ value: IDashboardVariable['selectedValue'],+ // type: IDashboardVariable['type'] = 'DYNAMIC',+ description = '',+ source: 'logs' | 'traces' | 'metrics' | 'all sources' = 'all sources',+ // widgetId?: string,+ ): void => {+ if (!dashboardData) {+ console.warn('No dashboard selected for variable creation');+ return;+ }++ // Get current dashboard variables+ const currentVariables = dashboardData.data.variables || {};++ // Create tableRowData like Dashboard Settings does+ const tableRowData = [];+ const variableOrderArr = [];+ for (const [key, value] of Object.entries(currentVariables)) {+ const { order, id } = value;++ tableRowData.push({+ key,+ name: key,+ ...currentVariables[key],+ id,+ });+ if (order) {+ variableOrderArr.push(order);+ }+ }++ // Sort by order+ tableRowData.sort((a, b) => a.order - b.order);+ variableOrderArr.sort((a, b) => a - b);++ // Create new variable+ const nextOrder =+ variableOrderArr.length > 0 ? Math.max(...variableOrderArr) + 1 : 0;+ const newVariable: any = {+ id: uuidv4(),+ name,+ type: 'DYNAMIC' as const,+ description,+ order: nextOrder,+ selectedValue: value,+ allSelected: false,+ haveCustomValuesSelected: false,+ sort: 'ASC' as const,+ multiSelect: true,+ showALLOption: true,+ dynamicVariablesAttribute: name,+ dynamicVariablesSource: source,+ dynamicVariablesWidgetIds: [],+ queryValue: '',+ };++ // Add to tableRowDatatableRowData.push({- key,- name: key,- ...currentVariables[key],- id,+ key: newVariable.id,+ ...newVariable,+ id: newVariable.id,});- if (order) {- variableOrderArr.push(order);- }- }-- // Sort by order- tableRowData.sort((a, b) => a.order - b.order);- variableOrderArr.sort((a, b) => a - b);-- // Create new variable- const nextOrder =- variableOrderArr.length > 0 ? Math.max(...variableOrderArr) + 1 : 0;- const newVariable: any = {- id: uuidv4(),- name,- type: 'DYNAMIC' as const,- description,- order: nextOrder,- selectedValue: value,- allSelected: false,- haveCustomValuesSelected: false,- sort: 'ASC' as const,- multiSelect: true,- showALLOption: true,- dynamicVariablesAttribute: name,- dynamicVariablesSource: source,- dynamicVariablesWidgetIds: [],- queryValue: '',- };-- // Add to tableRowData- tableRowData.push({- key: newVariable.id,- ...newVariable,- id: newVariable.id,- });-- // Convert to dashboard format and update- const updatedVariables = convertVariablesToDbFormat(tableRowData);- updateVariables(updatedVariables, newVariable.id, [], false);- },- [dashboardData, updateVariables],- );-- return {- onValueUpdate,- createVariable,- updateVariables,+ // Convert to dashboard format and update+ const updatedVariables = convertVariablesToDbFormat(tableRowData);+ updateVariables(updatedVariables, newVariable.id, [], false);+ },+ [dashboardData, updateVariables],+ );++ return {+ onValueUpdate,+ createVariable,+ updateVariables,+ };};-};export default useDashboardVariableUpdate;diff --git a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/variableSelectStrategy/customVariableSelectStrategy.tsx b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/variableSelectStrategy/customVariableSelectStrategy.tsxindex 66c2e8a8e0..1fbe0fe1f5 100644--- a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/variableSelectStrategy/customVariableSelectStrategy.tsx+++ b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/variableSelectStrategy/customVariableSelectStrategy.tsx@@ -1,4 +1,5 @@import { defaultVariableSelectStrategy } from './defaultVariableSelectStrategy';import { VariableSelectStrategy } from './variableSelectStrategyTypes';-export const customVariableSelectStrategy: VariableSelectStrategy = defaultVariableSelectStrategy;+export const customVariableSelectStrategy: VariableSelectStrategy =+ defaultVariableSelectStrategy;diff --git a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/variableSelectStrategy/queryVariableSelectStrategy.tsx b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/variableSelectStrategy/queryVariableSelectStrategy.tsxindex 261f0f3158..4e3eba8b88 100644--- a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/variableSelectStrategy/queryVariableSelectStrategy.tsx+++ b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/variableSelectStrategy/queryVariableSelectStrategy.tsx@@ -1,4 +1,5 @@import { defaultVariableSelectStrategy } from './defaultVariableSelectStrategy';import { VariableSelectStrategy } from './variableSelectStrategyTypes';-export const queryVariableSelectStrategy: VariableSelectStrategy = defaultVariableSelectStrategy;+export const queryVariableSelectStrategy: VariableSelectStrategy =+ defaultVariableSelectStrategy;diff --git a/frontend/src/container/DashboardContainer/PanelTypeSelectionModal/index.tsx b/frontend/src/container/DashboardContainer/PanelTypeSelectionModal/index.tsxindex a1fc1f061f..0d31c0f9ac 100644--- a/frontend/src/container/DashboardContainer/PanelTypeSelectionModal/index.tsx+++ b/frontend/src/container/DashboardContainer/PanelTypeSelectionModal/index.tsx@@ -13,10 +13,8 @@ import { PanelTypesWithData } from './menuItems';import './PanelTypeSelectionModal.styles.scss';function PanelTypeSelectionModal(): JSX.Element {- const {- isPanelTypeSelectionModalOpen,- setIsPanelTypeSelectionModalOpen,- } = usePanelTypeSelectionModalStore();+ const { isPanelTypeSelectionModalOpen, setIsPanelTypeSelectionModalOpen } =+ usePanelTypeSelectionModalStore();const onClickHandler = (name: PANEL_TYPES) => (): void => {const id = uuid();diff --git a/frontend/src/container/DashboardContainer/__test__/DynamicVariableDefaultBehavior.test.tsx b/frontend/src/container/DashboardContainer/__test__/DynamicVariableDefaultBehavior.test.tsxindex 28ed8f5477..3dab86ccba 100644--- a/frontend/src/container/DashboardContainer/__test__/DynamicVariableDefaultBehavior.test.tsx+++ b/frontend/src/container/DashboardContainer/__test__/DynamicVariableDefaultBehavior.test.tsx@@ -279,7 +279,7 @@ describe('Dynamic Variable Default Behavior', () => {type: 'DYNAMIC',multiSelect: true,showALLOption: true,- defaultValue: (['backend', 'database'] as unknown) as string,+ defaultValue: ['backend', 'database'] as unknown as string,selectedValue: undefined,dynamicVariablesAttribute: 'service.name',dynamicVariablesSource: 'Traces',@@ -314,7 +314,7 @@ describe('Dynamic Variable Default Behavior', () => {type: 'DYNAMIC',multiSelect: true,showALLOption: true,- defaultValue: (['backend'] as unknown) as string,+ defaultValue: ['backend'] as unknown as string,selectedValue: ['frontend', 'cache'],dynamicVariablesAttribute: 'service.name',dynamicVariablesSource: 'Traces',@@ -418,7 +418,7 @@ describe('Dynamic Variable Default Behavior', () => {type: 'DYNAMIC',multiSelect: true,showALLOption: false,- defaultValue: (['database', 'cache'] as unknown) as string,+ defaultValue: ['database', 'cache'] as unknown as string,selectedValue: undefined,dynamicVariablesAttribute: 'service.name',dynamicVariablesSource: 'Traces',diff --git a/frontend/src/container/DashboardContainer/__test__/IntegrationTests.test.tsx b/frontend/src/container/DashboardContainer/__test__/IntegrationTests.test.tsxindex 1a140f16ad..08ca8d0a48 100644--- a/frontend/src/container/DashboardContainer/__test__/IntegrationTests.test.tsx+++ b/frontend/src/container/DashboardContainer/__test__/IntegrationTests.test.tsx@@ -53,7 +53,8 @@ jest.mock('providers/Dashboard/store/useDashboardStore', () => ({useDashboardStore: (): any => ({dashboardData: mockDashboard,setDashboardData: mockSetDashboardData,- updateLocalStorageDashboardVariables: mockUpdateLocalStorageDashboardVariables,+ updateLocalStorageDashboardVariables:+ mockUpdateLocalStorageDashboardVariables,}),}));diff --git a/frontend/src/container/DashboardContainer/components/DashboardHeader/DashboardBreadcrumbs.tsx b/frontend/src/container/DashboardContainer/components/DashboardHeader/DashboardBreadcrumbs.tsxindex 3940027fc1..5acc2e83e9 100644--- a/frontend/src/container/DashboardContainer/components/DashboardHeader/DashboardBreadcrumbs.tsx+++ b/frontend/src/container/DashboardContainer/components/DashboardHeader/DashboardBreadcrumbs.tsx@@ -21,7 +21,7 @@ function DashboardBreadcrumbs(): JSX.Element {? {...dashboardData.data,uuid: dashboardData.id,- }+ }: ({} as DashboardData);const { title = '', image = Base64Icons[0] } = selectedData || {};diff --git a/frontend/src/container/DashboardContainer/visualization/charts/types.ts b/frontend/src/container/DashboardContainer/visualization/charts/types.tsindex c20963beb9..8d6587d110 100644--- a/frontend/src/container/DashboardContainer/visualization/charts/types.ts+++ b/frontend/src/container/DashboardContainer/visualization/charts/types.ts@@ -41,23 +41,17 @@ interface UPlotChartDataProps {}export interface TimeSeriesChartProps- extends BaseChartProps,- UPlotBasedChartProps,- UPlotChartDataProps {+ extends BaseChartProps, UPlotBasedChartProps, UPlotChartDataProps {timezone?: Timezone;}export interface HistogramChartProps- extends BaseChartProps,- UPlotBasedChartProps,- UPlotChartDataProps {+ extends BaseChartProps, UPlotBasedChartProps, UPlotChartDataProps {isQueriesMerged?: boolean;}export interface BarChartProps- extends BaseChartProps,- UPlotBasedChartProps,- UPlotChartDataProps {+ extends BaseChartProps, UPlotBasedChartProps, UPlotChartDataProps {isStackedBarChart?: boolean;timezone?: Timezone;}diff --git a/frontend/src/container/DashboardContainer/visualization/components/ChartManager/__tests__/ChartManager.test.tsx b/frontend/src/container/DashboardContainer/visualization/components/ChartManager/__tests__/ChartManager.test.tsxindex 9b265eb664..ecaeb74292 100644--- a/frontend/src/container/DashboardContainer/visualization/components/ChartManager/__tests__/ChartManager.test.tsx+++ b/frontend/src/container/DashboardContainer/visualization/components/ChartManager/__tests__/ChartManager.test.tsx@@ -34,9 +34,9 @@ jest.mock('lib/uPlotV2/hooks/useLegendsSync', () => ({jest.mock('providers/Dashboard/store/useDashboardStore', () => ({useDashboardStore: (- selector?: (s: {- dashboardData: { locked: boolean } | undefined;- }) => { dashboardData: { locked: boolean } },+ selector?: (s: { dashboardData: { locked: boolean } | undefined }) => {+ dashboardData: { locked: boolean };+ },): { dashboardData: { locked: boolean } } => {const mockState = { dashboardData: { locked: false } };return selector ? selector(mockState) : mockState;diff --git a/frontend/src/container/DashboardContainer/visualization/components/ChartManager/__tests__/getChartManagerColumns.test.tsx b/frontend/src/container/DashboardContainer/visualization/components/ChartManager/__tests__/getChartManagerColumns.test.tsxindex dcf3664ef8..ee9a7a5fda 100644--- a/frontend/src/container/DashboardContainer/visualization/components/ChartManager/__tests__/getChartManagerColumns.test.tsx+++ b/frontend/src/container/DashboardContainer/visualization/components/ChartManager/__tests__/getChartManagerColumns.test.tsx@@ -19,7 +19,7 @@ const createMockDataset = (max: 90,stroke: '#ff0000',...overrides,- } as ExtendedChartDataset);+ }) as ExtendedChartDataset;describe('getChartManagerColumns', () => {const tableDataSet: ExtendedChartDataset[] = [diff --git a/frontend/src/container/DashboardContainer/visualization/hooks/__tests__/useBarChartStacking.test.ts b/frontend/src/container/DashboardContainer/visualization/hooks/__tests__/useBarChartStacking.test.tsindex 5e6809aeb5..3ea51be4a3 100644--- a/frontend/src/container/DashboardContainer/visualization/hooks/__tests__/useBarChartStacking.test.ts+++ b/frontend/src/container/DashboardContainer/visualization/hooks/__tests__/useBarChartStacking.test.ts@@ -7,7 +7,7 @@ import { useBarChartStacking } from '../useBarChartStacking';type MockConfig = { addHook: jest.Mock };function asConfig(c: MockConfig): UseBarChartStackingParams['config'] {- return (c as unknown) as UseBarChartStackingParams['config'];+ return c as unknown as UseBarChartStackingParams['config'];}function createMockConfig(): {@@ -74,7 +74,7 @@ function createMockConfig(): {}function createMockPlot(overrides: Partial<uPlot> = {}): uPlot {- return ({+ return {data: [[0, 1, 2],[1, 2, 3],@@ -85,7 +85,7 @@ function createMockPlot(overrides: Partial<uPlot> = {}): uPlot {addBand: jest.fn(),setData: jest.fn(),...overrides,- } as unknown) as uPlot;+ } as unknown as uPlot;}describe('useBarChartStacking', () => {diff --git a/frontend/src/container/DashboardContainer/visualization/hooks/__tests__/useScrollWidgetIntoView.test.ts b/frontend/src/container/DashboardContainer/visualization/hooks/__tests__/useScrollWidgetIntoView.test.tsindex f5e37bd7f3..ed0ea15736 100644--- a/frontend/src/container/DashboardContainer/visualization/hooks/__tests__/useScrollWidgetIntoView.test.ts+++ b/frontend/src/container/DashboardContainer/visualization/hooks/__tests__/useScrollWidgetIntoView.test.ts@@ -18,9 +18,10 @@ function createMockElement(): MockHTMLElement {}describe('useScrollWidgetIntoView', () => {- const mockedUseScrollToWidgetIdStore = useScrollToWidgetIdStore as jest.MockedFunction<- typeof useScrollToWidgetIdStore- >;+ const mockedUseScrollToWidgetIdStore =+ useScrollToWidgetIdStore as jest.MockedFunction<+ typeof useScrollToWidgetIdStore+ >;let mockElement: MockHTMLElement;let ref: React.RefObject<HTMLDivElement>;@@ -31,7 +32,7 @@ describe('useScrollWidgetIntoView', () => {mockedUseScrollToWidgetIdStore.mockImplementation((selector) =>selector(- (storeState as unknown) as Parameters<typeof selector>[0],+ storeState as unknown as Parameters<typeof selector>[0],) as ReturnType<typeof useScrollToWidgetIdStore>,);}@@ -39,9 +40,9 @@ describe('useScrollWidgetIntoView', () => {beforeEach(() => {jest.clearAllMocks();mockElement = createMockElement();- ref = ({+ ref = {current: mockElement,- } as unknown) as React.RefObject<HTMLDivElement>;+ } as unknown as React.RefObject<HTMLDivElement>;setToScrollWidgetId = jest.fn();});diff --git a/frontend/src/container/DashboardContainer/visualization/panels/HistogramPanel/__tests__/HistogramPanel.test.tsx b/frontend/src/container/DashboardContainer/visualization/panels/HistogramPanel/__tests__/HistogramPanel.test.tsxindex 0890999f8e..3d280c66a5 100644--- a/frontend/src/container/DashboardContainer/visualization/panels/HistogramPanel/__tests__/HistogramPanel.test.tsx+++ b/frontend/src/container/DashboardContainer/visualization/panels/HistogramPanel/__tests__/HistogramPanel.test.tsx@@ -125,8 +125,8 @@ function createWidget(overrides: Partial<WidgetLike> = {}): WidgetLike {describe('HistogramPanel', () => {it('renders Histogram when container has dimensions', () => {- const widget = (createWidget() as unknown) as Widgets;- const queryResponse = (createQueryResponse() as unknown) as UseQueryResult<+ const widget = createWidget() as unknown as Widgets;+ const queryResponse = createQueryResponse() as unknown as UseQueryResult<MetricQueryRangeSuccessResponse,Error>;@@ -146,10 +146,10 @@ describe('HistogramPanel', () => {});it('passes legend position and other props to Histogram', () => {- const widget = (createWidget({+ const widget = createWidget({legendPosition: LegendPosition.RIGHT,- }) as unknown) as Widgets;- const queryResponse = (createQueryResponse() as unknown) as UseQueryResult<+ }) as unknown as Widgets;+ const queryResponse = createQueryResponse() as unknown as UseQueryResult<MetricQueryRangeSuccessResponse,Error>;@@ -174,10 +174,10 @@ describe('HistogramPanel', () => {});it('renders ChartManager in full view when queries are not merged', () => {- const widget = (createWidget({+ const widget = createWidget({mergeAllActiveQueries: false,- }) as unknown) as Widgets;- const queryResponse = (createQueryResponse() as unknown) as UseQueryResult<+ }) as unknown as Widgets;+ const queryResponse = createQueryResponse() as unknown as UseQueryResult<MetricQueryRangeSuccessResponse,Error>;@@ -197,10 +197,10 @@ describe('HistogramPanel', () => {});it('does not render ChartManager when queries are merged', () => {- const widget = (createWidget({+ const widget = createWidget({mergeAllActiveQueries: true,- }) as unknown) as Widgets;- const queryResponse = (createQueryResponse() as unknown) as UseQueryResult<+ }) as unknown as Widgets;+ const queryResponse = createQueryResponse() as unknown as UseQueryResult<MetricQueryRangeSuccessResponse,Error>;diff --git a/frontend/src/container/DashboardContainer/visualization/panels/TimeSeriesPanel/__tests__/utils.test.ts b/frontend/src/container/DashboardContainer/visualization/panels/TimeSeriesPanel/__tests__/utils.test.tsindex 39216db607..4131c24d48 100644--- a/frontend/src/container/DashboardContainer/visualization/panels/TimeSeriesPanel/__tests__/utils.test.ts+++ b/frontend/src/container/DashboardContainer/visualization/panels/TimeSeriesPanel/__tests__/utils.test.ts@@ -45,7 +45,7 @@ const createApiResponse = (data: {result,resultType: 'matrix',- newResult: (null as unknown) as MetricRangePayloadV3,+ newResult: null as unknown as MetricRangePayloadV3,},});@@ -57,7 +57,7 @@ const createWidget = (overrides: Partial<Widgets> = {}): Widgets =>thresholds: [],customLegendColors: {},...overrides,- } as Widgets);+ }) as Widgets;const defaultTimezone = {name: 'UTC',@@ -173,7 +173,7 @@ describe('TimeSeriesPanel utils', () => {const builder = prepareUPlotConfig({...baseParams,apiResponse,- currentQuery: (null as unknown) as Query,+ currentQuery: null as unknown as Query,});expect(getLabelNameMock).toHaveBeenCalled();diff --git a/frontend/src/container/DashboardContainer/visualization/panels/utils/__tests__/baseConfigBuilder.test.ts b/frontend/src/container/DashboardContainer/visualization/panels/utils/__tests__/baseConfigBuilder.test.tsindex 4308b4fce1..fb6fb06afd 100644--- a/frontend/src/container/DashboardContainer/visualization/panels/utils/__tests__/baseConfigBuilder.test.ts+++ b/frontend/src/container/DashboardContainer/visualization/panels/utils/__tests__/baseConfigBuilder.test.ts@@ -53,7 +53,7 @@ const createApiResponse = (({data: { result: [], resultType: 'matrix', newResult: null },...overrides,- } as MetricRangePayloadProps);+ }) as MetricRangePayloadProps;const baseProps = {...createBaseConfigBuilderProps(),@@ -145,8 +145,9 @@ describe('buildBaseConfig', () => {});it('adds onClick plugin when onClick is a function', () => {- const onClickPlugin = jest.requireMock('lib/uPlotLib/plugins/onClickPlugin')- .default;+ const onClickPlugin = jest.requireMock(+ 'lib/uPlotLib/plugins/onClickPlugin',+ ).default;const onClick = jest.fn();buildBaseConfig({@@ -162,8 +163,9 @@ describe('buildBaseConfig', () => {});it('does not add onClick plugin when onClick is not a function', () => {- const onClickPlugin = jest.requireMock('lib/uPlotLib/plugins/onClickPlugin')- .default;+ const onClickPlugin = jest.requireMock(+ 'lib/uPlotLib/plugins/onClickPlugin',+ ).default;const builder = buildBaseConfig({...baseProps,diff --git a/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx b/frontend/src/container/ExplorerOptions/ExplorerOptions.tsxindex d914d0ea96..6a0809d65b 100644--- a/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx+++ b/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx@@ -290,8 +290,9 @@ function ExplorerOptions({const viewName = useGetSearchQueryParam(QueryParams.viewName) || '';const viewKey = useGetSearchQueryParam(QueryParams.viewKey) || '';- const extraData = viewsData?.data?.data?.find((view) => view.id === viewKey)- ?.extraData;+ const extraData = viewsData?.data?.data?.find(+ (view) => view.id === viewKey,+ )?.extraData;const extraDataColor = extraData ? JSON.parse(extraData).color : '';const rgbaColor = generateRGBAFromHex(@@ -345,20 +346,18 @@ function ExplorerOptions({format: options?.format,maxLines: options?.maxLines,fontSize: options?.fontSize,- }+ }: undefined,);- const {- mutateAsync: updateViewAsync,- isLoading: isViewUpdating,- } = useUpdateView({- compositeQuery,- viewKey,- extraData: updatedExtraData,- sourcePage: isMeterExplorer ? 'meter' : sourcepage,- viewName,- });+ const { mutateAsync: updateViewAsync, isLoading: isViewUpdating } =+ useUpdateView({+ compositeQuery,+ viewKey,+ extraData: updatedExtraData,+ sourcePage: isMeterExplorer ? 'meter' : sourcepage,+ viewName,+ });const showErrorNotification = (err: Error): void => {notifications.error({@@ -585,18 +584,16 @@ function ExplorerOptions({options,);- const {- isLoading: isSaveViewLoading,- mutateAsync: saveViewAsync,- } = useSaveView({- viewName: newViewName || '',- compositeQuery,- sourcePage: sourcepage,- extraData: JSON.stringify({- color,- selectColumns: options.selectColumns,- }),- });+ const { isLoading: isSaveViewLoading, mutateAsync: saveViewAsync } =+ useSaveView({+ viewName: newViewName || '',+ compositeQuery,+ sourcePage: sourcepage,+ extraData: JSON.stringify({+ color,+ selectColumns: options.selectColumns,+ }),+ });const onSaveHandler = (): void => {saveNewViewHandler({@@ -612,7 +609,7 @@ function ExplorerOptions({format: options?.format,maxLines: options?.maxLines,fontSize: options?.fontSize,- }+ }: {}),}),notifications,@@ -662,10 +659,8 @@ function ExplorerOptions({const isEditDeleteSupported = allowedRoles.includes(user.role as string);- const [- isRecentlyUsedSavedViewSelected,- setIsRecentlyUsedSavedViewSelected,- ] = useState(false);+ const [isRecentlyUsedSavedViewSelected, setIsRecentlyUsedSavedViewSelected] =+ useState(false);useEffect(() => {// If the query is not the default query, don't set the recently used saved view@@ -758,7 +753,7 @@ function ExplorerOptions({suffixIcon={null}onSelect={(e): void => {const selectedQuery = splitedQueries.find(- (query) => query.id === ((e as unknown) as string),+ (query) => query.id === (e as unknown as string),);if (selectedQuery) {onCreateAlertsHandler(selectedQuery);@@ -813,7 +808,7 @@ function ExplorerOptions({suffixIcon={null}onSelect={(e): void => {const selectedQuery = splitedQueries.find(- (query) => query.id === ((e as unknown) as string),+ (query) => query.id === (e as unknown as string),);if (selectedQuery) {setQueryToExport(() => {diff --git a/frontend/src/container/ExplorerOptions/__tests__/ExplorerOptionWrapper.test.tsx b/frontend/src/container/ExplorerOptions/__tests__/ExplorerOptionWrapper.test.tsxindex 6515d779b7..f9792819f5 100644--- a/frontend/src/container/ExplorerOptions/__tests__/ExplorerOptionWrapper.test.tsx+++ b/frontend/src/container/ExplorerOptions/__tests__/ExplorerOptionWrapper.test.tsx@@ -111,7 +111,7 @@ describe('ExplorerOptionWrapper', () => {jest.clearAllMocks();mockGetExplorerToolBarVisibility.mockReturnValue(true);// Mock useUpdateDashboard to return a mutation object- mockUseUpdateDashboard.mockReturnValue(({+ mockUseUpdateDashboard.mockReturnValue({mutate: jest.fn(),mutateAsync: jest.fn(),isLoading: false,@@ -120,15 +120,15 @@ describe('ExplorerOptionWrapper', () => {data: undefined,error: null,reset: jest.fn(),- } as unknown) as ReturnType<typeof useUpdateDashboard>);+ } as unknown as ReturnType<typeof useUpdateDashboard>);});it('should navigate to alert creation page when "Create an Alert" is clicked in logs-explorer', async () => {const user = userEvent.setup({ pointerEventsCheck: 0 });const mockPush = jest.fn();- mockUseHistory.mockReturnValue(({+ mockUseHistory.mockReturnValue({push: mockPush,- } as unknown) as ReturnType<typeof useHistory>);+ } as unknown as ReturnType<typeof useHistory>);renderExplorerOptionWrapper({ sourcepage: DataSource.LOGS });diff --git a/frontend/src/container/ExportPanel/ExportPanelContainer.tsx b/frontend/src/container/ExportPanel/ExportPanelContainer.tsxindex 4de0a0e936..0e4a733574 100644--- a/frontend/src/container/ExportPanel/ExportPanelContainer.tsx+++ b/frontend/src/container/ExportPanel/ExportPanelContainer.tsx@@ -34,20 +34,18 @@ function ExportPanelContainer({const { showErrorModal } = useErrorModal();- const {- mutate: createNewDashboard,- isLoading: createDashboardLoading,- } = useMutation(createDashboard, {- onSuccess: (data) => {- if (data.data) {- onExport(data?.data, true);- }- refetch();- },- onError: (error) => {- showErrorModal(error as APIError);- },- });+ const { mutate: createNewDashboard, isLoading: createDashboardLoading } =+ useMutation(createDashboard, {+ onSuccess: (data) => {+ if (data.data) {+ onExport(data?.data, true);+ }+ refetch();+ },+ onError: (error) => {+ showErrorModal(error as APIError);+ },+ });const options = useMemo(() => getSelectOptions(data?.data || []), [data]);diff --git a/frontend/src/container/FormAlertChannels/Settings/Email.tsx b/frontend/src/container/FormAlertChannels/Settings/Email.tsxindex db96cd4e24..6450fb6e46 100644--- a/frontend/src/container/FormAlertChannels/Settings/Email.tsx+++ b/frontend/src/container/FormAlertChannels/Settings/Email.tsx@@ -7,14 +7,14 @@ import { EmailChannel } from '../../CreateAlertChannels/config';function EmailForm({ setSelectedConfig }: EmailFormProps): JSX.Element {const { t } = useTranslation('channels');- const handleInputChange = (field: string) => (- event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,- ): void => {- setSelectedConfig((value) => ({- ...value,- [field]: event.target.value,- }));- };+ const handleInputChange =+ (field: string) =>+ (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>): void => {+ setSelectedConfig((value) => ({+ ...value,+ [field]: event.target.value,+ }));+ };return (<>diff --git a/frontend/src/container/FormAlertChannels/Settings/Opsgenie.tsx b/frontend/src/container/FormAlertChannels/Settings/Opsgenie.tsxindex f632c165ea..ee700ca42c 100644--- a/frontend/src/container/FormAlertChannels/Settings/Opsgenie.tsx+++ b/frontend/src/container/FormAlertChannels/Settings/Opsgenie.tsx@@ -9,14 +9,14 @@ const { TextArea } = Input;function OpsgenieForm({ setSelectedConfig }: OpsgenieFormProps): JSX.Element {const { t } = useTranslation('channels');- const handleInputChange = (field: string) => (- event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,- ): void => {- setSelectedConfig((value) => ({- ...value,- [field]: event.target.value,- }));- };+ const handleInputChange =+ (field: string) =>+ (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>): void => {+ setSelectedConfig((value) => ({+ ...value,+ [field]: event.target.value,+ }));+ };return (<>diff --git a/frontend/src/container/FormAlertRules/BasicInfo.tsx b/frontend/src/container/FormAlertRules/BasicInfo.tsxindex 2be3d44162..920a347682 100644--- a/frontend/src/container/FormAlertRules/BasicInfo.tsx+++ b/frontend/src/container/FormAlertRules/BasicInfo.tsx@@ -59,10 +59,8 @@ function BasicInfo({user.role,);- const [- shouldBroadCastToAllChannels,- setShouldBroadCastToAllChannels,- ] = useState(false);+ const [shouldBroadCastToAllChannels, setShouldBroadCastToAllChannels] =+ useState(false);useEffect(() => {const hasPreferredChannels =diff --git a/frontend/src/container/FormAlertRules/ChartPreview/index.tsx b/frontend/src/container/FormAlertRules/ChartPreview/index.tsxindex a90330bbea..209daa598f 100644--- a/frontend/src/container/FormAlertRules/ChartPreview/index.tsx+++ b/frontend/src/container/FormAlertRules/ChartPreview/index.tsx@@ -123,10 +123,11 @@ function ChartPreview({});const { currentQuery } = useQueryBuilder();- const { minTime, maxTime, selectedTime: globalSelectedInterval } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ minTime,+ maxTime,+ selectedTime: globalSelectedInterval,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const { featureFlags } = useAppContext();@@ -221,12 +222,11 @@ function ChartPreview({// Initialize graph visibility from localStorageuseEffect(() => {if (queryResponse?.data?.payload?.data?.result) {- const {- graphVisibilityStates: localStoredVisibilityState,- } = getLocalStorageGraphVisibilityState({- apiResponse: queryResponse.data.payload.data.result,- name: 'alert-chart-preview',- });+ const { graphVisibilityStates: localStoredVisibilityState } =+ getLocalStorageGraphVisibilityState({+ apiResponse: queryResponse.data.payload.data.result,+ name: 'alert-chart-preview',+ });setGraphVisibility(localStoredVisibilityState);}}, [queryResponse?.data?.payload?.data?.result]);diff --git a/frontend/src/container/FormAlertRules/ChartPreview/utils.ts b/frontend/src/container/FormAlertRules/ChartPreview/utils.tsindex d79ebf98d2..69707c0f59 100644--- a/frontend/src/container/FormAlertRules/ChartPreview/utils.ts+++ b/frontend/src/container/FormAlertRules/ChartPreview/utils.ts@@ -133,7 +133,7 @@ export const getThresholds = (threshold.thresholdValue,threshold.unit,yAxisUnit,- )})`,+ )})`,thresholdUnit: threshold.unit,thresholdColor: threshold.color || Color.TEXT_SAKURA_500,};diff --git a/frontend/src/container/FormAlertRules/index.tsx b/frontend/src/container/FormAlertRules/index.tsxindex 1741974e7b..11dc64f71e 100644--- a/frontend/src/container/FormAlertRules/index.tsx+++ b/frontend/src/container/FormAlertRules/index.tsx@@ -127,9 +127,8 @@ function FormAlertRules({handleSetConfig,redirectWithQueryBuilderData,} = useQueryBuilder();- const { matchType, op, target, targetUnit } = usePrefillAlertConditions(- stagedQuery,- );+ const { matchType, op, target, targetUnit } =+ usePrefillAlertConditions(stagedQuery);useEffect(() => {handleSetConfig(panelType || PANEL_TYPES.TIME_SERIES, dataSource);@@ -172,9 +171,10 @@ function FormAlertRules({}, [currentQuery.unit]);// initQuery contains initial query when component was mounted- const initQuery = useMemo(() => initialValue.condition.compositeQuery, [- initialValue,- ]);+ const initQuery = useMemo(+ () => initialValue.condition.compositeQuery,+ [initialValue],+ );const queryOptions = useMemo(() => {const involvedQueriesInTraceOperator = getInvolvedQueriesInTraceOperator(@@ -808,9 +808,10 @@ function FormAlertRules({featureFlags?.find((flag) => flag.name === FeatureKeys.ANOMALY_DETECTION)?.active || false;- const source = useMemo(() => urlQuery.get(QueryParams.source) as YAxisSource, [- urlQuery,- ]);+ const source = useMemo(+ () => urlQuery.get(QueryParams.source) as YAxisSource,+ [urlQuery],+ );// Only update automatically when creating a new metrics-based alert ruleconst shouldUpdateYAxisUnit = useMemo(() => {diff --git a/frontend/src/container/GantChart/Span/index.tsx b/frontend/src/container/GantChart/Span/index.tsxindex 2c921273ff..aaf7aca593 100644--- a/frontend/src/container/GantChart/Span/index.tsx+++ b/frontend/src/container/GantChart/Span/index.tsx@@ -22,15 +22,8 @@ interface SpanLengthProps {}function Span(props: SpanLengthProps): JSX.Element {- const {- width,- leftOffset,- bgColor,- inMsCount,- startTime,- name,- globalStart,- } = props;+ const { width, leftOffset, bgColor, inMsCount, startTime, name, globalStart } =+ props;const isDarkMode = useIsDarkMode();const { time, timeUnitName } = convertTimeToRelevantUnit(inMsCount);diff --git a/frontend/src/container/GantChart/utils.ts b/frontend/src/container/GantChart/utils.tsindex 4aebf8cfb9..55dae0519b 100644--- a/frontend/src/container/GantChart/utils.ts+++ b/frontend/src/container/GantChart/utils.ts@@ -44,9 +44,10 @@ export const getMetaDataFromSpanTree = (};};-export function getTopLeftFromBody(- elem: HTMLElement,-): { top: number; left: number } {+export function getTopLeftFromBody(elem: HTMLElement): {+ top: number;+ left: number;+} {const box = elem.getBoundingClientRect();const { body } = document;diff --git a/frontend/src/container/GeneralSettings/GeneralSettings.tsx b/frontend/src/container/GeneralSettings/GeneralSettings.tsxindex 6f399981a5..6ff6c37f72 100644--- a/frontend/src/container/GeneralSettings/GeneralSettings.tsx+++ b/frontend/src/container/GeneralSettings/GeneralSettings.tsx@@ -62,12 +62,10 @@ function GeneralSettings({const [modalTraces, setModalTraces] = useState<boolean>(false);const [modalLogs, setModalLogs] = useState<boolean>(false);- const [postApiLoadingMetrics, setPostApiLoadingMetrics] = useState<boolean>(- false,- );- const [postApiLoadingTraces, setPostApiLoadingTraces] = useState<boolean>(- false,- );+ const [postApiLoadingMetrics, setPostApiLoadingMetrics] =+ useState<boolean>(false);+ const [postApiLoadingTraces, setPostApiLoadingTraces] =+ useState<boolean>(false);const [postApiLoadingLogs, setPostApiLoadingLogs] = useState<boolean>(false);const [availableDisks] = useState<IDiskType[]>(getAvailableDiskPayload);@@ -79,9 +77,8 @@ function GeneralSettings({tracesTtlValuesPayload,);- const [logsCurrentTTLValues, setLogsCurrentTTLValues] = useState(- logsTtlValuesPayload,- );+ const [logsCurrentTTLValues, setLogsCurrentTTLValues] =+ useState(logsTtlValuesPayload);const { user, activeLicense } = useAppContext();@@ -90,31 +87,19 @@ function GeneralSettings({user.role,);- const [- metricsTotalRetentionPeriod,- setMetricsTotalRetentionPeriod,- ] = useState<NumberOrNull>(null);- const [- metricsS3RetentionPeriod,- setMetricsS3RetentionPeriod,- ] = useState<NumberOrNull>(null);- const [- tracesTotalRetentionPeriod,- setTracesTotalRetentionPeriod,- ] = useState<NumberOrNull>(null);- const [- tracesS3RetentionPeriod,- setTracesS3RetentionPeriod,- ] = useState<NumberOrNull>(null);-- const [- logsTotalRetentionPeriod,- setLogsTotalRetentionPeriod,- ] = useState<NumberOrNull>(null);- const [- logsS3RetentionPeriod,- setLogsS3RetentionPeriod,- ] = useState<NumberOrNull>(null);+ const [metricsTotalRetentionPeriod, setMetricsTotalRetentionPeriod] =+ useState<NumberOrNull>(null);+ const [metricsS3RetentionPeriod, setMetricsS3RetentionPeriod] =+ useState<NumberOrNull>(null);+ const [tracesTotalRetentionPeriod, setTracesTotalRetentionPeriod] =+ useState<NumberOrNull>(null);+ const [tracesS3RetentionPeriod, setTracesS3RetentionPeriod] =+ useState<NumberOrNull>(null);++ const [logsTotalRetentionPeriod, setLogsTotalRetentionPeriod] =+ useState<NumberOrNull>(null);+ const [logsS3RetentionPeriod, setLogsS3RetentionPeriod] =+ useState<NumberOrNull>(null);useEffect(() => {if (metricsCurrentTTLValues) {diff --git a/frontend/src/container/GeneralSettings/Retention.tsx b/frontend/src/container/GeneralSettings/Retention.tsxindex 48a08a6ac5..8b1027ad31 100644--- a/frontend/src/container/GeneralSettings/Retention.tsx+++ b/frontend/src/container/GeneralSettings/Retention.tsx@@ -55,10 +55,8 @@ function Retention({);// Convert the hours value using only the available units- const {- value: initialValue,- timeUnitValue: initialTimeUnitValue,- } = convertHoursValueToRelevantUnit(Number(retentionValue), availableUnits);+ const { value: initialValue, timeUnitValue: initialTimeUnitValue } =+ convertHoursValueToRelevantUnit(Number(retentionValue), availableUnits);const [selectedTimeUnit, setSelectTimeUnit] = useState(initialTimeUnitValue);const [selectedValue, setSelectedValue] = useState<number | null>(diff --git a/frontend/src/container/GeneralSettings/StatusMessage.tsx b/frontend/src/container/GeneralSettings/StatusMessage.tsxindex 1efd1f507f..6b884e78a3 100644--- a/frontend/src/container/GeneralSettings/StatusMessage.tsx+++ b/frontend/src/container/GeneralSettings/StatusMessage.tsx@@ -33,14 +33,14 @@ function StatusMessage({s3_retention && s3_retention !== -1? t('status_message.s3_part', {s3_retention: convertHoursValueToRelevantUnitString(s3_retention),- })+ }): '';const statusMessage =total_retention && total_retention !== -1? t(`status_message.${status}`, {total_retention: convertHoursValueToRelevantUnitString(total_retention),s3_part: s3Part,- })+ }): null;return statusMessage ? (diff --git a/frontend/src/container/GridCardLayout/DashboardEmptyState/DashboardEmptyState.tsx b/frontend/src/container/GridCardLayout/DashboardEmptyState/DashboardEmptyState.tsxindex 048a4d6f29..36451cfc60 100644--- a/frontend/src/container/GridCardLayout/DashboardEmptyState/DashboardEmptyState.tsx+++ b/frontend/src/container/GridCardLayout/DashboardEmptyState/DashboardEmptyState.tsx@@ -31,9 +31,8 @@ export default function DashboardEmptyState(): JSX.Element {const isDashboardLocked = useDashboardStore(selectIsDashboardLocked);const variablesSettingsTabHandle = useRef<VariablesSettingsTab>(null);- const [isSettingsDrawerOpen, setIsSettingsDrawerOpen] = useState<boolean>(- false,- );+ const [isSettingsDrawerOpen, setIsSettingsDrawerOpen] =+ useState<boolean>(false);const { user } = useAppContext();let permissions: ComponentTypes[] = ['add_panel'];@@ -104,7 +103,7 @@ export default function DashboardEmptyState(): JSX.Element {Give it a name, add description, tags and variables</Typography.Text></div>- {/* This Empty State needs to be consolidated. The SettingsDrawer should be global to the+ {/* This Empty State needs to be consolidated. The SettingsDrawer should be global to thewhole dashboard page instead of confined to this Empty State */}<Buttontype="text"diff --git a/frontend/src/container/GridCardLayout/GridCard/FullView/contants.ts b/frontend/src/container/GridCardLayout/GridCard/FullView/contants.tsindex 698d9e6ffa..4b9fd59b55 100644--- a/frontend/src/container/GridCardLayout/GridCard/FullView/contants.ts+++ b/frontend/src/container/GridCardLayout/GridCard/FullView/contants.ts@@ -19,14 +19,15 @@ export const ColumnsTitle = {[ColumnsKeyAndDataIndex.Min]: 'Min',};-export const PANEL_TYPES_VS_FULL_VIEW_TABLE: PanelTypeAndGraphManagerVisibilityProps = {- TIME_SERIES: true,- VALUE: false,- TABLE: false,- LIST: false,- TRACE: false,- BAR: true,- PIE: false,- HISTOGRAM: false,- EMPTY_WIDGET: false,-};+export const PANEL_TYPES_VS_FULL_VIEW_TABLE: PanelTypeAndGraphManagerVisibilityProps =+ {+ TIME_SERIES: true,+ VALUE: false,+ TABLE: false,+ LIST: false,+ TRACE: false,+ BAR: true,+ PIE: false,+ HISTOGRAM: false,+ EMPTY_WIDGET: false,+ };diff --git a/frontend/src/container/GridCardLayout/GridCard/FullView/index.tsx b/frontend/src/container/GridCardLayout/GridCard/FullView/index.tsxindex 1df216feea..a5d2b163c5 100644--- a/frontend/src/container/GridCardLayout/GridCard/FullView/index.tsx+++ b/frontend/src/container/GridCardLayout/GridCard/FullView/index.tsx@@ -80,10 +80,11 @@ function FullView({enableDrillDown = false,}: FullViewProps): JSX.Element {const { safeNavigate } = useSafeNavigate();- const { selectedTime: globalSelectedTime, minTime, maxTime } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ selectedTime: globalSelectedTime,+ minTime,+ maxTime,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const urlQuery = useUrlQuery();const fullViewRef = useRef<HTMLDivElement>(null);@@ -160,18 +161,14 @@ function FullView({};});- const {- drilldownQuery,- dashboardEditView,- handleResetQuery,- showResetQuery,- } = useDrilldown({- enableDrillDown,- widget,- setRequestData,- dashboardData,- selectedPanelType,- });+ const { drilldownQuery, dashboardEditView, handleResetQuery, showResetQuery } =+ useDrilldown({+ enableDrillDown,+ widget,+ setRequestData,+ dashboardData,+ selectedPanelType,+ });useEffect(() => {const timeRange =@@ -258,12 +255,11 @@ function FullView({>(Array(response.data?.payload?.data?.result?.length).fill(true));useEffect(() => {- const {- graphVisibilityStates: localStoredVisibilityState,- } = getLocalStorageGraphVisibilityState({- apiResponse: response.data?.payload.data.result || [],- name: originalName,- });+ const { graphVisibilityStates: localStoredVisibilityState } =+ getLocalStorageGraphVisibilityState({+ apiResponse: response.data?.payload.data.result || [],+ name: originalName,+ });setGraphsVisibilityStates(localStoredVisibilityState);}, [originalName, response.data?.payload.data.result]);diff --git a/frontend/src/container/GridCardLayout/GridCard/FullView/styles.ts b/frontend/src/container/GridCardLayout/GridCard/FullView/styles.tsindex b15162aa9f..02da422241 100644--- a/frontend/src/container/GridCardLayout/GridCard/FullView/styles.ts+++ b/frontend/src/container/GridCardLayout/GridCard/FullView/styles.ts@@ -24,7 +24,7 @@ export const TimeContainer = styled.div<Props>`$panelType === PANEL_TYPES.TABLE? css`margin-bottom: 1rem;- `+ `: css``}.time-container {diff --git a/frontend/src/container/GridCardLayout/GridCard/FullView/useDrilldown.tsx b/frontend/src/container/GridCardLayout/GridCard/FullView/useDrilldown.tsxindex 95dd16cd77..2c03e1e84c 100644--- a/frontend/src/container/GridCardLayout/GridCard/FullView/useDrilldown.tsx+++ b/frontend/src/container/GridCardLayout/GridCard/FullView/useDrilldown.tsx@@ -66,7 +66,7 @@ const useDrilldown = ({panelType: selectedPanelType,dashboardId: dashboardData?.id || '',widgetId: widget.id,- })+ }): '';const showResetQuery = useMemo(diff --git a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsxindex c8cfb3d68a..6481716c0e 100644--- a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx+++ b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx@@ -81,10 +81,8 @@ function WidgetGraphComponent({);const graphRef = useRef<HTMLDivElement>(null);- const [- currentGraphRef,- setCurrentGraphRef,- ] = useState<RefObject<HTMLDivElement> | null>(graphRef);+ const [currentGraphRef, setCurrentGraphRef] =+ useState<RefObject<HTMLDivElement> | null>(graphRef);useEffect(() => {if (!lineChartRef.current) {@@ -101,12 +99,8 @@ function WidgetGraphComponent({const navigateToExplorerPages = useNavigateToExplorerPages();- const {- setLayouts,- dashboardData,- setDashboardData,- setColumnWidths,- } = useDashboardStore();+ const { setLayouts, dashboardData, setDashboardData, setColumnWidths } =+ useDashboardStore();const onColumnWidthsChange = useCallback((widths: Record<string, number>) => {@@ -264,12 +258,11 @@ function WidgetGraphComponent({existingSearchParams.delete(QueryParams.graphType);const updatedQueryParams = Object.fromEntries(existingSearchParams.entries());if (queryResponse.data?.payload) {- const {- graphVisibilityStates: localStoredVisibilityState,- } = getLocalStorageGraphVisibilityState({- apiResponse: queryResponse.data?.payload?.data?.result,- name: widget.id,- });+ const { graphVisibilityStates: localStoredVisibilityState } =+ getLocalStorageGraphVisibilityState({+ apiResponse: queryResponse.data?.payload?.data?.result,+ name: widget.id,+ });setGraphVisibility(localStoredVisibilityState);}safeNavigate({diff --git a/frontend/src/container/GridCardLayout/GridCard/index.tsx b/frontend/src/container/GridCardLayout/GridCard/index.tsxindex 37d0c5fd8d..1e814ed727 100644--- a/frontend/src/container/GridCardLayout/GridCard/index.tsx+++ b/frontend/src/container/GridCardLayout/GridCard/index.tsx@@ -65,9 +65,8 @@ function GridCardGraph({}: GridCardGraphProps): JSX.Element {const dispatch = useDispatch();const [errorMessage, setErrorMessage] = useState<string>();- const [isInternalServerError, setIsInternalServerError] = useState<boolean>(- false,- );+ const [isInternalServerError, setIsInternalServerError] =+ useState<boolean>(false);const queryRangeCalledRef = useRef(false);useEffect(() => {@@ -233,7 +232,7 @@ function GridCardGraph({return { ...acc, [id]: variable.selectedValue };}return acc;- }, {})+ }, {}): {},...(customTimeRange && customTimeRange.startTime && customTimeRange.endTime? [customTimeRange.startTime, customTimeRange.endTime]diff --git a/frontend/src/container/GridCardLayout/GridCard/utils.ts b/frontend/src/container/GridCardLayout/GridCard/utils.tsindex 80f64dac11..c8a8cc8d8d 100644--- a/frontend/src/container/GridCardLayout/GridCard/utils.ts+++ b/frontend/src/container/GridCardLayout/GridCard/utils.ts@@ -78,7 +78,8 @@ export const getLocalStorageGraphVisibilityState = ({newGraphVisibilityStates[i + 1] = item.dataIndex[index].show;}});- visibilityStateAndLegendEntry.graphVisibilityStates = newGraphVisibilityStates;+ visibilityStateAndLegendEntry.graphVisibilityStates =+ newGraphVisibilityStates;}});}@@ -128,7 +129,8 @@ export const getGraphVisibilityStateOnDataChange = ({}}});- visibilityStateAndLegendEntry.graphVisibilityStates = newGraphVisibilityStates;+ visibilityStateAndLegendEntry.graphVisibilityStates =+ newGraphVisibilityStates;}});}@@ -171,9 +173,7 @@ interface HandleGraphClickParams {metric?: { [key: string]: string };queryData?: { queryName: string; inFocusOrNot: boolean };widget: Widgets;- navigateToExplorerPages: (- props: NavigateToExplorerPagesProps,- ) => Promise<{+ navigateToExplorerPages: (props: NavigateToExplorerPagesProps) => Promise<{[queryName: string]: {filters: TagFilterItem[];dataSource?: string;@@ -221,12 +221,12 @@ export const handleGraphClick = async ({(result[key].dataSource as DataSource) === DataSource.TRACES? 'Traces': 'Logs'- }`+ }`: `View ${(result[key].dataSource as DataSource) === DataSource.TRACES? 'Traces': 'Logs'- }: ${key}`,+ }: ${key}`,onClick: (): void =>navigateToExplorer({filters: [...result[key].filters, ...(customFilters || [])],diff --git a/frontend/src/container/GridCardLayout/GridCardLayout.tsx b/frontend/src/container/GridCardLayout/GridCardLayout.tsxindex f883e15151..450e595fbd 100644--- a/frontend/src/container/GridCardLayout/GridCardLayout.tsx+++ b/frontend/src/container/GridCardLayout/GridCardLayout.tsx@@ -197,9 +197,8 @@ function GraphLayout(props: GraphLayoutProps): JSX.Element {const handleLayoutChange = (layout: Layout[]): void => {const filterLayout = removeUndefinedValuesFromLayout(layout);- const filterDashboardLayout = removeUndefinedValuesFromLayout(- dashboardLayout,- );+ const filterDashboardLayout =+ removeUndefinedValuesFromLayout(dashboardLayout);if (!isEqual(filterLayout, filterDashboardLayout)) {const updatedLayout = sortLayout(layout);setDashboardLayout(updatedLayout);diff --git a/frontend/src/container/GridCardLayout/WidgetHeader/__tests__/WidgetHeader.test.tsx b/frontend/src/container/GridCardLayout/WidgetHeader/__tests__/WidgetHeader.test.tsxindex 2f8a38a730..020908afa9 100644--- a/frontend/src/container/GridCardLayout/WidgetHeader/__tests__/WidgetHeader.test.tsx+++ b/frontend/src/container/GridCardLayout/WidgetHeader/__tests__/WidgetHeader.test.tsx@@ -139,7 +139,7 @@ const mockWidget: Widgets = {selectedTracesFields: [],};-const mockQueryResponse = ({+const mockQueryResponse = {data: {payload: {data: {@@ -155,7 +155,7 @@ const mockQueryResponse = ({isError: false,error: null,isFetching: false,-} as unknown) as UseQueryResult<+} as unknown as UseQueryResult<SuccessResponse<MetricRangePayloadProps, unknown> & {warning?: Warning;},@@ -322,7 +322,7 @@ describe('WidgetHeader', () => {url: 'https://example.com',warnings: [{ message: 'Test warning' }],} as Warning,- }+ }: undefined;const warningResponse = {diff --git a/frontend/src/container/GridCardLayout/styles.ts b/frontend/src/container/GridCardLayout/styles.tsindex b3da7f6814..6719fdad63 100644--- a/frontend/src/container/GridCardLayout/styles.ts+++ b/frontend/src/container/GridCardLayout/styles.ts@@ -31,10 +31,10 @@ export const Card = styled(CardComponent)<CardProps>`$panelType === PANEL_TYPES.TABLE? css`height: 100%;- `+ `: css`height: calc(100% - 30px);- `}+ `}padding: 0;}`;diff --git a/frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts b/frontend/src/container/GridCardLayout/useGraphClickToShowButton.tsindex 693f17e4fe..b29bfbbfc3 100644--- a/frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts+++ b/frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts@@ -157,15 +157,8 @@ export const useGraphClickToShowButton = ({return useCallback((props: GraphClickProps) => {cleanup();- const {- xValue,- yValue,- mouseX,- mouseY,- metric,- queryData,- menuItems,- } = props;+ const { xValue, yValue, mouseX, mouseY, metric, queryData, menuItems } =+ props;if (isButtonEnabled &&diff --git a/frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts b/frontend/src/container/GridCardLayout/useNavigateToExplorerPages.tsindex e57e38f443..20f2b10c9d 100644--- a/frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts+++ b/frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts@@ -38,7 +38,7 @@ const createGroupByFilters = (op: '=',value,},- ]+ ]: [];}).flat();diff --git a/frontend/src/container/GridPanelSwitch/index.tsx b/frontend/src/container/GridPanelSwitch/index.tsxindex c2dd57b197..a76f496c2a 100644--- a/frontend/src/container/GridPanelSwitch/index.tsx+++ b/frontend/src/container/GridPanelSwitch/index.tsx@@ -60,10 +60,10 @@ const GridPanelSwitch = forwardRef<const Component = getComponentForPanelType(panelType, dataSource) as FC<PropsTypePropsMap[typeof panelType]>;- const componentProps = useMemo(() => currentProps[panelType], [- panelType,- currentProps,- ]);+ const componentProps = useMemo(+ () => currentProps[panelType],+ [panelType, currentProps],+ );if (!Component || !componentProps) {return null;diff --git a/frontend/src/container/GridTableComponent/index.tsx b/frontend/src/container/GridTableComponent/index.tsxindex e585d5c67b..c7b6f46ad4 100644--- a/frontend/src/container/GridTableComponent/index.tsx+++ b/frontend/src/container/GridTableComponent/index.tsx@@ -58,7 +58,7 @@ function GridTableComponent({// create columns and dataSource in the ui friendly structure// use the query from the widget here to extract the legend informationconst { columns: allColumns, dataSource: originalDataSource } = useMemo(- () => createColumnsAndDataSource((data as unknown) as TableData, query),+ () => createColumnsAndDataSource(data as unknown as TableData, query),[query, data],);@@ -96,39 +96,37 @@ function GridTableComponent({return mutateDataSource;}- mutateDataSource = mutateDataSource.map(- (val): RowData => {- const newValue = { ...val };- Object.keys(val).forEach((k) => {- const unit = getColumnUnit(k, columnUnits);+ mutateDataSource = mutateDataSource.map((val): RowData => {+ const newValue = { ...val };+ Object.keys(val).forEach((k) => {+ const unit = getColumnUnit(k, columnUnits);- if (unit) {- // the check below takes care of not adding units for rows that have n/a or null values- if (val[k] !== 'n/a' && val[k] !== null) {- newValue[k] = getYAxisFormattedValue(- String(val[k]),- unit,- decimalPrecision,- );- } else if (val[k] === null) {- newValue[k] = 'n/a';- }- newValue[`${k}_without_unit`] = val[k];+ if (unit) {+ // the check below takes care of not adding units for rows that have n/a or null values+ if (val[k] !== 'n/a' && val[k] !== null) {+ newValue[k] = getYAxisFormattedValue(+ String(val[k]),+ unit,+ decimalPrecision,+ );+ } else if (val[k] === null) {+ newValue[k] = 'n/a';}- });- return newValue;- },- );+ newValue[`${k}_without_unit`] = val[k];+ }+ });+ return newValue;+ });return mutateDataSource;},[columnUnits, decimalPrecision],);- const dataSource = useMemo(() => applyColumnUnits(originalDataSource), [- applyColumnUnits,- originalDataSource,- ]);+ const dataSource = useMemo(+ () => applyColumnUnits(originalDataSource),+ [applyColumnUnits, originalDataSource],+ );useEffect(() => {if (tableProcessedDataRef) {@@ -299,7 +297,7 @@ function GridTableComponent({}customOnRowClick?.(record);},- })+ }): undefined}{...props}diff --git a/frontend/src/container/GridTableComponent/utils.ts b/frontend/src/container/GridTableComponent/utils.tsindex 62b7cb4662..fb7ee3ce62 100644--- a/frontend/src/container/GridTableComponent/utils.ts+++ b/frontend/src/container/GridTableComponent/utils.ts@@ -137,8 +137,9 @@ export function getQueryLegend()?.legend;break;case EQueryType.PROM:- legend = currentQuery?.promql?.find((query) => query.name === queryName)- ?.legend;+ legend = currentQuery?.promql?.find(+ (query) => query.name === queryName,+ )?.legend;break;default:legend = undefined;diff --git a/frontend/src/container/GridValueComponent/index.tsx b/frontend/src/container/GridValueComponent/index.tsxindex f4819cc610..a39ce28884 100644--- a/frontend/src/container/GridValueComponent/index.tsx+++ b/frontend/src/container/GridValueComponent/index.tsx@@ -106,7 +106,7 @@ function GridValueComponent({String(value),yAxisUnit,widget?.decimalPrecision,- )+ ): value.toString()}/>diff --git a/frontend/src/container/Home/AlertRules/AlertRules.tsx b/frontend/src/container/Home/AlertRules/AlertRules.tsxindex 4db1ed559f..e57a3b7981 100644--- a/frontend/src/container/Home/AlertRules/AlertRules.tsx+++ b/frontend/src/container/Home/AlertRules/AlertRules.tsx@@ -36,7 +36,11 @@ export default function AlertRules({const params = new URLSearchParams(location.search);// Fetch Alerts- const { data: alerts, isError, isLoading } = useListRules({+ const {+ data: alerts,+ isError,+ isLoading,+ } = useListRules({query: { cacheTime: 0 },});diff --git a/frontend/src/container/Home/Dashboards/Dashboards.tsx b/frontend/src/container/Home/Dashboards/Dashboards.tsxindex 3d576b185f..7209fdd377 100644--- a/frontend/src/container/Home/Dashboards/Dashboards.tsx+++ b/frontend/src/container/Home/Dashboards/Dashboards.tsx@@ -130,7 +130,7 @@ export default function Dashboards({onClick={onClickHandler}onKeyDown={(e): void => {if (e.key === 'Enter') {- onClickHandler((e as unknown) as React.MouseEvent<HTMLElement>);+ onClickHandler(e as unknown as React.MouseEvent<HTMLElement>);}}}>diff --git a/frontend/src/container/Home/DataSourceInfo/DataSourceInfo.tsx b/frontend/src/container/Home/DataSourceInfo/DataSourceInfo.tsxindex fe01440d5a..3f4601f12a 100644--- a/frontend/src/container/Home/DataSourceInfo/DataSourceInfo.tsx+++ b/frontend/src/container/Home/DataSourceInfo/DataSourceInfo.tsx@@ -42,9 +42,10 @@ function DataSourceInfo({[hostsData],);- const url = useMemo(() => activeHost?.url?.split('://')[1] ?? '', [- activeHost,- ]);+ const url = useMemo(+ () => activeHost?.url?.split('://')[1] ?? '',+ [activeHost],+ );const handleConnect = (): void => {logEvent('Homepage: Connect dataSource clicked', {});diff --git a/frontend/src/container/Home/Home.styles.scss b/frontend/src/container/Home/Home.styles.scssindex d92bed0223..5dcfb570f2 100644--- a/frontend/src/container/Home/Home.styles.scss+++ b/frontend/src/container/Home/Home.styles.scss@@ -227,7 +227,9 @@.ant-typography {color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums slashed-zero;- font-feature-settings: 'dlig' on, 'salt' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: 11px !important;font-style: normal;diff --git a/frontend/src/container/Home/Home.tsx b/frontend/src/container/Home/Home.tsxindex 4b1f2c3df6..310075da64 100644--- a/frontend/src/container/Home/Home.tsx+++ b/frontend/src/container/Home/Home.tsx@@ -70,9 +70,8 @@ export default function Home(): JSX.Element {defaultChecklistItemsState,);- const [isWelcomeChecklistSkipped, setIsWelcomeChecklistSkipped] = useState(- false,- );+ const [isWelcomeChecklistSkipped, setIsWelcomeChecklistSkipped] =+ useState(false);useEffect(() => {const now = new Date();@@ -138,9 +137,8 @@ export default function Home(): JSX.Element {const [isLogsIngestionActive, setIsLogsIngestionActive] = useState(false);const [isTracesIngestionActive, setIsTracesIngestionActive] = useState(false);- const [isMetricsIngestionActive, setIsMetricsIngestionActive] = useState(- false,- );+ const [isMetricsIngestionActive, setIsMetricsIngestionActive] =+ useState(false);const processUserPreferences = (userPreferences: UserPreference[]): void => {const checklistSkipped = Boolean(diff --git a/frontend/src/container/Home/SavedViews/SavedViews.tsx b/frontend/src/container/Home/SavedViews/SavedViews.tsxindex c1295fee2a..9eec543d1c 100644--- a/frontend/src/container/Home/SavedViews/SavedViews.tsx+++ b/frontend/src/container/Home/SavedViews/SavedViews.tsx@@ -54,17 +54,20 @@ export default function SavedViews({isError: metricsViewsError,} = useGetAllViews(DataSource.METRICS);- const logsViews = useMemo(() => [...(logsViewsData?.data.data || [])], [- logsViewsData,- ]);+ const logsViews = useMemo(+ () => [...(logsViewsData?.data.data || [])],+ [logsViewsData],+ );- const tracesViews = useMemo(() => [...(tracesViewsData?.data.data || [])], [- tracesViewsData,- ]);+ const tracesViews = useMemo(+ () => [...(tracesViewsData?.data.data || [])],+ [tracesViewsData],+ );- const metricsViews = useMemo(() => [...(metricsViewsData?.data.data || [])], [- metricsViewsData,- ]);+ const metricsViews = useMemo(+ () => [...(metricsViewsData?.data.data || [])],+ [metricsViewsData],+ );useEffect(() => {if (selectedEntity === 'logs') {diff --git a/frontend/src/container/Home/Services/ServiceMetrics.tsx b/frontend/src/container/Home/Services/ServiceMetrics.tsxindex 7f70c5cfc8..ac132a6fb7 100644--- a/frontend/src/container/Home/Services/ServiceMetrics.tsx+++ b/frontend/src/container/Home/Services/ServiceMetrics.tsx@@ -249,9 +249,10 @@ function ServiceMetrics({},);- const isLoading = useMemo(() => dataQueries.some((query) => query.isLoading), [- dataQueries,- ]);+ const isLoading = useMemo(+ () => dataQueries.some((query) => query.isLoading),+ [dataQueries],+ );const services: ServicesList[] = useMemo(() =>@@ -274,9 +275,10 @@ function ServiceMetrics({);const servicesExist = sortedServices.length > 0;- const top5Services = useMemo(() => sortedServices.slice(0, 5), [- sortedServices,- ]);+ const top5Services = useMemo(+ () => sortedServices.slice(0, 5),+ [sortedServices],+ );useEffect(() => {if (!loadingUserPreferences && servicesExist) {diff --git a/frontend/src/container/Home/Services/ServiceTraces.tsx b/frontend/src/container/Home/Services/ServiceTraces.tsxindex 3ff08b0146..8853c74c9e 100644--- a/frontend/src/container/Home/Services/ServiceTraces.tsx+++ b/frontend/src/container/Home/Services/ServiceTraces.tsx@@ -69,12 +69,14 @@ export default function ServiceTraces({[services],);- const servicesExist = useMemo(() => sortedServices.length > 0, [- sortedServices,- ]);- const top5Services = useMemo(() => sortedServices.slice(0, 5), [- sortedServices,- ]);+ const servicesExist = useMemo(+ () => sortedServices.length > 0,+ [sortedServices],+ );+ const top5Services = useMemo(+ () => sortedServices.slice(0, 5),+ [sortedServices],+ );useEffect(() => {if (servicesExist && !loadingUserPreferences) {diff --git a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseDetails.tsx b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseDetails.tsxindex ff3ec80f3a..54fd585a0b 100644--- a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseDetails.tsx+++ b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseDetails.tsx@@ -212,22 +212,18 @@ function K8sBaseDetails<T>({lastSelectedInterval.current? lastSelectedInterval.current: isCustomTimeRange(selectedTime)- ? DEFAULT_TIME_RANGE- : selectedTime,+ ? DEFAULT_TIME_RANGE+ : selectedTime,);const [selectedView, setSelectedView] = useInfraMonitoringView();const effectiveView = hideDetailViewTabs ? VIEW_TYPES.METRICS : selectedView;const [logFiltersParam, setLogFiltersParam] = useInfraMonitoringLogFilters();- const [- tracesFiltersParam,- setTracesFiltersParam,- ] = useInfraMonitoringTracesFilters();- const [- eventsFiltersParam,- setEventsFiltersParam,- ] = useInfraMonitoringEventsFilters();+ const [tracesFiltersParam, setTracesFiltersParam] =+ useInfraMonitoringTracesFilters();+ const [eventsFiltersParam, setEventsFiltersParam] =+ useInfraMonitoringEventsFilters();const isDarkMode = useIsDarkMode();const [selectedItem, setSelectedItem] = useInfraMonitoringSelectedItem();@@ -314,13 +310,11 @@ function K8sBaseDetails<T>({};}, [entity, eventsFiltersParam, getInitialEventsFilters]);- const [logsAndTracesFilters, setLogsAndTracesFilters] = useState<- IBuilderQuery['filters']- >(initialFilters);+ const [logsAndTracesFilters, setLogsAndTracesFilters] =+ useState<IBuilderQuery['filters']>(initialFilters);- const [eventsFilters, setEventsFilters] = useState<IBuilderQuery['filters']>(- initialEventsFilters,- );+ const [eventsFilters, setEventsFilters] =+ useState<IBuilderQuery['filters']>(initialEventsFilters);useEffect(() => {if (entity) {diff --git a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.module.scss b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.module.scssindex bbb1babd8a..d0149fb36b 100644--- a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.module.scss+++ b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.module.scss@@ -112,7 +112,9 @@max-width: 180px !important;}- :global(.ant-table-cell:first-of-type):not(:global(.ant-table-row-expand-icon-cell)) {+ :global(.ant-table-cell:first-of-type):not(+ :global(.ant-table-row-expand-icon-cell)+ ) {min-width: 250px !important;max-width: 250px !important;}diff --git a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.tsx b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.tsxindex 998dbd4eec..427abb4a06 100644--- a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.tsx+++ b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.tsx@@ -184,34 +184,35 @@ export function K8sBaseList<T>({);}, [pageData, renderRowData, groupBy]);- const handleTableChange: TableProps<K8sRenderedRowData>['onChange'] = useCallback(- (- pagination: TablePaginationConfig,- _filters: Record<string, (string | number | boolean)[] | null>,- sorter:- | SorterResult<K8sRenderedRowData>- | SorterResult<K8sRenderedRowData>[],- ): void => {- if (pagination.current) {- setCurrentPage(pagination.current);- logEvent(InfraMonitoringEvents.PageNumberChanged, {- entity: InfraMonitoringEvents.K8sEntity,- page: InfraMonitoringEvents.ListPage,- category: eventCategory,- });- }+ const handleTableChange: TableProps<K8sRenderedRowData>['onChange'] =+ useCallback(+ (+ pagination: TablePaginationConfig,+ _filters: Record<string, (string | number | boolean)[] | null>,+ sorter:+ | SorterResult<K8sRenderedRowData>+ | SorterResult<K8sRenderedRowData>[],+ ): void => {+ if (pagination.current) {+ setCurrentPage(pagination.current);+ logEvent(InfraMonitoringEvents.PageNumberChanged, {+ entity: InfraMonitoringEvents.K8sEntity,+ page: InfraMonitoringEvents.ListPage,+ category: eventCategory,+ });+ }- if ('field' in sorter && sorter.order) {- setOrderBy({- columnName: sorter.field as string,- order: (sorter.order === 'ascend' ? 'asc' : 'desc') as 'asc' | 'desc',- });- } else {- setOrderBy(null);- }- },- [eventCategory, setCurrentPage, setOrderBy],- );+ if ('field' in sorter && sorter.order) {+ setOrderBy({+ columnName: sorter.field as string,+ order: (sorter.order === 'ascend' ? 'asc' : 'desc') as 'asc' | 'desc',+ });+ } else {+ setOrderBy(null);+ }+ },+ [eventCategory, setCurrentPage, setOrderBy],+ );useEffect(() => {logEvent(InfraMonitoringEvents.PageVisited, {@@ -262,10 +263,8 @@ export function K8sBaseList<T>({});};- const [- columnsDefinitions,- columnsHidden,- ] = useInfraMonitoringTableColumnsForPage(entity);+ const [columnsDefinitions, columnsHidden] =+ useInfraMonitoringTableColumnsForPage(entity);const hiddenColumnIdsOnList = useMemo(() =>diff --git a/frontend/src/container/InfraMonitoringK8s/Base/K8sExpandedRow.tsx b/frontend/src/container/InfraMonitoringK8s/Base/K8sExpandedRow.tsxindex 5c35147ccf..146593e740 100644--- a/frontend/src/container/InfraMonitoringK8s/Base/K8sExpandedRow.tsx+++ b/frontend/src/container/InfraMonitoringK8s/Base/K8sExpandedRow.tsx@@ -68,10 +68,8 @@ export function K8sExpandedRow<T>({const [queryFilters, setFilters] = useInfraMonitoringFilters();const [, setSelectedItem] = useInfraMonitoringSelectedItem();- const [- columnsDefinitions,- columnsHidden,- ] = useInfraMonitoringTableColumnsForPage(entity);+ const [columnsDefinitions, columnsHidden] =+ useInfraMonitoringTableColumnsForPage(entity);const hiddenColumnIdsForNested = useMemo(() =>@@ -160,17 +158,15 @@ export function K8sExpandedRow<T>({// Without handling duplicated keys, the table became unpredictable/unstableconst keyCount = new Map<string, number>();- return rows.map(- (row): K8sRenderedRowData => {- const count = keyCount.get(row.key) || 0;- keyCount.set(row.key, count + 1);-- if (count > 0) {- return { ...row, key: `${row.key}-${count}` };- }- return row;- },- );+ return rows.map((row): K8sRenderedRowData => {+ const count = keyCount.get(row.key) || 0;+ keyCount.set(row.key, count + 1);++ if (count > 0) {+ return { ...row, key: `${row.key}-${count}` };+ }+ return row;+ });}, [data?.data, renderRowData, groupBy]);const openRecordInNewTab = (rowRecord: K8sRenderedRowData): void => {diff --git a/frontend/src/container/InfraMonitoringK8s/Base/K8sHeader.tsx b/frontend/src/container/InfraMonitoringK8s/Base/K8sHeader.tsxindex 977c7298db..50c72394f4 100644--- a/frontend/src/container/InfraMonitoringK8s/Base/K8sHeader.tsx+++ b/frontend/src/container/InfraMonitoringK8s/Base/K8sHeader.tsx@@ -100,26 +100,24 @@ function K8sHeader({featureFlags?.find((flag) => flag.name === FeatureKeys.DOT_METRICS_ENABLED)?.active || false;- const {- data: groupByFiltersData,- isLoading: isLoadingGroupByFilters,- } = useGetAggregateKeys(- {- dataSource: currentQuery.builder.queryData[0].dataSource,- aggregateAttribute: GetK8sEntityToAggregateAttribute(- entity,- dotMetricsEnabled,- ),- aggregateOperator: 'noop',- searchText: '',- tagType: '',- },- {- queryKey: [currentQuery.builder.queryData[0].dataSource, 'noop'],- },- true,- entity,- );+ const { data: groupByFiltersData, isLoading: isLoadingGroupByFilters } =+ useGetAggregateKeys(+ {+ dataSource: currentQuery.builder.queryData[0].dataSource,+ aggregateAttribute: GetK8sEntityToAggregateAttribute(+ entity,+ dotMetricsEnabled,+ ),+ aggregateOperator: 'noop',+ searchText: '',+ tagType: '',+ },+ {+ queryKey: [currentQuery.builder.queryData[0].dataSource, 'noop'],+ },+ true,+ entity,+ );const groupByOptions = useMemo(() =>@@ -137,7 +135,7 @@ function K8sHeader({const newGroupBy = [];for (let index = 0; index < value.length; index++) {- const element = (value[index] as unknown) as string;+ const element = value[index] as unknown as string;const key = groupByFiltersData?.payload?.attributeKeys?.find((k) => k.key === element,diff --git a/frontend/src/container/InfraMonitoringK8s/Base/__tests__/K8sBaseList.test.tsx b/frontend/src/container/InfraMonitoringK8s/Base/__tests__/K8sBaseList.test.tsxindex 7d2087f64a..886d1a9f2b 100644--- a/frontend/src/container/InfraMonitoringK8s/Base/__tests__/K8sBaseList.test.tsx+++ b/frontend/src/container/InfraMonitoringK8s/Base/__tests__/K8sBaseList.test.tsx@@ -163,10 +163,18 @@ describe('K8sBaseList', () => {it('should render all the items in the list', async () => {await waitFor(async () => {- await expect(screen.findByText(`PodId:${itemId}`)).resolves.toBeInTheDocument();- await expect(screen.findByText(`PodTitle:${itemId}`)).resolves.toBeInTheDocument();- await expect(screen.findByText(`PodId:${itemId2}`)).resolves.toBeInTheDocument();- await expect(screen.findByText(`PodTitle:${itemId2}`)).resolves.toBeInTheDocument();+ await expect(+ screen.findByText(`PodId:${itemId}`),+ ).resolves.toBeInTheDocument();+ await expect(+ screen.findByText(`PodTitle:${itemId}`),+ ).resolves.toBeInTheDocument();+ await expect(+ screen.findByText(`PodId:${itemId2}`),+ ).resolves.toBeInTheDocument();+ await expect(+ screen.findByText(`PodTitle:${itemId2}`),+ ).resolves.toBeInTheDocument();});});diff --git a/frontend/src/container/InfraMonitoringK8s/Base/useInfraMonitoringTableColumnsStore.ts b/frontend/src/container/InfraMonitoringK8s/Base/useInfraMonitoringTableColumnsStore.tsindex 83d490afbe..ae43fee22a 100644--- a/frontend/src/container/InfraMonitoringK8s/Base/useInfraMonitoringTableColumnsStore.ts+++ b/frontend/src/container/InfraMonitoringK8s/Base/useInfraMonitoringTableColumnsStore.ts@@ -18,88 +18,89 @@ export interface IInfraMonitoringTableColumnsStore {initializePageColumns: (page: string, columns: IEntityColumn[]) => void;}-export const useInfraMonitoringTableColumnsStore = create<IInfraMonitoringTableColumnsStore>()(- persist(- (set, get) => ({- columns: {},- columnsHidden: {},- addColumn: (page, columnId): void => {- const state = get();- const columnDefinition = state.columns[page]?.find(- (c) => c.id === columnId,- );+export const useInfraMonitoringTableColumnsStore =+ create<IInfraMonitoringTableColumnsStore>()(+ persist(+ (set, get) => ({+ columns: {},+ columnsHidden: {},+ addColumn: (page, columnId): void => {+ const state = get();+ const columnDefinition = state.columns[page]?.find(+ (c) => c.id === columnId,+ );- if (!columnDefinition) {- return;- }+ if (!columnDefinition) {+ return;+ }- if (!columnDefinition.canBeHidden) {- return;- }+ if (!columnDefinition.canBeHidden) {+ return;+ }- const columnsHidden = state.columnsHidden[page];+ const columnsHidden = state.columnsHidden[page];- if (columnsHidden.includes(columnId)) {- set({- columnsHidden: {- ...state.columnsHidden,- [page]: columnsHidden.filter((id) => id !== columnId),- },- });- }- },- removeColumn: (page, columnId): void => {- const state = get();- const columnDefinition = state.columns[page]?.find(- (c) => c.id === columnId,- );+ if (columnsHidden.includes(columnId)) {+ set({+ columnsHidden: {+ ...state.columnsHidden,+ [page]: columnsHidden.filter((id) => id !== columnId),+ },+ });+ }+ },+ removeColumn: (page, columnId): void => {+ const state = get();+ const columnDefinition = state.columns[page]?.find(+ (c) => c.id === columnId,+ );- if (!columnDefinition) {- return;- }+ if (!columnDefinition) {+ return;+ }- if (!columnDefinition.canBeHidden) {- return;- }+ if (!columnDefinition.canBeHidden) {+ return;+ }- const columnsHidden = state.columnsHidden[page];+ const columnsHidden = state.columnsHidden[page];- if (!columnsHidden.includes(columnId)) {- set({- columnsHidden: {- ...state.columnsHidden,- [page]: [...columnsHidden, columnId],- },- });- }- },- initializePageColumns: (page, columns): void => {- const state = get();-- set({- columns: {- ...state.columns,- [page]: columns,- },- });+ if (!columnsHidden.includes(columnId)) {+ set({+ columnsHidden: {+ ...state.columnsHidden,+ [page]: [...columnsHidden, columnId],+ },+ });+ }+ },+ initializePageColumns: (page, columns): void => {+ const state = get();- if (state.columnsHidden[page] === undefined) {set({- columnsHidden: {- ...state.columnsHidden,- [page]: columns- .filter((c) => c.defaultVisibility === false)- .map((c) => c.id),+ columns: {+ ...state.columns,+ [page]: columns,},});- }++ if (state.columnsHidden[page] === undefined) {+ set({+ columnsHidden: {+ ...state.columnsHidden,+ [page]: columns+ .filter((c) => c.defaultVisibility === false)+ .map((c) => c.id),+ },+ });+ }+ },+ }),+ {+ name: '@signoz/infra-monitoring-columns',},- }),- {- name: '@signoz/infra-monitoring-columns',- },- ),-);+ ),+ );export const useInfraMonitoringTableColumnsForPage = (page: string,diff --git a/frontend/src/container/InfraMonitoringK8s/Clusters/api.ts b/frontend/src/container/InfraMonitoringK8s/Clusters/api.tsindex 685bc6a032..ed1dd10bd7 100644--- a/frontend/src/container/InfraMonitoringK8s/Clusters/api.ts+++ b/frontend/src/container/InfraMonitoringK8s/Clusters/api.ts@@ -98,7 +98,7 @@ export const getK8sClustersList = async ([] as typeof props.filters.items,),},- }+ }: props;const response = await axios.post('/clusters/list', requestProps, {diff --git a/frontend/src/container/InfraMonitoringK8s/Clusters/constants.ts b/frontend/src/container/InfraMonitoringK8s/Clusters/constants.tsindex b7868f7378..f47dc591a5 100644--- a/frontend/src/container/InfraMonitoringK8s/Clusters/constants.ts+++ b/frontend/src/container/InfraMonitoringK8s/Clusters/constants.ts@@ -30,9 +30,8 @@ export const k8sClusterGetSelectedItemFilters = (],});-export const k8sClusterDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sClusterData>[] = [- { label: 'Cluster Name', getValue: (p): string => p.meta.k8s_cluster_name },-];+export const k8sClusterDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sClusterData>[] =+ [{ label: 'Cluster Name', getValue: (p): string => p.meta.k8s_cluster_name }];export const k8sClusterInitialFilters = [QUERY_KEYS.K8S_CLUSTER_NAME];diff --git a/frontend/src/container/InfraMonitoringK8s/DaemonSets/api.ts b/frontend/src/container/InfraMonitoringK8s/DaemonSets/api.tsindex e8f72ab6e4..d46f09d44d 100644--- a/frontend/src/container/InfraMonitoringK8s/DaemonSets/api.ts+++ b/frontend/src/container/InfraMonitoringK8s/DaemonSets/api.ts@@ -92,7 +92,7 @@ export const getK8sDaemonSetsList = async ([] as typeof props.filters.items,),},- }+ }: props;const response = await axios.post('/daemonsets/list', requestProps, {diff --git a/frontend/src/container/InfraMonitoringK8s/DaemonSets/constants.ts b/frontend/src/container/InfraMonitoringK8s/DaemonSets/constants.tsindex 42666a7063..195caba974 100644--- a/frontend/src/container/InfraMonitoringK8s/DaemonSets/constants.ts+++ b/frontend/src/container/InfraMonitoringK8s/DaemonSets/constants.ts@@ -30,20 +30,21 @@ export const k8sDaemonSetGetSelectedItemFilters = (],});-export const k8sDaemonSetDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sDaemonSetsData>[] = [- {- label: 'Daemonset Name',- getValue: (p): string => p.meta.k8s_daemonset_name,- },- {- label: 'Cluster Name',- getValue: (p): string => p.meta.k8s_cluster_name,- },- {- label: 'Namespace Name',- getValue: (p): string => p.meta.k8s_namespace_name,- },-];+export const k8sDaemonSetDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sDaemonSetsData>[] =+ [+ {+ label: 'Daemonset Name',+ getValue: (p): string => p.meta.k8s_daemonset_name,+ },+ {+ label: 'Cluster Name',+ getValue: (p): string => p.meta.k8s_cluster_name,+ },+ {+ label: 'Namespace Name',+ getValue: (p): string => p.meta.k8s_namespace_name,+ },+ ];export const k8sDaemonSetInitialFilters = [QUERY_KEYS.K8S_DAEMON_SET_NAME,diff --git a/frontend/src/container/InfraMonitoringK8s/Deployments/api.ts b/frontend/src/container/InfraMonitoringK8s/Deployments/api.tsindex b171a5ced6..7dc418afeb 100644--- a/frontend/src/container/InfraMonitoringK8s/Deployments/api.ts+++ b/frontend/src/container/InfraMonitoringK8s/Deployments/api.ts@@ -105,7 +105,7 @@ export const getK8sDeploymentsList = async ([] as typeof props.filters.items,),},- }+ }: props;const response = await axios.post('/deployments/list', requestProps, {diff --git a/frontend/src/container/InfraMonitoringK8s/Deployments/constants.ts b/frontend/src/container/InfraMonitoringK8s/Deployments/constants.tsindex 445b2ba6bc..ea37a5b121 100644--- a/frontend/src/container/InfraMonitoringK8s/Deployments/constants.ts+++ b/frontend/src/container/InfraMonitoringK8s/Deployments/constants.ts@@ -30,20 +30,21 @@ export const k8sDeploymentGetSelectedItemFilters = (],});-export const k8sDeploymentDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sDeploymentsData>[] = [- {- label: 'Deployment Name',- getValue: (p): string => p.meta.k8s_deployment_name,- },- {- label: 'Cluster Name',- getValue: (p): string => p.meta.k8s_cluster_name,- },- {- label: 'Namespace Name',- getValue: (p): string => p.meta.k8s_namespace_name,- },-];+export const k8sDeploymentDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sDeploymentsData>[] =+ [+ {+ label: 'Deployment Name',+ getValue: (p): string => p.meta.k8s_deployment_name,+ },+ {+ label: 'Cluster Name',+ getValue: (p): string => p.meta.k8s_cluster_name,+ },+ {+ label: 'Namespace Name',+ getValue: (p): string => p.meta.k8s_namespace_name,+ },+ ];export const k8sDeploymentInitialFilters = [QUERY_KEYS.K8S_DEPLOYMENT_NAME,diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/EntityEvents.tsx b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/EntityEvents.tsxindex dffadb1de1..e7670a4d7c 100644--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/EntityEvents.tsx+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/EntityEvents.tsx@@ -141,7 +141,12 @@ export default function Events({return basePayload;}, [timeRange.startTime, timeRange.endTime, filters, page]);- const { data: eventsData, isLoading, isFetching, isError } = useQuery({+ const {+ data: eventsData,+ isLoading,+ isFetching,+ isError,+ } = useQuery({queryKey: [queryKey, timeRange.startTime, timeRange.endTime, filters, page],queryFn: () => GetMetricQueryRange(queryPayload, DEFAULT_ENTITY_VERSION),enabled: !!queryPayload,@@ -228,10 +233,7 @@ export default function Events({className="periscope-btn-icon"size={14}onClick={(e): void =>- onExpand(- record,- (e as unknown) as React.MouseEvent<HTMLElement, MouseEvent>,- )+ onExpand(record, e as unknown as React.MouseEvent<HTMLElement, MouseEvent>)}/>) : (@@ -240,10 +242,7 @@ export default function Events({size={14}// eslint-disable-next-line sonarjs/no-identical-functionsonClick={(e): void =>- onExpand(- record,- (e as unknown) as React.MouseEvent<HTMLElement, MouseEvent>,- )+ onExpand(record, e as unknown as React.MouseEvent<HTMLElement, MouseEvent>)}/>);diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/entityEvents.styles.scss b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/entityEvents.styles.scssindex 3ddb074264..8eaf6d6ff2 100644--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/entityEvents.styles.scss+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/entityEvents.styles.scss@@ -158,7 +158,9 @@.ant-table-thead> tr- > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {+ > th:not(:last-child):not(.ant-table-selection-column):not(+ .ant-table-row-expand-icon-cell+ ):not([colspan])::before {background-color: transparent;}diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityMetrics/EntityMetrics.tsx b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityMetrics/EntityMetrics.tsxindex 9cf67024aa..812212c17e 100644--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityMetrics/EntityMetrics.tsx+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityMetrics/EntityMetrics.tsx@@ -76,10 +76,10 @@ function EntityMetrics<T>({featureFlags?.find((flag) => flag.name === FeatureKeys.DOT_METRICS_ENABLED)?.active || false;- const {- visibilities,- setElement,- } = useMultiIntersectionObserver(entityWidgetInfo.length, { threshold: 0.1 });+ const { visibilities, setElement } = useMultiIntersectionObserver(+ entityWidgetInfo.length,+ { threshold: 0.1 },+ );const queryPayloads = useMemo(() =>diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityTraces/entityTraces.styles.scss b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityTraces/entityTraces.styles.scssindex 152fbabe00..a618756adc 100644--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityTraces/entityTraces.styles.scss+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityTraces/entityTraces.styles.scss@@ -132,7 +132,9 @@.ant-table-thead> tr- > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {+ > th:not(:last-child):not(.ant-table-selection-column):not(+ .ant-table-row-expand-icon-cell+ ):not([colspan])::before {background-color: transparent;}diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/entityDetails.styles.scss b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/entityDetails.styles.scssindex 8455a0a8ee..2b8da88535 100644--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/entityDetails.styles.scss+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/entityDetails.styles.scss@@ -382,7 +382,9 @@.ant-table-thead> tr- > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {+ > th:not(:last-child):not(.ant-table-selection-column):not(+ .ant-table-row-expand-icon-cell+ ):not([colspan])::before {background-color: transparent;}diff --git a/frontend/src/container/InfraMonitoringK8s/Jobs/api.ts b/frontend/src/container/InfraMonitoringK8s/Jobs/api.tsindex 03f4bae529..eab088dea8 100644--- a/frontend/src/container/InfraMonitoringK8s/Jobs/api.ts+++ b/frontend/src/container/InfraMonitoringK8s/Jobs/api.ts@@ -92,7 +92,7 @@ export const getK8sJobsList = async ([] as typeof props.filters.items,),},- }+ }: props;const response = await axios.post('/jobs/list', requestProps, {diff --git a/frontend/src/container/InfraMonitoringK8s/Jobs/constants.ts b/frontend/src/container/InfraMonitoringK8s/Jobs/constants.tsindex 4c07b10dc3..2fd3bb53d3 100644--- a/frontend/src/container/InfraMonitoringK8s/Jobs/constants.ts+++ b/frontend/src/container/InfraMonitoringK8s/Jobs/constants.ts@@ -30,20 +30,21 @@ export const k8sJobGetSelectedItemFilters = (],});-export const k8sJobDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sJobsData>[] = [- {- label: 'Job Name',- getValue: (p): string => p.meta.k8s_job_name,- },- {- label: 'Cluster Name',- getValue: (p): string => p.meta.k8s_cluster_name,- },- {- label: 'Namespace Name',- getValue: (p): string => p.meta.k8s_namespace_name,- },-];+export const k8sJobDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sJobsData>[] =+ [+ {+ label: 'Job Name',+ getValue: (p): string => p.meta.k8s_job_name,+ },+ {+ label: 'Cluster Name',+ getValue: (p): string => p.meta.k8s_cluster_name,+ },+ {+ label: 'Namespace Name',+ getValue: (p): string => p.meta.k8s_namespace_name,+ },+ ];export const k8sJobInitialFilters = [QUERY_KEYS.K8S_JOB_NAME,diff --git a/frontend/src/container/InfraMonitoringK8s/Namespaces/api.ts b/frontend/src/container/InfraMonitoringK8s/Namespaces/api.tsindex 9c7ee17e50..8a8461d31b 100644--- a/frontend/src/container/InfraMonitoringK8s/Namespaces/api.ts+++ b/frontend/src/container/InfraMonitoringK8s/Namespaces/api.ts@@ -96,7 +96,7 @@ export const getK8sNamespacesList = async ([] as typeof props.filters.items,),},- }+ }: props;const response = await axios.post('/namespaces/list', requestProps, {diff --git a/frontend/src/container/InfraMonitoringK8s/Namespaces/constants.ts b/frontend/src/container/InfraMonitoringK8s/Namespaces/constants.tsindex b2b8fe39c5..0d750099dd 100644--- a/frontend/src/container/InfraMonitoringK8s/Namespaces/constants.ts+++ b/frontend/src/container/InfraMonitoringK8s/Namespaces/constants.ts@@ -33,13 +33,14 @@ export const k8sNamespaceGetSelectedItemFilters = (],});-export const k8sNamespaceDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sNamespacesData>[] = [- { label: 'Namespace Name', getValue: (p): string => p.namespaceName },- {- label: 'Cluster Name',- getValue: (p): string => p.meta.k8s_cluster_name,- },-];+export const k8sNamespaceDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sNamespacesData>[] =+ [+ { label: 'Namespace Name', getValue: (p): string => p.namespaceName },+ {+ label: 'Cluster Name',+ getValue: (p): string => p.meta.k8s_cluster_name,+ },+ ];export const k8sNamespaceInitialFilters = [QUERY_KEYS.K8S_NAMESPACE_NAME,diff --git a/frontend/src/container/InfraMonitoringK8s/Nodes/api.ts b/frontend/src/container/InfraMonitoringK8s/Nodes/api.tsindex bb72560656..45cd3581b3 100644--- a/frontend/src/container/InfraMonitoringK8s/Nodes/api.ts+++ b/frontend/src/container/InfraMonitoringK8s/Nodes/api.ts@@ -101,7 +101,7 @@ export const getK8sNodesList = async ([] as typeof props.filters.items,),},- }+ }: props;const response = await axios.post('/nodes/list', requestProps, {diff --git a/frontend/src/container/InfraMonitoringK8s/Nodes/constants.ts b/frontend/src/container/InfraMonitoringK8s/Nodes/constants.tsindex 909904b863..92d6be834d 100644--- a/frontend/src/container/InfraMonitoringK8s/Nodes/constants.ts+++ b/frontend/src/container/InfraMonitoringK8s/Nodes/constants.ts@@ -32,13 +32,14 @@ export const k8sNodeGetSelectedItemFilters = (};};-export const k8sNodeDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sNodeData>[] = [- { label: 'Node Name', getValue: (p): string => p.meta.k8s_node_name },- {- label: 'Cluster Name',- getValue: (p): string => p.meta.k8s_cluster_name,- },-];+export const k8sNodeDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sNodeData>[] =+ [+ { label: 'Node Name', getValue: (p): string => p.meta.k8s_node_name },+ {+ label: 'Cluster Name',+ getValue: (p): string => p.meta.k8s_cluster_name,+ },+ ];export const k8sNodeInitialFilters = [QUERY_KEYS.K8S_NODE_NAME,diff --git a/frontend/src/container/InfraMonitoringK8s/Pods/api.ts b/frontend/src/container/InfraMonitoringK8s/Pods/api.tsindex 1e449e8d68..61d469d00b 100644--- a/frontend/src/container/InfraMonitoringK8s/Pods/api.ts+++ b/frontend/src/container/InfraMonitoringK8s/Pods/api.ts@@ -122,7 +122,7 @@ export const getK8sPodsList = async ([] as typeof props.filters.items,),},- }+ }: props;const response = await axios.post('/pods/list', requestProps, {diff --git a/frontend/src/container/InfraMonitoringK8s/Pods/constants.ts b/frontend/src/container/InfraMonitoringK8s/Pods/constants.tsindex 5a5605ac2b..949b1017c5 100644--- a/frontend/src/container/InfraMonitoringK8s/Pods/constants.ts+++ b/frontend/src/container/InfraMonitoringK8s/Pods/constants.ts@@ -32,14 +32,15 @@ export const k8sPodGetSelectedItemFilters = (};};-export const k8sPodDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sPodsData>[] = [- { label: 'NAMESPACE', getValue: (p): string => p.meta.k8s_namespace_name },- {- label: 'Cluster Name',- getValue: (p): string => p.meta.k8s_cluster_name,- },- { label: 'Node', getValue: (p): string => p.meta.k8s_node_name },-];+export const k8sPodDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sPodsData>[] =+ [+ { label: 'NAMESPACE', getValue: (p): string => p.meta.k8s_namespace_name },+ {+ label: 'Cluster Name',+ getValue: (p): string => p.meta.k8s_cluster_name,+ },+ { label: 'Node', getValue: (p): string => p.meta.k8s_node_name },+ ];export const k8sPodInitialFilters = [QUERY_KEYS.K8S_POD_NAME,diff --git a/frontend/src/container/InfraMonitoringK8s/StatefulSets/api.ts b/frontend/src/container/InfraMonitoringK8s/StatefulSets/api.tsindex 06e1b8ad7b..f113fdc417 100644--- a/frontend/src/container/InfraMonitoringK8s/StatefulSets/api.ts+++ b/frontend/src/container/InfraMonitoringK8s/StatefulSets/api.ts@@ -79,25 +79,28 @@ export const getK8sStatefulSetsList = async (...props,filters: {...props.filters,- items: props.filters.items.reduce<TagFilter['items']>((acc, item) => {- if (item.value === undefined) {+ items: props.filters.items.reduce<TagFilter['items']>(+ (acc, item) => {+ if (item.value === undefined) {+ return acc;+ }+ if (+ item.key &&+ typeof item.key === 'object' &&+ 'key' in item.key &&+ typeof item.key.key === 'string'+ ) {+ const mappedKey = UnderscoreToDotMap[item.key.key] ?? item.key.key;+ acc.push({ ...item, key: { ...item.key, key: mappedKey } });+ } else {+ acc.push(item);+ }return acc;- }- if (- item.key &&- typeof item.key === 'object' &&- 'key' in item.key &&- typeof item.key.key === 'string'- ) {- const mappedKey = UnderscoreToDotMap[item.key.key] ?? item.key.key;- acc.push({ ...item, key: { ...item.key, key: mappedKey } });- } else {- acc.push(item);- }- return acc;- }, [] as TagFilter['items']),+ },+ [] as TagFilter['items'],+ ),},- }+ }: props;const response = await axios.post('/statefulsets/list', requestProps, {diff --git a/frontend/src/container/InfraMonitoringK8s/StatefulSets/constants.ts b/frontend/src/container/InfraMonitoringK8s/StatefulSets/constants.tsindex 1ad293589b..3e9ecd2c9f 100644--- a/frontend/src/container/InfraMonitoringK8s/StatefulSets/constants.ts+++ b/frontend/src/container/InfraMonitoringK8s/StatefulSets/constants.ts@@ -30,16 +30,17 @@ export const k8sStatefulSetGetSelectedItemFilters = (],});-export const k8sStatefulSetDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sStatefulSetsData>[] = [- {- label: 'Statefulset Name',- getValue: (p): string => p.meta.k8s_statefulset_name,- },- {- label: 'Namespace Name',- getValue: (p): string => p.meta.k8s_namespace_name,- },-];+export const k8sStatefulSetDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sStatefulSetsData>[] =+ [+ {+ label: 'Statefulset Name',+ getValue: (p): string => p.meta.k8s_statefulset_name,+ },+ {+ label: 'Namespace Name',+ getValue: (p): string => p.meta.k8s_namespace_name,+ },+ ];export const k8sStatefulSetInitialFilters = [QUERY_KEYS.K8S_STATEFUL_SET_NAME,diff --git a/frontend/src/container/InfraMonitoringK8s/Volumes/api.ts b/frontend/src/container/InfraMonitoringK8s/Volumes/api.tsindex 617b0166e5..c75a42ba46 100644--- a/frontend/src/container/InfraMonitoringK8s/Volumes/api.ts+++ b/frontend/src/container/InfraMonitoringK8s/Volumes/api.ts@@ -109,7 +109,7 @@ export const getK8sVolumesList = async ([] as typeof basePayload.filters.items,),},- }+ }: basePayload;const response = await axios.post('/pvcs/list', requestProps, {diff --git a/frontend/src/container/InfraMonitoringK8s/Volumes/constants.ts b/frontend/src/container/InfraMonitoringK8s/Volumes/constants.tsindex bf9d4051c4..dda092077f 100644--- a/frontend/src/container/InfraMonitoringK8s/Volumes/constants.ts+++ b/frontend/src/container/InfraMonitoringK8s/Volumes/constants.ts@@ -30,20 +30,21 @@ export const k8sVolumeGetSelectedItemFilters = (],});-export const k8sVolumeDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sVolumesData>[] = [- {- label: 'PVC Name',- getValue: (p): string => p.persistentVolumeClaimName,- },- {- label: 'Cluster Name',- getValue: (p): string => p.meta.k8s_cluster_name,- },- {- label: 'Namespace Name',- getValue: (p): string => p.meta.k8s_namespace_name,- },-];+export const k8sVolumeDetailsMetadataConfig: K8sDetailsMetadataConfig<K8sVolumesData>[] =+ [+ {+ label: 'PVC Name',+ getValue: (p): string => p.persistentVolumeClaimName,+ },+ {+ label: 'Cluster Name',+ getValue: (p): string => p.meta.k8s_cluster_name,+ },+ {+ label: 'Namespace Name',+ getValue: (p): string => p.meta.k8s_namespace_name,+ },+ ];export const k8sVolumeInitialFilters = [QUERY_KEYS.K8S_PERSISTENT_VOLUME_CLAIM_NAME,diff --git a/frontend/src/container/IngestionSettings/IngestionSettings.styles.scss b/frontend/src/container/IngestionSettings/IngestionSettings.styles.scssindex 041dab39f4..c5472a2e52 100644--- a/frontend/src/container/IngestionSettings/IngestionSettings.styles.scss+++ b/frontend/src/container/IngestionSettings/IngestionSettings.styles.scss@@ -202,7 +202,11 @@letter-spacing: -0.07px;font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;}}@@ -251,7 +255,11 @@> a {color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums slashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'case' on, 'cpsp' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'case' on,+ 'cpsp' on;font-size: var(--font-size-sm);font-style: normal;font-weight: var(--font-weight-normal);diff --git a/frontend/src/container/IngestionSettings/MultiIngestionSettings.tsx b/frontend/src/container/IngestionSettings/MultiIngestionSettings.tsxindex cf00ebbdc0..530a12180e 100644--- a/frontend/src/container/IngestionSettings/MultiIngestionSettings.tsx+++ b/frontend/src/container/IngestionSettings/MultiIngestionSettings.tsx@@ -169,10 +169,8 @@ function MultiIngestionSettings(): JSX.Element {const [updatedTags, setUpdatedTags] = useState<string[]>([]);const [isEditModalOpen, setIsEditModalOpen] = useState(false);const [isEditAddLimitOpen, setIsEditAddLimitOpen] = useState(false);- const [- activeAPIKey,- setActiveAPIKey,- ] = useState<GatewaytypesIngestionKeyDTO | null>(null);+ const [activeAPIKey, setActiveAPIKey] =+ useState<GatewaytypesIngestionKeyDTO | null>(null);const [activeSignal, setActiveSignal] = useState<LimitProps | null>(null);const [searchValue, setSearchValue] = useState<string>('');@@ -194,20 +192,16 @@ function MultiIngestionSettings(): JSX.Element {setHasCreateLimitForIngestionKeyError,] = useState(false);- const [- createLimitForIngestionKeyError,- setCreateLimitForIngestionKeyError,- ] = useState<string | null>(null);+ const [createLimitForIngestionKeyError, setCreateLimitForIngestionKeyError] =+ useState<string | null>(null);const [hasUpdateLimitForIngestionKeyError,setHasUpdateLimitForIngestionKeyError,] = useState(false);- const [- updateLimitForIngestionKeyError,- setUpdateLimitForIngestionKeyError,- ] = useState<string | null>(null);+ const [updateLimitForIngestionKeyError, setUpdateLimitForIngestionKeyError] =+ useState<string | null>(null);const { t } = useTranslation(['ingestionKeys']);@@ -364,35 +358,25 @@ function MultiIngestionSettings(): JSX.Element {error: globalConfigError,} = useGetGlobalConfig();- const {- mutate: createIngestionKey,- isLoading: isLoadingCreateAPIKey,- } = useCreateIngestionKey<AxiosError<RenderErrorResponseDTO>>();+ const { mutate: createIngestionKey, isLoading: isLoadingCreateAPIKey } =+ useCreateIngestionKey<AxiosError<RenderErrorResponseDTO>>();- const {- mutate: updateAPIKey,- isLoading: isLoadingUpdateAPIKey,- } = useUpdateIngestionKey<AxiosError<RenderErrorResponseDTO>>();+ const { mutate: updateAPIKey, isLoading: isLoadingUpdateAPIKey } =+ useUpdateIngestionKey<AxiosError<RenderErrorResponseDTO>>();- const {- mutate: deleteAPIKey,- isLoading: isDeleteingAPIKey,- } = useDeleteIngestionKey<AxiosError<RenderErrorResponseDTO>>();+ const { mutate: deleteAPIKey, isLoading: isDeleteingAPIKey } =+ useDeleteIngestionKey<AxiosError<RenderErrorResponseDTO>>();- const {- mutate: createLimitForIngestionKey,- isLoading: isLoadingLimitForKey,- } = useCreateIngestionKeyLimit<AxiosError<RenderErrorResponseDTO>>();+ const { mutate: createLimitForIngestionKey, isLoading: isLoadingLimitForKey } =+ useCreateIngestionKeyLimit<AxiosError<RenderErrorResponseDTO>>();const {mutate: updateLimitForIngestionKey,isLoading: isLoadingUpdatedLimitForKey,} = useUpdateIngestionKeyLimit<AxiosError<RenderErrorResponseDTO>>();- const {- mutate: deleteLimitForKey,- isLoading: isDeletingLimit,- } = useDeleteIngestionKeyLimit<AxiosError<RenderErrorResponseDTO>>();+ const { mutate: deleteLimitForKey, isLoading: isDeletingLimit } =+ useDeleteIngestionKeyLimit<AxiosError<RenderErrorResponseDTO>>();const onDeleteHandler = (): void => {clearSearch();@@ -921,7 +905,7 @@ function MultiIngestionSettings(): JSX.Element {? getFormattedTime(dayjs(APIKey.created_at).toISOString(),formatTimezoneAdjustedTimestamp,- )+ ): '';const expiresOn =@@ -931,13 +915,13 @@ function MultiIngestionSettings(): JSX.Element {: getFormattedTime(dayjs(APIKey?.expires_at).toISOString(),formatTimezoneAdjustedTimestamp,- );+ );const updatedOn = APIKey?.updated_at? getFormattedTime(dayjs(APIKey.updated_at).toISOString(),formatTimezoneAdjustedTimestamp,- )+ ): '';const onCopyKey = (e: React.MouseEvent): void => {@@ -1030,21 +1014,23 @@ function MultiIngestionSettings(): JSX.Element {</Row>)}- {APIKey.tags && Array.isArray(APIKey.tags) && APIKey.tags.length > 0 && (- <Row>- <Col span={6}> Tags </Col>- <Col span={12}>- <div className="ingestion-key-tags-container">- <div className="ingestion-key-tags">- {APIKey.tags.map((tag, index) => (- // eslint-disable-next-line react/no-array-index-key- <Tag key={`${tag}-${index}`}> {tag} </Tag>- ))}+ {APIKey.tags &&+ Array.isArray(APIKey.tags) &&+ APIKey.tags.length > 0 && (+ <Row>+ <Col span={6}> Tags </Col>+ <Col span={12}>+ <div className="ingestion-key-tags-container">+ <div className="ingestion-key-tags">+ {APIKey.tags.map((tag, index) => (+ // eslint-disable-next-line react/no-array-index-key+ <Tag key={`${tag}-${index}`}> {tag} </Tag>+ ))}+ </div></div>- </div>- </Col>- </Row>- )}+ </Col>+ </Row>+ )}<div className="limits-container"><h4 className=""> LIMITS </h4>@@ -1171,7 +1157,7 @@ function MultiIngestionSettings(): JSX.Element {enabled: value,},},- }+ }: null,);}}@@ -1261,7 +1247,7 @@ function MultiIngestionSettings(): JSX.Element {enabled: value,},},- }+ }: null,);}}diff --git a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/AccountActions.tsx b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/AccountActions.tsxindex ff94aa3f3a..50b75de260 100644--- a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/AccountActions.tsx+++ b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/AccountActions.tsx@@ -122,7 +122,7 @@ function AccountActions(): JSX.Element {() =>accounts?.length? getAccountById(accounts, urlQuery.get('cloudAccountId') || '') ||- accounts[0]+ accounts[0]: null,[accounts, urlQuery],);@@ -154,9 +154,8 @@ function AccountActions(): JSX.Element {logEvent('AWS Integration: Account connection attempt started', {});};- const [isAccountSettingsModalOpen, setIsAccountSettingsModalOpen] = useState(- false,- );+ const [isAccountSettingsModalOpen, setIsAccountSettingsModalOpen] =+ useState(false);const openAccountSettings = (): void => {setIsAccountSettingsModalOpen(true);logEvent('AWS Integration: Account settings viewed', {@@ -181,7 +180,7 @@ function AccountActions(): JSX.Element {? accounts.map((account) => ({value: account.cloud_account_id,label: account.providerAccountId,- }))+ })): [],[accounts],);diff --git a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/RegionSelector.tsx b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/RegionSelector.tsxindex 84c8ee08b6..e9aa2450c4 100644--- a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/RegionSelector.tsx+++ b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/RegionSelector.tsx@@ -14,15 +14,12 @@ export function RegionSelector({setSelectedRegions: Dispatch<SetStateAction<string[]>>;setIncludeAllRegions: Dispatch<SetStateAction<boolean>>;}): JSX.Element {- const {- allRegionIds,- handleSelectAll,- handleRegionSelect,- } = useRegionSelection({- selectedRegions,- setSelectedRegions,- setIncludeAllRegions,- });+ const { allRegionIds, handleSelectAll, handleRegionSelect } =+ useRegionSelection({+ selectedRegions,+ setSelectedRegions,+ setIncludeAllRegions,+ });return (<div className="region-selector">diff --git a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/RemoveIntegrationAccount.tsx b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/RemoveIntegrationAccount.tsxindex 475061f85e..1ee027f3b7 100644--- a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/RemoveIntegrationAccount.tsx+++ b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/HeroSection/components/RemoveIntegrationAccount.tsx@@ -24,22 +24,20 @@ function RemoveIntegrationAccount({setIsModalOpen(true);};- const {- mutate: disconnectAccount,- isLoading: isRemoveIntegrationLoading,- } = useDisconnectAccount({- mutation: {- onSuccess: () => {- onRemoveIntegrationAccountSuccess?.();- setIsModalOpen(false);+ const { mutate: disconnectAccount, isLoading: isRemoveIntegrationLoading } =+ useDisconnectAccount({+ mutation: {+ onSuccess: () => {+ onRemoveIntegrationAccountSuccess?.();+ setIsModalOpen(false);+ },+ onError: () => {+ notifications.error({+ message: SOMETHING_WENT_WRONG,+ });+ },},- onError: () => {- notifications.error({- message: SOMETHING_WENT_WRONG,- });- },- },- });+ });const handleOk = (): void => {logEvent(INTEGRATION_TELEMETRY_EVENTS.AWS_INTEGRATION_ACCOUNT_REMOVED, {accountId,diff --git a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServiceDetails/ServiceDetails.tsx b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServiceDetails/ServiceDetails.tsxindex c647aca1b5..b6387e4b66 100644--- a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServiceDetails/ServiceDetails.tsx+++ b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServiceDetails/ServiceDetails.tsx@@ -115,10 +115,8 @@ function ServiceDetails(): JSX.Element | null {}}, [cloudAccountId, serviceId]);- const {- mutate: updateService,- isLoading: isUpdatingServiceConfig,- } = useUpdateService();+ const { mutate: updateService, isLoading: isUpdatingServiceConfig } =+ useUpdateService();const queryClient = useQueryClient();diff --git a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServicesList.tsx b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServicesList.tsxindex 514bb34183..936db77131 100644--- a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServicesList.tsx+++ b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServicesList.tsx@@ -27,9 +27,10 @@ function ServicesList({ cloudAccountId }: ServicesListProps): JSX.Element {serviceQueryParams,);- const awsServices = useMemo(() => servicesMetadata?.data?.services ?? [], [- servicesMetadata,- ]);+ const awsServices = useMemo(+ () => servicesMetadata?.data?.services ?? [],+ [servicesMetadata],+ );const activeService = urlQuery.get('service');@@ -48,9 +49,10 @@ function ServicesList({ cloudAccountId }: ServicesListProps): JSX.Element {);// Derive from enabled to guarantee each service is in exactly one list- const enabledIds = useMemo(() => new Set(enabledServices.map((s) => s.id)), [- enabledServices,- ]);+ const enabledIds = useMemo(+ () => new Set(enabledServices.map((s) => s.id)),+ [enabledServices],+ );const notEnabledServices = useMemo(() => awsServices?.filter((s) => !enabledIds.has(s.id)) ?? [],[awsServices, enabledIds],diff --git a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/__tests__/ServiceDetailsS3Sync.test.tsx b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/__tests__/ServiceDetailsS3Sync.test.tsxindex 4a30ddd2e7..c75b92c532 100644--- a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/__tests__/ServiceDetailsS3Sync.test.tsx+++ b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/__tests__/ServiceDetailsS3Sync.test.tsx@@ -22,7 +22,7 @@ class ResizeObserverMock {disconnect(): void {}}-global.ResizeObserver = (ResizeObserverMock as unknown) as typeof ResizeObserver;+global.ResizeObserver = ResizeObserverMock as unknown as typeof ResizeObserver;// --- MOCKS ---jest.mock('components/MarkdownRenderer/MarkdownRenderer', () => ({diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContent.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContent.tsxindex 885429a98c..6ae57c9461 100644--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContent.tsx+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContent.tsx@@ -19,12 +19,8 @@ interface IntegrationDetailContentProps {function IntegrationDetailContent(props: IntegrationDetailContentProps,): JSX.Element {- const {- activeDetailTab,- integrationData,- integrationId,- setActiveDetailTab,- } = props;+ const { activeDetailTab, integrationData, integrationId, setActiveDetailTab } =+ props;const items: TabsProps['items'] = [{key: 'overview',diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailHeader.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailHeader.tsxindex a098009a35..96259b1450 100644--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailHeader.tsx+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailHeader.tsx@@ -265,14 +265,14 @@ function IntegrationDetailHeader(latestData.last_received_ts_ms? dayjs(latestData.last_received_ts_ms).format(DATE_TIME_FORMATS.MONTH_DATETIME_SHORT,- )+ ): ''}key={latestData.last_received_ts_ms? dayjs(latestData.last_received_ts_ms).format(DATE_TIME_FORMATS.MONTH_DATETIME_SHORT,- )+ ): ''}placement="right"@@ -281,7 +281,7 @@ function IntegrationDetailHeader({latestData.last_received_ts_ms? dayjs(latestData.last_received_ts_ms).format(DATE_TIME_FORMATS.MONTH_DATETIME_SHORT,- )+ ): ''}</Typography.Text></Tooltip>diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailPage.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailPage.tsxindex 1f9c69943d..4dfb9a815b 100644--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailPage.tsx+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailPage.tsx@@ -32,25 +32,17 @@ function IntegrationDetailPage(): JSX.Element {'overview',);- const {- data,- isLoading,- isFetching,- refetch,- isRefetching,- isError,- } = useGetIntegration({- integrationId: integrationId || '',- });+ const { data, isLoading, isFetching, refetch, isRefetching, isError } =+ useGetIntegration({+ integrationId: integrationId || '',+ });const { isCloudUser: isCloudUserVal } = useGetTenantLicense();- const {- data: integrationStatus,- isLoading: isStatusLoading,- } = useGetIntegrationStatus({- integrationId: integrationId || '',- });+ const { data: integrationStatus, isLoading: isStatusLoading } =+ useGetIntegrationStatus({+ integrationId: integrationId || '',+ });const loading = isLoading || isFetching || isRefetching || isStatusLoading;const integrationData = data?.data.data;diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationsUninstallBar.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationsUninstallBar.tsxindex 669a3acaa6..7cf937c53b 100644--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationsUninstallBar.tsx+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationsUninstallBar.tsx@@ -32,20 +32,18 @@ function IntergrationsUninstallBar(const { notifications } = useNotifications();const [isModalOpen, setIsModalOpen] = useState(false);- const {- mutate: uninstallIntegration,- isLoading: isUninstallLoading,- } = useMutation(unInstallIntegration, {- onSuccess: () => {- onUnInstallSuccess?.();- setIsModalOpen(false);- },- onError: () => {- notifications.error({- message: SOMETHING_WENT_WRONG,- });- },- });+ const { mutate: uninstallIntegration, isLoading: isUninstallLoading } =+ useMutation(unInstallIntegration, {+ onSuccess: () => {+ onUnInstallSuccess?.();+ setIsModalOpen(false);+ },+ onError: () => {+ notifications.error({+ message: SOMETHING_WENT_WRONG,+ });+ },+ });const showModal = (): void => {setIsModalOpen(true);diff --git a/frontend/src/container/Integrations/IntegrationsHeader/IntegrationsHeader.tsx b/frontend/src/container/Integrations/IntegrationsHeader/IntegrationsHeader.tsxindex b01a2247d8..6ed4f36705 100644--- a/frontend/src/container/Integrations/IntegrationsHeader/IntegrationsHeader.tsx+++ b/frontend/src/container/Integrations/IntegrationsHeader/IntegrationsHeader.tsx@@ -20,10 +20,8 @@ function IntegrationsHeader(props: IntegrationsHeaderProps): JSX.Element {const { user } = useAppContext();const { searchQuery, onSearchChange } = props;- const [- isRequestIntegrationDialogOpen,- setIsRequestIntegrationDialogOpen,- ] = useState(false);+ const [isRequestIntegrationDialogOpen, setIsRequestIntegrationDialogOpen] =+ useState(false);const [isSubmittingRequestForIntegration,@@ -32,9 +30,8 @@ function IntegrationsHeader(props: IntegrationsHeaderProps): JSX.Element {const [requestedIntegrationName, setRequestedIntegrationName] = useState('');- const isGetStartedWithCloudAllowed = routePermission.GET_STARTED_WITH_CLOUD.includes(- user.role,- );+ const isGetStartedWithCloudAllowed =+ routePermission.GET_STARTED_WITH_CLOUD.includes(user.role);const handleRequestIntegrationSubmit = async (): Promise<void> => {try {diff --git a/frontend/src/container/Integrations/IntegrationsList/IntegrationsList.tsx b/frontend/src/container/Integrations/IntegrationsList/IntegrationsList.tsxindex af5b592359..57e04a7686 100644--- a/frontend/src/container/Integrations/IntegrationsList/IntegrationsList.tsx+++ b/frontend/src/container/Integrations/IntegrationsList/IntegrationsList.tsx@@ -22,14 +22,8 @@ interface IntegrationsListProps {function IntegrationsList(props: IntegrationsListProps): JSX.Element {const { searchQuery, setSelectedIntegration } = props;- const {- data,- isFetching,- isLoading,- isRefetching,- isError,- refetch,- } = useGetAllIntegrations();+ const { data, isFetching, isLoading, isRefetching, isError, refetch } =+ useGetAllIntegrations();const { isCloudUser: isCloudUserVal } = useGetTenantLicense();diff --git a/frontend/src/container/ListAlertRules/ListAlert.tsx b/frontend/src/container/ListAlertRules/ListAlert.tsxindex eb219e789b..83e3bc353e 100644--- a/frontend/src/container/ListAlertRules/ListAlert.tsx+++ b/frontend/src/container/ListAlertRules/ListAlert.tsx@@ -145,46 +145,45 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {});};- const onCloneHandler = (- originalAlert: RuletypesRuleDTO,- ) => async (): Promise<void> => {- const copyAlert: RuletypesRuleDTO = {- ...originalAlert,- alert: `${originalAlert.alert} - Copy`,- };-- try {- setCloneLoader(true);- await createRule(copyAlert);-- notificationsApi.success({- message: 'Success',- description: 'Alert cloned successfully',- });-- const { data: refetchData, status } = await refetch();- const rules = refetchData?.data;- if (status === 'success' && rules) {- setData(rules);- setTimeout(() => {- const clonedAlert = rules[rules.length - 1];- params.set(QueryParams.ruleId, String(clonedAlert.id));- safeNavigate(`${ROUTES.EDIT_ALERTS}?${params.toString()}`);- }, 2000);- }- if (status === 'error') {- notificationsApi.error({- message: t('something_went_wrong'),+ const onCloneHandler =+ (originalAlert: RuletypesRuleDTO) => async (): Promise<void> => {+ const copyAlert: RuletypesRuleDTO = {+ ...originalAlert,+ alert: `${originalAlert.alert} - Copy`,+ };++ try {+ setCloneLoader(true);+ await createRule(copyAlert);++ notificationsApi.success({+ message: 'Success',+ description: 'Alert cloned successfully',});++ const { data: refetchData, status } = await refetch();+ const rules = refetchData?.data;+ if (status === 'success' && rules) {+ setData(rules);+ setTimeout(() => {+ const clonedAlert = rules[rules.length - 1];+ params.set(QueryParams.ruleId, String(clonedAlert.id));+ safeNavigate(`${ROUTES.EDIT_ALERTS}?${params.toString()}`);+ }, 2000);+ }+ if (status === 'error') {+ notificationsApi.error({+ message: t('something_went_wrong'),+ });+ }+ } catch (error) {+ showErrorModal(+ convertToApiError(error as AxiosError<RenderErrorResponseDTO>) as APIError,+ );+ } finally {+ setCloneLoader(false);}- } catch (error) {- showErrorModal(- convertToApiError(error as AxiosError<RenderErrorResponseDTO>) as APIError,- );- } finally {- setCloneLoader(false);- }- };+ };const handleSearch = useDebouncedFn((e: unknown) => {const value = (e as React.BaseSyntheticEvent).target.value.toLowerCase();@@ -399,8 +398,7 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {<TextToolTip{...{text: `More details on how to create alerts`,- url:- 'https://signoz.io/docs/alerts/?utm_source=product&utm_medium=list-alerts',+ url: 'https://signoz.io/docs/alerts/?utm_source=product&utm_medium=list-alerts',urlText: 'Learn More',}}/>diff --git a/frontend/src/container/ListOfDashboard/DashboardList.styles.scss b/frontend/src/container/ListOfDashboard/DashboardList.styles.scssindex 3dd3d1ff77..3f38359d8b 100644--- a/frontend/src/container/ListOfDashboard/DashboardList.styles.scss+++ b/frontend/src/container/ListOfDashboard/DashboardList.styles.scss@@ -224,7 +224,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 12px;font-style: normal;@@ -249,7 +253,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 12px;font-style: normal;@@ -273,7 +281,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 12px;font-style: normal;@@ -307,7 +319,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 12px;font-style: normal;@@ -328,7 +344,11 @@> a {color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums slashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'case' on, 'cpsp' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'case' on,+ 'cpsp' on;font-size: var(--font-size-sm);font-style: normal;font-weight: var(--font-weight-normal);@@ -932,7 +952,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 12.805px;font-style: normal;@@ -966,7 +990,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 12.805px;font-style: normal;@@ -988,7 +1016,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 12.805px;font-style: normal;@@ -1022,7 +1054,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 12.805px;font-style: normal;diff --git a/frontend/src/container/ListOfDashboard/DashboardsList.tsx b/frontend/src/container/ListOfDashboard/DashboardsList.tsxindex e74058a3e0..81dc719378 100644--- a/frontend/src/container/ListOfDashboard/DashboardsList.tsx+++ b/frontend/src/container/ListOfDashboard/DashboardsList.tsx@@ -116,10 +116,8 @@ function DashboardsList(): JSX.Element {const { user } = useAppContext();const { safeNavigate } = useSafeNavigate();- const {- dashboardsListQueryParams,- updateDashboardsListQueryParams,- } = useDashboardsListQueryParams();+ const { dashboardsListQueryParams, updateDashboardsListQueryParams } =+ useDashboardsListQueryParams();const { isCloudUser: isCloudUserVal } = useGetTenantLicense();@@ -131,22 +129,17 @@ function DashboardsList(): JSX.Element {user.role,);- const [- showNewDashboardTemplatesModal,- setShowNewDashboardTemplatesModal,- ] = useState(false);+ const [showNewDashboardTemplatesModal, setShowNewDashboardTemplatesModal] =+ useState(false);const { t } = useTranslation('dashboard');- const [- isImportJSONModalVisible,- setIsImportJSONModalVisible,- ] = useState<boolean>(false);+ const [isImportJSONModalVisible, setIsImportJSONModalVisible] =+ useState<boolean>(false);const [uploadedGrafana, setUploadedGrafana] = useState<boolean>(false);- const [isConfigureMetadataOpen, setIsConfigureMetadata] = useState<boolean>(- false,- );+ const [isConfigureMetadataOpen, setIsConfigureMetadata] =+ useState<boolean>(false);const getLocalStorageDynamicColumns = (): DashboardDynamicColumns => {const dashboardDynamicColumnsString = getLocalStorageKey('dashboard');diff --git a/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx b/frontend/src/container/ListOfDashboard/ImportJSON/index.tsxindex b97ef63cc9..efafce4aff 100644--- a/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx+++ b/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx@@ -39,9 +39,8 @@ function ImportJSON({const [jsonData, setJsonData] = useState<Record<string, unknown>>();const { t } = useTranslation(['dashboard', 'common']);const [isUploadJSONError, setIsUploadJSONError] = useState<boolean>(false);- const [isCreateDashboardError, setIsCreateDashboardError] = useState<boolean>(- false,- );+ const [isCreateDashboardError, setIsCreateDashboardError] =+ useState<boolean>(false);const [dashboardCreating, setDashboardCreating] = useState<boolean>(false);diff --git a/frontend/src/container/ListOfDashboard/RequestDashboardBtn.tsx b/frontend/src/container/ListOfDashboard/RequestDashboardBtn.tsxindex cbd564fa90..da8b56dcae 100644--- a/frontend/src/container/ListOfDashboard/RequestDashboardBtn.tsx+++ b/frontend/src/container/ListOfDashboard/RequestDashboardBtn.tsx@@ -9,10 +9,8 @@ import { Check } from 'lucide-react';import '../Integrations/Integrations.styles.scss';export function RequestDashboardBtn(): JSX.Element {- const [- isSubmittingRequestForDashboard,- setIsSubmittingRequestForDashboard,- ] = useState(false);+ const [isSubmittingRequestForDashboard, setIsSubmittingRequestForDashboard] =+ useState(false);const [requestedDashboardName, setRequestedDashboardName] = useState('');diff --git a/frontend/src/container/ListOfDashboard/SearchFilter/utils.ts b/frontend/src/container/ListOfDashboard/SearchFilter/utils.tsindex 1f3d0be4b8..7937f7ccbb 100644--- a/frontend/src/container/ListOfDashboard/SearchFilter/utils.ts+++ b/frontend/src/container/ListOfDashboard/SearchFilter/utils.ts@@ -125,7 +125,7 @@ export function OptionsValueResolution(? {name: searchItem.data.description,value: searchItem.data.description,- }+ }: null,).filter(Boolean),(prev, next) => prev?.name === next?.name,diff --git a/frontend/src/container/LiveLogs/LiveLogsContainer/index.tsx b/frontend/src/container/LiveLogs/LiveLogsContainer/index.tsxindex 6412752760..3abc5c0055 100644--- a/frontend/src/container/LiveLogs/LiveLogsContainer/index.tsx+++ b/frontend/src/container/LiveLogs/LiveLogsContainer/index.tsx@@ -32,9 +32,8 @@ function LiveLogsContainer({const location = useLocation();const [logs, setLogs] = useState<ILiveLogsLog[]>([]);const { currentQuery, stagedQuery } = useQueryBuilder();- const [showLiveLogsFrequencyChart, setShowLiveLogsFrequencyChart] = useState(- true,- );+ const [showLiveLogsFrequencyChart, setShowLiveLogsFrequencyChart] =+ useState(true);const listQuery = useMemo(() => {if (!stagedQuery || stagedQuery.builder.queryData.length < 1) {diff --git a/frontend/src/container/LiveLogs/LiveLogsList/index.tsx b/frontend/src/container/LiveLogs/LiveLogsList/index.tsxindex 29541926c8..f4a56d32f5 100644--- a/frontend/src/container/LiveLogs/LiveLogsList/index.tsx+++ b/frontend/src/container/LiveLogs/LiveLogsList/index.tsx@@ -124,19 +124,20 @@ function LiveLogsList({);const makeOnLogCopy = useCallback(- (log: ILog) => (event: MouseEvent<HTMLElement>): void => {- event.preventDefault();- event.stopPropagation();- const urlQuery = new URLSearchParams(window.location.search);- urlQuery.delete(QueryParams.activeLogId);- urlQuery.delete(QueryParams.relativeTime);- urlQuery.set(QueryParams.activeLogId, `"${log.id}"`);- const link = getAbsoluteUrl(- `${window.location.pathname}?${urlQuery.toString()}`,- );- setCopy(link);- toast.success('Copied to clipboard', { position: 'top-right' });- },+ (log: ILog) =>+ (event: MouseEvent<HTMLElement>): void => {+ event.preventDefault();+ event.stopPropagation();+ const urlQuery = new URLSearchParams(window.location.search);+ urlQuery.delete(QueryParams.activeLogId);+ urlQuery.delete(QueryParams.relativeTime);+ urlQuery.set(QueryParams.activeLogId, `"${log.id}"`);+ const link = getAbsoluteUrl(+ `${window.location.pathname}?${urlQuery.toString()}`,+ );+ setCopy(link);+ toast.success('Copied to clipboard', { position: 'top-right' });+ },[setCopy],);@@ -251,7 +252,7 @@ function LiveLogsList({isDarkMode,getLogIndicatorType(log),),- } as CSSProperties)+ }) as CSSProperties}onRowClick={(log): void => {handleSetActiveLog(log);diff --git a/frontend/src/container/LiveLogsTopNav/styles.ts b/frontend/src/container/LiveLogsTopNav/styles.tsindex 1fb150e1e0..b368ea83f5 100644--- a/frontend/src/container/LiveLogsTopNav/styles.ts+++ b/frontend/src/container/LiveLogsTopNav/styles.ts@@ -14,6 +14,6 @@ export const LiveButtonStyled = styled(Button)<ButtonProps>`&:active {background-color: #1eb475 !important;}- `+ `: css``}`;diff --git a/frontend/src/container/LogDetailedView/ContextView/useContextLogData.ts b/frontend/src/container/LogDetailedView/ContextView/useContextLogData.tsindex f1c7fe2a34..b1b174152f 100644--- a/frontend/src/container/LogDetailedView/ContextView/useContextLogData.ts+++ b/frontend/src/container/LogDetailedView/ContextView/useContextLogData.ts@@ -55,9 +55,10 @@ export const useContextLogData = ({const orderByTimestamp = useMemo(() => getOrderByTimestamp(order), [order]);- const logsMorePageSize = useMemo(() => (page - 1) * LOGS_MORE_PAGE_SIZE, [- page,- ]);+ const logsMorePageSize = useMemo(+ () => (page - 1) * LOGS_MORE_PAGE_SIZE,+ [page],+ );const initialPageSize =fontSize && fontSize === FontSize.SMALL@@ -67,10 +68,10 @@ export const useContextLogData = ({() => (page <= 1 ? initialPageSize : logsMorePageSize + initialPageSize),[page, initialPageSize, logsMorePageSize],);- const isDisabledFetch = useMemo(() => logs.length < pageSize, [- logs.length,- pageSize,- ]);+ const isDisabledFetch = useMemo(+ () => logs.length < pageSize,+ [logs.length, pageSize],+ );const currentStagedQueryData = useMemo(() => {if (!query || query.builder.queryData.length !== 1) {diff --git a/frontend/src/container/LogDetailedView/Overview.tsx b/frontend/src/container/LogDetailedView/Overview.tsxindex b127379086..50581b2300 100644--- a/frontend/src/container/LogDetailedView/Overview.tsx+++ b/frontend/src/container/LogDetailedView/Overview.tsx@@ -40,9 +40,8 @@ function Overview({}: Props): JSX.Element {const [isWrapWord, setIsWrapWord] = useState<boolean>(true);const [isSearchVisible, setIsSearchVisible] = useState<boolean>(true);- const [isAttributesExpanded, setIsAttributesExpanded] = useState<boolean>(- true,- );+ const [isAttributesExpanded, setIsAttributesExpanded] =+ useState<boolean>(true);const [fieldSearchInput, setFieldSearchInput] = useState<string>('');const isDarkMode = useIsDarkMode();diff --git a/frontend/src/container/LogDetailedView/TableView.tsx b/frontend/src/container/LogDetailedView/TableView.tsxindex c1c4dbeaac..55aae8bb76 100644--- a/frontend/src/container/LogDetailedView/TableView.tsx+++ b/frontend/src/container/LogDetailedView/TableView.tsx@@ -136,21 +136,23 @@ function TableView({}};- const onClickHandler = (- operator: string,- fieldKey: string,- fieldValue: string,- dataType: string | undefined,- fieldType: MetricsType | undefined,- ) => (): void => {- handleClick(operator, fieldKey, fieldValue, dataType, fieldType);- if (operator === OPERATORS['=']) {- setIsFilterInLoading(true);- }- if (operator === OPERATORS['!=']) {- setIsFilterOutLoading(true);- }- };+ const onClickHandler =+ (+ operator: string,+ fieldKey: string,+ fieldValue: string,+ dataType: string | undefined,+ fieldType: MetricsType | undefined,+ ) =>+ (): void => {+ handleClick(operator, fieldKey, fieldValue, dataType, fieldType);+ if (operator === OPERATORS['=']) {+ setIsFilterInLoading(true);+ }+ if (operator === OPERATORS['!=']) {+ setIsFilterOutLoading(true);+ }+ };if (logData === null) {return null;diff --git a/frontend/src/container/LogDetailedView/TableView/TableViewActions.tsx b/frontend/src/container/LogDetailedView/TableView/TableViewActions.tsxindex 5d277ac7d6..621f2433df 100644--- a/frontend/src/container/LogDetailedView/TableView/TableViewActions.tsx+++ b/frontend/src/container/LogDetailedView/TableView/TableViewActions.tsx@@ -356,7 +356,95 @@ export default function TableViewActions(bodyHtml={bodyHtml}textToCopy={textToCopy}/>- {!isListViewPanel && !RESTRICTED_SELECTED_FIELDS.includes(fieldFilterKey) && (+ {!isListViewPanel &&+ !RESTRICTED_SELECTED_FIELDS.includes(fieldFilterKey) && (+ <span className="action-btn">+ <Tooltip title="Filter for value" mouseLeaveDelay={0}>+ <Button+ className="filter-btn periscope-btn"+ icon={+ isfilterInLoading ? (+ <Spin size="small" />+ ) : (+ <ArrowDownToDot size={14} style={{ transform: 'rotate(90deg)' }} />+ )+ }+ onClick={onClickHandler(+ OPERATORS['='],+ fieldFilterKey,+ parseFieldValue(fieldData.value),+ dataType,+ fieldType,+ )}+ />+ </Tooltip>+ <Tooltip title="Filter out value" mouseLeaveDelay={0}>+ <Button+ className="filter-btn periscope-btn"+ icon={+ isfilterOutLoading ? (+ <Spin size="small" />+ ) : (+ <ArrowUpFromDot size={14} style={{ transform: 'rotate(90deg)' }} />+ )+ }+ onClick={onClickHandler(+ OPERATORS['!='],+ fieldFilterKey,+ parseFieldValue(fieldData.value),+ dataType,+ fieldType,+ )}+ />+ </Tooltip>+ {!isOldLogsExplorerOrLiveLogsPage && (+ <Popover+ open={isOpen}+ onOpenChange={setIsOpen}+ arrow={false}+ content={+ <div data-log-detail-ignore="true">+ <Button+ className="more-filter-actions"+ type="text"+ icon={<GroupByIcon />}+ onClick={handleGroupByAttribute}+ >+ Group By Attribute+ </Button>+ <Button+ className="more-filter-actions"+ type="text"+ icon={<RefreshCw size={14} />}+ onClick={handleReplaceFilter}+ >+ Replace filters with this value+ </Button>+ </div>+ }+ rootClassName="table-view-actions-content"+ trigger="hover"+ placement="bottomLeft"+ >+ <Button+ icon={<Ellipsis size={14} />}+ className="filter-btn periscope-btn"+ />+ </Popover>+ )}+ </span>+ )}+ </div>+ );+ }++ return (+ <div className={cx('value-field', isOpen ? 'open-popover' : '')}>+ <CopyClipboardHOC entityKey={fieldFilterKey} textToCopy={textToCopy}>+ {renderFieldContent()}+ </CopyClipboardHOC>+ {!isListViewPanel &&+ !RESTRICTED_SELECTED_FIELDS.includes(fieldFilterKey) && (<span className="action-btn"><Tooltip title="Filter for value" mouseLeaveDelay={0}><Button@@ -433,92 +521,6 @@ export default function TableViewActions()}</span>)}- </div>- );- }-- return (- <div className={cx('value-field', isOpen ? 'open-popover' : '')}>- <CopyClipboardHOC entityKey={fieldFilterKey} textToCopy={textToCopy}>- {renderFieldContent()}- </CopyClipboardHOC>- {!isListViewPanel && !RESTRICTED_SELECTED_FIELDS.includes(fieldFilterKey) && (- <span className="action-btn">- <Tooltip title="Filter for value" mouseLeaveDelay={0}>- <Button- className="filter-btn periscope-btn"- icon={- isfilterInLoading ? (- <Spin size="small" />- ) : (- <ArrowDownToDot size={14} style={{ transform: 'rotate(90deg)' }} />- )- }- onClick={onClickHandler(- OPERATORS['='],- fieldFilterKey,- parseFieldValue(fieldData.value),- dataType,- fieldType,- )}- />- </Tooltip>- <Tooltip title="Filter out value" mouseLeaveDelay={0}>- <Button- className="filter-btn periscope-btn"- icon={- isfilterOutLoading ? (- <Spin size="small" />- ) : (- <ArrowUpFromDot size={14} style={{ transform: 'rotate(90deg)' }} />- )- }- onClick={onClickHandler(- OPERATORS['!='],- fieldFilterKey,- parseFieldValue(fieldData.value),- dataType,- fieldType,- )}- />- </Tooltip>- {!isOldLogsExplorerOrLiveLogsPage && (- <Popover- open={isOpen}- onOpenChange={setIsOpen}- arrow={false}- content={- <div data-log-detail-ignore="true">- <Button- className="more-filter-actions"- type="text"- icon={<GroupByIcon />}- onClick={handleGroupByAttribute}- >- Group By Attribute- </Button>- <Button- className="more-filter-actions"- type="text"- icon={<RefreshCw size={14} />}- onClick={handleReplaceFilter}- >- Replace filters with this value- </Button>- </div>- }- rootClassName="table-view-actions-content"- trigger="hover"- placement="bottomLeft"- >- <Button- icon={<Ellipsis size={14} />}- className="filter-btn periscope-btn"- />- </Popover>- )}- </span>- )}</div>);}diff --git a/frontend/src/container/LogExplorerQuerySection/LogExplorerQuerySection.test.tsx b/frontend/src/container/LogExplorerQuerySection/LogExplorerQuerySection.test.tsxindex b9c151f49b..abbe018434 100644--- a/frontend/src/container/LogExplorerQuerySection/LogExplorerQuerySection.test.tsx+++ b/frontend/src/container/LogExplorerQuerySection/LogExplorerQuerySection.test.tsx@@ -49,7 +49,7 @@ beforeAll(() => {const mockRange = {// CodeMirror uses these for text measurement- getClientRects: (): DOMRectList => (rectList as unknown) as DOMRectList,+ getClientRects: (): DOMRectList => rectList as unknown as DOMRectList,getBoundingClientRect: (): DOMRect => mockRect,// CodeMirror calls these to set up text rangessetStart: (node: Node, offset: number): void => {@@ -78,7 +78,7 @@ beforeAll(() => {},commonAncestorContainer: document.body,};- return (mockRange as unknown) as Range;+ return mockRange as unknown as Range;};// Mock document.createRange to return a new Range instance each time@@ -155,7 +155,7 @@ const createMockQuery = (filterExpression?: string): Query => ({filter: filterExpression? {expression: filterExpression,- }+ }: undefined,functions: [],groupBy: [diff --git a/frontend/src/container/LogLiveTail/index.tsx b/frontend/src/container/LogLiveTail/index.tsxindex cc28692eb3..ac7b2a5138 100644--- a/frontend/src/container/LogLiveTail/index.tsx+++ b/frontend/src/container/LogLiveTail/index.tsx@@ -76,9 +76,10 @@ function LogLiveTail({ getLogsAggregate }: Props): JSX.Element {batchedEventsRef.current = [];}, [dispatch]);- const pushLiveLogThrottled = useMemo(() => throttle(pushLiveLog, 1000), [- pushLiveLog,- ]);+ const pushLiveLogThrottled = useMemo(+ () => throttle(pushLiveLog, 1000),+ [pushLiveLog],+ );const batchLiveLog = useCallback((e: { data: string }): void => {@@ -102,7 +103,7 @@ function LogLiveTail({ getLogsAggregate }: Props): JSX.Element {...(liveTailSourceRef.current && firstLogsId? {idGt: firstLogsId,- }+ }: {}),});@@ -190,9 +191,10 @@ function LogLiveTail({ getLogsAggregate }: Props): JSX.Element {[dispatch, liveTail, liveTailStartRange],);- const isDisabled = useMemo(() => selectedAutoRefreshInterval?.length > 0, [- selectedAutoRefreshInterval,- ]);+ const isDisabled = useMemo(+ () => selectedAutoRefreshInterval?.length > 0,+ [selectedAutoRefreshInterval],+ );const onLiveTailStop = (): void => {handleLiveTail('STOPPED');diff --git a/frontend/src/container/LogsContextList/index.tsx b/frontend/src/container/LogsContextList/index.tsxindex 6c222aa9ff..6c6cdb3b68 100644--- a/frontend/src/container/LogsContextList/index.tsx+++ b/frontend/src/container/LogsContextList/index.tsx@@ -50,17 +50,18 @@ function LogsContextList({const lastLog = useMemo(() => logs[logs.length - 1], [logs]);const orderByTimestamp = useMemo(() => getOrderByTimestamp(order), [order]);- const logsMorePageSize = useMemo(() => (page - 1) * LOGS_MORE_PAGE_SIZE, [- page,- ]);+ const logsMorePageSize = useMemo(+ () => (page - 1) * LOGS_MORE_PAGE_SIZE,+ [page],+ );const pageSize = useMemo(() => (page <= 1 ? INITIAL_PAGE_SIZE : logsMorePageSize + INITIAL_PAGE_SIZE),[page, logsMorePageSize],);- const isDisabledFetch = useMemo(() => logs.length < pageSize, [- logs.length,- pageSize,- ]);+ const isDisabledFetch = useMemo(+ () => logs.length < pageSize,+ [logs.length, pageSize],+ );const currentStagedQueryData = useMemo(() => {if (!query || query.builder.queryData.length !== 1) {diff --git a/frontend/src/container/LogsExplorerChart/index.tsx b/frontend/src/container/LogsExplorerChart/index.tsxindex 5dc6348a43..14b4e8ed3d 100644--- a/frontend/src/container/LogsExplorerChart/index.tsx+++ b/frontend/src/container/LogsExplorerChart/index.tsx@@ -37,23 +37,24 @@ function LogsExplorerChart({const { minTime, maxTime } = useSelector<AppState, GlobalReducer>((state) => state.globalTime,);- const handleCreateDatasets: Required<GetChartDataProps>['createDataset'] = useCallback(- (element, index, allLabels) => ({- data: element,- backgroundColor: isLogsExplorerViews- ? getColorsForSeverityLabels(allLabels[index], index)- : colors[index % colors.length] || themeColors.red,- borderColor: isLogsExplorerViews- ? getColorsForSeverityLabels(allLabels[index], index)- : colors[index % colors.length] || themeColors.red,- ...(isLabelEnabled- ? {- label: allLabels[index],- }- : {}),- }),- [isLabelEnabled, isLogsExplorerViews],- );+ const handleCreateDatasets: Required<GetChartDataProps>['createDataset'] =+ useCallback(+ (element, index, allLabels) => ({+ data: element,+ backgroundColor: isLogsExplorerViews+ ? getColorsForSeverityLabels(allLabels[index], index)+ : colors[index % colors.length] || themeColors.red,+ borderColor: isLogsExplorerViews+ ? getColorsForSeverityLabels(allLabels[index], index)+ : colors[index % colors.length] || themeColors.red,+ ...(isLabelEnabled+ ? {+ label: allLabels[index],+ }+ : {}),+ }),+ [isLabelEnabled, isLogsExplorerViews],+ );const onDragSelect = useCallback((start: number, end: number): void => {diff --git a/frontend/src/container/LogsExplorerContext/__tests__/useInitialQuery.test.ts b/frontend/src/container/LogsExplorerContext/__tests__/useInitialQuery.test.tsindex 329a176361..15ad7eb1e4 100644--- a/frontend/src/container/LogsExplorerContext/__tests__/useInitialQuery.test.ts+++ b/frontend/src/container/LogsExplorerContext/__tests__/useInitialQuery.test.ts@@ -81,9 +81,9 @@ describe('useInitialQuery - Priority-Based Resource Filtering', () => {jest.clearAllMocks();// Setup useQueryBuilder mock - only mock what we need- mockedUseQueryBuilder.mockReturnValue(({+ mockedUseQueryBuilder.mockReturnValue({updateAllQueriesOperators: mockUpdateAllQueriesOperators,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);// Setup the mock to return base querymockUpdateAllQueriesOperators.mockReturnValue(mockBaseQuery);diff --git a/frontend/src/container/LogsExplorerList/InfinityTableView/TableRow.tsx b/frontend/src/container/LogsExplorerList/InfinityTableView/TableRow.tsxindex 13ffae8d02..27ca3da5d6 100644--- a/frontend/src/container/LogsExplorerList/InfinityTableView/TableRow.tsx+++ b/frontend/src/container/LogsExplorerList/InfinityTableView/TableRow.tsx@@ -25,7 +25,7 @@ interface TableRowProps {log: Record<string, unknown>;onShowLogDetails?: (log: ILog,- selectedTab?: typeof VIEW_TYPES[keyof typeof VIEW_TYPES],+ selectedTab?: (typeof VIEW_TYPES)[keyof typeof VIEW_TYPES],) => void;logs: ILog[];hasActions: boolean;@@ -47,10 +47,10 @@ export default function TableRow({}: TableRowProps): JSX.Element {const isDarkMode = useIsDarkMode();- const currentLog = useMemo(() => logs.find(({ id }) => id === log.id), [- logs,- log.id,- ]);+ const currentLog = useMemo(+ () => logs.find(({ id }) => id === log.id),+ [logs, log.id],+ );const { onLogCopy, isLogsExplorerPage } = useCopyLogLink(currentLog?.id);diff --git a/frontend/src/container/LogsExplorerList/InfinityTableView/styles.ts b/frontend/src/container/LogsExplorerList/InfinityTableView/styles.tsindex b5e84f98fd..3eed2b482e 100644--- a/frontend/src/container/LogsExplorerList/InfinityTableView/styles.ts+++ b/frontend/src/container/LogsExplorerList/InfinityTableView/styles.ts@@ -104,10 +104,10 @@ export const TableCellStyled = styled.td<TableHeaderCellStyledProps>`fontSize === FontSize.SMALL? `padding:0.3rem;`: fontSize === FontSize.MEDIUM- ? `padding:0.4rem;`- : fontSize === FontSize.LARGE- ? `padding:0.5rem;`- : ``}+ ? `padding:0.4rem;`+ : fontSize === FontSize.LARGE+ ? `padding:0.5rem;`+ : ``}background-color: ${(props): string =>props.$isDarkMode ? 'inherit' : themeColors.whiteCream};@@ -192,10 +192,10 @@ export const TableHeaderCellStyled = styled.th<TableHeaderCellStyledProps>`fontSize === FontSize.SMALL? `font-size:11px; line-height:16px; padding: 0.1rem;`: fontSize === FontSize.MEDIUM- ? `font-size:13px; line-height:20px; padding:0.3rem;`- : fontSize === FontSize.LARGE- ? `font-size:14px; line-height:24px; padding: 0.5rem;`- : ``};+ ? `font-size:13px; line-height:20px; padding:0.3rem;`+ : fontSize === FontSize.LARGE+ ? `font-size:14px; line-height:24px; padding: 0.5rem;`+ : ``};${({ $isLogIndicator }): string =>$isLogIndicator ? 'padding: 0px; width: 1%;' : ''}border-top: 1px solid var(--l2-border);diff --git a/frontend/src/container/LogsExplorerList/InfinityTableView/types.ts b/frontend/src/container/LogsExplorerList/InfinityTableView/types.tsindex 4c03cbedee..d8795b75a9 100644--- a/frontend/src/container/LogsExplorerList/InfinityTableView/types.ts+++ b/frontend/src/container/LogsExplorerList/InfinityTableView/types.ts@@ -15,7 +15,7 @@ export type InfinityTableProps = {logs?: ILog[];onSetActiveLog?: (log: ILog,- selectedTab?: typeof VIEW_TYPES[keyof typeof VIEW_TYPES],+ selectedTab?: (typeof VIEW_TYPES)[keyof typeof VIEW_TYPES],) => void;onClearActiveLog?: () => void;activeLog?: ILog | null;diff --git a/frontend/src/container/LogsExplorerList/index.tsx b/frontend/src/container/LogsExplorerList/index.tsxindex 625c6ab65f..5a348229e5 100644--- a/frontend/src/container/LogsExplorerList/index.tsx+++ b/frontend/src/container/LogsExplorerList/index.tsx@@ -88,11 +88,8 @@ function LogsExplorerList({currentStagedQueryData?.aggregateOperator || StringOperators.NOOP,});- const {- currentQuery,- lastUsedQuery,- redirectWithQueryBuilderData,- } = useQueryBuilder();+ const { currentQuery, lastUsedQuery, redirectWithQueryBuilderData } =+ useQueryBuilder();const activeLogIndex = useMemo(() => logs.findIndex(({ id }) => id === activeLogId),@@ -131,19 +128,20 @@ function LogsExplorerList({});const makeOnLogCopy = useCallback(- (log: ILog) => (event: MouseEvent<HTMLElement>): void => {- event.preventDefault();- event.stopPropagation();- const urlQuery = new URLSearchParams(window.location.search);- urlQuery.delete(QueryParams.activeLogId);- urlQuery.delete(QueryParams.relativeTime);- urlQuery.set(QueryParams.activeLogId, `"${log.id}"`);- const link = getAbsoluteUrl(- `${window.location.pathname}?${urlQuery.toString()}`,- );- setCopy(link);- toast.success('Copied to clipboard', { position: 'top-right' });- },+ (log: ILog) =>+ (event: MouseEvent<HTMLElement>): void => {+ event.preventDefault();+ event.stopPropagation();+ const urlQuery = new URLSearchParams(window.location.search);+ urlQuery.delete(QueryParams.activeLogId);+ urlQuery.delete(QueryParams.relativeTime);+ urlQuery.set(QueryParams.activeLogId, `"${log.id}"`);+ const link = getAbsoluteUrl(+ `${window.location.pathname}?${urlQuery.toString()}`,+ );+ setCopy(link);+ toast.success('Copied to clipboard', { position: 'top-right' });+ },[setCopy],);@@ -230,7 +228,7 @@ function LogsExplorerList({const components = isLoading? {Footer,- }+ }: {};if (options.format === 'table') {@@ -258,7 +256,7 @@ function LogsExplorerList({isDarkMode,getLogIndicatorType(log),),- } as CSSProperties)+ }) as CSSProperties}onRowClick={(log): void => {handleSetActiveLog(log);diff --git a/frontend/src/container/LogsExplorerList/utils.ts b/frontend/src/container/LogsExplorerList/utils.tsindex d92e31c3a3..1178434e39 100644--- a/frontend/src/container/LogsExplorerList/utils.ts+++ b/frontend/src/container/LogsExplorerList/utils.ts@@ -63,8 +63,7 @@ export const getEmptyLogsListConfig = (},{text: 'Correlate traces and logs',- url:- 'https://signoz.io/docs/traces-management/guides/correlate-traces-and-logs/',+ url: 'https://signoz.io/docs/traces-management/guides/correlate-traces-and-logs/',},],clearFiltersButtonText: 'Clear filters from Trace to view other logs',diff --git a/frontend/src/container/LogsExplorerViews/explorerUtils.ts b/frontend/src/container/LogsExplorerViews/explorerUtils.tsindex 4eaabe179d..98de893206 100644--- a/frontend/src/container/LogsExplorerViews/explorerUtils.ts+++ b/frontend/src/container/LogsExplorerViews/explorerUtils.ts@@ -39,7 +39,8 @@ export const getFrequencyChartData = (let updatedFilterExpression = baseFirstQuery.filter?.expression || '';if (activeLogId) {- updatedFilterExpression = `${updatedFilterExpression} id <= '${activeLogId}'`.trim();+ updatedFilterExpression =+ `${updatedFilterExpression} id <= '${activeLogId}'`.trim();}const modifiedQueryData: IBuilderQuery = {@@ -143,7 +144,8 @@ export const getQueryByPanelType = (],op: 'AND',};- updatedFilterExpression = `${updatedFilterExpression} id <= '${activeLogId}'`.trim();+ updatedFilterExpression =+ `${updatedFilterExpression} id <= '${activeLogId}'`.trim();}// Create orderBy array based on orderDirectiondiff --git a/frontend/src/container/LogsExplorerViews/index.tsx b/frontend/src/container/LogsExplorerViews/index.tsxindex 4516213ac8..a4f369e3bb 100644--- a/frontend/src/container/LogsExplorerViews/index.tsx+++ b/frontend/src/container/LogsExplorerViews/index.tsx@@ -113,9 +113,10 @@ function LogsExplorerViewsContainer({const { yAxisUnit, onUnitChange } = useUrlYAxisUnit('');- const listQuery = useMemo(() => getListQuery(stagedQuery) || null, [- stagedQuery,- ]);+ const listQuery = useMemo(+ () => getListQuery(stagedQuery) || null,+ [stagedQuery],+ );const isLimit: boolean = useMemo(() => {if (!listQuery) {@@ -159,37 +160,33 @@ function LogsExplorerViewsContainer({'custom',);- const {- data,- isLoading,- isFetching,- isError,- isSuccess,- error,- } = useGetExplorerQueryRange(- requestData,- selectedPanelType,- ENTITY_VERSION_V5,- {- keepPreviousData: true,- enabled: !isLimit && !!requestData,- },- {- ...(activeLogId &&- !logs.length && {- start: minTime,- end: maxTime,- }),- },- undefined,- listQueryKeyRef,- {- ...(!isEmpty(queryId) &&- selectedPanelType !== PANEL_TYPES.LIST && { 'X-SIGNOZ-QUERY-ID': queryId }),- },- // custom selected time interval to prevent recalculating the start and end timestamps before fetching next pages- 'custom',- );+ const { data, isLoading, isFetching, isError, isSuccess, error } =+ useGetExplorerQueryRange(+ requestData,+ selectedPanelType,+ ENTITY_VERSION_V5,+ {+ keepPreviousData: true,+ enabled: !isLimit && !!requestData,+ },+ {+ ...(activeLogId &&+ !logs.length && {+ start: minTime,+ end: maxTime,+ }),+ },+ undefined,+ listQueryKeyRef,+ {+ ...(!isEmpty(queryId) &&+ selectedPanelType !== PANEL_TYPES.LIST && {+ 'X-SIGNOZ-QUERY-ID': queryId,+ }),+ },+ // custom selected time interval to prevent recalculating the start and end timestamps before fetching next pages+ 'custom',+ );const getRequestData = useCallback((diff --git a/frontend/src/container/LogsExplorerViews/tests/LogsExplorerPagination.test.tsx b/frontend/src/container/LogsExplorerViews/tests/LogsExplorerPagination.test.tsxindex 49c7732190..7b43027216 100644--- a/frontend/src/container/LogsExplorerViews/tests/LogsExplorerPagination.test.tsx+++ b/frontend/src/container/LogsExplorerViews/tests/LogsExplorerPagination.test.tsx@@ -39,24 +39,26 @@ jest.mock('store/actions', () => {return {...originalModule,- UpdateTimeInterval: (- interval: any,- dateTimeRange: [number, number] = [0, 0],- ): ((dispatch: any) => void) => (): void => {- // Get the original min and max times- const { maxTime: originalMaxTime, minTime: originalMinTime } = GetMinMax(- interval,- dateTimeRange,- );-- // Add 5 minutes to both times to ensure they are different- const fiveMinutesInNanoseconds = 5 * 60 * 1000 * 1000000;- const maxTime = originalMaxTime + fiveMinutesInNanoseconds;- const minTime = originalMinTime + fiveMinutesInNanoseconds;-- // Update the mock state- mockGlobalTimeState = { minTime, maxTime, selectedTime: interval };- },+ UpdateTimeInterval:+ (+ interval: any,+ dateTimeRange: [number, number] = [0, 0],+ ): ((dispatch: any) => void) =>+ (): void => {+ // Get the original min and max times+ const { maxTime: originalMaxTime, minTime: originalMinTime } = GetMinMax(+ interval,+ dateTimeRange,+ );++ // Add 5 minutes to both times to ensure they are different+ const fiveMinutesInNanoseconds = 5 * 60 * 1000 * 1000000;+ const maxTime = originalMaxTime + fiveMinutesInNanoseconds;+ const minTime = originalMinTime + fiveMinutesInNanoseconds;++ // Update the mock state+ mockGlobalTimeState = { minTime, maxTime, selectedTime: interval };+ },};});@@ -188,7 +190,7 @@ export const verifyPayload = ({const queryA = payload.compositeQuery.queries?.find((q) => q.spec?.name === 'A',);- const queryData = (queryA?.spec as unknown) as IBuilderQuery;+ const queryData = queryA?.spec as unknown as IBuilderQuery;expect(queryData).toBeDefined();// Assert that the offset in the payload matches the expected offsetexpect(queryData.offset).toBe(expectedOffset);diff --git a/frontend/src/container/LogsFilters/index.tsx b/frontend/src/container/LogsFilters/index.tsxindex 68e0fe1bf4..233a493f44 100644--- a/frontend/src/container/LogsFilters/index.tsx+++ b/frontend/src/container/LogsFilters/index.tsx@@ -30,31 +30,30 @@ function LogsFilters(): JSX.Element {};const onHandleAddSelectedToInteresting = useCallback(- ({ fieldData, fieldIndex }: IHandleInterestProps) => (): Promise<void> =>- onHandleAddInterest({- fieldData,- fieldIndex,- interesting,- interestingFieldLoading,- setInterestingFieldLoading,- selected,- }),+ ({ fieldData, fieldIndex }: IHandleInterestProps) =>+ (): Promise<void> =>+ onHandleAddInterest({+ fieldData,+ fieldIndex,+ interesting,+ interestingFieldLoading,+ setInterestingFieldLoading,+ selected,+ }),[interesting, interestingFieldLoading, selected],);const onHandleRemoveSelected = useCallback(- ({- fieldData,- fieldIndex,- }: IHandleRemoveInterestProps) => (): Promise<void> =>- onHandleRemoveInterest({- fieldData,- fieldIndex,- interesting,- interestingFieldLoading,- selected,- setSelectedFieldLoading,- }),+ ({ fieldData, fieldIndex }: IHandleRemoveInterestProps) =>+ (): Promise<void> =>+ onHandleRemoveInterest({+ fieldData,+ fieldIndex,+ interesting,+ interestingFieldLoading,+ selected,+ setSelectedFieldLoading,+ }),[interesting, interestingFieldLoading, selected, setSelectedFieldLoading],);diff --git a/frontend/src/container/LogsSearchFilter/SearchFields/QueryBuilder/QueryBuilder.tsx b/frontend/src/container/LogsSearchFilter/SearchFields/QueryBuilder/QueryBuilder.tsxindex 336fde4c63..bb644c82f6 100644--- a/frontend/src/container/LogsSearchFilter/SearchFields/QueryBuilder/QueryBuilder.tsx+++ b/frontend/src/container/LogsSearchFilter/SearchFields/QueryBuilder/QueryBuilder.tsx@@ -29,8 +29,10 @@ function QueryConditionField({<SelectdefaultValue={(query as QueryFields).value &&- (((((query as QueryFields)- ?.value as unknown) as QueryFields) as unknown) as string).toUpperCase()+ (+ (query as QueryFields)+ ?.value as unknown as QueryFields as unknown as string+ ).toUpperCase()}onChange={(e): void => {onUpdate({ ...query, value: e }, queryIndex);@@ -73,10 +75,10 @@ function QueryField({[selected],);- const fieldType = useMemo(() => getFieldType(query[0].value as string), [- getFieldType,- query,- ]);+ const fieldType = useMemo(+ () => getFieldType(query[0].value as string),+ [getFieldType, query],+ );const handleChange = (qIdx: number, value: string): void => {const updatedQuery = [...query];diff --git a/frontend/src/container/LogsTable/index.tsx b/frontend/src/container/LogsTable/index.tsxindex 1747877d03..ec354ed8e6 100644--- a/frontend/src/container/LogsTable/index.tsx+++ b/frontend/src/container/LogsTable/index.tsx@@ -35,12 +35,8 @@ type LogsTableProps = {function LogsTable(props: LogsTableProps): JSX.Element {const { viewMode, linesPerRow } = props;- const {- activeLog,- onClearActiveLog,- onAddToQuery,- onSetActiveLog,- } = useActiveLog();+ const { activeLog, onClearActiveLog, onAddToQuery, onSetActiveLog } =+ useActiveLog();const {logs,@@ -49,15 +45,15 @@ function LogsTable(props: LogsTableProps): JSX.Element {liveTail,} = useSelector<AppState, ILogsReducer>((state) => state.logs);- const isLiveTail = useMemo(() => logs.length === 0 && liveTail === 'PLAYING', [- logs?.length,- liveTail,- ]);+ const isLiveTail = useMemo(+ () => logs.length === 0 && liveTail === 'PLAYING',+ [logs?.length, liveTail],+ );- const isNoLogs = useMemo(() => logs.length === 0 && liveTail === 'STOPPED', [- logs?.length,- liveTail,- ]);+ const isNoLogs = useMemo(+ () => logs.length === 0 && liveTail === 'STOPPED',+ [logs?.length, liveTail],+ );const { options } = useOptionsMenu({storageKey: LOCALSTORAGE.LOGS_LIST_OPTIONS,diff --git a/frontend/src/container/LogsTopNav/styles.ts b/frontend/src/container/LogsTopNav/styles.tsindex 1fb150e1e0..b368ea83f5 100644--- a/frontend/src/container/LogsTopNav/styles.ts+++ b/frontend/src/container/LogsTopNav/styles.ts@@ -14,6 +14,6 @@ export const LiveButtonStyled = styled(Button)<ButtonProps>`&:active {background-color: #1eb475 !important;}- `+ `: css``}`;diff --git a/frontend/src/container/MembersSettings/MembersSettings.tsx b/frontend/src/container/MembersSettings/MembersSettings.tsxindex 953bc26e05..58dca778a4 100644--- a/frontend/src/container/MembersSettings/MembersSettings.tsx+++ b/frontend/src/container/MembersSettings/MembersSettings.tsx@@ -141,8 +141,8 @@ function MembersSettings(): JSX.Element {filterMode === FilterMode.All? `All members ⎯ ${totalCount}`: filterMode === FilterMode.Invited- ? `Pending invites ⎯ ${pendingCount}`- : `Deleted ⎯ ${deletedCount}`;+ ? `Pending invites ⎯ ${pendingCount}`+ : `Deleted ⎯ ${deletedCount}`;const handleInviteComplete = useCallback((): void => {refetchUsers();diff --git a/frontend/src/container/MeterExplorer/Explorer/TimeSeries.tsx b/frontend/src/container/MeterExplorer/Explorer/TimeSeries.tsxindex cf1adc6bd1..d00d672328 100644--- a/frontend/src/container/MeterExplorer/Explorer/TimeSeries.tsx+++ b/frontend/src/container/MeterExplorer/Explorer/TimeSeries.tsx@@ -35,10 +35,11 @@ function TimeSeries({const { stagedQuery, currentQuery } = useQueryBuilder();const { yAxisUnit, onUnitChange } = useUrlYAxisUnit('');- const { selectedTime: globalSelectedTime, maxTime, minTime } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ selectedTime: globalSelectedTime,+ maxTime,+ minTime,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const isValidToConvertToMs = useMemo(() => {const isValid: boolean[] = [];diff --git a/frontend/src/container/MetricsApplication/Tabs/Overview.tsx b/frontend/src/container/MetricsApplication/Tabs/Overview.tsxindex 6d8a774970..82f5210591 100644--- a/frontend/src/container/MetricsApplication/Tabs/Overview.tsx+++ b/frontend/src/container/MetricsApplication/Tabs/Overview.tsx@@ -87,12 +87,9 @@ function Application(): JSX.Element {const dispatch = useDispatch();const handleGraphClick = useCallback(- (type: string): OnClickPluginOpts['onClick'] => (- xValue,- yValue,- mouseX,- mouseY,- ): Promise<void> => onGraphClickHandler(xValue, yValue, mouseX, mouseY, type),+ (type: string): OnClickPluginOpts['onClick'] =>+ (xValue, yValue, mouseX, mouseY): Promise<void> =>+ onGraphClickHandler(xValue, yValue, mouseX, mouseY, type),// eslint-disable-next-line react-hooks/exhaustive-deps[handleSetTimeStamp],);@@ -238,36 +235,37 @@ function Application(): JSX.Element {timestamp: number,apmToTraceQuery: Query,isViewLogsClicked?: boolean,- ): ((e: React.MouseEvent) => void) => (e: React.MouseEvent): void => {- const endTime = secondsToMilliseconds(timestamp);- const startTime = secondsToMilliseconds(timestamp - stepInterval);-- const urlParams = new URLSearchParams(search);- urlParams.set(QueryParams.startTime, startTime.toString());- urlParams.set(QueryParams.endTime, endTime.toString());- urlParams.delete(QueryParams.relativeTime);- const avialableParams = routeConfig[ROUTES.TRACE];- const queryString = getQueryString(avialableParams, urlParams);-- const JSONCompositeQuery = encodeURIComponent(- JSON.stringify(apmToTraceQuery),- );-- const newPath = generateExplorerPath(- isViewLogsClicked,- urlParams,- servicename,- selectedTraceTags,- JSONCompositeQuery,- queryString,- );-- if (isModifierKeyPressed(e)) {- openInNewTab(newPath);- } else {- history.push(newPath);- }- },+ ): ((e: React.MouseEvent) => void) =>+ (e: React.MouseEvent): void => {+ const endTime = secondsToMilliseconds(timestamp);+ const startTime = secondsToMilliseconds(timestamp - stepInterval);++ const urlParams = new URLSearchParams(search);+ urlParams.set(QueryParams.startTime, startTime.toString());+ urlParams.set(QueryParams.endTime, endTime.toString());+ urlParams.delete(QueryParams.relativeTime);+ const avialableParams = routeConfig[ROUTES.TRACE];+ const queryString = getQueryString(avialableParams, urlParams);++ const JSONCompositeQuery = encodeURIComponent(+ JSON.stringify(apmToTraceQuery),+ );++ const newPath = generateExplorerPath(+ isViewLogsClicked,+ urlParams,+ servicename,+ selectedTraceTags,+ JSONCompositeQuery,+ queryString,+ );++ if (isModifierKeyPressed(e)) {+ openInNewTab(newPath);+ } else {+ history.push(newPath);+ }+ },// eslint-disable-next-line react-hooks/exhaustive-deps[stepInterval],);diff --git a/frontend/src/container/MetricsApplication/Tabs/Overview/ApDex/index.tsx b/frontend/src/container/MetricsApplication/Tabs/Overview/ApDex/index.tsxindex 2df3086d60..e34419d535 100644--- a/frontend/src/container/MetricsApplication/Tabs/Overview/ApDex/index.tsx+++ b/frontend/src/container/MetricsApplication/Tabs/Overview/ApDex/index.tsx@@ -19,9 +19,8 @@ function ApDexApplication({const servicename = decodeURIComponent(encodedServiceName);const { notifications } = useNotifications();- const { data, isLoading, error, isRefetching } = useGetApDexSettings(- servicename,- );+ const { data, isLoading, error, isRefetching } =+ useGetApDexSettings(servicename);useEffect(() => {if (error) {diff --git a/frontend/src/container/MetricsApplication/Tabs/Overview/TopOperationMetrics.tsx b/frontend/src/container/MetricsApplication/Tabs/Overview/TopOperationMetrics.tsxindex 4b5f12160c..800c2d3dab 100644--- a/frontend/src/container/MetricsApplication/Tabs/Overview/TopOperationMetrics.tsx+++ b/frontend/src/container/MetricsApplication/Tabs/Overview/TopOperationMetrics.tsx@@ -32,10 +32,11 @@ function TopOperationMetrics(): JSX.Element {const { notifications } = useNotifications();- const { minTime, maxTime, selectedTime: globalSelectedInterval } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ minTime,+ maxTime,+ selectedTime: globalSelectedInterval,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const { queries } = useResourceAttribute();diff --git a/frontend/src/container/MetricsApplication/Tabs/util.ts b/frontend/src/container/MetricsApplication/Tabs/util.tsindex ffb24fbb8e..609b4e0e83 100644--- a/frontend/src/container/MetricsApplication/Tabs/util.ts+++ b/frontend/src/container/MetricsApplication/Tabs/util.ts@@ -168,7 +168,7 @@ export function onViewAPIMonitoringPopupClick({op: 'in',value: ['true'],},- ]+ ]: []),{id: uuid().slice(0, 8),diff --git a/frontend/src/container/MetricsApplication/TopOperationsTable.tsx b/frontend/src/container/MetricsApplication/TopOperationsTable.tsxindex 0d424d0510..830a7509ee 100644--- a/frontend/src/container/MetricsApplication/TopOperationsTable.tsx+++ b/frontend/src/container/MetricsApplication/TopOperationsTable.tsx@@ -197,8 +197,7 @@ function TopOperationsTable({const entryPointSpanInfo = {text: 'Shows the spans where requests enter new services for the first time',- url:- 'https://signoz.io/docs/traces-management/guides/entry-point-spans-service-overview/',+ url: 'https://signoz.io/docs/traces-management/guides/entry-point-spans-service-overview/',urlText: 'Learn more about Entrypoint Spans.',};diff --git a/frontend/src/container/MetricsApplication/__mocks__/getTopOperation.ts b/frontend/src/container/MetricsApplication/__mocks__/getTopOperation.tsindex dfafadd287..09e044f2f1 100644--- a/frontend/src/container/MetricsApplication/__mocks__/getTopOperation.ts+++ b/frontend/src/container/MetricsApplication/__mocks__/getTopOperation.ts@@ -19,7 +19,7 @@ export const getTopOperationList = ({numCalls,p95: 0,p99: 0,- } as TopOperationList);+ }) as TopOperationList;export const defaultApiCallExpectation = {service: 'test-service',diff --git a/frontend/src/container/MetricsExplorer/Explorer/Explorer.tsx b/frontend/src/container/MetricsExplorer/Explorer/Explorer.tsxindex 65f7e3e00a..fa9f789143 100644--- a/frontend/src/container/MetricsExplorer/Explorer/Explorer.tsx+++ b/frontend/src/container/MetricsExplorer/Explorer/Explorer.tsx@@ -108,9 +108,8 @@ function Explorer(): JSX.Element {const [showOneChartPerQuery, toggleShowOneChartPerQuery] = useState(isOneChartPerQueryEnabled,);- const [disableOneChartPerQuery, toggleDisableOneChartPerQuery] = useState(- false,- );+ const [disableOneChartPerQuery, toggleDisableOneChartPerQuery] =+ useState(false);const [yAxisUnit, setYAxisUnit] = useState<string | undefined>();const unitsLength = useMemo(() => units.length, [units]);diff --git a/frontend/src/container/MetricsExplorer/Explorer/TimeSeries.tsx b/frontend/src/container/MetricsExplorer/Explorer/TimeSeries.tsxindex d7ace005e5..70f7fd38b7 100644--- a/frontend/src/container/MetricsExplorer/Explorer/TimeSeries.tsx+++ b/frontend/src/container/MetricsExplorer/Explorer/TimeSeries.tsx@@ -53,10 +53,11 @@ function TimeSeries({}: TimeSeriesProps): JSX.Element {const { stagedQuery, currentQuery } = useQueryBuilder();- const { selectedTime: globalSelectedTime, maxTime, minTime } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ selectedTime: globalSelectedTime,+ maxTime,+ minTime,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const queryClient = useQueryClient();const isValidToConvertToMs = useMemo(() => {@@ -85,7 +86,7 @@ function TimeSeries({stagedQuery || initialQueriesMap[DataSource.METRICS],metricNames,metricUnits,- )+ ): [stagedQuery || initialQueriesMap[DataSource.METRICS]],// eslint-disable-next-line react-hooks/exhaustive-deps[showOneChartPerQuery, stagedQuery, JSON.stringify(metricUnits)],@@ -182,10 +183,8 @@ function TimeSeries({[metricUnits, metrics, yAxisUnit],);- const {- mutate: updateMetricMetadata,- isLoading: isUpdatingMetricMetadata,- } = useUpdateMetricMetadata();+ const { mutate: updateMetricMetadata, isLoading: isUpdatingMetricMetadata } =+ useUpdateMetricMetadata();const handleSaveUnit = (): void => {if (metrics[0] && yAxisUnit) {diff --git a/frontend/src/container/MetricsExplorer/Explorer/__tests__/Explorer.test.tsx b/frontend/src/container/MetricsExplorer/Explorer/__tests__/Explorer.test.tsxindex 50ee3beb3c..b721b3df09 100644--- a/frontend/src/container/MetricsExplorer/Explorer/__tests__/Explorer.test.tsx+++ b/frontend/src/container/MetricsExplorer/Explorer/__tests__/Explorer.test.tsx@@ -246,10 +246,10 @@ describe('Explorer', () => {},};- jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue(({+ jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue({...mockUseQueryBuilderData,stagedQuery: mockStagedQueryWithMultipleQueries,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);jest.spyOn(useGetMetricsHooks, 'useGetMetrics').mockReturnValue({isLoading: false,@@ -325,10 +325,10 @@ describe('Explorer', () => {},};- jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue(({+ jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue({...mockUseQueryBuilderData,stagedQuery: mockStagedQueryWithMultipleQueries,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);jest.spyOn(useGetMetricsHooks, 'useGetMetrics').mockReturnValue({isLoading: false,@@ -366,10 +366,10 @@ describe('Explorer', () => {},};- jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue(({+ jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue({...mockUseQueryBuilderData,stagedQuery: mockStagedQueryWithMultipleQueries,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);jest.spyOn(useGetMetricsHooks, 'useGetMetrics').mockReturnValue({isLoading: false,@@ -444,7 +444,7 @@ describe('Explorer', () => {},],};- jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue(({+ jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue({...mockUseQueryBuilderData,stagedQuery: {...initialQueriesMap[DataSource.METRICS],@@ -453,7 +453,7 @@ describe('Explorer', () => {queryData: [mockQueryData],},},- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);renderExplorer();@@ -479,7 +479,7 @@ describe('Explorer', () => {key: 'system_cpu_usage',},};- jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue(({+ jest.spyOn(useQueryBuilderHooks, 'useQueryBuilder').mockReturnValue({...mockUseQueryBuilderData,stagedQuery: {...initialQueriesMap[DataSource.METRICS],@@ -488,7 +488,7 @@ describe('Explorer', () => {queryData: [mockQueryData],},},- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);renderExplorer();diff --git a/frontend/src/container/MetricsExplorer/Explorer/__tests__/TimeSeries.test.tsx b/frontend/src/container/MetricsExplorer/Explorer/__tests__/TimeSeries.test.tsxindex f238ab160e..294a189da7 100644--- a/frontend/src/container/MetricsExplorer/Explorer/__tests__/TimeSeries.test.tsx+++ b/frontend/src/container/MetricsExplorer/Explorer/__tests__/TimeSeries.test.tsx@@ -78,10 +78,10 @@ function renderTimeSeries(describe('TimeSeries', () => {beforeEach(() => {- updateMetricMetadataSpy.mockReturnValue(({+ updateMetricMetadataSpy.mockReturnValue({mutate: mockUpdateMetricMetadata,isLoading: false,- } as Partial<UseUpdateMetricMetadataReturnType>) as UseUpdateMetricMetadataReturnType);+ } as Partial<UseUpdateMetricMetadataReturnType> as UseUpdateMetricMetadataReturnType);});it('shows select metric message when no metric is selected', () => {diff --git a/frontend/src/container/MetricsExplorer/Inspect/ExpandedView.tsx b/frontend/src/container/MetricsExplorer/Inspect/ExpandedView.tsxindex 80057f2117..eecc19affc 100644--- a/frontend/src/container/MetricsExplorer/Inspect/ExpandedView.tsx+++ b/frontend/src/container/MetricsExplorer/Inspect/ExpandedView.tsx@@ -34,10 +34,8 @@ function ExpandedView({metricInspectionAppliedOptions,timeAggregatedSeriesMap,}: ExpandedViewProps): JSX.Element {- const [- selectedTimeSeries,- setSelectedTimeSeries,- ] = useState<InspectMetricsSeries | null>(null);+ const [selectedTimeSeries, setSelectedTimeSeries] =+ useState<InspectMetricsSeries | null>(null);useEffect(() => {logEvent(MetricsExplorerEvents.InspectPointClicked, {@@ -237,15 +235,15 @@ function ExpandedView({selectedTimeSeries?.values.find((value) => value?.timestamp >= (options?.timestamp || 0),)?.value ?? options?.value- } is the ${+ } is the ${TIME_AGGREGATION_OPTIONS[metricInspectionAppliedOptions.timeAggregationOption ??TimeAggregationOptions.SUM]- } of`- : selectedTimeSeries?.values.find(+ } of`+ : (selectedTimeSeries?.values.find((value) => value?.timestamp >= (options?.timestamp || 0),- )?.value ?? options?.value}+ )?.value ?? options?.value)}</Typography.Text></div>diff --git a/frontend/src/container/MetricsExplorer/Inspect/GraphView.tsx b/frontend/src/container/MetricsExplorer/Inspect/GraphView.tsxindex bfc5589d42..5040354d7f 100644--- a/frontend/src/container/MetricsExplorer/Inspect/GraphView.tsx+++ b/frontend/src/container/MetricsExplorer/Inspect/GraphView.tsx@@ -40,16 +40,15 @@ function GraphView({const { maxTime, minTime } = useSelector<AppState, GlobalReducer>((state) => state.globalTime,);- const start = useMemo(() => Math.floor(Number(minTime) / 1000000000), [- minTime,- ]);+ const start = useMemo(+ () => Math.floor(Number(minTime) / 1000000000),+ [minTime],+ );const end = useMemo(() => Math.floor(Number(maxTime) / 1000000000), [maxTime]);const [showGraphPopover, setShowGraphPopover] = useState(false);const [showHoverPopover, setShowHoverPopover] = useState(false);- const [- hoverPopoverOptions,- setHoverPopoverOptions,- ] = useState<GraphPopoverOptions | null>(null);+ const [hoverPopoverOptions, setHoverPopoverOptions] =+ useState<GraphPopoverOptions | null>(null);const [viewType, setViewType] = useState<'graph' | 'table'>('graph');const popoverRef = useRef<HTMLDivElement>(null);diff --git a/frontend/src/container/MetricsExplorer/Inspect/Inspect.tsx b/frontend/src/container/MetricsExplorer/Inspect/Inspect.tsxindex 3312d3b4e9..62d78ff178 100644--- a/frontend/src/container/MetricsExplorer/Inspect/Inspect.tsx+++ b/frontend/src/container/MetricsExplorer/Inspect/Inspect.tsx@@ -35,20 +35,14 @@ function Inspect({onClose,}: InspectProps): JSX.Element {const isDarkMode = useIsDarkMode();- const [currentMetricName, setCurrentMetricName] = useState<string>(- defaultMetricName,- );- const [appliedMetricName, setAppliedMetricName] = useState<string>(- defaultMetricName,- );- const [- popoverOptions,- setPopoverOptions,- ] = useState<GraphPopoverOptions | null>(null);- const [- expandedViewOptions,- setExpandedViewOptions,- ] = useState<GraphPopoverOptions | null>(null);+ const [currentMetricName, setCurrentMetricName] =+ useState<string>(defaultMetricName);+ const [appliedMetricName, setAppliedMetricName] =+ useState<string>(defaultMetricName);+ const [popoverOptions, setPopoverOptions] =+ useState<GraphPopoverOptions | null>(null);+ const [expandedViewOptions, setExpandedViewOptions] =+ useState<GraphPopoverOptions | null>(null);const [showExpandedView, setShowExpandedView] = useState(false);const { data: metricDetailsData } = useGetMetricMetadata(@@ -144,13 +138,15 @@ function Inspect({[dispatchMetricInspectionOptions],);- const selectedMetricType = useMemo(() => metricDetailsData?.data?.type, [- metricDetailsData,- ]);+ const selectedMetricType = useMemo(+ () => metricDetailsData?.data?.type,+ [metricDetailsData],+ );- const selectedMetricUnit = useMemo(() => metricDetailsData?.data?.unit, [- metricDetailsData,- ]);+ const selectedMetricUnit = useMemo(+ () => metricDetailsData?.data?.unit,+ [metricDetailsData],+ );const aggregateAttribute = useMemo(() => ({diff --git a/frontend/src/container/MetricsExplorer/Inspect/TableView.tsx b/frontend/src/container/MetricsExplorer/Inspect/TableView.tsxindex e08c1ce095..b91fb6af91 100644--- a/frontend/src/container/MetricsExplorer/Inspect/TableView.tsx+++ b/frontend/src/container/MetricsExplorer/Inspect/TableView.tsx@@ -78,14 +78,17 @@ function TableView({const dataSource = useMemo(() =>inspectMetricsTimeSeries.map((series, index) => {- const labelData = labelKeys.reduce((acc, label) => {- acc[label] = (- <div style={getDynamicColumnStyle(series.strokeColor)}>- {series.labels[label]}- </div>- );- return acc;- }, {} as Record<string, JSX.Element>);+ const labelData = labelKeys.reduce(+ (acc, label) => {+ acc[label] = (+ <div style={getDynamicColumnStyle(series.strokeColor)}>+ {series.labels[label]}+ </div>+ );+ return acc;+ },+ {} as Record<string, JSX.Element>,+ );return {key: index,diff --git a/frontend/src/container/MetricsExplorer/Inspect/__tests__/GraphPopover.test.tsx b/frontend/src/container/MetricsExplorer/Inspect/__tests__/GraphPopover.test.tsxindex d6e73a0fd4..ef71bcf2f5 100644--- a/frontend/src/container/MetricsExplorer/Inspect/__tests__/GraphPopover.test.tsx+++ b/frontend/src/container/MetricsExplorer/Inspect/__tests__/GraphPopover.test.tsx@@ -18,10 +18,8 @@ describe('GraphPopover', () => {labels: {},},};- const mockSpaceAggregationSeriesMap: Map<- string,- InspectMetricsSeries[]- > = new Map();+ const mockSpaceAggregationSeriesMap: Map<string, InspectMetricsSeries[]> =+ new Map();const mockOpenInExpandedView = jest.fn();const mockStep = InspectionStep.TIME_AGGREGATION;diff --git a/frontend/src/container/MetricsExplorer/Inspect/constants.ts b/frontend/src/container/MetricsExplorer/Inspect/constants.tsindex d77e524d80..745c7a989b 100644--- a/frontend/src/container/MetricsExplorer/Inspect/constants.ts+++ b/frontend/src/container/MetricsExplorer/Inspect/constants.ts@@ -39,17 +39,15 @@ export const METRIC_TYPE_TO_ICON_MAP: Record<[MetrictypesTypeDTO.exponentialhistogram]: BarChart,};-export const TIME_AGGREGATION_OPTIONS: Record<- TimeAggregationOptions,- string-> = {- [TimeAggregationOptions.LATEST]: 'Latest',- [TimeAggregationOptions.SUM]: 'Sum',- [TimeAggregationOptions.AVG]: 'Avg',- [TimeAggregationOptions.MIN]: 'Min',- [TimeAggregationOptions.MAX]: 'Max',- [TimeAggregationOptions.COUNT]: 'Count',-};+export const TIME_AGGREGATION_OPTIONS: Record<TimeAggregationOptions, string> =+ {+ [TimeAggregationOptions.LATEST]: 'Latest',+ [TimeAggregationOptions.SUM]: 'Sum',+ [TimeAggregationOptions.AVG]: 'Avg',+ [TimeAggregationOptions.MIN]: 'Min',+ [TimeAggregationOptions.MAX]: 'Max',+ [TimeAggregationOptions.COUNT]: 'Count',+ };export const SPACE_AGGREGATION_OPTIONS: Record<SpaceAggregationOptions,diff --git a/frontend/src/container/MetricsExplorer/Inspect/useInspectMetrics.ts b/frontend/src/container/MetricsExplorer/Inspect/useInspectMetrics.tsindex acf597a013..3c56ac2d17 100644--- a/frontend/src/container/MetricsExplorer/Inspect/useInspectMetrics.ts+++ b/frontend/src/container/MetricsExplorer/Inspect/useInspectMetrics.ts@@ -228,13 +228,11 @@ export function useInspectMetrics(metricInspectionOptions.appliedOptions.timeAggregationOption &&metricInspectionOptions.appliedOptions.timeAggregationInterval) {- const {- timeAggregatedSeries,- timeAggregatedSeriesMap,- } = applyTimeAggregation(- inspectMetricsTimeSeries,- metricInspectionOptions.appliedOptions,- );+ const { timeAggregatedSeries, timeAggregatedSeriesMap } =+ applyTimeAggregation(+ inspectMetricsTimeSeries,+ metricInspectionOptions.appliedOptions,+ );timeSeries = timeAggregatedSeries;setTimeAggregatedSeriesMap(timeAggregatedSeriesMap);setAggregatedTimeSeries(timeSeries);diff --git a/frontend/src/container/MetricsExplorer/Inspect/utils.ts b/frontend/src/container/MetricsExplorer/Inspect/utils.tsindex 997e29f5db..60c510413b 100644--- a/frontend/src/container/MetricsExplorer/Inspect/utils.ts+++ b/frontend/src/container/MetricsExplorer/Inspect/utils.ts@@ -42,7 +42,7 @@ export function getDefaultTimeAggregationInterval(const reportingInterval =timeSeries.values.length > 1? Math.abs(timeSeries.values[1].timestamp - timeSeries.values[0].timestamp) /- 1000+ 1000: 0;return Math.max(60, reportingInterval);}@@ -88,10 +88,8 @@ export function applyTimeAggregation(timeAggregatedSeries: InspectMetricsSeries[];timeAggregatedSeriesMap: Map<number, GraphPopoverData[]>;} {- const {- timeAggregationOption,- timeAggregationInterval,- } = metricInspectionAppliedOptions;+ const { timeAggregationOption, timeAggregationInterval } =+ metricInspectionAppliedOptions;if (!timeAggregationInterval) {return {@@ -103,8 +101,8 @@ export function applyTimeAggregation(// Group timestamps into intervals and aggregate values for each series independentlyconst timeAggregatedSeriesMap: Map<number, GraphPopoverData[]> = new Map();- const timeAggregatedSeries: InspectMetricsSeries[] = inspectMetricsTimeSeries.map(- (series) => {+ const timeAggregatedSeries: InspectMetricsSeries[] =+ inspectMetricsTimeSeries.map((series) => {const groupedTimestamps = new Map<number, number[]>();series.values.forEach(({ timestamp, value }) => {@@ -168,8 +166,7 @@ export function applyTimeAggregation(...series,values: aggregatedValues,};- },- );+ });return { timeAggregatedSeries, timeAggregatedSeriesMap };}diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributes.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributes.tsxindex 6d7187e3c6..cce2031ae0 100644--- a/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributes.tsx+++ b/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributes.tsx@@ -59,9 +59,10 @@ function AllAttributes({},);- const attributes = useMemo(() => attributesData?.data.attributes ?? [], [- attributesData,- ]);+ const attributes = useMemo(+ () => attributesData?.data.attributes ?? [],+ [attributesData],+ );const { handleExplorerTabChange } = useHandleExplorerTabChange();@@ -173,7 +174,7 @@ function AllAttributes({key: attribute.key,value: attribute.values,},- }))+ })): [],[filteredAttributes],);diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributesValue.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributesValue.tsxindex 6ae49f36f2..3bf49af721 100644--- a/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributesValue.tsx+++ b/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributesValue.tsx@@ -97,7 +97,7 @@ export function AllAttributesValue({allValuesSearch? filterValue.filter((v) =>v.toLowerCase().includes(allValuesSearch.toLowerCase()),- )+ ): filterValue,[filterValue, allValuesSearch],);diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/Metadata.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/Metadata.tsxindex 25a35e76a8..2cfb81f75b 100644--- a/frontend/src/container/MetricsExplorer/MetricDetails/Metadata.tsx+++ b/frontend/src/container/MetricsExplorer/MetricDetails/Metadata.tsx@@ -44,21 +44,17 @@ function Metadata({}: MetadataProps): JSX.Element {const [isEditing, setIsEditing] = useState(false);- const [- metricMetadataState,- setMetricMetadataState,- ] = useState<MetricMetadataFormState>({- type: MetrictypesTypeDTO.sum,- description: '',- temporality: MetrictypesTemporalityDTO.unspecified,- unit: '',- isMonotonic: false,- });+ const [metricMetadataState, setMetricMetadataState] =+ useState<MetricMetadataFormState>({+ type: MetrictypesTypeDTO.sum,+ description: '',+ temporality: MetrictypesTemporalityDTO.unspecified,+ unit: '',+ isMonotonic: false,+ });const { notifications } = useNotifications();- const {- mutate: updateMetricMetadata,- isLoading: isUpdatingMetricsMetadata,- } = useUpdateMetricMetadata();+ const { mutate: updateMetricMetadata, isLoading: isUpdatingMetricsMetadata } =+ useUpdateMetricMetadata();const [activeKey, setActiveKey] = useState<string | string[]>('metric-metadata',);@@ -86,7 +82,7 @@ function Metadata({value: metadata[key as keyof typeof metadata],key,},- }))+ })): [],[metadata],);diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetails.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetails.tsxindex 8d318d6483..8653a3e609 100644--- a/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetails.tsx+++ b/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetails.tsx@@ -57,13 +57,8 @@ function MetricDetails({if (!metricMetadataResponse) {return null;}- const {- type,- description,- unit,- temporality,- isMonotonic,- } = metricMetadataResponse.data;+ const { type, description, unit, temporality, isMonotonic } =+ metricMetadataResponse.data;return {type,@@ -74,9 +69,10 @@ function MetricDetails({};}, [metricMetadataResponse]);- const showInspectFeature = useMemo(() => isInspectEnabled(metadata?.type), [- metadata?.type,- ]);+ const showInspectFeature = useMemo(+ () => isInspectEnabled(metadata?.type),+ [metadata?.type],+ );const goToMetricsExplorerwithSelectedMetric = useCallback(() => {if (metricName) {diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/__tests__/Metadata.test.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/__tests__/Metadata.test.tsxindex 307abee561..cb5cc511fb 100644--- a/frontend/src/container/MetricsExplorer/MetricDetails/__tests__/Metadata.test.tsx+++ b/frontend/src/container/MetricsExplorer/MetricDetails/__tests__/Metadata.test.tsx@@ -104,9 +104,9 @@ const mockRefetchMetricMetadata = jest.fn();describe('Metadata', () => {beforeEach(() => {- mockUseUpdateMetricMetadataHook.mockReturnValue(({+ mockUseUpdateMetricMetadataHook.mockReturnValue({mutate: mockUseUpdateMetricMetadata,- } as Partial<UseUpdateMetricMetadataResult>) as UseUpdateMetricMetadataResult);+ } as Partial<UseUpdateMetricMetadataResult> as UseUpdateMetricMetadataResult);});it('should render the metadata properly', () => {diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/utils.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/utils.tsxindex 05df695467..a4f8615e96 100644--- a/frontend/src/container/MetricsExplorer/MetricDetails/utils.tsx+++ b/frontend/src/container/MetricsExplorer/MetricDetails/utils.tsx@@ -170,7 +170,7 @@ export function getMetricDetailsQuery(type: DataTypes.String,},},- ]+ ]: [],},groupBy: groupBy@@ -181,7 +181,7 @@ export function getMetricDetailsQuery(type: 'tag',id: `${groupBy}--string--tag--false`,},- ]+ ]: [],...(limit ? { limit } : {}),},diff --git a/frontend/src/container/MetricsExplorer/Summary/MetricTypeViewRenderer.tsx b/frontend/src/container/MetricsExplorer/Summary/MetricTypeViewRenderer.tsxindex 4824fbeee1..9db97d2d37 100644--- a/frontend/src/container/MetricsExplorer/Summary/MetricTypeViewRenderer.tsx+++ b/frontend/src/container/MetricsExplorer/Summary/MetricTypeViewRenderer.tsx@@ -49,22 +49,20 @@ export function MetricTypeViewRenderer({}}, [type]);- const {- metricTypeViewRendererStyle,- metricTypeViewRendererTextStyle,- } = useMemo(() => {- return {- metricTypeViewRendererStyle: {- backgroundColor: `${color}33`,- border: `1px solid ${color}`,- color,- },- metricTypeViewRendererTextStyle: {- color,- fontSize: 12,- },- };- }, [color]);+ const { metricTypeViewRendererStyle, metricTypeViewRendererTextStyle } =+ useMemo(() => {+ return {+ metricTypeViewRendererStyle: {+ backgroundColor: `${color}33`,+ border: `1px solid ${color}`,+ color,+ },+ metricTypeViewRendererTextStyle: {+ color,+ fontSize: 12,+ },+ };+ }, [color]);return (<div className="metric-type-renderer" style={metricTypeViewRendererStyle}>diff --git a/frontend/src/container/MetricsExplorer/Summary/MetricsTable.tsx b/frontend/src/container/MetricsExplorer/Summary/MetricsTable.tsxindex 94523172dd..783fad9d86 100644--- a/frontend/src/container/MetricsExplorer/Summary/MetricsTable.tsx+++ b/frontend/src/container/MetricsExplorer/Summary/MetricsTable.tsx@@ -32,35 +32,36 @@ function MetricsTable({queryFilterExpression,onFilterChange,}: MetricsTableProps): JSX.Element {- const handleTableChange: TableProps<MetricsListItemRowData>['onChange'] = useCallback(- (- _pagination: TablePaginationConfig,- _filters: Record<string, (string | number | boolean)[] | null>,- sorter:- | SorterResult<MetricsListItemRowData>- | SorterResult<MetricsListItemRowData>[],- ): void => {- if ('field' in sorter && sorter.order) {- setOrderBy({- key: {- name: sorter.field as string,- },- direction:- sorter.order === 'ascend'- ? Querybuildertypesv5OrderDirectionDTO.asc- : Querybuildertypesv5OrderDirectionDTO.desc,- });- } else {- setOrderBy({- key: {- name: 'samples',- },- direction: Querybuildertypesv5OrderDirectionDTO.desc,- });- }- },- [setOrderBy],- );+ const handleTableChange: TableProps<MetricsListItemRowData>['onChange'] =+ useCallback(+ (+ _pagination: TablePaginationConfig,+ _filters: Record<string, (string | number | boolean)[] | null>,+ sorter:+ | SorterResult<MetricsListItemRowData>+ | SorterResult<MetricsListItemRowData>[],+ ): void => {+ if ('field' in sorter && sorter.order) {+ setOrderBy({+ key: {+ name: sorter.field as string,+ },+ direction:+ sorter.order === 'ascend'+ ? Querybuildertypesv5OrderDirectionDTO.asc+ : Querybuildertypesv5OrderDirectionDTO.desc,+ });+ } else {+ setOrderBy({+ key: {+ name: 'samples',+ },+ direction: Querybuildertypesv5OrderDirectionDTO.desc,+ });+ }+ },+ [setOrderBy],+ );return (<div className="metrics-table-container">diff --git a/frontend/src/container/MetricsExplorer/Summary/Summary.styles.scss b/frontend/src/container/MetricsExplorer/Summary/Summary.styles.scssindex aa64763ac0..fe48ae2e3b 100644--- a/frontend/src/container/MetricsExplorer/Summary/Summary.styles.scss+++ b/frontend/src/container/MetricsExplorer/Summary/Summary.styles.scss@@ -177,7 +177,9 @@.ant-table-thead> tr- > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {+ > th:not(:last-child):not(.ant-table-selection-column):not(+ .ant-table-row-expand-icon-cell+ ):not([colspan])::before {background-color: transparent;}diff --git a/frontend/src/container/MetricsExplorer/Summary/Summary.tsx b/frontend/src/container/MetricsExplorer/Summary/Summary.tsxindex a3a07afe15..56f2335e3e 100644--- a/frontend/src/container/MetricsExplorer/Summary/Summary.tsx+++ b/frontend/src/container/MetricsExplorer/Summary/Summary.tsx@@ -59,21 +59,15 @@ const DEFAULT_ORDER_BY: Querybuildertypesv5OrderByDTO = {function Summary(): JSX.Element {const { pageSize, setPageSize } = usePageSize('metricsExplorer');const [currentPage, setCurrentPage] = useState(1);- const [orderBy, setOrderBy] = useState<Querybuildertypesv5OrderByDTO>(- DEFAULT_ORDER_BY,- );- const [- heatmapView,- setHeatmapView,- ] = useState<MetricsexplorertypesTreemapModeDTO>(- MetricsexplorertypesTreemapModeDTO.samples,- );+ const [orderBy, setOrderBy] =+ useState<Querybuildertypesv5OrderByDTO>(DEFAULT_ORDER_BY);+ const [heatmapView, setHeatmapView] =+ useState<MetricsexplorertypesTreemapModeDTO>(+ MetricsexplorertypesTreemapModeDTO.samples,+ );- const {- currentQuery,- stagedQuery,- redirectWithQueryBuilderData,- } = useQueryBuilder();+ const { currentQuery, stagedQuery, redirectWithQueryBuilderData } =+ useQueryBuilder();useShareBuilderUrl({ defaultValue: initialQueriesMap[DataSource.METRICS] });@@ -101,10 +95,8 @@ function Summary(): JSX.Element {const appliedFilterExpression = query?.filter?.expression || '';- const [- currentQueryFilterExpression,- setCurrentQueryFilterExpression,- ] = useState<string>(appliedFilterExpression);+ const [currentQueryFilterExpression, setCurrentQueryFilterExpression] =+ useState<string>(appliedFilterExpression);const [isCancelled, setIsCancelled] = useState<boolean>(false);diff --git a/frontend/src/container/MetricsExplorer/Summary/__tests__/MetricsTable.test.tsx b/frontend/src/container/MetricsExplorer/Summary/__tests__/MetricsTable.test.tsxindex 7c67ee8e60..ca0d647eeb 100644--- a/frontend/src/container/MetricsExplorer/Summary/__tests__/MetricsTable.test.tsx+++ b/frontend/src/container/MetricsExplorer/Summary/__tests__/MetricsTable.test.tsx@@ -53,7 +53,7 @@ describe('MetricsTable', () => {} as any);});- jest.spyOn(metricsGeneratedAPI, 'useListMetrics').mockReturnValue(({+ jest.spyOn(metricsGeneratedAPI, 'useListMetrics').mockReturnValue({data: {data: {metrics: [@@ -79,7 +79,7 @@ describe('MetricsTable', () => {},isLoading: false,isError: false,- } as unknown) as ReturnType<typeof metricsGeneratedAPI.useListMetrics>);+ } as unknown as ReturnType<typeof metricsGeneratedAPI.useListMetrics>);it('renders table with data correctly', () => {render(diff --git a/frontend/src/container/MetricsExplorer/Summary/__tests__/Summary.test.tsx b/frontend/src/container/MetricsExplorer/Summary/__tests__/Summary.test.tsxindex 921942386c..0f6fd9a78f 100644--- a/frontend/src/container/MetricsExplorer/Summary/__tests__/Summary.test.tsx+++ b/frontend/src/container/MetricsExplorer/Summary/__tests__/Summary.test.tsx@@ -118,9 +118,9 @@ describe('Summary', () => {status: 'idle',} as any);- useQueryBuilderSpy.mockReturnValue(({+ useQueryBuilderSpy.mockReturnValue({...mockUseQueryBuilderData,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);});it('does not carry filter expression from a previous page', async () => {@@ -141,11 +141,11 @@ describe('Summary', () => {};// stagedQuery has stale filter (before QueryBuilder resets it)- useQueryBuilderSpy.mockReturnValue(({+ useQueryBuilderSpy.mockReturnValue({...mockUseQueryBuilderData,stagedQuery: staleQuery,currentQuery: staleQuery,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);const { rerender } = render(<Summary />);@@ -154,11 +154,11 @@ describe('Summary', () => {);// QB route change effect resets stagedQuery to null- useQueryBuilderSpy.mockReturnValue(({+ useQueryBuilderSpy.mockReturnValue({...mockUseQueryBuilderData,stagedQuery: null,currentQuery: initialQueriesMap[DataSource.METRICS],- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);rerender(<Summary />);diff --git a/frontend/src/container/MetricsExplorer/Summary/utils.tsx b/frontend/src/container/MetricsExplorer/Summary/utils.tsxindex 615b8353c8..a72a274ba1 100644--- a/frontend/src/container/MetricsExplorer/Summary/utils.tsx+++ b/frontend/src/container/MetricsExplorer/Summary/utils.tsx@@ -101,7 +101,7 @@ export const formatNumberIntoHumanReadableFormat = (? `${value}${suffix}${addPlusSign ? '+' : ''}`: `${value.toFixed(1).replace(/\.0$/, '')}${suffix}${addPlusSign ? '+' : ''- }`;+ }`;}if (num >= 1_000_000_000) {diff --git a/frontend/src/container/MySettings/UserInfo/index.tsx b/frontend/src/container/MySettings/UserInfo/index.tsxindex 46200124ed..0db308c774 100644--- a/frontend/src/container/MySettings/UserInfo/index.tsx+++ b/frontend/src/container/MySettings/UserInfo/index.tsx@@ -29,13 +29,10 @@ function UserInfo(): JSX.Element {user?.displayName || '',);- const [isUpdateNameModalOpen, setIsUpdateNameModalOpen] = useState<boolean>(- false,- );- const [- isResetPasswordModalOpen,- setIsResetPasswordModalOpen,- ] = useState<boolean>(false);+ const [isUpdateNameModalOpen, setIsUpdateNameModalOpen] =+ useState<boolean>(false);+ const [isResetPasswordModalOpen, setIsResetPasswordModalOpen] =+ useState<boolean>(false);const defaultPlaceHolder = '*************';diff --git a/frontend/src/container/MySettings/__tests__/MySettings.test.tsx b/frontend/src/container/MySettings/__tests__/MySettings.test.tsxindex 8b081fddd3..e2e9855b0d 100644--- a/frontend/src/container/MySettings/__tests__/MySettings.test.tsx+++ b/frontend/src/container/MySettings/__tests__/MySettings.test.tsx@@ -176,10 +176,10 @@ describe('MySettings Flows', () => {screen.getByText((content, element) =>Boolean(element &&- 'className' in element &&- typeof element.className === 'string' &&- element.className.includes('title') &&- content === RESET_PASSWORD_BUTTON_TEXT,+ 'className' in element &&+ typeof element.className === 'string' &&+ element.className.includes('title') &&+ content === RESET_PASSWORD_BUTTON_TEXT,),),).toBeInTheDocument();diff --git a/frontend/src/container/NewWidget/LeftContainer/QuerySection/QueryBuilder/ClickHouse/query.tsx b/frontend/src/container/NewWidget/LeftContainer/QuerySection/QueryBuilder/ClickHouse/query.tsxindex 4ff7b3a6e7..d94e6af97b 100644--- a/frontend/src/container/NewWidget/LeftContainer/QuerySection/QueryBuilder/ClickHouse/query.tsx+++ b/frontend/src/container/NewWidget/LeftContainer/QuerySection/QueryBuilder/ClickHouse/query.tsx@@ -22,10 +22,8 @@ function ClickHouseQueryBuilder({queryIndex,deletable,}: IClickHouseQueryBuilderProps): JSX.Element | null {- const {- handleSetQueryItemData,- removeQueryTypeItemByIndex,- } = useQueryBuilder();+ const { handleSetQueryItemData, removeQueryTypeItemByIndex } =+ useQueryBuilder();const handleRemoveQuery = useCallback(() => {removeQueryTypeItemByIndex(EQueryType.CLICKHOUSE, queryIndex);diff --git a/frontend/src/container/NewWidget/LeftContainer/QuerySection/QueryBuilder/promQL/query.tsx b/frontend/src/container/NewWidget/LeftContainer/QuerySection/QueryBuilder/promQL/query.tsxindex 5790b62cfd..6d56664d5b 100644--- a/frontend/src/container/NewWidget/LeftContainer/QuerySection/QueryBuilder/promQL/query.tsx+++ b/frontend/src/container/NewWidget/LeftContainer/QuerySection/QueryBuilder/promQL/query.tsx@@ -19,10 +19,8 @@ function PromQLQueryBuilder({queryIndex,deletable,}: IPromQLQueryBuilderProps): JSX.Element {- const {- handleSetQueryItemData,- removeQueryTypeItemByIndex,- } = useQueryBuilder();+ const { handleSetQueryItemData, removeQueryTypeItemByIndex } =+ useQueryBuilder();const handleRemoveQuery = useCallback(() => {removeQueryTypeItemByIndex(EQueryType.PROM, queryIndex);diff --git a/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/util.ts b/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/util.tsindex 8d752f7607..f68d7608a2 100644--- a/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/util.ts+++ b/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/util.ts@@ -66,19 +66,17 @@ export function populateMultipleResults(}// Create a copy instead of mutating the original- const updatedResponseData: SuccessResponse<- MetricRangePayloadProps,- unknown- > = {- ...responseData,- payload: {- ...responseData.payload,- data: {- ...responseData.payload.data,- result: allFormattedResults,+ const updatedResponseData: SuccessResponse<MetricRangePayloadProps, unknown> =+ {+ ...responseData,+ payload: {+ ...responseData.payload,+ data: {+ ...responseData.payload.data,+ result: allFormattedResults,+ },},- },- };+ };return updatedResponseData;}diff --git a/frontend/src/container/NewWidget/LeftContainer/index.tsx b/frontend/src/container/NewWidget/LeftContainer/index.tsxindex 730ab73545..b898d380cd 100644--- a/frontend/src/container/NewWidget/LeftContainer/index.tsx+++ b/frontend/src/container/NewWidget/LeftContainer/index.tsx@@ -36,10 +36,11 @@ function LeftContainer({const { stagedQuery } = useQueryBuilder();const queryClient = useQueryClient();- const { selectedTime: globalSelectedInterval, minTime, maxTime } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ selectedTime: globalSelectedInterval,+ minTime,+ maxTime,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const queryRangeKey = useMemo(() => [REACT_QUERY_KEY.GET_QUERY_RANGE,diff --git a/frontend/src/container/NewWidget/RightContainer/ColumnUnitSelector/ColumnUnitSelector.tsx b/frontend/src/container/NewWidget/RightContainer/ColumnUnitSelector/ColumnUnitSelector.tsxindex e0ed105226..4178171c67 100644--- a/frontend/src/container/NewWidget/RightContainer/ColumnUnitSelector/ColumnUnitSelector.tsx+++ b/frontend/src/container/NewWidget/RightContainer/ColumnUnitSelector/ColumnUnitSelector.tsx@@ -62,10 +62,13 @@ export function ColumnUnitSelector(};useEffect(() => {- const newColumnUnits = aggregationQueries.reduce((acc, query) => {- acc[query.value] = getValues(query.value);- return acc;- }, {} as Record<string, string>);+ const newColumnUnits = aggregationQueries.reduce(+ (acc, query) => {+ acc[query.value] = getValues(query.value);+ return acc;+ },+ {} as Record<string, string>,+ );setColumnUnits(newColumnUnits);// eslint-disable-next-line react-hooks/exhaustive-deps}, [aggregationQueries]);diff --git a/frontend/src/container/NewWidget/RightContainer/ContextLinks/UpdateContextLinks.tsx b/frontend/src/container/NewWidget/RightContainer/ContextLinks/UpdateContextLinks.tsxindex fd6dede8b7..7525aec561 100644--- a/frontend/src/container/NewWidget/RightContainer/ContextLinks/UpdateContextLinks.tsx+++ b/frontend/src/container/NewWidget/RightContainer/ContextLinks/UpdateContextLinks.tsx@@ -99,8 +99,8 @@ function UpdateContextLinks({const newValue =cursorPosition !== undefined? currentValue.slice(0, cursorPosition) +- variableName +- currentValue.slice(cursorPosition)+ variableName ++ currentValue.slice(cursorPosition): currentValue + variableName;// Update form value@@ -132,8 +132,8 @@ function UpdateContextLinks({const newValue =cursorPosition !== undefined? currentValue.slice(0, cursorPosition) +- variableName +- currentValue.slice(cursorPosition)+ variableName ++ currentValue.slice(cursorPosition): currentValue + variableName;// Update the parameter value@@ -141,7 +141,7 @@ function UpdateContextLinks({};useEffect(() => {- ((window as unknown) as Record<string, unknown>).form = form;+ (window as unknown as Record<string, unknown>).form = form;}, [form]);// Parse URL and update params when URL changesdiff --git a/frontend/src/container/NewWidget/RightContainer/ContextLinks/index.tsx b/frontend/src/container/NewWidget/RightContainer/ContextLinks/index.tsxindex b3a0f42766..5d68984393 100644--- a/frontend/src/container/NewWidget/RightContainer/ContextLinks/index.tsx+++ b/frontend/src/container/NewWidget/RightContainer/ContextLinks/index.tsx@@ -37,13 +37,8 @@ function SortableContextLink({onDelete: (contextLink: ContextLinkProps) => void;onEdit: (contextLink: ContextLinkProps) => void;}): JSX.Element {- const {- attributes,- listeners,- setNodeRef,- transform,- transition,- } = useSortable({ id: contextLink.id });+ const { attributes, listeners, setNodeRef, transform, transition } =+ useSortable({ id: contextLink.id });const style = {transform: CSS.Transform.toString(transform),diff --git a/frontend/src/container/NewWidget/RightContainer/ContextLinks/useContextLinkModal.ts b/frontend/src/container/NewWidget/RightContainer/ContextLinks/useContextLinkModal.tsindex 452ca66470..7278af5a58 100644--- a/frontend/src/container/NewWidget/RightContainer/ContextLinks/useContextLinkModal.ts+++ b/frontend/src/container/NewWidget/RightContainer/ContextLinks/useContextLinkModal.ts@@ -16,10 +16,8 @@ const useContextLinkModal = ({setContextLinks: Dispatch<SetStateAction<ContextLinksData>>;}): ContextLinkModalProps => {const [isModalOpen, setIsModalOpen] = useState(false);- const [- selectedContextLink,- setSelectedContextLink,- ] = useState<ContextLinkProps | null>(null);+ const [selectedContextLink, setSelectedContextLink] =+ useState<ContextLinkProps | null>(null);const handleEditContextLink = (contextLink: ContextLinkProps): void => {setSelectedContextLink(contextLink);diff --git a/frontend/src/container/NewWidget/RightContainer/DashboardYAxisUnitSelectorWrapper.tsx b/frontend/src/container/NewWidget/RightContainer/DashboardYAxisUnitSelectorWrapper.tsxindex 1473b5f890..8551291e0f 100644--- a/frontend/src/container/NewWidget/RightContainer/DashboardYAxisUnitSelectorWrapper.tsx+++ b/frontend/src/container/NewWidget/RightContainer/DashboardYAxisUnitSelectorWrapper.tsx@@ -24,9 +24,8 @@ function DashboardYAxisUnitSelectorWrapper({selectedQueryName?: string;'data-testid'?: string;}): JSX.Element {- const { yAxisUnit: initialYAxisUnit, isLoading } = useGetYAxisUnit(- selectedQueryName,- );+ const { yAxisUnit: initialYAxisUnit, isLoading } =+ useGetYAxisUnit(selectedQueryName);useEffect(() => {if (shouldUpdateYAxisUnit) {diff --git a/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx b/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsxindex 30e6fca0db..b8ea777297 100644--- a/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx+++ b/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx@@ -55,9 +55,8 @@ function Threshold({const [value, setValue] = useState<number>(thresholdValue);const [unit, setUnit] = useState<string>(thresholdUnit);const [color, setColor] = useState<string>(thresholdColor);- const [format, setFormat] = useState<ThresholdProps['thresholdFormat']>(- thresholdFormat,- );+ const [format, setFormat] =+ useState<ThresholdProps['thresholdFormat']>(thresholdFormat);const [label, setLabel] = useState<string>(thresholdLabel);const [tableSelectedOption, setTableSelectedOption] = useState<string>(thresholdTableOptions,diff --git a/frontend/src/container/NewWidget/RightContainer/__tests__/RightContainer.test.tsx b/frontend/src/container/NewWidget/RightContainer/__tests__/RightContainer.test.tsxindex a6881a5638..771ee68be3 100644--- a/frontend/src/container/NewWidget/RightContainer/__tests__/RightContainer.test.tsx+++ b/frontend/src/container/NewWidget/RightContainer/__tests__/RightContainer.test.tsx@@ -205,8 +205,9 @@ describe('RightContainer - Alerts Section', () => {it('calls onCreateAlertsHandler when alerts section is clicked', async () => {const mockCreateAlertsHandler = jest.fn();- const useCreateAlerts = jest.requireMock('hooks/queryBuilder/useCreateAlerts')- .default;+ const useCreateAlerts = jest.requireMock(+ 'hooks/queryBuilder/useCreateAlerts',+ ).default;useCreateAlerts.mockReturnValue(mockCreateAlertsHandler);render(<RightContainer {...defaultProps} />);@@ -220,8 +221,9 @@ describe('RightContainer - Alerts Section', () => {});it('passes correct parameters to useCreateAlerts hook', () => {- const useCreateAlerts = jest.requireMock('hooks/queryBuilder/useCreateAlerts')- .default;+ const useCreateAlerts = jest.requireMock(+ 'hooks/queryBuilder/useCreateAlerts',+ ).default;render(<RightContainer {...defaultProps} />);diff --git a/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesSelector.tsx b/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesSelector.tsxindex fc72e5b6fc..f158e137e2 100644--- a/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesSelector.tsx+++ b/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesSelector.tsx@@ -27,7 +27,7 @@ export default function DisconnectValuesSelector({return DisconnectedValuesMode.Never;});const [thresholdSeconds, setThresholdSeconds] = useState<number>(- typeof value === 'number' ? value : minValue ?? DEFAULT_THRESHOLD_SECONDS,+ typeof value === 'number' ? value : (minValue ?? DEFAULT_THRESHOLD_SECONDS),);useEffect(() => {diff --git a/frontend/src/container/NewWidget/RightContainer/components/SettingsSection/SettingsSection.styles.scss b/frontend/src/container/NewWidget/RightContainer/components/SettingsSection/SettingsSection.styles.scssindex baed7197b7..fbcfc229dc 100644--- a/frontend/src/container/NewWidget/RightContainer/components/SettingsSection/SettingsSection.styles.scss+++ b/frontend/src/container/NewWidget/RightContainer/components/SettingsSection/SettingsSection.styles.scss@@ -43,7 +43,10 @@max-height: 0;overflow: hidden;opacity: 0;- transition: max-height 0.1s ease, opacity 0.1s ease, padding 0.1s ease;+ transition:+ max-height 0.1s ease,+ opacity 0.1s ease,+ padding 0.1s ease;&.open {padding-bottom: 24px;diff --git a/frontend/src/container/NewWidget/index.tsx b/frontend/src/container/NewWidget/index.tsxindex 2ad201327c..7808d3a883 100644--- a/frontend/src/container/NewWidget/index.tsx+++ b/frontend/src/container/NewWidget/index.tsx@@ -555,7 +555,7 @@ function NewWidget({customLegendColors: selectedWidget?.customLegendColors || {},contextLinks: selectedWidget?.contextLinks || { linksData: [] },},- ]+ ]: [...preWidgets,{@@ -588,7 +588,7 @@ function NewWidget({contextLinks: selectedWidget?.contextLinks || { linksData: [] },},...afterWidgets,- ],+ ],layout: [...updatedLayout],},};diff --git a/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx b/frontend/src/container/OnboardingContainer/OnboardingContainer.tsxindex d4862cb403..f52438783c 100644--- a/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx+++ b/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx@@ -302,10 +302,8 @@ export default function Onboarding(): JSX.Element {}, [location.pathname]);const [form] = Form.useForm<InviteMemberFormValues>();- const [- isInviteTeamMemberModalOpen,- setIsInviteTeamMemberModalOpen,- ] = useState<boolean>(false);+ const [isInviteTeamMemberModalOpen, setIsInviteTeamMemberModalOpen] =+ useState<boolean>(false);const toggleModal = useCallback((value: boolean): void => {diff --git a/frontend/src/container/OnboardingContainer/Steps/ConnectionStatus/ConnectionStatus.tsx b/frontend/src/container/OnboardingContainer/Steps/ConnectionStatus/ConnectionStatus.tsxindex 59fb8b4f35..dcd1195944 100644--- a/frontend/src/container/OnboardingContainer/Steps/ConnectionStatus/ConnectionStatus.tsx+++ b/frontend/src/container/OnboardingContainer/Steps/ConnectionStatus/ConnectionStatus.tsx@@ -97,10 +97,8 @@ export default function ConnectionStatus(): JSX.Element {'query-key-onboarding-status',);- const [- shouldRetryOnboardingCall,- setShouldRetryOnboardingCall,- ] = useState<boolean>(false);+ const [shouldRetryOnboardingCall, setShouldRetryOnboardingCall] =+ useState<boolean>(false);useEffect(() => {// runs only when the caller is coming from 'kafka' i.e. coming from Messaging Queues - setup helperdiff --git a/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx b/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsxindex b255456871..117febcdce 100644--- a/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx+++ b/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx@@ -63,10 +63,8 @@ export default function DataSource(): JSX.Element {const requestedDataSourceName = Form.useWatch('requestedDataSourceName', form);- const [- isSubmittingRequestForDataSource,- setIsSubmittingRequestForDataSource,- ] = useState(false);+ const [isSubmittingRequestForDataSource, setIsSubmittingRequestForDataSource] =+ useState(false);const { notifications } = useNotifications();diff --git a/frontend/src/container/OnboardingContainer/Steps/LogsConnectionStatus/LogsConnectionStatus.tsx b/frontend/src/container/OnboardingContainer/Steps/LogsConnectionStatus/LogsConnectionStatus.tsxindex 2f702f1183..668b710296 100644--- a/frontend/src/container/OnboardingContainer/Steps/LogsConnectionStatus/LogsConnectionStatus.tsx+++ b/frontend/src/container/OnboardingContainer/Steps/LogsConnectionStatus/LogsConnectionStatus.tsx@@ -34,11 +34,8 @@ const enum ApplicationLogsType {export default function LogsConnectionStatus(): JSX.Element {const [loading, setLoading] = useState(true);- const {- selectedDataSource,- activeStep,- selectedEnvironment,- } = useOnboardingContext();+ const { selectedDataSource, activeStep, selectedEnvironment } =+ useOnboardingContext();const [isReceivingData, setIsReceivingData] = useState(false);const [pollingInterval, setPollingInterval] = useState<number | false>(15000); // initial Polling interval of 15 secs , Set to false after 5 minsconst [retryCount, setRetryCount] = useState(20); // Retry for 5 minsdiff --git a/frontend/src/container/OnboardingContainer/__test__/InviteUserFlow.test.tsx b/frontend/src/container/OnboardingContainer/__test__/InviteUserFlow.test.tsxindex 40fcd885ca..c71f0e2ad8 100644--- a/frontend/src/container/OnboardingContainer/__test__/InviteUserFlow.test.tsx+++ b/frontend/src/container/OnboardingContainer/__test__/InviteUserFlow.test.tsx@@ -81,9 +81,8 @@ describe('Onboarding invite team member flow', () => {const inviteModal = await screen.findByTestId('invite-team-members-modal');expect(inviteModal).toBeInTheDocument();- const inviteModalTitle = await within(inviteModal).findAllByText(- /invite_team_members/i,- );+ const inviteModalTitle =+ await within(inviteModal).findAllByText(/invite_team_members/i);expect(inviteModalTitle[0]).toBeInTheDocument();// Verify that the invite modal contains an input field for entering the email addressdiff --git a/frontend/src/container/OnboardingContainer/common/ModuleStepsContainer/ModuleStepsContainer.tsx b/frontend/src/container/OnboardingContainer/common/ModuleStepsContainer/ModuleStepsContainer.tsxindex 89ae164831..8ff1101b22 100644--- a/frontend/src/container/OnboardingContainer/common/ModuleStepsContainer/ModuleStepsContainer.tsx+++ b/frontend/src/container/OnboardingContainer/common/ModuleStepsContainer/ModuleStepsContainer.tsx@@ -91,9 +91,8 @@ export default function ModuleStepsContainer({const { step } = activeStep;- const {- name: selectedDataSourceName = '',- } = selectedDataSource as DataSourceType;+ const { name: selectedDataSourceName = '' } =+ selectedDataSource as DataSourceType;if (step.id === environmentDetailsStep &&diff --git a/frontend/src/container/OnboardingContainer/context/OnboardingContext.tsx b/frontend/src/container/OnboardingContainer/context/OnboardingContext.tsxindex 76d8bf8e65..d1f9ffb0ff 100644--- a/frontend/src/container/OnboardingContainer/context/OnboardingContext.tsx+++ b/frontend/src/container/OnboardingContainer/context/OnboardingContext.tsx@@ -66,10 +66,8 @@ function OnboardingContextProvider({OnboardingMethods.QUICK_START,);- const [- selectedDataSource,- setSelectedDataSource,- ] = useState<DataSourceType | null>(defaultApplicationDataSource);+ const [selectedDataSource, setSelectedDataSource] =+ useState<DataSourceType | null>(defaultApplicationDataSource);const updateServiceName = (newValue: string): void => {setServiceName(newValue);diff --git a/frontend/src/container/OnboardingQuestionaire/AboutSigNozQuestions/AboutSigNozQuestions.tsx b/frontend/src/container/OnboardingQuestionaire/AboutSigNozQuestions/AboutSigNozQuestions.tsxindex 88c9bf44c9..5d0998487c 100644--- a/frontend/src/container/OnboardingQuestionaire/AboutSigNozQuestions/AboutSigNozQuestions.tsx+++ b/frontend/src/container/OnboardingQuestionaire/AboutSigNozQuestions/AboutSigNozQuestions.tsx@@ -65,11 +65,11 @@ export function AboutSigNozQuestions({}};- const createInterestChangeHandler = (option: string) => (- checked: boolean,- ): void => {- handleInterestChange(option, Boolean(checked));- };+ const createInterestChangeHandler =+ (option: string) =>+ (checked: boolean): void => {+ handleInterestChange(option, Boolean(checked));+ };const handleOnNext = (): void => {setSignozDetails({diff --git a/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.styles.scss b/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.styles.scssindex 9883fd7def..655298b581 100644--- a/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.styles.scss+++ b/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.styles.scss@@ -190,7 +190,9 @@opacity: 0.6 !important;cursor: pointer;padding: 0 !important;- transition: background-color 0.2s, opacity 0.2s;+ transition:+ background-color 0.2s,+ opacity 0.2s;box-shadow: none !important;svg {diff --git a/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.tsx b/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.tsxindex 4da0306de5..ce603edc01 100644--- a/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.tsx+++ b/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.tsx@@ -203,9 +203,10 @@ function InviteTeamMembers({);const createEmailChangeHandler = useCallback(- (member: TeamMember) => (e: React.ChangeEvent<HTMLInputElement>): void => {- handleEmailChange(e, member);- },+ (member: TeamMember) =>+ (e: React.ChangeEvent<HTMLInputElement>): void => {+ handleEmailChange(e, member);+ },[handleEmailChange],);diff --git a/frontend/src/container/OnboardingQuestionaire/OnboardingQuestionaire.styles.scss b/frontend/src/container/OnboardingQuestionaire/OnboardingQuestionaire.styles.scssindex 830be2b588..2bc8a20fbb 100644--- a/frontend/src/container/OnboardingQuestionaire/OnboardingQuestionaire.styles.scss+++ b/frontend/src/container/OnboardingQuestionaire/OnboardingQuestionaire.styles.scss@@ -303,7 +303,11 @@color: var(--l3-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 11px;font-style: normal;diff --git a/frontend/src/container/OnboardingQuestionaire/index.tsx b/frontend/src/container/OnboardingQuestionaire/index.tsxindex 50a4dc6aac..77189bb25b 100644--- a/frontend/src/container/OnboardingQuestionaire/index.tsx+++ b/frontend/src/container/OnboardingQuestionaire/index.tsx@@ -73,18 +73,14 @@ function OnboardingQuestionaire(): JSX.Element {INITIAL_SIGNOZ_DETAILS,);- const [- optimiseSignozDetails,- setOptimiseSignozDetails,- ] = useState<OptimiseSignozDetails>(INITIAL_OPTIMISE_SIGNOZ_DETAILS);+ const [optimiseSignozDetails, setOptimiseSignozDetails] =+ useState<OptimiseSignozDetails>(INITIAL_OPTIMISE_SIGNOZ_DETAILS);const [teamMembers, setTeamMembers] = useState<InviteTeamMembersProps[] | null>(null);- const [- updatingOrgOnboardingStatus,- setUpdatingOrgOnboardingStatus,- ] = useState<boolean>(false);+ const [updatingOrgOnboardingStatus, setUpdatingOrgOnboardingStatus] =+ useState<boolean>(false);useEffect(() => {logEvent('Org Onboarding: Started', {@@ -123,9 +119,8 @@ function OnboardingQuestionaire(): JSX.Element {optimiseSignozDetails.hostsPerDay === 0 &&optimiseSignozDetails.services === 0;- const { mutate: updateProfile, isLoading: isUpdatingProfile } = usePutProfile<- AxiosError<RenderErrorResponseDTO>- >();+ const { mutate: updateProfile, isLoading: isUpdatingProfile } =+ usePutProfile<AxiosError<RenderErrorResponseDTO>>();const { mutate: updateOrgPreference } = useMutation(updateOrgPreferenceAPI, {onSuccess: () => {@@ -163,7 +158,7 @@ function OnboardingQuestionaire(): JSX.Element {(item) => item !== 'Others',) || []),signozDetails?.otherInterestInSignoz,- ] as string[])+ ] as string[]): (signozDetails?.interestInSignoz as string[]),logs_scale_per_day_in_gb: optimiseSignozDetails?.logsPerDay as number,number_of_hosts: optimiseSignozDetails?.hostsPerDay as number,diff --git a/frontend/src/container/OnboardingV2Container/AddDataSource/AddDataSource.tsx b/frontend/src/container/OnboardingV2Container/AddDataSource/AddDataSource.tsxindex dba8dadb88..5d5db56943 100644--- a/frontend/src/container/OnboardingV2Container/AddDataSource/AddDataSource.tsx+++ b/frontend/src/container/OnboardingV2Container/AddDataSource/AddDataSource.tsx@@ -163,9 +163,8 @@ function OnboardingAddDataSource(): JSX.Element {const question3Ref = useRef<HTMLDivElement | null>(null);const configureProdRef = useRef<HTMLDivElement | null>(null);- const [showConfigureProduct, setShowConfigureProduct] = useState<boolean>(- false,- );+ const [showConfigureProduct, setShowConfigureProduct] =+ useState<boolean>(false);const [currentStep, setCurrentStep] = useState(1);@@ -173,15 +172,11 @@ function OnboardingAddDataSource(): JSX.Element {const [hasMoreQuestions, setHasMoreQuestions] = useState<boolean>(true);- const [- showRequestDataSourceModal,- setShowRequestDataSourceModal,- ] = useState<boolean>(false);+ const [showRequestDataSourceModal, setShowRequestDataSourceModal] =+ useState<boolean>(false);- const [- showInviteTeamMembersModal,- setShowInviteTeamMembersModal,- ] = useState<boolean>(false);+ const [showInviteTeamMembersModal, setShowInviteTeamMembersModal] =+ useState<boolean>(false);const [docsUrl, setDocsUrl] = useState<string>(`${DOCS_BASE_URL}/docs/instrumentation/`,@@ -201,10 +196,8 @@ function OnboardingAddDataSource(): JSX.Element {const [selectedCategory, setSelectedCategory] = useState<string>('All');- const [- dataSourceRequestSubmitted,- setDataSourceRequestSubmitted,- ] = useState<boolean>(false);+ const [dataSourceRequestSubmitted, setDataSourceRequestSubmitted] =+ useState<boolean>(false);const handleScrollToStep = (ref: React.RefObject<HTMLDivElement>): void => {setTimeout(() => {diff --git a/frontend/src/container/OnboardingV2Container/IngestionDetails/IngestionDetails.tsx b/frontend/src/container/OnboardingV2Container/IngestionDetails/IngestionDetails.tsxindex a17fecc3e4..1b80315654 100644--- a/frontend/src/container/OnboardingV2Container/IngestionDetails/IngestionDetails.tsx+++ b/frontend/src/container/OnboardingV2Container/IngestionDetails/IngestionDetails.tsx@@ -39,10 +39,8 @@ export default function OnboardingIngestionDetails(): JSX.Element {const { notifications } = useNotifications();const [, handleCopyToClipboard] = useCopyToClipboard();- const [- firstIngestionKey,- setFirstIngestionKey,- ] = useState<GatewaytypesIngestionKeyDTO>({} as GatewaytypesIngestionKeyDTO);+ const [firstIngestionKey, setFirstIngestionKey] =+ useState<GatewaytypesIngestionKeyDTO>({} as GatewaytypesIngestionKeyDTO);const {data: ingestionKeys,diff --git a/frontend/src/container/OptionsMenu/types.ts b/frontend/src/container/OptionsMenu/types.tsindex f26a9d17c0..70dcfdf276 100644--- a/frontend/src/container/OptionsMenu/types.ts+++ b/frontend/src/container/OptionsMenu/types.ts@@ -20,8 +20,10 @@ export interface OptionsQuery {version?: number;}-export interface InitialOptions- extends Omit<Partial<OptionsQuery>, 'selectColumns'> {+export interface InitialOptions extends Omit<+ Partial<OptionsQuery>,+ 'selectColumns'+> {selectColumns?: string[];}diff --git a/frontend/src/container/OptionsMenu/useOptionsMenu.ts b/frontend/src/container/OptionsMenu/useOptionsMenu.tsindex 9ae2405eaa..cc0f1f2970 100644--- a/frontend/src/container/OptionsMenu/useOptionsMenu.ts+++ b/frontend/src/container/OptionsMenu/useOptionsMenu.ts@@ -74,10 +74,8 @@ const useOptionsMenu = ({[dataSource],);- const {- query: optionsQuery,- redirectWithQuery: redirectWithOptionsData,- } = useUrlQueryData<OptionsQuery>(URL_OPTIONS, defaultOptionsQuery);+ const { query: optionsQuery, redirectWithQuery: redirectWithOptionsData } =+ useUrlQueryData<OptionsQuery>(URL_OPTIONS, defaultOptionsQuery);const initialQueriesV5 = useMemo(() =>@@ -190,15 +188,14 @@ const useOptionsMenu = ({).flat();if (searchedAttributesDataList.length) {if (dataSource === DataSource.LOGS) {- const logsSelectedColumns: TelemetryFieldKey[] = defaultLogsSelectedColumns.map(- (e) => ({+ const logsSelectedColumns: TelemetryFieldKey[] =+ defaultLogsSelectedColumns.map((e) => ({...e,name: e.name,signal: e.signal as SignalType,fieldContext: e.fieldContext as FieldContext,fieldDataType: e.fieldDataType as FieldDataType,- }),- );+ }));return [...logsSelectedColumns,...searchedAttributesDataListdiff --git a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/CreateEdit.tsx b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/CreateEdit.tsxindex b89d5f914b..20da212547 100644--- a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/CreateEdit.tsx+++ b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/CreateEdit.tsx@@ -77,15 +77,11 @@ function CreateOrEdit(props: CreateOrEditProps): JSX.Element {const samlEnabled =featureFlags?.find((flag) => flag.name === FeatureKeys.SSO)?.active || false;- const {- mutate: createAuthDomain,- isLoading: isCreating,- } = useCreateAuthDomain<AxiosError<RenderErrorResponseDTO>>();+ const { mutate: createAuthDomain, isLoading: isCreating } =+ useCreateAuthDomain<AxiosError<RenderErrorResponseDTO>>();- const {- mutate: updateAuthDomain,- isLoading: isUpdating,- } = useUpdateAuthDomain<AxiosError<RenderErrorResponseDTO>>();+ const { mutate: updateAuthDomain, isLoading: isUpdating } =+ useUpdateAuthDomain<AxiosError<RenderErrorResponseDTO>>();/*** Prepares Google Auth config for API payloaddiff --git a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/CreateEdit.utils.ts b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/CreateEdit.utils.tsindex d5652532b8..d37e5515b4 100644--- a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/CreateEdit.utils.ts+++ b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/CreateEdit.utils.ts@@ -120,7 +120,7 @@ export function prepareInitialValues(domainToAdminEmailList: convertDomainMappingsToList(record.googleAuthConfig.domainToAdminEmail,),- }+ }: undefined,roleMapping: record.roleMapping? {@@ -128,7 +128,7 @@ export function prepareInitialValues(groupMappingsList: convertGroupMappingsToList(record.roleMapping.groupMappings,),- }+ }: undefined,};}diff --git a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/AuthnGoogleAuth.tsx b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/AuthnGoogleAuth.tsxindex d55ce8e89f..4514f4dce7 100644--- a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/AuthnGoogleAuth.tsx+++ b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/AuthnGoogleAuth.tsx@@ -193,19 +193,20 @@ function ConfigureGoogleAuthAuthnProvider({Requires a Service Account with domain-wide delegation.</p></div>- {expandedSection !== 'workspace-groups' && hasWorkspaceGroupsErrors && (- <Tooltip- title={- <div>- {workspaceGroupsErrorMessages.map((msg) => (- <div key={msg}>{msg}</div>- ))}- </div>- }- >- <TriangleAlert size={16} color={Color.BG_CHERRY_500} />- </Tooltip>- )}+ {expandedSection !== 'workspace-groups' &&+ hasWorkspaceGroupsErrors && (+ <Tooltip+ title={+ <div>+ {workspaceGroupsErrorMessages.map((msg) => (+ <div key={msg}>{msg}</div>+ ))}+ </div>+ }+ >+ <TriangleAlert size={16} color={Color.BG_CHERRY_500} />+ </Tooltip>+ )}</div>}>diff --git a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/components/DomainMappingList.styles.scss b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/components/DomainMappingList.styles.scssindex 63166201ac..ad2675eeff 100644--- a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/components/DomainMappingList.styles.scss+++ b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/components/DomainMappingList.styles.scss@@ -52,7 +52,9 @@color: var(--destructive) !important;opacity: 0.6 !important;cursor: pointer;- transition: background-color 0.2s, opacity 0.2s;+ transition:+ background-color 0.2s,+ opacity 0.2s;box-shadow: none !important;display: flex;align-items: center;diff --git a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/components/RoleMappingSection.styles.scss b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/components/RoleMappingSection.styles.scssindex 8e04169596..9db3b087d1 100644--- a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/components/RoleMappingSection.styles.scss+++ b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/Providers/components/RoleMappingSection.styles.scss@@ -201,7 +201,9 @@color: var(--destructive) !important;opacity: 0.6 !important;cursor: pointer;- transition: background-color 0.2s, opacity 0.2s;+ transition:+ background-color 0.2s,+ opacity 0.2s;box-shadow: none !important;display: flex;align-items: center;diff --git a/frontend/src/container/OrganizationSettings/AuthDomain/SSOEnforcementToggle.tsx b/frontend/src/container/OrganizationSettings/AuthDomain/SSOEnforcementToggle.tsxindex d9500eaa14..5f5f1aa232 100644--- a/frontend/src/container/OrganizationSettings/AuthDomain/SSOEnforcementToggle.tsx+++ b/frontend/src/container/OrganizationSettings/AuthDomain/SSOEnforcementToggle.tsx@@ -27,9 +27,8 @@ function SSOEnforcementToggle({setIsChecked(isDefaultChecked);}, [isDefaultChecked]);- const { mutate: updateAuthDomain, isLoading } = useUpdateAuthDomain<- AxiosError<RenderErrorResponseDTO>- >();+ const { mutate: updateAuthDomain, isLoading } =+ useUpdateAuthDomain<AxiosError<RenderErrorResponseDTO>>();const onChangeHandler = (checked: boolean): void => {if (!record.id) {diff --git a/frontend/src/container/OrganizationSettings/AuthDomain/__tests__/mocks.ts b/frontend/src/container/OrganizationSettings/AuthDomain/__tests__/mocks.tsindex 955f1c65c6..864d0d2bc9 100644--- a/frontend/src/container/OrganizationSettings/AuthDomain/__tests__/mocks.ts+++ b/frontend/src/container/OrganizationSettings/AuthDomain/__tests__/mocks.ts@@ -79,24 +79,25 @@ export const mockDomainWithRoleMapping: AuthtypesGettableAuthDomainDTO = {};// Mock Auth Domain with useRoleAttribute enabled-export const mockDomainWithDirectRoleAttribute: AuthtypesGettableAuthDomainDTO = {- id: 'domain-5',- name: 'direct-role.com',- ssoEnabled: true,- ssoType: 'oidc',- oidcConfig: {- issuer: 'https://oidc.direct-role.com',- clientId: 'direct-role-client-id',- clientSecret: 'direct-role-client-secret',- },- roleMapping: {- defaultRole: 'VIEWER',- useRoleAttribute: true,- },- authNProviderInfo: {- relayStatePath: 'api/v1/sso/relay/domain-5',- },-};+export const mockDomainWithDirectRoleAttribute: AuthtypesGettableAuthDomainDTO =+ {+ id: 'domain-5',+ name: 'direct-role.com',+ ssoEnabled: true,+ ssoType: 'oidc',+ oidcConfig: {+ issuer: 'https://oidc.direct-role.com',+ clientId: 'direct-role-client-id',+ clientSecret: 'direct-role-client-secret',+ },+ roleMapping: {+ defaultRole: 'VIEWER',+ useRoleAttribute: true,+ },+ authNProviderInfo: {+ relayStatePath: 'api/v1/sso/relay/domain-5',+ },+ };// Mock OIDC domain with claim mappingexport const mockOidcWithClaimMapping: AuthtypesGettableAuthDomainDTO = {@@ -146,27 +147,28 @@ export const mockSamlWithAttributeMapping: AuthtypesGettableAuthDomainDTO = {};// Mock Google Auth with workspace groups-export const mockGoogleAuthWithWorkspaceGroups: AuthtypesGettableAuthDomainDTO = {- id: 'domain-8',- name: 'google-groups.com',- ssoEnabled: true,- ssoType: 'google_auth',- googleAuthConfig: {- clientId: 'google-groups-client-id',- clientSecret: 'google-groups-client-secret',- insecureSkipEmailVerified: false,- fetchGroups: true,- serviceAccountJson: '{"type": "service_account"}',- domainToAdminEmail: {- 'google-groups.com': '[email protected]',+export const mockGoogleAuthWithWorkspaceGroups: AuthtypesGettableAuthDomainDTO =+ {+ id: 'domain-8',+ name: 'google-groups.com',+ ssoEnabled: true,+ ssoType: 'google_auth',+ googleAuthConfig: {+ clientId: 'google-groups-client-id',+ clientSecret: 'google-groups-client-secret',+ insecureSkipEmailVerified: false,+ fetchGroups: true,+ serviceAccountJson: '{"type": "service_account"}',+ domainToAdminEmail: {+ 'google-groups.com': '[email protected]',+ },+ fetchTransitiveGroupMembership: true,+ allowedGroups: ['allowed-group-1', 'allowed-group-2'],},- fetchTransitiveGroupMembership: true,- allowedGroups: ['allowed-group-1', 'allowed-group-2'],- },- authNProviderInfo: {- relayStatePath: 'api/v1/sso/relay/domain-8',- },-};+ authNProviderInfo: {+ relayStatePath: 'api/v1/sso/relay/domain-8',+ },+ };// Mock empty list responseexport const mockEmptyDomainsResponse = {diff --git a/frontend/src/container/OrganizationSettings/AuthDomain/index.tsx b/frontend/src/container/OrganizationSettings/AuthDomain/index.tsxindex f1545b61f0..35d466dd9e 100644--- a/frontend/src/container/OrganizationSettings/AuthDomain/index.tsx+++ b/frontend/src/container/OrganizationSettings/AuthDomain/index.tsx@@ -36,10 +36,8 @@ function AuthDomain(): JSX.Element {const [record, setRecord] = useState<AuthtypesGettableAuthDomainDTO>();const [addDomain, setAddDomain] = useState<boolean>(false);const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);- const [- activeDomain,- setActiveDomain,- ] = useState<AuthtypesGettableAuthDomainDTO | null>(null);+ const [activeDomain, setActiveDomain] =+ useState<AuthtypesGettableAuthDomainDTO | null>(null);const { showErrorModal } = useErrorModal();@@ -51,9 +49,8 @@ function AuthDomain(): JSX.Element {refetch: refetchAuthDomainListResponse,} = useListAuthDomains();- const { mutate: deleteAuthDomain, isLoading } = useDeleteAuthDomain<- AxiosError<RenderErrorResponseDTO>- >();+ const { mutate: deleteAuthDomain, isLoading } =+ useDeleteAuthDomain<AxiosError<RenderErrorResponseDTO>>();const showDeleteModal = useCallback((domain: AuthtypesGettableAuthDomainDTO): void => {diff --git a/frontend/src/container/OrganizationSettings/DisplayName/index.tsx b/frontend/src/container/OrganizationSettings/DisplayName/index.tsxindex 2285f9fa6e..9b8ca563a1 100644--- a/frontend/src/container/OrganizationSettings/DisplayName/index.tsx+++ b/frontend/src/container/OrganizationSettings/DisplayName/index.tsx@@ -35,15 +35,10 @@ function DisplayName({ index, id: orgId }: DisplayNameProps): JSX.Element {const displayName =currentOrg?.displayName ?? orgData?.data?.displayName ?? '';- const {- control,- handleSubmit,- watch,- getValues,- setValue,- } = useForm<FormValues>({- defaultValues: { displayName },- });+ const { control, handleSubmit, watch, getValues, setValue } =+ useForm<FormValues>({+ defaultValues: { displayName },+ });const orgName = watch('displayName');@@ -53,24 +48,24 @@ function DisplayName({ index, id: orgId }: DisplayNameProps): JSX.Element {}}, [displayName, getValues, setValue]);- const {- mutateAsync: updateMyOrganization,- isLoading,- } = useUpdateMyOrganization({- mutation: {- onSuccess: (_, { data }) => {- toast.success(t('success', { ns: 'common' }), {- position: 'top-right',- });- updateOrg(orgId, data.displayName ?? '');- },- onError: (error) => {- showErrorModal(- convertToApiError(error as AxiosError<RenderErrorResponseDTO>) as APIError,- );+ const { mutateAsync: updateMyOrganization, isLoading } =+ useUpdateMyOrganization({+ mutation: {+ onSuccess: (_, { data }) => {+ toast.success(t('success', { ns: 'common' }), {+ position: 'top-right',+ });+ updateOrg(orgId, data.displayName ?? '');+ },+ onError: (error) => {+ showErrorModal(+ convertToApiError(+ error as AxiosError<RenderErrorResponseDTO>,+ ) as APIError,+ );+ },},- },- });+ });const onSubmit = async (values: FormValues): Promise<void> => {const { displayName: name } = values;diff --git a/frontend/src/container/OrganizationSettings/InviteUserModal/InviteUserModal.tsx b/frontend/src/container/OrganizationSettings/InviteUserModal/InviteUserModal.tsxindex 4644af29d9..2a662ef9e0 100644--- a/frontend/src/container/OrganizationSettings/InviteUserModal/InviteUserModal.tsx+++ b/frontend/src/container/OrganizationSettings/InviteUserModal/InviteUserModal.tsx@@ -34,27 +34,25 @@ function InviteUserModal(props: InviteUserModalProps): JSX.Element {async (values: InviteMemberFormValues): Promise<void> => {try {setIsInvitingMembers?.(true);- values?.members?.forEach(- async (member): Promise<void> => {- try {- await sendInvite({- email: member.email,- name: member?.name,- role: member.role,- frontendBaseUrl: getBaseUrl(),- });+ values?.members?.forEach(async (member): Promise<void> => {+ try {+ await sendInvite({+ email: member.email,+ name: member?.name,+ role: member.role,+ frontendBaseUrl: getBaseUrl(),+ });- notifications.success({- message: 'Invite sent successfully',- });- } catch (error) {- notifications.error({- message: (error as APIError).getErrorCode(),- description: (error as APIError).getErrorMessage(),- });- }- },- );+ notifications.success({+ message: 'Invite sent successfully',+ });+ } catch (error) {+ notifications.error({+ message: (error as APIError).getErrorCode(),+ description: (error as APIError).getErrorMessage(),+ });+ }+ });setTimeout(async () => {onClose();diff --git a/frontend/src/container/PaginatedTraceFlamegraph/PaginatedTraceFlamegraph.tsx b/frontend/src/container/PaginatedTraceFlamegraph/PaginatedTraceFlamegraph.tsxindex b79939d238..bb7e4a2bc4 100644--- a/frontend/src/container/PaginatedTraceFlamegraph/PaginatedTraceFlamegraph.tsx+++ b/frontend/src/container/PaginatedTraceFlamegraph/PaginatedTraceFlamegraph.tsx@@ -77,9 +77,10 @@ function TraceFlamegraph(props: ITraceFlamegraphProps): JSX.Element {}, [error, isFetching, data]);// capture the spans from the response, since we do not need to do any manipulation on the same we will keep this as a simple constant [ memoized ]- const spans = useMemo(() => data?.payload?.spans || [], [- data?.payload?.spans,- ]);+ const spans = useMemo(+ () => data?.payload?.spans || [],+ [data?.payload?.spans],+ );// get the content based on the current state of the trace waterfallconst getContent = useMemo(() => {diff --git a/frontend/src/container/PanelWrapper/__tests__/TablePanelWrapper.test.tsx b/frontend/src/container/PanelWrapper/__tests__/TablePanelWrapper.test.tsxindex d74acd08d6..2881b0aec8 100644--- a/frontend/src/container/PanelWrapper/__tests__/TablePanelWrapper.test.tsx+++ b/frontend/src/container/PanelWrapper/__tests__/TablePanelWrapper.test.tsx@@ -13,8 +13,8 @@ describe('Table panel wrappper tests', () => {const { container, getByText } = render(<TablePanelWrapperpanelMode={PanelMode.DASHBOARD_VIEW}- widget={(tablePanelWidgetQuery as unknown) as Widgets}- queryResponse={(tablePanelQueryResponse as unknown) as any}+ widget={tablePanelWidgetQuery as unknown as Widgets}+ queryResponse={tablePanelQueryResponse as unknown as any}onDragSelect={(): void => {}}/>,);diff --git a/frontend/src/container/PanelWrapper/__tests__/ValuePanelWrapper.test.tsx b/frontend/src/container/PanelWrapper/__tests__/ValuePanelWrapper.test.tsxindex 8ba218dccd..71e3e1c7c3 100644--- a/frontend/src/container/PanelWrapper/__tests__/ValuePanelWrapper.test.tsx+++ b/frontend/src/container/PanelWrapper/__tests__/ValuePanelWrapper.test.tsx@@ -22,8 +22,8 @@ describe('Value panel wrappper tests', () => {const { getByText } = render(<ValuePanelWrapperpanelMode={PanelMode.DASHBOARD_VIEW}- widget={(valuePanelWidget as unknown) as Widgets}- queryResponse={(valuePanelQueryResponse as unknown) as any}+ widget={valuePanelWidget as unknown as Widgets}+ queryResponse={valuePanelQueryResponse as unknown as any}onDragSelect={(): void => {}}/>,);@@ -37,8 +37,8 @@ describe('Value panel wrappper tests', () => {const { getByTestId, container } = render(<ValuePanelWrapperpanelMode={PanelMode.DASHBOARD_VIEW}- widget={({ ...valuePanelWidget, thresholds } as unknown) as Widgets}- queryResponse={(valuePanelQueryResponse as unknown) as any}+ widget={{ ...valuePanelWidget, thresholds } as unknown as Widgets}+ queryResponse={valuePanelQueryResponse as unknown as any}onDragSelect={(): void => {}}/>,);diff --git a/frontend/src/container/PanelWrapper/__tests__/histogramLegendScroll.test.tsx b/frontend/src/container/PanelWrapper/__tests__/histogramLegendScroll.test.tsxindex 03a7c27aef..095aa2310e 100644--- a/frontend/src/container/PanelWrapper/__tests__/histogramLegendScroll.test.tsx+++ b/frontend/src/container/PanelWrapper/__tests__/histogramLegendScroll.test.tsx@@ -53,9 +53,9 @@ describe('Histogram Chart Options Legend Scroll Position', () => {});// Create mock chart with legend element- const mockChart = ({+ const mockChart = {root: document.createElement('div'),- } as unknown) as uPlot;+ } as unknown as uPlot;const legend = document.createElement('div');legend.className = 'u-legend';@@ -93,9 +93,9 @@ describe('Histogram Chart Options Legend Scroll Position', () => {});// Create mock chart with legend element- const mockChart = ({+ const mockChart = {root: document.createElement('div'),- } as unknown) as uPlot;+ } as unknown as uPlot;const legend = document.createElement('div');legend.className = 'u-legend';diff --git a/frontend/src/container/PanelWrapper/histogram.ts b/frontend/src/container/PanelWrapper/histogram.tsindex de0ce51a45..1db326cf2b 100644--- a/frontend/src/container/PanelWrapper/histogram.ts+++ b/frontend/src/container/PanelWrapper/histogram.ts@@ -113,7 +113,7 @@ export function join(}}- return (data as unknown) as AlignedData[];+ return data as unknown as AlignedData[];}export function histogram(@@ -162,7 +162,7 @@ function replaceUndefinedWithNull(arrays: (number | null)[][]): AlignedData[] {}}}- return (arrays as unknown) as AlignedData[];+ return arrays as unknown as AlignedData[];}function addNullToFirstHistogram(@@ -261,13 +261,13 @@ export const buildHistogramData = (});const joinHistogram = replaceUndefinedWithNull(- (join(histograms) as unknown) as (number | null)[][],+ join(histograms) as unknown as (number | null)[][],);addNullToFirstHistogram(- (joinHistogram as unknown) as (number | null)[][],+ joinHistogram as unknown as (number | null)[][],bucketSize,);- return (joinHistogram as unknown) as AlignedData;+ return joinHistogram as unknown as AlignedData;};diff --git a/frontend/src/container/PanelWrapper/utils.ts b/frontend/src/container/PanelWrapper/utils.tsindex 1de38dbc7b..be16f85203 100644--- a/frontend/src/container/PanelWrapper/utils.ts+++ b/frontend/src/container/PanelWrapper/utils.ts@@ -56,7 +56,7 @@ const hexToRgb = (r: parseInt(result[1], 16),g: parseInt(result[2], 16),b: parseInt(result[3], 16),- }+ }: null;};diff --git a/frontend/src/container/PipelinePage/PipelineListsView/AddNewProcessor/FormFields/CSVInput.tsx b/frontend/src/container/PipelinePage/PipelineListsView/AddNewProcessor/FormFields/CSVInput.tsxindex 1aa371025e..0ad0fba25d 100644--- a/frontend/src/container/PipelinePage/PipelineListsView/AddNewProcessor/FormFields/CSVInput.tsx+++ b/frontend/src/container/PipelinePage/PipelineListsView/AddNewProcessor/FormFields/CSVInput.tsx@@ -6,7 +6,7 @@ function CSVInput({ value, onChange, ...otherProps }: InputProps): JSX.Element {((value as string[]) || []).join(', '),);- const onChangeHandler = (onChange as unknown) as (v: string[]) => void;+ const onChangeHandler = onChange as unknown as (v: string[]) => void;const onInputChange: ChangeEventHandler<HTMLInputElement> = (e) => {const newValue = e.target.value;diff --git a/frontend/src/container/PipelinePage/PipelineListsView/PipelineExpandView.tsx b/frontend/src/container/PipelinePage/PipelineListsView/PipelineExpandView.tsxindex 046b8f0be8..3f3557db3f 100644--- a/frontend/src/container/PipelinePage/PipelineListsView/PipelineExpandView.tsx+++ b/frontend/src/container/PipelinePage/PipelineListsView/PipelineExpandView.tsx@@ -218,7 +218,7 @@ function PipelineExpandView({({index,moveRow: moveProcessorRow,- } as React.HTMLAttributes<unknown>);+ }) as React.HTMLAttributes<unknown>;const getLocales = (): TableLocale => ({emptyText: <span />,diff --git a/frontend/src/container/PipelinePage/PipelineListsView/PipelineListsView.tsx b/frontend/src/container/PipelinePage/PipelineListsView/PipelineListsView.tsxindex 5632c6ec94..0a4a19b98c 100644--- a/frontend/src/container/PipelinePage/PipelineListsView/PipelineListsView.tsx+++ b/frontend/src/container/PipelinePage/PipelineListsView/PipelineListsView.tsx@@ -133,15 +133,11 @@ function PipelineListsView({[expandedPipelineId, currPipelineData],);- const [- selectedProcessorData,- setSelectedProcessorData,- ] = useState<ProcessorData>();+ const [selectedProcessorData, setSelectedProcessorData] =+ useState<ProcessorData>();- const [- selectedPipelineData,- setSelectedPipelineData,- ] = useState<PipelineData>();+ const [selectedPipelineData, setSelectedPipelineData] =+ useState<PipelineData>();const [expandedRowKeys, setExpandedRowKeys] = useState<Array<string>>();const [showSaveButton, setShowSaveButton] = useState<string>();@@ -519,7 +515,7 @@ function PipelineListsView({({index,moveRow: movePipelineRow,- } as React.HTMLAttributes<unknown>);+ }) as React.HTMLAttributes<unknown>;const expandableConfig: ExpandableConfig<PipelineData> = {expandedRowKeys,diff --git a/frontend/src/container/PipelinePage/PipelineListsView/Preview/LogsFilterPreview/index.tsx b/frontend/src/container/PipelinePage/PipelineListsView/Preview/LogsFilterPreview/index.tsxindex 35d6f710d0..554b7f313e 100644--- a/frontend/src/container/PipelinePage/PipelineListsView/Preview/LogsFilterPreview/index.tsx+++ b/frontend/src/container/PipelinePage/PipelineListsView/Preview/LogsFilterPreview/index.tsx@@ -9,9 +9,8 @@ import './styles.scss';function LogsFilterPreview({ filter }: LogsFilterPreviewProps): JSX.Element {const last1HourInterval = RelativeDurationOptions[3].value;- const [previewTimeInterval, setPreviewTimeInterval] = useState(- last1HourInterval,- );+ const [previewTimeInterval, setPreviewTimeInterval] =+ useState(last1HourInterval);const isEmptyFilter = (filter?.items?.length || 0) < 1;diff --git a/frontend/src/container/PipelinePage/PipelineListsView/Preview/PipelineProcessingPreview/index.tsx b/frontend/src/container/PipelinePage/PipelineListsView/Preview/PipelineProcessingPreview/index.tsxindex c81439b6ec..4c0f5c88ce 100644--- a/frontend/src/container/PipelinePage/PipelineListsView/Preview/PipelineProcessingPreview/index.tsx+++ b/frontend/src/container/PipelinePage/PipelineListsView/Preview/PipelineProcessingPreview/index.tsx@@ -13,9 +13,8 @@ function PipelineProcessingPreview({pipeline,}: PipelineProcessingPreviewProps): JSX.Element {const last1HourInterval = RelativeDurationOptions[3].value;- const [logsSampleQueryInterval, setLogsSampleQueryInterval] = useState(- last1HourInterval,- );+ const [logsSampleQueryInterval, setLogsSampleQueryInterval] =+ useState(last1HourInterval);const sampleLogsResponse = useSampleLogs({filter: pipeline.filter,diff --git a/frontend/src/container/PipelinePage/PipelineListsView/Preview/components/LogsList/index.tsx b/frontend/src/container/PipelinePage/PipelineListsView/Preview/components/LogsList/index.tsxindex f676997480..48b8a8e196 100644--- a/frontend/src/container/PipelinePage/PipelineListsView/Preview/components/LogsList/index.tsx+++ b/frontend/src/container/PipelinePage/PipelineListsView/Preview/components/LogsList/index.tsx@@ -9,12 +9,8 @@ import { ILog } from 'types/api/logs/log';import './styles.scss';function LogsList({ logs }: LogsListProps): JSX.Element {- const {- activeLog,- onSetActiveLog,- onClearActiveLog,- onAddToQuery,- } = useActiveLog();+ const { activeLog, onSetActiveLog, onClearActiveLog, onAddToQuery } =+ useActiveLog();const makeLogDetailsHandler = (log: ILog) => (): void => onSetActiveLog(log);diff --git a/frontend/src/container/PipelinePage/PipelineListsView/styles.ts b/frontend/src/container/PipelinePage/PipelineListsView/styles.tsindex c6cb39f8a1..2206bcdb1b 100644--- a/frontend/src/container/PipelinePage/PipelineListsView/styles.ts+++ b/frontend/src/container/PipelinePage/PipelineListsView/styles.ts@@ -42,21 +42,20 @@ export const ProcessorIndexIcon = styled(Avatar)`font-weight: 400;`;-export const StyledTable: React.FC<- TableProps<any> & { isDarkMode: boolean }-> = styled(Table)`- .ant-table-tbody > tr > td {- border: none;- }+export const StyledTable: React.FC<TableProps<any> & { isDarkMode: boolean }> =+ styled(Table)`+ .ant-table-tbody > tr > td {+ border: none;+ }- .ant-table-tbody > tr:last-child > td {- border: none;- }- .ant-table-content {- background: ${({ isDarkMode }: { isDarkMode: boolean }): StyledCSS =>- isDarkMode ? themeColors.neroBlack : themeColors.snowWhite};- }-`;+ .ant-table-tbody > tr:last-child > td {+ border: none;+ }+ .ant-table-content {+ background: ${({ isDarkMode }: { isDarkMode: boolean }): StyledCSS =>+ isDarkMode ? themeColors.neroBlack : themeColors.snowWhite};+ }+ `;export const AlertContentWrapper = styled.div`font-weight: 400;diff --git a/frontend/src/container/PipelinePage/tests/PipelineListsView.test.tsx b/frontend/src/container/PipelinePage/tests/PipelineListsView.test.tsxindex 9a0226de20..8b5b2fa7a7 100644--- a/frontend/src/container/PipelinePage/tests/PipelineListsView.test.tsx+++ b/frontend/src/container/PipelinePage/tests/PipelineListsView.test.tsx@@ -113,13 +113,9 @@ describe('PipelinePage container test', () => {);// table headers assertions- [- 'Pipeline Name',- 'Filters',- 'Last Edited',- 'Edited By',- 'Actions',- ].forEach((text) => expect(getByText(text)).toBeInTheDocument());+ ['Pipeline Name', 'Filters', 'Last Edited', 'Edited By', 'Actions'].forEach(+ (text) => expect(getByText(text)).toBeInTheDocument(),+ );// content assertionexpect(container.querySelectorAll('.ant-table-row').length).toBe(2);@@ -213,7 +209,7 @@ describe('PipelinePage container test', () => {});await fireEvent.click(- ((deleteConfirmationModal as unknown) as HTMLElement)?.querySelector(+ (deleteConfirmationModal as unknown as HTMLElement)?.querySelector('.ant-modal-confirm-btns .ant-btn-primary',) as HTMLElement,);@@ -256,7 +252,7 @@ describe('PipelinePage container test', () => {expect(await findByText(- (viewPipelineModal as unknown) as HTMLElement,+ viewPipelineModal as unknown as HTMLElement,'Simulate Processing',),).toBeInTheDocument();diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss b/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scssindex 1223e51f91..e31b0585cf 100644--- a/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss+++ b/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss@@ -215,7 +215,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 14px;font-style: normal;@@ -238,7 +242,11 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'cpsp' on, 'case' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'cpsp' on,+ 'case' on;font-family: Inter;font-size: 14px;font-style: normal;diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntime.tsx b/frontend/src/container/PlannedDowntime/PlannedDowntime.tsxindex ff4254e762..133a4a6efa 100644--- a/frontend/src/container/PlannedDowntime/PlannedDowntime.tsx+++ b/frontend/src/container/PlannedDowntime/PlannedDowntime.tsx@@ -33,7 +33,11 @@ import './PlannedDowntime.styles.scss';dayjs.locale('en');export function PlannedDowntime(): JSX.Element {- const { data: alertsData, isError, isLoading } = useListRules({+ const {+ data: alertsData,+ isError,+ isLoading,+ } = useListRules({query: { cacheTime: 0 },});const [isOpen, setIsOpen] = React.useState(false);@@ -43,9 +47,10 @@ export function PlannedDowntime(): JSX.Element {const history = useHistory();const urlQuery = useUrlQuery();- const [initialValues, setInitialValues] = useState<- Partial<RuletypesPlannedMaintenanceDTO & { editMode: boolean }>- >(defautlInitialValues);+ const [initialValues, setInitialValues] =+ useState<Partial<RuletypesPlannedMaintenanceDTO & { editMode: boolean }>>(+ defautlInitialValues,+ );const downtimeSchedules = useListDowntimeSchedules();const alertOptions = React.useMemo(diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx b/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsxindex ed033e8bea..bf48fa3638 100644--- a/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx+++ b/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx@@ -164,7 +164,7 @@ export function PlannedDowntimeForm(values.timezone,shouldKeepLocalTime,),- )+ ): undefined,recurrence: values.recurrence as RuletypesRecurrenceDTO,},@@ -216,7 +216,7 @@ export function PlannedDowntimeForm(timezoneInitialValue,values.timezone,!isEditMode,- )+ ): undefined,startTime: handleTimeConversion(values.startTime,@@ -228,7 +228,7 @@ export function PlannedDowntimeForm(? undefined: values.recurrence?.repeatOn,repeatType: values.recurrence?.repeatType,- };+ };const payloadValues = {...values,diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntimeList.tsx b/frontend/src/container/PlannedDowntime/PlannedDowntimeList.tsxindex 7d8faea7c4..992087c0f3 100644--- a/frontend/src/container/PlannedDowntime/PlannedDowntimeList.tsx+++ b/frontend/src/container/PlannedDowntime/PlannedDowntimeList.tsx@@ -246,8 +246,8 @@ export function CustomCollapseList(const scheduleTime = schedule?.startTime? dayjs(schedule.startTime).toISOString(): createdAt- ? dayjs(createdAt).toISOString()- : '';+ ? dayjs(createdAt).toISOString()+ : '';// Combine time and dateconst formattedDateAndTime = `Start time ⎯ ${formatDateTime(defaultTo(scheduleTime, ''),@@ -269,7 +269,7 @@ export function CustomCollapseList(: getDuration(schedule?.startTime ? dayjs(schedule.startTime).toISOString() : '',schedule?.endTime ? dayjs(schedule.endTime).toISOString() : '',- )+ )}name={defaultTo(name, '')}handleEdit={(): void => {diff --git a/frontend/src/container/PublicDashboardContainer/PublicDashboardContainer.tsx b/frontend/src/container/PublicDashboardContainer/PublicDashboardContainer.tsxindex 34786c7e5c..3e7d4d54b0 100644--- a/frontend/src/container/PublicDashboardContainer/PublicDashboardContainer.tsx+++ b/frontend/src/container/PublicDashboardContainer/PublicDashboardContainer.tsx@@ -98,13 +98,15 @@ function PublicDashboardContainer({const isTimeRangeEnabled = publicDashboard?.timeRangeEnabled || false;// Memoize dashboardLayout to prevent array recreation on every render- const dashboardLayout = useMemo(() => dashboard?.data?.layout || [], [- dashboard?.data?.layout,- ]);+ const dashboardLayout = useMemo(+ () => dashboard?.data?.layout || [],+ [dashboard?.data?.layout],+ );- const currentPanelMap = useMemo(() => dashboard?.data?.panelMap || {}, [- dashboard?.data?.panelMap,- ]);+ const currentPanelMap = useMemo(+ () => dashboard?.data?.panelMap || {},+ [dashboard?.data?.panelMap],+ );const handleTimeChange = (interval: Time | CustomTimeType,diff --git a/frontend/src/container/PublicDashboardContainer/__tests__/PublicDashboardContainer.test.tsx b/frontend/src/container/PublicDashboardContainer/__tests__/PublicDashboardContainer.test.tsxindex 162872a473..48e8eb8e78 100644--- a/frontend/src/container/PublicDashboardContainer/__tests__/PublicDashboardContainer.test.tsx+++ b/frontend/src/container/PublicDashboardContainer/__tests__/PublicDashboardContainer.test.tsx@@ -125,12 +125,12 @@ jest.mock('dayjs', () => {tz: mockTzMethod,}));Object.keys(actualDayjs).forEach((key) => {- ((mockDayjs as unknown) as Record<string, unknown>)[- key- ] = (actualDayjs as Record<string, unknown>)[key];+ (mockDayjs as unknown as Record<string, unknown>)[key] = (+ actualDayjs as Record<string, unknown>+ )[key];});- ((mockDayjs as unknown) as { extend: jest.Mock }).extend = jest.fn();- ((mockDayjs as unknown) as { tz: { guess: jest.Mock } }).tz = {+ (mockDayjs as unknown as { extend: jest.Mock }).extend = jest.fn();+ (mockDayjs as unknown as { tz: { guess: jest.Mock } }).tz = {guess: jest.fn(() => 'UTC'),};return mockDayjs;@@ -211,7 +211,7 @@ const createMockQuery = (): Widgets['query'] => ({// Base mock data - transform publicDashboardResponse to match component's expected formatconst baseMockData: SuccessResponseV2<PublicDashboardDataProps> = {- data: (publicDashboardResponse.data as unknown) as PublicDashboardDataProps,+ data: publicDashboardResponse.data as unknown as PublicDashboardDataProps,httpStatusCode: StatusCodes.OK,};@@ -430,7 +430,7 @@ describe('Public Dashboard Container', () => {const mockData = createMockData({publicDashboard: {timeRangeEnabled: true,- defaultTimeRange: (undefined as unknown) as string,+ defaultTimeRange: undefined as unknown as string,publicPath: MOCK_PUBLIC_PATH,},});@@ -696,7 +696,7 @@ describe('Public Dashboard Container', () => {it('should handle undefined dashboard data', () => {const mockData: SuccessResponseV2<PublicDashboardDataProps> = {data: {- dashboard: (undefined as unknown) as PublicDashboardDataProps['dashboard'],+ dashboard: undefined as unknown as PublicDashboardDataProps['dashboard'],publicDashboard: {timeRangeEnabled: false,defaultTimeRange: DEFAULT_TIME_RANGE,@@ -729,7 +729,7 @@ describe('Public Dashboard Container', () => {query: createMockQuery(),},],- layout: (undefined as unknown) as Layout[],+ layout: undefined as unknown as Layout[],panelMap: {},variables: {},},diff --git a/frontend/src/container/QueryBuilder/QueryBuilder.tsx b/frontend/src/container/QueryBuilder/QueryBuilder.tsxindex f6ce7f9752..3f8af21505 100644--- a/frontend/src/container/QueryBuilder/QueryBuilder.tsx+++ b/frontend/src/container/QueryBuilder/QueryBuilder.tsx@@ -105,32 +105,34 @@ export const QueryBuilder = memo(function QueryBuilder({}};- const listViewLogFilterConfigs: QueryBuilderProps['filterConfigs'] = useMemo(() => {- const config: QueryBuilderProps['filterConfigs'] = {- stepInterval: { isHidden: true, isDisabled: true },- having: { isHidden: true, isDisabled: true },- filters: {- customKey: 'body',- customOp: OPERATORS.CONTAINS,- },- };+ const listViewLogFilterConfigs: QueryBuilderProps['filterConfigs'] =+ useMemo(() => {+ const config: QueryBuilderProps['filterConfigs'] = {+ stepInterval: { isHidden: true, isDisabled: true },+ having: { isHidden: true, isDisabled: true },+ filters: {+ customKey: 'body',+ customOp: OPERATORS.CONTAINS,+ },+ };- return config;- }, []);+ return config;+ }, []);- const listViewTracesFilterConfigs: QueryBuilderProps['filterConfigs'] = useMemo(() => {- const config: QueryBuilderProps['filterConfigs'] = {- stepInterval: { isHidden: true, isDisabled: true },- having: { isHidden: true, isDisabled: true },- limit: { isHidden: true, isDisabled: true },- filters: {- customKey: 'body',- customOp: OPERATORS.CONTAINS,- },- };+ const listViewTracesFilterConfigs: QueryBuilderProps['filterConfigs'] =+ useMemo(() => {+ const config: QueryBuilderProps['filterConfigs'] = {+ stepInterval: { isHidden: true, isDisabled: true },+ having: { isHidden: true, isDisabled: true },+ limit: { isHidden: true, isDisabled: true },+ filters: {+ customKey: 'body',+ customOp: OPERATORS.CONTAINS,+ },+ };- return config;- }, []);+ return config;+ }, []);return (<Rowdiff --git a/frontend/src/container/QueryBuilder/components/DataSourceDropdown/DataSourceDropdown.tsx b/frontend/src/container/QueryBuilder/components/DataSourceDropdown/DataSourceDropdown.tsxindex 515b6952c1..c5f5bf00a4 100644--- a/frontend/src/container/QueryBuilder/components/DataSourceDropdown/DataSourceDropdown.tsx+++ b/frontend/src/container/QueryBuilder/components/DataSourceDropdown/DataSourceDropdown.tsx@@ -21,11 +21,11 @@ export const DataSourceDropdown = memo(function DataSourceDropdown(? exploreDataSourceMap.map((source) => ({label: transformToUpperCase(source),value: source,- }))+ })): dataSourceMap.map((source) => ({label: transformToUpperCase(source),value: source,- }));+ }));return (<Selectdiff --git a/frontend/src/container/QueryBuilder/components/Formula/Formula.tsx b/frontend/src/container/QueryBuilder/components/Formula/Formula.tsxindex 26574c8ac3..e56dda7a2c 100644--- a/frontend/src/container/QueryBuilder/components/Formula/Formula.tsx+++ b/frontend/src/container/QueryBuilder/components/Formula/Formula.tsx@@ -32,21 +32,17 @@ export function Formula({isAdditionalFilterEnable,isQBV2,}: FormulaProps): JSX.Element {- const {- removeQueryBuilderEntityByIndex,- handleSetFormulaData,- } = useQueryBuilder();+ const { removeQueryBuilderEntityByIndex, handleSetFormulaData } =+ useQueryBuilder();- const {- listOfAdditionalFormulaFilters,- handleChangeFormulaData,- } = useQueryOperations({- index,- query,- filterConfigs,- formula,- entityVersion: '',- });+ const { listOfAdditionalFormulaFilters, handleChangeFormulaData } =+ useQueryOperations({+ index,+ query,+ filterConfigs,+ formula,+ entityVersion: '',+ });const [isCollapse, setIsCollapsed] = useState(false);diff --git a/frontend/src/container/QueryBuilder/components/ListMarker/ListMarker.tsx b/frontend/src/container/QueryBuilder/components/ListMarker/ListMarker.tsxindex 011d5b8938..13d119fb6a 100644--- a/frontend/src/container/QueryBuilder/components/ListMarker/ListMarker.tsx+++ b/frontend/src/container/QueryBuilder/components/ListMarker/ListMarker.tsx@@ -21,7 +21,7 @@ export const ListMarker = memo(function ListMarker({type: isDisabled ? 'default' : 'primary',icon: isDisabled ? <EyeInvisibleFilled /> : <EyeFilled />,onClick: (): void => onDisable(index),- }+ }: { type: 'primary' };return (diff --git a/frontend/src/container/QueryBuilder/components/QueryFunctions/Function.tsx b/frontend/src/container/QueryBuilder/components/QueryFunctions/Function.tsxindex bbe025431a..07a8d04f0c 100644--- a/frontend/src/container/QueryBuilder/components/QueryFunctions/Function.tsx+++ b/frontend/src/container/QueryBuilder/components/QueryFunctions/Function.tsx@@ -35,9 +35,8 @@ export default function Function({const isDarkMode = useIsDarkMode();// Normalize function name to handle backend response case sensitivityconst normalizedFunctionName = normalizeFunctionName(funcData.name);- const { showInput, disabled } = queryFunctionsTypesConfig[- normalizedFunctionName- ];+ const { showInput, disabled } =+ queryFunctionsTypesConfig[normalizedFunctionName];let functionValue;diff --git a/frontend/src/container/QueryBuilder/filters/AggregatorFilter/AggregatorFilter.tsx b/frontend/src/container/QueryBuilder/filters/AggregatorFilter/AggregatorFilter.tsxindex 20327c7745..1295193743 100644--- a/frontend/src/container/QueryBuilder/filters/AggregatorFilter/AggregatorFilter.tsx+++ b/frontend/src/container/QueryBuilder/filters/AggregatorFilter/AggregatorFilter.tsx@@ -215,10 +215,8 @@ export const AggregatorFilter = memo(function AggregatorFilter({const handleChangeCustomValue = useCallback(async (value: string, attributes: BaseAutocompleteData[]) => {- const customAttribute: BaseAutocompleteData = chooseAutocompleteFromCustomValue(- attributes,- value,- );+ const customAttribute: BaseAutocompleteData =+ chooseAutocompleteFromCustomValue(attributes, value);onChange(customAttribute);},diff --git a/frontend/src/container/QueryBuilder/filters/Formula/Having/HavingFilter.tsx b/frontend/src/container/QueryBuilder/filters/Formula/Having/HavingFilter.tsxindex aaed10f140..3184d7a4d2 100644--- a/frontend/src/container/QueryBuilder/filters/Formula/Having/HavingFilter.tsx+++ b/frontend/src/container/QueryBuilder/filters/Formula/Having/HavingFilter.tsx@@ -18,9 +18,8 @@ function HavingFilter({ formula, onChange }: HavingFilterProps): JSX.Element {const { having } = formula;const [searchText, setSearchText] = useState<string>('');const [localValues, setLocalValues] = useState<string[]>([]);- const [currentFormValue, setCurrentFormValue] = useState<HavingForm>(- initialHavingValues,- );+ const [currentFormValue, setCurrentFormValue] =+ useState<HavingForm>(initialHavingValues);const [options, setOptions] = useState<SelectOption<string, string>[]>([]);const { isMulti } = useTagValidation(diff --git a/frontend/src/container/QueryBuilder/filters/GroupByFilter/__test__/GroupByFilter.test.tsx b/frontend/src/container/QueryBuilder/filters/GroupByFilter/__test__/GroupByFilter.test.tsxindex fe83b3971c..63f059a57e 100644--- a/frontend/src/container/QueryBuilder/filters/GroupByFilter/__test__/GroupByFilter.test.tsx+++ b/frontend/src/container/QueryBuilder/filters/GroupByFilter/__test__/GroupByFilter.test.tsx@@ -16,12 +16,12 @@ function setup(overrides?: Partial<React.ComponentProps<typeof GroupByFilter>>,): { onChange: jest.Mock } {const onChange = jest.fn();- const query = ({+ const query = {dataSource: DataSource.METRICS,aggregateAttribute: { key: 'service.name' },aggregateOperator: 'COUNT',groupBy: [],- } as unknown) as IBuilderQuery;+ } as unknown as IBuilderQuery;render(<GroupByFilterquery={query}@@ -66,7 +66,7 @@ describe('GroupByFilter', () => {dataType: 'string',type: '',},- ]+ ]: [];return res(ctx.status(200),diff --git a/frontend/src/container/QueryBuilder/filters/HavingFilter/HavingFilter.tsx b/frontend/src/container/QueryBuilder/filters/HavingFilter/HavingFilter.tsxindex cc8f537391..5d2d084c58 100644--- a/frontend/src/container/QueryBuilder/filters/HavingFilter/HavingFilter.tsx+++ b/frontend/src/container/QueryBuilder/filters/HavingFilter/HavingFilter.tsx@@ -31,9 +31,8 @@ export function HavingFilter({const [searchText, setSearchText] = useState<string>('');const [options, setOptions] = useState<SelectOption<string, string>[]>([]);const [localValues, setLocalValues] = useState<string[]>([]);- const [currentFormValue, setCurrentFormValue] = useState<HavingForm>(- initialHavingValues,- );+ const [currentFormValue, setCurrentFormValue] =+ useState<HavingForm>(initialHavingValues);const [errorMessage, setErrorMessage] = useState<string | null>(null);const { isMulti } = useTagValidation(diff --git a/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.test.tsx b/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.test.tsxindex 329b52ab26..4808db65b3 100644--- a/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.test.tsx+++ b/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.test.tsx@@ -116,15 +116,12 @@ function returnMetrics(// snippet so tests can assert on them.function MetricQueryHarness({ query }: { query: IBuilderQuery }): JSX.Element {- const {- handleChangeAggregatorAttribute,- operators,- spaceAggregationOptions,- } = useQueryOperations({- query,- index: 0,- entityVersion: ENTITY_VERSION_V5,- });+ const { handleChangeAggregatorAttribute, operators, spaceAggregationOptions } =+ useQueryOperations({+ query,+ index: 0,+ entityVersion: ENTITY_VERSION_V5,+ });return (<div>@@ -532,15 +529,12 @@ function StatefulMetricQueryHarness({};}, []);- const {- handleChangeAggregatorAttribute,- operators,- spaceAggregationOptions,- } = useQueryOperations({- query,- index: 0,- entityVersion: ENTITY_VERSION_V5,- });+ const { handleChangeAggregatorAttribute, operators, spaceAggregationOptions } =+ useQueryOperations({+ query,+ index: 0,+ entityVersion: ENTITY_VERSION_V5,+ });const currentAggregation = query.aggregations?.[0] as MetricAggregation;diff --git a/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.tsx b/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.tsxindex ba0665f1d2..2ec3c1316d 100644--- a/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.tsx+++ b/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.tsx@@ -127,7 +127,11 @@ export const MetricNameSelector = memo(function MetricNameSelector({const debouncedValue = useDebounce(searchText, DEBOUNCE_DELAY);- const { isFetching, isError, data: listMetricsData } = useListMetrics(+ const {+ isFetching,+ isError,+ data: listMetricsData,+ } = useListMetrics({searchText: debouncedValue,limit: 100,@@ -141,9 +145,10 @@ export const MetricNameSelector = memo(function MetricNameSelector({},);- const metrics = useMemo(() => listMetricsData?.data?.metrics ?? [], [- listMetricsData,- ]);+ const metrics = useMemo(+ () => listMetricsData?.data?.metrics ?? [],+ [listMetricsData],+ );useEffect(() => {metricsRef.current = metrics;diff --git a/frontend/src/container/QueryBuilder/filters/OrderByFilter/OrderByFilter.tsx b/frontend/src/container/QueryBuilder/filters/OrderByFilter/OrderByFilter.tsxindex 25769991f8..b6c23162c5 100644--- a/frontend/src/container/QueryBuilder/filters/OrderByFilter/OrderByFilter.tsx+++ b/frontend/src/container/QueryBuilder/filters/OrderByFilter/OrderByFilter.tsx@@ -56,7 +56,7 @@ export function OrderByFilter({: [...groupByOptions,...(isNewQueryV2 ? aggregationOptionsFromParsed : aggregationOptions),- ];+ ];return generateOptions(options);}, [diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsxindex 0f347cd5c2..063d1f9944 100644--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx@@ -80,9 +80,10 @@ function QueryBuilderSearch({entity,}: QueryBuilderSearchProps): JSX.Element {const { pathname } = useLocation();- const isLogsExplorerPage = useMemo(() => pathname === ROUTES.LOGS_EXPLORER, [- pathname,- ]);+ const isLogsExplorerPage = useMemo(+ () => pathname === ROUTES.LOGS_EXPLORER,+ [pathname],+ );const [isEditingTag, setIsEditingTag] = useState(false);@@ -292,7 +293,7 @@ function QueryBuilderSearch({const computedTagValue =tagValue && Array.isArray(tagValue) && tagValue[tagValue.length - 1] === ''? tagValue?.slice(0, -1)- : tagValue ?? '';+ : (tagValue ?? '');return {id: uuid().slice(0, 8),@@ -502,7 +503,7 @@ function QueryBuilderSearch({/>{option.selected && <StyledCheckOutlined />}</Select.Option>- ))}+ ))}</Select></div>);diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/utils.ts b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/utils.tsindex 8692ad2721..9379551505 100644--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/utils.ts+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/utils.ts@@ -6,7 +6,8 @@ import { TagFilter } from 'types/api/queryBuilder/queryBuilderData';import { orderByValueDelimiter } from '../OrderByFilter/utils';-export const tagRegexp = /^\s*(.*?)\s*(\bIN\b|\bNOT_IN\b|\bLIKE\b|\bNOT_LIKE\b|\bILIKE\b|\bNOT_ILIKE\b|\bREGEX\b|\bNOT_REGEX\b|=|!=|\bEXISTS\b|\bNOT_EXISTS\b|\bCONTAINS\b|\bNOT_CONTAINS\b|>=|>|<=|<|\bHAS\b|\bNHAS\b)\s*(.*)$/gi;+export const tagRegexp =+ /^\s*(.*?)\s*(\bIN\b|\bNOT_IN\b|\bLIKE\b|\bNOT_LIKE\b|\bILIKE\b|\bNOT_ILIKE\b|\bREGEX\b|\bNOT_REGEX\b|=|!=|\bEXISTS\b|\bNOT_EXISTS\b|\bCONTAINS\b|\bNOT_CONTAINS\b|>=|>|<=|<|\bHAS\b|\bNHAS\b)\s*(.*)$/gi;export function isInNInOperator(value: string): boolean {return value === OPERATORS.IN || value === OPERATORS.NIN;diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2.tsx b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2.tsxindex cc6f3c17f0..11d34db9a6 100644--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2.tsx+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2.tsx@@ -181,9 +181,10 @@ function QueryBuilderSearchV2(const [showAllFilters, setShowAllFilters] = useState<boolean>(false);- const isLogsDataSource = useMemo(() => query.dataSource === DataSource.LOGS, [- query.dataSource,- ]);+ const isLogsDataSource = useMemo(+ () => query.dataSource === DataSource.LOGS,+ [query.dataSource],+ );const memoizedSearchParams = useMemo(() => [@@ -278,43 +279,39 @@ function QueryBuilderSearchV2(},);- const {- data: suggestionsData,- isFetching: isFetchingSuggestions,- } = useGetAttributeSuggestions(- {- searchText: searchValue?.split(' ')[0],- dataSource: query.dataSource,- filters: query.filters || { items: [], op: 'AND' },- },- {- queryKey: [suggestionsParams],- enabled: isQueryEnabled && isLogsDataSource,- },- );+ const { data: suggestionsData, isFetching: isFetchingSuggestions } =+ useGetAttributeSuggestions(+ {+ searchText: searchValue?.split(' ')[0],+ dataSource: query.dataSource,+ filters: query.filters || { items: [], op: 'AND' },+ },+ {+ queryKey: [suggestionsParams],+ enabled: isQueryEnabled && isLogsDataSource,+ },+ );- const {- data: attributeValues,- isFetching: isFetchingAttributeValues,- } = useGetAggregateValues(- {- aggregateOperator: query.aggregateOperator || '',- dataSource: query.dataSource,- aggregateAttribute: query.aggregateAttribute?.key || '',- attributeKey: currentFilterItem?.key?.key || '',- filterAttributeKeyDataType:- currentFilterItem?.key?.dataType ?? DataTypes.EMPTY,- tagType: currentFilterItem?.key?.type ?? '',- searchText: isArray(currentFilterItem?.value)- ? String(currentFilterItem?.value?.[currentFilterItem.value.length - 1]) ||- ''- : currentFilterItem?.value?.toString() || '',- },- {- enabled: currentState === DropdownState.ATTRIBUTE_VALUE,- queryKey: [valueParams],- },- );+ const { data: attributeValues, isFetching: isFetchingAttributeValues } =+ useGetAggregateValues(+ {+ aggregateOperator: query.aggregateOperator || '',+ dataSource: query.dataSource,+ aggregateAttribute: query.aggregateAttribute?.key || '',+ attributeKey: currentFilterItem?.key?.key || '',+ filterAttributeKeyDataType:+ currentFilterItem?.key?.dataType ?? DataTypes.EMPTY,+ tagType: currentFilterItem?.key?.type ?? '',+ searchText: isArray(currentFilterItem?.value)+ ? String(currentFilterItem?.value?.[currentFilterItem.value.length - 1]) ||+ ''+ : currentFilterItem?.value?.toString() || '',+ },+ {+ enabled: currentState === DropdownState.ATTRIBUTE_VALUE,+ queryKey: [valueParams],+ },+ );const handleDropdownSelect = useCallback((value: string) => {@@ -564,9 +561,10 @@ function QueryBuilderSearchV2(// Case 1 -> when typing an attribute key (not selecting from dropdown)if (tagKey && isUndefined(currentFilterItem?.key)) {let currentRunningAttributeKey;- const isSuggestedKeyInAutocomplete = suggestionsData?.payload?.attributes?.some(- (value) => value.key === tagKey.split(' ')[0],- );+ const isSuggestedKeyInAutocomplete =+ suggestionsData?.payload?.attributes?.some(+ (value) => value.key === tagKey.split(' ')[0],+ );if (isSuggestedKeyInAutocomplete) {const allAttributesMatchingTheKey =@@ -705,7 +703,7 @@ function QueryBuilderSearchV2(type: '',},},- ]+ ]: []),...(suggestionsData?.payload?.attributes?.map((key) => ({label: key.key,@@ -738,7 +736,7 @@ function QueryBuilderSearchV2(type: '',},},- ]+ ]: []),// Map existing attribute keys from payload...(data?.payload?.attributeKeys?.map((key) => ({@@ -857,7 +855,7 @@ function QueryBuilderSearchV2(Array.isArray(tag.value) &&tag.value[tag.value.length - 1] === ''? tag.value?.slice(0, -1)- : tag.value ?? '';+ : (tag.value ?? '');filterTags.items.push({id: tag.id || uuid().slice(0, 8),key: tag.key,diff --git a/frontend/src/container/QueryBuilder/filters/utils.ts b/frontend/src/container/QueryBuilder/filters/utils.tsindex b76470f7b1..ea6fa0ea96 100644--- a/frontend/src/container/QueryBuilder/filters/utils.ts+++ b/frontend/src/container/QueryBuilder/filters/utils.ts@@ -13,9 +13,9 @@ import {} from './OrderByFilter/utils';import { getRemoveOrderFromValue } from './QueryBuilderSearch/utils';-export const handleKeyDownLimitFilter: React.KeyboardEventHandler<HTMLInputElement> = (- event,-): void => {+export const handleKeyDownLimitFilter: React.KeyboardEventHandler<+ HTMLInputElement+> = (event): void => {const keyCode = event.keyCode || event.which;const isBackspace = keyCode === 8;const isNumeric =diff --git a/frontend/src/container/QueryTable/Drilldown/__tests__/Breakout.test.tsx b/frontend/src/container/QueryTable/Drilldown/__tests__/Breakout.test.tsxindex 476dfb20dc..fd69dfbc2e 100644--- a/frontend/src/container/QueryTable/Drilldown/__tests__/Breakout.test.tsx+++ b/frontend/src/container/QueryTable/Drilldown/__tests__/Breakout.test.tsx@@ -221,12 +221,8 @@ describe('TableDrilldown Breakout Functionality', () => {// Verify redirectWithQueryBuilderData was calledexpect(mockRedirectWithQueryBuilderData).toHaveBeenCalledTimes(1);- const [- query,- queryParams,- ,- newTab,- ] = mockRedirectWithQueryBuilderData.mock.calls[0];+ const [query, queryParams, , newTab] =+ mockRedirectWithQueryBuilderData.mock.calls[0];// Check that the query contains the correct structureexpect(query.builder).toBeDefined();diff --git a/frontend/src/container/QueryTable/Drilldown/__tests__/TableDrilldown.test.tsx b/frontend/src/container/QueryTable/Drilldown/__tests__/TableDrilldown.test.tsxindex f092c5b11b..f19ca41edb 100644--- a/frontend/src/container/QueryTable/Drilldown/__tests__/TableDrilldown.test.tsx+++ b/frontend/src/container/QueryTable/Drilldown/__tests__/TableDrilldown.test.tsx@@ -338,12 +338,8 @@ describe('TableDrilldown', () => {// Verify redirectWithQueryBuilderData was called instead of safeNavigateexpect(mockRedirectWithQueryBuilderData).toHaveBeenCalledTimes(1);- const [- query,- queryParams,- ,- newTab,- ] = mockRedirectWithQueryBuilderData.mock.calls[0];+ const [query, queryParams, , newTab] =+ mockRedirectWithQueryBuilderData.mock.calls[0];// Check that the query contains the filter that was addedexpect(query.builder).toBeDefined();diff --git a/frontend/src/container/QueryTable/Drilldown/useBaseAggregateOptions.tsx b/frontend/src/container/QueryTable/Drilldown/useBaseAggregateOptions.tsxindex e56e954724..a9e851eb4f 100644--- a/frontend/src/container/QueryTable/Drilldown/useBaseAggregateOptions.tsx+++ b/frontend/src/container/QueryTable/Drilldown/useBaseAggregateOptions.tsx@@ -63,10 +63,8 @@ const useBaseAggregateOptions = ({baseAggregateOptionsConfig: BaseAggregateOptionsConfig;} => {const [resolvedQuery, setResolvedQuery] = useState<Query>(query);- const {- getUpdatedQuery,- isLoading: isResolveQueryLoading,- } = useUpdatedQuery();+ const { getUpdatedQuery, isLoading: isResolveQueryLoading } =+ useUpdatedQuery();const { dashboardData } = useDashboardStore();useEffect(() => {diff --git a/frontend/src/container/ResetPassword/index.tsx b/frontend/src/container/ResetPassword/index.tsxindex 72938c0f0a..c270a3fd9d 100644--- a/frontend/src/container/ResetPassword/index.tsx+++ b/frontend/src/container/ResetPassword/index.tsx@@ -22,9 +22,8 @@ import './ResetPassword.styles.scss';type FormValues = { password: string; confirmPassword: string };function ResetPassword({ version }: ResetPasswordProps): JSX.Element {- const [confirmPasswordError, setConfirmPasswordError] = useState<boolean>(- false,- );+ const [confirmPasswordError, setConfirmPasswordError] =+ useState<boolean>(false);const [errorMessage, setErrorMessage] = useState<APIError | null>();diff --git a/frontend/src/container/RolesSettings/PermissionSidePanel/PermissionSidePanel.tsx b/frontend/src/container/RolesSettings/PermissionSidePanel/PermissionSidePanel.tsxindex 798c4d933a..7201ca4336 100644--- a/frontend/src/container/RolesSettings/PermissionSidePanel/PermissionSidePanel.tsx+++ b/frontend/src/container/RolesSettings/PermissionSidePanel/PermissionSidePanel.tsx@@ -139,10 +139,10 @@ function PermissionSidePanel({}}, [open, resources, initialConfig]);- const savedConfig = useMemo(() => buildConfig(resources, initialConfig), [- resources,- initialConfig,- ]);+ const savedConfig = useMemo(+ () => buildConfig(resources, initialConfig),+ [resources, initialConfig],+ );const unsavedCount = useMemo(() => {if (configsEqual(config, savedConfig)) {diff --git a/frontend/src/container/RolesSettings/RoleDetails/RoleDetailsPage.styles.scss b/frontend/src/container/RolesSettings/RoleDetails/RoleDetailsPage.styles.scssindex beec6ba6be..4264f7e524 100644--- a/frontend/src/container/RolesSettings/RoleDetails/RoleDetailsPage.styles.scss+++ b/frontend/src/container/RolesSettings/RoleDetails/RoleDetailsPage.styles.scss@@ -295,7 +295,9 @@color: var(--destructive);opacity: 0.6;padding: 0;- transition: background-color 0.2s, opacity 0.2s;+ transition:+ background-color 0.2s,+ opacity 0.2s;box-shadow: none;&:hover {diff --git a/frontend/src/container/RolesSettings/__tests__/RolesSettings.test.tsx b/frontend/src/container/RolesSettings/__tests__/RolesSettings.test.tsxindex 0c518bf015..a2364fd9e9 100644--- a/frontend/src/container/RolesSettings/__tests__/RolesSettings.test.tsx+++ b/frontend/src/container/RolesSettings/__tests__/RolesSettings.test.tsx@@ -199,8 +199,8 @@ describe('RolesSettings', () => {it('handles invalid dates gracefully by showing fallback', async () => {const invalidRole = {id: 'edge-0009',- createdAt: ('invalid-date' as unknown) as Date,- updatedAt: ('not-a-date' as unknown) as Date,+ createdAt: 'invalid-date' as unknown as Date,+ updatedAt: 'not-a-date' as unknown as Date,name: 'invalid-date-role',description: 'Tests date parsing fallback.',type: 'custom',diff --git a/frontend/src/container/RolesSettings/utils.tsx b/frontend/src/container/RolesSettings/utils.tsxindex 298bb8d9e3..dade6d44a6 100644--- a/frontend/src/container/RolesSettings/utils.tsx+++ b/frontend/src/container/RolesSettings/utils.tsx@@ -139,12 +139,12 @@ export function buildPatchPayload({} else {// Scope changed (ALL ↔ ONLY_SELECTED) — replace old with newconst initialSelectors =- initialScope === PermissionScope.ALL ? ['*'] : initial?.selectedIds ?? [];+ initialScope === PermissionScope.ALL ? ['*'] : (initial?.selectedIds ?? []);if (initialSelectors.length > 0) {deletions.push({ resource: resourceDef, selectors: initialSelectors });}const currentSelectors =- currentScope === PermissionScope.ALL ? ['*'] : current?.selectedIds ?? [];+ currentScope === PermissionScope.ALL ? ['*'] : (current?.selectedIds ?? []);if (currentSelectors.length > 0) {additions.push({ resource: resourceDef, selectors: currentSelectors });}diff --git a/frontend/src/container/RoutingPolicies/RoutingPolicyListItem.tsx b/frontend/src/container/RoutingPolicies/RoutingPolicyListItem.tsxindex db8b116749..2b9e4e2d61 100644--- a/frontend/src/container/RoutingPolicies/RoutingPolicyListItem.tsx+++ b/frontend/src/container/RoutingPolicies/RoutingPolicyListItem.tsx@@ -85,7 +85,7 @@ function PolicyListItemContent({? formatTimezoneAdjustedTimestamp(routingPolicy.createdAt,DATE_TIME_FORMATS.MONTH_DATETIME,- )+ ): '-'}</Typography></div>@@ -100,7 +100,7 @@ function PolicyListItemContent({? formatTimezoneAdjustedTimestamp(routingPolicy.updatedAt,DATE_TIME_FORMATS.MONTH_DATETIME,- )+ ): '-'}</Typography></div>diff --git a/frontend/src/container/RoutingPolicies/__tests__/useRoutingPolicies.test.tsx b/frontend/src/container/RoutingPolicies/__tests__/useRoutingPolicies.test.tsxindex 2492d8e7ee..586c3d99c7 100644--- a/frontend/src/container/RoutingPolicies/__tests__/useRoutingPolicies.test.tsx+++ b/frontend/src/container/RoutingPolicies/__tests__/useRoutingPolicies.test.tsx@@ -57,7 +57,7 @@ jest.mock('hooks/routingPolicies/useGetRoutingPolicies', () => ({isFetching: false,isLoading: false,isError: false,- } as any),+ }) as any,}));jest.mock('hooks/routingPolicies/useCreateRoutingPolicy', () => ({useCreateRoutingPolicy: (): any => ({diff --git a/frontend/src/container/RoutingPolicies/constants.ts b/frontend/src/container/RoutingPolicies/constants.tsindex 3a09fd81c1..1db349f1fe 100644--- a/frontend/src/container/RoutingPolicies/constants.ts+++ b/frontend/src/container/RoutingPolicies/constants.ts@@ -1,8 +1,9 @@import { RoutingPolicyDetailsFormState } from './types';-export const INITIAL_ROUTING_POLICY_DETAILS_FORM_STATE: RoutingPolicyDetailsFormState = {- name: '',- expression: '',- channels: [],- description: '',-};+export const INITIAL_ROUTING_POLICY_DETAILS_FORM_STATE: RoutingPolicyDetailsFormState =+ {+ name: '',+ expression: '',+ channels: [],+ description: '',+ };diff --git a/frontend/src/container/RoutingPolicies/useRoutingPolicies.ts b/frontend/src/container/RoutingPolicies/useRoutingPolicies.tsindex f31971af18..310e4d76d5 100644--- a/frontend/src/container/RoutingPolicies/useRoutingPolicies.ts+++ b/frontend/src/container/RoutingPolicies/useRoutingPolicies.ts@@ -37,17 +37,13 @@ function useRoutingPolicies(): UseRoutingPoliciesReturn {// Local stateconst [searchTerm, setSearchTerm] = useState(urlQuery.get('search') || '');const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);- const [- policyDetailsModalState,- setPolicyDetailsModalState,- ] = useState<PolicyDetailsModalState>({- mode: null,- isOpen: false,- });- const [- selectedRoutingPolicy,- setSelectedRoutingPolicy,- ] = useState<RoutingPolicy | null>(null);+ const [policyDetailsModalState, setPolicyDetailsModalState] =+ useState<PolicyDetailsModalState>({+ mode: null,+ isOpen: false,+ });+ const [selectedRoutingPolicy, setSelectedRoutingPolicy] =+ useState<RoutingPolicy | null>(null);const updateUrlWithSearch = useDebouncedFn((value) => {const searchValue = value as string;@@ -133,16 +129,12 @@ function useRoutingPolicies(): UseRoutingPoliciesReturn {};// Create Routing Policy- const {- mutate: createRoutingPolicy,- isLoading: isCreating,- } = useCreateRoutingPolicy();+ const { mutate: createRoutingPolicy, isLoading: isCreating } =+ useCreateRoutingPolicy();// Update Routing Policy- const {- mutate: updateRoutingPolicy,- isLoading: isUpdating,- } = useUpdateRoutingPolicy();+ const { mutate: updateRoutingPolicy, isLoading: isUpdating } =+ useUpdateRoutingPolicy();// Policy Details Modal Action (Create or Update)const handlePolicyDetailsModalAction = (@@ -212,10 +204,8 @@ function useRoutingPolicies(): UseRoutingPoliciesReturn {}, [policyDetailsModalState.mode, isCreating, isUpdating]);// Delete Routing Policy- const {- mutate: deleteRoutingPolicy,- isLoading: isDeletingRoutingPolicy,- } = useDeleteRoutingPolicy();+ const { mutate: deleteRoutingPolicy, isLoading: isDeletingRoutingPolicy } =+ useDeleteRoutingPolicy();const handleDeleteRoutingPolicy = (): void => {if (!selectedRoutingPolicy) {diff --git a/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx b/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsxindex 77127a8420..22543564c5 100644--- a/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx+++ b/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx@@ -26,10 +26,11 @@ function ServiceMetricTable({topLevelOperations,queryRangeRequestData,}: ServiceMetricsTableProps): JSX.Element {- const { minTime, maxTime, selectedTime: globalSelectedInterval } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ minTime,+ maxTime,+ selectedTime: globalSelectedInterval,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const { notifications } = useNotifications();const { t: getText } = useTranslation(['services']);diff --git a/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetrics.test.tsx b/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetrics.test.tsxindex 5e7da407c9..4fa203ba67 100644--- a/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetrics.test.tsx+++ b/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetrics.test.tsx@@ -11,9 +11,10 @@ jest.mock('hooks/useGetTopLevelOperations', () => ({default: jest.fn(),}));-const mockUseGetTopLevelOperations = useGetTopLevelOperations as jest.MockedFunction<- typeof useGetTopLevelOperations->;+const mockUseGetTopLevelOperations =+ useGetTopLevelOperations as jest.MockedFunction<+ typeof useGetTopLevelOperations+ >;describe('ServicesUsingMetrics', () => {beforeEach(() => {diff --git a/frontend/src/container/ServiceApplication/ServiceMetrics/index.tsx b/frontend/src/container/ServiceApplication/ServiceMetrics/index.tsxindex 847bd64ad3..6090a184c0 100644--- a/frontend/src/container/ServiceApplication/ServiceMetrics/index.tsx+++ b/frontend/src/container/ServiceApplication/ServiceMetrics/index.tsx@@ -17,10 +17,11 @@ import SkipOnBoardingModal from '../SkipOnBoardModal';import ServiceMetricsApplication from './ServiceMetricsApplication';function ServicesUsingMetrics(): JSX.Element {- const { maxTime, minTime, selectedTime: globalSelectedInterval } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ maxTime,+ minTime,+ selectedTime: globalSelectedInterval,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const { queries } = useResourceAttribute();const selectedTags = useMemo(() => (convertRawQueriesToTraceSelectedTags(queries) as Tags[]) || [],diff --git a/frontend/src/container/SideNav/SideNav.styles.scss b/frontend/src/container/SideNav/SideNav.styles.scssindex 9d871b35a0..3452a9c756 100644--- a/frontend/src/container/SideNav/SideNav.styles.scss+++ b/frontend/src/container/SideNav/SideNav.styles.scss@@ -19,7 +19,10 @@background: var(--l1-background);padding-bottom: 48px;- transition: all 0.08s ease, background 0s, border 0s;+ transition:+ all 0.08s ease,+ background 0s,+ border 0s;.brand-container {padding: 8px 15px;@@ -295,7 +298,9 @@.nav-section-title-icon {display: flex;align-items: center;- transition: opacity 0.08s ease, transform 0.08s ease;+ transition:+ opacity 0.08s ease,+ transform 0.08s ease;&.reorder {display: none;@@ -332,7 +337,10 @@display: none;- transition: all 0.08s ease, background 0s, border 0s;+ transition:+ all 0.08s ease,+ background 0s,+ border 0s;transition-delay: 0.03s;}@@ -456,7 +464,10 @@width: 54px;// width: 100%; // temp- transition: all 0.08s ease, background 0s, border 0s;+ transition:+ all 0.08s ease,+ background 0s,+ border 0s;background: linear-gradient(180deg,@@ -573,7 +584,11 @@color: var(--primary-foreground);font-variant-numeric: lining-nums tabular-nums slashed-zero;- font-feature-settings: 'case' on, 'cpsp' on, 'dlig' on, 'salt' on;+ font-feature-settings:+ 'case' on,+ 'cpsp' on,+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: 9px;font-style: normal;@@ -586,7 +601,11 @@.sidenav-beta-tag {color: var(--l1-foreground);font-variant-numeric: lining-nums tabular-nums slashed-zero;- font-feature-settings: 'case' on, 'cpsp' on, 'dlig' on, 'salt' on;+ font-feature-settings:+ 'case' on,+ 'cpsp' on,+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: 9px;font-style: normal;@@ -736,7 +755,8 @@background: var(--l2-background);/* Drop Shadow */- box-shadow: 0px 103px 12px 0px rgba(0, 0, 0, 0.01),+ box-shadow:+ 0px 103px 12px 0px rgba(0, 0, 0, 0.01),0px 66px 18px 0px rgba(0, 0, 0, 0.01),0px 37px 22px 0px rgba(0, 0, 0, 0.03),0px 17px 17px 0px rgba(0, 0, 0, 0.04),@@ -916,7 +936,8 @@background: var(--l2-background);/* Drop Shadow */- box-shadow: 0px 103px 12px 0px rgba(0, 0, 0, 0.01),+ box-shadow:+ 0px 103px 12px 0px rgba(0, 0, 0, 0.01),0px 66px 18px 0px rgba(0, 0, 0, 0.01),0px 37px 22px 0px rgba(0, 0, 0, 0.03),0px 17px 17px 0px rgba(0, 0, 0, 0.04),diff --git a/frontend/src/container/SideNav/SideNav.tsx b/frontend/src/container/SideNav/SideNav.tsxindex e8d6e0ae72..85d51fe8b7 100644--- a/frontend/src/container/SideNav/SideNav.tsx+++ b/frontend/src/container/SideNav/SideNav.tsx@@ -89,13 +89,8 @@ import { getActiveMenuKeyFromPath } from './sideNav.utils';import './SideNav.styles.scss';function SortableFilter({ item }: { item: SidebarItem }): JSX.Element {- const {- attributes,- listeners,- setNodeRef,- transform,- transition,- } = useSortable({ id: item.key });+ const { attributes, listeners, setNodeRef, transform, transition } =+ useSortable({ id: item.key });const style = {transform: CSS.Transform.toString(transform),@@ -153,12 +148,10 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {},);- const [- helpSupportDropdownMenuItems,- setHelpSupportDropdownMenuItems,- ] = useState<(SidebarItem | DropdownSeparator)[]>(- DefaultHelpSupportDropdownMenuItems,- );+ const [helpSupportDropdownMenuItems, setHelpSupportDropdownMenuItems] =+ useState<(SidebarItem | DropdownSeparator)[]>(+ DefaultHelpSupportDropdownMenuItems,+ );const [tempPinnedMenuItems, setTempPinnedMenuItems] = useState<SidebarItem[]>([],@@ -234,7 +227,7 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {const navShortcutsPreference = userPreferences?.find((preference) => preference.name === USER_PREFERENCES.NAV_SHORTCUTS,);- const navShortcuts = (navShortcutsPreference?.value as unknown) as+ const navShortcuts = navShortcutsPreference?.value as unknown as| string[]| undefined;@@ -311,10 +304,8 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {const isLatestVersion = checkVersionState(currentVersion, latestVersion);- const [- showVersionUpdateNotification,- setShowVersionUpdateNotification,- ] = useState(false);+ const [showVersionUpdateNotification, setShowVersionUpdateNotification] =+ useState(false);const [isMoreMenuCollapsed, setIsMoreMenuCollapsed] = useState(false);@@ -474,13 +465,15 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {[pathname, search],);- const activeMenuKey = useMemo(() => getActiveMenuKeyFromPath(pathname), [- pathname,- ]);+ const activeMenuKey = useMemo(+ () => getActiveMenuKeyFromPath(pathname),+ [pathname],+ );- const isSettingsPage = useMemo(() => pathname.startsWith(ROUTES.SETTINGS), [- pathname,- ]);+ const isSettingsPage = useMemo(+ () => pathname.startsWith(ROUTES.SETTINGS),+ [pathname],+ );const userSettingsDropdownMenuItems: MenuProps['items'] = useMemo(() =>@@ -739,8 +732,9 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {}, [deregisterShortcut, onClickHandler, registerShortcut]);const isPinnedItem = useMemo(- () => (item: SidebarItem): boolean =>- secondaryMenuItems.some((i) => i.key === item.key && i.isPinned),+ () =>+ (item: SidebarItem): boolean =>+ secondaryMenuItems.some((i) => i.key === item.key && i.isPinned),[secondaryMenuItems],);@@ -785,7 +779,7 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {},);onTogglePin(item);- }+ }: undefined}onClick={(event): void => {@@ -1140,11 +1134,11 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {? renderNavItems(activeMoreMenuItems.filter((item) => item.isEnabled),true,- )+ ): renderNavItems(moreMenuItems.filter((item) => item.isEnabled),true,- )}+ )}</div></div>)}diff --git a/frontend/src/container/SideNav/menuItems.tsx b/frontend/src/container/SideNav/menuItems.tsxindex df8556ec03..a028231338 100644--- a/frontend/src/container/SideNav/menuItems.tsx+++ b/frontend/src/container/SideNav/menuItems.tsx@@ -504,7 +504,7 @@ export const getUserSettingsDropdownMenuItems = ({icon: <Shield size={14} color={Style.L1_FOREGROUND} />,dataTestId: 'manage-license-nav-item',},- ]+ ]: []),{key: 'keyboard-shortcuts',diff --git a/frontend/src/container/SpanDetailsDrawer/Attributes/AttributeActions.tsx b/frontend/src/container/SpanDetailsDrawer/Attributes/AttributeActions.tsxindex 98a712d5d5..a1df6de238 100644--- a/frontend/src/container/SpanDetailsDrawer/Attributes/AttributeActions.tsx+++ b/frontend/src/container/SpanDetailsDrawer/Attributes/AttributeActions.tsx@@ -36,12 +36,8 @@ export default function AttributeActions({const [isFilterInLoading, setIsFilterInLoading] = useState<boolean>(false);const [isFilterOutLoading, setIsFilterOutLoading] = useState<boolean>(false);- const {- onAddToQuery,- onGroupByAttribute,- onCopyFieldName,- onCopyFieldValue,- } = useTraceActions();+ const { onAddToQuery, onGroupByAttribute, onCopyFieldName, onCopyFieldValue } =+ useTraceActions();const textToCopy = useMemo(() => {const str = record.value == null ? '' : String(record.value);diff --git a/frontend/src/container/SpanDetailsDrawer/Attributes/Attributes.tsx b/frontend/src/container/SpanDetailsDrawer/Attributes/Attributes.tsxindex 20e5a6b9a6..63ff75906a 100644--- a/frontend/src/container/SpanDetailsDrawer/Attributes/Attributes.tsx+++ b/frontend/src/container/SpanDetailsDrawer/Attributes/Attributes.tsx@@ -32,14 +32,14 @@ function Attributes(props: IAttributesProps): JSX.Element {[span],);- const availableAttributes = useMemo(() => Object.keys(flattenSpanData), [- flattenSpanData,- ]);-- const { pinnedAttributes, togglePin } = usePinnedAttributes(- availableAttributes,+ const availableAttributes = useMemo(+ () => Object.keys(flattenSpanData),+ [flattenSpanData],);+ const { pinnedAttributes, togglePin } =+ usePinnedAttributes(availableAttributes);+const sortPinnedAttributes = useCallback((data: AttributeRecord[]): AttributeRecord[] =>data.sort((a, b) => {diff --git a/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.styles.scss b/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.styles.scssindex 3b3c803ead..f38289900a 100644--- a/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.styles.scss+++ b/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.styles.scss@@ -117,7 +117,9 @@color: var(--bg-sakura-400);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on;border-radius: 0 50px 50px 0;@@ -193,7 +195,9 @@color: var(--bg-sakura-400);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on;}.span-percentile-value-loader {@@ -289,7 +293,9 @@color: var(--l1-foreground);text-align: right;font-variant-numeric: lining-nums tabular-nums slashed-zero;- font-feature-settings: 'dlig' on, 'salt' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: 12px;font-style: normal;@@ -301,7 +307,10 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'ss02' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'ss02' on;font-family: Inter;font-size: 12px;font-style: normal;@@ -588,7 +597,9 @@background: color-mix(in srgb, var(--bg-robin-200) 10%, transparent);color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums slashed-zero;- font-feature-settings: 'dlig' on, 'salt' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: 13px;font-style: normal;@@ -618,7 +629,9 @@color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractions ordinalslashed-zero;- font-feature-settings: 'dlig' on, 'salt' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: 12px;font-style: normal;@@ -629,7 +642,9 @@.span-percentile-tooltip-text-percentile {color: var(--text-sakura-500);font-variant-numeric: lining-nums tabular-nums stacked-fractions slashed-zero;- font-feature-settings: 'dlig' on, 'salt' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: 12px;}diff --git a/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.tsx b/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.tsxindex 59d7fe7466..a0c5f0a855 100644--- a/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.tsx+++ b/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.tsx@@ -121,24 +121,19 @@ function SpanDetailsDrawer(props: ISpanDetailsDrawerProps): JSX.Element {} = props;const [isSearchVisible, setIsSearchVisible] = useState<boolean>(true);- const [shouldAutoFocusSearch, setShouldAutoFocusSearch] = useState<boolean>(- false,- );- const [isSpanPercentilesOpen, setIsSpanPercentilesOpen] = useState<boolean>(- false,- );- const [isRelatedSignalsOpen, setIsRelatedSignalsOpen] = useState<boolean>(- false,- );+ const [shouldAutoFocusSearch, setShouldAutoFocusSearch] =+ useState<boolean>(false);+ const [isSpanPercentilesOpen, setIsSpanPercentilesOpen] =+ useState<boolean>(false);+ const [isRelatedSignalsOpen, setIsRelatedSignalsOpen] =+ useState<boolean>(false);const [activeDrawerView, setActiveDrawerView] = useState<RelatedSignalsViews>(RelatedSignalsViews.LOGS,);const [selectedTimeRange, setSelectedTimeRange] = useState<number>(1);- const [- resourceAttributesSearchQuery,- setResourceAttributesSearchQuery,- ] = useState<string>('');+ const [resourceAttributesSearchQuery, setResourceAttributesSearchQuery] =+ useState<string>('');const [spanPercentileData, setSpanPercentileData] = useState<{percentile: number;@@ -146,10 +141,8 @@ function SpanDetailsDrawer(props: ISpanDetailsDrawerProps): JSX.Element {percentiles: Record<string, number>;} | null>(null);- const [- showResourceAttributesSelector,- setShowResourceAttributesSelector,- ] = useState<boolean>(false);+ const [showResourceAttributesSelector, setShowResourceAttributesSelector] =+ useState<boolean>(false);const [selectedResourceAttributes, setSelectedResourceAttributes] = useState<Record<string, string>@@ -159,19 +152,14 @@ function SpanDetailsDrawer(props: ISpanDetailsDrawerProps): JSX.Element {IResourceAttribute[]>([] as IResourceAttribute[]);- const [initialWaitCompleted, setInitialWaitCompleted] = useState<boolean>(- false,- );+ const [initialWaitCompleted, setInitialWaitCompleted] =+ useState<boolean>(false);- const [- shouldFetchSpanPercentilesData,- setShouldFetchSpanPercentilesData,- ] = useState<boolean>(false);+ const [shouldFetchSpanPercentilesData, setShouldFetchSpanPercentilesData] =+ useState<boolean>(false);- const [- shouldUpdateUserPreference,- setShouldUpdateUserPreference,- ] = useState<boolean>(false);+ const [shouldUpdateUserPreference, setShouldUpdateUserPreference] =+ useState<boolean>(false);const [statusMessageModalContent, setStatusMessageModalContent] = useState<{title: string;@@ -349,9 +337,8 @@ function SpanDetailsDrawer(props: ISpanDetailsDrawerProps): JSX.Element {[selectedSpan?.timestamp, selectedTimeRange],);- const { mutate: updateUserPreferenceMutation } = useMutation(- updateUserPreference,- );+ const { mutate: updateUserPreferenceMutation } =+ useMutation(updateUserPreference);// TODO: Span percentile should be eventually moved to context and not fetched on every span changeconst {@@ -451,8 +438,9 @@ function SpanDetailsDrawer(props: ISpanDetailsDrawerProps): JSX.Element {useEffect(() => {if (userSelectedResourceAttributes) {- const userSelectedResourceAttributesList = (userSelectedResourceAttributes- ?.data?.value as string[]).map((attribute: string) => attribute);+ const userSelectedResourceAttributesList = (+ userSelectedResourceAttributes?.data?.value as string[]+ ).map((attribute: string) => attribute);let selectedResourceAttributesMap: Record<string, string> = {};diff --git a/frontend/src/container/SpanDetailsDrawer/SpanLogs/useSpanContextLogs.ts b/frontend/src/container/SpanDetailsDrawer/SpanLogs/useSpanContextLogs.tsindex e2c682c8e8..b6db739fed 100644--- a/frontend/src/container/SpanDetailsDrawer/SpanLogs/useSpanContextLogs.ts+++ b/frontend/src/container/SpanDetailsDrawer/SpanLogs/useSpanContextLogs.ts@@ -118,10 +118,10 @@ export const useSpanContextLogs = ({const [spanLogIds, setSpanLogIds] = useState<Set<string>>(new Set());// Phase 1: Fetch span-specific logs (trace_id + span_id)- const spanFilter = useMemo(() => createSpanLogsFilters(traceId, spanId), [- traceId,- spanId,- ]);+ const spanFilter = useMemo(+ () => createSpanLogsFilters(traceId, spanId),+ [traceId, spanId],+ );const spanQueryPayload = useMemo(() =>getSpanLogsQueryPayload(timeRange.startTime, timeRange.endTime, spanFilter),diff --git a/frontend/src/container/SpanDetailsDrawer/SpanRelatedSignals/SpanRelatedSignals.tsx b/frontend/src/container/SpanDetailsDrawer/SpanRelatedSignals/SpanRelatedSignals.tsxindex 6cd32b6814..aea027b4b0 100644--- a/frontend/src/container/SpanDetailsDrawer/SpanRelatedSignals/SpanRelatedSignals.tsx+++ b/frontend/src/container/SpanDetailsDrawer/SpanRelatedSignals/SpanRelatedSignals.tsx@@ -45,9 +45,8 @@ function SpanRelatedSignals({onClose,initialView,}: SpanRelatedSignalsProps): JSX.Element {- const [selectedView, setSelectedView] = useState<RelatedSignalsViews>(- initialView,- );+ const [selectedView, setSelectedView] =+ useState<RelatedSignalsViews>(initialView);const isDarkMode = useIsDarkMode();// Extract infrastructure metadata from span attributesdiff --git a/frontend/src/container/SpanDetailsDrawer/__tests__/SpanDetailsDrawer.test.tsx b/frontend/src/container/SpanDetailsDrawer/__tests__/SpanDetailsDrawer.test.tsxindex 5c82468e2d..09361d2227 100644--- a/frontend/src/container/SpanDetailsDrawer/__tests__/SpanDetailsDrawer.test.tsx+++ b/frontend/src/container/SpanDetailsDrawer/__tests__/SpanDetailsDrawer.test.tsx@@ -325,10 +325,10 @@ const mockUserPreferenceResponse = {},};-const mockSpanPercentileErrorResponse = ({+const mockSpanPercentileErrorResponse = {httpStatusCode: 500,data: null,-} as unknown) as SuccessResponseV2<GetSpanPercentilesResponseDataProps>;+} as unknown as SuccessResponseV2<GetSpanPercentilesResponseDataProps>;describe('SpanDetailsDrawer', () => {let apiCallHistory: any = {};@@ -978,10 +978,10 @@ describe('SpanDetailsDrawer', () => {it('should not display percentile value when API returns non-200 status', async () => {// Mock API response with non-200 status- mockGetSpanPercentiles.mockResolvedValue(({+ mockGetSpanPercentiles.mockResolvedValue({httpStatusCode: 500 as const,data: null,- } as unknown) as Awaited<ReturnType<typeof getSpanPercentiles>>);+ } as unknown as Awaited<ReturnType<typeof getSpanPercentiles>>);renderSpanDetailsDrawer();diff --git a/frontend/src/container/TimeSeriesView/TimeSeriesView.tsx b/frontend/src/container/TimeSeriesView/TimeSeriesView.tsxindex 9de3ee40fa..c1106db9a7 100644--- a/frontend/src/container/TimeSeriesView/TimeSeriesView.tsx+++ b/frontend/src/container/TimeSeriesView/TimeSeriesView.tsx@@ -65,9 +65,10 @@ function TimeSeriesView({const location = useLocation();const { currentQuery } = useQueryBuilder();- const chartData = useMemo(() => getUPlotChartData(data?.payload), [- data?.payload,- ]);+ const chartData = useMemo(+ () => getUPlotChartData(data?.payload),+ [data?.payload],+ );useEffect(() => {if (data?.payload) {@@ -91,10 +92,11 @@ function TimeSeriesView({scrollLeft: 0,});- const { minTime, maxTime, selectedTime: globalSelectedInterval } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ minTime,+ maxTime,+ selectedTime: globalSelectedInterval,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);useEffect((): void => {const { startTime, endTime } = getTimeRange();@@ -106,12 +108,11 @@ function TimeSeriesView({// Initialize graph visibility from localStorageuseEffect(() => {if (data?.payload?.data?.result) {- const {- graphVisibilityStates: localStoredVisibilityState,- } = getLocalStorageGraphVisibilityState({- apiResponse: data.payload.data.result,- name: 'time-series-explorer',- });+ const { graphVisibilityStates: localStoredVisibilityState } =+ getLocalStorageGraphVisibilityState({+ apiResponse: data.payload.data.result,+ name: 'time-series-explorer',+ });setGraphVisibility(localStoredVisibilityState);}}, [data?.payload?.data?.result]);diff --git a/frontend/src/container/TimeSeriesView/utils.ts b/frontend/src/container/TimeSeriesView/utils.tsindex b857cf9815..95935cdd7f 100644--- a/frontend/src/container/TimeSeriesView/utils.ts+++ b/frontend/src/container/TimeSeriesView/utils.ts@@ -15,7 +15,7 @@ export const convertDataValueToMs = (});return { ...item, values };- })+ }): [];if (convertedData?.payload?.data?.result && convertedResult) {diff --git a/frontend/src/container/Timeline/index.tsx b/frontend/src/container/Timeline/index.tsxindex 3697db114e..3a46bc0e80 100644--- a/frontend/src/container/Timeline/index.tsx+++ b/frontend/src/container/Timeline/index.tsx@@ -23,14 +23,11 @@ function Timeline({const [intervals, setIntervals] = useState<Interval[] | null>(null);useEffect(() => {- const {- baseInterval,- baseSpread,- intervalSpreadNormalized,- } = getIntervalSpread({- globalTraceMetadata,- localTraceMetaData: traceMetaData,- });+ const { baseInterval, baseSpread, intervalSpreadNormalized } =+ getIntervalSpread({+ globalTraceMetadata,+ localTraceMetaData: traceMetaData,+ });let intervalUnit = INTERVAL_UNITS[0];for (let idx = INTERVAL_UNITS.length - 1; idx >= 0; idx -= 1) {diff --git a/frontend/src/container/Timeline/utils.ts b/frontend/src/container/Timeline/utils.tsindex 1f4367c88e..987dbd36ab 100644--- a/frontend/src/container/Timeline/utils.ts+++ b/frontend/src/container/Timeline/utils.ts@@ -37,7 +37,7 @@ export const getIntervalSpread = ({intervalSpread < 1.0? intervalSpread: Math.floor(Number(integerPartString) / 10 ** (integerPartLength - 1)) *- 10 ** (integerPartLength - 1);+ 10 ** (integerPartLength - 1);return {baseInterval,baseSpread,diff --git a/frontend/src/container/Toolbar/Toolbar.tsx b/frontend/src/container/Toolbar/Toolbar.tsxindex 9877851d2d..ecae9e8b14 100644--- a/frontend/src/container/Toolbar/Toolbar.tsx+++ b/frontend/src/container/Toolbar/Toolbar.tsx@@ -31,13 +31,15 @@ export default function Toolbar({}: ToolbarProps): JSX.Element {const { pathname } = useLocation();- const isLogsExplorerPage = useMemo(() => pathname === ROUTES.LOGS_EXPLORER, [- pathname,- ]);+ const isLogsExplorerPage = useMemo(+ () => pathname === ROUTES.LOGS_EXPLORER,+ [pathname],+ );- const isApiMonitoringPage = useMemo(() => pathname === ROUTES.API_MONITORING, [- pathname,- ]);+ const isApiMonitoringPage = useMemo(+ () => pathname === ROUTES.API_MONITORING,+ [pathname],+ );return (<div className="toolbar">diff --git a/frontend/src/container/TopNav/AutoRefreshV2/index.tsx b/frontend/src/container/TopNav/AutoRefreshV2/index.tsxindex c4ce22facf..d298eab29e 100644--- a/frontend/src/container/TopNav/AutoRefreshV2/index.tsx+++ b/frontend/src/container/TopNav/AutoRefreshV2/index.tsx@@ -50,10 +50,10 @@ function AutoRefresh({const localStorageData = JSON.parse(get(DASHBOARD_TIME_IN_DURATION) || '{}');- const localStorageValue = useMemo(() => localStorageData[pathname], [- pathname,- localStorageData,- ]);+ const localStorageValue = useMemo(+ () => localStorageData[pathname],+ [pathname, localStorageData],+ );const [isAutoRefreshEnabled, setIsAutoRefreshfreshEnabled] = useState<boolean>(Boolean(localStorageValue),diff --git a/frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx b/frontend/src/container/TopNav/DateTimeSelectionV2/index.tsxindex f3dd2bb37b..89c1fc99e5 100644--- a/frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx+++ b/frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx@@ -128,35 +128,33 @@ function DateTimeSelection({}}, [modalInitialStartTime, modalInitialEndTime]);- const {- localstorageStartTime,- localstorageEndTime,- } = ((): LocalStorageTimeRange => {- const routes = getLocalStorageKey(LOCALSTORAGE.METRICS_TIME_IN_DURATION);-- if (routes !== null) {- const routesObject = JSON.parse(routes || '{}');- const selectedTime = routesObject[location.pathname];-- if (selectedTime) {- let parsedSelectedTime: TimeRange;- try {- parsedSelectedTime = JSON.parse(selectedTime);- } catch {- parsedSelectedTime = selectedTime;+ const { localstorageStartTime, localstorageEndTime } =+ ((): LocalStorageTimeRange => {+ const routes = getLocalStorageKey(LOCALSTORAGE.METRICS_TIME_IN_DURATION);++ if (routes !== null) {+ const routesObject = JSON.parse(routes || '{}');+ const selectedTime = routesObject[location.pathname];++ if (selectedTime) {+ let parsedSelectedTime: TimeRange;+ try {+ parsedSelectedTime = JSON.parse(selectedTime);+ } catch {+ parsedSelectedTime = selectedTime;+ }++ if (isObject(parsedSelectedTime)) {+ return {+ localstorageStartTime: parsedSelectedTime.startTime,+ localstorageEndTime: parsedSelectedTime.endTime,+ };+ }+ return { localstorageStartTime: null, localstorageEndTime: null };}-- if (isObject(parsedSelectedTime)) {- return {- localstorageStartTime: parsedSelectedTime.startTime,- localstorageEndTime: parsedSelectedTime.endTime,- };- }- return { localstorageStartTime: null, localstorageEndTime: null };}- }- return { localstorageStartTime: null, localstorageEndTime: null };- })();+ return { localstorageStartTime: null, localstorageEndTime: null };+ })();const getTime = useCallback((): [number, number] | undefined => {if (searchEndTime && searchStartTime) {@@ -183,9 +181,8 @@ function DateTimeSelection({const [options, setOptions] = useState(getOptions(location.pathname));const [refreshButtonHidden, setRefreshButtonHidden] = useState<boolean>(false);- const [customDateTimeVisible, setCustomDTPickerVisible] = useState<boolean>(- false,- );+ const [customDateTimeVisible, setCustomDTPickerVisible] =+ useState<boolean>(false);const { stagedQuery, currentQuery, initQueryBuilderData } = useQueryBuilder();diff --git a/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/Checkbox.tsx b/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/Checkbox.tsxindex 2d34ab39ce..68990531cd 100644--- a/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/Checkbox.tsx+++ b/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/Checkbox.tsx@@ -163,9 +163,10 @@ function CheckBoxComponent(props: CheckBoxProps): JSX.Element {const isCheckBoxSelected = isUserSelected;- const TooTipOverLay = useMemo((): JSX.Element => <div>{keyValue}</div>, [- keyValue,- ]);+ const TooTipOverLay = useMemo(+ (): JSX.Element => <div>{keyValue}</div>,+ [keyValue],+ );return (<CheckBoxContainer>diff --git a/frontend/src/container/Trace/Search/AllTags/Tag/index.tsx b/frontend/src/container/Trace/Search/AllTags/Tag/index.tsxindex 8bf2ec5c57..04556600d2 100644--- a/frontend/src/container/Trace/Search/AllTags/Tag/index.tsx+++ b/frontend/src/container/Trace/Search/AllTags/Tag/index.tsx@@ -94,13 +94,8 @@ export const AllMenu: AllMenuProps[] = [];function SingleTags(props: AllTagsProps): JSX.Element {- const {- tag,- onCloseHandler,- setLocalSelectedTags,- index,- localSelectedTags,- } = props;+ const { tag, onCloseHandler, setLocalSelectedTags, index, localSelectedTags } =+ props;const {Key: selectedKey,Operator: selectedOperator,diff --git a/frontend/src/container/Trace/TraceGraphFilter/index.tsx b/frontend/src/container/Trace/TraceGraphFilter/index.tsxindex aa01b81a2e..249cac32dd 100644--- a/frontend/src/container/Trace/TraceGraphFilter/index.tsx+++ b/frontend/src/container/Trace/TraceGraphFilter/index.tsx@@ -27,9 +27,8 @@ function TraceGraphFilter(): JSX.Element {AppState,TraceReducer>((state) => state.traces);- const [selectedGroupByLocal, setSelectedGroupByLocal] = useState<string>(- selectedGroupBy,- );+ const [selectedGroupByLocal, setSelectedGroupByLocal] =+ useState<string>(selectedGroupBy);const globalTime = useSelector<AppState, GlobalReducer>((state) => state.globalTime,);diff --git a/frontend/src/container/TraceDetail/index.tsx b/frontend/src/container/TraceDetail/index.tsxindex 40e91cc801..0cffadb75e 100644--- a/frontend/src/container/TraceDetail/index.tsx+++ b/frontend/src/container/TraceDetail/index.tsx@@ -52,9 +52,10 @@ function TraceDetail({ response }: TraceDetailProps): JSX.Element {[response],);- const traceStartTime = useMemo(() => response[0].startTimestampMillis, [- response,- ]);+ const traceStartTime = useMemo(+ () => response[0].startTimestampMillis,+ [response],+ );const traceEndTime = useMemo(() => response[0].endTimestampMillis, [response]);diff --git a/frontend/src/container/TraceDetail/utils.test.ts b/frontend/src/container/TraceDetail/utils.test.tsindex b8359916f4..afba7fa10f 100644--- a/frontend/src/container/TraceDetail/utils.test.ts+++ b/frontend/src/container/TraceDetail/utils.test.ts@@ -20,7 +20,7 @@ describe('traces/getTreeLevelsCount', () => {test('should return 0 for empty tree', () => {const emptyTree = null;- expect(getTreeLevelsCount((emptyTree as unknown) as ITraceTree)).toBe(0);+ expect(getTreeLevelsCount(emptyTree as unknown as ITraceTree)).toBe(0);});test('should return 1 for a tree with a single node', () => {diff --git a/frontend/src/container/TraceMetadata/TraceMetadata.styles.scss b/frontend/src/container/TraceMetadata/TraceMetadata.styles.scssindex 507c61c5ab..50eedd2d53 100644--- a/frontend/src/container/TraceMetadata/TraceMetadata.styles.scss+++ b/frontend/src/container/TraceMetadata/TraceMetadata.styles.scss@@ -167,7 +167,11 @@color: var(--l1-foreground);font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'case' on, 'cpsp' on, 'dlig' on, 'salt' on;+ font-feature-settings:+ 'case' on,+ 'cpsp' on,+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: 20px;font-style: normal;diff --git a/frontend/src/container/TraceWaterfall/AddSpanToFunnelModal/AddSpanToFunnelModal.tsx b/frontend/src/container/TraceWaterfall/AddSpanToFunnelModal/AddSpanToFunnelModal.tsxindex d5b434a52b..07f334e208 100644--- a/frontend/src/container/TraceWaterfall/AddSpanToFunnelModal/AddSpanToFunnelModal.tsx+++ b/frontend/src/container/TraceWaterfall/AddSpanToFunnelModal/AddSpanToFunnelModal.tsx@@ -270,7 +270,7 @@ function AddSpanToFunnelModal({>Save Funnel</Button>,- ]+ ]: [<Buttonkey="create"@@ -281,7 +281,7 @@ function AddSpanToFunnelModal({>Create new funnel</Button>,- ]+ ]}>{activeView === ModalView.LISTdiff --git a/frontend/src/container/TraceWaterfall/TraceWaterfall.tsx b/frontend/src/container/TraceWaterfall/TraceWaterfall.tsxindex 3f115801ce..50abbe639d 100644--- a/frontend/src/container/TraceWaterfall/TraceWaterfall.tsx+++ b/frontend/src/container/TraceWaterfall/TraceWaterfall.tsx@@ -75,9 +75,10 @@ function TraceWaterfall(props: ITraceWaterfallProps): JSX.Element {}, [errorFetchingTraceData, isFetchingTraceData, traceData]);// capture the spans from the response, since we do not need to do any manipulation on the same we will keep this as a simple constant [ memoized ]- const spans = useMemo(() => traceData?.payload?.spans || [], [- traceData?.payload?.spans,- ]);+ const spans = useMemo(+ () => traceData?.payload?.spans || [],+ [traceData?.payload?.spans],+ );// get the content based on the current state of the trace waterfallconst getContent = useMemo(() => {diff --git a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.styles.scss b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.styles.scssindex 03a1592532..c82e74cc8e 100644--- a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.styles.scss+++ b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.styles.scss@@ -309,7 +309,11 @@top: 40%;font-variant-numeric: lining-nums tabular-nums stacked-fractionsslashed-zero;- font-feature-settings: 'case' on, 'cpsp' on, 'dlig' on, 'salt' on;+ font-feature-settings:+ 'case' on,+ 'cpsp' on,+ 'dlig' on,+ 'salt' on;font-family: Inter;font-size: 14px;font-style: normal;diff --git a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.tsx b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.tsxindex 69d6e4a25e..499a5c0ef1 100644--- a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.tsx+++ b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.tsx@@ -458,9 +458,8 @@ function Success(props: ISuccessProps): JSX.Element {}};- const [isAddSpanToFunnelModalOpen, setIsAddSpanToFunnelModalOpen] = useState(- false,- );+ const [isAddSpanToFunnelModalOpen, setIsAddSpanToFunnelModalOpen] =+ useState(false);const [selectedSpanToAddToFunnel, setSelectedSpanToAddToFunnel] = useState<Span | undefined>(undefined);diff --git a/frontend/src/container/TracesExplorer/ListView/index.tsx b/frontend/src/container/TracesExplorer/ListView/index.tsxindex 93655f2ebf..f56666f2bb 100644--- a/frontend/src/container/TracesExplorer/ListView/index.tsx+++ b/frontend/src/container/TracesExplorer/ListView/index.tsx@@ -62,10 +62,8 @@ function ListView({setIsLoadingQueries,queryKeyRef,}: ListViewProps): JSX.Element {- const {- stagedQuery,- panelType: panelTypeFromQueryBuilder,- } = useQueryBuilder();+ const { stagedQuery, panelType: panelTypeFromQueryBuilder } =+ useQueryBuilder();const panelType = panelTypeFromQueryBuilder || PANEL_TYPES.LIST;@@ -177,9 +175,10 @@ function ListView({const totalCount = useMemo(() => dataLength || 0, [dataLength]);const queryTableDataResult = data?.payload?.data?.newResult?.data?.result;- const queryTableData = useMemo(() => queryTableDataResult || [], [- queryTableDataResult,- ]);+ const queryTableData = useMemo(+ () => queryTableDataResult || [],+ [queryTableDataResult],+ );const { formatTimezoneAdjustedTimestamp } = useTimezone();diff --git a/frontend/src/container/TracesExplorer/ListView/utils.tsx b/frontend/src/container/TracesExplorer/ListView/utils.tsxindex b812bb1aeb..1dc3cf7db8 100644--- a/frontend/src/container/TracesExplorer/ListView/utils.tsx+++ b/frontend/src/container/TracesExplorer/ListView/utils.tsx@@ -65,11 +65,11 @@ export const getListColumns = (? formatTimezoneAdjustedTimestamp(value,DATE_TIME_FORMATS.ISO_DATETIME_MS,- )+ ): formatTimezoneAdjustedTimestamp(value / 1e6,DATE_TIME_FORMATS.ISO_DATETIME_MS,- );+ );return (<BlockLink to={getTraceLink(item)} openInNewTab={false}><Typography.Text>{date}</Typography.Text>diff --git a/frontend/src/container/TracesExplorer/TableView/index.tsx b/frontend/src/container/TracesExplorer/TableView/index.tsxindex c8a2a1b5af..712d0a3de3 100644--- a/frontend/src/container/TracesExplorer/TableView/index.tsx+++ b/frontend/src/container/TracesExplorer/TableView/index.tsx@@ -33,10 +33,11 @@ function TableView({}): JSX.Element {const { stagedQuery, panelType } = useQueryBuilder();- const { selectedTime: globalSelectedTime, maxTime, minTime } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ selectedTime: globalSelectedTime,+ maxTime,+ minTime,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const queryKey = useMemo(() => [diff --git a/frontend/src/container/TracesExplorer/TracesView/index.tsx b/frontend/src/container/TracesExplorer/TracesView/index.tsxindex 6df925195d..a694e07702 100644--- a/frontend/src/container/TracesExplorer/TracesView/index.tsx+++ b/frontend/src/container/TracesExplorer/TracesView/index.tsx@@ -51,10 +51,11 @@ function TracesView({}: TracesViewProps): JSX.Element {const { stagedQuery, panelType } = useQueryBuilder();- const { selectedTime: globalSelectedTime, maxTime, minTime } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ selectedTime: globalSelectedTime,+ maxTime,+ minTime,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const { queryData: paginationQueryData } = useUrlQueryData<Pagination>(QueryParams.pagination,diff --git a/frontend/src/container/TracesExplorer/explorerUtils.ts b/frontend/src/container/TracesExplorer/explorerUtils.tsindex bdf0f29e6c..ac66658a1b 100644--- a/frontend/src/container/TracesExplorer/explorerUtils.ts+++ b/frontend/src/container/TracesExplorer/explorerUtils.ts@@ -17,7 +17,7 @@ export const getListViewQuery = (columnName: orderBy.split(':')[0],order: orderBy.split(':')[1] as 'asc' | 'desc',},- ]+ ]: [];for (let i = 0; i < query.builder.queryData.length; i++) {diff --git a/frontend/src/container/TracesTableComponent/TracesTableComponent.tsx b/frontend/src/container/TracesTableComponent/TracesTableComponent.tsxindex c1ad82c600..553d429ef7 100644--- a/frontend/src/container/TracesTableComponent/TracesTableComponent.tsx+++ b/frontend/src/container/TracesTableComponent/TracesTableComponent.tsx@@ -72,12 +72,13 @@ function TracesTableComponent({const queryTableDataResult =queryResponse.data?.payload?.data?.newResult?.data?.result;- const queryTableData = useMemo(() => queryTableDataResult || [], [- queryTableDataResult,- ]);+ const queryTableData = useMemo(+ () => queryTableDataResult || [],+ [queryTableDataResult],+ );const transformedQueryTableData = useMemo(- () => ((transformDataWithDate(queryTableData) || []) as unknown) as RowData[],+ () => (transformDataWithDate(queryTableData) || []) as unknown as RowData[],[queryTableData],);diff --git a/frontend/src/hooks/TracesFunnels/useFunnelMetrics.ts b/frontend/src/hooks/TracesFunnels/useFunnelMetrics.tsindex 735dfc8147..7106a0e9cc 100644--- a/frontend/src/hooks/TracesFunnels/useFunnelMetrics.ts+++ b/frontend/src/hooks/TracesFunnels/useFunnelMetrics.ts@@ -12,9 +12,7 @@ interface FunnelMetricsParams {stepEnd?: number;}-export function useFunnelMetrics({- funnelId,-}: FunnelMetricsParams): {+export function useFunnelMetrics({ funnelId }: FunnelMetricsParams): {isLoading: boolean;isError: boolean;metricsData: MetricItem[];@@ -97,7 +95,7 @@ export function useFunnelStepsMetrics({const latencyType = useMemo(() =>stepStart- ? steps[stepStart]?.latency_type ?? LatencyOptions.P99+ ? (steps[stepStart]?.latency_type ?? LatencyOptions.P99): LatencyOptions.P99,[stepStart, steps],);diff --git a/frontend/src/hooks/TracesFunnels/useFunnels.tsx b/frontend/src/hooks/TracesFunnels/useFunnels.tsxindex 7572b0cb48..2463652eff 100644--- a/frontend/src/hooks/TracesFunnels/useFunnels.tsx+++ b/frontend/src/hooks/TracesFunnels/useFunnels.tsx@@ -176,11 +176,8 @@ export const useFunnelOverview = (SuccessResponse<FunnelOverviewResponse> | ErrorResponse,Error> => {- const {- selectedTime,- validTracesCount,- isUpdatingFunnel,- } = useFunnelContext();+ const { selectedTime, validTracesCount, isUpdatingFunnel } =+ useFunnelContext();return useQuery({queryFn: ({ signal }) => getFunnelOverview(payload, signal),queryKey: [@@ -197,11 +194,8 @@ export const useFunnelSlowTraces = (funnelId: string,payload: FunnelOverviewPayload,): UseQueryResult<SuccessResponse<SlowTraceData> | ErrorResponse, Error> => {- const {- selectedTime,- validTracesCount,- isUpdatingFunnel,- } = useFunnelContext();+ const { selectedTime, validTracesCount, isUpdatingFunnel } =+ useFunnelContext();return useQuery<SuccessResponse<SlowTraceData> | ErrorResponse, Error>({queryFn: ({ signal }) => getFunnelSlowTraces(payload, signal),queryKey: [@@ -220,11 +214,8 @@ export const useFunnelErrorTraces = (funnelId: string,payload: FunnelOverviewPayload,): UseQueryResult<SuccessResponse<ErrorTraceData> | ErrorResponse, Error> => {- const {- selectedTime,- validTracesCount,- isUpdatingFunnel,- } = useFunnelContext();+ const { selectedTime, validTracesCount, isUpdatingFunnel } =+ useFunnelContext();return useQuery({queryFn: ({ signal }) => getFunnelErrorTraces(funnelId, payload, signal),queryKey: [@@ -243,11 +234,8 @@ export function useFunnelStepsGraphData(funnelId: string,payload: FunnelStepsPayload,): UseQueryResult<SuccessResponse<FunnelStepsResponse> | ErrorResponse, Error> {- const {- selectedTime,- validTracesCount,- isUpdatingFunnel,- } = useFunnelContext();+ const { selectedTime, validTracesCount, isUpdatingFunnel } =+ useFunnelContext();return useQuery({queryFn: ({ signal }) => getFunnelSteps(payload, signal),@@ -268,11 +256,8 @@ export const useFunnelStepsOverview = (SuccessResponse<FunnelStepsOverviewResponse> | ErrorResponse,Error> => {- const {- selectedTime,- validTracesCount,- isUpdatingFunnel,- } = useFunnelContext();+ const { selectedTime, validTracesCount, isUpdatingFunnel } =+ useFunnelContext();return useQuery({queryFn: ({ signal }) => getFunnelStepsOverview(payload, signal),queryKey: [diff --git a/frontend/src/hooks/TracesFunnels/useHandleTraceFunnelsSort.tsx b/frontend/src/hooks/TracesFunnels/useHandleTraceFunnelsSort.tsxindex 0beae298ce..28eeea3cb1 100644--- a/frontend/src/hooks/TracesFunnels/useHandleTraceFunnelsSort.tsx+++ b/frontend/src/hooks/TracesFunnels/useHandleTraceFunnelsSort.tsx@@ -55,7 +55,7 @@ const useHandleTraceFunnelsSort = ({}return order === 'ascend' ? aValue - bValue : bValue - aValue;- })+ }): [],[sortOrder, data],);diff --git a/frontend/src/hooks/dashboard/__test__/useTransformDashboardVariables.test.tsx b/frontend/src/hooks/dashboard/__test__/useTransformDashboardVariables.test.tsxindex 4777158613..01e2615123 100644--- a/frontend/src/hooks/dashboard/__test__/useTransformDashboardVariables.test.tsx+++ b/frontend/src/hooks/dashboard/__test__/useTransformDashboardVariables.test.tsx@@ -7,9 +7,10 @@ import { Dashboard, IDashboardVariable } from 'types/api/dashboard/getAll';jest.mock('hooks/dashboard/useDashboardFromLocalStorage');jest.mock('hooks/dashboard/useVariablesFromUrl');-const mockGetLocalStorageDashboardVariables = getLocalStorageDashboardVariables as jest.MockedFunction<- typeof getLocalStorageDashboardVariables->;+const mockGetLocalStorageDashboardVariables =+ getLocalStorageDashboardVariables as jest.MockedFunction<+ typeof getLocalStorageDashboardVariables+ >;const mockUseVariablesFromUrl = useVariablesFromUrl as jest.MockedFunction<typeof useVariablesFromUrl>;diff --git a/frontend/src/hooks/dashboard/useContextVariables.tsx b/frontend/src/hooks/dashboard/useContextVariables.tsxindex f63418bb86..71a92250e3 100644--- a/frontend/src/hooks/dashboard/useContextVariables.tsx+++ b/frontend/src/hooks/dashboard/useContextVariables.tsx@@ -153,9 +153,9 @@ function useContextVariables({// Helper function to get variable by nameconst getVariableByName = useMemo(- (): ((name: string) => ContextVariable | undefined) => (- name: string,- ): ContextVariable | undefined => allVariables.find((v) => v.name === name),+ (): ((name: string) => ContextVariable | undefined) =>+ (name: string): ContextVariable | undefined =>+ allVariables.find((v) => v.name === name),[allVariables],);diff --git a/frontend/src/hooks/dashboard/useDashboardBootstrap.ts b/frontend/src/hooks/dashboard/useDashboardBootstrap.tsindex ea168dae9e..ba68bb9964 100644--- a/frontend/src/hooks/dashboard/useDashboardBootstrap.ts+++ b/frontend/src/hooks/dashboard/useDashboardBootstrap.ts@@ -47,23 +47,16 @@ export function useDashboardBootstrap((state) => state.globalTime,);- const {- setDashboardData,- setLayouts,- setPanelMap,- resetDashboardStore,- } = useDashboardStore();+ const { setDashboardData, setLayouts, setPanelMap, resetDashboardStore } =+ useDashboardStore();const dashboardRef = useRef<Dashboard>();const modalRef = useRef<ReturnType<typeof Modal.confirm>>();const isVisible = useTabVisibility();- const {- getUrlVariables,- updateUrlVariable,- transformDashboardVariables,- } = useTransformDashboardVariables(dashboardId);+ const { getUrlVariables, updateUrlVariable, transformDashboardVariables } =+ useTransformDashboardVariables(dashboardId);// Keep the external variables store in sync with dashboardDatauseDashboardVariablesSync(dashboardId);diff --git a/frontend/src/hooks/dashboard/useDashboardFromLocalStorage.ts b/frontend/src/hooks/dashboard/useDashboardFromLocalStorage.tsindex bfc35a3cf0..857547f386 100644--- a/frontend/src/hooks/dashboard/useDashboardFromLocalStorage.ts+++ b/frontend/src/hooks/dashboard/useDashboardFromLocalStorage.ts@@ -59,9 +59,10 @@ export function updateLocalStorageDashboardVariable([id]:isDynamic && allSelected? {- selectedValue: (undefined as unknown) as IDashboardVariable['selectedValue'],+ selectedValue:+ undefined as unknown as IDashboardVariable['selectedValue'],allSelected: true,- }+ }: { selectedValue, allSelected },};writeAll(all);diff --git a/frontend/src/hooks/dashboard/useDashboardsListQueryParams.ts b/frontend/src/hooks/dashboard/useDashboardsListQueryParams.tsindex 2043ab5a94..0dfec7094f 100644--- a/frontend/src/hooks/dashboard/useDashboardsListQueryParams.ts+++ b/frontend/src/hooks/dashboard/useDashboardsListQueryParams.ts@@ -31,22 +31,20 @@ function useDashboardsListQueryParams(): {const pageQueryParam = params.get('page');const searchQueryParam = params.get('search');- const [- dashboardsListQueryParams,- setDashboardsListQueryParams,- ] = useState<IDashboardsListQueryParams>({- columnKey:- orderColumnKeyQueryParam &&- SUPPORTED_COLUMN_KEYS.includes(orderColumnKeyQueryParam)- ? orderColumnKeyQueryParam- : 'updatedAt',- order:- orderQueryParam && SUPPORTED_ORDER_KEYS.includes(orderQueryParam)- ? orderQueryParam- : 'descend',- page: pageQueryParam || '1',- search: searchQueryParam || '',- });+ const [dashboardsListQueryParams, setDashboardsListQueryParams] =+ useState<IDashboardsListQueryParams>({+ columnKey:+ orderColumnKeyQueryParam &&+ SUPPORTED_COLUMN_KEYS.includes(orderColumnKeyQueryParam)+ ? orderColumnKeyQueryParam+ : 'updatedAt',+ order:+ orderQueryParam && SUPPORTED_ORDER_KEYS.includes(orderQueryParam)+ ? orderQueryParam+ : 'descend',+ page: pageQueryParam || '1',+ search: searchQueryParam || '',+ });function updateDashboardsListQueryParams(updatedQueryParams: IDashboardsListQueryParams,diff --git a/frontend/src/hooks/dashboard/useTransformDashboardVariables.ts b/frontend/src/hooks/dashboard/useTransformDashboardVariables.tsindex 6b609b2692..b6e1b98376 100644--- a/frontend/src/hooks/dashboard/useTransformDashboardVariables.ts+++ b/frontend/src/hooks/dashboard/useTransformDashboardVariables.ts@@ -8,9 +8,10 @@ import { normalizeUrlValueForVariable } from 'providers/Dashboard/normalizeUrlVaimport { Dashboard, IDashboardVariable } from 'types/api/dashboard/getAll';import { v4 as generateUUID } from 'uuid';-export function useTransformDashboardVariables(- dashboardId: string,-): Pick<UseVariablesFromUrlReturn, 'getUrlVariables' | 'updateUrlVariable'> & {+export function useTransformDashboardVariables(dashboardId: string): Pick<+ UseVariablesFromUrlReturn,+ 'getUrlVariables' | 'updateUrlVariable'+> & {transformDashboardVariables: (data: Dashboard) => Dashboard;currentDashboard: ReturnType<typeof getLocalStorageDashboardVariables>;} {diff --git a/frontend/src/hooks/dashboard/utils.ts b/frontend/src/hooks/dashboard/utils.tsindex 524409e9e6..20cf254be2 100644--- a/frontend/src/hooks/dashboard/utils.ts+++ b/frontend/src/hooks/dashboard/utils.ts@@ -124,9 +124,9 @@ export const createDynamicVariableToWidgetsMap = (typeof v === 'string' &&variable.name &&textContainsVariableReference(v, variable.name),- )+ ): typeof filter.value === 'string' &&- textContainsVariableReference(filter.value, variable.name)) &&+ textContainsVariableReference(filter.value, variable.name)) &&!dynamicVariableToWidgetsMap[variable.id].includes(widget.id)) {dynamicVariableToWidgetsMap[variable.id].push(widget.id);diff --git a/frontend/src/hooks/integration/aws/useAccountSettingsModal.ts b/frontend/src/hooks/integration/aws/useAccountSettingsModal.tsindex 4b2badae58..fc89cf2de0 100644--- a/frontend/src/hooks/integration/aws/useAccountSettingsModal.ts+++ b/frontend/src/hooks/integration/aws/useAccountSettingsModal.ts@@ -45,9 +45,10 @@ export function useAccountSettingsModal({}: UseAccountSettingsModalProps): UseAccountSettingsModal {const [form] = Form.useForm();const { mutate: updateAccount, isLoading } = useUpdateAccount();- const accountRegions = useMemo(() => account?.config?.regions || [], [- account?.config?.regions,- ]);+ const accountRegions = useMemo(+ () => account?.config?.regions || [],+ [account?.config?.regions],+ );const [isInitialRegionsSet, setIsInitialRegionsSet] = useState(false);const [selectedRegions, setSelectedRegions] = useState<string[]>([]);diff --git a/frontend/src/hooks/logs/useActiveLog.ts b/frontend/src/hooks/logs/useActiveLog.tsindex d6fcb733c4..f0ccc72cb1 100644--- a/frontend/src/hooks/logs/useActiveLog.ts+++ b/frontend/src/hooks/logs/useActiveLog.ts@@ -51,9 +51,10 @@ export const useActiveLog = (): UseActiveLog => {const { currentQuery, redirectWithQueryBuilderData } = useQueryBuilder();const { notifications } = useNotifications();- const isLogsPage = useMemo(() => pathname === ROUTES.OLD_LOGS_EXPLORER, [- pathname,- ]);+ const isLogsPage = useMemo(+ () => pathname === ROUTES.OLD_LOGS_EXPLORER,+ [pathname],+ );const [activeLog, setActiveLog] = useState<ILog | null>(null);diff --git a/frontend/src/hooks/logs/useCopyLogLink.ts b/frontend/src/hooks/logs/useCopyLogLink.tsindex 6602060179..6f1c02bdd2 100644--- a/frontend/src/hooks/logs/useCopyLogLink.ts+++ b/frontend/src/hooks/logs/useCopyLogLink.ts@@ -41,9 +41,10 @@ export const useCopyLogLink = (logId?: string): UseCopyLogLink => {const isActiveLog = useMemo(() => activeLogId === logId, [activeLogId, logId]);const [isHighlighted, setIsHighlighted] = useState<boolean>(isActiveLog);- const isLogsExplorerPage = useMemo(() => pathname === ROUTES.LOGS_EXPLORER, [- pathname,- ]);+ const isLogsExplorerPage = useMemo(+ () => pathname === ROUTES.LOGS_EXPLORER,+ [pathname],+ );const onLogCopy: MouseEventHandler<HTMLElement> = useCallback((event) => {diff --git a/frontend/src/hooks/logs/useLogDetailHandlers.ts b/frontend/src/hooks/logs/useLogDetailHandlers.tsindex d7b115e6c5..115de34480 100644--- a/frontend/src/hooks/logs/useLogDetailHandlers.ts+++ b/frontend/src/hooks/logs/useLogDetailHandlers.ts@@ -5,7 +5,7 @@ import { useActiveLog } from 'hooks/logs/useActiveLog';import { useIsTextSelected } from 'hooks/useIsTextSelected';import { ILog } from 'types/api/logs/log';-type SelectedTab = typeof VIEW_TYPES[keyof typeof VIEW_TYPES] | undefined;+type SelectedTab = (typeof VIEW_TYPES)[keyof typeof VIEW_TYPES] | undefined;type UseLogDetailHandlersParams = {defaultTab?: SelectedTab;@@ -22,12 +22,8 @@ type UseLogDetailHandlersResult = {function useLogDetailHandlers({defaultTab = VIEW_TYPES.OVERVIEW,}: UseLogDetailHandlersParams = {}): UseLogDetailHandlersResult {- const {- activeLog,- onSetActiveLog,- onClearActiveLog,- onAddToQuery,- } = useActiveLog();+ const { activeLog, onSetActiveLog, onClearActiveLog, onAddToQuery } =+ useActiveLog();const [selectedTab, setSelectedTab] = useState<SelectedTab>(defaultTab);const isTextSelected = useIsTextSelected();diff --git a/frontend/src/hooks/member/useMemberRoleManager.ts b/frontend/src/hooks/member/useMemberRoleManager.tsindex 6d64618139..2b7498bd54 100644--- a/frontend/src/hooks/member/useMemberRoleManager.ts+++ b/frontend/src/hooks/member/useMemberRoleManager.ts@@ -27,9 +27,10 @@ export function useMemberRoleManager({ query: { enabled: !!userId && enabled } },);- const currentUserRoles = useMemo(() => fetchedUser?.data?.userRoles ?? [], [- fetchedUser,- ]);+ const currentUserRoles = useMemo(+ () => fetchedUser?.data?.userRoles ?? [],+ [fetchedUser],+ );const fetchedRoleIds = useMemo(() =>diff --git a/frontend/src/hooks/metricsExplorer/useGetMultipleMetrics.ts b/frontend/src/hooks/metricsExplorer/useGetMultipleMetrics.tsindex 06a251ff7e..9d64a5dc48 100644--- a/frontend/src/hooks/metricsExplorer/useGetMultipleMetrics.ts+++ b/frontend/src/hooks/metricsExplorer/useGetMultipleMetrics.ts@@ -32,6 +32,6 @@ export const useGetMultipleMetrics: UseGetMultipleMetrics = (signal,),...options,- } as UseQueryOptions<GetMetricMetadata200, Error>),+ }) as UseQueryOptions<GetMetricMetadata200, Error>,),);diff --git a/frontend/src/hooks/queryBuilder/__tests__/useCreateAlerts.test.tsx b/frontend/src/hooks/queryBuilder/__tests__/useCreateAlerts.test.tsxindex 5c685346c6..4ccba51d63 100644--- a/frontend/src/hooks/queryBuilder/__tests__/useCreateAlerts.test.tsx+++ b/frontend/src/hooks/queryBuilder/__tests__/useCreateAlerts.test.tsx@@ -70,7 +70,7 @@ const mockUseMutation = useMutation as jest.MockedFunction<typeof useMutation>;const mockUseSelector = useSelector as jest.MockedFunction<typeof useSelector>;const buildWidget = (queryType: EQueryType | undefined): Widgets =>- (({+ ({id: 'widget-1',panelTypes: 'graph',timePreferance: 'GLOBAL_TIME',@@ -82,7 +82,7 @@ const buildWidget = (queryType: EQueryType | undefined): Widgets =>promql: [],id: 'q-1',},- } as unknown) as Widgets);+ }) as unknown as Widgets;const getCompositeQueryFromLastOpen = (): Record<string, unknown> => {const [url] = (window.open as jest.Mock).mock.calls[0];@@ -105,11 +105,11 @@ describe('useCreateAlerts', () => {mockUseSelector.mockReturnValue({ selectedTime: '1h' });- mockUseMutation.mockReturnValue(({+ mockUseMutation.mockReturnValue({mutate: jest.fn((_payload, opts) => {capturedOnSuccess = opts?.onSuccess ?? null;}),- } as unknown) as ReturnType<typeof useMutation>);+ } as unknown as ReturnType<typeof useMutation>);// eslint-disable-next-line @typescript-eslint/no-explicit-any(window as any).open = jest.fn();@@ -189,9 +189,9 @@ describe('useCreateAlerts', () => {result.current();});- const mutateCalls = (mockUseMutation.mock.results[0].value as ReturnType<- typeof useMutation- >).mutate as jest.Mock;+ const mutateCalls = (+ mockUseMutation.mock.results[0].value as ReturnType<typeof useMutation>+ ).mutate as jest.Mock;expect(mutateCalls).not.toHaveBeenCalled();});});diff --git a/frontend/src/hooks/queryBuilder/useFetchKeysAndValues.ts b/frontend/src/hooks/queryBuilder/useFetchKeysAndValues.tsindex ea14a6f7f1..4305d21195 100644--- a/frontend/src/hooks/queryBuilder/useFetchKeysAndValues.ts+++ b/frontend/src/hooks/queryBuilder/useFetchKeysAndValues.ts@@ -204,8 +204,8 @@ export const useFetchKeysAndValues = (filterAttributeKey?.dataType ?? DataTypes.EMPTY,tagType: filterAttributeKey?.type ?? '',searchText: isInNInOperator(tagOperator)- ? tagValue[tagValue.length - 1]?.toString() ?? ''- : tagValue?.toString() ?? '',+ ? (tagValue[tagValue.length - 1]?.toString() ?? '')+ : (tagValue?.toString() ?? ''),});payload = response.payload;} else {@@ -218,8 +218,8 @@ export const useFetchKeysAndValues = (filterAttributeKey?.dataType ?? DataTypes.EMPTY,tagType: filterAttributeKey?.type ?? '',searchText: isInNInOperator(tagOperator)- ? tagValue[tagValue.length - 1]?.toString() ?? ''- : tagValue?.toString() ?? '',+ ? (tagValue[tagValue.length - 1]?.toString() ?? '')+ : (tagValue?.toString() ?? ''),});payload = response.payload;}diff --git a/frontend/src/hooks/queryBuilder/useGetCompositeQueryParam.ts b/frontend/src/hooks/queryBuilder/useGetCompositeQueryParam.tsindex b31bcad0e4..0989c2e423 100644--- a/frontend/src/hooks/queryBuilder/useGetCompositeQueryParam.ts+++ b/frontend/src/hooks/queryBuilder/useGetCompositeQueryParam.ts@@ -29,8 +29,8 @@ export const useGetCompositeQueryParam = (): Query | null => {// Convert old format to new format for each query in builder.queryDataif (parsedCompositeQuery?.builder?.queryData) {- parsedCompositeQuery.builder.queryData = parsedCompositeQuery.builder.queryData.map(- (query) => {+ parsedCompositeQuery.builder.queryData =+ parsedCompositeQuery.builder.queryData.map((query) => {const existingExpression = query.filter?.expression || '';const convertedQuery = { ...query };@@ -61,8 +61,7 @@ export const useGetCompositeQueryParam = (): Query | null => {convertedQuery.aggregations = convertedAggregation;}return convertedQuery;- },- );+ });}} catch (e) {parsedCompositeQuery = null;diff --git a/frontend/src/hooks/queryBuilder/useGetExplorerQueryRange.ts b/frontend/src/hooks/queryBuilder/useGetExplorerQueryRange.tsindex 595eec1612..59586698eb 100644--- a/frontend/src/hooks/queryBuilder/useGetExplorerQueryRange.ts+++ b/frontend/src/hooks/queryBuilder/useGetExplorerQueryRange.ts@@ -30,10 +30,11 @@ export const useGetExplorerQueryRange = (Error> => {const { isEnabledQuery } = useQueryBuilder();- const { selectedTime: globalSelectedInterval, minTime, maxTime } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ selectedTime: globalSelectedInterval,+ minTime,+ maxTime,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const key =typeof options?.queryKey === 'string'diff --git a/frontend/src/hooks/queryBuilder/useIsValidTag.ts b/frontend/src/hooks/queryBuilder/useIsValidTag.tsindex d4e2b58080..3a14d0253e 100644--- a/frontend/src/hooks/queryBuilder/useIsValidTag.ts+++ b/frontend/src/hooks/queryBuilder/useIsValidTag.ts@@ -16,7 +16,7 @@ export const useIsValidTag = (operatorType: OperatorType,resultLength: number,): boolean =>- useMemo(() => validationMapper[operatorType]?.(resultLength), [- operatorType,- resultLength,- ]);+ useMemo(+ () => validationMapper[operatorType]?.(resultLength),+ [operatorType, resultLength],+ );diff --git a/frontend/src/hooks/queryBuilder/useOperators.ts b/frontend/src/hooks/queryBuilder/useOperators.tsindex 20c625858b..9392a0ad64 100644--- a/frontend/src/hooks/queryBuilder/useOperators.ts+++ b/frontend/src/hooks/queryBuilder/useOperators.ts@@ -24,8 +24,8 @@ export const useOperators = (return currentKey?.dataType? QUERY_BUILDER_OPERATORS_BY_TYPES[currentKey.dataType as keyof typeof QUERY_BUILDER_OPERATORS_BY_TYPES- ]+ ]: strippedKey.endsWith('[*]') && strippedKey.startsWith('body.')- ? [OPERATORS.HAS, OPERATORS.NHAS]- : QUERY_BUILDER_OPERATORS_BY_TYPES.universal;+ ? [OPERATORS.HAS, OPERATORS.NHAS]+ : QUERY_BUILDER_OPERATORS_BY_TYPES.universal;}, [keys, key]);diff --git a/frontend/src/hooks/queryBuilder/useOptions.ts b/frontend/src/hooks/queryBuilder/useOptions.tsindex 76df8d04c2..a6429b3ca4 100644--- a/frontend/src/hooks/queryBuilder/useOptions.ts+++ b/frontend/src/hooks/queryBuilder/useOptions.ts@@ -85,14 +85,14 @@ export const useOptions = (label: searchValue,value: searchValue,},- ]+ ]: [{label: searchValue,value: searchValue,},...values,- ];+ ];},[getKeyOpValue, result, variableAsValue],);@@ -105,7 +105,7 @@ export const useOptions = (const filteredOperators = !isEmpty(partialOperator)? operators?.filter((operator) =>operator.startsWith(partialOperator?.toUpperCase()),- )+ ): operators;const operatorsOptions = filteredOperators?.map((operator) => ({value: `${partialKey} ${operator} `,@@ -136,7 +136,7 @@ export const useOptions = (value: `${searchValue} `,},...getOptionsFromKeys(keys),- ]+ ]: getOptionsFromKeys(keys);} else if (key && !operator) {newOptions = getKeyOperatorOptions(key);diff --git a/frontend/src/hooks/queryBuilder/useQueryBuilderOperations.ts b/frontend/src/hooks/queryBuilder/useQueryBuilderOperations.tsindex 306d7ee877..4a7c6f1f3a 100644--- a/frontend/src/hooks/queryBuilder/useQueryBuilderOperations.ts+++ b/frontend/src/hooks/queryBuilder/useQueryBuilderOperations.ts@@ -120,7 +120,7 @@ export const useQueryOperations: UseQueryOperations = ({(acc, item) => {if (filterConfigs &&- filterConfigs[item.field as typeof additionalFiltersKeys[number]]+ filterConfigs[item.field as (typeof additionalFiltersKeys)[number]]?.isHidden) {return acc;@@ -143,10 +143,8 @@ export const useQueryOperations: UseQueryOperations = ({string[]>(getNewListOfAdditionalFilters(dataSource, true));- const [- listOfAdditionalFormulaFilters,- setListOfAdditionalFormulaFilters,- ] = useState<string[]>(getNewListOfAdditionalFilters(dataSource, false));+ const [listOfAdditionalFormulaFilters, setListOfAdditionalFormulaFilters] =+ useState<string[]>(getNewListOfAdditionalFilters(dataSource, false));const handleChangeOperator = useCallback((value: string): void => {@@ -218,7 +216,7 @@ export const useQueryOperations: UseQueryOperations = ({panelType: panelType || PANEL_TYPES.TIME_SERIES,aggregateAttributeType:(aggregateAttribute?.type as ATTRIBUTE_TYPES) || ATTRIBUTE_TYPES.GAUGE,- });+ });switch (aggregateAttribute?.type) {case ATTRIBUTE_TYPES.SUM:@@ -530,32 +528,31 @@ export const useQueryOperations: UseQueryOperations = ({index,]);- const handleChangeQueryData:- | HandleChangeQueryData- | HandleChangeQueryDataV5 = useCallback(- (key: string, value: any) => {- const newQuery = {- ...query,- [key]:- key === LEGEND && typeof value === 'string'- ? getFormatedLegend(value)- : value,- };-- if (isForTraceOperator) {- handleSetTraceOperatorData(index, newQuery);- } else {- handleSetQueryData(index, newQuery);- }- },- [- query,- index,- handleSetQueryData,- handleSetTraceOperatorData,- isForTraceOperator,- ],- );+ const handleChangeQueryData: HandleChangeQueryData | HandleChangeQueryDataV5 =+ useCallback(+ (key: string, value: any) => {+ const newQuery = {+ ...query,+ [key]:+ key === LEGEND && typeof value === 'string'+ ? getFormatedLegend(value)+ : value,+ };++ if (isForTraceOperator) {+ handleSetTraceOperatorData(index, newQuery);+ } else {+ handleSetQueryData(index, newQuery);+ }+ },+ [+ query,+ index,+ handleSetQueryData,+ handleSetTraceOperatorData,+ isForTraceOperator,+ ],+ );const handleChangeFormulaData: HandleChangeFormulaData = useCallback((key, value) => {diff --git a/frontend/src/hooks/queryPagination/utils.ts b/frontend/src/hooks/queryPagination/utils.tsindex 217a19afe1..94d2176157 100644--- a/frontend/src/hooks/queryPagination/utils.ts+++ b/frontend/src/hooks/queryPagination/utils.ts@@ -7,9 +7,9 @@ export const checkIsValidPaginationData = (): boolean =>Boolean(Number.isInteger(limit) &&- limit > 0 &&- offset >= 0 &&- perPageOptions.find((option) => option === limit),+ limit > 0 &&+ offset >= 0 &&+ perPageOptions.find((option) => option === limit),);export const getDefaultPaginationConfig = (diff --git a/frontend/src/hooks/serviceAccount/useServiceAccountRoleManager.ts b/frontend/src/hooks/serviceAccount/useServiceAccountRoleManager.tsindex 344e497a21..966e9a945a 100644--- a/frontend/src/hooks/serviceAccount/useServiceAccountRoleManager.ts+++ b/frontend/src/hooks/serviceAccount/useServiceAccountRoleManager.ts@@ -35,9 +35,10 @@ export function useServiceAccountRoleManager(const { data, isLoading } = useGetServiceAccountRoles({ id: accountId });- const currentRoles = useMemo<AuthtypesRoleDTO[]>(() => data?.data ?? [], [- data?.data,- ]);+ const currentRoles = useMemo<AuthtypesRoleDTO[]>(+ () => data?.data ?? [],+ [data?.data],+ );// the retry for these mutations is safe due to being idempotent on backendconst { mutateAsync: createRole } = useCreateServiceAccountRole({diff --git a/frontend/src/hooks/spanDetails/usePinnedAttributes.ts b/frontend/src/hooks/spanDetails/usePinnedAttributes.tsindex 91eec2f092..b5b44afaf0 100644--- a/frontend/src/hooks/spanDetails/usePinnedAttributes.ts+++ b/frontend/src/hooks/spanDetails/usePinnedAttributes.ts@@ -69,13 +69,16 @@ export function usePinnedAttributes(// Create pinned attributes state from stored keys, filtering by available attributesconst pinnedAttributes = useMemo((): Record<string, boolean> =>- pinnedKeys.reduce((acc, key) => {- // Only include if the attribute exists in the current span- if (availableAttributes.includes(key)) {- acc[key] = true;- }- return acc;- }, {} as Record<string, boolean>),+ pinnedKeys.reduce(+ (acc, key) => {+ // Only include if the attribute exists in the current span+ if (availableAttributes.includes(key)) {+ acc[key] = true;+ }+ return acc;+ },+ {} as Record<string, boolean>,+ ),[pinnedKeys, availableAttributes],);diff --git a/frontend/src/hooks/useAuthZ/types.ts b/frontend/src/hooks/useAuthZ/types.tsindex a8d78c0b23..87d0e4ab64 100644--- a/frontend/src/hooks/useAuthZ/types.ts+++ b/frontend/src/hooks/useAuthZ/types.ts@@ -19,9 +19,8 @@ export type ResourcesForRelation<R extends RelationName> = Extract<{ type: RelationsByType[R][number] }>['name'];-type IsPluralResource<- R extends ResourceName-> = ResourceTypeMap[R] extends 'metaresources' ? true : false;+type IsPluralResource<R extends ResourceName> =+ ResourceTypeMap[R] extends 'metaresources' ? true : false;type ObjectForResource<R extends ResourceName> = R extends infer U? U extends ResourceNamediff --git a/frontend/src/hooks/useAuthZ/useAuthZ.tsx b/frontend/src/hooks/useAuthZ/useAuthZ.tsxindex 74d7930edf..72ffc76782 100644--- a/frontend/src/hooks/useAuthZ/useAuthZ.tsx+++ b/frontend/src/hooks/useAuthZ/useAuthZ.tsx@@ -103,12 +103,14 @@ export function useAuthZ(}),);- const isLoading = useMemo(() => queryResults.some((q) => q.isLoading), [- queryResults,- ]);- const isFetching = useMemo(() => queryResults.some((q) => q.isFetching), [- queryResults,- ]);+ const isLoading = useMemo(+ () => queryResults.some((q) => q.isLoading),+ [queryResults],+ );+ const isFetching = useMemo(+ () => queryResults.some((q) => q.isFetching),+ [queryResults],+ );const error = useMemo(() =>diff --git a/frontend/src/hooks/useAuthZ/utils.ts b/frontend/src/hooks/useAuthZ/utils.tsindex 8ea5806006..55643ac640 100644--- a/frontend/src/hooks/useAuthZ/utils.ts+++ b/frontend/src/hooks/useAuthZ/utils.ts@@ -20,14 +20,12 @@ export function buildPermission<R extends AuthZRelation>(}export function buildObjectString<- R extends 'delete' | 'read' | 'update' | 'assignee'+ R extends 'delete' | 'read' | 'update' | 'assignee',>(resource: ResourcesForRelation<R>, objectId: string): AuthZObject<R> {return `${resource}${ObjectSeparator}${objectId}` as AuthZObject<R>;}-export function parsePermission(- permission: BrandedPermission,-): {+export function parsePermission(permission: BrandedPermission): {relation: AuthZRelation;object: string;} {@@ -35,10 +33,13 @@ export function parsePermission(return { relation: relation as AuthZRelation, object };}-const resourceNameToType = permissionsType.data.resources.reduce((acc, r) => {- acc[r.name] = r.type;- return acc;-}, {} as Record<ResourceName, ResourceType>);+const resourceNameToType = permissionsType.data.resources.reduce(+ (acc, r) => {+ acc[r.name] = r.type;+ return acc;+ },+ {} as Record<ResourceName, ResourceType>,+);export function permissionToTransactionDto(permission: BrandedPermission,diff --git a/frontend/src/hooks/useComponentPermission.ts b/frontend/src/hooks/useComponentPermission.tsindex d439ef4173..a98f4773c3 100644--- a/frontend/src/hooks/useComponentPermission.ts+++ b/frontend/src/hooks/useComponentPermission.ts@@ -12,10 +12,10 @@ const useComponentPermission = ([role],);- return useMemo(() => component.map((e) => getComponentPermission(e)), [- component,- getComponentPermission,- ]);+ return useMemo(+ () => component.map((e) => getComponentPermission(e)),+ [component, getComponentPermission],+ );};export default useComponentPermission;diff --git a/frontend/src/hooks/useDarkMode/index.tsx b/frontend/src/hooks/useDarkMode/index.tsxindex fd7f3caebb..2e994dc36b 100644--- a/frontend/src/hooks/useDarkMode/index.tsx+++ b/frontend/src/hooks/useDarkMode/index.tsx@@ -118,9 +118,8 @@ interface ThemeMode {}export const useThemeMode = (): ThemeMode => {- const { theme, toggleTheme, autoSwitch, setAutoSwitch, setTheme } = useContext(- ThemeContext,- );+ const { theme, toggleTheme, autoSwitch, setAutoSwitch, setTheme } =+ useContext(ThemeContext);return { theme, toggleTheme, autoSwitch, setAutoSwitch, setTheme };};diff --git a/frontend/src/hooks/useDownloadOptionsMenu/useDownloadOptionsMenu.ts b/frontend/src/hooks/useDownloadOptionsMenu/useDownloadOptionsMenu.tsindex 6738269036..9768039c51 100644--- a/frontend/src/hooks/useDownloadOptionsMenu/useDownloadOptionsMenu.ts+++ b/frontend/src/hooks/useDownloadOptionsMenu/useDownloadOptionsMenu.ts@@ -55,8 +55,8 @@ export function useExportRawData({const selectColumnsOverride = clearSelectColumns? {}: selectedColumns?.length- ? { selectColumns: selectedColumns }- : {};+ ? { selectColumns: selectedColumns }+ : {};const exportQuery = {...stagedQuery,diff --git a/frontend/src/hooks/useFetch.ts b/frontend/src/hooks/useFetch.tsindex eff36eedf8..56a8207baf 100644--- a/frontend/src/hooks/useFetch.ts+++ b/frontend/src/hooks/useFetch.ts@@ -3,9 +3,9 @@ import { ErrorResponse, SuccessResponse } from 'types/api';function useFetch<PayloadProps, FunctionParams>(functions: {- (props: FunctionParams): Promise<- SuccessResponse<PayloadProps> | ErrorResponse- >;+ (+ props: FunctionParams,+ ): Promise<SuccessResponse<PayloadProps> | ErrorResponse>;(arg0: any): Promise<SuccessResponse<PayloadProps> | ErrorResponse>;},param?: FunctionParams,diff --git a/frontend/src/hooks/useGetQueryLabels.test.ts b/frontend/src/hooks/useGetQueryLabels.test.tsindex 1a3286e262..4e2dfcb53c 100644--- a/frontend/src/hooks/useGetQueryLabels.test.ts+++ b/frontend/src/hooks/useGetQueryLabels.test.ts@@ -35,7 +35,7 @@ describe('useGetQueryLabels', () => {queryType: EQueryType.QUERY_BUILDER,builder: {queryData: [],- queryFormulas: (undefined as unknown) as IBuilderFormula[],+ queryFormulas: undefined as unknown as IBuilderFormula[],queryTraceOperator: [],},});@@ -51,8 +51,8 @@ describe('useGetQueryLabels', () => {builder: {queryData: [],queryFormulas: [- ({ queryName: 'F1' } as unknown) as IBuilderFormula,- ({ queryName: 'F2' } as unknown) as IBuilderFormula,+ { queryName: 'F1' } as unknown as IBuilderFormula,+ { queryName: 'F2' } as unknown as IBuilderFormula,],queryTraceOperator: [],},@@ -71,7 +71,7 @@ describe('useGetQueryLabels', () => {it('returns empty array when clickhouse_sql is undefined', () => {const query = buildQuery({queryType: EQueryType.CLICKHOUSE,- clickhouse_sql: (undefined as unknown) as IClickHouseQuery[],+ clickhouse_sql: undefined as unknown as IClickHouseQuery[],});const { result } = renderHook(() => useGetQueryLabels(query));@@ -83,8 +83,8 @@ describe('useGetQueryLabels', () => {const query = buildQuery({queryType: EQueryType.CLICKHOUSE,clickhouse_sql: [- ({ name: 'query_a' } as unknown) as IClickHouseQuery,- ({ name: 'query_b' } as unknown) as IClickHouseQuery,+ { name: 'query_a' } as unknown as IClickHouseQuery,+ { name: 'query_b' } as unknown as IClickHouseQuery,],});@@ -101,7 +101,7 @@ describe('useGetQueryLabels', () => {it('returns empty array when promql is undefined', () => {const query = buildQuery({queryType: EQueryType.PROM,- promql: (undefined as unknown) as IPromQLQuery[],+ promql: undefined as unknown as IPromQLQuery[],});const { result } = renderHook(() => useGetQueryLabels(query));@@ -113,8 +113,8 @@ describe('useGetQueryLabels', () => {const query = buildQuery({queryType: EQueryType.PROM,promql: [- ({ name: 'prom_1' } as unknown) as IPromQLQuery,- ({ name: 'prom_2' } as unknown) as IPromQLQuery,+ { name: 'prom_1' } as unknown as IPromQLQuery,+ { name: 'prom_2' } as unknown as IPromQLQuery,],});diff --git a/frontend/src/hooks/useGetYAxisUnit.test.ts b/frontend/src/hooks/useGetYAxisUnit.test.tsindex afc33a0119..3a203e9fc9 100644--- a/frontend/src/hooks/useGetYAxisUnit.test.ts+++ b/frontend/src/hooks/useGetYAxisUnit.test.ts@@ -57,9 +57,9 @@ describe('useGetYAxisUnit', () => {isError: false,metrics: [],});- mockUseQueryBuilder.mockReturnValue(({+ mockUseQueryBuilder.mockReturnValue({currentQuery: undefined,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);});it('should return undefined yAxisUnit and not call useGetMetrics when currentQuery is null', async () => {@@ -73,9 +73,9 @@ describe('useGetYAxisUnit', () => {it('should return undefined yAxisUnit when queryType is PROM', async () => {const mockCurrentQuery = createMockCurrentQuery(EQueryType.PROM);- mockUseQueryBuilder.mockReturnValueOnce(({+ mockUseQueryBuilder.mockReturnValueOnce({currentQuery: mockCurrentQuery,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);const { result } = renderHook(() => useGetYAxisUnit());@@ -85,9 +85,9 @@ describe('useGetYAxisUnit', () => {it('should return undefined yAxisUnit when queryType is CLICKHOUSE', async () => {const mockCurrentQuery = createMockCurrentQuery(EQueryType.CLICKHOUSE);- mockUseQueryBuilder.mockReturnValueOnce(({+ mockUseQueryBuilder.mockReturnValueOnce({currentQuery: mockCurrentQuery,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);const { result } = renderHook(() => useGetYAxisUnit());@@ -104,9 +104,9 @@ describe('useGetYAxisUnit', () => {aggregateAttribute: { key: 'trace_metric' },} as Query['builder']['queryData'][0],]);- mockUseQueryBuilder.mockReturnValueOnce(({+ mockUseQueryBuilder.mockReturnValueOnce({currentQuery: mockCurrentQuery,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);const { result } = renderHook(() => useGetYAxisUnit());@@ -123,9 +123,9 @@ describe('useGetYAxisUnit', () => {aggregateAttribute: { key: 'log_metric' },} as Query['builder']['queryData'][number],]);- mockUseQueryBuilder.mockReturnValueOnce(({+ mockUseQueryBuilder.mockReturnValueOnce({currentQuery: mockCurrentQuery,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);const { result } = renderHook(() => useGetYAxisUnit());@@ -149,9 +149,9 @@ describe('useGetYAxisUnit', () => {} as Query['builder']['queryData'][number],]);- mockUseQueryBuilder.mockReturnValueOnce(({+ mockUseQueryBuilder.mockReturnValueOnce({stagedQuery: mockCurrentQuery,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);renderHook(() => useGetYAxisUnit());@@ -171,9 +171,9 @@ describe('useGetYAxisUnit', () => {queryName: 'query2',} as Query['builder']['queryData'][number],]);- mockUseQueryBuilder.mockReturnValueOnce(({+ mockUseQueryBuilder.mockReturnValueOnce({stagedQuery: mockCurrentQuery,- } as Partial<QueryBuilderContextType>) as QueryBuilderContextType);+ } as Partial<QueryBuilderContextType> as QueryBuilderContextType);renderHook(() => useGetYAxisUnit('query2'));diff --git a/frontend/src/hooks/useHandleExplorerTabChange.ts b/frontend/src/hooks/useHandleExplorerTabChange.tsindex defdd3fa7c..0ae0ded66f 100644--- a/frontend/src/hooks/useHandleExplorerTabChange.ts+++ b/frontend/src/hooks/useHandleExplorerTabChange.ts@@ -19,7 +19,7 @@ export const useHandleExplorerTabChange = (): {handleExplorerTabChange: (type: string,querySearchParameters?: ICurrentQueryData,- redirectToUrl?: typeof ROUTES[keyof typeof ROUTES],+ redirectToUrl?: (typeof ROUTES)[keyof typeof ROUTES],newTab?: boolean,) => void;} => {@@ -63,7 +63,7 @@ export const useHandleExplorerTabChange = (): {(type: string,currentQueryData?: ICurrentQueryData,- redirectToUrl?: typeof ROUTES[keyof typeof ROUTES],+ redirectToUrl?: (typeof ROUTES)[keyof typeof ROUTES],newTab?: boolean,) => {const newPanelType = type as PANEL_TYPES;diff --git a/frontend/src/hooks/useLogsData.ts b/frontend/src/hooks/useLogsData.tsindex b80b863ca5..978501e8b4 100644--- a/frontend/src/hooks/useLogsData.ts+++ b/frontend/src/hooks/useLogsData.ts@@ -123,7 +123,7 @@ export const useLogsData = ({...(listQuery || initialQueryBuilderFormValues),...paginateData,},- ];+ ];const data: Query = {...query,diff --git a/frontend/src/hooks/useMultiIntersectionObserver.ts b/frontend/src/hooks/useMultiIntersectionObserver.tsindex 409ec444a1..2ceb5ede2c 100644--- a/frontend/src/hooks/useMultiIntersectionObserver.ts+++ b/frontend/src/hooks/useMultiIntersectionObserver.ts@@ -17,9 +17,10 @@ export function useMultiIntersectionObserver();const setElement = useCallback<(index: number) => SetElement>(- (index) => (el): void => {- elementsRef.current[index] = el;- },+ (index) =>+ (el): void => {+ elementsRef.current[index] = el;+ },[],);diff --git a/frontend/src/hooks/useNotifications.tsx b/frontend/src/hooks/useNotifications.tsxindex ccc4531263..1638089c7d 100644--- a/frontend/src/hooks/useNotifications.tsx+++ b/frontend/src/hooks/useNotifications.tsx@@ -23,9 +23,8 @@ const defaultNotification: Notification = {},};-export const NotificationContext = createContext<Notification>(- defaultNotification,-);+export const NotificationContext =+ createContext<Notification>(defaultNotification);export function NotificationProvider({children,@@ -33,9 +32,10 @@ export function NotificationProvider({children: JSX.Element;}): JSX.Element {const [notificationApi, NotificationElement] = notification.useNotification();- const notifications = useMemo(() => ({ notifications: notificationApi }), [- notificationApi,- ]);+ const notifications = useMemo(+ () => ({ notifications: notificationApi }),+ [notificationApi],+ );return (<NotificationContext.Provider value={notifications}>diff --git a/frontend/src/hooks/useTimezoneFormatter/useTimezoneFormatter.ts b/frontend/src/hooks/useTimezoneFormatter/useTimezoneFormatter.tsindex 1b06127010..5361f21704 100644--- a/frontend/src/hooks/useTimezoneFormatter/useTimezoneFormatter.ts+++ b/frontend/src/hooks/useTimezoneFormatter/useTimezoneFormatter.ts@@ -22,11 +22,7 @@ interface CacheEntry {const CACHE_SIZE_LIMIT = 1000;const CACHE_CLEANUP_PERCENTAGE = 0.5; // Remove 50% when limit is reached-function useTimezoneFormatter({- userTimezone,-}: {- userTimezone: Timezone;-}): {+function useTimezoneFormatter({ userTimezone }: { userTimezone: Timezone }): {formatTimezoneAdjustedTimestamp: (input: TimestampInput,format?: string,diff --git a/frontend/src/lib/dashboard/getQueryResults.ts b/frontend/src/lib/dashboard/getQueryResults.tsindex 144da5cec0..1fe55e5013 100644--- a/frontend/src/lib/dashboard/getQueryResults.ts+++ b/frontend/src/lib/dashboard/getQueryResults.ts@@ -159,7 +159,7 @@ export const getLegend = (aggregationExpression,labelName,singleAggregation,- )+ ): getLegendForMultipleAggregations(queryData,allQueries,@@ -167,7 +167,7 @@ export const getLegend = (aggregationExpression,labelName,singleAggregation,- );+ );}return labelName || metaData?.queryName || queryData.queryName;};@@ -352,15 +352,14 @@ export async function GetMetricQueryRange(}if (response.payload?.data?.newResult?.data?.resultType === 'anomaly') {- response.payload.data.newResult.data.result = response.payload.data.newResult.data.result.map(- (queryData) => {+ response.payload.data.newResult.data.result =+ response.payload.data.newResult.data.result.map((queryData) => {if (legendMap[queryData.queryName]) {queryData.legend = legendMap[queryData.queryName];}return queryData;- },- );+ });}return {diff --git a/frontend/src/lib/dashboard/prepareQueryRangePayload.ts b/frontend/src/lib/dashboard/prepareQueryRangePayload.tsindex 897e90ba94..7482f3465d 100644--- a/frontend/src/lib/dashboard/prepareQueryRangePayload.ts+++ b/frontend/src/lib/dashboard/prepareQueryRangePayload.ts@@ -53,17 +53,20 @@ export const prepareQueryRangePayload = ({break;}case EQueryType.CLICKHOUSE: {- const chQueries = query[query.queryType].reduce((acc, query) => {- if (!query.query) {- return acc;- }+ const chQueries = query[query.queryType].reduce(+ (acc, query) => {+ if (!query.query) {+ return acc;+ }- acc[query.name] = query;+ acc[query.name] = query;- legendMap[query.name] = query.legend;+ legendMap[query.name] = query.legend;- return acc;- }, {} as NonNullable<QueryRangePayload['compositeQuery']['chQueries']>);+ return acc;+ },+ {} as NonNullable<QueryRangePayload['compositeQuery']['chQueries']>,+ );compositeQuery.chQueries = chQueries;@@ -71,17 +74,20 @@ export const prepareQueryRangePayload = ({}case EQueryType.PROM: {// eslint-disable-next-line sonarjs/no-identical-functions- const promQueries = query[query.queryType].reduce((acc, query) => {- if (!query.query) {- return acc;- }+ const promQueries = query[query.queryType].reduce(+ (acc, query) => {+ if (!query.query) {+ return acc;+ }- acc[query.name] = query;+ acc[query.name] = query;- legendMap[query.name] = query.legend;+ legendMap[query.name] = query.legend;- return acc;- }, {} as NonNullable<QueryRangePayload['compositeQuery']['promQueries']>);+ return acc;+ },+ {} as NonNullable<QueryRangePayload['compositeQuery']['promQueries']>,+ );compositeQuery.promQueries = promQueries;break;diff --git a/frontend/src/lib/dashboardVariables/variableReference.test.ts b/frontend/src/lib/dashboardVariables/variableReference.test.tsindex ffc7dcd10c..5a75b3ed51 100644--- a/frontend/src/lib/dashboardVariables/variableReference.test.ts+++ b/frontend/src/lib/dashboardVariables/variableReference.test.ts@@ -121,7 +121,7 @@ describe('extractQueryTextStrings', () => {queryType: EQueryType.QUERY_BUILDER,builder: {queryData: [- ({+ {filters: {items: [{ id: '1', op: '=', value: ['$service_name', 'hardcoded'] },@@ -129,7 +129,7 @@ describe('extractQueryTextStrings', () => {],op: 'AND',},- } as unknown) as IBuilderQuery,+ } as unknown as IBuilderQuery,],queryFormulas: [],queryTraceOperator: [],@@ -146,10 +146,10 @@ describe('extractQueryTextStrings', () => {queryType: EQueryType.QUERY_BUILDER,builder: {queryData: [- ({+ {filters: { items: [], op: 'AND' },filter: { expression: 'env = $deployment_environment' },- } as unknown) as IBuilderQuery,+ } as unknown as IBuilderQuery,],queryFormulas: [],queryTraceOperator: [],@@ -166,12 +166,12 @@ describe('extractQueryTextStrings', () => {queryType: EQueryType.QUERY_BUILDER,builder: {queryData: [- ({+ {filters: {items: [{ id: '1', op: '=', value: [42, true] }],op: 'AND',},- } as unknown) as IBuilderQuery,+ } as unknown as IBuilderQuery,],queryFormulas: [],queryTraceOperator: [],@@ -222,18 +222,18 @@ describe('extractQueryTextStrings', () => {queryType: EQueryType.QUERY_BUILDER,builder: {queryData: [- ({+ {filters: {items: [{ id: '1', op: '=', value: '$env' }],op: 'AND',},- } as unknown) as IBuilderQuery,- ({+ } as unknown as IBuilderQuery,+ {filters: {items: [{ id: '2', op: '=', value: ['$service_name'] }],op: 'AND',},- } as unknown) as IBuilderQuery,+ } as unknown as IBuilderQuery,],queryFormulas: [],queryTraceOperator: [],@@ -249,13 +249,13 @@ describe('extractQueryTextStrings', () => {queryType: EQueryType.QUERY_BUILDER,builder: {queryData: [- ({+ {filters: {items: [{ id: '1', op: '=', value: '$service_name' }],op: 'AND',},filter: { expression: 'env = $deployment_environment' },- } as unknown) as IBuilderQuery,+ } as unknown as IBuilderQuery,],queryFormulas: [],queryTraceOperator: [],@@ -304,7 +304,7 @@ describe('extractQueryTextStrings', () => {it('returns empty array for unknown query type', () => {const query = {...baseQuery,- queryType: ('unknown' as unknown) as EQueryType,+ queryType: 'unknown' as unknown as EQueryType,};expect(extractQueryTextStrings(query)).toEqual([]);});@@ -328,7 +328,7 @@ describe('getVariableReferencesInQuery', () => {queryType: EQueryType.QUERY_BUILDER,builder: {queryData: [- ({+ {filters: {items: [{ id: '1', op: '=', value: '$service_name' },@@ -336,7 +336,7 @@ describe('getVariableReferencesInQuery', () => {],op: 'AND',},- } as unknown) as IBuilderQuery,+ } as unknown as IBuilderQuery,],queryFormulas: [],queryTraceOperator: [],@@ -390,15 +390,15 @@ describe('getVariableReferencesInQuery', () => {queryType: EQueryType.QUERY_BUILDER,builder: {queryData: [- ({+ {filters: {items: [{ id: '1', op: '=', value: '$service_name' }],op: 'AND',},- } as unknown) as IBuilderQuery,- ({+ } as unknown as IBuilderQuery,+ {filter: { expression: 'env = $deployment_environment' },- } as unknown) as IBuilderQuery,+ } as unknown as IBuilderQuery,],queryFormulas: [],queryTraceOperator: [],diff --git a/frontend/src/lib/logs/generateFilterQuery.ts b/frontend/src/lib/logs/generateFilterQuery.tsindex dd95bcdf45..953eff9988 100644--- a/frontend/src/lib/logs/generateFilterQuery.ts+++ b/frontend/src/lib/logs/generateFilterQuery.ts@@ -1,7 +1,7 @@import { QueryOperatorsMultiVal } from 'lib/logql/tokens';type Keys = keyof typeof QueryOperatorsMultiVal;-type Values = typeof QueryOperatorsMultiVal[Keys];+type Values = (typeof QueryOperatorsMultiVal)[Keys];interface GenerateFilterQueryParams {fieldKey: string;diff --git a/frontend/src/lib/newQueryBuilder/getPaginationQueryData.ts b/frontend/src/lib/newQueryBuilder/getPaginationQueryData.tsindex 39a28149c7..fb9755cf0a 100644--- a/frontend/src/lib/newQueryBuilder/getPaginationQueryData.ts+++ b/frontend/src/lib/newQueryBuilder/getPaginationQueryData.ts@@ -80,7 +80,7 @@ export const getPaginationQueryData: SetupPaginationQueryData = ({value: listItemId,},...updatedFilters.items,- ]+ ]: updatedFilters.items,op: filters?.op || 'AND',};diff --git a/frontend/src/lib/newQueryBuilder/queryBuilderMappers/__tests__/mapQueryDataFromApiInputs.ts b/frontend/src/lib/newQueryBuilder/queryBuilderMappers/__tests__/mapQueryDataFromApiInputs.tsindex b96cce4075..b05d6aa4c9 100644--- a/frontend/src/lib/newQueryBuilder/queryBuilderMappers/__tests__/mapQueryDataFromApiInputs.ts+++ b/frontend/src/lib/newQueryBuilder/queryBuilderMappers/__tests__/mapQueryDataFromApiInputs.ts@@ -4,7 +4,7 @@ import { DataTypes } from 'types/api/queryBuilder/queryAutocompleteResponse';import { EQueryType } from 'types/common/dashboard';import { DataSource, ReduceOperators } from 'types/common/queryBuilder';-export const compositeQueryWithoutVariables = ({+export const compositeQueryWithoutVariables = {builderQueries: {A: {queryName: 'A',@@ -33,7 +33,7 @@ export const compositeQueryWithoutVariables = ({},panelType: PANEL_TYPES.TIME_SERIES,queryType: EQueryType.QUERY_BUILDER,-} as unknown) as ICompositeMetricQuery;+} as unknown as ICompositeMetricQuery;export const stepIntervalUnchanged = {builder: {@@ -86,7 +86,7 @@ export const stepIntervalUnchanged = {unit: undefined,};-export const compositeQueryWithVariables = ({+export const compositeQueryWithVariables = {builderQueries: {A: {queryName: 'A',@@ -156,7 +156,7 @@ export const compositeQueryWithVariables = ({},panelType: 'graph',queryType: 'builder',-} as unknown) as ICompositeMetricQuery;+} as unknown as ICompositeMetricQuery;export const replaceVariables = {builder: {@@ -302,7 +302,7 @@ export const defaultOutput = {unit: undefined,};-export const compositeQueriesWithFunctions = ({+export const compositeQueriesWithFunctions = {builderQueries: {A: {queryName: 'A',@@ -371,7 +371,7 @@ export const compositeQueriesWithFunctions = ({},panelType: 'graph',queryType: 'builder',-} as unknown) as ICompositeMetricQuery;+} as unknown as ICompositeMetricQuery;export const outputWithFunctions = {builder: {diff --git a/frontend/src/lib/newQueryBuilder/queryBuilderMappers/mapQueryDataFromApi.ts b/frontend/src/lib/newQueryBuilder/queryBuilderMappers/mapQueryDataFromApi.tsindex a852bdc415..49706861cd 100644--- a/frontend/src/lib/newQueryBuilder/queryBuilderMappers/mapQueryDataFromApi.ts+++ b/frontend/src/lib/newQueryBuilder/queryBuilderMappers/mapQueryDataFromApi.ts@@ -47,13 +47,13 @@ const mapQueryFromV5 = (compositeQuery: ICompositeMetricQuery): Query => {} else if (q.type === 'builder_formula') {if (spec.name) {builderQueries[spec.name] = convertQueryBuilderFormulaToIBuilderFormula(- (spec as unknown) as QueryBuilderFormula,+ spec as unknown as QueryBuilderFormula,);builderQueryTypes[spec.name] = 'builder_formula';}} else if (q.type === 'builder_trace_operator') {if (spec.name) {- builderQueries[spec.name] = (spec as unknown) as IBuilderTraceOperator;+ builderQueries[spec.name] = spec as unknown as IBuilderTraceOperator;builderQueryTypes[spec.name] = 'builder_trace_operator';}} else if (q.type === 'promql') {@@ -93,7 +93,7 @@ const mapQueryFromV3 = (compositeQuery: ICompositeMetricQuery): Query => {? Object.keys(compositeQuery.promQueries).map((key) => ({...compositeQuery.promQueries?.[key],name: key,- }))+ })): initialQueryState.promql;const clickhouseSql = compositeQuery.chQueries@@ -101,7 +101,7 @@ const mapQueryFromV3 = (compositeQuery: ICompositeMetricQuery): Query => {...compositeQuery.chQueries?.[key],name: key,query: compositeQuery.chQueries?.[key]?.query || '',- }))+ })): initialQueryState.clickhouse_sql;return {diff --git a/frontend/src/lib/newQueryBuilder/queryBuilderMappers/mapQueryDataToApi.ts b/frontend/src/lib/newQueryBuilder/queryBuilderMappers/mapQueryDataToApi.tsindex 211c13b1b2..dc3f4b2c81 100644--- a/frontend/src/lib/newQueryBuilder/queryBuilderMappers/mapQueryDataToApi.ts+++ b/frontend/src/lib/newQueryBuilder/queryBuilderMappers/mapQueryDataToApi.ts@@ -12,22 +12,25 @@ export const mapQueryDataToApi = <Data extends MapData, Key extends keyof Data>(const newLegendMap: Record<string, string> = {};const preparedResult =- data?.reduce<Record<string, Data>>((acc, query) => {- const newResult: Record<string, Data> = {- ...acc,- [query[nameField] as string]: {- ...query,- ...tableParams?.pagination,- ...(tableParams?.selectColumns- ? { selectColumns: tableParams?.selectColumns }- : null),- },- };+ data?.reduce<Record<string, Data>>(+ (acc, query) => {+ const newResult: Record<string, Data> = {+ ...acc,+ [query[nameField] as string]: {+ ...query,+ ...tableParams?.pagination,+ ...(tableParams?.selectColumns+ ? { selectColumns: tableParams?.selectColumns }+ : null),+ },+ };- newLegendMap[query[nameField] as string] = query.legend;+ newLegendMap[query[nameField] as string] = query.legend;- return newResult;- }, {} as Record<string, Data>) || {};+ return newResult;+ },+ {} as Record<string, Data>,+ ) || {};return {data: preparedResult,diff --git a/frontend/src/lib/query/createTableColumnsFromQuery.ts b/frontend/src/lib/query/createTableColumnsFromQuery.tsindex dba71e3709..fd5e14f4d8 100644--- a/frontend/src/lib/query/createTableColumnsFromQuery.ts+++ b/frontend/src/lib/query/createTableColumnsFromQuery.ts@@ -48,9 +48,7 @@ export type DynamicColumn = {type DynamicColumns = DynamicColumn[];-type CreateTableDataFromQuery = (- params: CreateTableDataFromQueryParams,-) => {+type CreateTableDataFromQuery = (params: CreateTableDataFromQueryParams) => {columns: ColumnsType<RowData>;dataSource: RowData[];rowsLength: number;@@ -764,7 +762,7 @@ export const createTableColumnsFromQuery: CreateTableDataFromQuery = ({key: 'actions',title: 'Actions',render: (_, record): ReactNode => renderActionCell(record),- }+ }: null;if (actionsCell && dataSource.length > 0) {diff --git a/frontend/src/lib/replaceIncorrectObjectFields.ts b/frontend/src/lib/replaceIncorrectObjectFields.tsindex becfde8277..11b3052346 100644--- a/frontend/src/lib/replaceIncorrectObjectFields.ts+++ b/frontend/src/lib/replaceIncorrectObjectFields.ts@@ -2,7 +2,7 @@ export function replaceIncorrectObjectFields<// eslint-disable-next-line @typescript-eslint/ban-typesTargetValue extends object,// eslint-disable-next-line @typescript-eslint/ban-types- ResultValue extends object+ ResultValue extends object,>(targetObject: TargetValue,defaultObject: ResultValue,@@ -16,9 +16,9 @@ export function replaceIncorrectObjectFields<defaultObjectKeys.forEach((key) => {if (targetObjectKeys.includes(key)) {- result[key as keyof ResultValue] = (targetObject[+ result[key as keyof ResultValue] = targetObject[key as keyof TargetValue- ] as unknown) as ResultValue[keyof ResultValue];+ ] as unknown as ResultValue[keyof ResultValue];} else {isValid = false;}diff --git a/frontend/src/lib/uPlotLib/getUplotChartOptions.ts b/frontend/src/lib/uPlotLib/getUplotChartOptions.tsindex c681325ace..244b494326 100644--- a/frontend/src/lib/uPlotLib/getUplotChartOptions.ts+++ b/frontend/src/lib/uPlotLib/getUplotChartOptions.ts@@ -239,7 +239,7 @@ export const getUPlotChartOptions = ({query || currentQuery,getLabelName(item.metric || {}, item.queryName || '', item.legend || ''),),- )+ ): [];const legendConfig = enhancedLegend@@ -248,14 +248,14 @@ export const getUPlotChartOptions = ({seriesCount,seriesLabels,legendPosition,- )+ ): {calculatedHeight: 30,minHeight: 30,maxHeight: 30,itemsPerRow: 3,showScrollbar: false,- };+ };// Calculate chart dimensions based on legend positionconst chartWidth =@@ -302,7 +302,7 @@ export const getUPlotChartOptions = ({focus: {prox: 30,},- }+ }: {}),},...(enableZoom@@ -310,7 +310,7 @@ export const getUPlotChartOptions = ({select: {show: true,},- }+ }: {}),tzDate,padding: [16, 16, 8, 8],@@ -699,9 +699,8 @@ export const getUPlotChartOptions = ({setGraphsVisibilityStates?.((prev) => {const newGraphVisibilityStates = [...prev];// Toggle the specific series visibility (checkbox behavior)- newGraphVisibilityStates[index + 1] = !newGraphVisibilityStates[- index + 1- ];+ newGraphVisibilityStates[index + 1] =+ !newGraphVisibilityStates[index + 1];saveLegendEntriesToLocalStorage?.({options: self,@@ -811,7 +810,7 @@ export const getUPlotChartOptions = ({hiddenGraph,isDarkMode,colorMapping,- }),+ }),axes: getAxes({ isDarkMode, yAxisUnit, panelType, isLogScale }),};};diff --git a/frontend/src/lib/uPlotLib/getUplotHistogramChartOptions.ts b/frontend/src/lib/uPlotLib/getUplotHistogramChartOptions.tsindex e5afc37152..17dc0a1781 100644--- a/frontend/src/lib/uPlotLib/getUplotHistogramChartOptions.ts+++ b/frontend/src/lib/uPlotLib/getUplotHistogramChartOptions.ts@@ -77,8 +77,11 @@ const getHistogramSeries = ({const newGraphVisibilityStates = graphsVisibilityStates?.slice(1);for (let i = 0; i < seriesList?.length; i += 1) {- const { metric = {}, queryName = '', legend: lgd } =- (widgetMetaData && widgetMetaData[i]) || {};+ const {+ metric = {},+ queryName = '',+ legend: lgd,+ } = (widgetMetaData && widgetMetaData[i]) || {};const newLegend =currentQuery?.builder.queryData.find((item) => item.queryName === queryName)@@ -230,9 +233,8 @@ export const getUplotHistogramChartOptions = ({setGraphsVisibilityStates?.((prev) => {const newGraphVisibilityStates = [...prev];// Toggle the specific series visibility (checkbox behavior)- newGraphVisibilityStates[index + 1] = !newGraphVisibilityStates[- index + 1- ];+ newGraphVisibilityStates[index + 1] =+ !newGraphVisibilityStates[index + 1];saveLegendEntriesToLocalStorage({options: self,@@ -282,4 +284,4 @@ export const getUplotHistogramChartOptions = ({],},axes: getAxes({ isDarkMode, panelType }),- } as uPlot.Options);+ }) as uPlot.Options;diff --git a/frontend/src/lib/uPlotLib/placement.ts b/frontend/src/lib/uPlotLib/placement.tsindex 33bb2d85e9..c89f1edaae 100644--- a/frontend/src/lib/uPlotLib/placement.ts+++ b/frontend/src/lib/uPlotLib/placement.ts@@ -210,12 +210,12 @@ export const placement = (function () {element[mainAxis.offsetSize] -mainMarginTotal,)- }px`),- (element.style[mainAxis.after] = 'auto'))+ }px`),+ (element.style[mainAxis.after] = 'auto')): ((element.style[mainAxis.before] = `${mainScrollOffset + clampMainPosition(anchorRect[mainAxis.after])- }px`),- (element.style[mainAxis.after] = 'auto'));+ }px`),+ (element.style[mainAxis.after] = 'auto'));// Position on cross axis based on alignmentconst crossScrollOffset = window[crossAxis.scrollOffset];@@ -231,14 +231,14 @@ export const placement = (function () {switch (align) {case 'start':- (element.style[crossAxis.before] = `${+ ((element.style[crossAxis.before] = `${crossScrollOffset +clampCrossPosition(anchorRect[crossAxis.before] - crossMarginBefore)}px`),- (element.style[crossAxis.after] = 'auto');+ (element.style[crossAxis.after] = 'auto'));break;case 'end':- (element.style[crossAxis.before] = 'auto'),+ ((element.style[crossAxis.before] = 'auto'),(element.style[crossAxis.after] = `${crossScrollOffset +clampCrossPosition(@@ -246,12 +246,12 @@ export const placement = (function () {anchorRect[crossAxis.after] -crossMarginAfter,)- }px`);+ }px`));break;default:// 'center'var crossSize = anchorRect[crossAxis.after] - anchorRect[crossAxis.before];- (element.style[crossAxis.before] = `${+ ((element.style[crossAxis.before] = `${crossScrollOffset +clampCrossPosition(anchorRect[crossAxis.before] +@@ -260,10 +260,10 @@ export const placement = (function () {crossMarginBefore,)}px`),- (element.style[crossAxis.after] = 'auto');+ (element.style[crossAxis.after] = 'auto'));}// Store final placement as data attributes- (element.dataset.side = side), (element.dataset.align = align);+ ((element.dataset.side = side), (element.dataset.align = align));};})();diff --git a/frontend/src/lib/uPlotLib/plugins/heatmapPlugin.ts b/frontend/src/lib/uPlotLib/plugins/heatmapPlugin.tsindex d2eb2c09e0..e2a730016e 100644--- a/frontend/src/lib/uPlotLib/plugins/heatmapPlugin.ts+++ b/frontend/src/lib/uPlotLib/plugins/heatmapPlugin.ts@@ -14,8 +14,8 @@ function heatmapPlugin(): uPlot.Plugin {draw: (u: uPlot): void => {const { ctx, data } = u;- const yData = (data[3] as unknown) as number[][];- const yQtys = (data[4] as unknown) as number[][];+ const yData = data[3] as unknown as number[][];+ const yQtys = data[4] as unknown as number[][];const yHgt = Math.floor(u.valToPos(bucketIncr, 'y', true) - u.valToPos(0, 'y', true),);diff --git a/frontend/src/lib/uPlotLib/plugins/timelinePlugin.ts b/frontend/src/lib/uPlotLib/plugins/timelinePlugin.tsindex b16310d720..ad705e1c04 100644--- a/frontend/src/lib/uPlotLib/plugins/timelinePlugin.ts+++ b/frontend/src/lib/uPlotLib/plugins/timelinePlugin.ts@@ -578,7 +578,7 @@ function timelinePlugin(opts: any): any {scaleMin: number,scaleMax: number,foundIncr: number,- ): any => {+ ): any => {const splits = [];const dataIncr = u.data[0][1] - u.data[0][0];@@ -593,7 +593,7 @@ function timelinePlugin(opts: any): any {}return splits;- }+ }: null,grid: {show: showGrid ?? mode !== 2,diff --git a/frontend/src/lib/uPlotLib/plugins/tooltipPlugin.ts b/frontend/src/lib/uPlotLib/plugins/tooltipPlugin.tsindex 7f1c7f74cb..33d175ad84 100644--- a/frontend/src/lib/uPlotLib/plugins/tooltipPlugin.ts+++ b/frontend/src/lib/uPlotLib/plugins/tooltipPlugin.ts@@ -205,10 +205,8 @@ const generateTooltipContent = (return container;}- const sortedData: Record<- string,- UplotTooltipDataProps- > = sortTooltipContentBasedOnValue(formattedData);+ const sortedData: Record<string, UplotTooltipDataProps> =+ sortTooltipContentBasedOnValue(formattedData);const headerDiv = document.createElement('div');headerDiv.classList.add('tooltip-content-row', 'tooltip-content-header');diff --git a/frontend/src/lib/uPlotLib/utils/getAxes.ts b/frontend/src/lib/uPlotLib/utils/getAxes.tsindex 0b0d488f57..eb3f8684cd 100644--- a/frontend/src/lib/uPlotLib/utils/getAxes.ts+++ b/frontend/src/lib/uPlotLib/utils/getAxes.ts@@ -41,7 +41,7 @@ const getAxes = ({...(PANEL_TYPES_WITH_X_AXIS_DATETIME_FORMAT.includes(panelType)? {values: uPlotXAxisValuesFormat,- }+ }: {}),gap: 5,},diff --git a/frontend/src/lib/uPlotLib/utils/getSeriesData.ts b/frontend/src/lib/uPlotLib/utils/getSeriesData.tsindex 53b1782360..0570a1b0a1 100644--- a/frontend/src/lib/uPlotLib/utils/getSeriesData.ts+++ b/frontend/src/lib/uPlotLib/utils/getSeriesData.ts@@ -82,8 +82,8 @@ const getSeries = ({show: newGraphVisibilityStates? newGraphVisibilityStates[i]: !isUndefined(hiddenGraph)- ? hiddenGraph[i]- : true,+ ? hiddenGraph[i]+ : true,label,fill: panelType && panelType === PANEL_TYPES.BAR ? `${color}` : undefined,stroke: color,diff --git a/frontend/src/lib/uPlotV2/components/Legend/Legend.styles.scss b/frontend/src/lib/uPlotV2/components/Legend/Legend.styles.scssindex 617aa29138..95caef1df1 100644--- a/frontend/src/lib/uPlotV2/components/Legend/Legend.styles.scss+++ b/frontend/src/lib/uPlotV2/components/Legend/Legend.styles.scss@@ -182,7 +182,9 @@cursor: pointer;border-radius: 4px;opacity: 1;- transition: opacity 0.15s ease, color 0.15s ease;+ transition:+ opacity 0.15s ease,+ color 0.15s ease;&:hover {color: var(--l1-foreground);diff --git a/frontend/src/lib/uPlotV2/components/Legend/Legend.tsx b/frontend/src/lib/uPlotV2/components/Legend/Legend.tsxindex 4c85a48a8e..00dbf0decb 100644--- a/frontend/src/lib/uPlotV2/components/Legend/Legend.tsx+++ b/frontend/src/lib/uPlotV2/components/Legend/Legend.tsx@@ -19,26 +19,21 @@ export default function Legend({config,averageLegendWidth = MAX_LEGEND_WIDTH,}: LegendProps): JSX.Element {- const {- legendItemsMap,- focusedSeriesIndex,- setFocusedSeriesIndex,- } = useLegendsSync({ config });- const {- onLegendClick,- onLegendMouseMove,- onLegendMouseLeave,- } = useLegendActions({- setFocusedSeriesIndex,- focusedSeriesIndex,- });+ const { legendItemsMap, focusedSeriesIndex, setFocusedSeriesIndex } =+ useLegendsSync({ config });+ const { onLegendClick, onLegendMouseMove, onLegendMouseLeave } =+ useLegendActions({+ setFocusedSeriesIndex,+ focusedSeriesIndex,+ });const legendContainerRef = useRef<HTMLDivElement | null>(null);const [legendSearchQuery, setLegendSearchQuery] = useState('');const { copyToClipboard, id: copiedId } = useCopyToClipboard();- const legendItems = useMemo(() => Object.values(legendItemsMap), [- legendItemsMap,- ]);+ const legendItems = useMemo(+ () => Object.values(legendItemsMap),+ [legendItemsMap],+ );const isSingleRow = useMemo(() => {if (!legendContainerRef.current || position !== LegendPosition.BOTTOM) {diff --git a/frontend/src/lib/uPlotV2/components/Tooltip/__tests__/Tooltip.test.tsx b/frontend/src/lib/uPlotV2/components/Tooltip/__tests__/Tooltip.test.tsxindex c5f4956283..42857cafc5 100644--- a/frontend/src/lib/uPlotV2/components/Tooltip/__tests__/Tooltip.test.tsx+++ b/frontend/src/lib/uPlotV2/components/Tooltip/__tests__/Tooltip.test.tsx@@ -74,11 +74,11 @@ function createTooltipContent(}function createUPlotInstance(cursorIdx: number | null): uPlot {- return ({+ return {data: [[1], []],cursor: { idx: cursorIdx },// The rest of the uPlot fields are not used by Tooltip- } as unknown) as uPlot;+ } as unknown as uPlot;}function renderTooltip(props: Partial<TooltipTestProps> = {}): RenderResult {diff --git a/frontend/src/lib/uPlotV2/components/Tooltip/__tests__/utils.test.ts b/frontend/src/lib/uPlotV2/components/Tooltip/__tests__/utils.test.tsindex b03df72e43..df284bb8bf 100644--- a/frontend/src/lib/uPlotV2/components/Tooltip/__tests__/utils.test.ts+++ b/frontend/src/lib/uPlotV2/components/Tooltip/__tests__/utils.test.ts@@ -19,10 +19,10 @@ const mockGetToolTipValue = getToolTipValue as jest.MockedFunction<>;function createUPlotInstance(): uPlot {- return ({+ return {data: [],cursor: { idx: 0 },- } as unknown) as uPlot;+ } as unknown as uPlot;}describe('Tooltip utils', () => {@@ -144,7 +144,7 @@ describe('Tooltip utils', () => {const data: AlignedData = [[0, 1],[10, 20], // series 1- [5, (null as unknown) as number], // series 2 missing+ [5, null as unknown as number], // series 2 missing];const series: Series[] = [diff --git a/frontend/src/lib/uPlotV2/components/Tooltip/components/TooltipHeader/TooltipHeader.module.scss b/frontend/src/lib/uPlotV2/components/Tooltip/components/TooltipHeader/TooltipHeader.module.scssindex 172daba7cd..e8e706f668 100644--- a/frontend/src/lib/uPlotV2/components/Tooltip/components/TooltipHeader/TooltipHeader.module.scss+++ b/frontend/src/lib/uPlotV2/components/Tooltip/components/TooltipHeader/TooltipHeader.module.scss@@ -1,10 +1,8 @@.headerContainer {display: flex;flex-direction: column;-}-.headerRow {padding: var(--spacing-8) var(--spacing-8) 0 var(--spacing-8);font-size: var(--font-size-sm);@@ -31,4 +29,3 @@color: var(--callout-primary-title);flex-shrink: 0;}-diff --git a/frontend/src/lib/uPlotV2/components/__tests__/UPlotChart.test.tsx b/frontend/src/lib/uPlotV2/components/__tests__/UPlotChart.test.tsxindex 0f01d641e8..a760c92f1d 100644--- a/frontend/src/lib/uPlotV2/components/__tests__/UPlotChart.test.tsx+++ b/frontend/src/lib/uPlotV2/components/__tests__/UPlotChart.test.tsx@@ -76,7 +76,7 @@ jest.mock('uplot', () => {// ---------------------------------------------------------------------------const createMockConfig = (): UPlotConfigBuilder => {- return ({+ return {getConfig: jest.fn().mockReturnValue({series: [{ value: (): string => '' }],axes: [],@@ -87,7 +87,7 @@ const createMockConfig = (): UPlotConfigBuilder => {getId: jest.fn().mockReturnValue(undefined),getShouldSaveSelectionPreference: jest.fn().mockReturnValue(false),getSeriesSpanGapsOptions: jest.fn().mockReturnValue([]),- } as unknown) as UPlotConfigBuilder;+ } as unknown as UPlotConfigBuilder;};const validData: AlignedData = [@@ -209,7 +209,7 @@ describe('UPlotChart', () => {render(<UPlotChart- config={(config as unknown) as UPlotConfigBuilder}+ config={config as unknown as UPlotConfigBuilder}data={validData}width={500}height={300}diff --git a/frontend/src/lib/uPlotV2/components/types.ts b/frontend/src/lib/uPlotV2/components/types.tsindex edb4de878c..228f914fcb 100644--- a/frontend/src/lib/uPlotV2/components/types.ts+++ b/frontend/src/lib/uPlotV2/components/types.ts@@ -70,16 +70,14 @@ export interface BaseTooltipProps {}export interface TimeSeriesTooltipProps- extends BaseTooltipProps,- TooltipRenderArgs {}+ extends BaseTooltipProps, TooltipRenderArgs {}export interface BarTooltipProps extends BaseTooltipProps, TooltipRenderArgs {isStackedBarChart?: boolean;}export interface HistogramTooltipProps- extends BaseTooltipProps,- TooltipRenderArgs {}+ extends BaseTooltipProps, TooltipRenderArgs {}export type TooltipProps =| TimeSeriesTooltipPropsdiff --git a/frontend/src/lib/uPlotV2/config/UPlotAxisBuilder.ts b/frontend/src/lib/uPlotV2/config/UPlotAxisBuilder.tsindex 224519d1e3..6da73e957e 100644--- a/frontend/src/lib/uPlotV2/config/UPlotAxisBuilder.ts+++ b/frontend/src/lib/uPlotV2/config/UPlotAxisBuilder.ts@@ -110,8 +110,8 @@ export class UPlotAxisBuilder extends ConfigBuilder<AxisProps, Axis> {return scaleKey === 'x'? this.buildXAxisValuesFormatter(): scaleKey === 'y'- ? this.buildYAxisValuesFormatter()- : undefined;+ ? this.buildYAxisValuesFormatter()+ : undefined;}/**diff --git a/frontend/src/lib/uPlotV2/config/UPlotConfigBuilder.ts b/frontend/src/lib/uPlotV2/config/UPlotConfigBuilder.tsindex aa74efe818..f90f76d5e2 100644--- a/frontend/src/lib/uPlotV2/config/UPlotConfigBuilder.ts+++ b/frontend/src/lib/uPlotV2/config/UPlotConfigBuilder.ts@@ -353,34 +353,34 @@ export class UPlotConfigBuilder extends ConfigBuilder<* Get legend items with visibility state restored from localStorage if available*/getLegendItems(): Record<number, LegendItem> {- const {- visibleStoredLabels,- hiddenStoredLabels,- hasActivePreference,- } = this.getVisibilityResolutionState();-- return this.series.reduce((acc, s: UPlotSeriesBuilder, index: number) => {- const seriesConfig = s.getConfig();- const label = seriesConfig.label ?? '';- // +1 because uPlot series 0 is x-axis/time; data series are at 1, 2, ... (also matches stored visibility[0]=time, visibility[1]=first data, ...)- const seriesIndex = index + 1;- const show = resolveSeriesVisibility({- seriesShow: seriesConfig.show,- seriesLabel: label,- visibleStoredLabels,- hiddenStoredLabels,- hasActivePreference,- });+ const { visibleStoredLabels, hiddenStoredLabels, hasActivePreference } =+ this.getVisibilityResolutionState();++ return this.series.reduce(+ (acc, s: UPlotSeriesBuilder, index: number) => {+ const seriesConfig = s.getConfig();+ const label = seriesConfig.label ?? '';+ // +1 because uPlot series 0 is x-axis/time; data series are at 1, 2, ... (also matches stored visibility[0]=time, visibility[1]=first data, ...)+ const seriesIndex = index + 1;+ const show = resolveSeriesVisibility({+ seriesShow: seriesConfig.show,+ seriesLabel: label,+ visibleStoredLabels,+ hiddenStoredLabels,+ hasActivePreference,+ });- acc[seriesIndex] = {- seriesIndex,- color: seriesConfig.stroke,- label,- show,- };+ acc[seriesIndex] = {+ seriesIndex,+ color: seriesConfig.stroke,+ label,+ show,+ };- return acc;- }, {} as Record<number, LegendItem>);+ return acc;+ },+ {} as Record<number, LegendItem>,+ );}/**@@ -406,7 +406,7 @@ export class UPlotConfigBuilder extends ConfigBuilder<stepInterval: this.stepInterval ?? 0,});return width * STEP_INTERVAL_MULTIPLIER;- }+ }: DEFAULT_HOVER_PROXIMITY_VALUE,},};@@ -423,11 +423,8 @@ export class UPlotConfigBuilder extends ConfigBuilder<...DEFAULT_PLOT_CONFIG,};- const {- visibleStoredLabels,- hiddenStoredLabels,- hasActivePreference,- } = this.getVisibilityResolutionState();+ const { visibleStoredLabels, hiddenStoredLabels, hasActivePreference } =+ this.getVisibilityResolutionState();config.series = [{ value: (): string => '', label: 'Timestamp' }, // Base series for timestampdiff --git a/frontend/src/lib/uPlotV2/config/UPlotScaleBuilder.ts b/frontend/src/lib/uPlotV2/config/UPlotScaleBuilder.tsindex edf47bddf8..5c064623fd 100644--- a/frontend/src/lib/uPlotV2/config/UPlotScaleBuilder.ts+++ b/frontend/src/lib/uPlotV2/config/UPlotScaleBuilder.ts@@ -27,8 +27,8 @@ export class UPlotScaleBuilder extends ConfigBuilder<super(props);// By default while creating a widget we set the softMin and softMax to 0, so we need to handle this case separatelyconst isDefaultSoftMinMax = props.softMin === 0 && props.softMax === 0;- this.softMin = isDefaultSoftMinMax ? null : props.softMin ?? null;- this.softMax = isDefaultSoftMinMax ? null : props.softMax ?? null;+ this.softMin = isDefaultSoftMinMax ? null : (props.softMin ?? null);+ this.softMax = isDefaultSoftMinMax ? null : (props.softMax ?? null);this.min = props.min ?? null;this.max = props.max ?? null;}@@ -81,15 +81,13 @@ export class UPlotScaleBuilder extends ConfigBuilder<// Adjust softMin/softMax to include threshold values// This ensures threshold lines are visible within the scale rangeconst thresholdList = thresholds?.thresholds;- const {- softMin: adjustedSoftMin,- softMax: adjustedSoftMax,- } = adjustSoftLimitsWithThresholds(- this.softMin,- this.softMax,- thresholdList,- thresholds?.yAxisUnit,- );+ const { softMin: adjustedSoftMin, softMax: adjustedSoftMax } =+ adjustSoftLimitsWithThresholds(+ this.softMin,+ this.softMax,+ thresholdList,+ thresholds?.yAxisUnit,+ );const { min, max, softMin, softMax } = normalizeLogScaleLimits({distr,@@ -108,12 +106,8 @@ export class UPlotScaleBuilder extends ConfigBuilder<logBase,});- const {- rangeConfig,- hardMinOnly,- hardMaxOnly,- hasFixedRange,- } = getRangeConfig(min, max, softMin, softMax, padMinBy, padMaxBy);+ const { rangeConfig, hardMinOnly, hardMaxOnly, hasFixedRange } =+ getRangeConfig(min, max, softMin, softMax, padMinBy, padMaxBy);const rangeFn = createRangeFunction({rangeConfig,diff --git a/frontend/src/lib/uPlotV2/config/UPlotSeriesBuilder.ts b/frontend/src/lib/uPlotV2/config/UPlotSeriesBuilder.tsindex 5cd76cb9d9..7fa716b9b0 100644--- a/frontend/src/lib/uPlotV2/config/UPlotSeriesBuilder.ts+++ b/frontend/src/lib/uPlotV2/config/UPlotSeriesBuilder.ts@@ -226,7 +226,7 @@ export class UPlotSeriesBuilder extends ConfigBuilder<SeriesProps, Series> {// threshold-based null handling. When spanGaps is boolean we// map it directly. When spanGaps is undefined we fall back to// the default of true.- spanGaps: typeof spanGaps === 'number' ? false : spanGaps ?? true,+ spanGaps: typeof spanGaps === 'number' ? false : (spanGaps ?? true),value: (): string => '',pxAlign: true,show,diff --git a/frontend/src/lib/uPlotV2/config/__tests__/UPlotAxisBuilder.test.ts b/frontend/src/lib/uPlotV2/config/__tests__/UPlotAxisBuilder.test.tsindex 36076bd475..128506dc55 100644--- a/frontend/src/lib/uPlotV2/config/__tests__/UPlotAxisBuilder.test.ts+++ b/frontend/src/lib/uPlotV2/config/__tests__/UPlotAxisBuilder.test.ts@@ -181,7 +181,7 @@ describe('UPlotAxisBuilder', () => {);// Simulate uPlot calling the values formatter- const valuesFn = (config.values as unknown) as (+ const valuesFn = config.values as unknown as (self: uPlot,vals: unknown[],) => string[];@@ -315,17 +315,14 @@ describe('UPlotAxisBuilder', () => {ticks: { size: 10 },font: ['12px sans-serif'],};- const mockSelf = ({+ const mockSelf = {axes: [mockAxis],ctx: { measureText: jest.fn(() => ({ width: 60 })), font: '' },- } as unknown) as uPlot;-- const result = (sizeFn as (- s: uPlot,- v: string[],- a: number,- c: number,- ) => number)(+ } as unknown as uPlot;++ const result = (+ sizeFn as (s: uPlot, v: string[], a: number, c: number) => number+ )(mockSelf,['100', '200'],0,@@ -349,7 +346,7 @@ describe('UPlotAxisBuilder', () => {font: ['12px sans-serif'],};const measureText = jest.fn(() => ({ width: 48 }));- const mockSelf = ({+ const mockSelf = {axes: [mockAxis],ctx: {measureText,@@ -360,14 +357,11 @@ describe('UPlotAxisBuilder', () => {/* noop */},},- } as unknown) as uPlot;-- const result = (sizeFn as (- s: uPlot,- v: string[],- a: number,- c: number,- ) => number)(+ } as unknown as uPlot;++ const result = (+ sizeFn as (s: uPlot, v: string[], a: number, c: number) => number+ )(mockSelf,['10', '2000ms'],0,diff --git a/frontend/src/lib/uPlotV2/config/__tests__/UPlotConfigBuilder.test.ts b/frontend/src/lib/uPlotV2/config/__tests__/UPlotConfigBuilder.test.tsindex 18517fc68b..a9bd90e051 100644--- a/frontend/src/lib/uPlotV2/config/__tests__/UPlotConfigBuilder.test.ts+++ b/frontend/src/lib/uPlotV2/config/__tests__/UPlotConfigBuilder.test.ts@@ -77,10 +77,10 @@ describe('UPlotConfigBuilder', () => {const setSelectHooks = config.hooks?.setSelect ?? [];expect(setSelectHooks.length).toBe(1);- const uplotInstance = ({+ const uplotInstance = {select: { left: 10, width: 0 },posToVal: jest.fn(),- } as unknown) as uPlot;+ } as unknown as uPlot;// Simulate uPlot calling the hookconst setSelectHook = setSelectHooks[0];@@ -105,10 +105,10 @@ describe('UPlotConfigBuilder', () => {// left + width.mockReturnValueOnce(110);- const uplotInstance = ({+ const uplotInstance = {select: { left: 50, width: 20 },posToVal,- } as unknown) as uPlot;+ } as unknown as uPlot;const setSelectHook = setSelectHooks[0];expect(setSelectHook).toBeDefined();diff --git a/frontend/src/lib/uPlotV2/config/__tests__/UPlotScaleBuilder.test.ts b/frontend/src/lib/uPlotV2/config/__tests__/UPlotScaleBuilder.test.tsindex 838a7ddc91..9b3f3b2cb7 100644--- a/frontend/src/lib/uPlotV2/config/__tests__/UPlotScaleBuilder.test.ts+++ b/frontend/src/lib/uPlotV2/config/__tests__/UPlotScaleBuilder.test.ts@@ -171,8 +171,7 @@ describe('UPlotScaleBuilder', () => {it('respects explicit range function when provided on props', () => {const explicitRange: uPlot.Scale.Range = jest.fn(() => [- 0,- 10,+ 0, 10,]) as uPlot.Scale.Range;const builder = new UPlotScaleBuilder(diff --git a/frontend/src/lib/uPlotV2/config/__tests__/UPlotSeriesBuilder.test.ts b/frontend/src/lib/uPlotV2/config/__tests__/UPlotSeriesBuilder.test.tsindex e8caba0b49..f4abf512ac 100644--- a/frontend/src/lib/uPlotV2/config/__tests__/UPlotSeriesBuilder.test.ts+++ b/frontend/src/lib/uPlotV2/config/__tests__/UPlotSeriesBuilder.test.ts@@ -123,7 +123,7 @@ describe('UPlotSeriesBuilder', () => {});it('passes through a custom pathBuilder when provided', () => {- const customPaths = (jest.fn() as unknown) as uPlot.Series.PathBuilder;+ const customPaths = jest.fn() as unknown as uPlot.Series.PathBuilder;const builder = new UPlotSeriesBuilder(createBaseProps({diff --git a/frontend/src/lib/uPlotV2/constants.ts b/frontend/src/lib/uPlotV2/constants.tsindex 9322492670..d732e307b5 100644--- a/frontend/src/lib/uPlotV2/constants.ts+++ b/frontend/src/lib/uPlotV2/constants.ts@@ -32,8 +32,8 @@ export const DEFAULT_CURSOR_CONFIG: Cursor = {strokeFn !== undefined? strokeFn(u, seriesIdx): typeof points?.stroke === 'string'- ? points.stroke- : '';+ ? points.stroke+ : '';return `${strokeValue}90`;},fill: (): string => POINTS_FILL_COLOR,diff --git a/frontend/src/lib/uPlotV2/context/__tests__/PlotContext.test.tsx b/frontend/src/lib/uPlotV2/context/__tests__/PlotContext.test.tsxindex 9bbf720c96..c35a07498c 100644--- a/frontend/src/lib/uPlotV2/context/__tests__/PlotContext.test.tsx+++ b/frontend/src/lib/uPlotV2/context/__tests__/PlotContext.test.tsx@@ -14,9 +14,10 @@ jest.mock(}),);-const mockUpdateSeriesVisibilityToLocalStorage = updateSeriesVisibilityToLocalStorage as jest.MockedFunction<- typeof updateSeriesVisibilityToLocalStorage->;+const mockUpdateSeriesVisibilityToLocalStorage =+ updateSeriesVisibilityToLocalStorage as jest.MockedFunction<+ typeof updateSeriesVisibilityToLocalStorage+ >;interface MockSeries extends Partial<uPlot.Series> {label?: string;@@ -24,11 +25,11 @@ interface MockSeries extends Partial<uPlot.Series> {}const createMockPlot = (series: MockSeries[] = []): uPlot =>- (({+ ({series,batch: jest.fn((fn: () => void) => fn()),setSeries: jest.fn(),- } as unknown) as uPlot);+ }) as unknown as uPlot;interface TestComponentProps {plot?: uPlot;diff --git a/frontend/src/lib/uPlotV2/hooks/__tests__/useLegendsSync.test.ts b/frontend/src/lib/uPlotV2/hooks/__tests__/useLegendsSync.test.tsindex 23134ce236..5c4d5e4dd9 100644--- a/frontend/src/lib/uPlotV2/hooks/__tests__/useLegendsSync.test.ts+++ b/frontend/src/lib/uPlotV2/hooks/__tests__/useLegendsSync.test.ts@@ -46,7 +46,7 @@ describe('useLegendsSync', () => {| ((u: uPlot, seriesIndex: number | null, opts: uPlot.Series) => void)| null = null;- const config = ({+ const config = {getLegendItems: jest.fn(() => legendItems),addHook: jest.fn((@@ -66,7 +66,7 @@ describe('useLegendsSync', () => {};},),- } as unknown) as UPlotConfigBuilder;+ } as unknown as UPlotConfigBuilder;const invokeSetSeries = (seriesIndex: number | null,diff --git a/frontend/src/lib/uPlotV2/hooks/useLegendsSync.ts b/frontend/src/lib/uPlotV2/hooks/useLegendsSync.tsindex f19bf6c4c8..ad63c1c4df 100644--- a/frontend/src/lib/uPlotV2/hooks/useLegendsSync.ts+++ b/frontend/src/lib/uPlotV2/hooks/useLegendsSync.ts@@ -49,24 +49,22 @@ export default function useLegendsSync({*/const applyVisibilityUpdates = useCallback((updates: Record<number, boolean>): void => {- setLegendItemsMap(- (prev): Record<number, LegendItem> => {- let hasChanges = false;- const next = { ...prev };-- for (const [idxStr, show] of Object.entries(updates)) {- const idx = Number(idxStr);- const current = next[idx];- if (!current || current.show === show) {- continue;- }- next[idx] = { ...current, show };- hasChanges = true;+ setLegendItemsMap((prev): Record<number, LegendItem> => {+ let hasChanges = false;+ const next = { ...prev };++ for (const [idxStr, show] of Object.entries(updates)) {+ const idx = Number(idxStr);+ const current = next[idx];+ if (!current || current.show === show) {+ continue;}+ next[idx] = { ...current, show };+ hasChanges = true;+ }- return hasChanges ? next : prev;- },- );+ return hasChanges ? next : prev;+ });},[],);diff --git a/frontend/src/lib/uPlotV2/plugins/TooltipPlugin/TooltipPlugin.tsx b/frontend/src/lib/uPlotV2/plugins/TooltipPlugin/TooltipPlugin.tsxindex 30c086ea39..d6356f4822 100644--- a/frontend/src/lib/uPlotV2/plugins/TooltipPlugin/TooltipPlugin.tsx+++ b/frontend/src/lib/uPlotV2/plugins/TooltipPlugin/TooltipPlugin.tsx@@ -328,13 +328,13 @@ export default function TooltipPlugin({}const plotRect = plot.over.getBoundingClientRect();- const syntheticEvent = ({+ const syntheticEvent = {clientX: plotRect.left + cursorLeft,clientY: plotRect.top + cursorTop,target: plot.over,offsetX: cursorLeft,offsetY: cursorTop,- } as unknown) as MouseEvent;+ } as unknown as MouseEvent;controller.clickData = buildClickData(syntheticEvent, plot);controller.pinned = true;diff --git a/frontend/src/lib/uPlotV2/utils/__tests__/axis.test.ts b/frontend/src/lib/uPlotV2/utils/__tests__/axis.test.tsindex 874f2d745b..143993d026 100644--- a/frontend/src/lib/uPlotV2/utils/__tests__/axis.test.ts+++ b/frontend/src/lib/uPlotV2/utils/__tests__/axis.test.ts@@ -10,27 +10,27 @@ import {describe('axis utils', () => {describe('calculateTextWidth', () => {it('returns 0 when values are undefined or empty', () => {- const mockSelf = ({+ const mockSelf = {ctx: {measureText: jest.fn(),font: '',},- } as unknown) as uPlot;+ } as unknown as uPlot;// internally the type is string but it is an array of strings- const mockAxis: Axis = { font: (['12px sans-serif'] as unknown) as string };+ const mockAxis: Axis = { font: ['12px sans-serif'] as unknown as string };expect(calculateTextWidth(mockSelf, mockAxis, undefined)).toBe(0);expect(calculateTextWidth(mockSelf, mockAxis, [])).toBe(0);});it('returns 0 when longest value is empty string or axis has no usable font', () => {- const mockSelf = ({+ const mockSelf = {ctx: {measureText: jest.fn(),font: '',},- } as unknown) as uPlot;+ } as unknown as uPlot;const axisWithoutFont: Axis = { font: '' };const axisWithEmptyFontArray: Axis = { font: '' };@@ -43,18 +43,17 @@ describe('axis utils', () => {it('measures longest value using canvas context and axis font', () => {const measureText = jest.fn(() => ({ width: 100 }));- const mockSelf = ({+ const mockSelf = {ctx: {font: '',measureText,},- } as unknown) as uPlot;+ } as unknown as uPlot;- const mockAxis: Axis = { font: (['14px Arial'] as unknown) as string };+ const mockAxis: Axis = { font: ['14px Arial'] as unknown as string };const values = ['1', '1234', '12'];const dpr =- ((global as unknown) as { devicePixelRatio?: number }).devicePixelRatio ??- 1;+ (global as unknown as { devicePixelRatio?: number }).devicePixelRatio ?? 1;const result = calculateTextWidth(mockSelf, mockAxis, values);@@ -72,7 +71,7 @@ describe('axis utils', () => {};const result = getExistingAxisSize({- uplotInstance: ({} as unknown) as uPlot,+ uplotInstance: {} as unknown as uPlot,axis,axisIdx: 0,cycleNum: 0,@@ -84,7 +83,7 @@ describe('axis utils', () => {it('invokes size function when _size is not set', () => {const sizeFn = jest.fn(() => 24);const axis: Axis = { size: sizeFn };- const instance = ({} as unknown) as uPlot;+ const instance = {} as unknown as uPlot;const result = getExistingAxisSize({uplotInstance: instance,@@ -101,7 +100,7 @@ describe('axis utils', () => {it('returns numeric size or 0 when neither _size nor size are provided', () => {const axisWithSize: Axis = { size: 16 };const axisWithoutSize: Axis = {};- const instance = ({} as unknown) as uPlot;+ const instance = {} as unknown as uPlot;expect(getExistingAxisSize({@@ -134,13 +133,13 @@ describe('axis utils', () => {};const measureText = jest.fn(() => ({ width: 60 }));- const self = ({+ const self = {axes: [axis],ctx: {font: '',measureText,},- } as unknown) as uPlot;+ } as unknown as uPlot;if (typeof sizeCalculator === 'number') {throw new Error('Size calculator is a number');@@ -158,21 +157,20 @@ describe('axis utils', () => {const axis: Axis = {ticks: { size: 12 },- font: (['12px sans-serif'] as unknown) as string,+ font: ['12px sans-serif'] as unknown as string,};const measureText = jest.fn(() => ({ width: 50 }));- const self = ({+ const self = {axes: [axis],ctx: {font: '',measureText,},- } as unknown) as uPlot;+ } as unknown as uPlot;const dpr =- ((global as unknown) as { devicePixelRatio?: number }).devicePixelRatio ??- 1;+ (global as unknown as { devicePixelRatio?: number }).devicePixelRatio ?? 1;const expected = Math.ceil(12 + gap + 50 / dpr);if (typeof sizeCalculator === 'number') {@@ -189,21 +187,20 @@ describe('axis utils', () => {const sizeCalculator = buildYAxisSizeCalculator(gap);const axis: Axis = {- font: (['12px sans-serif'] as unknown) as string,+ font: ['12px sans-serif'] as unknown as string,};const measureText = jest.fn(() => ({ width: 40 }));- const self = ({+ const self = {axes: [axis],ctx: {font: '',measureText,},- } as unknown) as uPlot;+ } as unknown as uPlot;const dpr =- ((global as unknown) as { devicePixelRatio?: number }).devicePixelRatio ??- 1;+ (global as unknown as { devicePixelRatio?: number }).devicePixelRatio ?? 1;const expected = Math.ceil(gap + 40 / dpr);if (typeof sizeCalculator === 'number') {diff --git a/frontend/src/lib/uPlotV2/utils/__tests__/index.test.ts b/frontend/src/lib/uPlotV2/utils/__tests__/index.test.tsindex ce7c477aee..2f1778681a 100644--- a/frontend/src/lib/uPlotV2/utils/__tests__/index.test.ts+++ b/frontend/src/lib/uPlotV2/utils/__tests__/index.test.ts@@ -9,10 +9,10 @@ describe('calculateWidthBasedOnStepInterval', () => {.mockReturnValueOnce(100) // startPx for start.mockReturnValueOnce(250); // endPx for start + stepInterval- const uPlotInstance = ({+ const uPlotInstance = {scales: { x: { min: 1000 } },valToPos,- } as unknown) as uPlot;+ } as unknown as uPlot;const result = calculateWidthBasedOnStepInterval({uPlotInstance,@@ -27,10 +27,10 @@ describe('calculateWidthBasedOnStepInterval', () => {it('returns absolute pixel width when endPx is less than startPx', () => {const valToPos = jest.fn().mockReturnValueOnce(250).mockReturnValueOnce(100);- const uPlotInstance = ({+ const uPlotInstance = {scales: { x: { min: 0 } },valToPos,- } as unknown) as uPlot;+ } as unknown as uPlot;const result = calculateWidthBasedOnStepInterval({uPlotInstance,@@ -41,10 +41,10 @@ describe('calculateWidthBasedOnStepInterval', () => {});it('returns 0 when xScale is undefined', () => {- const uPlotInstance = ({+ const uPlotInstance = {scales: { x: undefined },valToPos: jest.fn(),- } as unknown) as uPlot;+ } as unknown as uPlot;const result = calculateWidthBasedOnStepInterval({uPlotInstance,@@ -55,10 +55,10 @@ describe('calculateWidthBasedOnStepInterval', () => {});it('returns 0 when xScale.min is not a number', () => {- const uPlotInstance = ({+ const uPlotInstance = {scales: { x: { min: undefined } },valToPos: jest.fn(),- } as unknown) as uPlot;+ } as unknown as uPlot;const result = calculateWidthBasedOnStepInterval({uPlotInstance,diff --git a/frontend/src/lib/uPlotV2/utils/__tests__/scale.test.ts b/frontend/src/lib/uPlotV2/utils/__tests__/scale.test.tsindex 7225445013..b493be1f92 100644--- a/frontend/src/lib/uPlotV2/utils/__tests__/scale.test.ts+++ b/frontend/src/lib/uPlotV2/utils/__tests__/scale.test.ts@@ -77,12 +77,8 @@ describe('scale utils', () => {describe('getRangeConfig', () => {it('computes range config and fixed range flags correctly', () => {- const {- rangeConfig,- hardMinOnly,- hardMaxOnly,- hasFixedRange,- } = scaleUtils.getRangeConfig(0, 100, null, null, 0.1, 0.2);+ const { rangeConfig, hardMinOnly, hardMaxOnly, hasFixedRange } =+ scaleUtils.getRangeConfig(0, 100, null, null, 0.1, 0.2);expect(rangeConfig.min).toEqual({pad: 0.1,@@ -115,19 +111,19 @@ describe('scale utils', () => {const rangeFn = scaleUtils.createRangeFunction(params);- const u = ({+ const u = {scales: {y: {distr: 1,log: 10,},},- } as unknown) as uPlot;+ } as unknown as uPlot;const result = rangeFn(u,- (null as unknown) as number,- (null as unknown) as number,+ null as unknown as number,+ null as unknown as number,'y',);@@ -148,14 +144,14 @@ describe('scale utils', () => {// Use an undefined distr so the range function skips calling uPlot.rangeNum// and we can focus on the behavior of applyHardLimits.- const u = ({+ const u = {scales: {y: {distr: undefined,log: 10,},},- } as unknown) as uPlot;+ } as unknown as uPlot;const result = rangeFn(u, 10, 20, 'y');diff --git a/frontend/src/lib/uPlotV2/utils/__tests__/seriesPointsFilter.test.ts b/frontend/src/lib/uPlotV2/utils/__tests__/seriesPointsFilter.test.tsindex 04d98ba231..aaa4b7de6a 100644--- a/frontend/src/lib/uPlotV2/utils/__tests__/seriesPointsFilter.test.ts+++ b/frontend/src/lib/uPlotV2/utils/__tests__/seriesPointsFilter.test.ts@@ -23,14 +23,14 @@ function makeUPlot({valToPosFn?: (val: number) => number;posToIdxFn?: (pos: number) => number;}): uPlot {- return ({+ return {data: [xData, yData],series: [{}, { idxs: idxs ?? [0, yData.length - 1] }],valToPos: jest.fn((val: number) => (valToPosFn ? valToPosFn(val) : val)),posToIdx: jest.fn((pos: number) =>posToIdxFn ? posToIdxFn(pos) : Math.round(pos),),- } as unknown) as uPlot;+ } as unknown as uPlot;}// ---------------------------------------------------------------------------@@ -143,7 +143,7 @@ describe('isolatedPointFilter', () => {});it('returns null when series idxs is undefined', () => {- const u = ({+ const u = {data: [[0, 1],[1, null],@@ -151,7 +151,7 @@ describe('isolatedPointFilter', () => {series: [{}, { idxs: undefined }],valToPos: jest.fn(() => 0),posToIdx: jest.fn(() => 0),- } as unknown) as uPlot;+ } as unknown as uPlot;expect(isolatedPointFilter(u, 1, false, [[0, 10]])).toBeNull();});diff --git a/frontend/src/lib/uPlotV2/utils/dataUtils.ts b/frontend/src/lib/uPlotV2/utils/dataUtils.tsindex 74dc6d2d26..f56c155a47 100644--- a/frontend/src/lib/uPlotV2/utils/dataUtils.ts+++ b/frontend/src/lib/uPlotV2/utils/dataUtils.ts@@ -139,9 +139,9 @@ export function insertLargeGapNullsIntoAlignedData(seriesIndex < seriesValues.length;seriesIndex += 1) {- newSeries[seriesIndex][writeIndex] = (seriesValues[- seriesIndex- ] as SeriesArray)[i];+ newSeries[seriesIndex][writeIndex] = (+ seriesValues[seriesIndex] as SeriesArray+ )[i];}writeIndex += 1;diff --git a/frontend/src/lib/zoomOutUtils.ts b/frontend/src/lib/zoomOutUtils.tsindex 77da376c79..f72116575e 100644--- a/frontend/src/lib/zoomOutUtils.ts+++ b/frontend/src/lib/zoomOutUtils.ts@@ -130,7 +130,9 @@ export function getNextZoomOutRange(// Phase 2 only: use preset so GetMinMax produces "last X from now".// Phase 1: preset=null so the center-anchored range is preserved (GetMinMax would discard it).- const preset = isPhase1 ? null : PRESET_FOR_DURATION_MS[newDurationMs] ?? null;+ const preset = isPhase1+ ? null+ : (PRESET_FOR_DURATION_MS[newDurationMs] ?? null);return {range: [Math.round(newStartMs), Math.round(newEndMs)],diff --git a/frontend/src/mocks-server/utils.ts b/frontend/src/mocks-server/utils.tsindex 91d420d528..2c3c097ade 100644--- a/frontend/src/mocks-server/utils.ts+++ b/frontend/src/mocks-server/utils.ts@@ -1,23 +1,25 @@import { ResponseResolver, restContext, RestRequest } from 'msw';-export const createErrorResponse = (- status: number,- code: string,- message: string,-): ResponseResolver<RestRequest, typeof restContext> => (- _req,- res,- ctx,-): ReturnType<ResponseResolver<RestRequest, typeof restContext>> =>- res(- ctx.status(status),- ctx.json({- error: {- code,- message,- },- }),- );+export const createErrorResponse =+ (+ status: number,+ code: string,+ message: string,+ ): ResponseResolver<RestRequest, typeof restContext> =>+ (+ _req,+ res,+ ctx,+ ): ReturnType<ResponseResolver<RestRequest, typeof restContext>> =>+ res(+ ctx.status(status),+ ctx.json({+ error: {+ code,+ message,+ },+ }),+ );export const handleInternalServerError = createErrorResponse(500,diff --git a/frontend/src/modules/Usage/UsageExplorer.tsx b/frontend/src/modules/Usage/UsageExplorer.tsxindex 09f45a5307..c19539f373 100644--- a/frontend/src/modules/Usage/UsageExplorer.tsx+++ b/frontend/src/modules/Usage/UsageExplorer.tsx@@ -69,13 +69,8 @@ function _UsageExplorer(props: UsageExplorerProps): JSX.Element {AppState,GlobalReducer>((state) => state.globalTime);- const {- getServicesList,- getUsageData,- globalTime,- totalCount,- usageData,- } = props;+ const { getServicesList, getUsageData, globalTime, totalCount, usageData } =+ props;const { services } = useSelector<AppState, MetricReducer>((state) => state.metrics,);diff --git a/frontend/src/pages/AlertDetails/AlertDetails.tsx b/frontend/src/pages/AlertDetails/AlertDetails.tsxindex ce2cbb6f4a..084bb8df0b 100644--- a/frontend/src/pages/AlertDetails/AlertDetails.tsx+++ b/frontend/src/pages/AlertDetails/AlertDetails.tsx@@ -61,13 +61,8 @@ function AlertDetails(): JSX.Element {const { routes } = useRouteTabUtils();const params = useUrlQuery();- const {- isLoading,- isError,- ruleId,- isValidRuleId,- alertDetailsResponse,- } = useGetAlertRuleDetails();+ const { isLoading, isError, ruleId, isValidRuleId, alertDetailsResponse } =+ useGetAlertRuleDetails();const isTestAlert = useMemo(() => {return params.get(QueryParams.isTestAlert) === 'true';diff --git a/frontend/src/pages/AlertDetails/AlertHeader/ActionButtons/ActionButtons.tsx b/frontend/src/pages/AlertDetails/AlertHeader/ActionButtons/ActionButtons.tsxindex cf253b50c6..bd3e4dab22 100644--- a/frontend/src/pages/AlertDetails/AlertHeader/ActionButtons/ActionButtons.tsx+++ b/frontend/src/pages/AlertDetails/AlertHeader/ActionButtons/ActionButtons.tsx@@ -48,11 +48,11 @@ function AlertActionButtons({const { handleAlertStateToggle } = useAlertRuleStatusToggle({ ruleId });const { handleAlertDuplicate } = useAlertRuleDuplicate({- alertDetails: (alertDetails as unknown) as AlertDef,+ alertDetails: alertDetails as unknown as AlertDef,});const { handleAlertDelete } = useAlertRuleDelete({ ruleId });const { handleAlertUpdate, isLoading } = useAlertRuleUpdate({- alertDetails: (alertDetails as unknown) as AlertDef,+ alertDetails: alertDetails as unknown as AlertDef,setUpdatedName,intermediateName,});@@ -80,7 +80,7 @@ function AlertActionButtons({onClick: handleRename,style: finalMenuItemStyle,},- ]+ ]: []),{key: 'duplicate-rule',diff --git a/frontend/src/pages/AlertDetails/hooks.tsx b/frontend/src/pages/AlertDetails/hooks.tsxindex 577899f84d..1a6153e1f3 100644--- a/frontend/src/pages/AlertDetails/hooks.tsx+++ b/frontend/src/pages/AlertDetails/hooks.tsx@@ -204,28 +204,29 @@ type GetAlertRuleDetailsStatsProps = GetAlertRuleDetailsApiProps & {| undefined;};-export const useGetAlertRuleDetailsStats = (): GetAlertRuleDetailsStatsProps => {- const { ruleId, startTime, endTime } = useAlertHistoryQueryParams();-- const isValidRuleId = ruleId !== null && String(ruleId).length !== 0;-- const { isLoading, isRefetching, isError, data } = useQuery(- [REACT_QUERY_KEY.ALERT_RULE_STATS, ruleId, startTime, endTime],- {- queryFn: () =>- ruleStats({- id: ruleId || '',- start: startTime,- end: endTime,- }),- enabled: isValidRuleId && !!startTime && !!endTime,- refetchOnMount: false,- refetchOnWindowFocus: false,- },- );+export const useGetAlertRuleDetailsStats =+ (): GetAlertRuleDetailsStatsProps => {+ const { ruleId, startTime, endTime } = useAlertHistoryQueryParams();++ const isValidRuleId = ruleId !== null && String(ruleId).length !== 0;++ const { isLoading, isRefetching, isError, data } = useQuery(+ [REACT_QUERY_KEY.ALERT_RULE_STATS, ruleId, startTime, endTime],+ {+ queryFn: () =>+ ruleStats({+ id: ruleId || '',+ start: startTime,+ end: endTime,+ }),+ enabled: isValidRuleId && !!startTime && !!endTime,+ refetchOnMount: false,+ refetchOnWindowFocus: false,+ },+ );- return { isLoading, isRefetching, isError, data, isValidRuleId, ruleId };-};+ return { isLoading, isRefetching, isError, data, isValidRuleId, ruleId };+ };type GetAlertRuleDetailsTopContributorsProps = GetAlertRuleDetailsApiProps & {data:@@ -234,28 +235,29 @@ type GetAlertRuleDetailsTopContributorsProps = GetAlertRuleDetailsApiProps & {| undefined;};-export const useGetAlertRuleDetailsTopContributors = (): GetAlertRuleDetailsTopContributorsProps => {- const { ruleId, startTime, endTime } = useAlertHistoryQueryParams();-- const isValidRuleId = ruleId !== null && String(ruleId).length !== 0;-- const { isLoading, isRefetching, isError, data } = useQuery(- [REACT_QUERY_KEY.ALERT_RULE_TOP_CONTRIBUTORS, ruleId, startTime, endTime],- {- queryFn: () =>- topContributors({- id: ruleId || '',- start: startTime,- end: endTime,- }),- enabled: isValidRuleId,- refetchOnMount: false,- refetchOnWindowFocus: false,- },- );+export const useGetAlertRuleDetailsTopContributors =+ (): GetAlertRuleDetailsTopContributorsProps => {+ const { ruleId, startTime, endTime } = useAlertHistoryQueryParams();++ const isValidRuleId = ruleId !== null && String(ruleId).length !== 0;++ const { isLoading, isRefetching, isError, data } = useQuery(+ [REACT_QUERY_KEY.ALERT_RULE_TOP_CONTRIBUTORS, ruleId, startTime, endTime],+ {+ queryFn: () =>+ topContributors({+ id: ruleId || '',+ start: startTime,+ end: endTime,+ }),+ enabled: isValidRuleId,+ refetchOnMount: false,+ refetchOnWindowFocus: false,+ },+ );- return { isLoading, isRefetching, isError, data, isValidRuleId, ruleId };-};+ return { isLoading, isRefetching, isError, data, isValidRuleId, ruleId };+ };type GetAlertRuleDetailsTimelineTableProps = GetAlertRuleDetailsApiProps & {data:@@ -307,7 +309,7 @@ export const useGetAlertRuleDetailsTimelineTable = ({...(timelineFilter && timelineFilter !== TimelineFilter.ALL? {state: timelineFilter === TimelineFilter.FIRED ? 'firing' : 'normal',- }+ }: {}),}),enabled: isValidRuleId && hasStartAndEnd,@@ -342,32 +344,33 @@ export const useTimelineTable = ({const offset = params.get('offset') ?? '0';- const onChangeHandler: TableProps<AlertRuleTimelineTableResponse>['onChange'] = useCallback(- (- pagination: TablePaginationConfig,- filters: Record<string, FilterValue | null>,- sorter:- | SorterResult<AlertRuleTimelineTableResponse>[]- | SorterResult<AlertRuleTimelineTableResponse>,- ) => {- if (!Array.isArray(sorter)) {- const { pageSize = 0, current = 0 } = pagination;- const { order } = sorter;- const updatedOrder = order === 'ascend' ? 'asc' : 'desc';- const params = new URLSearchParams(window.location.search);-- safeNavigate(- `${pathname}?${createQueryParams({- ...Object.fromEntries(params),- order: updatedOrder,- offset: current * TIMELINE_TABLE_PAGE_SIZE - TIMELINE_TABLE_PAGE_SIZE,- pageSize,- })}`,- );- }- },- [pathname, safeNavigate],- );+ const onChangeHandler: TableProps<AlertRuleTimelineTableResponse>['onChange'] =+ useCallback(+ (+ pagination: TablePaginationConfig,+ filters: Record<string, FilterValue | null>,+ sorter:+ | SorterResult<AlertRuleTimelineTableResponse>[]+ | SorterResult<AlertRuleTimelineTableResponse>,+ ) => {+ if (!Array.isArray(sorter)) {+ const { pageSize = 0, current = 0 } = pagination;+ const { order } = sorter;+ const updatedOrder = order === 'ascend' ? 'asc' : 'desc';+ const params = new URLSearchParams(window.location.search);++ safeNavigate(+ `${pathname}?${createQueryParams({+ ...Object.fromEntries(params),+ order: updatedOrder,+ offset: current * TIMELINE_TABLE_PAGE_SIZE - TIMELINE_TABLE_PAGE_SIZE,+ pageSize,+ })}`,+ );+ }+ },+ [pathname, safeNavigate],+ );const offsetInt = parseInt(offset, 10);const pageSize = params.get('pageSize') ?? String(TIMELINE_TABLE_PAGE_SIZE);@@ -568,26 +571,27 @@ type GetAlertRuleDetailsTimelineGraphProps = GetAlertRuleDetailsApiProps & {| undefined;};-export const useGetAlertRuleDetailsTimelineGraphData = (): GetAlertRuleDetailsTimelineGraphProps => {- const { ruleId, startTime, endTime } = useAlertHistoryQueryParams();-- const isValidRuleId = ruleId !== null && String(ruleId).length !== 0;- const hasStartAndEnd = startTime !== null && endTime !== null;-- const { isLoading, isRefetching, isError, data } = useQuery(- [REACT_QUERY_KEY.ALERT_RULE_TIMELINE_GRAPH, ruleId, startTime, endTime],- {- queryFn: () =>- timelineGraph({- id: ruleId || '',- start: startTime,- end: endTime,- }),- enabled: isValidRuleId && hasStartAndEnd,- refetchOnMount: false,- refetchOnWindowFocus: false,- },- );+export const useGetAlertRuleDetailsTimelineGraphData =+ (): GetAlertRuleDetailsTimelineGraphProps => {+ const { ruleId, startTime, endTime } = useAlertHistoryQueryParams();++ const isValidRuleId = ruleId !== null && String(ruleId).length !== 0;+ const hasStartAndEnd = startTime !== null && endTime !== null;++ const { isLoading, isRefetching, isError, data } = useQuery(+ [REACT_QUERY_KEY.ALERT_RULE_TIMELINE_GRAPH, ruleId, startTime, endTime],+ {+ queryFn: () =>+ timelineGraph({+ id: ruleId || '',+ start: startTime,+ end: endTime,+ }),+ enabled: isValidRuleId && hasStartAndEnd,+ refetchOnMount: false,+ refetchOnWindowFocus: false,+ },+ );- return { isLoading, isRefetching, isError, data, isValidRuleId, ruleId };-};+ return { isLoading, isRefetching, isError, data, isValidRuleId, ruleId };+ };diff --git a/frontend/src/pages/AlertTypeSelection/__tests__/AlertTypeSelection.test.tsx b/frontend/src/pages/AlertTypeSelection/__tests__/AlertTypeSelection.test.tsxindex ea0cd98649..432596eb36 100644--- a/frontend/src/pages/AlertTypeSelection/__tests__/AlertTypeSelection.test.tsx+++ b/frontend/src/pages/AlertTypeSelection/__tests__/AlertTypeSelection.test.tsx@@ -23,11 +23,11 @@ describe('AlertTypeSelection', () => {beforeEach(() => {jest.clearAllMocks();useAppContextSpy.mockReturnValue(getAppContextMockState());- useUrlQuerySpy.mockReturnValue(({+ useUrlQuerySpy.mockReturnValue({set: mockSetUrlQuery,toString: mockToString,get: mockGetUrlQuery,- } as Partial<URLSearchParams>) as URLSearchParams);+ } as Partial<URLSearchParams> as URLSearchParams);useSafeNavigateSpy.mockReturnValue({safeNavigate: mockSafeNavigate,});@@ -158,7 +158,7 @@ describe('AlertTypeSelection', () => {});it('should navigate to classic create alerts page with correct params if showClassicCreateAlertsPage is true', () => {- useUrlQuerySpy.mockReturnValue(({+ useUrlQuerySpy.mockReturnValue({set: mockSetUrlQuery,toString: mockToString,get: mockGetUrlQuery.mockImplementation((key: string) => {@@ -167,7 +167,7 @@ describe('AlertTypeSelection', () => {}return null;}),- } as Partial<URLSearchParams>) as URLSearchParams);+ } as Partial<URLSearchParams> as URLSearchParams);render(<AlertTypeSelection />);fireEvent.click(screen.getByText('metric_based_alert'));diff --git a/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/CeleryOverviewDetails.styles.scss b/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/CeleryOverviewDetails.styles.scssindex abbec8d0ee..d9c4739cae 100644--- a/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/CeleryOverviewDetails.styles.scss+++ b/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/CeleryOverviewDetails.styles.scss@@ -9,7 +9,8 @@border-radius: 8px;border: 1px solid var(--l1-border) !important;background: var(--l1-background);- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),+ box-shadow:+ 0px 1px 3px 0px rgba(0, 0, 0, 0.1),0px 1px 2px -1px rgba(0, 0, 0, 0.1);.request-rate-card,diff --git a/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/OverviewRightPanelGraph.tsx b/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/OverviewRightPanelGraph.tsxindex 2a817c1485..da5b6d2794 100644--- a/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/OverviewRightPanelGraph.tsx+++ b/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/OverviewRightPanelGraph.tsx@@ -89,12 +89,9 @@ export default function OverviewRightPanelGraph({const onGraphClickHandler = useGraphClickHandler(handleSetTimeStamp);const handleGraphClick = useCallback(- (type: string): OnClickPluginOpts['onClick'] => (- xValue,- yValue,- mouseX,- mouseY,- ): Promise<void> => onGraphClickHandler(xValue, yValue, mouseX, mouseY, type),+ (type: string): OnClickPluginOpts['onClick'] =>+ (xValue, yValue, mouseX, mouseY): Promise<void> =>+ onGraphClickHandler(xValue, yValue, mouseX, mouseY, type),// eslint-disable-next-line react-hooks/exhaustive-deps[handleSetTimeStamp],);diff --git a/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/ValueInfo.styles.scss b/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/ValueInfo.styles.scssindex 90f232d539..6a9e57dabb 100644--- a/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/ValueInfo.styles.scss+++ b/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/ValueInfo.styles.scss@@ -2,7 +2,8 @@border-radius: 8px;border: 1px solid var(--border) !important;background: var(--l1-background);- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),+ box-shadow:+ 0px 1px 3px 0px rgba(0, 0, 0, 0.1),0px 1px 2px -1px rgba(0, 0, 0, 0.1);.metric-column {diff --git a/frontend/src/pages/DashboardPage/index.tsx b/frontend/src/pages/DashboardPage/index.tsxindex 9171d3cda3..65ed31ee28 100644--- a/frontend/src/pages/DashboardPage/index.tsx+++ b/frontend/src/pages/DashboardPage/index.tsx@@ -14,12 +14,10 @@ function DashboardPage(): JSX.Element {const [onModal, Content] = Modal.useModal();- const {- isLoading,- isError,- isFetching,- error,- } = useDashboardBootstrap(dashboardId, { confirm: onModal.confirm });+ const { isLoading, isError, isFetching, error } = useDashboardBootstrap(+ dashboardId,+ { confirm: onModal.confirm },+ );const dashboardTitle = useDashboardStore((s) => s.dashboardData?.data.title);diff --git a/frontend/src/pages/DashboardWidget/index.tsx b/frontend/src/pages/DashboardWidget/index.tsxindex 9654ec7eed..6298909280 100644--- a/frontend/src/pages/DashboardWidget/index.tsx+++ b/frontend/src/pages/DashboardWidget/index.tsx@@ -66,9 +66,8 @@ function DashboardWidgetInternal({undefined,);- const { transformDashboardVariables } = useTransformDashboardVariables(- dashboardId,- );+ const { transformDashboardVariables } =+ useTransformDashboardVariables(dashboardId);const {isFetching: isFetchingDashboardResponse,diff --git a/frontend/src/pages/GettingStarted/renderConfig.tsx b/frontend/src/pages/GettingStarted/renderConfig.tsxindex 192c1e3983..8abf4ef96c 100644--- a/frontend/src/pages/GettingStarted/renderConfig.tsx+++ b/frontend/src/pages/GettingStarted/renderConfig.tsx@@ -138,8 +138,7 @@ export const GetStartedContent = (): TGetStartedContentSection[] => {{title: 'Configure alert notification channels',icon: <SoundFilled style={{ fontSize: '3.5rem' }} />,- url:- 'https://signoz.io/docs/userguide/alerts-management/#setting-up-a-notification-channel',+ url: 'https://signoz.io/docs/userguide/alerts-management/#setting-up-a-notification-channel',},],},diff --git a/frontend/src/pages/Logs/index.tsx b/frontend/src/pages/Logs/index.tsxindex 6c16648ddc..c75437ad2f 100644--- a/frontend/src/pages/Logs/index.tsx+++ b/frontend/src/pages/Logs/index.tsx@@ -56,13 +56,15 @@ function OldLogsExplorer(): JSX.Element {[linesPerRow, handleLinesPerRowChange],);- const isFormatButtonVisible = useMemo(() => logsOptions.includes(viewMode), [- viewMode,- ]);+ const isFormatButtonVisible = useMemo(+ () => logsOptions.includes(viewMode),+ [viewMode],+ );- const selectedViewModeOption = useMemo(() => viewModeOption.value.toString(), [- viewModeOption.value,- ]);+ const selectedViewModeOption = useMemo(+ () => viewModeOption.value.toString(),+ [viewModeOption.value],+ );const onChangeVeiwMode = useCallback((key: string) => {diff --git a/frontend/src/pages/LogsExplorer/__tests__/LogsExplorer.test.tsx b/frontend/src/pages/LogsExplorer/__tests__/LogsExplorer.test.tsxindex 40f947d9f4..2538d5bb6f 100644--- a/frontend/src/pages/LogsExplorer/__tests__/LogsExplorer.test.tsx+++ b/frontend/src/pages/LogsExplorer/__tests__/LogsExplorer.test.tsx@@ -89,23 +89,18 @@ const logsQueryServerRequest = (): void =>describe('Logs Explorer Tests', () => {test('Logs Explorer default view test without data', async () => {- const {- getByRole,- queryByText,- getByTestId,- queryByTestId,- container,- } = render(- <MemoryRouter- initialEntries={[- '/logs-explorer/?panelType=list&selectedExplorerView=list',- ]}- >- <PreferenceContextProvider>- <LogsExplorer />- </PreferenceContextProvider>- </MemoryRouter>,- );+ const { getByRole, queryByText, getByTestId, queryByTestId, container } =+ render(+ <MemoryRouter+ initialEntries={[+ '/logs-explorer/?panelType=list&selectedExplorerView=list',+ ]}+ >+ <PreferenceContextProvider>+ <LogsExplorer />+ </PreferenceContextProvider>+ </MemoryRouter>,+ );// by default is hidden, toggle the chart and check it's visibilityconst histogramToggle = getByRole('switch');diff --git a/frontend/src/pages/LogsExplorer/index.tsx b/frontend/src/pages/LogsExplorer/index.tsxindex 49a25b06d8..9bf139acbe 100644--- a/frontend/src/pages/LogsExplorer/index.tsx+++ b/frontend/src/pages/LogsExplorer/index.tsx@@ -127,9 +127,8 @@ function LogsExplorer(): JSX.Element {setShowFilters((prev) => !prev);};- const {- redirectWithQuery: redirectWithOptionsData,- } = useUrlQueryData<OptionsQuery>(URL_OPTIONS, defaultOptionsQuery);+ const { redirectWithQuery: redirectWithOptionsData } =+ useUrlQueryData<OptionsQuery>(URL_OPTIONS, defaultOptionsQuery);// Get and parse stored columns from localStorageconst logListOptionsFromLocalStorage = useMemo(() => {diff --git a/frontend/src/pages/MessagingQueues/MQDetailPage/MQDetailPage.tsx b/frontend/src/pages/MessagingQueues/MQDetailPage/MQDetailPage.tsxindex f99e50b765..5ab38b7cc3 100644--- a/frontend/src/pages/MessagingQueues/MQDetailPage/MQDetailPage.tsx+++ b/frontend/src/pages/MessagingQueues/MQDetailPage/MQDetailPage.tsx@@ -25,17 +25,13 @@ import '../MessagingQueues.styles.scss';function MQDetailPage(): JSX.Element {const history = useHistory();- const [- selectedView,- setSelectedView,- ] = useState<MessagingQueuesViewTypeOptions>(- MessagingQueuesViewType.consumerLag.value,- );+ const [selectedView, setSelectedView] =+ useState<MessagingQueuesViewTypeOptions>(+ MessagingQueuesViewType.consumerLag.value,+ );- const [- producerLatencyOption,- setproducerLatencyOption,- ] = useState<ProducerLatencyOptions>(ProducerLatencyOptions.Producers);+ const [producerLatencyOption, setproducerLatencyOption] =+ useState<ProducerLatencyOptions>(ProducerLatencyOptions.Producers);const mqServiceView = useUrlQuery().get(QueryParams.mqServiceView,diff --git a/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/DropRateView.tsx b/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/DropRateView.tsxindex f5e4910836..bab5f8e863 100644--- a/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/DropRateView.tsx+++ b/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/DropRateView.tsx@@ -184,9 +184,10 @@ function DropRateView(): JSX.Element {[tableData],);- const evaluationTime = useMemo(() => convertToMilliseconds(interval), [- interval,- ]);+ const evaluationTime = useMemo(+ () => convertToMilliseconds(interval),+ [interval],+ );const tableApiPayload: MessagingQueueServicePayload = useMemo(() => ({start: minTime,diff --git a/frontend/src/pages/MessagingQueues/MQDetails/MQDetails.tsx b/frontend/src/pages/MessagingQueues/MQDetails/MQDetails.tsxindex 8e1b6a5a2f..c5ef3efb5f 100644--- a/frontend/src/pages/MessagingQueues/MQDetails/MQDetails.tsx+++ b/frontend/src/pages/MessagingQueues/MQDetails/MQDetails.tsx@@ -154,9 +154,10 @@ function MessagingQueuesDetails({const configDetailQueryData: {[key: string]: string;- } = useMemo(() => (configDetails ? JSON.parse(configDetails) : {}), [- configDetails,- ]);+ } = useMemo(+ () => (configDetails ? JSON.parse(configDetails) : {}),+ [configDetails],+ );const { maxTime, minTime } = useSelector<AppState, GlobalReducer>((state) => state.globalTime,diff --git a/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.styles.scss b/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.styles.scssindex 5b16c65a45..5f39d1b379 100644--- a/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.styles.scss+++ b/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.styles.scss@@ -72,7 +72,9 @@cursor: pointer;background-color: var(--l1-border) !important;color: var(--l2-foreground);- transition: background-color 0.3s ease, color 0.3s ease;+ transition:+ background-color 0.3s ease,+ color 0.3s ease;}}}diff --git a/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.tsx b/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.tsxindex eb94ebffcb..4d2d15809d 100644--- a/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.tsx+++ b/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.tsx@@ -52,7 +52,7 @@ export function getColumns(? [...(data?.result?.[0]?.table?.columns || []),{ name: 'byte_rate', queryName: 'byte_rate' },- ]+ ]: data?.result?.[0]?.table?.columns;const columns: {@@ -93,7 +93,7 @@ export function getColumns() : (<Typography.Text>{text}</Typography.Text>),- }),+ }),}));return columns;@@ -168,9 +168,10 @@ function MessagingQueuesTable({const configDetailQueryData: {[key: string]: string;- } = useMemo(() => (configDetails ? JSON.parse(configDetails) : {}), [- configDetails,- ]);+ } = useMemo(+ () => (configDetails ? JSON.parse(configDetails) : {}),+ [configDetails],+ );const paginationConfig = useMemo(() =>@@ -197,22 +198,24 @@ function MessagingQueuesTable({[type, selectedView, tableApiPayload],);- const { mutate: getViewDetails, isLoading, error, isError } = useMutation(- tableApi,- {- onSuccess: (data) => {- if (data.payload) {- setColumns(getColumns(data?.payload, history, isProducerOverview));- setTableData(- isProducerOverview- ? getTableDataForProducerLatencyOverview(data?.payload)- : getTableData(data?.payload),- );- }- },- onError: handleConsumerDetailsOnError,+ const {+ mutate: getViewDetails,+ isLoading,+ error,+ isError,+ } = useMutation(tableApi, {+ onSuccess: (data) => {+ if (data.payload) {+ setColumns(getColumns(data?.payload, history, isProducerOverview));+ setTableData(+ isProducerOverview+ ? getTableDataForProducerLatencyOverview(data?.payload)+ : getTableData(data?.payload),+ );+ }},- );+ onError: handleConsumerDetailsOnError,+ });useEffect(() => {@@ -263,10 +266,10 @@ function MessagingQueuesTable({selectedView === MessagingQueuesViewType.consumerLag.value? `${timelineQueryData?.group || ''} ${timelineQueryData?.topic || ''} ${timelineQueryData?.partition || ''- }`+ }`: `${configDetailQueryData?.service_name || ''} ${configDetailQueryData?.topic || ''- } ${configDetailQueryData?.partition || ''}`;+ } ${configDetailQueryData?.partition || ''}`;const prevTableDataRef = useRef<string>();@@ -343,7 +346,7 @@ function MessagingQueuesTable({type !== 'Detail'? {onClick: (): void => onRowClick(record),- }+ }: {}}rowClassName={(record): any =>diff --git a/frontend/src/pages/MessagingQueues/MessagingQueuesUtils.ts b/frontend/src/pages/MessagingQueues/MessagingQueuesUtils.tsindex 0012842887..19f88708cc 100644--- a/frontend/src/pages/MessagingQueues/MessagingQueuesUtils.ts+++ b/frontend/src/pages/MessagingQueues/MessagingQueuesUtils.ts@@ -318,13 +318,8 @@ interface MetaDataAndAPIPerView {export const getMetaDataAndAPIPerView = (metaDataProps: MetaDataAndAPIPerView,): Record<string, MetaDataAndAPI> => {- const {- detailType,- minTime,- maxTime,- selectedTimelineQuery,- configDetails,- } = metaDataProps;+ const { detailType, minTime, maxTime, selectedTimelineQuery, configDetails } =+ metaDataProps;return {[MessagingQueuesViewType.consumerLag.value]: {tableApiPayload: {diff --git a/frontend/src/pages/MetricsApplication/utils.ts b/frontend/src/pages/MetricsApplication/utils.tsindex 7eb044cc00..db7cb72c99 100644--- a/frontend/src/pages/MetricsApplication/utils.ts+++ b/frontend/src/pages/MetricsApplication/utils.ts@@ -19,30 +19,32 @@ export const getMetricsApplicationKey = (return MetricsApplicationTab.OVER_METRICS;};-export const onSaveApDexSettings = ({- thresholdValue,- refetchGetApDexSetting,- mutateAsync,- notifications,- handlePopOverClose,- servicename,-}: OnSaveApDexSettingsProps) => async (): Promise<void> => {- if (!refetchGetApDexSetting) {- return;- }+export const onSaveApDexSettings =+ ({+ thresholdValue,+ refetchGetApDexSetting,+ mutateAsync,+ notifications,+ handlePopOverClose,+ servicename,+ }: OnSaveApDexSettingsProps) =>+ async (): Promise<void> => {+ if (!refetchGetApDexSetting) {+ return;+ }- try {- await mutateAsync({- servicename,- threshold: thresholdValue,- excludeStatusCode: '',- });- await refetchGetApDexSetting();- } catch (err) {- notifications.error({- message: axios.isAxiosError(err) ? err.message : SOMETHING_WENT_WRONG,- });- } finally {- handlePopOverClose();- }-};+ try {+ await mutateAsync({+ servicename,+ threshold: thresholdValue,+ excludeStatusCode: '',+ });+ await refetchGetApDexSetting();+ } catch (err) {+ notifications.error({+ message: axios.isAxiosError(err) ? err.message : SOMETHING_WENT_WRONG,+ });+ } finally {+ handlePopOverClose();+ }+ };diff --git a/frontend/src/pages/SaveView/SaveView.styles.scss b/frontend/src/pages/SaveView/SaveView.styles.scssindex 332f4ce878..ec317562e0 100644--- a/frontend/src/pages/SaveView/SaveView.styles.scss+++ b/frontend/src/pages/SaveView/SaveView.styles.scss@@ -138,7 +138,11 @@> a {color: var(--l2-foreground);font-variant-numeric: lining-nums tabular-nums slashed-zero;- font-feature-settings: 'dlig' on, 'salt' on, 'case' on, 'cpsp' on;+ font-feature-settings:+ 'dlig' on,+ 'salt' on,+ 'case' on,+ 'cpsp' on;font-size: var(--font-size-sm);font-style: normal;font-weight: var(--font-weight-normal);diff --git a/frontend/src/pages/SaveView/constants.ts b/frontend/src/pages/SaveView/constants.tsindex 7afcfbff49..5691f2403c 100644--- a/frontend/src/pages/SaveView/constants.ts+++ b/frontend/src/pages/SaveView/constants.ts@@ -1,7 +1,7 @@import ROUTES from 'constants/routes';export const SOURCEPAGE_VS_ROUTES: {- [key: string]: Partial<typeof ROUTES[keyof typeof ROUTES]>;+ [key: string]: Partial<(typeof ROUTES)[keyof typeof ROUTES]>;} = {logs: ROUTES.LOGS_EXPLORER,traces: ROUTES.TRACES_EXPLORER,diff --git a/frontend/src/pages/SaveView/index.tsx b/frontend/src/pages/SaveView/index.tsxindex f05161d16a..3e14bf73af 100644--- a/frontend/src/pages/SaveView/index.tsx+++ b/frontend/src/pages/SaveView/index.tsx@@ -57,10 +57,8 @@ function SaveView(): JSX.Element {const [color, setColor] = useState(Color.BG_SIENNA_500);const [isEditModalOpen, setIsEditModalOpen] = useState(false);const [activeViewName, setActiveViewName] = useState<string>('');- const [- activeCompositeQuery,- setActiveCompositeQuery,- ] = useState<ICompositeMetricQuery | null>(null);+ const [activeCompositeQuery, setActiveCompositeQuery] =+ useState<ICompositeMetricQuery | null>(null);const [searchValue, setSearchValue] = useState<string>('');const [dataSource, setDataSource] = useState<ViewProps[]>([]);const { t } = useTranslation(['explorer']);@@ -118,10 +116,8 @@ function SaveView(): JSX.Element {setSearchValue('');};- const {- mutateAsync: deleteViewAsync,- isLoading: isDeleteLoading,- } = useDeleteView(activeViewKey);+ const { mutateAsync: deleteViewAsync, isLoading: isDeleteLoading } =+ useDeleteView(activeViewKey);const onDeleteHandler = (): void => {deleteViewHandler({@@ -134,16 +130,14 @@ function SaveView(): JSX.Element {});};- const {- mutateAsync: updateViewAsync,- isLoading: isViewUpdating,- } = useUpdateView({- compositeQuery: activeCompositeQuery || ({} as ICompositeMetricQuery),- viewKey: activeViewKey,- extraData: JSON.stringify({ color }),- sourcePage: sourcepage || DataSource.LOGS,- viewName: newViewName,- });+ const { mutateAsync: updateViewAsync, isLoading: isViewUpdating } =+ useUpdateView({+ compositeQuery: activeCompositeQuery || ({} as ICompositeMetricQuery),+ viewKey: activeViewKey,+ extraData: JSON.stringify({ color }),+ sourcePage: sourcepage || DataSource.LOGS,+ viewName: newViewName,+ });const logEventCalledRef = useRef(false);useEffect(() => {diff --git a/frontend/src/pages/Settings/Settings.tsx b/frontend/src/pages/Settings/Settings.tsxindex 39d79b64a3..6f85a8aa20 100644--- a/frontend/src/pages/Settings/Settings.tsx+++ b/frontend/src/pages/Settings/Settings.tsx@@ -26,12 +26,8 @@ import './Settings.styles.scss';function SettingsPage(): JSX.Element {const { pathname, search } = useLocation();- const {- user,- featureFlags,- trialInfo,- isFetchingActiveLicense,- } = useAppContext();+ const { user, featureFlags, trialInfo, isFetchingActiveLicense } =+ useAppContext();const { isCloudUser, isEnterpriseSelfHostedUser } = useGetTenantLicense();const [settingsMenuItems, setSettingsMenuItems] = useState<SidebarItem[]>(@@ -286,7 +282,7 @@ function SettingsPage(): JSX.Element {menuLabel: item.label,menuRoute: item.key,});- handleMenuItemClick((event as unknown) as MouseEvent, item);+ handleMenuItemClick(event as unknown as MouseEvent, item);}}dataTestId={item.itemKey}/>diff --git a/frontend/src/pages/SignUp/SignUp.tsx b/frontend/src/pages/SignUp/SignUp.tsxindex 7c0754eb36..341b83e2a0 100644--- a/frontend/src/pages/SignUp/SignUp.tsx+++ b/frontend/src/pages/SignUp/SignUp.tsx@@ -29,9 +29,8 @@ type FormValues = {function SignUp(): JSX.Element {const [loading, setLoading] = useState(false);- const [confirmPasswordError, setConfirmPasswordError] = useState<boolean>(- false,- );+ const [confirmPasswordError, setConfirmPasswordError] =+ useState<boolean>(false);const [formError, setFormError] = useState<APIError | null>();const { notifications } = useNotifications();diff --git a/frontend/src/pages/Support/Support.tsx b/frontend/src/pages/Support/Support.tsxindex 80d1c7c4a2..94efe55a36 100644--- a/frontend/src/pages/Support/Support.tsx+++ b/frontend/src/pages/Support/Support.tsx@@ -88,9 +88,8 @@ export default function Support(): JSX.Element {const history = useHistory();const { notifications } = useNotifications();const { trialInfo, featureFlags } = useAppContext();- const [isAddCreditCardModalOpen, setIsAddCreditCardModalOpen] = useState(- false,- );+ const [isAddCreditCardModalOpen, setIsAddCreditCardModalOpen] =+ useState(false);const { pathname } = useLocation();const handleChannelWithRedirects = (url: string): void => {diff --git a/frontend/src/pages/TraceDetailV2/TraceDetailV2.tsx b/frontend/src/pages/TraceDetailV2/TraceDetailV2.tsxindex b2c6031e5f..1ed8acb74d 100644--- a/frontend/src/pages/TraceDetailV2/TraceDetailV2.tsx+++ b/frontend/src/pages/TraceDetailV2/TraceDetailV2.tsx@@ -32,10 +32,8 @@ function TraceDetailsV2(): JSX.Element {isUncollapsed: urlQuery.get('spanId') !== '',}),);- const [- traceFlamegraphStatsWidth,- setTraceFlamegraphStatsWidth,- ] = useState<number>(450);+ const [traceFlamegraphStatsWidth, setTraceFlamegraphStatsWidth] =+ useState<number>(450);const [isSpanDetailsDocked, setIsSpanDetailsDocked] = useState<boolean>(false);const [selectedSpan, setSelectedSpan] = useState<Span>();diff --git a/frontend/src/pages/TracesExplorer/Filter/Filter.tsx b/frontend/src/pages/TracesExplorer/Filter/Filter.tsxindex 29d63a030c..ff09fdd1a6 100644--- a/frontend/src/pages/TracesExplorer/Filter/Filter.tsx+++ b/frontend/src/pages/TracesExplorer/Filter/Filter.tsx@@ -39,12 +39,13 @@ interface FilterProps {export function Filter(props: FilterProps): JSX.Element {const { setOpen } = props;- const [selectedFilters, setSelectedFilters] = useState<- Record<- AllTraceFilterKeys,- { values: string[] | string; keys: BaseAutocompleteData }- >- >();+ const [selectedFilters, setSelectedFilters] =+ useState<+ Record<+ AllTraceFilterKeys,+ { values: string[] | string; keys: BaseAutocompleteData }+ >+ >();const { currentQuery, redirectWithQueryBuilderData } = useQueryBuilder();const compositeQuery = useGetCompositeQueryParam();diff --git a/frontend/src/pages/TracesExplorer/Filter/Section.tsx b/frontend/src/pages/TracesExplorer/Filter/Section.tsxindex 96a309eaf5..28c07627a4 100644--- a/frontend/src/pages/TracesExplorer/Filter/Section.tsx+++ b/frontend/src/pages/TracesExplorer/Filter/Section.tsx@@ -82,7 +82,7 @@ export function Section(props: SectionProps): JSX.Element {/>),label: AllTraceFilterKeyValue[panelName],- }+ }: {key: panelName,children: (@@ -94,7 +94,7 @@ export function Section(props: SectionProps): JSX.Element {/>),label: AllTraceFilterKeyValue[panelName],- },+ },]}/><Buttondiff --git a/frontend/src/pages/TracesExplorer/Filter/SectionContent.tsx b/frontend/src/pages/TracesExplorer/Filter/SectionContent.tsxindex 64f626c30a..ec56017026 100644--- a/frontend/src/pages/TracesExplorer/Filter/SectionContent.tsx+++ b/frontend/src/pages/TracesExplorer/Filter/SectionContent.tsx@@ -53,7 +53,11 @@ export function SectionBody(props: SectionBodyProps): JSX.Element {setSearchText(searchText as string);}, 500);- const { isFetching: fetching, keys, results: res } = useGetAggregateValues({+ const {+ isFetching: fetching,+ keys,+ results: res,+ } = useGetAggregateValues({value: type,searchText,});diff --git a/frontend/src/pages/TracesExplorer/Filter/filterUtils.ts b/frontend/src/pages/TracesExplorer/Filter/filterUtils.tsindex bc56b32a00..f94cfdd57a 100644--- a/frontend/src/pages/TracesExplorer/Filter/filterUtils.ts+++ b/frontend/src/pages/TracesExplorer/Filter/filterUtils.ts@@ -39,7 +39,8 @@ export const AllTraceFilterKeyValue: Record<string, string> = {export type AllTraceFilterKeys = keyof typeof AllTraceFilterKeyValue;// Type for the values of AllTraceFilterKeyValue-export type AllTraceFilterValues = typeof AllTraceFilterKeyValue[AllTraceFilterKeys];+export type AllTraceFilterValues =+ (typeof AllTraceFilterKeyValue)[AllTraceFilterKeys];export const AllTraceFilterOptions = Object.keys(AllTraceFilterKeyValue,@@ -90,9 +91,9 @@ export const addFilter = (// If previous filters are undefined, initialize themif (!prevFilters) {- return ({+ return {[filterType]: { values: isDuration ? value : valueArray, keys },- } as unknown) as FilterType;+ } as unknown as FilterType;}// If the filter type doesn't exist, initialize it@@ -181,101 +182,99 @@ export const removeAllFilters = (? (remainingFilters as Record<AllTraceFilterKeys,{ values: string[]; keys: BaseAutocompleteData }- >)+ >): undefined;});};-export const traceFilterKeys: Record<- AllTraceFilterKeys,- BaseAutocompleteData-> = {- durationNano: {- key: 'durationNano',- dataType: DataTypes.Float64,- type: 'tag',- id: 'durationNano--float64--tag--true',- },- hasError: {- key: 'hasError',- dataType: DataTypes.bool,- type: 'tag',- id: 'hasError--bool--tag--true',- },- serviceName: {- key: 'serviceName',- dataType: DataTypes.String,- type: 'tag',- id: 'serviceName--string--tag--true',- },-- 'deployment.environment': {- key: 'deployment.environment',- dataType: DataTypes.String,- type: 'resource',- id: 'deployment.environment--string--resource--false',- },- name: {- key: 'name',- dataType: DataTypes.String,- type: 'tag',- id: 'name--string--tag--true',- },- rpcMethod: {- key: 'rpcMethod',- dataType: DataTypes.String,- type: 'tag',- id: 'rpcMethod--string--tag--true',- },- responseStatusCode: {- key: 'responseStatusCode',- dataType: DataTypes.String,- type: 'tag',- id: 'responseStatusCode--string--tag--true',- },- httpHost: {- key: 'httpHost',- dataType: DataTypes.String,- type: 'tag',- id: 'httpHost--string--tag--true',- },- httpMethod: {- key: 'httpMethod',- dataType: DataTypes.String,- type: 'tag',- id: 'httpMethod--string--tag--true',- },- httpRoute: {- key: 'httpRoute',- dataType: DataTypes.String,- type: 'tag',- id: 'httpRoute--string--tag--true',- },- httpUrl: {- key: 'httpUrl',- dataType: DataTypes.String,- type: 'tag',- id: 'httpUrl--string--tag--true',- },- traceID: {- key: 'traceID',- dataType: DataTypes.String,- type: 'tag',- id: 'traceID--string--tag--true',- },- durationNanoMin: {- key: 'durationNanoMin',- dataType: DataTypes.Float64,- type: 'tag',- id: 'durationNanoMin--float64--tag--true',- },- durationNanoMax: {- key: 'durationNanoMax',- dataType: DataTypes.Float64,- type: 'tag',- id: 'durationNanoMax--float64--tag--true',- },-} as const;+export const traceFilterKeys: Record<AllTraceFilterKeys, BaseAutocompleteData> =+ {+ durationNano: {+ key: 'durationNano',+ dataType: DataTypes.Float64,+ type: 'tag',+ id: 'durationNano--float64--tag--true',+ },+ hasError: {+ key: 'hasError',+ dataType: DataTypes.bool,+ type: 'tag',+ id: 'hasError--bool--tag--true',+ },+ serviceName: {+ key: 'serviceName',+ dataType: DataTypes.String,+ type: 'tag',+ id: 'serviceName--string--tag--true',+ },++ 'deployment.environment': {+ key: 'deployment.environment',+ dataType: DataTypes.String,+ type: 'resource',+ id: 'deployment.environment--string--resource--false',+ },+ name: {+ key: 'name',+ dataType: DataTypes.String,+ type: 'tag',+ id: 'name--string--tag--true',+ },+ rpcMethod: {+ key: 'rpcMethod',+ dataType: DataTypes.String,+ type: 'tag',+ id: 'rpcMethod--string--tag--true',+ },+ responseStatusCode: {+ key: 'responseStatusCode',+ dataType: DataTypes.String,+ type: 'tag',+ id: 'responseStatusCode--string--tag--true',+ },+ httpHost: {+ key: 'httpHost',+ dataType: DataTypes.String,+ type: 'tag',+ id: 'httpHost--string--tag--true',+ },+ httpMethod: {+ key: 'httpMethod',+ dataType: DataTypes.String,+ type: 'tag',+ id: 'httpMethod--string--tag--true',+ },+ httpRoute: {+ key: 'httpRoute',+ dataType: DataTypes.String,+ type: 'tag',+ id: 'httpRoute--string--tag--true',+ },+ httpUrl: {+ key: 'httpUrl',+ dataType: DataTypes.String,+ type: 'tag',+ id: 'httpUrl--string--tag--true',+ },+ traceID: {+ key: 'traceID',+ dataType: DataTypes.String,+ type: 'tag',+ id: 'traceID--string--tag--true',+ },+ durationNanoMin: {+ key: 'durationNanoMin',+ dataType: DataTypes.Float64,+ type: 'tag',+ id: 'durationNanoMin--float64--tag--true',+ },+ durationNanoMax: {+ key: 'durationNanoMax',+ dataType: DataTypes.Float64,+ type: 'tag',+ id: 'durationNanoMax--float64--tag--true',+ },+ } as const;interface AggregateValuesProps {value: AllTraceFilterKeys;diff --git a/frontend/src/pages/TracesExplorer/TimeSeriesView/index.tsx b/frontend/src/pages/TracesExplorer/TimeSeriesView/index.tsxindex 917ef4e678..e0cce11d09 100644--- a/frontend/src/pages/TracesExplorer/TimeSeriesView/index.tsx+++ b/frontend/src/pages/TracesExplorer/TimeSeriesView/index.tsx@@ -55,10 +55,11 @@ function TimeSeriesViewContainer({const defaultUnit = isValidToConvertToMs ? 'ms' : 'short';const { yAxisUnit, onUnitChange } = useUrlYAxisUnit(defaultUnit);- const { selectedTime: globalSelectedTime, maxTime, minTime } = useSelector<- AppState,- GlobalReducer- >((state) => state.globalTime);+ const {+ selectedTime: globalSelectedTime,+ maxTime,+ minTime,+ } = useSelector<AppState, GlobalReducer>((state) => state.globalTime);const queryKey = useMemo(() => [diff --git a/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx b/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsxindex 74418e02a7..0651cc0bf7 100644--- a/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx+++ b/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx@@ -181,13 +181,10 @@ describe('TracesExplorer - Filters', () => {// Initial filter panel rendering// Test the initial state like which filters section are opened, default state of duration slider, etc.it('should render the Trace filter', async () => {- const {- getByText,- getAllByText,- getByTestId,- } = renderWithTracesExplorerRouter(<Filter setOpen={jest.fn()} />, [- `${process.env.FRONTEND_API_ENDPOINT}${ROUTES.TRACES_EXPLORER}/?panelType=list&selectedExplorerView=list`,- ]);+ const { getByText, getAllByText, getByTestId } =+ renderWithTracesExplorerRouter(<Filter setOpen={jest.fn()} />, [+ `${process.env.FRONTEND_API_ENDPOINT}${ROUTES.TRACES_EXPLORER}/?panelType=list&selectedExplorerView=list`,+ ]);checkFilterValues(getByText, getAllByText);@@ -345,7 +342,7 @@ describe('TracesExplorer - Filters', () => {({...item,filters: undefined,- } as any),+ }) as any,),},});@@ -374,7 +371,7 @@ describe('TracesExplorer - Filters', () => {...item.filters,items: undefined,},- } as any),+ }) as any,),},});@@ -569,9 +566,9 @@ describe('TracesExplorer - ', () => {expect(capturedPayload).toBeDefined();});- expect(- (capturedPayload.compositeQuery.queries[0].spec as any).order,- ).toEqual([{ key: { name: 'timestamp' }, direction: 'desc' }]);+ expect((capturedPayload.compositeQuery.queries[0].spec as any).order).toEqual(+ [{ key: { name: 'timestamp' }, direction: 'desc' }],+ );});it.skip('trace explorer - table view', async () => {@@ -599,12 +596,10 @@ describe('TracesExplorer - ', () => {),);- const {- getByText,- getAllByText,- } = renderWithTracesExplorerRouter(<TracesExplorer />, [- '/traces-explorer/?panelType=trace&selectedExplorerView=trace',- ]);+ const { getByText, getAllByText } = renderWithTracesExplorerRouter(+ <TracesExplorer />,+ ['/traces-explorer/?panelType=trace&selectedExplorerView=trace'],+ );expect(await screen.findByText('Root Service Name')).toBeInTheDocument();@@ -666,12 +661,10 @@ describe('TracesExplorer - ', () => {});it('test for explorer options', async () => {- const {- getByText,- getByTestId,- } = renderWithTracesExplorerRouter(<TracesExplorer />, [- '/traces-explorer/?panelType=list&selectedExplorerView=list',- ]);+ const { getByText, getByTestId } = renderWithTracesExplorerRouter(+ <TracesExplorer />,+ ['/traces-explorer/?panelType=list&selectedExplorerView=list'],+ );// assert explorer options - action btns[diff --git a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/AddFunnelDescriptionModal.tsx b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/AddFunnelDescriptionModal.tsxindex c9fe00020f..8cafb5a1a1 100644--- a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/AddFunnelDescriptionModal.tsx+++ b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/AddFunnelDescriptionModal.tsx@@ -26,10 +26,8 @@ function AddFunnelDescriptionModal({const { notifications } = useNotifications();const queryClient = useQueryClient();- const {- mutate: saveFunnelDescription,- isLoading,- } = useSaveFunnelDescription();+ const { mutate: saveFunnelDescription, isLoading } =+ useSaveFunnelDescription();const handleCancel = (): void => {setDescription('');diff --git a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/AddFunnelStepDetailsModal.tsx b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/AddFunnelStepDetailsModal.tsxindex aa98fe2679..e0ed8175be 100644--- a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/AddFunnelStepDetailsModal.tsx+++ b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/AddFunnelStepDetailsModal.tsx@@ -57,7 +57,7 @@ function AddFunnelStepDetailsModal({? {name: stepName || '',description: description || '',- }+ }: {}),})),timestamp: Date.now(),diff --git a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelConfiguration.tsx b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelConfiguration.tsxindex 2652714dec..19e0c05256 100644--- a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelConfiguration.tsx+++ b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelConfiguration.tsx@@ -36,19 +36,14 @@ function FunnelConfiguration({}: FunnelConfigurationProps): JSX.Element {const { hasEditPermission } = useAppContext();const { triggerSave } = useFunnelContext();- const {- isPopoverOpen,- setIsPopoverOpen,- steps,- isSaving,- } = useFunnelConfiguration({- funnel,- triggerAutoSave: triggerAutoSave || triggerSave,- showNotifications: showNotifications || triggerSave,- });- const [isDescriptionModalOpen, setIsDescriptionModalOpen] = useState<boolean>(- false,- );+ const { isPopoverOpen, setIsPopoverOpen, steps, isSaving } =+ useFunnelConfiguration({+ funnel,+ triggerAutoSave: triggerAutoSave || triggerSave,+ showNotifications: showNotifications || triggerSave,+ });+ const [isDescriptionModalOpen, setIsDescriptionModalOpen] =+ useState<boolean>(false);const handleDescriptionModalClose = (): void => {setIsDescriptionModalOpen(false);@@ -67,8 +62,8 @@ function FunnelConfiguration({!hasEditPermission? 'You need editor or admin access to edit funnel description': funnel?.description- ? 'Edit funnel description'- : 'Add funnel description'+ ? 'Edit funnel description'+ : 'Add funnel description'}><Buttondiff --git a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelStep.tsx b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelStep.tsxindex c645ead2ad..576bb4a1b8 100644--- a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelStep.tsx+++ b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelStep.tsx@@ -36,16 +36,13 @@ function FunnelStep({index,stepsCount,}: FunnelStepProps): JSX.Element {- const {- handleStepChange: onStepChange,- handleStepRemoval: onStepRemove,- } = useFunnelContext();+ const { handleStepChange: onStepChange, handleStepRemoval: onStepRemove } =+ useFunnelContext();const [form] = Form.useForm();const currentQuery = initialQueriesMap[DataSource.TRACES];const [isPopoverOpen, setIsPopoverOpen] = useState<boolean>(false);- const [isAddDetailsModalOpen, setIsAddDetailsModalOpen] = useState<boolean>(- false,- );+ const [isAddDetailsModalOpen, setIsAddDetailsModalOpen] =+ useState<boolean>(false);const latencyPointerItems: MenuProps['items'] = LatencyPointers.map((option) => ({@@ -157,7 +154,7 @@ function FunnelStep({hasEditPermission? (v): void => {onStepChange(index, { service_name: (v ?? '') as string });- }+ }: undefined}/>diff --git a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelStepPopover.tsx b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelStepPopover.tsxindex 3a4b062bda..a075627871 100644--- a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelStepPopover.tsx+++ b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelStepPopover.tsx@@ -58,8 +58,8 @@ function FunnelStepActions({!hasEditPermission? 'You need editor or admin access to delete steps': stepsCount <= 2- ? 'Minimum 2 steps required'- : 'Delete'+ ? 'Minimum 2 steps required'+ : 'Delete'}><Buttondiff --git a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/StepsFooter.tsx b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/StepsFooter.tsxindex 7d61d4432d..d28d46826d 100644--- a/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/StepsFooter.tsx+++ b/frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/StepsFooter.tsx@@ -55,11 +55,8 @@ function ValidTracesCount(): JSX.Element {}function StepsFooter({ stepsCount, isSaving }: StepsFooterProps): JSX.Element {- const {- hasIncompleteStepFields,- handleSaveFunnel,- hasUnsavedChanges,- } = useFunnelContext();+ const { hasIncompleteStepFields, handleSaveFunnel, hasUnsavedChanges } =+ useFunnelContext();return (<div className="steps-footer">diff --git a/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelGraph.tsx b/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelGraph.tsxindex 8eeab70996..d3e0545e23 100644--- a/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelGraph.tsx+++ b/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelGraph.tsx@@ -44,25 +44,21 @@ function FunnelGraph(): JSX.Element {isError,} = useFunnelStepsGraphData(funnelId, payload);- const data = useMemo(() => stepsData?.payload?.data?.[0]?.data, [- stepsData?.payload?.data,- ]);+ const data = useMemo(+ () => stepsData?.payload?.data?.[0]?.data,+ [stepsData?.payload?.data],+ );const [hoveredBar, setHoveredBar] = useState<{index: number;type: 'total' | 'error';} | null>(null);- const {- successSteps,- errorSteps,- totalSteps,- canvasRef,- renderLegendItem,- } = useFunnelGraph({- data,- hoveredBar,- });+ const { successSteps, errorSteps, totalSteps, canvasRef, renderLegendItem } =+ useFunnelGraph({+ data,+ hoveredBar,+ });const handleLegendHover = useCallback((index: number, type: 'total' | 'error') => {diff --git a/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelTable.styles.scss b/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelTable.styles.scssindex bbe180d82d..4efbf1ec6b 100644--- a/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelTable.styles.scss+++ b/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelTable.styles.scss@@ -5,7 +5,8 @@border-radius: 3px;border: 1px solid var(--l1-border);table {- background: linear-gradient(+ background:+ linear-gradient(0deg,color-mix(in srgb, var(--bg-robin-200) 1%, transparent) 0%,color-mix(in srgb, var(--bg-robin-200) 1%, transparent) 100%@@ -89,7 +90,9 @@.ant-table-thead> tr- > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {+ > th:not(:last-child):not(.ant-table-selection-column):not(+ .ant-table-row-expand-icon-cell+ ):not([colspan])::before {background-color: transparent;}diff --git a/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelTopTracesTable.tsx b/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelTopTracesTable.tsxindex c25cb7f553..66dff7c7d4 100644--- a/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelTopTracesTable.tsx+++ b/frontend/src/pages/TracesFunnelDetails/components/FunnelResults/FunnelTopTracesTable.tsx@@ -49,10 +49,11 @@ function FunnelTopTracesTable({[startTime, endTime, stepAOrder, stepBOrder, steps],);- const { data: response, isLoading, isFetching } = useQueryHook(- funnelId,- payload,- );+ const {+ data: response,+ isLoading,+ isFetching,+ } = useQueryHook(funnelId, payload);const data = useMemo(() => {if (!response?.payload?.data) {diff --git a/frontend/src/pages/TracesFunnels/FunnelContext.tsx b/frontend/src/pages/TracesFunnels/FunnelContext.tsxindex 466acc6d6b..57fc8bd8c7 100644--- a/frontend/src/pages/TracesFunnels/FunnelContext.tsx+++ b/frontend/src/pages/TracesFunnels/FunnelContext.tsx@@ -106,9 +106,8 @@ export function FunnelProvider({const [steps, setSteps] = useState<FunnelStepData[]>(initialSteps);const [triggerSave, setTriggerSave] = useState<boolean>(false);const [isUpdatingFunnel, setIsUpdatingFunnel] = useState<boolean>(false);- const [lastUpdatedSteps, setLastUpdatedSteps] = useState<FunnelStepData[]>(- initialSteps,- );+ const [lastUpdatedSteps, setLastUpdatedSteps] =+ useState<FunnelStepData[]>(initialSteps);// Check if there are unsaved changes by comparing with initial steps from APIconst hasUnsavedChanges = useMemo(() => {diff --git a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsxindex 6ab1162115..d468deef68 100644--- a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx+++ b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx@@ -44,12 +44,8 @@ import {import './WorkspaceLocked.styles.scss';export default function WorkspaceBlocked(): JSX.Element {- const {- user,- isFetchingActiveLicense,- trialInfo,- activeLicense,- } = useAppContext();+ const { user, isFetchingActiveLicense, trialInfo, activeLicense } =+ useAppContext();const isAdmin = user.role === 'ADMIN';const { notifications } = useNotifications();const { safeNavigate } = useSafeNavigate();diff --git a/frontend/src/pages/WorkspaceLocked/customerStoryCard.styles.scss b/frontend/src/pages/WorkspaceLocked/customerStoryCard.styles.scssindex 7c90e3a4ef..187be790be 100644--- a/frontend/src/pages/WorkspaceLocked/customerStoryCard.styles.scss+++ b/frontend/src/pages/WorkspaceLocked/customerStoryCard.styles.scss@@ -7,7 +7,9 @@ $light-theme: 'lightMode';margin: 0 auto; // Center the card within the columnmargin-bottom: 24px;border-radius: 6px;- transition: transform 0.3s ease, box-shadow 0.3s ease;+ transition:+ transform 0.3s ease,+ box-shadow 0.3s ease;background-color: var(--card);border: 1px solid var(--l1-border);diff --git a/frontend/src/providers/App/App.tsx b/frontend/src/providers/App/App.tsxindex 49c94362e8..47509a488e 100644--- a/frontend/src/providers/App/App.tsx+++ b/frontend/src/providers/App/App.tsx@@ -205,12 +205,10 @@ export function AppProvider({ children }: PropsWithChildren): JSX.Element {}, [activeLicenseData, isFetchingActiveLicense]);// fetcher for feature flags- const {- isFetching: isFetchingFeatureFlags,- error: featureFlagsFetchError,- } = useGetFeatureFlag((allFlags: FeatureFlags[]) => {- setFeatureFlags(allFlags);- }, isLoggedIn);+ const { isFetching: isFetchingFeatureFlags, error: featureFlagsFetchError } =+ useGetFeatureFlag((allFlags: FeatureFlags[]) => {+ setFeatureFlags(allFlags);+ }, isLoggedIn);// now since org preferences data is dependent on user being loaded as well so we added extra safety net for user.email to be set as wellconst {@@ -240,14 +238,12 @@ export function AppProvider({ children }: PropsWithChildren): JSX.Element {}, [orgPreferencesData, isFetchingOrgPreferences]);// now since org preferences data is dependent on user being loaded as well so we added extra safety net for user.email to be set as well- const {- data: userPreferencesData,- isFetching: isFetchingUserPreferences,- } = useQuery({- queryFn: () => listUserPreferences(),- queryKey: ['getAllUserPreferences', 'app-context'],- enabled: !!isLoggedIn && !!user.email,- });+ const { data: userPreferencesData, isFetching: isFetchingUserPreferences } =+ useQuery({+ queryFn: () => listUserPreferences(),+ queryKey: ['getAllUserPreferences', 'app-context'],+ enabled: !!isLoggedIn && !!user.email,+ });useEffect(() => {if (diff --git a/frontend/src/providers/Dashboard/helpers/panelTypeSelectionModalHelper.ts b/frontend/src/providers/Dashboard/helpers/panelTypeSelectionModalHelper.tsindex 781d7a86e5..75efa89c79 100644--- a/frontend/src/providers/Dashboard/helpers/panelTypeSelectionModalHelper.ts+++ b/frontend/src/providers/Dashboard/helpers/panelTypeSelectionModalHelper.ts@@ -9,10 +9,9 @@ interface IPanelTypeSelectionModalState {* This helper is used for selecting the panel type when creating a new panel in the dashboard.* It uses Zustand for state management to keep track of whether the panel type selection modal is open or closed.*/-export const usePanelTypeSelectionModalStore = create<IPanelTypeSelectionModalState>(- (set) => ({+export const usePanelTypeSelectionModalStore =+ create<IPanelTypeSelectionModalState>((set) => ({isPanelTypeSelectionModalOpen: false,setIsPanelTypeSelectionModalOpen: (isOpen): void =>set({ isPanelTypeSelectionModalOpen: isOpen }),- }),-);+ }));diff --git a/frontend/src/providers/Dashboard/initializeDefaultVariables.ts b/frontend/src/providers/Dashboard/initializeDefaultVariables.tsindex 9be9b0ecc4..197cfb739c 100644--- a/frontend/src/providers/Dashboard/initializeDefaultVariables.ts+++ b/frontend/src/providers/Dashboard/initializeDefaultVariables.ts@@ -38,7 +38,7 @@ export const initializeDefaultVariables = (const value =variable.type === 'CUSTOM'? commaValuesParser(variable?.customValue || '')- : variable?.selectedValue ?? variable?.defaultValue;+ : (variable?.selectedValue ?? variable?.defaultValue);if (!existsInUrl) {updateUrlVariable(diff --git a/frontend/src/providers/Dashboard/store/dashboardVariables/__tests__/dashboardVariablesStore.test.ts b/frontend/src/providers/Dashboard/store/dashboardVariables/__tests__/dashboardVariablesStore.test.tsindex e22f8fc18b..4b87ac8eaa 100644--- a/frontend/src/providers/Dashboard/store/dashboardVariables/__tests__/dashboardVariablesStore.test.ts+++ b/frontend/src/providers/Dashboard/store/dashboardVariables/__tests__/dashboardVariablesStore.test.ts@@ -123,11 +123,8 @@ describe('dashboardVariablesStore', () => {},});- const {- variableTypes,- dynamicVariableOrder,- dependencyData,- } = getVariableDependencyContext();+ const { variableTypes, dynamicVariableOrder, dependencyData } =+ getVariableDependencyContext();expect(variableTypes).toEqual({ env: 'QUERY' });expect(dynamicVariableOrder).toEqual([]);@@ -153,9 +150,8 @@ describe('dashboardVariablesStore', () => {},});- const {- doAllQueryVariablesHaveValuesSelected,- } = getVariableDependencyContext();+ const { doAllQueryVariablesHaveValuesSelected } =+ getVariableDependencyContext();expect(doAllQueryVariablesHaveValuesSelected).toBe(true);});@@ -178,9 +174,8 @@ describe('dashboardVariablesStore', () => {},});- const {- doAllQueryVariablesHaveValuesSelected,- } = getVariableDependencyContext();+ const { doAllQueryVariablesHaveValuesSelected } =+ getVariableDependencyContext();expect(doAllQueryVariablesHaveValuesSelected).toBe(false);});@@ -210,9 +205,8 @@ describe('dashboardVariablesStore', () => {},});- const {- doAllQueryVariablesHaveValuesSelected,- } = getVariableDependencyContext();+ const { doAllQueryVariablesHaveValuesSelected } =+ getVariableDependencyContext();expect(doAllQueryVariablesHaveValuesSelected).toBe(true);});@@ -229,9 +223,8 @@ describe('dashboardVariablesStore', () => {},});- const {- doAllQueryVariablesHaveValuesSelected,- } = getVariableDependencyContext();+ const { doAllQueryVariablesHaveValuesSelected } =+ getVariableDependencyContext();expect(doAllQueryVariablesHaveValuesSelected).toBe(true);});@@ -258,9 +251,8 @@ describe('dashboardVariablesStore', () => {},});- const {- doAllQueryVariablesHaveValuesSelected,- } = getVariableDependencyContext();+ const { doAllQueryVariablesHaveValuesSelected } =+ getVariableDependencyContext();expect(doAllQueryVariablesHaveValuesSelected).toBe(true);});@@ -286,9 +278,8 @@ describe('dashboardVariablesStore', () => {},});- const {- doAllQueryVariablesHaveValuesSelected,- } = getVariableDependencyContext();+ const { doAllQueryVariablesHaveValuesSelected } =+ getVariableDependencyContext();expect(doAllQueryVariablesHaveValuesSelected).toBe(false);},);diff --git a/frontend/src/providers/Dashboard/store/dashboardVariables/dashboardVariablesStore.ts b/frontend/src/providers/Dashboard/store/dashboardVariables/dashboardVariablesStore.tsindex ab31e6f758..04670cd081 100644--- a/frontend/src/providers/Dashboard/store/dashboardVariables/dashboardVariablesStore.ts+++ b/frontend/src/providers/Dashboard/store/dashboardVariables/dashboardVariablesStore.ts@@ -17,9 +17,8 @@ const initialState: IDashboardVariablesStoreState = {dynamicVariableOrder: [],};-export const dashboardVariablesStore = createStore<IDashboardVariablesStoreState>(- initialState,-);+export const dashboardVariablesStore =+ createStore<IDashboardVariablesStoreState>(initialState);/*** Set dashboard variables (replaces all variables)diff --git a/frontend/src/providers/Dashboard/store/store.ts b/frontend/src/providers/Dashboard/store/store.tsindex 3c7655bd78..6550e375e4 100644--- a/frontend/src/providers/Dashboard/store/store.ts+++ b/frontend/src/providers/Dashboard/store/store.ts@@ -2,9 +2,7 @@import { produce } from 'immer';type ListenerFn = () => void;-export default function createStore<T>(- init: T,-): {+export default function createStore<T>(init: T): {set: (setter: any) => void;update: (updater: (draft: T) => void) => void;subscribe: (listener: ListenerFn) => () => void;diff --git a/frontend/src/providers/Dashboard/store/variableFetchStore.ts b/frontend/src/providers/Dashboard/store/variableFetchStore.tsindex 0ddcd50d9f..b7fd7e1dcc 100644--- a/frontend/src/providers/Dashboard/store/variableFetchStore.ts+++ b/frontend/src/providers/Dashboard/store/variableFetchStore.ts@@ -45,9 +45,8 @@ const initialState: IVariableFetchStoreState = {cycleIds: {},};-export const variableFetchStore = createStore<IVariableFetchStoreState>(- initialState,-);+export const variableFetchStore =+ createStore<IVariableFetchStoreState>(initialState);// ============== Actions ==============@@ -128,11 +127,8 @@ export function enqueueFetchOfAllVariables(): void {* If all query variables are now settled, unlocks any waiting dynamic variables.*/export function onVariableFetchComplete(name: string): void {- const {- dependencyData,- variableTypes,- dynamicVariableOrder,- } = getVariableDependencyContext();+ const { dependencyData, variableTypes, dynamicVariableOrder } =+ getVariableDependencyContext();variableFetchStore.update((draft) => {draft.states[name] = 'idle';@@ -168,11 +164,8 @@ export function onVariableFetchComplete(name: string): void {* If all query variables are now settled, unlocks any waiting dynamic variables.*/export function onVariableFetchFailure(name: string): void {- const {- dependencyData,- variableTypes,- dynamicVariableOrder,- } = getVariableDependencyContext();+ const { dependencyData, variableTypes, dynamicVariableOrder } =+ getVariableDependencyContext();variableFetchStore.update((draft) => {draft.states[name] = 'error';@@ -208,11 +201,8 @@ export function onVariableFetchFailure(name: string): void {* ensures parents are set before children within a single update).*/export function enqueueDescendantsOfVariable(name: string): void {- const {- dependencyData,- variableTypes,- dynamicVariableOrder,- } = getVariableDependencyContext();+ const { dependencyData, variableTypes, dynamicVariableOrder } =+ getVariableDependencyContext();if (!dependencyData) {return;}diff --git a/frontend/src/providers/QueryBuilder.tsx b/frontend/src/providers/QueryBuilder.tsxindex ba2e8956e2..77fea27e20 100644--- a/frontend/src/providers/QueryBuilder.tsx+++ b/frontend/src/providers/QueryBuilder.tsx@@ -110,10 +110,8 @@ export function QueryBuilderProvider({const currentPathnameRef = useRef<string | null>(location.pathname);// This is used to determine if the query was called from the handleRunQuery function - which means manual trigger from Stage and Run button- const [- calledFromHandleRunQuery,- setCalledFromHandleRunQuery,- ] = useState<boolean>(false);+ const [calledFromHandleRunQuery, setCalledFromHandleRunQuery] =+ useState<boolean>(false);const compositeQueryParam = useGetCompositeQueryParam();const { queryType: queryTypeParam, ...queryState } =@@ -244,9 +242,8 @@ export function QueryBuilderProvider({const initQueryBuilderData = useCallback((query: Query): void => {- const { queryType: newQueryType, ...queryState } = prepareQueryBuilderData(- query,- );+ const { queryType: newQueryType, ...queryState } =+ prepareQueryBuilderData(query);const type = newQueryType || EQueryType.QUERY_BUILDER;@@ -690,7 +687,7 @@ export function QueryBuilderProvider({...initialQueryBuilderFormTraceOperatorValues,queryName: TRACE_OPERATOR_QUERY_NAME,expression: trimmed,- };+ };return {...prevState,@@ -710,7 +707,7 @@ export function QueryBuilderProvider({...initialQueryBuilderFormTraceOperatorValues,queryName: TRACE_OPERATOR_QUERY_NAME,expression: trimmed,- };+ };return {...prevState,@@ -945,7 +942,7 @@ export function QueryBuilderProvider({(query: Partial<Query>,searchParams?: Record<string, unknown>,- redirectingUrl?: typeof ROUTES[keyof typeof ROUTES],+ redirectingUrl?: (typeof ROUTES)[keyof typeof ROUTES],shouldNotStringify?: boolean,newTab?: boolean,) => {@@ -1045,7 +1042,7 @@ export function QueryBuilderProvider({expression:item.filter?.expression.trim() === ''? ''- : item.filter?.expression ?? '',+ : (item.filter?.expression ?? ''),},filters: {items: [],@@ -1152,10 +1149,10 @@ export function QueryBuilderProvider({[supersetQuery, queryType],);- const isEnabledQuery = useMemo(() => !!stagedQuery && !!panelType, [- stagedQuery,- panelType,- ]);+ const isEnabledQuery = useMemo(+ () => !!stagedQuery && !!panelType,+ [stagedQuery, panelType],+ );const contextValues: QueryBuilderContextType = useMemo(() => ({diff --git a/frontend/src/providers/preferences/sync/usePreferenceSync.ts b/frontend/src/providers/preferences/sync/usePreferenceSync.tsindex c162dfea6b..04014a6754 100644--- a/frontend/src/providers/preferences/sync/usePreferenceSync.ts+++ b/frontend/src/providers/preferences/sync/usePreferenceSync.ts@@ -30,10 +30,8 @@ export function usePreferenceSync({mode === PreferenceMode.SAVED_VIEW,);- const [- savedViewPreferences,- setSavedViewPreferences,- ] = useState<Preferences | null>(null);+ const [savedViewPreferences, setSavedViewPreferences] =+ useState<Preferences | null>(null);const updateExtraDataSelectColumns = (columns: TelemetryFieldKey[],diff --git a/frontend/src/providers/preferences/updater/usePreferenceUpdater.ts b/frontend/src/providers/preferences/updater/usePreferenceUpdater.tsindex cb930aee40..e369c18ff0 100644--- a/frontend/src/providers/preferences/updater/usePreferenceUpdater.ts+++ b/frontend/src/providers/preferences/updater/usePreferenceUpdater.ts@@ -56,9 +56,8 @@ export function usePreferenceUpdater({updateColumns: (newColumns: TelemetryFieldKey[]) => void;updateFormatting: (newFormatting: FormattingOptions) => void;} {- const {- redirectWithQuery: redirectWithOptionsData,- } = useUrlQueryData<OptionsQuery>(URL_OPTIONS, defaultOptionsQuery);+ const { redirectWithQuery: redirectWithOptionsData } =+ useUrlQueryData<OptionsQuery>(URL_OPTIONS, defaultOptionsQuery);const updater = getUpdaterConfig(preferences,redirectWithOptionsData,diff --git a/frontend/src/store/actions/global.ts b/frontend/src/store/actions/global.tsindex 33fa5de5aa..f87636b5c8 100644--- a/frontend/src/store/actions/global.ts+++ b/frontend/src/store/actions/global.ts@@ -8,28 +8,28 @@ import { Dispatch } from 'redux';import AppActions from 'types/actions';import { UPDATE_TIME_INTERVAL } from 'types/actions/globalTime';-export const UpdateTimeInterval = (- interval: Time | CustomTimeType,- dateTimeRange: [number, number] = [0, 0],-): ((dispatch: Dispatch<AppActions>) => void) => (- dispatch: Dispatch<AppActions>,-): void => {- const { maxTime, minTime } = GetMinMax(interval, dateTimeRange);+export const UpdateTimeInterval =+ (+ interval: Time | CustomTimeType,+ dateTimeRange: [number, number] = [0, 0],+ ): ((dispatch: Dispatch<AppActions>) => void) =>+ (dispatch: Dispatch<AppActions>): void => {+ const { maxTime, minTime } = GetMinMax(interval, dateTimeRange);- dispatch({- type: UPDATE_TIME_INTERVAL,- payload: {- maxTime,- minTime,- selectedTime: interval,- },- });-};+ dispatch({+ type: UPDATE_TIME_INTERVAL,+ payload: {+ maxTime,+ minTime,+ selectedTime: interval,+ },+ });+ };-export const GlobalTimeLoading = (): ((- dispatch: Dispatch<AppActions>,-) => void) => (dispatch: Dispatch<AppActions>): void => {- dispatch({- type: 'GLOBAL_TIME_LOADING_START',- });-};+export const GlobalTimeLoading =+ (): ((dispatch: Dispatch<AppActions>) => void) =>+ (dispatch: Dispatch<AppActions>): void => {+ dispatch({+ type: 'GLOBAL_TIME_LOADING_START',+ });+ };diff --git a/frontend/src/store/actions/logs/addToSelectedField.ts b/frontend/src/store/actions/logs/addToSelectedField.tsindex 0f022bf8ae..a7ad98f58d 100644--- a/frontend/src/store/actions/logs/addToSelectedField.ts+++ b/frontend/src/store/actions/logs/addToSelectedField.ts@@ -4,14 +4,14 @@ import { Dispatch } from 'redux';import AppActions from 'types/actions';import { SET_FIELDS } from 'types/actions/logs';-export const AddToSelectedField = (): ((- dispatch: Dispatch<AppActions>,-) => void) => async (dispatch): Promise<void> => {- const response = await GetSearchFields();- if (response.payload) {- dispatch({- type: SET_FIELDS,- payload: response.payload,- });- }-};+export const AddToSelectedField =+ (): ((dispatch: Dispatch<AppActions>) => void) =>+ async (dispatch): Promise<void> => {+ const response = await GetSearchFields();+ if (response.payload) {+ dispatch({+ type: SET_FIELDS,+ payload: response.payload,+ });+ }+ };diff --git a/frontend/src/store/actions/logs/getFields.ts b/frontend/src/store/actions/logs/getFields.tsindex f7915ef108..5f6a6a51e0 100644--- a/frontend/src/store/actions/logs/getFields.ts+++ b/frontend/src/store/actions/logs/getFields.ts@@ -6,19 +6,19 @@ import { SET_FIELDS } from 'types/actions/logs';const IGNORED_SELECTED_FIELDS = ['timestamp'];-export const GetLogsFields = (): ((- dispatch: Dispatch<AppActions>,-) => void) => async (dispatch): Promise<void> => {- const response = await GetSearchFields();- if (response.payload) {- dispatch({- type: SET_FIELDS,- payload: {- interesting: response.payload.interesting,- selected: response.payload.selected.filter(- (field) => !IGNORED_SELECTED_FIELDS.includes(field.name),- ),- },- });- }-};+export const GetLogsFields =+ (): ((dispatch: Dispatch<AppActions>) => void) =>+ async (dispatch): Promise<void> => {+ const response = await GetSearchFields();+ if (response.payload) {+ dispatch({+ type: SET_FIELDS,+ payload: {+ interesting: response.payload.interesting,+ selected: response.payload.selected.filter(+ (field) => !IGNORED_SELECTED_FIELDS.includes(field.name),+ ),+ },+ });+ }+ };diff --git a/frontend/src/store/actions/logs/getLogs.ts b/frontend/src/store/actions/logs/getLogs.tsindex 86ef967dc9..b6262ded2e 100644--- a/frontend/src/store/actions/logs/getLogs.ts+++ b/frontend/src/store/actions/logs/getLogs.ts@@ -5,32 +5,30 @@ import AppActions from 'types/actions';import { SET_LOADING, SET_LOGS } from 'types/actions/logs';import { Props } from 'types/api/logs/getLogs';-export const getLogs = (- props: Props,-): ((dispatch: Dispatch<AppActions>) => void) => async (- dispatch,-): Promise<void> => {- dispatch({- type: SET_LOADING,- payload: true,- });-- const response = await GetLogs(props);-- if (response.payload) {+export const getLogs =+ (props: Props): ((dispatch: Dispatch<AppActions>) => void) =>+ async (dispatch): Promise<void> => {dispatch({- type: SET_LOGS,- payload: response.payload,+ type: SET_LOADING,+ payload: true,});- } else {++ const response = await GetLogs(props);++ if (response.payload) {+ dispatch({+ type: SET_LOGS,+ payload: response.payload,+ });+ } else {+ dispatch({+ type: SET_LOGS,+ payload: [],+ });+ }+dispatch({- type: SET_LOGS,- payload: [],+ type: SET_LOADING,+ payload: false,});- }-- dispatch({- type: SET_LOADING,- payload: false,- });-};+ };diff --git a/frontend/src/store/actions/logs/getLogsAggregate.ts b/frontend/src/store/actions/logs/getLogsAggregate.tsindex 0177008a25..12a3e1c18c 100644--- a/frontend/src/store/actions/logs/getLogsAggregate.ts+++ b/frontend/src/store/actions/logs/getLogsAggregate.ts@@ -9,35 +9,33 @@ import {import { Props } from 'types/api/logs/getLogsAggregate';import { ILogsAggregate } from 'types/api/logs/logAggregate';-export const getLogsAggregate = (- props: Props,-): ((dispatch: Dispatch<AppActions>) => void) => async (- dispatch,-): Promise<void> => {- dispatch({- type: SET_LOADING_AGGREGATE,- payload: true,- });-- const response = await GetLogsAggregate(props);- if (response.payload) {- const convertedArray: ILogsAggregate[] = Object.values(- response.payload,- ).map((data) => ({ ...data, time: new Date(data.timestamp / 1e6) }));-+export const getLogsAggregate =+ (props: Props): ((dispatch: Dispatch<AppActions>) => void) =>+ async (dispatch): Promise<void> => {dispatch({- type: SET_LOGS_AGGREGATE_SERIES,- payload: convertedArray,+ type: SET_LOADING_AGGREGATE,+ payload: true,});- } else {++ const response = await GetLogsAggregate(props);+ if (response.payload) {+ const convertedArray: ILogsAggregate[] = Object.values(response.payload).map(+ (data) => ({ ...data, time: new Date(data.timestamp / 1e6) }),+ );++ dispatch({+ type: SET_LOGS_AGGREGATE_SERIES,+ payload: convertedArray,+ });+ } else {+ dispatch({+ type: SET_LOGS_AGGREGATE_SERIES,+ payload: [],+ });+ }+dispatch({- type: SET_LOGS_AGGREGATE_SERIES,- payload: [],+ type: SET_LOADING_AGGREGATE,+ payload: false,});- }-- dispatch({- type: SET_LOADING_AGGREGATE,- payload: false,- });-};+ };diff --git a/frontend/src/store/actions/metrics/getService.ts b/frontend/src/store/actions/metrics/getService.tsindex 4b68757a56..6653bd0d34 100644--- a/frontend/src/store/actions/metrics/getService.ts+++ b/frontend/src/store/actions/metrics/getService.ts@@ -9,52 +9,51 @@ import AppActions from 'types/actions';import { GlobalReducer } from 'types/reducer/globalTime';import { Tags } from 'types/reducer/trace';-export const GetService = (- props: GetServiceProps,-): ((- dispatch: Dispatch<AppActions>,- getState: () => AppState,-) => void) => async (dispatch, getState): Promise<void> => {- try {- const { globalTime } = getState();+export const GetService =+ (+ props: GetServiceProps,+ ): ((dispatch: Dispatch<AppActions>, getState: () => AppState) => void) =>+ async (dispatch, getState): Promise<void> => {+ try {+ const { globalTime } = getState();- const { maxTime, minTime } = GetMinMax(globalTime.selectedTime, [- globalTime.minTime / 1000000,- globalTime.maxTime / 1000000,- ]);+ const { maxTime, minTime } = GetMinMax(globalTime.selectedTime, [+ globalTime.minTime / 1000000,+ globalTime.maxTime / 1000000,+ ]);- dispatch({- type: 'GET_SERVICE_LIST_LOADING_START',- });-- const response = await getService({- end: maxTime,- start: minTime,- selectedTags: props.selectedTags,- });-- if (response.length > 0) {dispatch({- type: 'GET_SERVICE_LIST_SUCCESS',- payload: response,+ type: 'GET_SERVICE_LIST_LOADING_START',+ });++ const response = await getService({+ end: maxTime,+ start: minTime,+ selectedTags: props.selectedTags,});- } else {++ if (response.length > 0) {+ dispatch({+ type: 'GET_SERVICE_LIST_SUCCESS',+ payload: response,+ });+ } else {+ dispatch({+ type: 'GET_SERVICE_LIST_ERROR',+ payload: {+ errorMessage: SOMETHING_WENT_WRONG,+ },+ });+ }+ } catch (error) {dispatch({type: 'GET_SERVICE_LIST_ERROR',payload: {- errorMessage: SOMETHING_WENT_WRONG,+ errorMessage: (error as AxiosError).toString() || SOMETHING_WENT_WRONG,},});}- } catch (error) {- dispatch({- type: 'GET_SERVICE_LIST_ERROR',- payload: {- errorMessage: (error as AxiosError).toString() || SOMETHING_WENT_WRONG,- },- });- }-};+ };export type GetServiceProps = {minTime: GlobalReducer['minTime'];diff --git a/frontend/src/store/actions/metrics/resetInitialData.ts b/frontend/src/store/actions/metrics/resetInitialData.tsindex 5c30190928..7a903523f1 100644--- a/frontend/src/store/actions/metrics/resetInitialData.ts+++ b/frontend/src/store/actions/metrics/resetInitialData.ts@@ -3,11 +3,10 @@ import { Dispatch } from 'redux';import { AppState } from 'store/reducers';import AppActions from 'types/actions';-export const ResetInitialData = (): ((- dispatch: Dispatch<AppActions>,- getState: () => AppState,-) => void) => (dispatch): void => {- dispatch({- type: 'RESET_INITIAL_APPLICATION_DATA',- });-};+export const ResetInitialData =+ (): ((dispatch: Dispatch<AppActions>, getState: () => AppState) => void) =>+ (dispatch): void => {+ dispatch({+ type: 'RESET_INITIAL_APPLICATION_DATA',+ });+ };diff --git a/frontend/src/store/actions/serviceMap.ts b/frontend/src/store/actions/serviceMap.tsindex bfe0bd416e..8f34ecfe4d 100644--- a/frontend/src/store/actions/serviceMap.ts+++ b/frontend/src/store/actions/serviceMap.ts@@ -33,31 +33,30 @@ export interface ServiceMapLoading {};}-export const getDetailedServiceMapItems = (- globalTime: GlobalTime,- queries: IResourceAttribute[],-) => async (dispatch: Dispatch): Promise<void> => {- const start = `${globalTime.minTime}`;- const end = `${globalTime.maxTime}`;-- const serviceMapPayload = {- start,- end,- tags: convertRawQueriesToTraceSelectedTags(queries),+export const getDetailedServiceMapItems =+ (globalTime: GlobalTime, queries: IResourceAttribute[]) =>+ async (dispatch: Dispatch): Promise<void> => {+ const start = `${globalTime.minTime}`;+ const end = `${globalTime.maxTime}`;++ const serviceMapPayload = {+ start,+ end,+ tags: convertRawQueriesToTraceSelectedTags(queries),+ };+ const [dependencyGraphResponse] = await Promise.all([+ api.post<ServicesMapItem[]>(`/dependency_graph`, serviceMapPayload),+ ]);++ dispatch<ServiceMapItemAction>({+ type: ActionTypes.getServiceMapItems,+ payload: dependencyGraphResponse.data,+ });++ dispatch<ServiceMapLoading>({+ type: ActionTypes.serviceMapLoading,+ payload: {+ loading: false,+ },+ });};- const [dependencyGraphResponse] = await Promise.all([- api.post<ServicesMapItem[]>(`/dependency_graph`, serviceMapPayload),- ]);-- dispatch<ServiceMapItemAction>({- type: ActionTypes.getServiceMapItems,- payload: dependencyGraphResponse.data,- });-- dispatch<ServiceMapLoading>({- type: ActionTypes.serviceMapLoading,- payload: {- loading: false,- },- });-};diff --git a/frontend/src/store/actions/trace/getInitialFilter.ts b/frontend/src/store/actions/trace/getInitialFilter.tsindex 133ea57d7d..32c5635a2c 100644--- a/frontend/src/store/actions/trace/getInitialFilter.ts+++ b/frontend/src/store/actions/trace/getInitialFilter.ts@@ -29,184 +29,193 @@ import {stripTimestampsFromQuery,} from './util';-export const GetInitialTraceFilter = (- minTime: GlobalReducer['minTime'],- maxTime: GlobalReducer['maxTime'],- notify: NotificationInstance,-): ((- dispatch: Dispatch<AppActions>,- getState: Store<AppState>['getState'],- // eslint-disable-next-line sonarjs/cognitive-complexity-) => void) => async (dispatch, getState): Promise<void> => {- try {- const query = window.location.search;-- const { traces, globalTime } = getState();-- if (globalTime.maxTime !== maxTime && globalTime.minTime !== minTime) {- return;- }+export const GetInitialTraceFilter =+ (+ minTime: GlobalReducer['minTime'],+ maxTime: GlobalReducer['maxTime'],+ notify: NotificationInstance,+ ): ((+ dispatch: Dispatch<AppActions>,+ getState: Store<AppState>['getState'],+ // eslint-disable-next-line sonarjs/cognitive-complexity+ ) => void) =>+ async (dispatch, getState): Promise<void> => {+ try {+ const query = window.location.search;++ const { traces, globalTime } = getState();++ if (globalTime.maxTime !== maxTime && globalTime.minTime !== minTime) {+ return;+ }++ const getSelectedFilter = parseSelectedFilter(+ query,+ traces.selectedFilter,+ true,+ );- const getSelectedFilter = parseSelectedFilter(- query,- traces.selectedFilter,- true,- );-- const getFilterToFetchData = parseFilterToFetchData(- query,- traces.filterToFetchData,- );-- const parsedSpanKind = parseQueryIntoSpanKind(query, traces.spanKind);-- const getUserSelected = parseSelectedFilter(query, traces.userSelectedFilter);-- const getIsFilterExcluded = parseFilterExclude(query, traces.isFilterExclude);-- const parsedQueryCurrent = parseQueryIntoCurrent(- query,- traces.spansAggregate.currentPage,- );-- const parsedQueryOrder = parseQueryIntoOrder(- query,- traces.spansAggregate.order,- );-- const parsedPageSize = parseQueryIntoPageSize(- query,- traces.spansAggregate.pageSize,- );-- const isSelectionSkipped = parseIsSkippedSelection(query);-- const parsedSelectedTags = parseQueryIntoSelectedTags(- query,- traces.selectedTags,- );-- const parsedOrderParams = parseAggregateOrderParams(- query,- traces.spansAggregate.orderParam,- );-- const parsedFilter = parseQueryIntoFilter(query, traces.filter);-- // now filter are not matching we need to fetch the data and make in sync- dispatch({- type: UPDATE_TRACE_FILTER_LOADING,- payload: {- filterLoading: true,- },- });-- const response = await getFiltersApi({- end: String(maxTime),- getFilters: getFilterToFetchData.currentValue,- start: String(minTime),- other: Object.fromEntries(getSelectedFilter.currentValue),- isFilterExclude: getIsFilterExcluded.currentValue,- spanKind: parsedSpanKind.currentValue,- });-- const preSelectedFilter: Map<TraceFilterEnum, string[]> = new Map(- getSelectedFilter.currentValue,- );-- if (response.payload && !isSelectionSkipped.currentValue) {- /** this is required as now we have timestamps updated in date time selection component- * so for initial filters we need to strip timestamps and check for initial load- */- const diff =- stripTimestampsFromQuery(query).length === 0- ? traces.filterToFetchData- : xor(traces.filterToFetchData, getFilterToFetchData.currentValue);-- Object.keys(response.payload).forEach((key) => {- const value = response.payload[key];- Object.keys(value)- // remove maxDuration and minDuration filter from initial selection logic- .filter((e) => !['maxDuration', 'minDuration'].includes(e))- .forEach((preKey) => {- if (isTraceFilterEnum(key) && diff.find((v) => v === key)) {- // const preValue = preSelectedFilter?.get(key) || [];- const preValue = getUserSelected.currentValue?.get(key) || [];- // preSelectedFilter?.set(key, [...new Set([...preValue, preKey])]);- getUserSelected.currentValue.set(key, [- ...new Set([...preValue, preKey]),- ]);- }- });- });- }+ const getFilterToFetchData = parseFilterToFetchData(+ query,+ traces.filterToFetchData,+ );- if (response.statusCode === 200) {- const preResponseSelected: TraceReducer['filterResponseSelected'] = new Set();+ const parsedSpanKind = parseQueryIntoSpanKind(query, traces.spanKind);- const initialFilter = new Map<TraceFilterEnum, Record<string, string>>(- parsedFilter.currentValue,+ const getUserSelected = parseSelectedFilter(+ query,+ traces.userSelectedFilter,);- Object.keys(response.payload).forEach((key) => {- const value = response.payload[key];- if (isTraceFilterEnum(key)) {- Object.keys(value).forEach((e) => preResponseSelected.add(e));+ const getIsFilterExcluded = parseFilterExclude(+ query,+ traces.isFilterExclude,+ );++ const parsedQueryCurrent = parseQueryIntoCurrent(+ query,+ traces.spansAggregate.currentPage,+ );++ const parsedQueryOrder = parseQueryIntoOrder(+ query,+ traces.spansAggregate.order,+ );++ const parsedPageSize = parseQueryIntoPageSize(+ query,+ traces.spansAggregate.pageSize,+ );++ const isSelectionSkipped = parseIsSkippedSelection(query);++ const parsedSelectedTags = parseQueryIntoSelectedTags(+ query,+ traces.selectedTags,+ );++ const parsedOrderParams = parseAggregateOrderParams(+ query,+ traces.spansAggregate.orderParam,+ );++ const parsedFilter = parseQueryIntoFilter(query, traces.filter);++ // now filter are not matching we need to fetch the data and make in sync+ dispatch({+ type: UPDATE_TRACE_FILTER_LOADING,+ payload: {+ filterLoading: true,+ },+ });- initialFilter.set(key, {- ...initialFilter.get(key),- ...value,- });- }+ const response = await getFiltersApi({+ end: String(maxTime),+ getFilters: getFilterToFetchData.currentValue,+ start: String(minTime),+ other: Object.fromEntries(getSelectedFilter.currentValue),+ isFilterExclude: getIsFilterExcluded.currentValue,+ spanKind: parsedSpanKind.currentValue,});+ const preSelectedFilter: Map<TraceFilterEnum, string[]> = new Map(+ getSelectedFilter.currentValue,+ );++ if (response.payload && !isSelectionSkipped.currentValue) {+ /** this is required as now we have timestamps updated in date time selection component+ * so for initial filters we need to strip timestamps and check for initial load+ */+ const diff =+ stripTimestampsFromQuery(query).length === 0+ ? traces.filterToFetchData+ : xor(traces.filterToFetchData, getFilterToFetchData.currentValue);++ Object.keys(response.payload).forEach((key) => {+ const value = response.payload[key];+ Object.keys(value)+ // remove maxDuration and minDuration filter from initial selection logic+ .filter((e) => !['maxDuration', 'minDuration'].includes(e))+ .forEach((preKey) => {+ if (isTraceFilterEnum(key) && diff.find((v) => v === key)) {+ // const preValue = preSelectedFilter?.get(key) || [];+ const preValue = getUserSelected.currentValue?.get(key) || [];+ // preSelectedFilter?.set(key, [...new Set([...preValue, preKey])]);+ getUserSelected.currentValue.set(key, [+ ...new Set([...preValue, preKey]),+ ]);+ }+ });+ });+ }++ if (response.statusCode === 200) {+ const preResponseSelected: TraceReducer['filterResponseSelected'] =+ new Set();++ const initialFilter = new Map<TraceFilterEnum, Record<string, string>>(+ parsedFilter.currentValue,+ );++ Object.keys(response.payload).forEach((key) => {+ const value = response.payload[key];+ if (isTraceFilterEnum(key)) {+ Object.keys(value).forEach((e) => preResponseSelected.add(e));++ initialFilter.set(key, {+ ...initialFilter.get(key),+ ...value,+ });+ }+ });++ dispatch({+ type: UPDATE_ALL_FILTERS,+ payload: {+ filter: initialFilter,+ selectedFilter: preSelectedFilter,+ filterToFetchData: getFilterToFetchData.currentValue,+ current: parsedQueryCurrent.currentValue,+ selectedTags: parsedSelectedTags.currentValue,+ userSelected: getUserSelected.currentValue,+ isFilterExclude: getIsFilterExcluded.currentValue,+ order: parsedQueryOrder.currentValue,+ pageSize: parsedPageSize.currentValue,+ orderParam: parsedOrderParams.currentValue,+ spanKind: parsedSpanKind.currentValue,+ },+ });+ } else {+ notify.error({+ message: response.error || 'Something went wrong',+ });+ }+dispatch({- type: UPDATE_ALL_FILTERS,+ type: UPDATE_TRACE_FILTER_LOADING,payload: {- filter: initialFilter,- selectedFilter: preSelectedFilter,- filterToFetchData: getFilterToFetchData.currentValue,- current: parsedQueryCurrent.currentValue,- selectedTags: parsedSelectedTags.currentValue,- userSelected: getUserSelected.currentValue,- isFilterExclude: getIsFilterExcluded.currentValue,- order: parsedQueryOrder.currentValue,- pageSize: parsedPageSize.currentValue,- orderParam: parsedOrderParams.currentValue,- spanKind: parsedSpanKind.currentValue,+ filterLoading: false,},});- } else {- notify.error({- message: response.error || 'Something went wrong',+ dispatch({+ type: UPDATE_TRACE_GRAPH_LOADING,+ payload: {+ loading: false,+ },+ });+ } catch (error) {+ console.error(error);+ dispatch({+ type: UPDATE_TRACE_FILTER_LOADING,+ payload: {+ filterLoading: false,+ },+ });+ dispatch({+ type: UPDATE_TRACE_GRAPH_LOADING,+ payload: {+ loading: false,+ },});}-- dispatch({- type: UPDATE_TRACE_FILTER_LOADING,- payload: {- filterLoading: false,- },- });- dispatch({- type: UPDATE_TRACE_GRAPH_LOADING,- payload: {- loading: false,- },- });- } catch (error) {- console.error(error);- dispatch({- type: UPDATE_TRACE_FILTER_LOADING,- payload: {- filterLoading: false,- },- });- dispatch({- type: UPDATE_TRACE_GRAPH_LOADING,- payload: {- loading: false,- },- });- }-};+ };diff --git a/frontend/src/store/actions/trace/getInitialSpansAggregate.ts b/frontend/src/store/actions/trace/getInitialSpansAggregate.tsindex d15a36972a..ec23dc48a5 100644--- a/frontend/src/store/actions/trace/getInitialSpansAggregate.ts+++ b/frontend/src/store/actions/trace/getInitialSpansAggregate.ts@@ -11,70 +11,42 @@ import { TraceReducer } from 'types/reducer/trace';import { updateURL } from './util';-export const GetSpansAggregate = (- props: GetSpansAggregateProps,- notify: NotificationInstance,-): ((- dispatch: Dispatch<AppActions>,- getState: Store<AppState>['getState'],-) => void) => async (dispatch, getState): Promise<void> => {- const { traces, globalTime } = getState();- const { spansAggregate } = traces;+export const GetSpansAggregate =+ (+ props: GetSpansAggregateProps,+ notify: NotificationInstance,+ ): ((+ dispatch: Dispatch<AppActions>,+ getState: Store<AppState>['getState'],+ ) => void) =>+ async (dispatch, getState): Promise<void> => {+ const { traces, globalTime } = getState();+ const { spansAggregate } = traces;- if (- globalTime.maxTime !== props.maxTime &&- globalTime.minTime !== props.minTime- ) {- return;- }-- if (traces.filterLoading) {- return;- }-- const { order = '' } = props;+ if (+ globalTime.maxTime !== props.maxTime &&+ globalTime.minTime !== props.minTime+ ) {+ return;+ }- try {- // triggering loading- dispatch({- type: UPDATE_SPANS_AGGREGATE,- payload: {- spansAggregate: {- currentPage: props.current,- loading: true,- data: spansAggregate.data,- error: false,- total: spansAggregate.total,- pageSize: props.pageSize,- order,- orderParam: spansAggregate.orderParam,- },- },- });+ if (traces.filterLoading) {+ return;+ }- const response = await getSpansAggregate({- end: props.maxTime,- start: props.minTime,- selectedFilter: props.selectedFilter,- limit: props.pageSize,- offset: props.current * props.pageSize - props.pageSize,- selectedTags: props.selectedTags,- isFilterExclude: traces.isFilterExclude,- order,- orderParam: props.orderParam,- spanKind: props.spanKind,- });+ const { order = '' } = props;- if (response.statusCode === 200) {+ try {+ // triggering loadingdispatch({type: UPDATE_SPANS_AGGREGATE,payload: {spansAggregate: {currentPage: props.current,- loading: false,- data: response.payload.spans,+ loading: true,+ data: spansAggregate.data,error: false,- total: response.payload.totalSpans,+ total: spansAggregate.total,pageSize: props.pageSize,order,orderParam: spansAggregate.orderParam,@@ -82,22 +54,69 @@ export const GetSpansAggregate = (},});- updateURL(- traces.selectedFilter,- traces.filterToFetchData,- props.current,- traces.selectedTags,- traces.isFilterExclude,- traces.userSelectedFilter,+ const response = await getSpansAggregate({+ end: props.maxTime,+ start: props.minTime,+ selectedFilter: props.selectedFilter,+ limit: props.pageSize,+ offset: props.current * props.pageSize - props.pageSize,+ selectedTags: props.selectedTags,+ isFilterExclude: traces.isFilterExclude,order,- traces.spansAggregate.pageSize,- spansAggregate.orderParam,- );- } else {- notify.error({- message: response.error || 'Something went wrong',+ orderParam: props.orderParam,+ spanKind: props.spanKind,});+ if (response.statusCode === 200) {+ dispatch({+ type: UPDATE_SPANS_AGGREGATE,+ payload: {+ spansAggregate: {+ currentPage: props.current,+ loading: false,+ data: response.payload.spans,+ error: false,+ total: response.payload.totalSpans,+ pageSize: props.pageSize,+ order,+ orderParam: spansAggregate.orderParam,+ },+ },+ });++ updateURL(+ traces.selectedFilter,+ traces.filterToFetchData,+ props.current,+ traces.selectedTags,+ traces.isFilterExclude,+ traces.userSelectedFilter,+ order,+ traces.spansAggregate.pageSize,+ spansAggregate.orderParam,+ );+ } else {+ notify.error({+ message: response.error || 'Something went wrong',+ });++ dispatch({+ type: UPDATE_SPANS_AGGREGATE,+ payload: {+ spansAggregate: {+ currentPage: props.current,+ loading: false,+ data: spansAggregate.data,+ error: true,+ total: spansAggregate.total,+ pageSize: props.pageSize,+ order,+ orderParam: spansAggregate.orderParam,+ },+ },+ });+ }+ } catch (error) {dispatch({type: UPDATE_SPANS_AGGREGATE,payload: {@@ -114,24 +133,7 @@ export const GetSpansAggregate = (},});}- } catch (error) {- dispatch({- type: UPDATE_SPANS_AGGREGATE,- payload: {- spansAggregate: {- currentPage: props.current,- loading: false,- data: spansAggregate.data,- error: true,- total: spansAggregate.total,- pageSize: props.pageSize,- order,- orderParam: spansAggregate.orderParam,- },- },- });- }-};+ };export interface GetSpansAggregateProps {maxTime: GlobalReducer['maxTime'];diff --git a/frontend/src/store/actions/trace/selectTraceFilter.ts b/frontend/src/store/actions/trace/selectTraceFilter.tsindex 06ba63eb42..2bf325e562 100644--- a/frontend/src/store/actions/trace/selectTraceFilter.ts+++ b/frontend/src/store/actions/trace/selectTraceFilter.ts@@ -6,48 +6,50 @@ import { TraceFilterEnum } from 'types/reducer/trace';import { updateURL } from './util';-export const SelectedTraceFilter = (props: {- topic: TraceFilterEnum;- value: string;-}): ((- dispatch: Dispatch<AppActions>,- getState: Store<AppState>['getState'],-) => void) => (_, getState): void => {- const { topic, value } = props;- const { traces } = getState();+export const SelectedTraceFilter =+ (props: {+ topic: TraceFilterEnum;+ value: string;+ }): ((+ dispatch: Dispatch<AppActions>,+ getState: Store<AppState>['getState'],+ ) => void) =>+ (_, getState): void => {+ const { topic, value } = props;+ const { traces } = getState();- const filter = traces.selectedFilter;+ const filter = traces.selectedFilter;- const isTopicPresent = filter.get(topic);+ const isTopicPresent = filter.get(topic);- // append the value- if (!isTopicPresent) {- filter.set(props.topic, [props.value]);- } else {- const isValuePresent =- isTopicPresent.find((e) => e === props.value) !== undefined;-- // check the value if present then remove the value- if (isValuePresent) {- filter.set(- props.topic,- isTopicPresent.filter((e) => e !== value),- );+ // append the value+ if (!isTopicPresent) {+ filter.set(props.topic, [props.value]);} else {- // if not present add into the array of string- filter.set(props.topic, [...isTopicPresent, props.value]);+ const isValuePresent =+ isTopicPresent.find((e) => e === props.value) !== undefined;++ // check the value if present then remove the value+ if (isValuePresent) {+ filter.set(+ props.topic,+ isTopicPresent.filter((e) => e !== value),+ );+ } else {+ // if not present add into the array of string+ filter.set(props.topic, [...isTopicPresent, props.value]);+ }}- }- updateURL(- filter,- traces.filterToFetchData,- traces.spansAggregate.currentPage,- traces.selectedTags,- traces.isFilterExclude,- traces.userSelectedFilter,- traces.spansAggregate.order,- traces.spansAggregate.pageSize,- traces.spansAggregate.orderParam,- );-};+ updateURL(+ filter,+ traces.filterToFetchData,+ traces.spansAggregate.currentPage,+ traces.selectedTags,+ traces.isFilterExclude,+ traces.userSelectedFilter,+ traces.spansAggregate.order,+ traces.spansAggregate.pageSize,+ traces.spansAggregate.orderParam,+ );+ };diff --git a/frontend/src/store/actions/trace/updateIsTagsError.ts b/frontend/src/store/actions/trace/updateIsTagsError.tsindex bb162fbde6..724fedcb97 100644--- a/frontend/src/store/actions/trace/updateIsTagsError.ts+++ b/frontend/src/store/actions/trace/updateIsTagsError.ts@@ -4,13 +4,15 @@ import AppActions from 'types/actions';import { UPDATE_IS_TAG_ERROR } from 'types/actions/trace';import { TraceReducer } from 'types/reducer/trace';-export const UpdateTagIsError = (- isTagModalError: TraceReducer['isTagModalError'],-): ((dispatch: Dispatch<AppActions>) => void) => (dispatch): void => {- dispatch({- type: UPDATE_IS_TAG_ERROR,- payload: {- isTagModalError,- },- });-};+export const UpdateTagIsError =+ (+ isTagModalError: TraceReducer['isTagModalError'],+ ): ((dispatch: Dispatch<AppActions>) => void) =>+ (dispatch): void => {+ dispatch({+ type: UPDATE_IS_TAG_ERROR,+ payload: {+ isTagModalError,+ },+ });+ };diff --git a/frontend/src/store/actions/trace/updateTagPanelVisiblity.ts b/frontend/src/store/actions/trace/updateTagPanelVisiblity.tsindex eee2176d3e..7196245bc9 100644--- a/frontend/src/store/actions/trace/updateTagPanelVisiblity.ts+++ b/frontend/src/store/actions/trace/updateTagPanelVisiblity.ts@@ -4,13 +4,15 @@ import AppActions from 'types/actions';import { UPDATE_TAG_MODAL_VISIBILITY } from 'types/actions/trace';import { TraceReducer } from 'types/reducer/trace';-export const UpdateTagVisibility = (- isTagModalOpen: TraceReducer['isTagModalOpen'],-): ((dispatch: Dispatch<AppActions>) => void) => (dispatch): void => {- dispatch({- type: UPDATE_TAG_MODAL_VISIBILITY,- payload: {- isTagModalOpen,- },- });-};+export const UpdateTagVisibility =+ (+ isTagModalOpen: TraceReducer['isTagModalOpen'],+ ): ((dispatch: Dispatch<AppActions>) => void) =>+ (dispatch): void => {+ dispatch({+ type: UPDATE_TAG_MODAL_VISIBILITY,+ payload: {+ isTagModalOpen,+ },+ });+ };diff --git a/frontend/src/store/actions/trace/updateTagsSelected.ts b/frontend/src/store/actions/trace/updateTagsSelected.tsindex e8ddc1ebcb..c94ac84b97 100644--- a/frontend/src/store/actions/trace/updateTagsSelected.ts+++ b/frontend/src/store/actions/trace/updateTagsSelected.ts@@ -4,13 +4,15 @@ import AppActions from 'types/actions';import { UPDATE_SELECTED_TAGS } from 'types/actions/trace';import { TraceReducer } from 'types/reducer/trace';-export const UpdateSelectedTags = (- selectedTags: TraceReducer['selectedTags'],-): ((dispatch: Dispatch<AppActions>) => void) => (dispatch): void => {- dispatch({- type: UPDATE_SELECTED_TAGS,- payload: {- selectedTags,- },- });-};+export const UpdateSelectedTags =+ (+ selectedTags: TraceReducer['selectedTags'],+ ): ((dispatch: Dispatch<AppActions>) => void) =>+ (dispatch): void => {+ dispatch({+ type: UPDATE_SELECTED_TAGS,+ payload: {+ selectedTags,+ },+ });+ };diff --git a/frontend/src/store/actions/trace/util.ts b/frontend/src/store/actions/trace/util.tsindex 29d16bdb09..b52cf43821 100644--- a/frontend/src/store/actions/trace/util.ts+++ b/frontend/src/store/actions/trace/util.ts@@ -52,10 +52,13 @@ export const updateURL = (}});- const preResultParams = preResult.reduce((acc, item) => {- acc[item.key] = item.value;- return acc;- }, {} as Record<string, string>);+ const preResultParams = preResult.reduce(+ (acc, item) => {+ acc[item.key] = item.value;+ return acc;+ },+ {} as Record<string, string>,+ );const queryParams = {selected: JSON.stringify(Object.fromEntries(selectedFilter)),diff --git a/frontend/src/store/actions/usage.ts b/frontend/src/store/actions/usage.tsindex adde693eed..73e2897056 100644--- a/frontend/src/store/actions/usage.ts+++ b/frontend/src/store/actions/usage.ts@@ -15,21 +15,18 @@ export interface GetUsageDataAction {payload: UsageDataItem[];}-export const getUsageData = (- minTime: number,- maxTime: number,- step: number,- service: string,-) => async (dispatch: Dispatch): Promise<void> => {- const requesString = `/usage?start=${toUTCEpoch(minTime)}&end=${toUTCEpoch(- maxTime,- )}&step=${step}&service=${service || ''}`;- // Step can only be multiple of 3600- const response = await api.get<UsageDataItem[]>(requesString);+export const getUsageData =+ (minTime: number, maxTime: number, step: number, service: string) =>+ async (dispatch: Dispatch): Promise<void> => {+ const requesString = `/usage?start=${toUTCEpoch(minTime)}&end=${toUTCEpoch(+ maxTime,+ )}&step=${step}&service=${service || ''}`;+ // Step can only be multiple of 3600+ const response = await api.get<UsageDataItem[]>(requesString);- dispatch<GetUsageDataAction>({- type: ActionTypes.getUsageData,- payload: response.data,- // PNOTE - response.data in the axios response has the actual API response- });-};+ dispatch<GetUsageDataAction>({+ type: ActionTypes.getUsageData,+ payload: response.data,+ // PNOTE - response.data in the axios response has the actual API response+ });+ };diff --git a/frontend/src/store/globalTime/__tests__/globalTimeStore.test.ts b/frontend/src/store/globalTime/__tests__/globalTimeStore.test.tsindex a75d956228..7375f96b46 100644--- a/frontend/src/store/globalTime/__tests__/globalTimeStore.test.ts+++ b/frontend/src/store/globalTime/__tests__/globalTimeStore.test.ts@@ -142,10 +142,8 @@ describe('globalTimeStore', () => {result.current.setSelectedTime(customTime);});- const {- minTime: resultMin,- maxTime: resultMax,- } = result.current.getMinMaxTime();+ const { minTime: resultMin, maxTime: resultMax } =+ result.current.getMinMaxTime();expect(resultMin).toBe(minTime);expect(resultMax).toBe(maxTime);});diff --git a/frontend/src/tests/mapQueryDataFromApi.test.ts b/frontend/src/tests/mapQueryDataFromApi.test.tsindex f787226cf7..568c58ffbe 100644--- a/frontend/src/tests/mapQueryDataFromApi.test.ts+++ b/frontend/src/tests/mapQueryDataFromApi.test.ts@@ -86,7 +86,7 @@ describe('mapQueryDataFromApi', (): void => {// filter overridden from V5 spec (no trailing space)expect(q.filter).toEqual({ expression: "service.name = 'adservice'" });// having overridden from V5 spec- expect(((q.having as unknown) as { expression: string }).expression).toBe(+ expect((q.having as unknown as { expression: string }).expression).toBe('avg(app.ads.count) != 0',);// orderBy preserved from basediff --git a/frontend/src/tests/test-utils.tsx b/frontend/src/tests/test-utils.tsxindex c27b66b1d1..b030b18e2a 100644--- a/frontend/src/tests/test-utils.tsx+++ b/frontend/src/tests/test-utils.tsx@@ -39,7 +39,7 @@ class ResizeObserverMock {disconnect(): void {}}-global.ResizeObserver = (ResizeObserverMock as unknown) as typeof ResizeObserver;+global.ResizeObserver = ResizeObserverMock as unknown as typeof ResizeObserver;const queryClient = new QueryClient({defaultOptions: {diff --git a/frontend/src/types/api/alerts/convert.ts b/frontend/src/types/api/alerts/convert.tsindex 56c4f7a3b7..3fd58120ff 100644--- a/frontend/src/types/api/alerts/convert.ts+++ b/frontend/src/types/api/alerts/convert.ts@@ -83,7 +83,7 @@ export function toPostableRuleDTO(version: local.version,disabled: local.disabled,};- return (payload as unknown) as RuletypesPostableRuleDTO;+ return payload as unknown as RuletypesPostableRuleDTO;}export function toPostableRuleDTOFromAlertDef(@@ -103,17 +103,17 @@ export function toPostableRuleDTOFromAlertDef(version: local.version,disabled: local.disabled,};- return (payload as unknown) as RuletypesPostableRuleDTO;+ return payload as unknown as RuletypesPostableRuleDTO;}export function fromRuleDTOToPostableRuleV2(dto: RuletypesRuleDTO,): PostableAlertRuleV2 {- return (dto as unknown) as PostableAlertRuleV2;+ return dto as unknown as PostableAlertRuleV2;}export function fromRuleDTOToAlertDef(dto: RuletypesRuleDTO): AlertDef {- return (dto as unknown) as AlertDef;+ return dto as unknown as AlertDef;}function toEQueryType(queryType: RuletypesQueryTypeDTO): EQueryType {diff --git a/frontend/src/types/api/dashboard/getAll.ts b/frontend/src/types/api/dashboard/getAll.tsindex 4110f03481..e726dfb42d 100644--- a/frontend/src/types/api/dashboard/getAll.ts+++ b/frontend/src/types/api/dashboard/getAll.ts@@ -21,10 +21,10 @@ export const VariableQueryTypeArr = ['CUSTOM','DYNAMIC',] as const;-export type TVariableQueryType = typeof VariableQueryTypeArr[number];+export type TVariableQueryType = (typeof VariableQueryTypeArr)[number];export const VariableSortTypeArr = ['DISABLED', 'ASC', 'DESC'] as const;-export type TSortVariableValuesType = typeof VariableSortTypeArr[number];+export type TSortVariableValuesType = (typeof VariableSortTypeArr)[number];export enum LegendPosition {BOTTOM = 'bottom',diff --git a/frontend/src/types/api/settings/getRetention.ts b/frontend/src/types/api/settings/getRetention.tsindex 55d9cf45c2..e53fc37c6f 100644--- a/frontend/src/types/api/settings/getRetention.ts+++ b/frontend/src/types/api/settings/getRetention.ts@@ -30,7 +30,7 @@ export type Props = TTTLType;export type PayloadProps<T> = T extends 'metrics'? PayloadPropsMetrics: T extends 'traces'- ? PayloadPropsTraces- : T extends 'logs'- ? PayloadPropsLogs- : never;+ ? PayloadPropsTraces+ : T extends 'logs'+ ? PayloadPropsLogs+ : never;diff --git a/frontend/src/types/common/operations.types.ts b/frontend/src/types/common/operations.types.tsindex de875b8981..a1ce717d19 100644--- a/frontend/src/types/common/operations.types.ts+++ b/frontend/src/types/common/operations.types.ts@@ -29,7 +29,7 @@ type UseQueryOperationsParams = Pick<QueryProps, 'index' | 'query'> &// Generic type that can work with both legacy and V5 query typesexport type HandleChangeQueryData<T = IBuilderQuery> = <Key extends keyof T,- Value extends T[Key]+ Value extends T[Key],>(key: Key,value: Value,@@ -37,7 +37,7 @@ export type HandleChangeQueryData<T = IBuilderQuery> = <export type HandleChangeTraceOperatorData<T = IBuilderTraceOperator> = <Key extends keyof T,- Value extends T[Key]+ Value extends T[Key],>(key: Key,value: Value,@@ -53,15 +53,13 @@ export type HandleChangeQueryDataV5 = HandleChangeQueryData<export type HandleChangeFormulaData = <Key extends keyof IBuilderFormula,- Value extends IBuilderFormula[Key]+ Value extends IBuilderFormula[Key],>(key: Key,value: Value,) => void;-export type UseQueryOperations = (- params: UseQueryOperationsParams,-) => {+export type UseQueryOperations = (params: UseQueryOperationsParams) => {isTracePanelType: boolean;isMetricsDataSource: boolean;operators: SelectOption<string, string>[];diff --git a/frontend/src/types/common/queryBuilder.ts b/frontend/src/types/common/queryBuilder.tsindex 66431eafe6..91c186bc0f 100644--- a/frontend/src/types/common/queryBuilder.ts+++ b/frontend/src/types/common/queryBuilder.ts@@ -276,7 +276,7 @@ export type QueryBuilderContextType = {redirectWithQueryBuilderData: (query: Query,searchParams?: Record<string, unknown>,- redirectToUrl?: typeof ROUTES[keyof typeof ROUTES],+ redirectToUrl?: (typeof ROUTES)[keyof typeof ROUTES],shallStringify?: boolean,newTab?: boolean,) => void;diff --git a/frontend/src/utils/__tests__/base-path.test.ts b/frontend/src/utils/__tests__/base-path.test.tsindex 5a2f5486d4..fef35321a6 100644--- a/frontend/src/utils/__tests__/base-path.test.ts+++ b/frontend/src/utils/__tests__/base-path.test.ts@@ -21,7 +21,9 @@ function loadModule(href?: string): BasePath {}afterEach(() => {- for (const el of document.head.querySelectorAll('base')) { el.remove(); }+ for (const el of document.head.querySelectorAll('base')) {+ el.remove();+ }});describe('at basePath="/"', () => {diff --git a/frontend/src/utils/__tests__/navigation.test.ts b/frontend/src/utils/__tests__/navigation.test.tsindex d83854dd39..3f99faaefd 100644--- a/frontend/src/utils/__tests__/navigation.test.ts+++ b/frontend/src/utils/__tests__/navigation.test.ts@@ -29,11 +29,12 @@ describe('navigation utilities', () => {afterEach(() => {window.open = originalWindowOpen;- for (const el of document.head.querySelectorAll('base')) { el.remove(); }+ for (const el of document.head.querySelectorAll('base')) {+ el.remove();+ }});describe('isModifierKeyPressed', () => {-it('returns true when metaKey is pressed (Cmd on Mac)', () => {const event = createMouseEvent({ metaKey: true });expect(isModifierKeyPressed(event)).toBe(true);diff --git a/frontend/src/utils/aggregationConverter.ts b/frontend/src/utils/aggregationConverter.tsindex 47355405e0..980f9ee5a7 100644--- a/frontend/src/utils/aggregationConverter.ts+++ b/frontend/src/utils/aggregationConverter.ts@@ -66,10 +66,8 @@ export function convertAggregationsToBaseAutocompleteData(};}// MetricAggregation- const {- metricName: aggMetricName,- spaceAggregation: aggSpaceAggregation,- } = agg;+ const { metricName: aggMetricName, spaceAggregation: aggSpaceAggregation } =+ agg;const displayKey = `${aggSpaceAggregation}(${aggMetricName})`;return {@@ -91,12 +89,8 @@ export function getAggregationOptionsForOrderBy(query: {aggregateAttribute?: { key: string };spaceAggregation?: string;}): BaseAutocompleteData[] {- const {- aggregations,- dataSource,- aggregateAttribute,- spaceAggregation,- } = query;+ const { aggregations, dataSource, aggregateAttribute, spaceAggregation } =+ query;return convertAggregationsToBaseAutocompleteData(aggregations,diff --git a/frontend/src/utils/compositeQueryToQueryEnvelope.ts b/frontend/src/utils/compositeQueryToQueryEnvelope.tsindex 55631f391d..4ee0e6814e 100644--- a/frontend/src/utils/compositeQueryToQueryEnvelope.ts+++ b/frontend/src/utils/compositeQueryToQueryEnvelope.ts@@ -41,13 +41,8 @@ function convertFormulasToV5(export function compositeQueryToQueryEnvelope(compositeQuery: ICompositeMetricQuery,): ICompositeMetricQuery {- const {- builderQueries,- promQueries,- chQueries,- panelType,- queryType,- } = compositeQuery;+ const { builderQueries, promQueries, chQueries, panelType, queryType } =+ compositeQuery;const regularQueries: BuilderQueryDataResourse = {};const formulaQueries: BuilderQueryDataResourse = {};diff --git a/frontend/src/utils/convertNewToOldQueryBuilder.ts b/frontend/src/utils/convertNewToOldQueryBuilder.tsindex 0500557545..1bbbb7248c 100644--- a/frontend/src/utils/convertNewToOldQueryBuilder.ts+++ b/frontend/src/utils/convertNewToOldQueryBuilder.ts@@ -29,7 +29,7 @@ export const convertBuilderQueryToIBuilderQuery = (// Determine data source based on signalconst dataSource = getDataSourceFromSignal(builderQuery.signal);- const result: IBuilderQuery = ({+ const result: IBuilderQuery = {...builderQuery,queryName: builderQuery.name,dataSource,@@ -46,7 +46,7 @@ export const convertBuilderQueryToIBuilderQuery = (columnName: order?.key?.name,order: order?.direction,})) || [],- } as unknown) as IBuilderQuery;+ } as unknown as IBuilderQuery;return result;};@@ -57,7 +57,7 @@ export const convertBuilderQueryToIBuilderQuery = (export const convertQueryBuilderFormulaToIBuilderFormula = (formula: QueryBuilderFormula,): IBuilderFormula => {- const result: IBuilderFormula = ({+ const result: IBuilderFormula = {...formula,expression: formula.expression,queryName: formula.name,@@ -67,7 +67,7 @@ export const convertQueryBuilderFormulaToIBuilderFormula = (columnName: order?.key?.name,order: order?.direction,})),- } as unknown) as IBuilderFormula;+ } as unknown as IBuilderFormula;return result;};diff --git a/frontend/src/utils/queryContextUtils.ts b/frontend/src/utils/queryContextUtils.tsindex 7090699fa8..04f5879e68 100644--- a/frontend/src/utils/queryContextUtils.ts+++ b/frontend/src/utils/queryContextUtils.ts@@ -703,13 +703,13 @@ export function getQueryContextAtCursor(keyToken: isInKeyBoundary? keyToken: isInOperatorBoundary || finalIsInValue- ? keyToken- : undefined,+ ? keyToken+ : undefined,operatorToken: isInOperatorBoundary? operatorToken: finalIsInValue- ? operatorToken- : undefined,+ ? operatorToken+ : undefined,valueToken: finalIsInValue ? valueToken : undefined,queryPairs: queryPairs,currentPair: currentPair,@@ -983,13 +983,13 @@ export function getQueryContextAtCursor(keyToken: tokenContext.isInKey? exactToken.text: tokenContext.isInOperator || tokenContext.isInValue- ? keyFromPair- : undefined,+ ? keyFromPair+ : undefined,operatorToken: tokenContext.isInOperator? exactToken.text: tokenContext.isInValue- ? operatorFromPair- : undefined,+ ? operatorFromPair+ : undefined,valueToken: tokenContext.isInValue ? exactToken.text : undefined,queryPairs: queryPairs,currentPair: currentPair,diff --git a/frontend/stylelint-rules/no-unsupported-asset-url.js b/frontend/stylelint-rules/no-unsupported-asset-url.jsindex 06384791d8..a1f314f5df 100644--- a/frontend/stylelint-rules/no-unsupported-asset-url.js+++ b/frontend/stylelint-rules/no-unsupported-asset-url.js@@ -34,7 +34,9 @@ const ruleName = 'local/no-unsupported-asset-url';* e.g. "url('/a.svg') url('/b.png') repeat" → ['/a.svg', '/b.png']*/function extractUrlPaths(value) {- if (typeof value !== 'string') {return [];}+ if (typeof value !== 'string') {+ return [];+ }const paths = [];const urlPattern = /url\(\s*['"]?([^'")\s]+)['"]?\s*\)/g;let match = urlPattern.exec(value);@@ -71,7 +73,9 @@ const messages = stylelint.utils.ruleMessages(ruleName, {*/const rule = (primaryOption) => {return (root, result) => {- if (!primaryOption) {return;}+ if (!primaryOption) {+ return;+ }root.walkDecls((decl) => {const urlPaths = extractUrlPaths(decl.value);diff --git a/frontend/vite.config.ts b/frontend/vite.config.tsindex 8103262e58..c936389a1c 100644--- a/frontend/vite.config.ts+++ b/frontend/vite.config.ts@@ -38,124 +38,122 @@ function rawMarkdownPlugin(): Plugin {};}-export default defineConfig(- ({ mode }): UserConfig => {- const env = loadEnv(mode, process.cwd(), '');- // Base path for serving the app (e.g., '/signoz/'). Defaults to '/'.- const basePath = env.VITE_BASE_PATH || '/';+export default defineConfig(({ mode }): UserConfig => {+ const env = loadEnv(mode, process.cwd(), '');+ // Base path for serving the app (e.g., '/signoz/'). Defaults to '/'.+ const basePath = env.VITE_BASE_PATH || '/';- const plugins = [- tsconfigPaths(),- rawMarkdownPlugin(),- devBasePathPlugin(basePath),- react(),- createHtmlPlugin({- inject: {- data: {- PYLON_APP_ID: env.VITE_PYLON_APP_ID || '',- APPCUES_APP_ID: env.VITE_APPCUES_APP_ID || '',- },+ const plugins = [+ tsconfigPaths(),+ rawMarkdownPlugin(),+ devBasePathPlugin(basePath),+ react(),+ createHtmlPlugin({+ inject: {+ data: {+ PYLON_APP_ID: env.VITE_PYLON_APP_ID || '',+ APPCUES_APP_ID: env.VITE_APPCUES_APP_ID || '',},- }),- vitePluginChecker({- typescript: true,- // this doubles the build tim- // disabled to use Biome/tsgo (in the future) as alternative- enableBuild: false,- }),- ];+ },+ }),+ vitePluginChecker({+ typescript: true,+ // this doubles the build tim+ // disabled to use Biome/tsgo (in the future) as alternative+ enableBuild: false,+ }),+ ];- if (env.VITE_SENTRY_AUTH_TOKEN) {- plugins.push(- sentryVitePlugin({- authToken: env.VITE_SENTRY_AUTH_TOKEN,- org: env.VITE_SENTRY_ORG,- project: env.VITE_SENTRY_PROJECT_ID,- }),- );- }+ if (env.VITE_SENTRY_AUTH_TOKEN) {+ plugins.push(+ sentryVitePlugin({+ authToken: env.VITE_SENTRY_AUTH_TOKEN,+ org: env.VITE_SENTRY_ORG,+ project: env.VITE_SENTRY_PROJECT_ID,+ }),+ );+ }- if (env.BUNDLE_ANALYSER === 'true') {- plugins.push(- visualizer({- open: true,- gzipSize: true,- brotliSize: true,- }),- );- }+ if (env.BUNDLE_ANALYSER === 'true') {+ plugins.push(+ visualizer({+ open: true,+ gzipSize: true,+ brotliSize: true,+ }),+ );+ }- if (mode === 'production') {- plugins.push(- ViteImageOptimizer({- jpeg: { quality: 80 },- jpg: { quality: 80 },- }),- );- plugins.push(viteCompression());- }+ if (mode === 'production') {+ plugins.push(+ ViteImageOptimizer({+ jpeg: { quality: 80 },+ jpg: { quality: 80 },+ }),+ );+ plugins.push(viteCompression());+ }- return {- plugins,- resolve: {- alias: {- '@': resolve(__dirname, './src'),- utils: resolve(__dirname, './src/utils'),- types: resolve(__dirname, './src/types'),- constants: resolve(__dirname, './src/constants'),- parser: resolve(__dirname, './src/parser'),- providers: resolve(__dirname, './src/providers'),- lib: resolve(__dirname, './src/lib'),- },+ return {+ plugins,+ resolve: {+ alias: {+ '@': resolve(__dirname, './src'),+ utils: resolve(__dirname, './src/utils'),+ types: resolve(__dirname, './src/types'),+ constants: resolve(__dirname, './src/constants'),+ parser: resolve(__dirname, './src/parser'),+ providers: resolve(__dirname, './src/providers'),+ lib: resolve(__dirname, './src/lib'),},- css: {- preprocessorOptions: {- less: {- javascriptEnabled: true,- },- },- modules: {- localsConvention: 'camelCaseOnly',+ },+ css: {+ preprocessorOptions: {+ less: {+ javascriptEnabled: true,},},- define: {- // TODO: Remove this in favor of import.meta.env- 'process.env.NODE_ENV': JSON.stringify(mode),- 'process.env.FRONTEND_API_ENDPOINT': JSON.stringify(- env.VITE_FRONTEND_API_ENDPOINT,- ),- 'process.env.WEBSOCKET_API_ENDPOINT': JSON.stringify(- env.VITE_WEBSOCKET_API_ENDPOINT,- ),- 'process.env.PYLON_APP_ID': JSON.stringify(env.VITE_PYLON_APP_ID),- 'process.env.PYLON_IDENTITY_SECRET': JSON.stringify(- env.VITE_PYLON_IDENTITY_SECRET,- ),- 'process.env.APPCUES_APP_ID': JSON.stringify(env.VITE_APPCUES_APP_ID),- 'process.env.POSTHOG_KEY': JSON.stringify(env.VITE_POSTHOG_KEY),- 'process.env.SENTRY_ORG': JSON.stringify(env.VITE_SENTRY_ORG),- 'process.env.SENTRY_PROJECT_ID': JSON.stringify(env.VITE_SENTRY_PROJECT_ID),- 'process.env.SENTRY_DSN': JSON.stringify(env.VITE_SENTRY_DSN),- 'process.env.TUNNEL_URL': JSON.stringify(env.VITE_TUNNEL_URL),- 'process.env.TUNNEL_DOMAIN': JSON.stringify(env.VITE_TUNNEL_DOMAIN),- 'process.env.DOCS_BASE_URL': JSON.stringify(env.VITE_DOCS_BASE_URL),+ modules: {+ localsConvention: 'camelCaseOnly',},- // In production, use relative paths so assets work with any base path injected by the backend.+ },+ define: {+ // TODO: Remove this in favor of import.meta.env+ 'process.env.NODE_ENV': JSON.stringify(mode),+ 'process.env.FRONTEND_API_ENDPOINT': JSON.stringify(+ env.VITE_FRONTEND_API_ENDPOINT,+ ),+ 'process.env.WEBSOCKET_API_ENDPOINT': JSON.stringify(+ env.VITE_WEBSOCKET_API_ENDPOINT,+ ),+ 'process.env.PYLON_APP_ID': JSON.stringify(env.VITE_PYLON_APP_ID),+ 'process.env.PYLON_IDENTITY_SECRET': JSON.stringify(+ env.VITE_PYLON_IDENTITY_SECRET,+ ),+ 'process.env.APPCUES_APP_ID': JSON.stringify(env.VITE_APPCUES_APP_ID),+ 'process.env.POSTHOG_KEY': JSON.stringify(env.VITE_POSTHOG_KEY),+ 'process.env.SENTRY_ORG': JSON.stringify(env.VITE_SENTRY_ORG),+ 'process.env.SENTRY_PROJECT_ID': JSON.stringify(env.VITE_SENTRY_PROJECT_ID),+ 'process.env.SENTRY_DSN': JSON.stringify(env.VITE_SENTRY_DSN),+ 'process.env.TUNNEL_URL': JSON.stringify(env.VITE_TUNNEL_URL),+ 'process.env.TUNNEL_DOMAIN': JSON.stringify(env.VITE_TUNNEL_DOMAIN),+ 'process.env.DOCS_BASE_URL': JSON.stringify(env.VITE_DOCS_BASE_URL),+ },+ // In production, use relative paths so assets work with any base path injected by the backend.// In dev, use the configured base path for proper HMR and routing.base: mode === 'production' ? './' : basePath,- build: {- sourcemap: true,- outDir: 'build',- cssMinify: 'esbuild',- },- server: {- open: true,- port: 3301,- host: true,- },- preview: {- port: 3301,- },- };- },-);+ build: {+ sourcemap: true,+ outDir: 'build',+ cssMinify: 'esbuild',+ },+ server: {+ open: true,+ port: 3301,+ host: true,+ },+ preview: {+ port: 3301,+ },+ };+});