From f992535812d5e96421e3da7bba4893542afb489a Mon Sep 17 00:00:00 2001 From: Carlos Monastyrski Date: Tue, 22 Jul 2025 11:03:25 -0300 Subject: [PATCH] Redo confirm changes box --- .../components/CommitForm/CommitForm.tsx | 69 ++++++++++--------- 1 file changed, 38 insertions(+), 31 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 b961775d3..b953f63ae 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx @@ -1,6 +1,6 @@ /* eslint-disable jsx-a11y/label-has-associated-control */ import React, { useCallback, useState } from "react"; -import { faCodeCommit, faEye, faFolder, faKey, faTrash } from "@fortawesome/free-solid-svg-icons"; +import { faCodeCommit, faEye, faFolder, faKey } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Badge, Button, Input, Modal, ModalContent } from "@app/components/v2"; @@ -296,39 +296,46 @@ export const CommitForm: React.FC = ({ <> {/* Floating Panel */} {!isModalOpen && ( -
-
-
-
- +
+
+ {/* Left Content */} +
+ {/* Header */} +
+
Pending Changes + + {totalChangesCount} Change{totalChangesCount !== 1 ? "s" : ""} +
- - {totalChangesCount} Change{totalChangesCount !== 1 ? "s" : ""} - -
-
-
- - + {/* Description */} +

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

+
+ + {/* Right Buttons */} +
+ + +
)}