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.8 KB
Raw Blame
import { ActivityIndicator, Text, View } from 'react-native'
import { colors, spacing, typography } from '../theme/mobile-theme'
import { themedStyleSheet } from '../theme/themed-styles'
import { useMobileColorScheme } from '../theme/use-mobile-color-scheme'
import type { SectionPendingCreation } from '../worktree/workspace-list-types'
import { useMobileTranslation } from '../i18n/use-mobile-translation'

export function HostPendingCreationRow({ creation }: { creation: SectionPendingCreation }) {
  const t = useMobileTranslation()
  useMobileColorScheme()
  return (
    <View style={styles.row} accessibilityRole="progressbar">
      <View style={styles.indicator}>
        <ActivityIndicator size="small" color={colors.textMuted} />
      </View>
      <View style={styles.main}>
        <Text style={styles.title} numberOfLines={1}>
          {t('hostScreen.hostPendingCreationRow.creatingWorkspace', 'Creating workspace…')}
        </Text>
        {creation.repoName ? (
          <Text style={styles.meta} numberOfLines={1}>
            {creation.repoName}
          </Text>
        ) : null}
      </View>
    </View>
  )
}

const styles = themedStyleSheet(() => ({
  // Match the workspace row’s padding and indicator column so completion does not shift the row.
  row: {
    flexDirection: 'row',
    alignItems: 'center',
    paddingVertical: spacing.sm + 2,
    paddingLeft: spacing.lg,
    paddingRight: spacing.lg,
    borderLeftWidth: 2,
    borderLeftColor: 'transparent'
  },
  indicator: {
    width: 20,
    alignItems: 'center',
    marginRight: spacing.sm
  },
  main: {
    flex: 1
  },
  title: {
    fontSize: 14,
    fontWeight: '600',
    color: colors.textSecondary
  },
  meta: {
    marginTop: 2,
    color: colors.textMuted,
    fontSize: typography.metaSize
  }
}))