mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-20 00:31:08 +08:00

* feat: added Messaging queue detail page * feat: added MQDetails - tables - consumer, producer & network latency * feat: added MQConfigOption - with dummy responses * feat: configured query-range and autocomplete against the staging setup * feat: added queryparams and linked config options with graph * feat: added shareable link, cleanup code and connected details table with graph * feat: fixed comments * Messaging queue overview (#5782) * feat: added messaging queue overview page * feat: added get-started links * feat: fixed comments * feat: messaging queue misc tasks (#5785) * feat: added lightMode styles * feat: misc fix * feat: misc fix * feat: added customer tooltip info text * feat: removed reset btn until the funcitonality is clear * feat: fixed comments * feat: fixed comments and added onDragSelect * feat: added placeholder doc link for get-started for non-cloud
105 lines
3.8 KiB
TypeScript
105 lines
3.8 KiB
TypeScript
import ROUTES from 'constants/routes';
|
|
import { ROLES } from 'types/roles';
|
|
|
|
export type ComponentTypes =
|
|
| 'current_org_settings'
|
|
| 'invite_members'
|
|
| 'create_new_dashboards'
|
|
| 'import_dashboard'
|
|
| 'export_dashboard'
|
|
| 'add_new_alert'
|
|
| 'add_new_channel'
|
|
| 'set_retention_period'
|
|
| 'action'
|
|
| 'save_layout'
|
|
| 'edit_dashboard'
|
|
| 'delete_widget'
|
|
| 'new_dashboard'
|
|
| 'new_alert_action'
|
|
| 'edit_widget'
|
|
| 'add_panel'
|
|
| 'page_pipelines'
|
|
| 'edit_locked_dashboard'
|
|
| 'add_panel_locked_dashboard';
|
|
|
|
export const componentPermission: Record<ComponentTypes, ROLES[]> = {
|
|
current_org_settings: ['ADMIN'],
|
|
invite_members: ['ADMIN'],
|
|
create_new_dashboards: ['ADMIN', 'EDITOR'],
|
|
import_dashboard: ['ADMIN', 'EDITOR'],
|
|
export_dashboard: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
add_new_alert: ['ADMIN', 'EDITOR'],
|
|
add_new_channel: ['ADMIN'],
|
|
set_retention_period: ['ADMIN'],
|
|
action: ['ADMIN', 'EDITOR'],
|
|
save_layout: ['ADMIN', 'EDITOR', 'AUTHOR'],
|
|
edit_dashboard: ['ADMIN', 'EDITOR', 'AUTHOR'],
|
|
delete_widget: ['ADMIN', 'EDITOR', 'AUTHOR'],
|
|
new_dashboard: ['ADMIN', 'EDITOR'],
|
|
new_alert_action: ['ADMIN'],
|
|
edit_widget: ['ADMIN', 'EDITOR'],
|
|
add_panel: ['ADMIN', 'EDITOR', 'AUTHOR'],
|
|
page_pipelines: ['ADMIN', 'EDITOR'],
|
|
edit_locked_dashboard: ['ADMIN', 'AUTHOR'],
|
|
add_panel_locked_dashboard: ['ADMIN', 'AUTHOR'],
|
|
};
|
|
|
|
export const routePermission: Record<keyof typeof ROUTES, ROLES[]> = {
|
|
ALERTS_NEW: ['ADMIN', 'EDITOR'],
|
|
ORG_SETTINGS: ['ADMIN'],
|
|
MY_SETTINGS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
SERVICE_MAP: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
ALL_CHANNELS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
INGESTION_SETTINGS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
ALL_DASHBOARD: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
MESSAGING_QUEUES: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
MESSAGING_QUEUES_DETAIL: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
ALL_ERROR: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
APPLICATION: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
CHANNELS_EDIT: ['ADMIN'],
|
|
CHANNELS_NEW: ['ADMIN'],
|
|
DASHBOARD: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
DASHBOARD_WIDGET: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
EDIT_ALERTS: ['ADMIN'],
|
|
ERROR_DETAIL: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
HOME_PAGE: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
LIST_ALL_ALERT: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
LOGIN: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
NOT_FOUND: ['ADMIN', 'VIEWER', 'EDITOR'],
|
|
PASSWORD_RESET: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
SERVICE_METRICS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
SETTINGS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
SIGN_UP: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
TRACES_EXPLORER: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
TRACE: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
TRACE_DETAIL: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
UN_AUTHORIZED: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
USAGE_EXPLORER: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
VERSION: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
LOGS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
LOGS_EXPLORER: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
LIVE_LOGS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
LIST_LICENSES: ['ADMIN'],
|
|
LOGS_INDEX_FIELDS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
LOGS_PIPELINES: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
TRACE_EXPLORER: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
GET_STARTED: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
GET_STARTED_APPLICATION_MONITORING: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
GET_STARTED_INFRASTRUCTURE_MONITORING: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
GET_STARTED_LOGS_MANAGEMENT: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
GET_STARTED_AWS_MONITORING: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
GET_STARTED_AZURE_MONITORING: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
WORKSPACE_LOCKED: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
BILLING: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
SUPPORT: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
SOMETHING_WENT_WRONG: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
LOGS_SAVE_VIEWS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
TRACES_SAVE_VIEWS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
API_KEYS: ['ADMIN'],
|
|
LOGS_BASE: [],
|
|
OLD_LOGS_EXPLORER: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
SHORTCUTS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
INTEGRATIONS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
SERVICE_TOP_LEVEL_OPERATIONS: ['ADMIN', 'EDITOR', 'VIEWER'],
|
|
};
|