From 106833328b9a1f6aa65f2612b2939028ab843149 Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Wed, 13 Aug 2025 17:48:44 -0700 Subject: [PATCH 1/2] improvement: make commit popover animated --- .../components/CommitForm/CommitForm.tsx | 95 +++++++++++-------- 1 file changed, 55 insertions(+), 40 deletions(-) diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx index 9bf9e3a15..28a10ea92 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 = ({ <> {/* Floating Panel */} {!isModalOpen && ( -
-
- {/* Left Content */} -
- {/* Header */} -
-
- Pending Changes - - {totalChangesCount} Change{totalChangesCount !== 1 ? "s" : ""} - +
+ + +
+
+ {/* Left Content */} +
+ {/* Header */} +
+
+ Pending Changes + + {totalChangesCount} Change{totalChangesCount !== 1 ? "s" : ""} + +
+ + {/* Description */} +

+ Review pending changes and commit them to apply the updates. +

+
+ + {/* Right Buttons */} +
+ + +
+
- - {/* Description */} -

- Review pending changes and commit them to apply the updates. -

-
- - {/* Right Buttons */} -
- - -
-
+ +
)} From b986ff9a21ec58e4f5f76880a8842f26c835ee24 Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Wed, 13 Aug 2025 17:51:14 -0700 Subject: [PATCH 2/2] improvement: adjust key --- .../SecretDashboardPage/components/CommitForm/CommitForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx index 28a10ea92..c3f5e74ee 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx @@ -306,7 +306,7 @@ export const CommitForm: React.FC = ({