From 65402c1420e0716e4d3552d1d1f5b2ea3192a8da Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Mon, 22 Nov 2021 23:20:13 -0800 Subject: [PATCH] Clean up console log statements. --- client/src/App/App.container.jsx | 1 - client/src/App/App.jsx | 1 - .../bill-form/bill-form.lines.component.jsx | 10 ---------- .../bill-line-search-select.component.jsx | 1 - .../chat-new-conversation.component.jsx | 1 - .../dashboard-grid/dashboard-grid.component.jsx | 5 +---- .../dms-cdk-makes/dms-cdk-makes.refetch.component.jsx | 2 +- .../document-editor/document-editor.component.jsx | 6 ++---- .../documents-upload/documents-upload.utility.js | 10 +--------- .../email-documents/email-documents.component.jsx | 4 ---- .../email-overlay/email-overlay.container.jsx | 1 - .../components/email-test/email-test-component.jsx | 1 - .../components/help-rescue/help-rescue.component.jsx | 2 -- .../job-3rd-party-modal.component.jsx | 2 +- .../job-at-change/schedule-event.color.component.jsx | 2 +- .../job-bills-total/job-bills-total.component.jsx | 1 - .../job-checklist-template-list.component.jsx | 2 +- .../job-costing-modal/job-costing-modal.container.jsx | 2 +- .../job-costing-parts-table.component.jsx | 1 - .../job-scoreboard-add-button.component.jsx | 2 -- .../jobs-admin-class/jobs-admin-class.component.jsx | 1 - .../jobs-admin-dates/jobs-admin-dates.component.jsx | 1 - .../jobs-admin-owner-reassociate.component.jsx | 1 - .../jobs-admin-vehicle-reassociate.component.jsx | 1 - .../jobs-available-supplement.estlines.util.js | 2 -- .../jobs-detail-header-actions.duplicate.util.js | 1 - .../jobs-document-gallery.reassign.component.jsx | 1 - .../partner-ping/partner-ping.component.jsx | 2 +- .../parts-status-pie/parts-status-pie.component.jsx | 10 ++++------ .../report-center-modal.component.jsx | 2 +- .../schedule-job-modal.container.jsx | 1 - .../shop-csi-config-form.component.jsx | 5 +---- .../shop-info/shop-info.rostatus.component.jsx | 4 ---- .../time-ticket-modal/time-ticket-modal.component.jsx | 3 +-- .../user-validate-pw-reset.component.jsx | 3 +-- .../vendors-phonebook-add.component.jsx | 2 +- client/src/landing/index.jsx | 2 +- .../contract-detail.page.container.jsx | 5 ----- client/src/pages/csi/csi.container.page.jsx | 2 +- .../pages/mobile-payment/mobile-payment.component.jsx | 8 ++------ client/src/redux/application/application.sagas.js | 11 +---------- client/src/redux/user/user.sagas.js | 6 ++---- client/src/utils/RenderTemplate.js | 1 - 43 files changed, 26 insertions(+), 106 deletions(-) diff --git a/client/src/App/App.container.jsx b/client/src/App/App.container.jsx index 63db26f82..42091e595 100644 --- a/client/src/App/App.container.jsx +++ b/client/src/App/App.container.jsx @@ -27,7 +27,6 @@ export const tracker = new Tracker({ onStart: async ({ sessionID }) => { const user = await getCurrentUser(); if (user) tracker.setUserID(user.email); - console.log("ORS SESSION ", sessionID, user && user.email); }, }); diff --git a/client/src/App/App.jsx b/client/src/App/App.jsx index cab3be913..6a2bf774a 100644 --- a/client/src/App/App.jsx +++ b/client/src/App/App.jsx @@ -53,7 +53,6 @@ export function App({ checkUserSession, currentUser, online, setOnline }) { const { t } = useTranslation(); window.addEventListener("offline", function (e) { - console.log("Internet connection lost."); setOnline(false); }); diff --git a/client/src/components/bill-form/bill-form.lines.component.jsx b/client/src/components/bill-form/bill-form.lines.component.jsx index 03afc6b9a..22aa62f23 100644 --- a/client/src/components/bill-form/bill-form.lines.component.jsx +++ b/client/src/components/bill-form/bill-form.lines.component.jsx @@ -157,16 +157,6 @@ export function BillEnterModalLinesComponent({ billlines: getFieldsValue("billlines").billlines.map( (item, idx) => { if (idx === index) { - console.log( - "Found and setting.", - !!item.actual_cost - ? item.actual_cost - : Math.round( - (parseFloat(e.target.value) * (1 - discount) + - Number.EPSILON) * - 100 - ) / 100 - ); return { ...item, actual_cost: !!item.actual_cost diff --git a/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx b/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx index dd5558f85..e470fce33 100644 --- a/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx +++ b/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx @@ -14,7 +14,6 @@ const BillLineSearchSelect = ({ options, disabled, ...restProps }, ref) => { showSearch // optionFilterProp="line_desc" filterOption={(inputValue, option) => { - console.log(inputValue); return ( (option.line_desc && option.line_desc diff --git a/client/src/components/chat-new-conversation/chat-new-conversation.component.jsx b/client/src/components/chat-new-conversation/chat-new-conversation.component.jsx index 907c5149c..563b6d005 100644 --- a/client/src/components/chat-new-conversation/chat-new-conversation.component.jsx +++ b/client/src/components/chat-new-conversation/chat-new-conversation.component.jsx @@ -20,7 +20,6 @@ export function ChatNewConversation({ openChatByPhone }) { const { t } = useTranslation(); const [form] = Form.useForm(); const handleFinish = (values) => { - console.log("values :>> ", values); openChatByPhone({ phone_num: values.phoneNumber }); form.resetFields(); }; diff --git a/client/src/components/dashboard-grid/dashboard-grid.component.jsx b/client/src/components/dashboard-grid/dashboard-grid.component.jsx index b67526eea..6d1ec5a66 100644 --- a/client/src/components/dashboard-grid/dashboard-grid.component.jsx +++ b/client/src/components/dashboard-grid/dashboard-grid.component.jsx @@ -86,10 +86,7 @@ export function DashboardGridComponent({ currentUser, bodyshop }) { const handleRemoveComponent = (key) => { logImEXEvent("dashboard_remove_component", { name: key }); const idxToRemove = state.items.findIndex((i) => i.i === key); - console.log( - "π ~ file: dashboard-grid.component.jsx ~ line 81 ~ idxToRemove", - idxToRemove - ); + const items = _.cloneDeep(state.items); items.splice(idxToRemove, 1); diff --git a/client/src/components/dms-cdk-makes/dms-cdk-makes.refetch.component.jsx b/client/src/components/dms-cdk-makes/dms-cdk-makes.refetch.component.jsx index f56856dfc..c0d1ee4d9 100644 --- a/client/src/components/dms-cdk-makes/dms-cdk-makes.refetch.component.jsx +++ b/client/src/components/dms-cdk-makes/dms-cdk-makes.refetch.component.jsx @@ -23,7 +23,7 @@ export function DmsCdkMakesRefetch({ bodyshop, form, socket }) { cdk_dealerid: bodyshop.cdk_dealerid, bodyshopid: bodyshop.id, }); - console.log(response); + setLoading(false); }; return ( diff --git a/client/src/components/document-editor/document-editor.component.jsx b/client/src/components/document-editor/document-editor.component.jsx index cb12c1aec..ab2733c13 100644 --- a/client/src/components/document-editor/document-editor.component.jsx +++ b/client/src/components/document-editor/document-editor.component.jsx @@ -58,11 +58,9 @@ export function DocumentEditorComponent({ currentUser, bodyshop, document }) { if (imgRef.current !== null) { // create a marker.js MarkerArea markerArea.current = new markerjs2.MarkerArea(imgRef.current); - console.log(`markerArea.current`, markerArea.current); + // attach an event handler to assign annotated image back to our image element - markerArea.current.addCloseEventListener((closeEvent) => { - console.log("Close Event", closeEvent); - }); + markerArea.current.addCloseEventListener((closeEvent) => {}); markerArea.current.addRenderEventListener((dataUrl) => { imgRef.current.src = dataUrl; diff --git a/client/src/components/documents-upload/documents-upload.utility.js b/client/src/components/documents-upload/documents-upload.utility.js index bca78f094..f5ce23618 100644 --- a/client/src/components/documents-upload/documents-upload.utility.js +++ b/client/src/components/documents-upload/documents-upload.utility.js @@ -14,8 +14,6 @@ var cleanAxios = axios.create(); cleanAxios.interceptors.request.eject(axiosAuthInterceptorId); export const handleUpload = (ev, context) => { - console.log("Handling Upload", ev); - logImEXEvent("document_upload", { filetype: ev.file.type }); const { onError, onSuccess, onProgress } = ev; @@ -61,7 +59,7 @@ export const uploadToCloudinary = async ( // let eager = process.env.REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS; //Get the signed url. - console.log("fileType", fileType); + const upload_preset = fileType.startsWith("video") ? "incoming_upload_video" : "incoming_upload"; @@ -74,7 +72,6 @@ export const uploadToCloudinary = async ( }); if (signedURLResponse.status !== 200) { - console.log("Error Getting Signed URL", signedURLResponse.statusText); if (!!onError) onError(signedURLResponse.statusText); notification["error"]({ message: i18n.t("documents.errors.getpresignurl", { @@ -113,13 +110,8 @@ export const uploadToCloudinary = async ( ...options, } ); - console.log("Upload Response", cloudinaryUploadResponse.data); if (cloudinaryUploadResponse.status !== 200) { - console.log( - "Error uploading to cloudinary.", - cloudinaryUploadResponse.statusText - ); if (!!onError) onError(cloudinaryUploadResponse.statusText); notification["error"]({ message: i18n.t("documents.errors.insert", { diff --git a/client/src/components/email-documents/email-documents.component.jsx b/client/src/components/email-documents/email-documents.component.jsx index 4769df3f6..bd1a0f09e 100644 --- a/client/src/components/email-documents/email-documents.component.jsx +++ b/client/src/components/email-documents/email-documents.component.jsx @@ -35,10 +35,6 @@ export function EmailDocumentsComponent({ }, skip: !emailConfig.jobid, }); - console.log( - "π ~ file: email-documents.component.jsx ~ line 38 ~ emailConfig", - emailConfig - ); return (