diff --git a/electron/estimate-scrubber/estimate-scrubber.js b/electron/estimate-scrubber/estimate-scrubber.js index 6012271..198c208 100644 --- a/electron/estimate-scrubber/estimate-scrubber.js +++ b/electron/estimate-scrubber/estimate-scrubber.js @@ -40,17 +40,16 @@ async function ScrubEstimate({ job }) { let estimateScrubberUrl; switch (currentChannel) { case "alpha": - estimateScrubberUrl = "https://4284-79287.el-alt.com/api/sendems"; //dev specific URL. + estimateScrubberUrl = "https://4284-79287.el-alt.com"; //dev specific URL. break; case "beta": - estimateScrubberUrl = "https://4284-79073.el-alt.com/api/sendems"; //Beta specific URL. + estimateScrubberUrl = "https://4284-79073.el-alt.com"; //Beta specific URL. break; default: - estimateScrubberUrl = "https://insurtechtoolkit.com/api/sendems"; //Production route. + estimateScrubberUrl = "https://insurtechtoolkit.com"; //Production route. break; } - //const estimateScrubberUrl = "https://insurtechtoolkit.com/api/sendems"; log.log(`Estimate Scrubber URL: [${currentChannel} |`, estimateScrubberUrl); const sendingEntityId = "87330f61-412b-4251-baaa-d026565b23c5"; try { @@ -117,7 +116,7 @@ async function ScrubEstimate({ job }) { const jsonString = JSON.stringify(job); formData.append("file", new Blob([jsonString], { type: "application/json" }), `${fileName}.json`); - const result = await axios.post(estimateScrubberUrl, formData, { + const result = await axios.post(`${estimateScrubberUrl}/api/sendems`, formData, { auth: { username: basicAuthUser, password: basicAuthpassword @@ -126,13 +125,14 @@ async function ScrubEstimate({ job }) { }); const resultPDFUrl = result?.data?.report_link; - + const reportIssueUrl = `${estimateScrubberUrl}/pcontactUs.aspx?apiKey=${esApiKey}&file=${fileName}.json` // log.log("Estimate Scrubber Result:", result.data, resultPDFUrl); const b = BrowserWindow.getAllWindows()[0]; b.webContents.send(ipcTypes.app.toRenderer.scrubResults, { jobid: job.id, items: result.data?.identified_item, - pdfUrl: resultPDFUrl + pdfUrl: resultPDFUrl, + reportIssueUrl }); // const pdfWindow = new BrowserWindow({ diff --git a/hasura/migrations/default/1759354428822_alter_table_public_bodyshops_add_column_carfax_exclude/down.sql b/hasura/migrations/default/1759354428822_alter_table_public_bodyshops_add_column_carfax_exclude/down.sql new file mode 100644 index 0000000..3e4a22e --- /dev/null +++ b/hasura/migrations/default/1759354428822_alter_table_public_bodyshops_add_column_carfax_exclude/down.sql @@ -0,0 +1,4 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- alter table "public"."bodyshops" add column "carfax_exclude" boolean +-- not null default 'False'; diff --git a/hasura/migrations/default/1759354428822_alter_table_public_bodyshops_add_column_carfax_exclude/up.sql b/hasura/migrations/default/1759354428822_alter_table_public_bodyshops_add_column_carfax_exclude/up.sql new file mode 100644 index 0000000..3ea3bf0 --- /dev/null +++ b/hasura/migrations/default/1759354428822_alter_table_public_bodyshops_add_column_carfax_exclude/up.sql @@ -0,0 +1,2 @@ +alter table "public"."bodyshops" add column "carfax_exclude" boolean + not null default 'False'; diff --git a/package.json b/package.json index ca08176..c6d7504 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "productName": "ImEX RPS", "author": "ImEX Systems Inc. ", "description": "ImEX RPS", - "version": "1.4.2-alpha.17", + "version": "1.4.2-alpha.18", "main": "electron/main.js", "homepage": "./", "dependencies": { diff --git a/src/components/molecules/estimate-scruber-results/estimate-scrubber-results.molecule.jsx b/src/components/molecules/estimate-scruber-results/estimate-scrubber-results.molecule.jsx index 9fadf6b..91760f1 100644 --- a/src/components/molecules/estimate-scruber-results/estimate-scrubber-results.molecule.jsx +++ b/src/components/molecules/estimate-scruber-results/estimate-scrubber-results.molecule.jsx @@ -134,36 +134,23 @@ export function EstimateScrubberResults({ bodyshop, jobid, job, esResults }) { return (
- {/* Search Input */} -
- - } - value={searchText} - onChange={(e) => setSearchText(e.target.value)} - allowClear - style={{ maxWidth: 400 }} - /> - {searchText && ( -
- - Showing {filteredItems.length} of {esResults.items.length} items - -
- )} + + } + value={searchText} + onChange={(e) => setSearchText(e.target.value)} + allowClear + style={{ maxWidth: 400 }} + /> + {searchText && ( +
+ + Showing {filteredItems.length} of {esResults.items.length} items + +
+ )} - - {Object.entries(groupedItems).map(([category, items]) => { - const config = categoryConfig[category] || { color: "default" }; - return ( - - {category}: {items.length} - - ); - })} - -
-
+ +
+ + {Object.entries(groupedItems).map(([category, items]) => { + const config = categoryConfig[category] || { color: "default" }; + return ( + + {category}: {items.length} + + ); + })} + {/* Grouped Results */} @@ -185,7 +191,7 @@ export function EstimateScrubberResults({ bodyshop, jobid, job, esResults }) { - {config.icon} + {/* {config.icon} */} {category} - - {/* Summary */}
);