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
044e2e5e
Commit
044e2e5e
authored
Sep 14, 2021
by
Dheeraj Joshi
Committed by
Ezekiel Kigbo
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused component from Cycle Analytics
parent
98a4386b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
112 deletions
+0
-112
app/assets/javascripts/cycle_analytics/components/banner.vue
app/assets/javascripts/cycle_analytics/components/banner.vue
+0
-56
locale/gitlab.pot
locale/gitlab.pot
+0
-9
spec/frontend/cycle_analytics/banner_spec.js
spec/frontend/cycle_analytics/banner_spec.js
+0
-47
No files found.
app/assets/javascripts/cycle_analytics/components/banner.vue
deleted
100644 → 0
View file @
98a4386b
<
script
>
import
{
GlIcon
}
from
'
@gitlab/ui
'
;
import
iconCycleAnalyticsSplash
from
'
icons/_icon_cycle_analytics_splash.svg
'
;
export
default
{
components
:
{
GlIcon
,
},
props
:
{
documentationLink
:
{
type
:
String
,
required
:
true
,
},
},
computed
:
{
iconCycleAnalyticsSplash
()
{
return
iconCycleAnalyticsSplash
;
},
},
methods
:
{
dismissOverviewDialog
()
{
this
.
$emit
(
'
dismiss-overview-dialog
'
);
},
},
};
</
script
>
<
template
>
<div
class=
"landing content-block"
>
<button
:aria-label=
"__('Dismiss Value Stream Analytics introduction box')"
class=
"js-ca-dismiss-button dismiss-button"
type=
"button"
@
click=
"dismissOverviewDialog"
>
<gl-icon
name=
"close"
/>
</button>
<div
class=
"svg-container"
v-html=
"iconCycleAnalyticsSplash /* eslint-disable-line vue/no-v-html */"
></div>
<div
class=
"inner-content"
>
<h4>
{{
__
(
'
Introducing Value Stream Analytics
'
)
}}
</h4>
<p>
{{
__
(
`Value Stream Analytics gives an overview
of how much time it takes to go from idea to production in your project.`
)
}}
</p>
<p>
<a
:href=
"documentationLink"
target=
"_blank"
rel=
"nofollow"
class=
"btn"
>
{{
__
(
'
Read more
'
)
}}
</a>
</p>
</div>
</div>
</
template
>
locale/gitlab.pot
View file @
044e2e5e
...
...
@@ -11893,9 +11893,6 @@ msgid_plural "Dismiss %d selected vulnerabilities as"
msgstr[0] ""
msgstr[1] ""
msgid "Dismiss Value Stream Analytics introduction box"
msgstr ""
msgid "Dismiss merge request promotion"
msgstr ""
...
...
@@ -18220,9 +18217,6 @@ msgstr ""
msgid "Interval Pattern"
msgstr ""
msgid "Introducing Value Stream Analytics"
msgstr ""
msgid "Introducing Your DevOps Report"
msgstr ""
...
...
@@ -36941,9 +36935,6 @@ msgstr ""
msgid "Value Stream Analytics can help you determine your team’s velocity"
msgstr ""
msgid "Value Stream Analytics gives an overview of how much time it takes to go from idea to production in your project."
msgstr ""
msgid "Value might contain a variable reference"
msgstr ""
...
...
spec/frontend/cycle_analytics/banner_spec.js
deleted
100644 → 0
View file @
98a4386b
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
Banner
from
'
~/cycle_analytics/components/banner.vue
'
;
describe
(
'
Value Stream Analytics banner
'
,
()
=>
{
let
wrapper
;
const
createComponent
=
()
=>
{
wrapper
=
shallowMount
(
Banner
,
{
propsData
:
{
documentationLink
:
'
path
'
,
},
});
};
beforeEach
(()
=>
{
createComponent
();
});
afterEach
(()
=>
{
wrapper
.
destroy
();
});
it
(
'
should render value stream analytics information
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
h4
'
).
text
().
trim
()).
toBe
(
'
Introducing Value Stream Analytics
'
);
expect
(
wrapper
.
find
(
'
p
'
)
.
text
()
.
trim
()
.
replace
(
/
[\r\n]
+/g
,
'
'
),
).
toContain
(
'
Value Stream Analytics gives an overview of how much time it takes to go from idea to production in your project.
'
,
);
expect
(
wrapper
.
find
(
'
a
'
).
text
().
trim
()).
toBe
(
'
Read more
'
);
expect
(
wrapper
.
find
(
'
a
'
).
attributes
(
'
href
'
)).
toBe
(
'
path
'
);
});
it
(
'
should emit an event when close button is clicked
'
,
async
()
=>
{
jest
.
spyOn
(
wrapper
.
vm
,
'
$emit
'
).
mockImplementation
(()
=>
{});
await
wrapper
.
find
(
'
.js-ca-dismiss-button
'
).
trigger
(
'
click
'
);
expect
(
wrapper
.
vm
.
$emit
).
toHaveBeenCalled
();
});
});
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