From 21e1f2a9fadd12d5b6c34ba8aec92be6d0d1e9d3 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 8 Oct 2024 11:49:53 +0530 Subject: [PATCH] refactor: GUI error handling (#9528) * refactor: error reporting Signed-off-by: Pranav C * refactor: handle ee part Signed-off-by: Pranav C * refactor: coderabbit review comments Signed-off-by: Pranav C * refactor: linting Signed-off-by: Pranav C * refactor: remove duplicate error log Signed-off-by: Pranav C * refactor: request type correction Signed-off-by: Pranav C --------- Signed-off-by: Pranav C --- .../nc-gui/components/nc/ErrorBoundary.vue | 3 +- .../nc-gui/composables/useGlobal/types.ts | 1 + packages/nc-gui/nuxt-shim.d.ts | 2 + packages/nc-gui/plugins/error-reporting.ts | 92 +++++++++++++++++++ packages/nc-gui/plugins/sentry.ts | 15 +-- packages/nocodb-sdk/src/lib/Api.ts | 25 +++++ .../src/controllers/utils.controller.ts | 20 +++- packages/nocodb/src/schema/swagger.json | 42 +++++++++ packages/nocodb/src/services/utils.service.ts | 20 +++- 9 files changed, 210 insertions(+), 10 deletions(-) create mode 100644 packages/nc-gui/plugins/error-reporting.ts diff --git a/packages/nc-gui/components/nc/ErrorBoundary.vue b/packages/nc-gui/components/nc/ErrorBoundary.vue index a80aec396c..c36321dc64 100644 --- a/packages/nc-gui/components/nc/ErrorBoundary.vue +++ b/packages/nc-gui/components/nc/ErrorBoundary.vue @@ -1,7 +1,6 @@