Skip to content

Commit

Permalink
Fixed wording issues and removed button from rekey journey
Browse files Browse the repository at this point in the history
  • Loading branch information
RLCorp committed Sep 17, 2024
1 parent cc115b9 commit a426dbc
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ion-row class="spacing-padding" [class.mes-row-separator]="shouldHaveSeparator" [formGroup]="formGroup">
<ion-col class="component-label ion-align-self-start col-padding" size="33">
<label>Alternative evidence details</label>
<label>Alternative MOT evidence details</label>
</ion-col>

<ion-col size="58" class="ion-align-self-center ion-padding-start">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h2 class="des-header-style-4" id="view-test-result-vehicle-details-title">Vehic

<data-row
*ngIf="data.motEvidenceProvided"
[label]="'Alternative evidence details'"
[label]="'Alternative MOT evidence details'"
[value]="data.motEvidence"
></data-row>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>
<ion-row *ngIf="(pageState.motEvidenceProvided$ | async) === false">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
[formGroup]="form"
[isPracticeMode]="isEndToEndPracticeMode"
[vehicleRegistration]="pageState.registrationNumber$ | async"
[isRekeyMode]="pageState.isRekeyMode$ | async"
>
</vehicle-registration>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ion-col class="ion-align-self-center mes-padding-left">
<ion-row class="spacing-row"></ion-row>
<ion-row>
<ion-col class="display-flex" size="45">
<ion-col class="display-flex" [size]="isRekeyMode ? 57 : 45">
<ion-input
type="text"
id="registration"
Expand All @@ -31,7 +31,7 @@
pasteSanitiser
></ion-input>
</ion-col>
<ion-col size="35">
<ion-col *ngIf="!isRekeyMode" size="35">
<ion-button
[disabled]="!((formControl.valid) && (networkState.getNetworkState() == ConnectionStatus.ONLINE || isPracticeMode))"
class="mes-grey-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export class VehicleRegistrationComponent implements OnChanges {
formGroup: UntypedFormGroup;
@Input()
isPracticeMode: boolean;
@Input()
isRekeyMode: boolean;

@Output()
vehicleRegistrationChange = new EventEmitter<string>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ import {
getMotEvidenceProvided,
getRegistrationNumber,
} from '@store/tests/vehicle-details/vehicle-details.selector';
import { getRekeyIndicator } from '@store/tests/rekey/rekey.reducer';
import { isRekey } from '@store/tests/rekey/rekey.selector';

export interface CommonWaitingRoomToCarPageState {
candidateName$: Observable<string>;
Expand All @@ -103,6 +105,7 @@ export interface CommonWaitingRoomToCarPageState {
motEvidenceProvided$: Observable<boolean>;
isOffline$: Observable<boolean>;
motEvidenceDescription$: Observable<string>;
isRekeyMode$: Observable<boolean>;
}

export const wrtcDestroy$ = new Subject<{}>();
Expand Down Expand Up @@ -168,6 +171,12 @@ export abstract class WaitingRoomToCarBasePageComponent extends PracticeableBase
motEvidenceProvided$: currentTest$.pipe(select(getVehicleDetails), select(getMotEvidenceProvided)),
motEvidenceDescription$: currentTest$.pipe(select(getVehicleDetails), select(getMotEvidence)),
isOffline$: this.networkStateProvider.isOffline$,
isRekeyMode$: this.store$.pipe(
select(getTests),
select(getCurrentTest),
select(getRekeyIndicator),
select(isRekey)
),
};
}

Expand Down

0 comments on commit a426dbc

Please sign in to comment.