navigationConfiguration.tsx 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. import {t} from 'sentry/locale';
  2. import {NavigationSection} from 'sentry/views/settings/types';
  3. const pathPrefix = '/settings/:orgId';
  4. const organizationNavigation: NavigationSection[] = [
  5. {
  6. name: t('Organization'),
  7. items: [
  8. {
  9. path: `${pathPrefix}/`,
  10. title: t('General Settings'),
  11. index: true,
  12. description: t('Configure general settings for an organization'),
  13. id: 'general',
  14. },
  15. {
  16. path: `${pathPrefix}/projects/`,
  17. title: t('Projects'),
  18. description: t("View and manage an organization's projects"),
  19. id: 'projects',
  20. },
  21. {
  22. path: `${pathPrefix}/teams/`,
  23. title: t('Teams'),
  24. description: t("Manage an organization's teams"),
  25. id: 'teams',
  26. },
  27. {
  28. path: `${pathPrefix}/members/`,
  29. title: t('Members'),
  30. show: ({access}) => access!.has('member:read'),
  31. description: t('Manage user membership for an organization'),
  32. id: 'members',
  33. },
  34. {
  35. path: `${pathPrefix}/security-and-privacy/`,
  36. title: t('Security & Privacy'),
  37. description: t(
  38. 'Configuration related to dealing with sensitive data and other security settings. (Data Scrubbing, Data Privacy, Data Scrubbing)'
  39. ),
  40. id: 'security-and-privacy',
  41. },
  42. {
  43. path: `${pathPrefix}/auth/`,
  44. title: t('Auth'),
  45. description: t('Configure single sign-on'),
  46. id: 'sso',
  47. },
  48. {
  49. path: `${pathPrefix}/api-keys/`,
  50. title: t('API Keys'),
  51. show: ({access, features}) =>
  52. features!.has('api-keys') && access!.has('org:admin'),
  53. id: 'api-keys',
  54. },
  55. {
  56. path: `${pathPrefix}/audit-log/`,
  57. title: t('Audit Log'),
  58. show: ({access}) => access!.has('org:write'),
  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}/developer-settings/`,
  93. title: t('Developer Settings'),
  94. description: t('Manage developer applications'),
  95. id: 'developer-settings',
  96. },
  97. ],
  98. },
  99. ];
  100. export default organizationNavigation;