platformCategories.tsx 4.9 KB

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