Skip to content

Commit

Permalink
Reword TR title; Update debrief selectors with SC; Update FaultCountP…
Browse files Browse the repository at this point in the history
…rovider (#1026)
  • Loading branch information
matthew2564 authored Feb 8, 2023
1 parent f582aef commit 38abeb7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/debrief/debrief.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,14 @@ export class DebriefPage extends PracticeableBasePageComponent {
),
grade$: currentTest$.pipe(
withLatestFrom(testCategory$),
filter(([, category]) => category === TestCategory.ADI3),
filter(([, category]) => isAnyOf(category, [TestCategory.ADI3, TestCategory.SC])),
map(([data, category]) => this.testDataByCategoryProvider.getTestDataByCategoryCode(category)(data)),
select(getReview),
select(getGrade),
),
immediateDanger$: currentTest$.pipe(
withLatestFrom(testCategory$),
filter(([, category]) => category === TestCategory.ADI3),
filter(([, category]) => isAnyOf(category, [TestCategory.ADI3, TestCategory.SC])),
map(([data, category]) => this.testDataByCategoryProvider.getTestDataByCategoryCode(category)(data)),
select(getReview),
select(getImmediateDanger),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<ion-row class="mes-full-width-card-small-top ion-nowrap">
<ion-col size="60">
<h2 id="adi-pt3-dashboard-title" class="normal-font-weight ion-padding-start">
{{testCategory === 'SC' ? 'Standards check':'ADI Part 3 Assessment'}}
{{testCategory === 'SC' ? 'Standards check':'ADI Part 3'}} assessment
</h2>
</ion-col>
<ion-col>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ion-row class="mes-full-width-card-small-top ion-nowrap">
<ion-col size="60">
<h2 id="adi-pt3-assessment-lesson-theme-title" class="normal-font-weight ion-padding-start">
{{testCategory === 'SC' ? 'Standards check':'ADI Part 3 Assessment'}}
{{testCategory === 'SC' ? 'Standards check':'ADI Part 3'}} assessment
</h2>
</ion-col>
<ion-col size="36">
Expand All @@ -40,7 +40,7 @@ <h2 id="adi-pt3-lesson-theme-title" class="ion-float-right normal-font-weight io
<ion-row class="mes-full-width-card-small-top ion-nowrap">
<ion-col size="60">
<h2 id="adi-pt3-assessment-test-report-title" class="normal-font-weight ion-padding-start">
{{testCategory === 'SC' ? 'Standards check':'ADI Part 3 Assessment'}}
{{testCategory === 'SC' ? 'Standards check':'ADI Part 3'}} assessment
</h2>
</ion-col>
<ion-col size="36">
Expand Down
4 changes: 2 additions & 2 deletions src/app/providers/fault-count/fault-count.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export class FaultCountProvider {
case TestCategory.ADI2:
return FaultCountADIPart2Helper.getDrivingFaultSumCountCatADIPart2(data);
case TestCategory.ADI3:
case TestCategory.BE:
return FaultCountBEHelper.getDrivingFaultSumCountCatBE(data);
case TestCategory.SC:
return 0;
case TestCategory.BE:
return FaultCountBEHelper.getDrivingFaultSumCountCatBE(data);
case TestCategory.B:
return FaultCountBHelper.getDrivingFaultSumCountCatB(data);
case TestCategory.C1:
Expand Down

0 comments on commit 38abeb7

Please sign in to comment.