Skip to content

Commit 7e3f469

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent bd7e8cd commit 7e3f469

File tree

73 files changed

+871
-1202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+871
-1202
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ end
472472
gem 'spamcheck', '~> 0.1.0'
473473

474474
# Gitaly GRPC protocol definitions
475-
gem 'gitaly', '~> 14.1.0.pre.rc3'
475+
gem 'gitaly', '~> 14.1.0.pre.rc4'
476476

477477
# KAS GRPC protocol definitions
478478
gem 'kas-grpc', '~> 0.0.2'

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ GEM
460460
rails (>= 3.2.0)
461461
git (1.7.0)
462462
rchardet (~> 1.8)
463-
gitaly (14.1.0.pre.rc3)
463+
gitaly (14.1.0.pre.rc4)
464464
grpc (~> 1.0)
465465
github-markup (1.7.0)
466466
gitlab (4.16.1)
@@ -531,8 +531,8 @@ GEM
531531
signet (~> 0.12)
532532
google-cloud-env (1.5.0)
533533
faraday (>= 0.17.3, < 2.0)
534-
google-protobuf (3.17.1)
535-
googleapis-common-protos-types (1.0.6)
534+
google-protobuf (3.17.3)
535+
googleapis-common-protos-types (1.1.0)
536536
google-protobuf (~> 3.14)
537537
googleauth (0.14.0)
538538
faraday (>= 0.17.3, < 2.0)
@@ -1482,7 +1482,7 @@ DEPENDENCIES
14821482
gettext (~> 3.3)
14831483
gettext_i18n_rails (~> 1.8.0)
14841484
gettext_i18n_rails_js (~> 1.3)
1485-
gitaly (~> 14.1.0.pre.rc3)
1485+
gitaly (~> 14.1.0.pre.rc4)
14861486
github-markup (~> 1.7.0)
14871487
gitlab-chronic (~> 0.10.5)
14881488
gitlab-dangerfiles (~> 2.2.2)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import Vue from 'vue';
22
import GlFeatureFlagsPlugin from '~/vue_shared/gl_feature_flags_plugin';
3+
import Translate from '~/vue_shared/translate';
34

45
if (process.env.NODE_ENV !== 'production') {
56
Vue.config.productionTip = false;
67
}
78

89
Vue.use(GlFeatureFlagsPlugin);
10+
Vue.use(Translate);
911

1012
Vue.config.ignoredElements = ['gl-emoji'];

app/assets/javascripts/frequent_items/index.js

Lines changed: 0 additions & 77 deletions
This file was deleted.

app/assets/javascripts/issues_list/components/jira_issues_import_status_app.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ export default {
5959
shouldShowInProgressAlert: isInProgress(project.jiraImportStatus),
6060
};
6161
},
62-
skip() {
63-
return !this.isJiraConfigured || !this.canEdit;
64-
},
6562
},
6663
},
6764
computed: {
@@ -75,6 +72,9 @@ export default {
7572
labelTarget() {
7673
return `${this.issuesPath}?label_name[]=${encodeURIComponent(this.jiraImport.label.title)}`;
7774
},
75+
shouldRender() {
76+
return this.jiraImport.shouldShowInProgressAlert || this.jiraImport.shouldShowFinishedAlert;
77+
},
7878
},
7979
methods: {
8080
hideFinishedAlert() {
@@ -89,7 +89,7 @@ export default {
8989
</script>
9090

9191
<template>
92-
<div class="gl-my-5">
92+
<div v-if="shouldRender" class="gl-my-5">
9393
<gl-alert v-if="jiraImport.shouldShowInProgressAlert" @dismiss="hideInProgressAlert">
9494
{{ __('Import in progress. Refresh page to see newly added issues.') }}
9595
</gl-alert>

app/assets/javascripts/issues_list/index.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ export function mountJiraIssuesListApp() {
1313
return false;
1414
}
1515

16+
const { issuesPath, projectPath } = el.dataset;
17+
const canEdit = parseBoolean(el.dataset.canEdit);
18+
const isJiraConfigured = parseBoolean(el.dataset.isJiraConfigured);
19+
20+
if (!isJiraConfigured || !canEdit) {
21+
return false;
22+
}
23+
1624
Vue.use(VueApollo);
1725

1826
const defaultClient = createDefaultClient();
@@ -26,10 +34,10 @@ export function mountJiraIssuesListApp() {
2634
render(createComponent) {
2735
return createComponent(JiraIssuesImportStatusRoot, {
2836
props: {
29-
canEdit: parseBoolean(el.dataset.canEdit),
30-
isJiraConfigured: parseBoolean(el.dataset.isJiraConfigured),
31-
issuesPath: el.dataset.issuesPath,
32-
projectPath: el.dataset.projectPath,
37+
canEdit,
38+
isJiraConfigured,
39+
issuesPath,
40+
projectPath,
3341
},
3442
});
3543
},

app/assets/javascripts/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { getLocationHash, visitUrl } from './lib/utils/url_utility';
2727
import initFeatureHighlight from './feature_highlight';
2828
import LazyLoader from './lazy_loader';
2929
import initLogoAnimation from './logo';
30-
import initFrequentItemDropdowns from './frequent_items';
3130
import initBreadcrumbs from './breadcrumb';
3231
import initPersistentUserCallouts from './persistent_user_callouts';
3332
import { initUserTracking, initDefaultTrackers } from './tracking';
@@ -92,7 +91,6 @@ function deferredInitialisation() {
9291
initServicePingConsent();
9392
initUserPopovers();
9493
initBroadcastNotifications();
95-
initFrequentItemDropdowns();
9694
initPersistentUserCallouts();
9795
initDefaultTrackers();
9896
initFeatureHighlight();

app/assets/javascripts/nav/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// With combined_menu feature flag, there's a benefit to splitting up the import
1+
// TODO: With the combined_menu feature flag removed, there's likely a better
2+
// way to slice up the async import (i.e., include trigger in main bundle, but
3+
// async import subviews. Don't do this at the cost of UX).
4+
// See https://gitlab.com/gitlab-org/gitlab/-/issues/336042
25
const importModule = () => import(/* webpackChunkName: 'top_nav' */ './mount');
36

47
const tryMountTopNav = async () => {

app/assets/stylesheets/framework/dropdowns.scss

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@
5050
width: 100%;
5151
}
5252

53-
&.frequent-items-dropdown-menu {
54-
padding: 0;
55-
overflow-y: initial;
56-
max-height: initial;
57-
}
58-
5953
// `GlDropdown` specifies the `max-height` of `.gl-new-dropdown-inner`
6054
// as `$dropdown-max-height`, but the `max-height` rule above forces
6155
// the parent `.dropdown-menu` to be _slightly_ too small because of
@@ -834,61 +828,11 @@
834828
}
835829
}
836830

837-
header.header-content .dropdown-menu.frequent-items-dropdown-menu {
838-
padding: 0;
839-
}
840-
841831
.frequent-items-dropdown-container {
842832
display: flex;
843833
flex-direction: row;
844834
height: $grid-size * 40;
845835

846-
&.with-deprecated-styles {
847-
width: 500px;
848-
height: 354px;
849-
850-
.section-header,
851-
.frequent-items-list-container li.section-empty {
852-
padding: 0 $gl-padding;
853-
}
854-
855-
.search-input-container {
856-
position: relative;
857-
padding: 4px $gl-padding;
858-
859-
.search-icon {
860-
position: absolute;
861-
top: 13px;
862-
right: 25px;
863-
color: $gray-300;
864-
}
865-
}
866-
867-
@include media-breakpoint-down(xs) {
868-
flex-direction: column;
869-
width: 100%;
870-
height: auto;
871-
flex: 1;
872-
873-
.frequent-items-dropdown-sidebar,
874-
.frequent-items-dropdown-content {
875-
width: 100%;
876-
}
877-
878-
.frequent-items-dropdown-sidebar {
879-
border-bottom: 1px solid $border-color;
880-
border-right: 0;
881-
}
882-
}
883-
884-
.frequent-items-list-container {
885-
width: auto;
886-
height: auto;
887-
padding-bottom: 0;
888-
}
889-
}
890-
891-
.frequent-items-dropdown-sidebar,
892836
.frequent-items-dropdown-content {
893837
@include gl-pt-3;
894838
}
@@ -897,11 +841,6 @@ header.header-content .dropdown-menu.frequent-items-dropdown-menu {
897841
color: $almost-black;
898842
}
899843

900-
.frequent-items-dropdown-sidebar {
901-
width: 30%;
902-
border-right: 1px solid $border-color;
903-
}
904-
905844
.frequent-items-dropdown-content {
906845
position: relative;
907846
width: 70%;

app/assets/stylesheets/startup/startup-dark.scss

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,6 @@ h1 {
336336
.d-none {
337337
display: none !important;
338338
}
339-
.d-inline-block {
340-
display: inline-block !important;
341-
}
342339
.d-block {
343340
display: block !important;
344341
}
@@ -363,11 +360,6 @@ h1 {
363360
display: block !important;
364361
}
365362
}
366-
@media (min-width: 1200px) {
367-
.d-xl-block {
368-
display: block !important;
369-
}
370-
}
371363
.sr-only {
372364
position: absolute;
373365
width: 1px;
@@ -1407,10 +1399,6 @@ svg.s16 {
14071399
width: 16px;
14081400
height: 16px;
14091401
}
1410-
svg.s18 {
1411-
width: 18px;
1412-
height: 18px;
1413-
}
14141402
svg.s32 {
14151403
width: 32px;
14161404
height: 32px;
@@ -1499,12 +1487,6 @@ svg.s16 {
14991487
height: 16px;
15001488
margin-right: 8px;
15011489
}
1502-
.avatar.s18,
1503-
.avatar-container.s18 {
1504-
width: 18px;
1505-
height: 18px;
1506-
margin-right: 8px;
1507-
}
15081490
.avatar.s32,
15091491
.avatar-container.s32 {
15101492
width: 32px;
@@ -1583,9 +1565,6 @@ svg.s16 {
15831565
.rect-avatar.s16 {
15841566
border-radius: 2px;
15851567
}
1586-
.rect-avatar.s18 {
1587-
border-radius: 2px;
1588-
}
15891568
.rect-avatar.s32,
15901569
.nav-sidebar-inner-scroll
15911570
> div.context-header

0 commit comments

Comments
 (0)