Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

New colors and style based on current gitlab version

Tey, Benjaminf8e11f9fc278
diff --git a/README.md b/README.md
index 34e93ee359d..6d838bd5ae0 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
# openproject-gitlab-integration
-## NEW VERSION 2.0.6 GA
+## NEW VERSION 2.0.7 GA
Based on the current Github integration (OpenProject 12), this plugin offers the same functionalities as the current plugin for Github (and something else). This version includes changes to the DB and a new view similar to the current Github tab. Only the management of "pipelines" is pending an open issue in Gitlab (https://gitlab.com/gitlab-org/gitlab/-/issues/345028).
-![OP-Gitlab](https://user-images.githubusercontent.com/14983519/143622798-13d1c50b-1186-46e0-a2da-9f50fb14a338.png)
+<img width="562" src="https://user-images.githubusercontent.com/14983519/220770714-c06e9b5f-7f1f-40e2-9775-59b77a97d604.png">
This 2.x version includes a UI with all linked MRs, their status, their labels and the last pipeline *(pending the Gitlab issue)*.
## Introduction
diff --git a/frontend/module/merge-request/merge-request.component.sass b/frontend/module/merge-request/merge-request.component.sass
index f29d25befc9..c7d2a642259 100644
--- a/frontend/module/merge-request/merge-request.component.sass
+++ b/frontend/module/merge-request/merge-request.component.sass
@@ -91,25 +91,29 @@
&--state
grid-area: state
display: inline-block
- padding: 7px 11px
- border-radius: 5px
- border: 1px solid #fff
+ padding: 6px 10px
+ border-radius: 10rem
+ border: 3px solid #fff
color: #fff
- font-size: 0.9rem
- font-weight: 700
+ font-size: 0.8rem
+ font-weight: 600
text-transform: capitalize
- &_draft
- background-color: #6a737d
+ &_open
+ background-color: #c3e6cd
+ color: #24663b
&_ready
- background-color: #108548
+ background-color: #c3e6cd
+ color: #24663b
&_merged
- background-color: #1f75cb
+ background-color: #cbe2f9
+ color: #0b5cad
&_closed
- background-color: #dd2b0e
+ background-color: #fdd4cd
+ color: #ae1800
&--pipeline-label
grid-area: pipeline-label
diff --git a/frontend/module/merge-request/merge-request.component.ts b/frontend/module/merge-request/merge-request.component.ts
index 5a341ac9908..bbd469e442f 100644
--- a/frontend/module/merge-request/merge-request.component.ts
+++ b/frontend/module/merge-request/merge-request.component.ts
@@ -60,7 +60,7 @@ export class MergeRequestComponent {
get state() {
if (this.mergeRequest.state === 'opened') {
- return (this.mergeRequest.draft ? 'draft' : 'ready');
+ return (this.mergeRequest.draft ? 'open' : 'ready');
} else {
return(this.mergeRequest.merged ? 'merged' : 'closed');
}
diff --git a/frontend/module/tab-header/styles/tab-header.sass b/frontend/module/tab-header/styles/tab-header.sass
index 9e8f305eb22..f8c45ecd06f 100644
--- a/frontend/module/tab-header/styles/tab-header.sass
+++ b/frontend/module/tab-header/styles/tab-header.sass
@@ -34,7 +34,6 @@
border-bottom: 1px solid #ddd
- margin: 1.5rem 0 0.8rem 0
.title
flex: 1 1 auto
diff --git a/openproject-gitlab_integration.gemspec b/openproject-gitlab_integration.gemspec
index 0ac301a340a..8f1f0a9a516 100644
--- a/openproject-gitlab_integration.gemspec
+++ b/openproject-gitlab_integration.gemspec
@@ -31,7 +31,7 @@
Gem::Specification.new do |s|
s.name = "openproject-gitlab_integration"
- s.version = '2.0.5'
+ s.version = '2.0.7'
s.authors = "Ben Tey"
s.email = "[email protected]"
s.homepage = "https://github.com/btey/openproject-gitlab-integration"