From fd989bf7e47bc13367cc3caf0ee516d6a4507607 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 13 Oct 2023 11:29:18 -0700 Subject: [PATCH] Added support chat and sentry ignore messages. --- electron/changelog.json | 5 +++++ electron/decoder/constants.js | 2 +- electron/file-watcher/file-watcher-ipc.js | 2 +- electron/file-watcher/file-watcher.js | 11 ++++++++--- electron/main.js | 6 +++++- package.json | 2 +- public/index.html | 15 +++++++++++++-- src/index.js | 5 +++++ src/redux/user/user.sagas.js | 18 ++++++++++++++++++ 9 files changed, 57 insertions(+), 9 deletions(-) diff --git a/electron/changelog.json b/electron/changelog.json index cf99fc7..ee1ca42 100644 --- a/electron/changelog.json +++ b/electron/changelog.json @@ -128,5 +128,10 @@ "title": "Release Notes for 1.1.5", "date": "08/23/2023", "notes": "Bug Fixes:\r\n- Performance improvements." + }, + "1.1.6": { + "title": "Release Notes for 1.1.6", + "date": "10/13/2023", + "notes": "New Feature:\r\n- Added live support chat." } } diff --git a/electron/decoder/constants.js b/electron/decoder/constants.js index 38afe2a..f4dd377 100644 --- a/electron/decoder/constants.js +++ b/electron/decoder/constants.js @@ -37,7 +37,7 @@ function WhichRulesetToApply(close_date) { (r) => DateMoment.isSameOrAfter(r.range[0]) && DateMoment.isBefore(r.range[1]) ); - console.log("Using ruleset:", newRuleSet); + //console.log("Using ruleset:", newRuleSet); return newRuleSet?.title; } diff --git a/electron/file-watcher/file-watcher-ipc.js b/electron/file-watcher/file-watcher-ipc.js index 378f58e..9e41396 100644 --- a/electron/file-watcher/file-watcher-ipc.js +++ b/electron/file-watcher/file-watcher-ipc.js @@ -63,7 +63,7 @@ ipcMain.on( ); const newFilePaths = store.get("filePaths"); - console.log("newFilePaths", newFilePaths); + //console.log("newFilePaths", newFilePaths); event.sender.send( ipcTypes.default.fileWatcher.toRenderer.filepathsList, diff --git a/electron/file-watcher/file-watcher.js b/electron/file-watcher/file-watcher.js index 2780299..4c8142c 100644 --- a/electron/file-watcher/file-watcher.js +++ b/electron/file-watcher/file-watcher.js @@ -70,8 +70,13 @@ async function StartWatcher() { .on("error", function (error) { log.error("Error in Watcher", error); const b = BrowserWindow.getFocusedWindow(); - b.webContents.send(ipcTypes.default.fileWatcher.toRenderer.error, error); - // Nucleus.track("WATCHER_ERROR", error); + if (b) { + b.webContents.send( + ipcTypes.default.fileWatcher.toRenderer.error, + error + ); + } + // Nucleus.track("WATCHER_ERROR", error); }) .on("ready", onWatcherReady) .on("raw", function (event, path, details) { @@ -111,6 +116,6 @@ exports.StopWatcher = StopWatcher; exports.watcher = watcher; async function HandleNewFile(path) { -// Nucleus.track("IMPORT_JOB_FROM_WATCHER"); + // Nucleus.track("IMPORT_JOB_FROM_WATCHER"); await ImportJob(path); } diff --git a/electron/main.js b/electron/main.js index d978f64..4bd0671 100644 --- a/electron/main.js +++ b/electron/main.js @@ -16,7 +16,6 @@ const { autoUpdater } = require("electron-updater"); const log = require("electron-log"); const contextMenu = require("electron-context-menu"); const Sentry = require("@sentry/electron"); -const { set } = require("lodash"); //const Nucleus = require("nucleus-nodejs"); require("./ipc-main-handler"); @@ -24,6 +23,11 @@ require("./analytics"); Sentry.init({ dsn: "https://9840e0f304124299e379d9347e12d2e6@o492140.ingest.sentry.io/4505728058523648", + ignoreErrors: [ + "SimpleURLLoaderWrapper", + "Cannot read properties of null (reading 'webContents')", + "EBUSY: resource busy or locked", + ], }); autoUpdater.autoDownload = true; diff --git a/package.json b/package.json index f55e28b..431eaa3 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "productName": "ImEX RPS", "author": "ImEX Systems Inc. ", "description": "ImEX RPS", - "version": "1.1.5", + "version": "1.1.6", "main": "electron/main.js", "homepage": "./", "dependencies": { diff --git a/public/index.html b/public/index.html index e861641..4ade066 100644 --- a/public/index.html +++ b/public/index.html @@ -3,9 +3,20 @@ - + -->