constants.tsx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. export const INSTALLED = 'Installed' as const;
  2. export const NOT_INSTALLED = 'Not Installed' as const;
  3. export const PENDING = 'Pending' as const;
  4. export const DISABLED = 'Disabled' as const;
  5. export const LEARN_MORE = 'Learn More' as const;
  6. export const COLORS = {
  7. [INSTALLED]: 'success',
  8. [NOT_INSTALLED]: 'gray300',
  9. [DISABLED]: 'gray300',
  10. [PENDING]: 'pink300',
  11. [LEARN_MORE]: 'gray300',
  12. } as const;
  13. /**
  14. * Integrations in the integration directory should be sorted by their popularity (weight).
  15. * The weights should reflect the relative popularity of each integration are hardcoded, except for
  16. * Sentry-apps which read popularity from the db.
  17. */
  18. export const POPULARITY_WEIGHT: {
  19. [key: string]: number;
  20. } = {
  21. // First-party-integrations
  22. slack: 50,
  23. github: 20,
  24. jira: 10,
  25. bitbucket: 10,
  26. gitlab: 10,
  27. pagerduty: 10,
  28. vsts: 10,
  29. jira_server: 10,
  30. bitbucket_server: 10,
  31. github_enterprise: 10,
  32. vercel: 10,
  33. msteams: 10,
  34. aws_lambda: 10,
  35. // Plugins
  36. webhooks: 10,
  37. asana: 8,
  38. trello: 8,
  39. heroku: 8,
  40. pivotal: 8,
  41. twilio: 8,
  42. pushover: 5,
  43. redmine: 5,
  44. phabricator: 5,
  45. opsgenie: 5,
  46. victorops: 5,
  47. sessionstack: 5,
  48. segment: 2,
  49. 'amazon-sqs': 2,
  50. splunk: 2,
  51. } as const;