navigationConfiguration.tsx 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. import FeatureBadge from 'sentry/components/featureBadge';
  2. import {t} from 'sentry/locale';
  3. import type {NavigationSection} from 'sentry/views/settings/types';
  4. const pathPrefix = '/settings/:orgId';
  5. const organizationNavigation: NavigationSection[] = [
  6. {
  7. name: t('Organization'),
  8. items: [
  9. {
  10. path: `${pathPrefix}/`,
  11. title: t('General Settings'),
  12. index: true,
  13. description: t('Configure general settings for an organization'),
  14. id: 'general',
  15. },
  16. {
  17. path: `${pathPrefix}/projects/`,
  18. title: t('Projects'),
  19. description: t("View and manage an organization's projects"),
  20. id: 'projects',
  21. },
  22. {
  23. path: `${pathPrefix}/teams/`,
  24. title: t('Teams'),
  25. description: t("Manage an organization's teams"),
  26. id: 'teams',
  27. },
  28. {
  29. path: `${pathPrefix}/members/`,
  30. title: t('Members'),
  31. show: ({access}) => access!.has('member:read'),
  32. description: t('Manage user membership for an organization'),
  33. id: 'members',
  34. },
  35. {
  36. path: `${pathPrefix}/security-and-privacy/`,
  37. title: t('Security & Privacy'),
  38. description: t(
  39. 'Configuration related to dealing with sensitive data and other security settings. (Data Scrubbing, Data Privacy, Data Scrubbing)'
  40. ),
  41. id: 'security-and-privacy',
  42. },
  43. {
  44. path: `${pathPrefix}/auth/`,
  45. title: t('Auth'),
  46. description: t('Configure single sign-on'),
  47. id: 'sso',
  48. },
  49. {
  50. path: `${pathPrefix}/api-keys/`,
  51. title: t('API Keys'),
  52. show: ({access, features}) =>
  53. features!.has('api-keys') && access!.has('org:admin'),
  54. id: 'api-keys',
  55. },
  56. {
  57. path: `${pathPrefix}/audit-log/`,
  58. title: t('Audit Log'),
  59. description: t('View the audit log for an organization'),
  60. id: 'audit-log',
  61. },
  62. {
  63. path: `${pathPrefix}/rate-limits/`,
  64. title: t('Rate Limits'),
  65. show: ({access, features}) =>
  66. features!.has('legacy-rate-limits') && access!.has('org:write'),
  67. description: t('Configure rate limits for all projects in the organization'),
  68. id: 'rate-limits',
  69. },
  70. {
  71. path: `${pathPrefix}/relay/`,
  72. title: t('Relay'),
  73. description: t('Manage relays connected to the organization'),
  74. id: 'relay',
  75. },
  76. {
  77. path: `${pathPrefix}/repos/`,
  78. title: t('Repositories'),
  79. description: t('Manage repositories connected to the organization'),
  80. id: 'repos',
  81. },
  82. {
  83. path: `${pathPrefix}/integrations/`,
  84. title: t('Integrations'),
  85. description: t(
  86. 'Manage organization-level integrations, including: Slack, Github, Bitbucket, Jira, and Azure DevOps'
  87. ),
  88. id: 'integrations',
  89. recordAnalytics: true,
  90. },
  91. {
  92. path: `${pathPrefix}/early-features/`,
  93. title: t('Early Features'),
  94. description: t('Manage early access features'),
  95. badge: () => <FeatureBadge type="new" />,
  96. show: ({isSelfHosted}) => isSelfHosted || false,
  97. id: 'early-features',
  98. recordAnalytics: true,
  99. },
  100. ],
  101. },
  102. {
  103. name: t('Developer Settings'),
  104. items: [
  105. {
  106. path: `${pathPrefix}/auth-tokens/`,
  107. title: t('Auth Tokens'),
  108. description: t('Manage organization auth tokens'),
  109. id: 'auth-tokens',
  110. },
  111. {
  112. path: `${pathPrefix}/developer-settings/`,
  113. title: t('Custom Integrations'),
  114. description: t('Manage custom integrations'),
  115. id: 'developer-settings',
  116. },
  117. ],
  118. },
  119. ];
  120. export default organizationNavigation;