diff --git a/lib/manager/components/validation/GtfsValidationViewer.js b/lib/manager/components/validation/GtfsValidationViewer.js index ffbf19c60..0621dea82 100644 --- a/lib/manager/components/validation/GtfsValidationViewer.js +++ b/lib/manager/components/validation/GtfsValidationViewer.js @@ -30,6 +30,7 @@ import type {Props as FeedVersionViewerProps} from '../version/FeedVersionViewer import type {ValidationResult} from '../../../types' import ValidationErrorItem from './ValidationErrorItem' +import MobilityDataValidationResult from './MobilityDataValidationResult' const DEFAULT_LIMIT = 10 @@ -269,6 +270,16 @@ export default class GtfsValidationViewer extends Component { {this.messages('title')} {validationContent} + Mobility Data + + {version.mobilityDataResult && version.mobilityDataResult.notices.map(notice => ( + + )) } + + This is the no validation errors message that should only appear if there are none. + + + ) } diff --git a/lib/manager/components/validation/MobilityDataValidationResult.js b/lib/manager/components/validation/MobilityDataValidationResult.js new file mode 100644 index 000000000..f493dc75d --- /dev/null +++ b/lib/manager/components/validation/MobilityDataValidationResult.js @@ -0,0 +1,10 @@ +import React from 'react' +import { ListGroupItem } from 'react-bootstrap' + +const MobilityDataValidationResult = (props) => { + const {notice} = props + + return

{notice.code}

+} + +export default MobilityDataValidationResult \ No newline at end of file diff --git a/lib/types/index.js b/lib/types/index.js index 7ef9b4ca1..0dc090cb3 100644 --- a/lib/types/index.js +++ b/lib/types/index.js @@ -542,6 +542,8 @@ export type FeedVersion = FeedVersionSummary & { nextVersionId: ?string, noteCount: number, notes: Array, + // TODO: Type + mobilityDataResult: ?any, previousVersionId: ?string, processedByExternalPublisher: ?number, sentToExternalPublisher: ?number,