platformCategories.tsx 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. // Mirrors src/sentry/utils/platform_categories.py
  2. // When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
  3. import {t} from 'sentry/locale';
  4. export const popularPlatformCategories = [
  5. 'javascript',
  6. 'javascript-react',
  7. 'javascript-nextjs',
  8. 'python-django',
  9. 'python',
  10. 'python-flask',
  11. 'python-fastapi',
  12. 'ruby-rails',
  13. 'node-express',
  14. 'php-laravel',
  15. 'java',
  16. 'java-spring-boot',
  17. 'dotnet',
  18. 'dotnet-aspnetcore',
  19. 'csharp',
  20. 'go',
  21. 'php',
  22. 'ruby',
  23. 'node',
  24. 'react-native',
  25. 'javascript-angular',
  26. 'javascript-vue',
  27. 'android',
  28. 'apple-ios',
  29. 'flutter',
  30. 'dart-flutter',
  31. 'unity',
  32. ] as const;
  33. export const frontend = [
  34. 'dart',
  35. 'javascript',
  36. 'javascript-react',
  37. 'javascript-angular',
  38. 'javascript-angularjs',
  39. 'javascript-backbone',
  40. 'javascript-ember',
  41. 'javascript-gatsby',
  42. 'javascript-vue',
  43. 'javascript-nextjs',
  44. 'javascript-remix',
  45. 'javascript-svelte',
  46. 'unity',
  47. ] as const;
  48. export const mobile = [
  49. 'android',
  50. 'apple-ios',
  51. 'cordova',
  52. 'capacitor',
  53. 'javascript-cordova',
  54. 'javascript-capacitor',
  55. 'ionic',
  56. 'react-native',
  57. 'flutter',
  58. 'dart-flutter',
  59. 'unity',
  60. 'dotnet-maui',
  61. 'dotnet-xamarin',
  62. 'unreal',
  63. // Old platforms
  64. 'java-android',
  65. 'cocoa-objc',
  66. 'cocoa-swift',
  67. ] as const;
  68. export const backend = [
  69. 'dotnet',
  70. 'dotnet-aspnetcore',
  71. 'dotnet-aspnet',
  72. 'elixir',
  73. 'go',
  74. 'go-http',
  75. 'java',
  76. 'java-appengine',
  77. 'java-log4j',
  78. 'java-log4j2',
  79. 'java-logback',
  80. 'java-logging',
  81. 'java-spring',
  82. 'java-spring-boot',
  83. 'native',
  84. 'node',
  85. 'node-express',
  86. 'node-koa',
  87. 'node-connect',
  88. 'perl',
  89. 'php',
  90. 'php-laravel',
  91. 'php-monolog',
  92. 'php-symfony2',
  93. 'python',
  94. 'python-django',
  95. 'python-flask',
  96. 'python-fastapi',
  97. 'python-starlette',
  98. 'python-sanic',
  99. 'python-celery',
  100. 'python-bottle',
  101. 'python-pylons',
  102. 'python-pyramid',
  103. 'python-tornado',
  104. 'python-rq',
  105. 'ruby',
  106. 'ruby-rails',
  107. 'ruby-rack',
  108. 'rust',
  109. 'kotlin',
  110. ] as const;
  111. export const serverless = [
  112. 'python-awslambda',
  113. 'python-azurefunctions',
  114. 'python-gcpfunctions',
  115. 'node-awslambda',
  116. 'node-azurefunctions',
  117. 'node-gcpfunctions',
  118. 'dotnet-awslambda',
  119. 'dotnet-gcpfunctions',
  120. ] as const;
  121. export const desktop = [
  122. 'apple-macos',
  123. 'dotnet',
  124. 'dotnet-winforms',
  125. 'dotnet-wpf',
  126. 'dotnet-maui',
  127. 'java',
  128. 'electron',
  129. 'javascript-electron',
  130. 'native',
  131. 'native-crashpad',
  132. 'native-breakpad',
  133. 'native-minidump',
  134. 'native-qt',
  135. 'minidump',
  136. 'unity',
  137. 'flutter',
  138. 'kotlin',
  139. 'unreal',
  140. ] as const;
  141. const categoryList = [
  142. {id: 'popular', name: t('Popular'), platforms: popularPlatformCategories},
  143. {id: 'browser', name: t('Browser'), platforms: frontend},
  144. {id: 'server', name: t('Server'), platforms: backend},
  145. {id: 'mobile', name: t('Mobile'), platforms: mobile},
  146. {id: 'desktop', name: t('Desktop'), platforms: desktop},
  147. {id: 'serverless', name: t('Serverless'), platforms: serverless},
  148. ] as const;
  149. export const sourceMaps: PlatformKey[] = [
  150. ...frontend,
  151. 'react-native',
  152. 'cordova',
  153. 'electron',
  154. ];
  155. export const tracing = [
  156. 'python-tracing',
  157. 'node-tracing',
  158. 'react-native-tracing',
  159. ] as const;
  160. export const performance = [
  161. 'javascript',
  162. 'javascript-ember',
  163. 'javascript-react',
  164. 'javascript-vue',
  165. 'php',
  166. 'php-laravel',
  167. 'python',
  168. 'python-django',
  169. 'python-flask',
  170. 'python-fastapi',
  171. 'python-starlette',
  172. 'python-sanic',
  173. 'python-celery',
  174. 'python-bottle',
  175. 'python-pylons',
  176. 'python-pyramid',
  177. 'python-tornado',
  178. 'python-rq',
  179. 'node',
  180. 'node-express',
  181. 'node-koa',
  182. 'node-connect',
  183. ];
  184. // List of platforms that have performance onboarding checklist content
  185. export const withPerformanceOnboarding: Set<PlatformKey> = new Set([
  186. 'javascript',
  187. 'javascript-react',
  188. ]);
  189. // List of platforms that do not have performance support. We make use of this list in the product to not provide any Performance
  190. // views such as Performance onboarding checklist.
  191. export const withoutPerformanceSupport: Set<PlatformKey> = new Set([
  192. 'elixir',
  193. 'minidump',
  194. ]);
  195. export const releaseHealth: PlatformKey[] = [
  196. // frontend
  197. 'javascript',
  198. 'javascript-react',
  199. 'javascript-angular',
  200. 'javascript-angularjs',
  201. 'javascript-backbone',
  202. 'javascript-ember',
  203. 'javascript-gatsby',
  204. 'javascript-vue',
  205. 'javascript-nextjs',
  206. 'javascript-remix',
  207. 'javascript-svelte',
  208. // mobile
  209. 'android',
  210. 'apple-ios',
  211. 'cordova',
  212. 'javascript-cordova',
  213. 'react-native',
  214. 'flutter',
  215. 'dart-flutter',
  216. // backend
  217. 'native',
  218. 'node',
  219. 'node-express',
  220. 'node-koa',
  221. 'node-connect',
  222. 'python',
  223. 'python-django',
  224. 'python-flask',
  225. 'python-fastapi',
  226. 'python-starlette',
  227. 'python-sanic',
  228. 'python-celery',
  229. 'python-bottle',
  230. 'python-pylons',
  231. 'python-pyramid',
  232. 'python-tornado',
  233. 'python-rq',
  234. 'rust',
  235. // serverless
  236. // desktop
  237. 'apple-macos',
  238. 'native',
  239. 'native-crashpad',
  240. 'native-breakpad',
  241. 'native-qt',
  242. ];
  243. /**
  244. * Additional aliases used for filtering in the platform picker
  245. */
  246. export const filterAliases: Partial<Record<PlatformKey, string[]>> = {
  247. native: ['cpp', 'c++'],
  248. };
  249. export type PlatformKey =
  250. | typeof popularPlatformCategories[number]
  251. | typeof frontend[number]
  252. | typeof mobile[number]
  253. | typeof backend[number]
  254. | typeof desktop[number]
  255. | typeof tracing[number]
  256. | typeof serverless[number]
  257. | 'other';
  258. export default categoryList;