|
1 | 1 | // @flow
|
2 | 2 |
|
| 3 | +import moment from 'moment' |
3 | 4 | import React, {Component} from 'react'
|
4 |
| -import {Panel, Row, Col, Table, Button, ButtonToolbar, Glyphicon, Alert} from 'react-bootstrap' |
| 5 | +import { |
| 6 | + Alert, |
| 7 | + Button, |
| 8 | + ButtonToolbar, |
| 9 | + Col, |
| 10 | + Glyphicon, |
| 11 | + Panel, |
| 12 | + Row, |
| 13 | + Table |
| 14 | +} from 'react-bootstrap' |
5 | 15 | import {browserHistory, Link} from 'react-router'
|
6 |
| -import moment from 'moment' |
7 | 16 |
|
8 |
| -import {getGtfsPlusSpec} from '../../common/util/config' |
9 | 17 | import * as gtfsPlusActions from '../actions/gtfsplus'
|
10 | 18 |
|
| 19 | +import {getGtfsPlusSpec} from '../../common/util/config' |
11 | 20 | import type {Props as ContainerProps} from '../containers/ActiveGtfsPlusVersionSummary'
|
| 21 | +import type {GtfsPlusValidationIssue} from '../../types' |
12 | 22 | import type {GtfsPlusReducerState, ManagerUserState} from '../../types/reducers'
|
13 | 23 |
|
14 | 24 | type Props = ContainerProps & {
|
@@ -51,7 +61,7 @@ export default class GtfsPlusVersionSummary extends Component<Props, State> {
|
51 | 61 | return issuesForTable[tableId].length.toLocaleString()
|
52 | 62 | }
|
53 | 63 |
|
54 |
| - _getTableLevelIssues = (tableId: string) => { |
| 64 | + _getTableLevelIssues = (tableId: string): ?Array<GtfsPlusValidationIssue> => { |
55 | 65 | const {issuesForTable} = this.props
|
56 | 66 | if (!issuesForTable) return null
|
57 | 67 | if (!(tableId in issuesForTable)) return null
|
@@ -214,7 +224,7 @@ export default class GtfsPlusVersionSummary extends Component<Props, State> {
|
214 | 224 | {tableLevelIssues.length} critical table issue(s):
|
215 | 225 | <ul>
|
216 | 226 | {tableLevelIssues.map((issue, i) =>
|
217 |
| - <li key={i}>{issue.description}</li>)} |
| 227 | + <li key={i}>{issue.fieldName}: {issue.description}</li>)} |
218 | 228 | </ul>
|
219 | 229 | </small>
|
220 | 230 | : null
|
|
0 commit comments