diff --git a/public/static/error/index.html b/public/static/error/index.html index 82775be1..d0a328df 100644 --- a/public/static/error/index.html +++ b/public/static/error/index.html @@ -162,6 +162,14 @@ body { bailoutInfo.push({ name: 'App Name', value: 'ISS' }); bailoutInfo.push({ name: 'Site Name', value: 'ISS 2.0' }); + // Build Info + bailoutInfo.push({ name: 'Build Version', value: mainStore.issConfig?.buildInfo?.versionString }); + bailoutInfo.push({ name: 'Build Time', value: mainStore.issConfig?.buildInfo?.buildTime }); + + // ISS Configuration Info + bailoutInfo.push({ name: 'Client Tag', value: mainStore.issConfig?.clientTag }); + bailoutInfo.push({ name: 'Client Name', value: mainStore.issConfig?.clientName }); + // Not included (yet) from heritage: // - Site ID // - Code @@ -356,19 +364,16 @@ body { diagnosticContainer.remove(); } -// TODO: Re-enable logging after some further testing. -/* const apiHostname = environmentInfo?.apiHostname; if(apiHostname) { try { const endpointUrl = `https://${apiHostname}/analytics/api/v1/logging/log-error`; - const infoString = bailoutInfo?.map( (entry) => `${entry.name}: ${entry.value}` )?.reduce( (prev, next) => `${prev}\n${next}` ); - const entryString = `User encountered bailout page.\n${new Date()}\n${infoString ?? 'No information recoverable'}`; + const entryString = `User landed on the static-error page.\n${new Date()}\n${infoString ?? 'No information recoverable'}`; const headers = generateRequestHeader(headerInfo); @@ -419,8 +424,7 @@ body { console.error(`=== ERROR SENDING PAGEVIEW`); console.error(e); } - } - */ + } }; diff --git a/src/store/index.js b/src/store/index.js index e43f60d3..62a80354 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -603,7 +603,7 @@ export const useMainStore = defineStore({ // populate vehicles order.policy.vehicles = responsePolicy.vehicles ?? []; } else { - if ( response?.data?.isError) { + if (response?.data?.isError) { order.policy.policyLookupErrorCode = response?.data?.errorCode; } this.updateCoverageType(coverageType.NONE); @@ -638,6 +638,8 @@ export const useMainStore = defineStore({ payload: { referralCorrelationId: this.order.referralCorrelationId, + referralDate: this.order.referralDate, + referralNumber: this.order.referralNumber, accountNumber: this.order.parentAccountNumber?.toString() ?? '', policyData: this.order.policy.policyData, // TODO: Remove this isRepair flag from the payload after coverage service updates are deployed. @@ -1956,7 +1958,7 @@ export const useMainStore = defineStore({ } else if (fee.partNumber === partNumberStrings.LABOR2) { // Do not add Labor2 to feeItems since it's already been added to supportingItems this.addPartNumberFeeItem(null, partNumberStrings.LABOR2); - }else if (fee.partNumber === partNumberStrings.TESLA_THS_SRVCE) { + } else if (fee.partNumber === partNumberStrings.TESLA_THS_SRVCE) { // Do not add Tesla THS Service Fee to feeItems, it is a child part already } else { this.addPartNumberFeeItem(fee, fee.partNumber);