Skip to content

Commit

Permalink
mes-MOTStatus (#1722)
Browse files Browse the repository at this point in the history
* Added MOT service to waiting room to car

* WIP: Added alternative evidence functionality.

* WIP: Added analytics and state compatability

* WIP: Adding unit tests

* Added unit tests

* changed network to protected

* State fixed and analytics removed

* moved clear functionality to its own function

* WIP: Added MOT iteration 6

* WIP: Added MOT iteration 6

* WIP: lint

* WIP: mot iteration 6

* Refactored code and made failed MOT modal uppercase only

* Refactored code and made failed MOT modal uppercase only

* Added Offline stub for demo

* WIP: Added way to toggle between real data and fake data set

* WIP: Added comments to explain temporary functionality

* WIP: Added offline banner with support for fake offline for demonstration purposes

* WIP: Formatting and change to offline logic

* WIP: Fix change to offline logic

* Added new text to signify the user lost connection while the call was being made

* Updated spinner to work as intended

* WIP: updated unit tests

* updated to use new mot url

* fixed tests

* Updated no evidence path to include new activity code and banner

* Fixed tests

* Fixed logic on mot for search for completed tests

* Added additional tests

* Colour changes

* Moved matching VRN logic to modal

* Linting fixes and refactor

* WIP: Added practice mode modal

* WIP: Amend practice mode data with vehicle registration

* WIP: remove log

* WIP: formatting fix

* WIP: updated no details wording

* WIP: changed practice mode fail path to show fail modal

* WIP: move alternate evidence to write-up page

* WIP: refactoring old work to work with new backend

* WIP: Fixed formatting errors

* WIP: Finished work on office page

* WIP: Modified completed test page to use alert icon on expired mot

* WIP: Removed unneeded code

* WIP: Added MOT data clearing after updating the VRN inputted on waiting room to car

* WIP: improved error handling on MOT api

* WIP: added support for no detail results on search for completed

* WIP: linting

* remove logs

* audit fixes

* WIP: Added handling for tests without expiry dates

* Added background blurring to waiting room to car page when Failed MOT modal appears

* Fixed tests

* Added more unit tests

* linting

* corrected data on view-test-result

* Added offline mode support to practice mode

* Linting

* updating test

* updating test

* updated models to use backend models

* Linting

* Added age exemption logic to no details route and more unit tests

* Linting

* Files renamed

* linting

* Refactored mot-history

* linting

* Refactored tests and including local interface

* linting

* Changed font and wording on practice mode data

* updated tests

* linting

* fixed a bug content would not properly disappear.

* linting

* Added message when no VRNs have been searched for MOT

* Fixed formatting issues

* Fixed wording issues and removed button from rekey journey

* linting

* updated activity code from 12 to 89

* fixed tests

* linting

* Display expiry date on valid mots on waiting room to car

* Updated search for completed to show expiry date on valid mot

* linting

* removed redundant code

* removed console log

* removed commented out code
  • Loading branch information
RLCorp committed Sep 18, 2024
1 parent 08db0d4 commit 813af7a
Show file tree
Hide file tree
Showing 121 changed files with 3,976 additions and 518 deletions.
152 changes: 93 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@
"@dvsa/mes-config-schema": "1.9.1",
"@dvsa/mes-driver-schema": "^0.0.2",
"@dvsa/mes-journal-schema": "1.3.1",
"@dvsa/mes-mot-schema": "1.0.2",
"@dvsa/mes-microservice-common": "^1.1.9",
"@dvsa/mes-search-schema": "1.3.0",
"@dvsa/mes-test-schema": "3.42.5",
"@dvsa/mes-test-schema": "3.43.1",
"@ionic-enterprise/auth": "3.9.5",
"@ionic/angular": "~7.5.7",
"@ionic/core": "~7.5.7",
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/back-to-office/back-to-office.effects.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Injectable } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import { ClearVehicleData } from '@pages/back-to-office/back-to-office.actions';
import { VehicleDetailsApiService } from '@providers/vehicle-details-api/vehicle-details-api.service';
import { MotHistoryApiService } from '@providers/mot-history-api/mot-history-api.service';
import { map } from 'rxjs/operators';

@Injectable()
export class BackToOfficeEffects {
constructor(
private actions$: Actions,
private vehicleDetailsApiService: VehicleDetailsApiService
private vehicleDetailsApiService: MotHistoryApiService
) {}

clearVehicleData$ = createEffect(
Expand Down
Loading

0 comments on commit 813af7a

Please sign in to comment.