platformCategories.tsx 5.1 KB

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