Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix ui card

Thiago Araujo da Silva00971ae1cbbd
diff --git a/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CriblProviderAuditLogStreamForm.tsx b/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CriblProviderAuditLogStreamForm.tsx
index a6dee4ce5f..7df3c6a99f 100644
--- a/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CriblProviderAuditLogStreamForm.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CriblProviderAuditLogStreamForm.tsx
@@ -1,8 +1,18 @@
import { Controller, FormProvider, useForm } from "react-hook-form";
+import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { zodResolver } from "@hookform/resolvers/zod";
import { z } from "zod";
-import { Button, FormControl, Input, ModalClose, SecretInput, Switch } from "@app/components/v2";
+import {
+ Button,
+ FormControl,
+ Input,
+ ModalClose,
+ SecretInput,
+ Switch,
+ Tooltip
+} from "@app/components/v2";
import { LogProvider, StreamMode } from "@app/hooks/api/auditLogStreams/enums";
import { TCriblProviderLogStream } from "@app/hooks/api/auditLogStreams/types/providers/cribl-provider";
@@ -97,7 +107,7 @@ export const CriblProviderAuditLogStreamForm = ({ auditLogStream, onSubmit }: Pr
)}
/>
{isUpdate && (
- <div className="mt-6 rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6">
<Controller
control={control}
name="streamMode"
@@ -113,7 +123,15 @@ export const CriblProviderAuditLogStreamForm = ({ auditLogStream, onSubmit }: Pr
field.onChange(checked ? StreamMode.Batch : StreamMode.Single)
}
>
- <span className="text-sm">Batch delivery (send events as a JSON array)</span>
+ <p className="text-sm">
+ Batch delivery
+ <Tooltip
+ className="max-w-md"
+ content={<p>Send events as a newline-delimited JSON (NDJSON) batch.</p>}
+ >
+ <FontAwesomeIcon icon={faQuestionCircle} size="sm" className="ml-1" />
+ </Tooltip>
+ </p>
</Switch>
{isSingleStream &&
(isBatch ? (
diff --git a/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx b/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx
index 6733d17132..d86b2b967a 100644
--- a/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx
@@ -1,6 +1,6 @@
import { useState } from "react";
import { Controller, FormProvider, useFieldArray, useForm } from "react-hook-form";
-import { faPlus, faTrash } from "@fortawesome/free-solid-svg-icons";
+import { faPlus, faQuestionCircle, faTrash } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { zodResolver } from "@hookform/resolvers/zod";
import { z } from "zod";
@@ -12,7 +12,8 @@ import {
IconButton,
Input,
ModalClose,
- Switch
+ Switch,
+ Tooltip
} from "@app/components/v2";
import { LogProvider, StreamMode } from "@app/hooks/api/auditLogStreams/enums";
import { TCustomProviderLogStream } from "@app/hooks/api/auditLogStreams/types/providers/custom-provider";
@@ -176,7 +177,7 @@ export const CustomProviderAuditLogStreamForm = ({ auditLogStream, onSubmit }: P
</div>
{isUpdate && (
- <div className="mt-6 rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6">
<Controller
control={control}
name="streamMode"
@@ -192,7 +193,12 @@ export const CustomProviderAuditLogStreamForm = ({ auditLogStream, onSubmit }: P
field.onChange(checked ? StreamMode.Batch : StreamMode.Single)
}
>
- <span className="text-sm">Batch delivery (send events as a JSON array)</span>
+ <p className="text-sm">
+ Batch delivery
+ <Tooltip className="max-w-md" content={<p>Send events as a JSON array.</p>}>
+ <FontAwesomeIcon icon={faQuestionCircle} size="sm" className="ml-1" />
+ </Tooltip>
+ </p>
</Switch>
{isSingleStream &&
(isBatch ? (