= ({
label="Value"
previousValue={
- {change.originalValue || (empty)}
+ {change.existingSecret.value || (empty)}
}
newValue={
@@ -213,28 +213,32 @@ const ChangeTable: React.FC = ({
{hasCommentChange && (
(empty)}
+ previousValue={
+ change.existingSecret.comment || (empty)
+ }
newValue={change.secretComment || (empty)}
/>
)}
{hasMultilineChange && (
)}
{hasTagsChange && (
}
+ previousValue={}
newValue={}
/>
)}
{hasMetadataChange && (
}
+ previousValue={}
newValue={}
/>
)}
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx
index ae6f70d61..614e1d35e 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx
@@ -220,7 +220,7 @@ export const SecretItem = memo(
}
if (isDirty && !isSubmitting && !isAutoSavingRef.current) {
- const debounceTime = isPending ? 500 : 1500;
+ const debounceTime = 600;
autoSaveTimeoutRef.current = setTimeout(() => {
autoSaveChanges(formValues);
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx
index cf64bcf73..0bb5fec78 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx
@@ -86,17 +86,16 @@ export const SecretListView = ({
const selectedSecrets = useSelectedSecrets();
const { toggle: toggleSelectedSecret } = useSelectedSecretActions();
const { isBatchMode, pendingChanges } = useBatchMode();
- useNavigationBlocker(
- {
- shouldBlock: pendingChanges.secrets.length > 0 || pendingChanges.folders.length > 0,
- message: "You have unsaved changes. If you leave now, your work will be lost. Do you want to continue?",
- context: {
- workspaceId,
- environment,
- secretPath
- }
+ useNavigationBlocker({
+ shouldBlock: pendingChanges.secrets.length > 0 || pendingChanges.folders.length > 0,
+ message:
+ "You have unsaved changes. If you leave now, your work will be lost. Do you want to continue?",
+ context: {
+ workspaceId,
+ environment,
+ secretPath
}
- );
+ });
const { addPendingChange } = useBatchModeActions();
const handleSecretOperation = async (
@@ -368,7 +367,8 @@ export const SecretListView = ({
}),
timestamp: Date.now(),
- resourceType: "secret"
+ resourceType: "secret",
+ existingSecret: orgSecret
};
addPendingChange(updateChange, {