phobos_checkpoint_ui 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/frontend/src/actions/event-details.js +5 -7
- data/frontend/src/actions/event-retry.js +7 -9
- data/frontend/src/actions/events-search.js +5 -7
- data/frontend/src/actions/failures/details.js +5 -7
- data/frontend/src/actions/failures/details.spec.js +1 -1
- data/frontend/src/actions/failures/retry.js +34 -17
- data/frontend/src/actions/failures/retry.spec.js +52 -5
- data/frontend/src/actions/failures/search/index.js +5 -8
- data/frontend/src/actions/failures/search/index.spec.js +2 -2
- data/frontend/src/actions/index.js +3 -1
- data/frontend/src/components/empty-event/empty-event.scss +6 -0
- data/frontend/src/components/event/card-style.js +29 -0
- data/frontend/src/components/event/event.scss +12 -0
- data/frontend/src/components/event/index.js +12 -21
- data/frontend/src/components/event/index.spec.js +3 -2
- data/frontend/src/components/event-overview-dialog/index.js +1 -1
- data/frontend/src/components/event-retry-dialog/index.js +9 -1
- data/frontend/src/components/failure/empty/empty-failure.scss +6 -0
- data/frontend/src/components/failure/empty/index.js +20 -0
- data/frontend/src/components/failure/empty/index.spec.js +38 -0
- data/frontend/src/components/failure/index.js +11 -20
- data/frontend/src/components/failure/index.scss +15 -0
- data/frontend/src/components/failure/index.spec.js +19 -14
- data/frontend/src/components/{failures-list → failure/list}/failures-list.scss +1 -1
- data/frontend/src/components/{failures-list → failure/list}/index.spec.js +15 -11
- data/frontend/src/components/failure/overview-dialog/index.js +4 -4
- data/frontend/src/components/failure/retry-dialog/index.js +14 -9
- data/frontend/src/components/flash-message/flash-message.scss +0 -1
- data/frontend/src/components/header/header.scss +5 -0
- data/frontend/src/components/header/index.js +62 -22
- data/frontend/src/reducers/event-details.js +9 -8
- data/frontend/src/reducers/event-details.spec.js +12 -2
- data/frontend/src/reducers/failures/details/index.js +9 -8
- data/frontend/src/reducers/failures/details/index.spec.js +12 -2
- data/frontend/src/reducers/failures/index.js +6 -4
- data/frontend/src/reducers/failures/index.spec.js +5 -5
- data/frontend/src/reducers/xhr-status.js +4 -0
- data/frontend/src/reducers/xhr-status.spec.js +20 -0
- data/frontend/src/views/events/search/index.scss +0 -7
- data/frontend/src/views/failures/details/index.js +2 -2
- data/frontend/src/views/failures/search/index.js +5 -5
- data/frontend/src/views/failures/search/index.scss +1 -8
- data/frontend/src/views/failures/search/index.spec.js +4 -4
- data/frontend/src/views/layout.js +2 -2
- data/lib/phobos_checkpoint_ui/version.rb +1 -1
- metadata +12 -12
- data/frontend/src/components/event/style.js +0 -16
- data/frontend/src/components/failure/error-message.js +0 -19
- data/frontend/src/components/failure/error-message.scss +0 -8
- data/frontend/src/components/failure/event.scss +0 -3
- data/frontend/src/components/failure/loading.js +0 -16
- data/frontend/src/components/failure/style.js +0 -16
- /data/frontend/src/components/{failures-list → failure/list}/index.js +0 -0
- /data/frontend/src/components/failure/overview-dialog/{event-overview-dialog.scss → failure-overview-dialog.scss} +0 -0
@@ -9,6 +9,8 @@ import {
|
|
9
9
|
RECEIVE_FAILURES_SEARCH_RESULTS,
|
10
10
|
REQUEST_FAILURES_SEARCH_RESULTS_FAILED,
|
11
11
|
LOAD_MORE_FAILURES_SEARCH_RESULTS,
|
12
|
+
REQUEST_FAILURE_RETRY,
|
13
|
+
REQUEST_FAILURE_RETRY_FAILED,
|
12
14
|
REQUEST_EVENT_RETRY,
|
13
15
|
RECEIVE_EVENT_RETRY,
|
14
16
|
REQUEST_EVENT_RETRY_FAILED
|
@@ -116,6 +118,15 @@ describe('reducers/xhr-status', () => {
|
|
116
118
|
})
|
117
119
|
})
|
118
120
|
|
121
|
+
describe('for REQUEST_FAILURE_RETRY', () => {
|
122
|
+
it('enables isRetryingEvent', () => {
|
123
|
+
const currentState = { isRetryingEvent: false }
|
124
|
+
const action = { type: REQUEST_FAILURE_RETRY }
|
125
|
+
const expectedState = { isRetryingEvent: true }
|
126
|
+
expect(reducer(currentState, action)).toEqual(expectedState)
|
127
|
+
})
|
128
|
+
})
|
129
|
+
|
119
130
|
describe('for RECEIVE_EVENT_RETRY', () => {
|
120
131
|
it('disables isRetryingEvent', () => {
|
121
132
|
const currentState = { isRetryingEvent: true }
|
@@ -134,6 +145,15 @@ describe('reducers/xhr-status', () => {
|
|
134
145
|
})
|
135
146
|
})
|
136
147
|
|
148
|
+
describe('for REQUEST_FAILURE_RETRY_FAILED', () => {
|
149
|
+
it('disables isRetryingEvent', () => {
|
150
|
+
const currentState = { isRetryingEvent: true }
|
151
|
+
const action = { type: REQUEST_FAILURE_RETRY_FAILED }
|
152
|
+
const expectedState = { isRetryingEvent: false }
|
153
|
+
expect(reducer(currentState, action)).toEqual(expectedState)
|
154
|
+
})
|
155
|
+
})
|
156
|
+
|
137
157
|
describe('for default', () => {
|
138
158
|
it('returns the currentState', () => {
|
139
159
|
const currentState = { current: true }
|
@@ -6,7 +6,7 @@ import { fetchFailureDetails } from 'actions/failures/details'
|
|
6
6
|
import FailureOverviewDialog from 'components/failure/overview-dialog'
|
7
7
|
import FailureRetryDialog from 'components/failure/retry-dialog'
|
8
8
|
|
9
|
-
class
|
9
|
+
class FailureDetails extends Component {
|
10
10
|
static get propTypes () {
|
11
11
|
return {
|
12
12
|
fetchFailureDetails: PropTypes.func.isRequired
|
@@ -47,4 +47,4 @@ export default connect(
|
|
47
47
|
(state) => state, {
|
48
48
|
fetchFailureDetails
|
49
49
|
}
|
50
|
-
)(
|
50
|
+
)(FailureDetails)
|
@@ -2,8 +2,8 @@ import React, { Component, PropTypes } from 'react'
|
|
2
2
|
import { connect } from 'react-redux'
|
3
3
|
|
4
4
|
import LoadMore from 'components/load-more'
|
5
|
-
import
|
6
|
-
import FailuresList from 'components/
|
5
|
+
import EmptyFailure from 'components/failure/empty'
|
6
|
+
import FailuresList from 'components/failure/list'
|
7
7
|
import SearchInput from 'components/search-input'
|
8
8
|
import CircularProgress from 'material-ui/CircularProgress'
|
9
9
|
|
@@ -81,9 +81,9 @@ export class FailuresSearch extends Component {
|
|
81
81
|
<div>
|
82
82
|
<FailuresList failures={failures} />
|
83
83
|
<LoadMore {...this.props} />
|
84
|
-
<
|
85
|
-
|
86
|
-
isFetchingEvents={this.props.xhrStatus.isFetchingEvents}/>
|
84
|
+
<EmptyFailure
|
85
|
+
failures={failures}
|
86
|
+
isFetchingEvents={this.props.xhrStatus.isFetchingEvents} />
|
87
87
|
</div>
|
88
88
|
{
|
89
89
|
this.isFetchingFirstPage() &&
|
@@ -9,8 +9,8 @@ import configureMockStore from 'redux-mock-store'
|
|
9
9
|
import thunk from 'redux-thunk'
|
10
10
|
|
11
11
|
import SearchInput from 'components/search-input'
|
12
|
-
import FailuresList from 'components/
|
13
|
-
import
|
12
|
+
import FailuresList from 'components/failure/list'
|
13
|
+
import FailureEvent from 'components/failure/empty'
|
14
14
|
|
15
15
|
const middlewares = [ thunk ]
|
16
16
|
const mockStore = configureMockStore(middlewares)
|
@@ -64,8 +64,8 @@ describe('view <FailuresSearch />', () => {
|
|
64
64
|
expect(wrapper.contains(<FailuresList failures={props.failures} />)).toEqual(true)
|
65
65
|
})
|
66
66
|
|
67
|
-
it('renders <
|
68
|
-
expect(wrapper.contains(<
|
67
|
+
it('renders <FailureEvent />', () => {
|
68
|
+
expect(wrapper.contains(<FailureEvent failures={props.failures} isFetchingEvents={props.xhrStatus.isFetchingEvents} />)).toEqual(true)
|
69
69
|
})
|
70
70
|
|
71
71
|
describe('when it initializes with filter type and value', () => {
|
@@ -7,12 +7,12 @@ import getMuiTheme from 'material-ui/styles/getMuiTheme'
|
|
7
7
|
import Header from 'components/header'
|
8
8
|
import FlashMessageList from 'components/flash-message-list'
|
9
9
|
|
10
|
-
const
|
10
|
+
const importedTheme = getMuiTheme(lightBaseTheme)
|
11
11
|
|
12
12
|
export default class extends Component {
|
13
13
|
render () {
|
14
14
|
return (
|
15
|
-
<MuiThemeProvider muiTheme={
|
15
|
+
<MuiThemeProvider muiTheme={importedTheme}>
|
16
16
|
<div className='layout'>
|
17
17
|
<Header />
|
18
18
|
<FlashMessageList />
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phobos_checkpoint_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Túlio Ornelas
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2017-03-
|
16
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: bundler
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- frontend/src/actions/search-input-filter.spec.js
|
207
207
|
- frontend/src/api.js
|
208
208
|
- frontend/src/components/attribute/index.js
|
209
|
+
- frontend/src/components/empty-event/empty-event.scss
|
209
210
|
- frontend/src/components/empty-event/index.js
|
210
211
|
- frontend/src/components/empty-event/index.spec.js
|
211
212
|
- frontend/src/components/event-overview-dialog/event-overview-dialog.scss
|
@@ -214,32 +215,31 @@ files:
|
|
214
215
|
- frontend/src/components/event-overview/index.js
|
215
216
|
- frontend/src/components/event-overview/index.spec.js
|
216
217
|
- frontend/src/components/event-retry-dialog/index.js
|
218
|
+
- frontend/src/components/event/card-style.js
|
217
219
|
- frontend/src/components/event/error-message.js
|
218
220
|
- frontend/src/components/event/error-message.scss
|
219
221
|
- frontend/src/components/event/event.scss
|
220
222
|
- frontend/src/components/event/index.js
|
221
223
|
- frontend/src/components/event/index.spec.js
|
222
224
|
- frontend/src/components/event/loading.js
|
223
|
-
- frontend/src/components/event/style.js
|
224
225
|
- frontend/src/components/events-list/events-list.scss
|
225
226
|
- frontend/src/components/events-list/index.js
|
226
227
|
- frontend/src/components/events-list/index.spec.js
|
227
|
-
- frontend/src/components/failure/
|
228
|
-
- frontend/src/components/failure/
|
229
|
-
- frontend/src/components/failure/
|
228
|
+
- frontend/src/components/failure/empty/empty-failure.scss
|
229
|
+
- frontend/src/components/failure/empty/index.js
|
230
|
+
- frontend/src/components/failure/empty/index.spec.js
|
230
231
|
- frontend/src/components/failure/index.js
|
232
|
+
- frontend/src/components/failure/index.scss
|
231
233
|
- frontend/src/components/failure/index.spec.js
|
232
|
-
- frontend/src/components/failure/
|
233
|
-
- frontend/src/components/failure/
|
234
|
+
- frontend/src/components/failure/list/failures-list.scss
|
235
|
+
- frontend/src/components/failure/list/index.js
|
236
|
+
- frontend/src/components/failure/list/index.spec.js
|
237
|
+
- frontend/src/components/failure/overview-dialog/failure-overview-dialog.scss
|
234
238
|
- frontend/src/components/failure/overview-dialog/index.js
|
235
239
|
- frontend/src/components/failure/overview/failure-overview.scss
|
236
240
|
- frontend/src/components/failure/overview/index.js
|
237
241
|
- frontend/src/components/failure/overview/index.spec.js
|
238
242
|
- frontend/src/components/failure/retry-dialog/index.js
|
239
|
-
- frontend/src/components/failure/style.js
|
240
|
-
- frontend/src/components/failures-list/failures-list.scss
|
241
|
-
- frontend/src/components/failures-list/index.js
|
242
|
-
- frontend/src/components/failures-list/index.spec.js
|
243
243
|
- frontend/src/components/flash-message-list/index.js
|
244
244
|
- frontend/src/components/flash-message/flash-message.scss
|
245
245
|
- frontend/src/components/flash-message/index.js
|
@@ -1,16 +0,0 @@
|
|
1
|
-
export default {
|
2
|
-
card: {
|
3
|
-
width: '490px',
|
4
|
-
overflow: 'hidden',
|
5
|
-
backgroundColor: '#fff'
|
6
|
-
},
|
7
|
-
cardHeader: {
|
8
|
-
title: {color: '#000', fontWeight: 'lighter'},
|
9
|
-
subtitle: {color: '#000'}
|
10
|
-
},
|
11
|
-
cardTitle: {
|
12
|
-
color: '#000',
|
13
|
-
fontSize: '38px',
|
14
|
-
fontWeight: 'lighter'
|
15
|
-
}
|
16
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import React, { Component, PropTypes } from 'react'
|
2
|
-
import ErrorSVG from 'material-ui/svg-icons/alert/error'
|
3
|
-
|
4
|
-
export default class extends Component {
|
5
|
-
static get propTypes () {
|
6
|
-
return {
|
7
|
-
message: PropTypes.string
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
render () {
|
12
|
-
return this.props.message ? (
|
13
|
-
<div className='event-error-message'>
|
14
|
-
<ErrorSVG style={{marginRight: '10px'}}/>
|
15
|
-
<span>{this.props.message}</span>
|
16
|
-
</div>
|
17
|
-
) : null
|
18
|
-
}
|
19
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import React, { Component, PropTypes } from 'react'
|
2
|
-
import CircularProgress from 'material-ui/CircularProgress'
|
3
|
-
|
4
|
-
export default class extends Component {
|
5
|
-
static get propTypes () {
|
6
|
-
return {
|
7
|
-
visible: PropTypes.bool.isRequired
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
render () {
|
12
|
-
return this.props.visible
|
13
|
-
? <CircularProgress />
|
14
|
-
: null
|
15
|
-
}
|
16
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
export default {
|
2
|
-
card: {
|
3
|
-
width: '490px',
|
4
|
-
overflow: 'hidden',
|
5
|
-
backgroundColor: '#fff'
|
6
|
-
},
|
7
|
-
cardHeader: {
|
8
|
-
title: {color: '#000', fontWeight: 'lighter'},
|
9
|
-
subtitle: {color: '#000'}
|
10
|
-
},
|
11
|
-
cardTitle: {
|
12
|
-
color: '#000',
|
13
|
-
fontSize: '38px',
|
14
|
-
fontWeight: 'lighter'
|
15
|
-
}
|
16
|
-
}
|
File without changes
|
File without changes
|