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
refactor: improve scrolling behavior and metadata handling in SecretDiffView
Victor Santosb987ea38c712
diff --git a/frontend/src/components/secrets/diff/SecretDiffView.tsx b/frontend/src/components/secrets/diff/SecretDiffView.tsxindex 17e1a2089f..c93f824f07 100644--- a/frontend/src/components/secrets/diff/SecretDiffView.tsx+++ b/frontend/src/components/secrets/diff/SecretDiffView.tsx@@ -82,11 +82,11 @@ const SecretValueRenderer = ({// Scroll to first change when revealing multi-line contentif (newVisibility && !isBothSingleLine && containerRef?.current) {// Allow DOM to update before scrolling- setTimeout(() => {+ requestAnimationFrame(() => {if (containerRef.current) {scrollToFirstChange(containerRef.current);}- }, 100);+ });}};@@ -306,7 +306,7 @@ export const SecretDiffView = ({<div className="mb-2"><div className="text-sm font-medium text-mineshaft-300">Metadata</div><MetadataDiffRenderer- metadata={newVersion?.secretMetadata ?? oldVersion?.secretMetadata}+ metadata={newVersion?.secretMetadata}otherMetadata={oldVersion?.secretMetadata}isOldVersion={false}/>diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsxindex 8a6acb9813..da1823f4b6 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx@@ -327,7 +327,7 @@ export const SecretDetailSidebar = ({};}} catch {- // ignore error+ // Continue with save - the diff modal will show the value as hidden}}