diff options
Diffstat (limited to 'app/assets/javascripts/analytics')
5 files changed, 10 insertions, 6 deletions
diff --git a/app/assets/javascripts/analytics/devops_reports/components/service_ping_disabled.vue b/app/assets/javascripts/analytics/devops_reports/components/service_ping_disabled.vue index 400326e41e1..b9501107e37 100644 --- a/app/assets/javascripts/analytics/devops_reports/components/service_ping_disabled.vue +++ b/app/assets/javascripts/analytics/devops_reports/components/service_ping_disabled.vue @@ -43,7 +43,7 @@ export default { {{ s__('ServicePing|Turn on service ping to review instance-level analytics.') }} </p> - <gl-button category="primary" variant="success" :href="primaryButtonPath"> + <gl-button category="primary" variant="confirm" :href="primaryButtonPath"> {{ s__('ServicePing|Turn on service ping') }} </gl-button> </template> diff --git a/app/assets/javascripts/analytics/shared/components/projects_dropdown_filter.vue b/app/assets/javascripts/analytics/shared/components/projects_dropdown_filter.vue index b3ae671d611..b2b033de75d 100644 --- a/app/assets/javascripts/analytics/shared/components/projects_dropdown_filter.vue +++ b/app/assets/javascripts/analytics/shared/components/projects_dropdown_filter.vue @@ -11,6 +11,7 @@ import { import { debounce } from 'lodash'; import { filterBySearchTerm } from '~/analytics/shared/utils'; import { getIdFromGraphQLId } from '~/graphql_shared/utils'; +import { AVATAR_SHAPE_OPTION_RECT } from '~/vue_shared/constants'; import { DEFAULT_DEBOUNCE_AND_THROTTLE_MS } from '~/lib/utils/constants'; import { n__, s__, __ } from '~/locale'; import getProjects from '../graphql/projects.query.graphql'; @@ -204,6 +205,7 @@ export default { return getIdFromGraphQLId(project.id); }, }, + AVATAR_SHAPE_OPTION_RECT, }; </script> <template> @@ -227,7 +229,7 @@ export default { :entity-id="getEntityId(selectedProjects[0])" :entity-name="selectedProjects[0].name" :size="16" - shape="rect" + :shape="$options.AVATAR_SHAPE_OPTION_RECT" :alt="selectedProjects[0].name" class="gl-display-inline-flex gl-vertical-align-middle gl-mr-2" /> @@ -255,7 +257,7 @@ export default { :entity-id="getEntityId(project)" :entity-name="project.name" :src="project.avatarUrl" - shape="rect" + :shape="$options.AVATAR_SHAPE_OPTION_RECT" /> <div> <div data-testid="project-name">{{ project.name }}</div> @@ -279,7 +281,7 @@ export default { :entity-id="getEntityId(project)" :entity-name="project.name" :src="project.avatarUrl" - shape="rect" + :shape="$options.AVATAR_SHAPE_OPTION_RECT" /> <div> <div data-testid="project-name">{{ project.name }}</div> diff --git a/app/assets/javascripts/analytics/shared/utils.js b/app/assets/javascripts/analytics/shared/utils.js index dde429ab278..71b7ca29bad 100644 --- a/app/assets/javascripts/analytics/shared/utils.js +++ b/app/assets/javascripts/analytics/shared/utils.js @@ -19,6 +19,7 @@ export const toYmd = (date) => dateFormat(date, dateFormats.isoDate); * @returns {Object} */ export const extractFilterQueryParameters = (url = '') => { + /* eslint-disable camelcase */ const { source_branch_name = null, target_branch_name = null, @@ -27,6 +28,7 @@ export const extractFilterQueryParameters = (url = '') => { assignee_username = [], label_name = [], } = urlQueryToFilter(url); + /* eslint-enable camelcase */ return { selectedSourceBranch: source_branch_name, diff --git a/app/assets/javascripts/analytics/usage_trends/graphql/queries/usage_count.query.graphql b/app/assets/javascripts/analytics/usage_trends/graphql/queries/usage_count.query.graphql index 2a5546efb68..f9311626cc3 100644 --- a/app/assets/javascripts/analytics/usage_trends/graphql/queries/usage_count.query.graphql +++ b/app/assets/javascripts/analytics/usage_trends/graphql/queries/usage_count.query.graphql @@ -1,4 +1,4 @@ -#import "~/graphql_shared/fragments/pageInfo.fragment.graphql" +#import "~/graphql_shared/fragments/page_info.fragment.graphql" #import "../fragments/count.fragment.graphql" query getCount($identifier: MeasurementIdentifier!, $first: Int, $after: String) { diff --git a/app/assets/javascripts/analytics/usage_trends/graphql/queries/users.query.graphql b/app/assets/javascripts/analytics/usage_trends/graphql/queries/users.query.graphql index 7c02ac49a42..d7638458b03 100644 --- a/app/assets/javascripts/analytics/usage_trends/graphql/queries/users.query.graphql +++ b/app/assets/javascripts/analytics/usage_trends/graphql/queries/users.query.graphql @@ -1,4 +1,4 @@ -#import "~/graphql_shared/fragments/pageInfo.fragment.graphql" +#import "~/graphql_shared/fragments/page_info.fragment.graphql" #import "../fragments/count.fragment.graphql" query getUsersCount($first: Int, $after: String) { |