From d4f76d348af2bdd0687471f456cf7fae5f9fc7b1 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 7 Aug 2024 12:39:57 +0530 Subject: [PATCH] fix: Miscellaneous bugs (#9149) * feat: support pretty print in webhook json * fix: on renaming table update default view name as well * fix: show default view name alias as 'Default view' * fix: chunk loading error handling * fix: global error boundary handling improvements * fix: typo correction * chore: sentry integration * refactor: destroy the toast message after reload * chore: add missing dependencies Signed-off-by: Pranav C * chore: sentry error reporting Signed-off-by: Pranav C * refactor: improved error toast message Signed-off-by: Pranav C * refactor: timeout correction Signed-off-by: Pranav C --------- Signed-off-by: Pranav C Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nc-gui/components/dlg/ViewDelete.vue | 5 +- .../dlg/share-and-collaborate/View.vue | 5 +- .../nc-gui/components/nc/ErrorBoundary.vue | 201 +-- .../column/LinkedToAnotherRecordOptions.vue | 3 +- .../nc-gui/composables/useGlobal/state.ts | 1 + .../nc-gui/composables/useGlobal/types.ts | 1 + packages/nc-gui/lang/en.json | 1 + packages/nc-gui/package.json | 2 + packages/nc-gui/plugins/error-handler.ts | 21 +- packages/nc-gui/plugins/sentry.ts | 69 + .../020.environment-variables.md | 7 +- .../020.environment-variables.md | 105 +- packages/nocodb-sdk/src/lib/Api.ts | 184 ++- packages/nocodb/package.json | 4 +- packages/nocodb/src/helpers/webhookHelpers.ts | 6 +- packages/nocodb/src/models/Model.ts | 10 + packages/nocodb/src/schema/swagger-v2.json | 5 + packages/nocodb/src/schema/swagger.json | 5 + packages/nocodb/src/services/utils.service.ts | 1 + pnpm-lock.yaml | 1110 +++++------------ 20 files changed, 785 insertions(+), 961 deletions(-) create mode 100644 packages/nc-gui/plugins/sentry.ts diff --git a/packages/nc-gui/components/dlg/ViewDelete.vue b/packages/nc-gui/components/dlg/ViewDelete.vue index 4d2e6d42aa..a17a750b49 100644 --- a/packages/nc-gui/components/dlg/ViewDelete.vue +++ b/packages/nc-gui/components/dlg/ViewDelete.vue @@ -52,7 +52,10 @@ async function onDelete() { class="capitalize text-ellipsis overflow-hidden select-none w-full pl-3" :style="{ wordBreak: 'keep-all', whiteSpace: 'nowrap', display: 'inline' }" > - {{ view.title }} + {{ $t('labels.defaultView') }} + + {{ view.title }} + diff --git a/packages/nc-gui/components/dlg/share-and-collaborate/View.vue b/packages/nc-gui/components/dlg/share-and-collaborate/View.vue index dd2742470a..7fe9e46d43 100644 --- a/packages/nc-gui/components/dlg/share-and-collaborate/View.vue +++ b/packages/nc-gui/components/dlg/share-and-collaborate/View.vue @@ -147,7 +147,10 @@ watch(showShareModal, (val) => { class="max-w-79/100 ml-2 px-2 py-0.5 rounded-md bg-gray-100 capitalize text-ellipsis overflow-hidden" :style="{ wordBreak: 'keep-all', whiteSpace: 'nowrap' }" > - {{ activeView.title }} + {{ $t('labels.defaultView') }} + + {{ activeView.title }} + diff --git a/packages/nc-gui/components/nc/ErrorBoundary.vue b/packages/nc-gui/components/nc/ErrorBoundary.vue index 09ec490f22..a80aec396c 100644 --- a/packages/nc-gui/components/nc/ErrorBoundary.vue +++ b/packages/nc-gui/components/nc/ErrorBoundary.vue @@ -1,6 +1,9 @@