constants.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. gitlab: 10,
  29. pagerduty: 10,
  30. vsts: 10,
  31. jira_server: 10,
  32. bitbucket_server: 10,
  33. github_enterprise: 10,
  34. vercel: 10,
  35. msteams: 10,
  36. aws_lambda: 10,
  37. // Plugins
  38. webhooks: 10,
  39. asana: 8,
  40. trello: 8,
  41. heroku: 8,
  42. pivotal: 8,
  43. twilio: 8,
  44. pushover: 5,
  45. redmine: 5,
  46. phabricator: 5,
  47. opsgenie: 5,
  48. victorops: 5,
  49. sessionstack: 5,
  50. segment: 2,
  51. 'amazon-sqs': 2,
  52. splunk: 2,
  53. } as const;