feat(infisical-pg): completed support for tags in secret snapshot

This commit is contained in:
Akhil Mohan
2024-01-27 12:39:54 +05:30
parent b8157122e6
commit 42eb01e1e2
9 changed files with 88 additions and 15 deletions
@@ -325,7 +325,7 @@ export const SecretItem = memo(
return (
<DropdownMenuItem
onClick={() => handleTagSelect(tag)}
key={tagId}
key={`${secret.id}-${tagId}`}
icon={isTagSelected && <FontAwesomeIcon icon={faCheckCircle} />}
iconPos="right"
>
@@ -339,7 +339,7 @@ export const SecretItem = memo(
</DropdownMenuItem>
);
})}
<DropdownMenuItem className="px-1.5">
<DropdownMenuItem className="px-1.5" asChild>
<Button
size="xs"
className="w-full"
@@ -97,7 +97,6 @@ export const SnapshotView = ({
{}
);
const diffView: Array<TDiffView<DecryptedSecret>> = [];
console.log({ rollingSecrets, secrets });
rollingSecrets.forEach((rollSecret) => {
const { id } = rollSecret;
const doesExist = Boolean(secretGroupById?.[id]);
@@ -119,7 +118,7 @@ export const SnapshotView = ({
});
return diffView;
}, [secrets, rollingSecrets]);
console.log(secretDiffView);
const handleClickRollback = async () => {
if (!snapshotData?.id) {
createNotification({