platformCategories.tsx 5.2 KB

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