From f56d8ad926ad3b548802eeae567107fb7e65b2d0 Mon Sep 17 00:00:00 2001 From: Keith Paterson Date: Thu, 3 Jun 2021 11:32:48 +0200 Subject: [PATCH] Check --- src/renderer/components/CheckPanel.vue | 10 ++++++---- src/renderer/utils/check.js | 4 ++-- src/renderer/utils/check_msg.json | 18 +++++++++--------- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/renderer/components/CheckPanel.vue b/src/renderer/components/CheckPanel.vue index 0996905..abf4770 100644 --- a/src/renderer/components/CheckPanel.vue +++ b/src/renderer/components/CheckPanel.vue @@ -5,24 +5,26 @@
- +

Check not run

- - + + + {{ result.message[0] }} - +
diff --git a/src/renderer/utils/check.js b/src/renderer/utils/check.js index eab5fb2..03833c7 100644 --- a/src/renderer/utils/check.js +++ b/src/renderer/utils/check.js @@ -302,11 +302,11 @@ async function checkGroundnet(data) { this.postMessage(['progress', 1]); if (parkings.length === 0) { - notOkNodes.push({ id: 0, message: check_msg.NO_PARKINGS }); + notOkNodes.push({ id: -2, message: check_msg.NO_PARKINGS }); } this.postMessage(['progress', 1]); if (runwayNodeIDs.length === 0) { - notOkNodes.push({ id: 0, message: check_msg.NO_RUNWAY_NODES }); + notOkNodes.push({ id: -2, message: check_msg.NO_RUNWAY_NODES }); } this.postMessage(['progress', 1]); var allEnds = Object.entries(bidirectionalGraph).filter( diff --git a/src/renderer/utils/check_msg.json b/src/renderer/utils/check_msg.json index fc2c09d..dc3723a 100644 --- a/src/renderer/utils/check_msg.json +++ b/src/renderer/utils/check_msg.json @@ -1,29 +1,29 @@ { "LONG_ROUTE_START" : ["Start of long route", "Route segments of >2km are Taxidraw artefacts"], "LONG_ROUTE_END": ["End of long route", "Route segments of >2km are Taxidraw artefacts"], - "EDGE_MISSING_DIRECTION": ["Edge missing direction", ""], + "EDGE_MISSING_DIRECTION": ["Edge missing direction", "Each edge must have a direction (forward, backward, bi-directional)"], "NO_RUNWAY_ROUTE": ["No way from parking to each runway", ""], "NO_PARKING_ROUTE": ["No way from runway to each parking", ""], "NO_PARKINGS": ["No parkings", ""], - "NO_RUNWAYNODES": ["No Runwaynodes", ""], + "NO_RUNWAY_NODES": ["No Runwaynodes", "Fine for parking only"], "NOT_LEGIT_END": ["Node not a legimate end", "Taxiroutes must end either at a parking or on a runway"], "UNKNOWN_RADIUS" :["Unknown radius", "Radii must be one from the list"], - "OVERLAPPING_PARKINGS" :["Overlapping parkings", ""], - "NAME_EMPTY" :["Name empty", ""], - "TYPE_EMPTY" :["Parking type empty", ""], - "PARKING_TYPE_INVALID" :["Parking type not valid", ""], + "OVERLAPPING_PARKINGS" :["Overlapping parkings", "Parkings must not overlap"], + "NAME_EMPTY" :["Name empty", "Name of parking must not be empty"], + "TYPE_EMPTY" :["Parking type empty", "The parking type must not be empty"], + "PARKING_TYPE_INVALID" :["Parking type not valid", "The type of parking must be one of ()"], "DUAL_PUSHBACK": ["Dual runway/ pushback node", "A runway node can not be a hold node at the same time"], "RUNWAY_NODE_NOT_ON_RUNWAY" : ["Runwaynode not on runway", ""], "NON_RUNWAYNODE_ON_RUNWAY": ["Non Runwaynode on runway", ""], - "PARKINGS_VALID": ["Parkings valid", ""], + "PARKINGS_VALID": ["Parkings valid", "All Ok"], "NO_OVERLAPPING_PARKINGS": ["No parkings overlapping", ""], "NO_INVALID_ENDS": ["No invalid ends", ""], "ROUTES_FROM_PARKINGS_OK": ["Routes from parkings OK", ""], "ROUTES_FROM_RUNWAYS_OK": ["Routes from runways OK", ""], "PUSHBACK_ROUTES_OK": ["Pushback routes OK", ""], "UNCONNECTED_PUSHBACK": ["Unconnected Pushbacknode", ""], - "NO_WAY_TO_HOLDPOINT":["No way to pushback holdpoint", ""], - "MULTIPLE_PUSHBACK": ["Multiple connected pushback points", ""], + "NO_WAY_TO_HOLDPOINT":["No way to pushback holdpoint", "There is no route to the pushback hold point"], + "MULTIPLE_PUSHBACK": ["Multiple connected pushback points", "There are more than one possible pushback holdpoint routes."], "PUSHBACK_NOT_CONNECTED": ["Pushback Holding Point not Connected to Pushback Route", ""], "TO_MANY_PUSHBACK_TAXI_ROUTES": ["Too many Taxi routes from Pushback Holding Point", ""], "PUSHBACK_EXIT_NOT_BIDRECTIONAL": ["Pushback Holding Point Exit route is not bidirectional", ""],