Skip to content
Snippets Groups Projects

Update analytics dashboard list to match MVC design

Merged Jiaan Louw requested to merge 381322-product-analytics-dashboards-list into master
All threads resolved!
Files
3
<script>
<script>
import { GlAvatar, GlIcon, GlLabel, GlLink } from '@gitlab/ui';
import { GlAvatar, GlIcon, GlLabel, GlLink } from '@gitlab/ui';
import { s__, __ } from '~/locale';
import { helpPagePath } from '~/helpers/help_page_helper';
import { helpPagePath } from '~/helpers/help_page_helper';
import jsonList from '../gl_dashboards/analytics_dashboards.json';
import jsonList from '../gl_dashboards/analytics_dashboards.json';
 
import { I18_DASHBOARD_LIST } from '../constants';
export default {
export default {
name: 'AnalyticsDashboard',
name: 'AnalyticsDashboard',
@@ -29,20 +29,14 @@ export default {
@@ -29,20 +29,14 @@ export default {
return this.$router.push(dashboarId);
return this.$router.push(dashboarId);
},
},
},
},
i18n: {
i18n: I18_DASHBOARD_LIST,
title: s__('ProductAnalytics|Product analytics dashboards'),
description: s__(
'ProductAnalytics|Dashboards are created by editing the projects dashboard files.',
),
learnMore: __('Learn more.'),
},
};
};
</script>
</script>
<template>
<template>
<div>
<div>
<h2>{{ $options.i18n.title }}</h2>
<h2 data-testid="title">{{ $options.i18n.title }}</h2>
<p>
<p data-testid="description">
{{ $options.i18n.description }}
{{ $options.i18n.description }}
<gl-link data-testid="help-link" :href="helpPageUrl" target="_blank">{{
<gl-link data-testid="help-link" :href="helpPageUrl" target="_blank">{{
$options.i18n.learnMore
$options.i18n.learnMore
Loading