feat: modernize widget experience

This commit is contained in:
Thomas Camlong committed 2026-08-03 17:18:22 +02:00
1 parent 65ff0ecb34
commit 61a2f8cb6c
198 files changed
+4209 -2295

No files matched your search

+3 -2
View File
@@ -37,7 +37,8 @@ export const WidgetError = ({ error, resetErrorBoundary, kind }: WidgetErrorProp
return (
<BaseWidgetError
icon={IconExclamationCircle}
message={(error as { toString: () => string }).toString()}
message={(t) => t("common.error")}
showLogsLink
onRetry={resetErrorBoundary}
/>
);
@@ -72,7 +73,7 @@ const handleCommonTrpcError = (error: unknown): Omit<BaseWidgetErrorProps, "onRe
if (errorData.code === "UNAUTHORIZED" || errorData.code === "FORBIDDEN") {
return {
icon: IconShield,
message: "You don't have permission to access this widget",
message: (t) => t("integration.testConnection.error.certificate.alert.permission.title"),
showLogsLink: false,
};
}