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

84 lines
1.6 KiB
TypeScript

import {
AlertOutlined,
AlignLeftOutlined,
BarChartOutlined,
BugOutlined,
DashboardFilled,
DeploymentUnitOutlined,
FileDoneOutlined,
LineChartOutlined,
MenuOutlined,
RocketOutlined,
SettingOutlined,
} from '@ant-design/icons';
import ROUTES from 'constants/routes';
import { SidebarMenu } from './sideNav.types';
const menuItems: SidebarMenu[] = [
{
key: ROUTES.GET_STARTED,
label: 'Get Started',
icon: <RocketOutlined rotate={45} />,
},
{
key: ROUTES.APPLICATION,
label: 'Services',
icon: <BarChartOutlined />,
},
{
key: ROUTES.TRACE,
label: 'Traces',
icon: <MenuOutlined />,
},
{
key: ROUTES.LOGS_EXPLORER,
label: 'Logs',
icon: <AlignLeftOutlined />,
},
{
key: ROUTES.ALL_DASHBOARD,
label: 'Dashboards',
icon: <DashboardFilled />,
},
{
key: ROUTES.LIST_ALL_ALERT,
label: 'Alerts',
icon: <AlertOutlined />,
},
{
key: ROUTES.ALL_ERROR,
label: 'Exceptions',
icon: <BugOutlined />,
},
{
key: ROUTES.SERVICE_MAP,
label: 'Service Map',
icon: <DeploymentUnitOutlined />,
},
{
key: ROUTES.USAGE_EXPLORER,
label: 'Usage Explorer',
icon: <LineChartOutlined />,
},
{
key: ROUTES.BILLING,
label: 'Billing',
icon: <FileDoneOutlined />,
},
{
key: ROUTES.SETTINGS,
label: 'Settings',
icon: <SettingOutlined />,
},
];
/** Mapping of some newly added routes and their corresponding active sidebar menu key */
export const NEW_ROUTES_MENU_ITEM_KEY_MAP = {
[ROUTES.TRACES_EXPLORER]: ROUTES.TRACE,
[ROUTES.TRACE_EXPLORER]: ROUTES.TRACE,
[ROUTES.LOGS_EXPLORER]: ROUTES.LOGS_EXPLORER,
};
export default menuItems;