Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

1.1 KB
Raw Blame
import type { PRCommentAudienceFilter } from '../../../../src/shared/pr-comment-audience'
import { translate } from '../../i18n/mobile-i18n'

export const PR_COMMENT_AUDIENCE_FILTERS = [
  {
    value: 'all',
    get label() {
      return translate('pullRequest.prCommentAudienceLabels.all', 'All')
    }
  },
  {
    value: 'human',
    get label() {
      return translate('pullRequest.prCommentAudienceLabels.humans', 'Humans')
    }
  },
  {
    value: 'bot',
    get label() {
      return translate('pullRequest.prCommentAudienceLabels.bots', 'Bots')
    }
  }
] satisfies { value: PRCommentAudienceFilter; label: string }[]

export function getPRCommentAudienceEmptyLabel(filter: PRCommentAudienceFilter): string {
  switch (filter) {
    case 'bot':
      return translate('pullRequest.prCommentAudienceLabels.noBotComments', 'No bot comments.')
    case 'human':
      return translate('pullRequest.prCommentAudienceLabels.noHumanComments', 'No human comments.')
    case 'all':
      return translate('pullRequest.prCommentAudienceLabels.noComments', 'No comments yet.')
  }
}