Skip to content

Commit d053330

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent aa068e9 commit d053330

File tree

31 files changed

+200
-241
lines changed

31 files changed

+200
-241
lines changed

app/assets/javascripts/admin/abuse_reports/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export const ABUSE_CATEGORIES = {
125125
},
126126
other: {
127127
backgroundColor: '#dcdcde',
128-
textColor: 'gl-text-gray-700',
128+
textColor: 'gl-text-subtle',
129129
title: s__('AbuseReport|Other'),
130130
},
131131
};

app/assets/javascripts/ci/runner/components/runner_job_status_badge.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
};
3232
case JOB_STATUS_IDLE:
3333
return {
34-
classes: '!gl-text-gray-700 gl-shadow-inner-1-gray-400 !gl-border-gray-500',
34+
classes: '!gl-text-subtle gl-shadow-inner-1-gray-400 !gl-border-gray-500',
3535
label: I18N_JOB_STATUS_IDLE,
3636
};
3737
default:

app/assets/javascripts/projects/pipelines/charts/components/pipeline_duration_chart.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script>
22
import { GlLoadingIcon } from '@gitlab/ui';
3+
import { engineeringNotation } from '@gitlab/ui/src/utils/number_utils';
34
import { GlLineChart } from '@gitlab/ui/dist/charts';
45
import { s__ } from '~/locale';
56
import { stringifyTime, parseSeconds } from '~/lib/utils/datetime/date_format_utility';
@@ -50,7 +51,18 @@ export default {
5051
},
5152
lineChartOptions: {
5253
yAxis: {
53-
name: s__('Pipeline|Seconds'),
54+
name: s__('Pipeline|Minutes'),
55+
type: 'value',
56+
axisLabel: {
57+
formatter: (seconds) => {
58+
const minutes = seconds / 60;
59+
// using engineering notation for small amounts is strange, as we'd render "milliminutes"
60+
if (minutes < 1) {
61+
return minutes.toFixed(2).replace(/\.?0*$/, '');
62+
}
63+
return engineeringNotation(minutes, 2);
64+
},
65+
},
5466
},
5567
xAxis: {
5668
name: s__('Pipeline|Time'),

app/assets/javascripts/projects/pipelines/charts/components/pipeline_status_chart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default {
7272
v-else
7373
x-axis-type="category"
7474
:x-axis-title="s__('Pipelines|Time')"
75-
:y-axis-title="s__('Pipelines|Pipelines count')"
75+
:y-axis-title="s__('Pipelines|Number of Pipelines')"
7676
:custom-palette="$options.palette"
7777
:group-by="groupBy"
7878
:bars="bars"

app/assets/javascripts/repository/components/header_area.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export default {
241241
opened
242242
aria-hidden="true"
243243
class="gl-mr-3 gl-inline-flex"
244-
:class="{ 'gl-text-gray-700': isTreeView }"
244+
:class="{ 'gl-text-subtle': isTreeView }"
245245
/>{{ directoryName }}
246246
</h1>
247247

app/assets/javascripts/vue_merge_request_widget/components/widget/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ const textStyleTags = {
3030
[getStartTag('success')]: '<span class="gl-font-bold gl-text-success">',
3131
[getStartTag('danger')]: '<span class="gl-font-bold gl-text-danger">',
3232
[getStartTag('critical')]: '<span class="gl-font-bold gl-text-red-800">',
33-
[getStartTag('same')]: '<span class="gl-font-bold gl-text-gray-700">',
33+
[getStartTag('same')]: '<span class="gl-font-bold gl-text-subtle">',
3434
[getStartTag('strong')]: '<span class="gl-font-bold">',
35-
[getStartTag('small')]: '<span class="gl-text-sm gl-text-gray-700">',
35+
[getStartTag('small')]: '<span class="gl-text-sm gl-text-subtle">',
3636
};
3737

3838
const escapeText = (text) =>

app/assets/javascripts/vue_shared/components/commit.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,20 +167,20 @@ export default {
167167
<gl-link
168168
v-if="mergeRequestRef"
169169
:href="mergeRequestRef.path"
170-
class="gl-text-gray-700"
170+
class="gl-text-subtle"
171171
data-testid="ref-name"
172172
>
173173
{{ mergeRequestRef.iid }}
174174
</gl-link>
175-
<gl-link v-else :href="refUrl" class="gl-text-gray-700" data-testid="ref-name">
175+
<gl-link v-else :href="refUrl" class="gl-text-subtle" data-testid="ref-name">
176176
{{ commitRef.name }}
177177
</gl-link>
178178
</tooltip-on-truncate>
179179
</div>
180180

181181
<div class="gl-inline-block gl-rounded-base gl-bg-strong gl-px-2 gl-text-sm gl-text-default">
182182
<gl-icon name="commit" class="js-commit-icon" :size="12" />
183-
<gl-link :href="commitUrl" class="gl-text-gray-700" data-testid="commit-sha">{{
183+
<gl-link :href="commitUrl" class="gl-text-subtle" data-testid="commit-sha">{{
184184
shortSha
185185
}}</gl-link>
186186
</div>

app/assets/javascripts/work_items/components/shared/work_item_sidebar_dropdown_widget.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ export default {
107107
required: false,
108108
default: () => ({}),
109109
},
110-
noResetButton: {
111-
type: Boolean,
112-
required: false,
113-
default: false,
114-
},
115110
},
116111
data() {
117112
return {
@@ -128,7 +123,7 @@ export default {
128123
return `work-item-dropdown-listbox-value-${this.dropdownName}`;
129124
},
130125
resetButton() {
131-
return this.noResetButton ? null : this.resetButtonLabel || __('Clear');
126+
return this.resetButtonLabel || __('Clear');
132127
},
133128
toggleText() {
134129
return !this.toggleDropdownText && !this.hasValue

app/assets/javascripts/work_items/components/work_item_attributes_wrapper.vue

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
WIDGET_TYPE_ITERATION,
1414
WIDGET_TYPE_LABELS,
1515
WIDGET_TYPE_MILESTONE,
16-
WIDGET_TYPE_STATUS,
1716
WIDGET_TYPE_PARTICIPANTS,
1817
WIDGET_TYPE_PROGRESS,
1918
WIDGET_TYPE_START_AND_DUE_DATE,
@@ -55,7 +54,6 @@ export default {
5554
WorkItemColor: () => import('ee_component/work_items/components/work_item_color.vue'),
5655
WorkItemCustomFields: () =>
5756
import('ee_component/work_items/components/work_item_custom_fields.vue'),
58-
WorkItemStatus: () => import('ee_component/work_items/components/work_item_status.vue'),
5957
},
6058
mixins: [glFeatureFlagMixin()],
6159
inject: ['hasSubepicsFeature'],
@@ -185,9 +183,6 @@ export default {
185183
workItemColor() {
186184
return this.isWidgetPresent(WIDGET_TYPE_COLOR);
187185
},
188-
workItemStatus() {
189-
return this.isWidgetPresent(WIDGET_TYPE_STATUS);
190-
},
191186
workItemAuthor() {
192187
return this.workItem?.author;
193188
},
@@ -203,9 +198,6 @@ export default {
203198
showWorkItemCustomFields() {
204199
return this.glFeatures.customFieldsFeature && this.customFields;
205200
},
206-
showWorkItemStatus() {
207-
return this.glFeatures.workItemStatusFeatureFlag;
208-
},
209201
},
210202
methods: {
211203
isWidgetPresent(type, workItem = this.workItem) {
@@ -217,16 +209,6 @@ export default {
217209
218210
<template>
219211
<div class="work-item-attributes-wrapper">
220-
<work-item-status
221-
v-if="showWorkItemStatus"
222-
class="work-item-attributes-item"
223-
:can-update="canUpdateMetadata"
224-
:work-item-id="workItem.id"
225-
:work-item-iid="workItem.iid"
226-
:work-item-type="workItemType"
227-
:full-path="fullPath"
228-
@error="$emit('error', $event)"
229-
/>
230212
<work-item-assignees
231213
v-if="workItemAssignees"
232214
class="js-assignee work-item-attributes-item"

app/assets/javascripts/work_items/constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const WIDGET_TYPE_PROGRESS = 'PROGRESS';
2424
export const WIDGET_TYPE_HIERARCHY = 'HIERARCHY';
2525
export const WIDGET_TYPE_MILESTONE = 'MILESTONE';
2626
export const WIDGET_TYPE_ITERATION = 'ITERATION';
27-
export const WIDGET_TYPE_STATUS = 'STATUS';
2827
export const WIDGET_TYPE_NOTES = 'NOTES';
2928
export const WIDGET_TYPE_HEALTH_STATUS = 'HEALTH_STATUS';
3029
export const WIDGET_TYPE_LINKED_ITEMS = 'LINKED_ITEMS';

0 commit comments

Comments
 (0)