Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OHFJIRA-57 messages overview and message detail screen
- Loading branch information
Showing
33 changed files
with
1,144 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
module.exports = [ | ||
{ | ||
request: { | ||
method: 'GET', | ||
path: '/api/messages' | ||
}, | ||
response: { | ||
statusCode: 200, | ||
body: JSON.stringify({ | ||
'data': [ | ||
{ | ||
'id': 5232, | ||
'correlationId': '20301-2332-1321', | ||
'sourceSystem': 'CRM', | ||
'received': '2017-05-22T15:20:10', | ||
'processingStarted': '2017-05-22T15:20:10', | ||
'state': 'OK', | ||
'errorCode': 'E114', | ||
'serviceName': 'HELLO', | ||
'operationName': 'check' | ||
} | ||
], | ||
'limit': 100, | ||
'totalElements': 50 | ||
}) | ||
} | ||
}, | ||
{ | ||
request: { | ||
method: 'GET', | ||
path: '/api/messages/:id' | ||
}, | ||
response: { | ||
statusCode: 200, | ||
body: JSON.stringify({ | ||
'id': 5232, | ||
'allowedActions': [ | ||
'RESTART', | ||
'CANCEL' | ||
], | ||
'correlationId': '20301-2332-1231', | ||
'processId': '10231-2311-1144', | ||
'state': 'OK', | ||
'processingStarted': '2017-05-22T15:20:10', | ||
'lastChange': '2017-05-22T15:20:10', | ||
'errorCode': 'E114', | ||
'failedCount': 3, | ||
'sourceSystem': 'CRM', | ||
'received': '2017-05-22T15:20:10', | ||
'msgTimestamp': '2017-05-22T15:20:10', | ||
'serviceName': 'HELLO', | ||
'operationName': 'check', | ||
'objectId': 'object1', | ||
'entityType': 'ACCOUNT', | ||
'funnelValue': 'MSISDN', | ||
'funnelComponentId': 'componentId', | ||
'guaranteedOrder': false, | ||
'excludeFailedState': true, | ||
'businessError': 'Not enough balance in the account', | ||
'parentMsgId': 42, | ||
'body': '<hel:hello>Hello</hel:hello>', | ||
'envelope': '<note>\n<to>Tove</to>\n<from>X</from>\n<heading>Reminder</heading>\n<body>Dont forget this weekend!</body>\n</note>', | ||
'failedDescription': 'Something went terribly wrong', | ||
'requests': [ | ||
{ | ||
'id': 10233, | ||
'uri': 'spring-ws:http://helloservice.com', | ||
'timestamp': '2017-05-22T15:20:10', | ||
'payload': '<hel:hello>Hello</hel:hello>', | ||
'response': { | ||
'timestamp': '2017-05-22T15:20:10', | ||
'payload': '<hel:hello>Hello</hel:hello>' | ||
} | ||
} | ||
], | ||
'externalCalls': [ | ||
{ | ||
'id': 327, | ||
'state': 'OK', | ||
'operationName': 'direct:printGreeting', | ||
'callId': 'CRM_4yEW32321', | ||
'lastChange': '2017-05-22T15:20:10' | ||
} | ||
] | ||
}) | ||
} | ||
}, | ||
{ | ||
request: { | ||
method: 'POST', | ||
path: '/api/messages/:id/action' | ||
}, | ||
response: { | ||
statusCode: 200 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React, { Component } from 'react' | ||
import PropTypes from 'prop-types' | ||
import Radium from 'radium' | ||
import styles from './row.styles.js' | ||
|
||
@Radium | ||
class Row extends Component { | ||
|
||
render () { | ||
const { label, children } = this.props | ||
return ( | ||
<div style={styles.row} > | ||
{label && <div style={styles.label}>{label}</div>} | ||
<div style={styles.children}>{children}</div> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
Row.propTypes = { | ||
label: PropTypes.string, | ||
children: PropTypes.element | ||
} | ||
|
||
export default Row |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { smallGap } from '../../../styles/constants' | ||
|
||
export default { | ||
row: { | ||
position: 'relative', | ||
width: '100%', | ||
marginTop: smallGap, | ||
display: 'flex', | ||
flexDirection: 'row', | ||
boxSizing: 'border-box', | ||
justifyContent: 'flex-start' | ||
}, | ||
label: { | ||
width: '50%', | ||
fontWeight: 600, | ||
lineHeight: '30px' | ||
}, | ||
children: { | ||
width: '50%' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.