From 570d36b695c40a781896ab104e9a674555cb7493 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 21 Aug 2023 16:01:45 -0700 Subject: [PATCH 1/4] Remove QBO sandbox. --- server/accounting/qbo/qbo.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/accounting/qbo/qbo.js b/server/accounting/qbo/qbo.js index 114f1e79b..12f49f033 100644 --- a/server/accounting/qbo/qbo.js +++ b/server/accounting/qbo/qbo.js @@ -8,8 +8,7 @@ require("dotenv").config({ function urlBuilder(realmId, object, query = null) { return `https://${ - //process.env.NODE_ENV === "production" ? "" : - "sandbox-" + process.env.NODE_ENV === "production" ? "" : "sandbox-" }quickbooks.api.intuit.com/v3/company/${realmId}/${object}${ query ? `?query=${encodeURIComponent(query)}` : "" }`; From 45ec03e61555f7e3370c6612871c356c93b7e92a Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 23 Aug 2023 11:20:45 -0700 Subject: [PATCH 2/4] Add crisp tagging for US users. --- client/src/redux/user/user.sagas.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client/src/redux/user/user.sagas.js b/client/src/redux/user/user.sagas.js index 731de565a..6cd6c9037 100644 --- a/client/src/redux/user/user.sagas.js +++ b/client/src/redux/user/user.sagas.js @@ -197,6 +197,14 @@ export function* signInSuccessSaga({ payload }) { LogRocket.identify(payload.email); try { + window.$crisp.push([ + "set", + "user:nickname", + [payload.displayName || payload.email], + ]); + + window.$crisp.push(["set", "session:segments", [["rome-user"]]]); + Sentry.setUser({ email: payload.email, username: payload.displayName || payload.email, @@ -280,6 +288,10 @@ export function* SetAuthLevelFromShopDetails({ payload }) { ) ); try { + window.$crisp.push(["set", "user:company", [payload.shopname]]); + if (authRecord[0] && authRecord[0].user.validemail) { + window.$crisp.push(["set", "user:email", [authRecord[0].user.email]]); + } } catch (error) { console.error("Couldnt find $crisp."); } From b1fedf59044d4d2100f5a405aafc19a56262dc1f Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 24 Aug 2023 11:05:10 -0700 Subject: [PATCH 3/4] Resolve treatment misfire. --- .../time-ticket-modal/time-ticket-modal.container.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/time-ticket-modal/time-ticket-modal.container.jsx b/client/src/components/time-ticket-modal/time-ticket-modal.container.jsx index e70cc4e5c..fa6ac9774 100644 --- a/client/src/components/time-ticket-modal/time-ticket-modal.container.jsx +++ b/client/src/components/time-ticket-modal/time-ticket-modal.container.jsx @@ -152,7 +152,7 @@ export function TimeTicketModalContainer({ if (!!changedFields.cost_center && !!EmployeeAutoCompleteData) { form.setFieldsValue({ ciecacode: - bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber || Enhanced_Payroll.treatments === 'on' + bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber || Enhanced_Payroll.treatment === 'on' ? changedFields.cost_center : Object.keys( bodyshop.md_responsibility_centers.defaults.costs From dbcd675300d46a309bef84e88967e24643a1abb6 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 24 Aug 2023 11:16:31 -0700 Subject: [PATCH 4/4] Clear selected lines on assignment. --- .../job-line-bulk-assign/job-line-bulk-assign.component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/job-line-bulk-assign/job-line-bulk-assign.component.jsx b/client/src/components/job-line-bulk-assign/job-line-bulk-assign.component.jsx index 5f025abba..968dddd4b 100644 --- a/client/src/components/job-line-bulk-assign/job-line-bulk-assign.component.jsx +++ b/client/src/components/job-line-bulk-assign/job-line-bulk-assign.component.jsx @@ -77,7 +77,7 @@ export function JoblineBulkAssign({ hours.toFixed(1) ), }); - + setSelectedLines([]); setVisible(false); } } catch (error) {