Commit beb7a425 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'ux-fixes' into 'master'

UX improvements (Implement lessons from user testing)

* add link to permissions help page from new project/group member form
* Improve UX for widget if merge request can not be merged
* Improve wording for fork project page

See merge request !1448
parents de2098f4 f2f7b5a1
...@@ -122,6 +122,7 @@ ...@@ -122,6 +122,7 @@
background: $box_bg; background: $box_bg;
margin-bottom: 20px; margin-bottom: 20px;
color: #666; color: #666;
border: 1px solid #EEE;
@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.09)); @include box-shadow(0 1px 1px rgba(0, 0, 0, 0.09));
.ci_widget { .ci_widget {
......
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
.form-group .form-group
= f.label :access_level, "Group Access", class: 'control-label' = f.label :access_level, "Group Access", class: 'control-label'
.col-sm-10= select_tag :access_level, options_for_select(GroupMember.access_level_roles, @users_group.access_level), class: "project-access-select select2" .col-sm-10
= select_tag :access_level, options_for_select(GroupMember.access_level_roles, @users_group.access_level), class: "project-access-select select2"
.help-block
Read more about role permissions
%strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
.form-actions .form-actions
= f.submit 'Add users into group', class: "btn btn-create" = f.submit 'Add users into group', class: "btn btn-create"
%h3.page-title Fork project %h3.page-title Fork project
%p.lead Select namespace where to fork this project %p.lead
Click to fork the project to a user or group
%hr %hr
.fork-namespaces .fork-namespaces
......
...@@ -45,10 +45,17 @@ ...@@ -45,10 +45,17 @@
.automerge_widget.cannot_be_merged.hide .automerge_widget.cannot_be_merged.hide
%h4 %h4
This request can't be merged with GitLab. This request can't be merged with GitLab.
%p
You should do it manually with You should do it manually with
%strong %strong
= link_to "command line", "#modal_merge_info", class: "how_to_merge_link", title: "How To Merge", "data-toggle" => "modal" = link_to "#modal_merge_info", class: "underlined-link how_to_merge_link", title: "How To Merge", "data-toggle" => "modal" do
command line
%p
%button.btn.disabled
%i.fa.fa-warning
Accept Merge Request
 
This usually happens when git can not resolve conflicts between branches automatically.
.automerge_widget.unchecked .automerge_widget.unchecked
%p %p
......
...@@ -17,7 +17,12 @@ ...@@ -17,7 +17,12 @@
%p 2. Set access level for them %p 2. Set access level for them
.form-group .form-group
= f.label :access_level, "Project Access", class: 'control-label' = f.label :access_level, "Project Access", class: 'control-label'
.col-sm-10= select_tag :access_level, options_for_select(Gitlab::Access.options, @user_project_relation.access_level), class: "project-access-select select2" .col-sm-10
= select_tag :access_level, options_for_select(Gitlab::Access.options, @user_project_relation.access_level), class: "project-access-select select2"
.help-block
Read more about role permissions
%strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
.form-actions .form-actions
= f.submit 'Add users', class: "btn btn-create" = f.submit 'Add users', class: "btn btn-create"
......
...@@ -173,7 +173,9 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps ...@@ -173,7 +173,9 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
merge!: true, merge!: true,
) )
click_button "Accept Merge Request" within '.can_be_merged' do
click_button "Accept Merge Request"
end
end end
step 'I should see merged request' do step 'I should see merged request' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment