All files / ee/app/assets/javascripts/analytics/repository_analytics/components group_repository_analytics.vue

33.33% Statements 1/3
100% Branches 0/0
0% Functions 0/1
50% Lines 1/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48                1x                                                                              
<script>
import { GlSprintf, GlLink } from '@gitlab/ui';
import Api from '~/api';
import { helpPagePath } from '~/helpers/help_page_helper';
import { headeri18n as i18n } from '../constants';
import TestCoverageSummary from './test_coverage_summary.vue';
import TestCoverageTable from './test_coverage_table.vue';
 
export const VISIT_EVENT_NAME = 'i_testing_group_code_coverage_visit_total';
 
export default {
  name: 'GroupRepositoryAnalytics',
  components: {
    TestCoverageSummary,
    TestCoverageTable,
    GlSprintf,
    GlLink,
  },
  inject: {
    groupName: {
      default: '',
    },
  },
  mounted() {
    Api.trackRedisHllUserEvent(VISIT_EVENT_NAME);
  },
  i18n,
  learnMoreLinkPath: helpPagePath('user/group/repositories_analytics/index.md'),
};
</script>
 
<template>
  <div>
    <h3 class="gl-mb-5">{{ $options.i18n.title }}</h3>
    <gl-sprintf :message="$options.i18n.description">
      <template #groupName>{{ groupName }}</template>
      <template #learnMoreLink>
        <gl-link :href="$options.learnMoreLinkPath">{{ __('Learn More') }}</gl-link>
      </template>
    </gl-sprintf>
 
    <hr />
 
    <test-coverage-summary class="gl-mb-5" />
    <test-coverage-table class="gl-mb-5" />
  </div>
</template>