Skip to content

Commit a3a4462

Browse files
committed
chore: update rule texts
1 parent 507890d commit a3a4462

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

Diff for: app/components/ValidationConfig.tsx

+17-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const ruleOptions = [
5959
},
6060
{
6161
value: 'frameDefaultsHaveALocaleAndTimeZone',
62-
label: 'Frame defauls have a local and timezone',
62+
label: 'Frame defauls have a locale and timezone',
6363
},
6464
{
6565
value: 'locationsAreReferencingTheSamePoint',
@@ -79,6 +79,12 @@ export const FileInput = styled('input')({
7979
display: 'none',
8080
});
8181

82+
const Caption = ({ children }: { children: JSX.Element | string }) => {
83+
return (
84+
<Typography variant="caption" component="span">{children}</Typography>
85+
);
86+
};
87+
8288
type StatusChipProps = {
8389
status: string;
8490
}
@@ -223,8 +229,16 @@ const ValidationConfig = (props: ValidationConfigProps) => {
223229
<Typography><b>2.</b> In addition to the schema validation, we have also included a couple of optional rules that validate the consistency of the documents (work in progress)</Typography>
224230
<Typography>
225231
<ul style={{ marginTop: 0 }}>
226-
<li>Frame defaults - Verifies the validity of the <Typography variant="caption" component="span">{'<FrameDefaults />'}</Typography> elements.</li>
227-
<li>Stop point names - Checks that each <Typography variant="caption" component="span">{'<ScheduledStopPoint />'}</Typography> contain a valid <Typography variant="caption" component="span">{'<Name />'}</Typography>.</li>
232+
<li><i>Every line is referenced</i> - Make sure every Line <Caption>{'<Line />'}</Caption> is referenced from another element.</li>
233+
<li><i>Every scheduled stop point has a name</i> - Make sure every <Caption>{'<ScheduledStopPoint />'}</Caption> has a <Caption>{'<Name />'}</Caption> or <Caption>{'<ShortName />'}</Caption>.</li>
234+
<li><i>Every stop place has a correct stop place type</i> - Make sure every <Caption>{'<StopPlace />'}</Caption> has a <Caption>{'<stopPlaceType />'}</Caption> and that it is of correct type.</li>
235+
<li><i>Every stop place has a name</i> - Make sure every <Caption>{'<StopPlace />'}</Caption> has a name.</li>
236+
<li><i>Every stop place is referenced</i> - Make sure every <Caption>{'<StopPlace />'}</Caption> is referenced from another element.</li>
237+
<li><i>Every stop point have an arrival and departure time</i> - Make sure every <Caption>{'<ScheduledStopPointRef />'}</Caption> have an <Caption>{'<ArrivalTime />'}</Caption> and <Caption>{'<DepartureTime />'}</Caption>.</li>
238+
<li><i>Frame defaults have a locale and timezone</i> - Validates the correctness of <Caption>{'<DefaultLocale />'}</Caption> and <Caption>{'<TimeZone />'}</Caption> inside <Caption>{'<FrameDefaults />'}</Caption>.</li>
239+
<li><i>Locations are referencing the same point</i> - Make sure every <Caption>{'<Location />'}</Caption> in <Caption>{'<StopPlace />'}</Caption> and <Caption>{'<ScheduledStopPoint />'}</Caption> for the same <Caption>{'<StopAssignment />'}</Caption> are pointing to the same coordinates.</li>
240+
<li><i>Passing times have increasing times</i> - Make sure passing times have increasing times and day offsets.</li>
241+
<li><i>Stop place quay distance is reasonable</i> - Check the distance between a <Caption>{'<StopPlace />'}</Caption> and its <Caption>{'<Quay />'}</Caption>{`'`}s.</li>
228242
</ul>
229243
</Typography>
230244
<FormControl>

0 commit comments

Comments
 (0)