diff --git a/surfsense_web/components/tool-ui/google-drive/create-file.tsx b/surfsense_web/components/tool-ui/google-drive/create-file.tsx index 342344a8f..801223106 100644 --- a/surfsense_web/components/tool-ui/google-drive/create-file.tsx +++ b/surfsense_web/components/tool-ui/google-drive/create-file.tsx @@ -467,7 +467,7 @@ function InsufficientPermissionsCard({ result }: { result: InsufficientPermissio function ErrorCard({ result }: { result: ErrorResult }) { return ( -
+

Failed to create Google Drive file

@@ -481,7 +481,7 @@ function ErrorCard({ result }: { result: ErrorResult }) { function AuthErrorCard({ result }: { result: AuthErrorResult }) { return ( -
+

Google Drive authentication expired @@ -497,7 +497,7 @@ function AuthErrorCard({ result }: { result: AuthErrorResult }) { function SuccessCard({ result }: { result: SuccessResult }) { return ( -

+

{result.message || "Google Drive file created successfully"} @@ -534,7 +534,7 @@ export const CreateGoogleDriveFileToolUI = makeAssistantToolUI< render: function CreateGoogleDriveFileUI({ args, result, status }) { if (status.type === "running") { return ( -

+
); diff --git a/surfsense_web/components/tool-ui/google-drive/trash-file.tsx b/surfsense_web/components/tool-ui/google-drive/trash-file.tsx index fc4190f7f..3eb8651b8 100644 --- a/surfsense_web/components/tool-ui/google-drive/trash-file.tsx +++ b/surfsense_web/components/tool-ui/google-drive/trash-file.tsx @@ -380,7 +380,7 @@ function InsufficientPermissionsCard({ result }: { result: InsufficientPermissio function AuthErrorCard({ result }: { result: AuthErrorResult }) { return ( -
+

Google Drive authentication expired @@ -396,7 +396,7 @@ function AuthErrorCard({ result }: { result: AuthErrorResult }) { function WarningCard({ result }: { result: WarningResult }) { return ( -

+

Partial success

@@ -411,7 +411,7 @@ function WarningCard({ result }: { result: WarningResult }) { function ErrorCard({ result }: { result: ErrorResult }) { return ( -
+

Failed to delete file

@@ -425,7 +425,7 @@ function ErrorCard({ result }: { result: ErrorResult }) { function NotFoundCard({ result }: { result: NotFoundResult }) { return ( -
+

{result.message}

@@ -436,7 +436,7 @@ function NotFoundCard({ result }: { result: NotFoundResult }) { function SuccessCard({ result }: { result: SuccessResult }) { return ( -
+

{result.message || "File moved to trash successfully"} @@ -464,7 +464,7 @@ export const DeleteGoogleDriveFileToolUI = makeAssistantToolUI< render: function DeleteGoogleDriveFileUI({ result, status }) { if (status.type === "running") { return ( -

+
); diff --git a/surfsense_web/components/tool-ui/linear/create-linear-issue.tsx b/surfsense_web/components/tool-ui/linear/create-linear-issue.tsx index f1b657b8c..a722c10be 100644 --- a/surfsense_web/components/tool-ui/linear/create-linear-issue.tsx +++ b/surfsense_web/components/tool-ui/linear/create-linear-issue.tsx @@ -515,7 +515,7 @@ function ApprovalCard({ function AuthErrorCard({ result }: { result: AuthErrorResult }) { return ( -
+

All Linear accounts expired @@ -531,7 +531,7 @@ function AuthErrorCard({ result }: { result: AuthErrorResult }) { function ErrorCard({ result }: { result: ErrorResult }) { return ( -

+

Failed to create Linear issue

@@ -545,7 +545,7 @@ function ErrorCard({ result }: { result: ErrorResult }) { function SuccessCard({ result }: { result: SuccessResult }) { return ( -
+

{result.message || "Linear issue created successfully"} @@ -582,9 +582,9 @@ export const CreateLinearIssueToolUI = makeAssistantToolUI< render: function CreateLinearIssueUI({ args, result, status }) { if (status.type === "running") { return ( -

- -
+
+ +
); } diff --git a/surfsense_web/components/tool-ui/linear/delete-linear-issue.tsx b/surfsense_web/components/tool-ui/linear/delete-linear-issue.tsx index 9b91bcc47..bf6ae72e8 100644 --- a/surfsense_web/components/tool-ui/linear/delete-linear-issue.tsx +++ b/surfsense_web/components/tool-ui/linear/delete-linear-issue.tsx @@ -282,7 +282,7 @@ function ApprovalCard({ function AuthErrorCard({ result }: { result: AuthErrorResult }) { return ( -
+

Linear authentication expired @@ -298,7 +298,7 @@ function AuthErrorCard({ result }: { result: AuthErrorResult }) { function ErrorCard({ result }: { result: ErrorResult }) { return ( -

+

Failed to delete Linear issue

@@ -312,7 +312,7 @@ function ErrorCard({ result }: { result: ErrorResult }) { function NotFoundCard({ result }: { result: NotFoundResult }) { return ( -
+

Issue not found @@ -328,7 +328,7 @@ function NotFoundCard({ result }: { result: NotFoundResult }) { function WarningCard({ result }: { result: WarningResult }) { return ( -

+

Partial success

@@ -342,7 +342,7 @@ function WarningCard({ result }: { result: WarningResult }) { function SuccessCard({ result }: { result: SuccessResult }) { return ( -
+

{result.message || "Linear issue archived successfully"} @@ -370,9 +370,9 @@ export const DeleteLinearIssueToolUI = makeAssistantToolUI< render: function DeleteLinearIssueUI({ result, status }) { if (status.type === "running") { return ( -

- -
+
+ +
); } diff --git a/surfsense_web/components/tool-ui/linear/update-linear-issue.tsx b/surfsense_web/components/tool-ui/linear/update-linear-issue.tsx index 5f92d6e09..e6bdafc7c 100644 --- a/surfsense_web/components/tool-ui/linear/update-linear-issue.tsx +++ b/surfsense_web/components/tool-ui/linear/update-linear-issue.tsx @@ -630,7 +630,7 @@ function ApprovalCard({ function AuthErrorCard({ result }: { result: AuthErrorResult }) { return ( -
+

Linear authentication expired @@ -646,7 +646,7 @@ function AuthErrorCard({ result }: { result: AuthErrorResult }) { function ErrorCard({ result }: { result: ErrorResult }) { return ( -

+

Failed to update Linear issue

@@ -660,7 +660,7 @@ function ErrorCard({ result }: { result: ErrorResult }) { function NotFoundCard({ result }: { result: NotFoundResult }) { return ( -
+

Issue not found @@ -676,7 +676,7 @@ function NotFoundCard({ result }: { result: NotFoundResult }) { function SuccessCard({ result }: { result: SuccessResult }) { return ( -

+

{result.message || "Linear issue updated successfully"} @@ -721,9 +721,9 @@ export const UpdateLinearIssueToolUI = makeAssistantToolUI< render: function UpdateLinearIssueUI({ result, status }) { if (status.type === "running") { return ( -

- -
+
+ +
); } diff --git a/surfsense_web/components/tool-ui/notion/create-notion-page.tsx b/surfsense_web/components/tool-ui/notion/create-notion-page.tsx index f90faf471..bbecd05ab 100644 --- a/surfsense_web/components/tool-ui/notion/create-notion-page.tsx +++ b/surfsense_web/components/tool-ui/notion/create-notion-page.tsx @@ -379,7 +379,7 @@ function ApprovalCard({ function AuthErrorCard({ result }: { result: AuthErrorResult }) { return ( -
+

Notion authentication expired @@ -395,7 +395,7 @@ function AuthErrorCard({ result }: { result: AuthErrorResult }) { function ErrorCard({ result }: { result: ErrorResult }) { return ( -

+

Failed to create Notion page

@@ -409,7 +409,7 @@ function ErrorCard({ result }: { result: ErrorResult }) { function SuccessCard({ result }: { result: SuccessResult }) { return ( -
+

{result.message || "Notion page created successfully"} @@ -446,7 +446,7 @@ export const CreateNotionPageToolUI = makeAssistantToolUI< render: function CreateNotionPageUI({ args, result, status }) { if (status.type === "running") { return ( -

+
); diff --git a/surfsense_web/components/tool-ui/notion/delete-notion-page.tsx b/surfsense_web/components/tool-ui/notion/delete-notion-page.tsx index a58686171..9db51c72a 100644 --- a/surfsense_web/components/tool-ui/notion/delete-notion-page.tsx +++ b/surfsense_web/components/tool-ui/notion/delete-notion-page.tsx @@ -282,7 +282,7 @@ function ApprovalCard({ function AuthErrorCard({ result }: { result: AuthErrorResult }) { return ( -
+

All Notion accounts expired @@ -298,7 +298,7 @@ function AuthErrorCard({ result }: { result: AuthErrorResult }) { function ErrorCard({ result }: { result: ErrorResult }) { return ( -

+

Failed to delete Notion page

@@ -312,7 +312,7 @@ function ErrorCard({ result }: { result: ErrorResult }) { function InfoCard({ result }: { result: InfoResult }) { return ( -
+

Page not found @@ -328,7 +328,7 @@ function InfoCard({ result }: { result: InfoResult }) { function WarningCard({ result }: { result: WarningResult }) { return ( -

+

Partial success

@@ -348,7 +348,7 @@ function WarningCard({ result }: { result: WarningResult }) { function SuccessCard({ result }: { result: SuccessResult }) { return ( -
+

{result.message || "Notion page deleted successfully"} @@ -386,7 +386,7 @@ export const DeleteNotionPageToolUI = makeAssistantToolUI< render: function DeleteNotionPageUI({ result, status }) { if (status.type === "running") { return ( -

+
); diff --git a/surfsense_web/components/tool-ui/notion/update-notion-page.tsx b/surfsense_web/components/tool-ui/notion/update-notion-page.tsx index fe67cc368..17bba9907 100644 --- a/surfsense_web/components/tool-ui/notion/update-notion-page.tsx +++ b/surfsense_web/components/tool-ui/notion/update-notion-page.tsx @@ -309,7 +309,7 @@ function ApprovalCard({ function AuthErrorCard({ result }: { result: AuthErrorResult }) { return ( -
+

Notion authentication expired @@ -325,7 +325,7 @@ function AuthErrorCard({ result }: { result: AuthErrorResult }) { function ErrorCard({ result }: { result: ErrorResult }) { return ( -

+

Failed to update Notion page

@@ -339,7 +339,7 @@ function ErrorCard({ result }: { result: ErrorResult }) { function InfoCard({ result }: { result: InfoResult }) { return ( -
+

Page not found @@ -355,7 +355,7 @@ function InfoCard({ result }: { result: InfoResult }) { function SuccessCard({ result }: { result: SuccessResult }) { return ( -

+

{result.message || "Notion page updated successfully"} @@ -392,7 +392,7 @@ export const UpdateNotionPageToolUI = makeAssistantToolUI< render: function UpdateNotionPageUI({ args, result, status }) { if (status.type === "running") { return ( -

+
);