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
improvement: make commit popover animated
Scott Wilson106833328b9a
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsxindex 9bf9e3a158..28a10ea924 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx@@ -8,6 +8,7 @@ import {faSave} from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { AnimatePresence, motion } from "framer-motion";import { Badge, Button, Input, Modal, ModalContent } from "@app/components/v2";import { PendingAction } from "@app/hooks/api/secretFolders/types";@@ -302,47 +303,61 @@ export const CommitForm: React.FC<CommitFormProps> = ({<>{/* Floating Panel */}{!isModalOpen && (- <div className="fixed bottom-4 left-1/2 z-40 w-full max-w-3xl -translate-x-1/2 self-center rounded-lg border border-yellow/30 bg-mineshaft-800 shadow-2xl lg:left-auto lg:translate-x-0">- <div className="flex items-center justify-between p-4">- {/* Left Content */}- <div className="flex-1">- {/* Header */}- <div className="flex items-center gap-2">- <div className="h-2 w-2 rounded-full bg-yellow-500" />- <span className="font-medium text-mineshaft-100">Pending Changes</span>- <Badge variant="primary" className="text-xs">- {totalChangesCount} Change{totalChangesCount !== 1 ? "s" : ""}- </Badge>- </div>+ <div className="fixed bottom-4 left-1/2 z-40 w-full max-w-3xl -translate-x-1/2 self-center lg:left-auto lg:translate-x-0">+ <AnimatePresence mode="wait">+ <motion.div+ key="select-type-step"+ transition={{ duration: 0.3 }}+ initial={{ opacity: 0, translateY: 30 }}+ animate={{ opacity: 1, translateY: 0 }}+ exit={{ opacity: 0, translateY: -30 }}+ >+ <div className="rounded-lg border border-yellow/30 bg-mineshaft-800 shadow-2xl">+ <div className="flex items-center justify-between p-4">+ {/* Left Content */}+ <div className="flex-1">+ {/* Header */}+ <div className="flex items-center gap-2">+ <div className="h-2 w-2 rounded-full bg-yellow-500" />+ <span className="font-medium text-mineshaft-100">Pending Changes</span>+ <Badge variant="primary" className="text-xs">+ {totalChangesCount} Change{totalChangesCount !== 1 ? "s" : ""}+ </Badge>+ </div>- {/* Description */}- <p className="text-sm leading-5 text-mineshaft-400">- Review pending changes and commit them to apply the updates.- </p>- </div>+ {/* Description */}+ <p className="text-sm leading-5 text-mineshaft-400">+ Review pending changes and commit them to apply the updates.+ </p>+ </div>- {/* Right Buttons */}- <div className="ml-6 mt-0.5 flex items-center gap-3">- <Button- size="sm"- onClick={() => clearAllPendingChanges({ workspaceId, environment, secretPath })}- isDisabled={totalChangesCount === 0}- variant="outline_bg"- className="px-4 hover:border-red/40 hover:bg-red/[0.1]"- >- Discard- </Button>- <Button- variant="solid"- leftIcon={<FontAwesomeIcon icon={faSave} />}- onClick={() => setIsModalOpen(true)}- isDisabled={totalChangesCount === 0}- className="px-6"- >- Save Changes- </Button>- </div>- </div>+ {/* Right Buttons */}+ <div className="ml-6 mt-0.5 flex items-center gap-3">+ <Button+ size="sm"+ onClick={() =>+ clearAllPendingChanges({ workspaceId, environment, secretPath })+ }+ isDisabled={totalChangesCount === 0}+ variant="outline_bg"+ className="px-4 hover:border-red/40 hover:bg-red/[0.1]"+ >+ Discard+ </Button>+ <Button+ variant="solid"+ leftIcon={<FontAwesomeIcon icon={faSave} />}+ onClick={() => setIsModalOpen(true)}+ isDisabled={totalChangesCount === 0}+ className="px-6"+ >+ Save Changes+ </Button>+ </div>+ </div>+ </div>+ </motion.div>+ </AnimatePresence></div>)}