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
c76cba39
Commit
c76cba39
authored
Apr 30, 2020
by
Laura Montemayor
Committed by
Andrew Fontaine
Apr 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sets up initial structure for details
* Adds mock data
parent
1468db1d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
108 additions
and
0 deletions
+108
-0
app/assets/javascripts/alert_management/components/alert_details.vue
...javascripts/alert_management/components/alert_details.vue
+37
-0
app/assets/javascripts/alert_management/details.js
app/assets/javascripts/alert_management/details.js
+15
-0
app/assets/javascripts/pages/projects/alert_management/details/index.js
...ascripts/pages/projects/alert_management/details/index.js
+5
-0
app/views/projects/alert_management/details.html.haml
app/views/projects/alert_management/details.html.haml
+2
-0
locale/gitlab.pot
locale/gitlab.pot
+15
-0
spec/frontend/alert_management/components/alert_management_detail_spec.js
...ert_management/components/alert_management_detail_spec.js
+34
-0
No files found.
app/assets/javascripts/alert_management/components/alert_details.vue
0 → 100644
View file @
c76cba39
<
script
>
import
{
GlTabs
,
GlTab
}
from
'
@gitlab/ui
'
;
import
{
s__
}
from
'
~/locale
'
;
export
default
{
i18n
:
{
fullAlertDetailsTitle
:
s__
(
'
AlertManagement|Full Alert Details
'
),
overviewTitle
:
s__
(
'
AlertManagement|Overview
'
),
},
components
:
{
GlTab
,
GlTabs
,
},
};
</
script
>
<
template
>
<div>
<div
class=
"d-flex justify-content-between"
>
<gl-tabs>
<gl-tab
data-testid=
"overviewTab"
:title=
"$options.i18n.overviewTitle"
>
<ul
class=
"pl-3"
>
<li
data-testid=
"startTimeItem"
class=
"font-weight-bold mb-3 mt-2"
>
{{
s__
(
'
AlertManagement|Start time:
'
)
}}
</li>
<li
class=
"font-weight-bold my-3"
>
{{
s__
(
'
AlertManagement|End time:
'
)
}}
</li>
<li
class=
"font-weight-bold my-3"
>
{{
s__
(
'
AlertManagement|Events:
'
)
}}
</li>
</ul>
</gl-tab>
<gl-tab
data-testid=
"fullDetailsTab"
:title=
"$options.i18n.fullAlertDetailsTitle"
/>
</gl-tabs>
</div>
</div>
</
template
>
app/assets/javascripts/alert_management/details.js
0 → 100644
View file @
c76cba39
import
Vue
from
'
vue
'
;
import
AlertDetails
from
'
./components/alert_details.vue
'
;
export
default
selector
=>
{
// eslint-disable-next-line no-new
new
Vue
({
el
:
selector
,
components
:
{
AlertDetails
,
},
render
(
createElement
)
{
return
createElement
(
'
alert-details
'
,
{});
},
});
};
app/assets/javascripts/pages/projects/alert_management/details/index.js
0 → 100644
View file @
c76cba39
import
AlertDetails
from
'
~/alert_management/details
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
AlertDetails
(
'
#js-alert_details
'
);
});
app/views/projects/alert_management/details.html.haml
View file @
c76cba39
-
page_title
_
(
'Alert Details'
)
-
page_title
_
(
'Alert Details'
)
#js-alert_details
locale/gitlab.pot
View file @
c76cba39
...
@@ -1704,9 +1704,18 @@ msgstr ""
...
@@ -1704,9 +1704,18 @@ msgstr ""
msgid "AlertManagement|End time"
msgid "AlertManagement|End time"
msgstr ""
msgstr ""
msgid "AlertManagement|End time:"
msgstr ""
msgid "AlertManagement|Events"
msgid "AlertManagement|Events"
msgstr ""
msgstr ""
msgid "AlertManagement|Events:"
msgstr ""
msgid "AlertManagement|Full Alert Details"
msgstr ""
msgid "AlertManagement|More information"
msgid "AlertManagement|More information"
msgstr ""
msgstr ""
...
@@ -1716,12 +1725,18 @@ msgstr ""
...
@@ -1716,12 +1725,18 @@ msgstr ""
msgid "AlertManagement|No alerts to display."
msgid "AlertManagement|No alerts to display."
msgstr ""
msgstr ""
msgid "AlertManagement|Overview"
msgstr ""
msgid "AlertManagement|Severity"
msgid "AlertManagement|Severity"
msgstr ""
msgstr ""
msgid "AlertManagement|Start time"
msgid "AlertManagement|Start time"
msgstr ""
msgstr ""
msgid "AlertManagement|Start time:"
msgstr ""
msgid "AlertManagement|Status"
msgid "AlertManagement|Status"
msgstr ""
msgstr ""
...
...
spec/frontend/alert_management/components/alert_management_detail_spec.js
0 → 100644
View file @
c76cba39
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
AlertDetails
from
'
~/alert_management/components/alert_details.vue
'
;
describe
(
'
AlertDetails
'
,
()
=>
{
let
wrapper
;
function
mountComponent
()
{
wrapper
=
shallowMount
(
AlertDetails
);
}
beforeEach
(()
=>
{
mountComponent
();
});
afterEach
(()
=>
{
if
(
wrapper
)
{
wrapper
.
destroy
();
}
});
describe
(
'
Alert details
'
,
()
=>
{
it
(
'
renders a tab with overview information
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
[data-testid="overviewTab"]
'
).
exists
()).
toBe
(
true
);
});
it
(
'
renders a tab with full alert information
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
[data-testid="fullDetailsTab"]
'
).
exists
()).
toBe
(
true
);
});
it
(
'
renders alert details
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
[data-testid="startTimeItem"]
'
).
exists
()).
toBe
(
true
);
});
});
});
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