diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx index 3d9e58b3c..9241c2c6f 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx @@ -328,12 +328,12 @@ const Page = () => { createNotification({ text: isProtectedBranch ? "Requested changes have been sent for review" - : "Changes committed successfully", + : "Changes saved successfully", type: "success" }); } catch (error) { createNotification({ - text: "Failed to commit changes", + text: "Failed to save changes", type: "error" }); console.error(error); 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 c2e3ab12b..9bf9e3a15 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,12 @@ /* eslint-disable jsx-a11y/label-has-associated-control */ import React, { useCallback, useState } from "react"; -import { faCodeCommit, faEye, faFolder, faKey } from "@fortawesome/free-solid-svg-icons"; +import { + faClipboardCheck, + faCodeCommit, + faFolder, + faKey, + faSave +} from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Badge, Button, Input, Modal, ModalContent } from "@app/components/v2"; @@ -328,12 +334,12 @@ export const CommitForm: React.FC = ({ @@ -345,14 +351,14 @@ export const CommitForm: React.FC = ({ - - Commit Changes + + Review Changes {totalChangesCount} Change{totalChangesCount !== 1 ? "s" : ""} } - subTitle={"Write a commit message and review the changes you're about to commit."} + subTitle="Write a commit message and review the changes you're about to save." className="max-h-[90vh] max-w-[95%] md:max-w-7xl" >
@@ -413,6 +419,7 @@ export const CommitForm: React.FC = ({ onChange={(e) => setCommitMessage(e.target.value)} placeholder="Describe your changes..." className="w-full" + autoFocus required />
@@ -435,7 +442,7 @@ export const CommitForm: React.FC = ({ colorSchema="primary" variant="outline_bg" > - {isCommitting ? "Committing..." : "Commit Changes"} + {isCommitting ? "Saving..." : "Save Changes"}