constants.tsx 1.3 KB

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