Skip to content

Commit

Permalink
feat(dashboard): add delivery error information on mouli
Browse files Browse the repository at this point in the history
  • Loading branch information
EliotAmn committed Jan 19, 2025
1 parent 6f7367e commit 8de0e16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions web/src/models/MouliResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export class MouliResult {
build_trace: string | null;
banned_content: string | null;
skills: MouliSkill[];
delivery_error: boolean | null;
evolution: {
"dates": string[],
"scores": number[],
Expand All @@ -104,6 +105,7 @@ export class MouliResult {
this.skills = data.skills.map((skill: any) => new MouliSkill(skill));
this.coding_style = new CodingStyleResult(data.coding_style_report);
this.evolution = data.evolution;
this.delivery_error = data.delivery_error;
}

crashCount() {
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/mouli/MouliContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default function MouliContent(props: { mouli: MouliResult | null }): Reac
<p>Test date: {dateToString(mouli.test_date)}</p>
<p>Test n°{mouli.test_id}</p>
<ElemStatus
err_content={mouli.isManyMandatoryFailed() ? "Mandatory failed" : null}
err_content={mouli.delivery_error ? "Delivery Error" : mouli.isManyMandatoryFailed() ? "Mandatory failed" : null}
/>
</div>
</div>
Expand Down

0 comments on commit 8de0e16

Please sign in to comment.