Yunus M 5b858f2963
Billing UI (#3711)
* feat: integrate billing api and wire up billing ui

* feat: show billing to admin only if on plans other than basic plan

* feat: show billing to admin only if on plans other than basic plan

* feat: update notfound snapshot

* chore: fix billing sidenav logic

* chore: fix several bugs

* chore: backend fix for billing

* fix: window.open pop blocker issue and error ui (#3750)

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Rajat Dabade <rajat@signoz.io>
2023-10-16 23:57:44 +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.PIPELINES]: [QueryParams.resourceAttributes],
[ROUTES.WORKSPACE_LOCKED]: [QueryParams.resourceAttributes],
};