Raj Kamal Singh ed3017d247
chore: add logs pipelines nav and update logs pipelines title and routes (#3858)
* chore: update logs pipelines title and routes

* chore: add nav for logs pipelines

* feat: debounced pipelines sarch on change, navigation text changes

* fix: get lint passing

* fix: update snapshots for tests

---------

Co-authored-by: Yunus A M <myounis.ar@live.com>
2023-11-01 20:37:27 +05:30

51 lines
2.3 KiB
TypeScript

import { QueryParams } from 'constants/query';
import ROUTES from 'constants/routes';
import { themeColors } from 'constants/theme';
export const styles = { background: '#1f1f1f' };
export const subMenuStyles = {
background: '#1f1f1f',
margin: '0rem',
width: '100%',
color: themeColors.gainsboro,
};
export const routeConfig: Record<string, QueryParams[]> = {
[ROUTES.SERVICE_METRICS]: [QueryParams.resourceAttributes],
[ROUTES.SERVICE_MAP]: [QueryParams.resourceAttributes],
[ROUTES.ALL_ERROR]: [QueryParams.resourceAttributes],
[ROUTES.ALERTS_NEW]: [QueryParams.resourceAttributes],
[ROUTES.ALL_CHANNELS]: [QueryParams.resourceAttributes],
[ROUTES.ALL_DASHBOARD]: [QueryParams.resourceAttributes],
[ROUTES.APPLICATION]: [QueryParams.resourceAttributes],
[ROUTES.CHANNELS_EDIT]: [QueryParams.resourceAttributes],
[ROUTES.CHANNELS_NEW]: [QueryParams.resourceAttributes],
[ROUTES.DASHBOARD]: [QueryParams.resourceAttributes],
[ROUTES.DASHBOARD_WIDGET]: [QueryParams.resourceAttributes],
[ROUTES.EDIT_ALERTS]: [QueryParams.resourceAttributes],
[ROUTES.ERROR_DETAIL]: [QueryParams.resourceAttributes],
[ROUTES.HOME_PAGE]: [QueryParams.resourceAttributes],
[ROUTES.GET_STARTED]: [QueryParams.resourceAttributes],
[ROUTES.LIST_ALL_ALERT]: [QueryParams.resourceAttributes],
[ROUTES.LIST_LICENSES]: [QueryParams.resourceAttributes],
[ROUTES.LOGIN]: [QueryParams.resourceAttributes],
[ROUTES.LOGS]: [QueryParams.resourceAttributes],
[ROUTES.MY_SETTINGS]: [QueryParams.resourceAttributes],
[ROUTES.NOT_FOUND]: [QueryParams.resourceAttributes],
[ROUTES.ORG_SETTINGS]: [QueryParams.resourceAttributes],
[ROUTES.PASSWORD_RESET]: [QueryParams.resourceAttributes],
[ROUTES.SETTINGS]: [QueryParams.resourceAttributes],
[ROUTES.SIGN_UP]: [QueryParams.resourceAttributes],
[ROUTES.SOMETHING_WENT_WRONG]: [QueryParams.resourceAttributes],
[ROUTES.TRACES_EXPLORER]: [QueryParams.resourceAttributes],
[ROUTES.TRACE]: [QueryParams.resourceAttributes],
[ROUTES.TRACE_DETAIL]: [QueryParams.resourceAttributes],
[ROUTES.UN_AUTHORIZED]: [QueryParams.resourceAttributes],
[ROUTES.USAGE_EXPLORER]: [QueryParams.resourceAttributes],
[ROUTES.VERSION]: [QueryParams.resourceAttributes],
[ROUTES.TRACE_EXPLORER]: [QueryParams.resourceAttributes],
[ROUTES.LOGS_PIPELINES]: [QueryParams.resourceAttributes],
[ROUTES.WORKSPACE_LOCKED]: [QueryParams.resourceAttributes],
};