Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6a64fc67
Commit
6a64fc67
authored
Sep 14, 2021
by
Ezekiel Kigbo
Committed by
Martin Wortschack
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-instate missing padding for stage popovers
parent
309a0ac5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
17 deletions
+30
-17
app/assets/javascripts/cycle_analytics/components/base.vue
app/assets/javascripts/cycle_analytics/components/base.vue
+2
-1
app/assets/javascripts/cycle_analytics/components/value_stream_filters.vue
...ripts/cycle_analytics/components/value_stream_filters.vue
+2
-1
ee/app/assets/javascripts/analytics/cycle_analytics/components/base.vue
...javascripts/analytics/cycle_analytics/components/base.vue
+2
-1
ee/app/assets/stylesheets/page_bundles/cycle_analytics.scss
ee/app/assets/stylesheets/page_bundles/cycle_analytics.scss
+17
-0
ee/spec/features/groups/analytics/cycle_analytics/filters_and_data_spec.rb
...groups/analytics/cycle_analytics/filters_and_data_spec.rb
+4
-11
ee/spec/features/groups/analytics/cycle_analytics/multiple_value_streams_spec.rb
.../analytics/cycle_analytics/multiple_value_streams_spec.rb
+1
-1
spec/support/helpers/cycle_analytics_helpers.rb
spec/support/helpers/cycle_analytics_helpers.rb
+2
-2
No files found.
app/assets/javascripts/cycle_analytics/components/base.vue
View file @
6a64fc67
...
...
@@ -132,7 +132,8 @@ export default {
<div
class=
"gl-display-flex gl-flex-direction-column gl-md-flex-direction-row"
>
<path-navigation
v-if=
"displayPathNavigation"
class=
"js-path-navigation gl-w-full gl-pb-2"
data-testid=
"vsa-path-navigation"
class=
"gl-w-full gl-pb-2"
:loading=
"isLoading || isLoadingStage"
:stages=
"pathNavigationData"
:selected-stage=
"selectedStage"
...
...
app/assets/javascripts/cycle_analytics/components/value_stream_filters.vue
View file @
6a64fc67
...
...
@@ -61,7 +61,8 @@ export default {
<
template
>
<div
class=
"gl-mt-3 gl-py-2 gl-px-3 bg-gray-light border-top border-bottom"
>
<filter-bar
class=
"js-filter-bar filtered-search-box gl-display-flex gl-mb-2 gl-mr-3 gl-border-none"
data-testid=
"vsa-filter-bar"
class=
"filtered-search-box gl-display-flex gl-mb-2 gl-mr-3 gl-border-none"
:group-path=
"groupPath"
/>
<div
...
...
ee/app/assets/javascripts/analytics/cycle_analytics/components/base.vue
View file @
6a64fc67
...
...
@@ -166,7 +166,8 @@ export default {
<div
v-if=
"!shouldRenderEmptyState"
class=
"gl-max-w-full"
>
<path-navigation
v-if=
"selectedStageReady"
class=
"js-path-navigation gl-w-full gl-pb-2"
data-testid=
"vsa-path-navigation"
class=
"gl-w-full gl-pb-2"
:loading=
"isLoading"
:stages=
"pathNavigationData"
:selected-stage=
"selectedStage"
...
...
ee/app/assets/stylesheets/page_bundles/cycle_analytics.scss
View file @
6a64fc67
...
...
@@ -29,6 +29,23 @@
}
}
// Since backend wraps event description in a paragraph
// we need to remove common styles, i.e., spacing
.stage-item-popover
{
.stage-event-description
p
{
margin
:
0
!
important
;
}
.popover-body
{
padding-left
:
0
!
important
;
padding-right
:
0
!
important
;
}
.metric-label
{
flex
:
0
0
20%
;
}
}
.stage-list-move
{
transition
:
transform
0
.15s
;
}
ee/spec/features/groups/analytics/cycle_analytics/filters_and_data_spec.rb
View file @
6a64fc67
...
...
@@ -17,9 +17,8 @@ RSpec.describe 'Group value stream analytics filters and data', :js do
let
(
:mr
)
{
create_merge_request_closing_issue
(
user
,
project
,
issue
,
commit_message:
"References
#{
issue
.
to_reference
}
"
)
}
let
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
status:
'created'
,
project:
project
,
ref:
mr
.
source_branch
,
sha:
mr
.
source_branch_sha
,
head_pipeline_of:
mr
)
}
stage_nav_selector
=
'.stage-nav'
path_nav_selector
=
'.js-path-navigation'
filter_bar_selector
=
'.js-filter-bar'
path_nav_selector
=
'[data-testid="vsa-path-navigation"]'
filter_bar_selector
=
'[data-testid="vsa-filter-bar"]'
card_metric_selector
=
'[data-testid="vsa-time-metrics"] .gl-single-stat'
new_issues_count
=
3
...
...
@@ -29,7 +28,7 @@ RSpec.describe 'Group value stream analytics filters and data', :js do
def
select_stage
(
name
)
string_id
=
"CycleAnalyticsStage|
#{
name
}
"
within
'[data-testid="
gl-path-nav
"]'
do
within
'[data-testid="
vsa-path-navigation
"]'
do
page
.
find
(
'li'
,
text:
s_
(
string_id
),
match: :prefer_exact
).
click
end
...
...
@@ -124,12 +123,6 @@ RSpec.describe 'Group value stream analytics filters and data', :js do
end
end
context
'vertical navigation'
do
it
'does not show the vertical stage navigation'
do
expect
(
page
).
not_to
have_selector
(
stage_nav_selector
)
end
end
context
'navigation'
do
before
do
select_group
(
selected_group
)
...
...
@@ -302,7 +295,7 @@ RSpec.describe 'Group value stream analytics filters and data', :js do
[].
concat
(
stages_without_data
,
stages_with_data
).
each
do
|
stage
|
select_stage
(
stage
[
:title
])
stage_name
=
page
.
find
(
'.js-path-navigation .gl-path-active-item-indigo'
).
text
stage_name
=
page
.
find
(
"
#{
path_nav_selector
}
.gl-path-active-item-indigo"
).
text
expect
(
stage_name
).
to
include
(
stage
[
:title
])
expect
(
stage_name
).
to
include
(
stage
[
:time
])
end
...
...
ee/spec/features/groups/analytics/cycle_analytics/multiple_value_streams_spec.rb
View file @
6a64fc67
...
...
@@ -38,7 +38,7 @@ RSpec.describe 'Multiple value streams', :js do
end
def
path_nav_elem
page
.
find
(
'[data-testid="
gl-path-nav
"]'
)
page
.
find
(
'[data-testid="
vsa-path-navigation
"]'
)
end
def
click_action_button
(
action
,
index
)
...
...
spec/support/helpers/cycle_analytics_helpers.rb
View file @
6a64fc67
...
...
@@ -71,12 +71,12 @@ module CycleAnalyticsHelpers
save_value_stream
(
custom_value_stream_name
)
end
def
wait_for_stages_to_load
(
selector
=
'
.js-path-navigation
'
)
def
wait_for_stages_to_load
(
selector
=
'
[data-testid="vsa-path-navigation"]
'
)
expect
(
page
).
to
have_selector
selector
wait_for_requests
end
def
select_group
(
target_group
,
ready_selector
=
'
.js-path-navigation
'
)
def
select_group
(
target_group
,
ready_selector
=
'
[data-testid="vsa-path-navigation"]
'
)
visit
group_analytics_cycle_analytics_path
(
target_group
)
wait_for_stages_to_load
(
ready_selector
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment