diff --git a/angular.json b/angular.json index 6846672f2..8a9d48a63 100644 --- a/angular.json +++ b/angular.json @@ -134,18 +134,13 @@ "with": "src/environments/environment.dev.dev-tools.ts" } ], - "optimization": true, - "outputHashing": "all", - "sourceMap": { - "hidden": true, - "scripts": true, - "styles": true - }, - "namedChunks": true, - "aot": true, - "extractLicenses": true, + "aot": false, "vendorChunk": true, - "buildOptimizer": true + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": false, + "optimization": false, + "namedChunks": false }, "livereload": { "fileReplacements": [ @@ -154,18 +149,13 @@ "with": "src/environments/environment.livereload.ts" } ], - "optimization": true, - "outputHashing": "all", - "sourceMap": { - "hidden": true, - "scripts": true, - "styles": true - }, - "namedChunks": true, - "aot": true, - "extractLicenses": true, + "aot": false, "vendorChunk": true, - "buildOptimizer": true + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": false, + "optimization": false, + "namedChunks": false }, "testing": { "fileReplacements": [ diff --git a/config.xml b/config.xml index 717971e26..a3c259a04 100644 --- a/config.xml +++ b/config.xml @@ -1,5 +1,5 @@ - + DES An application for DVSA driving examiners to conduct driving tests digitally diff --git a/ios/App/App/Info.plist b/ios/App/App/Info.plist index 19dc53cb9..1da92286a 100644 --- a/ios/App/App/Info.plist +++ b/ios/App/App/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 4.7.2.6 + 4.7.2.7 CFBundleURLTypes @@ -30,7 +30,7 @@ CFBundleVersion - 4.7.2.6 + 4.7.2.7 LSRequiresIPhoneOS NSCameraUsageDescription diff --git a/src/app/pages/test-centre-journal/components/candidate-search-card/candidate-search-card.html b/src/app/pages/test-centre-journal/components/candidate-search-card/candidate-search-card.html index 4e41272ca..a3bcd2787 100644 --- a/src/app/pages/test-centre-journal/components/candidate-search-card/candidate-search-card.html +++ b/src/app/pages/test-centre-journal/components/candidate-search-card/candidate-search-card.html @@ -9,6 +9,7 @@ [displayKey]="'centreName'" [fuzzySearchKeys]="['centreName', 'costCode', 'centreId']" [idPrefix]="'tcj-candidate-search-tab'" + [minCharactersBeforeListDisplay]="2" [placeholder]="'Select a test centre'" (outputChanged)="onTestCentreDidChange($event)"> diff --git a/src/app/pages/test-centre-journal/components/view-journals-card/view-journals-card.html b/src/app/pages/test-centre-journal/components/view-journals-card/view-journals-card.html index 996d6f6e2..b83921d8a 100644 --- a/src/app/pages/test-centre-journal/components/view-journals-card/view-journals-card.html +++ b/src/app/pages/test-centre-journal/components/view-journals-card/view-journals-card.html @@ -9,6 +9,7 @@ [displayKey]="'centreName'" [fuzzySearchKeys]="['centreName', 'costCode', 'centreId']" [idPrefix]="'tcj-view-journal-tab'" + [minCharactersBeforeListDisplay]="2" [placeholder]="'Select a test centre'" (outputChanged)="onTestCentreDidChange($event)"> diff --git a/src/app/providers/authentication/authentication.ts b/src/app/providers/authentication/authentication.ts index d6513f1d3..e1c41a9e7 100644 --- a/src/app/providers/authentication/authentication.ts +++ b/src/app/providers/authentication/authentication.ts @@ -11,6 +11,7 @@ import { UnloadJournal } from '@store/journal/journal.actions'; import { LogHelper } from '@providers/logs/logs-helper'; import { SaveLog } from '@store/logs/logs.actions'; import { LogType } from '@shared/models/log.model'; +import { ClearTestCentresRefData } from '@store/reference-data/reference-data.actions'; import { AppConfigProvider } from '../app-config/app-config'; import { ConnectionStatus, NetworkStateProvider } from '../network-state/network-state'; import { TestPersistenceProvider } from '../test-persistence/test-persistence'; @@ -218,8 +219,11 @@ export class AuthenticationProvider { await this.testPersistenceProvider.clearPersistedTests(); await this.completedTestPersistenceProvider.clearPersistedCompletedTests(); } + this.store$.dispatch(UnloadJournal()); this.store$.dispatch(UnloadTests()); + this.store$.dispatch(ClearTestCentresRefData()); + await this.clearTokens(); this.appConfig.shutDownStoreSubscription(); this.subscription?.unsubscribe(); diff --git a/src/environments/environment.dev.dev-tools.ts b/src/environments/environment.dev.dev-tools.ts index 962694c92..fb3d894ad 100644 --- a/src/environments/environment.dev.dev-tools.ts +++ b/src/environments/environment.dev.dev-tools.ts @@ -5,6 +5,7 @@ const minute = 1000 * 60; export const environment: EnvironmentFile = { ...devEnvironment, + sentry: { ...devEnvironment.sentry, dsn: null }, // Comment this line out to report errors to Sentry in dev-tools mode enableDevTools: true, enableRehydrationPlugin: true, logsAutoSendInterval: minute * 3, diff --git a/src/environments/environment.livereload.ts b/src/environments/environment.livereload.ts index f0f49fc4e..74ecf2a54 100644 --- a/src/environments/environment.livereload.ts +++ b/src/environments/environment.livereload.ts @@ -5,6 +5,7 @@ const minute = 1000 * 60; export const environment: EnvironmentFile = { ...devEnvironment, + sentry: { ...devEnvironment.sentry, dsn: null }, // Comment this line out to report errors to Sentry in livereload enableDevTools: true, logsAutoSendInterval: minute * 3, }; diff --git a/src/store/reference-data/reference-data.actions.ts b/src/store/reference-data/reference-data.actions.ts index 699fa83b2..ef9d2c00a 100644 --- a/src/store/reference-data/reference-data.actions.ts +++ b/src/store/reference-data/reference-data.actions.ts @@ -11,6 +11,10 @@ export const GetTestCentresRefData = createAction( '[ReferenceDataEffects] Get test centres', ); +export const ClearTestCentresRefData = createAction( + '[ReferenceDataEffects] Clear test centres', +); + export const LoadTestCentresRefDataSuccess = createAction( '[ReferenceDataEffects] Load test centres success', (testCentres: RefDataTestCentreResponse) => ({ testCentres }), diff --git a/src/store/reference-data/reference-data.reducer.ts b/src/store/reference-data/reference-data.reducer.ts index 3e3be4d2c..bf20b1d54 100644 --- a/src/store/reference-data/reference-data.reducer.ts +++ b/src/store/reference-data/reference-data.reducer.ts @@ -1,7 +1,9 @@ import { createReducer, createFeatureSelector, on } from '@ngrx/store'; import { RefDataTestCentreResponse } from '@providers/reference-data/reference-data'; import { - LoadTestCentresRefDataSuccess, SetDateRefDataUpdated, + ClearTestCentresRefData, + LoadTestCentresRefDataSuccess, + SetDateRefDataUpdated, } from './reference-data.actions'; export type RefDataStateModel = { @@ -26,6 +28,9 @@ export const referenceDataReducer = createReducer( ...state, testCentres, })), + on(ClearTestCentresRefData, () => ({ + ...initialState, + })), ); export const getRefDataState = createFeatureSelector(refDataFeatureKey);