Commit 444486ef authored by mfluharty's avatar mfluharty

Add component skeleton

parent e0c43662
<script> <script>
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import TestCoverageSummary from './test_coverage_summary.vue';
import TestCoverageTable from './test_coverage_table.vue'; import TestCoverageTable from './test_coverage_table.vue';
import DownloadTestCoverage from './download_test_coverage.vue'; import DownloadTestCoverage from './download_test_coverage.vue';
export default { export default {
name: 'GroupRepositoryAnalytics', name: 'GroupRepositoryAnalytics',
components: { components: {
TestCoverageSummary,
TestCoverageTable, TestCoverageTable,
DownloadTestCoverage, DownloadTestCoverage,
}, },
...@@ -27,6 +29,7 @@ export default { ...@@ -27,6 +29,7 @@ export default {
<h4 data-testid="test-coverage-header"> <h4 data-testid="test-coverage-header">
{{ $options.text.codeCoverageHeader }} {{ $options.text.codeCoverageHeader }}
</h4> </h4>
<test-coverage-summary />
<test-coverage-table v-if="shouldShowCoverageReport" class="gl-mb-5" /> <test-coverage-table v-if="shouldShowCoverageReport" class="gl-mb-5" />
<download-test-coverage /> <download-test-coverage />
</div> </div>
......
<script>
import MetricCard from '~/analytics/shared/components/metric_card.vue';
export default {
name: 'TestCoverageSummary',
components: {
MetricCard,
},
};
</script>
<template>
<metric-card
:title="__('Overall Activity')"
:metrics="[
{ key: 1, value: 45, unit: '', label: 'Projects with Tests' },
{ key: 2, value: 72, unit: '%', label: 'Average Coverage by Job' },
{ key: 3, value: 103, unit: '', label: 'Total Number of Coverages' },
]"
:is-loading="false"
/>
</template>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment