Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat(ui): resolved dynamic secret merge conflict
Akhil Mohanb912cd585c88
diff --git a/frontend/src/components/notifications/Notifications.tsx b/frontend/src/components/notifications/Notifications.tsxindex 422a8faa3d..0d6b0d0615 100644--- a/frontend/src/components/notifications/Notifications.tsx+++ b/frontend/src/components/notifications/Notifications.tsx@@ -23,7 +23,7 @@ export const createNotification = (position: "bottom-right",...toastProps,theme: "dark",- type: myProps?.type || "info"+ type: myProps?.type || "info",});export const NotificationContainer = () => <ToastContainer hideProgressBar />;diff --git a/frontend/src/styles/globals.css b/frontend/src/styles/globals.cssindex 3f1b20a165..9a1295d191 100644--- a/frontend/src/styles/globals.css+++ b/frontend/src/styles/globals.css@@ -9,6 +9,10 @@ html {--toastify-color-dark: theme(colors.mineshaft.700);}+.Toastify__toast {+ @apply rounded-md;+}+.rdp-day,.rdp-nav_button {@apply rounded-md hover:text-mineshaft-500;diff --git a/frontend/src/views/SecretMainPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx b/frontend/src/views/SecretMainPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsxindex ace717bd37..c0dff20f5f 100644--- a/frontend/src/views/SecretMainPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx+++ b/frontend/src/views/SecretMainPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx@@ -3,8 +3,8 @@ import { zodResolver } from "@hookform/resolvers/zod";import ms from "ms";import { z } from "zod";-import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";import { TtlFormLabel } from "@app/components/features";+import { createNotification } from "@app/components/notifications";import {Accordion,AccordionContent,@@ -91,7 +91,7 @@ export const SqlDatabaseInputForm = ({}}});- const { createNotification } = useNotificationContext();+const createDynamicSecret = useCreateDynamicSecret();const handleCreateDynamicSecret = async ({ name, maxTTL, provider, defaultTTL }: TForm) => {diff --git a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsxindex 552b2fb1f8..3eb80c9b44 100644--- a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx+++ b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx@@ -6,8 +6,8 @@ import { AnimatePresence, motion } from "framer-motion";import ms from "ms";import { z } from "zod";-import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";import { TtlFormLabel } from "@app/components/features";+import { createNotification } from "@app/components/notifications";import { Button, FormControl, IconButton, Input, SecretInput, Tooltip } from "@app/components/v2";import { useTimedReset } from "@app/hooks";import { useCreateDynamicSecretLease } from "@app/hooks/api";@@ -102,7 +102,7 @@ export const CreateDynamicSecretLease = ({ttl: "1h"}});- const { createNotification } = useNotificationContext();+const createDynamicSecretLease = useCreateDynamicSecretLease();diff --git a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/DynamicSecretLease.tsx b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/DynamicSecretLease.tsxindex ae17e48518..49110c3bb5 100644--- a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/DynamicSecretLease.tsx+++ b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/DynamicSecretLease.tsx@@ -9,7 +9,7 @@ import {import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { format, formatDistance } from "date-fns";-import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";+import { createNotification } from "@app/components/notifications";import { ProjectPermissionCan } from "@app/components/permissions";import {Button,@@ -60,7 +60,7 @@ export const DynamicSecretLease = ({path: secretPath,dynamicSecretName});- const { createNotification } = useNotificationContext();+const deleteDynamicSecretLease = useRevokeDynamicSecretLease();diff --git a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/DynamicSecretListView.tsx b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/DynamicSecretListView.tsxindex cfab8bfc2b..6b133d9459 100644--- a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/DynamicSecretListView.tsx+++ b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/DynamicSecretListView.tsx@@ -7,7 +7,7 @@ import {} from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";+import { createNotification } from "@app/components/notifications";import { ProjectPermissionCan } from "@app/components/permissions";import {Button,@@ -59,7 +59,7 @@ export const DynamicSecretListView = ({"deleteDynamicSecret"] as const);- const { createNotification } = useNotificationContext();+const deleteDynamicSecret = useDeleteDynamicSecret();const handleDynamicSecretDelete = async () => {diff --git a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretSqlProviderForm.tsx b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretSqlProviderForm.tsxindex 7a91e0d3e0..8207b18924 100644--- a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretSqlProviderForm.tsx+++ b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretSqlProviderForm.tsx@@ -3,8 +3,8 @@ import { zodResolver } from "@hookform/resolvers/zod";import ms from "ms";import { z } from "zod";-import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";import { TtlFormLabel } from "@app/components/features";+import { createNotification } from "@app/components/notifications";import {Accordion,AccordionContent,@@ -94,7 +94,7 @@ export const EditDynamicSecretSqlProviderForm = ({}}});- const { createNotification } = useNotificationContext();+const updateDynamicSecret = useUpdateDynamicSecret();const handleUpdateDynamicSecret = async ({ inputs, maxTTL, defaultTTL, newName }: TForm) => {diff --git a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/RenewDynamicSecretLease.tsx b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/RenewDynamicSecretLease.tsxindex b307c181c8..673c24a3cb 100644--- a/frontend/src/views/SecretMainPage/components/DynamicSecretListView/RenewDynamicSecretLease.tsx+++ b/frontend/src/views/SecretMainPage/components/DynamicSecretListView/RenewDynamicSecretLease.tsx@@ -3,8 +3,8 @@ import { zodResolver } from "@hookform/resolvers/zod";import ms from "ms";import { z } from "zod";-import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";import { TtlFormLabel } from "@app/components/features";+import { createNotification } from "@app/components/notifications";import { Button, FormControl, Input } from "@app/components/v2";import { useRenewDynamicSecretLease } from "@app/hooks/api";@@ -48,7 +48,7 @@ export const RenewDynamicSecretLease = ({ttl: "1h"}});- const { createNotification } = useNotificationContext();+const renewDynamicSecretLease = useRenewDynamicSecretLease();