Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge branch 'main' into auto-capitalization-toggle

Hasan Mansoor65eb0370208d
diff --cc frontend/src/components/dashboard/KeyPair.tsx
index c2f8debefc,27409a57a6..03d22d39c3
--- a/frontend/src/components/dashboard/KeyPair.tsx
+++ b/frontend/src/components/dashboard/KeyPair.tsx
@@@ -16,8 -18,9 +18,10 @@@ interface KeyPairProps
toggleSidebar: (id: string) => void;
sidebarSecretId: string;
isSnapshot: boolean;
+ isCapitalized: boolean;
deleteRow?: (props: DeleteRowFunctionProps) => void;
+ tags: Tag[];
+ togglePITSidebar?: (value: boolean) => void;
}
export interface DeleteRowFunctionProps {
@@@ -51,21 -75,28 +76,30 @@@ const KeyPair = (
isDuplicate,
toggleSidebar,
sidebarSecretId,
+ isCapitalized,
isSnapshot,
- deleteRow
- }: KeyPairProps) => (
+ deleteRow,
+ togglePITSidebar,
+ tags
+ }: KeyPairProps) => {
+ const tagData = (tags.map((tag, index) => {return {
+ ...tag,
+ color: colors[index%colors.length],
+ colorText: colorsText[index%colorsText.length]
+ }}));
+
+ return (
<div
className={`group flex flex-col items-center border-b border-mineshaft-500 hover:bg-white/[0.03] duration-100 ${isSnapshot && 'pointer-events-none'} ${
keyPair.id === sidebarSecretId && 'bg-mineshaft-700 duration-200'
}`}
>
<div className="relative flex flex-row justify-between w-full mr-auto max-h-14 items-center">
- <div className='text-bunker-400 text-xs flex items-center justify-center w-14 h-10 cursor-default'>{keyPair.pos + 1}</div>
- <div className="w-80 border-r border-mineshaft-600">
+ <div className="w-2/12 border-r border-mineshaft-600 flex flex-row items-center">
+ <div className='text-bunker-400 text-xs flex items-center justify-center w-14 h-10 cursor-default'>{keyPair.pos + 1}</div>
<div className="flex items-center max-h-16">
<DashboardInputField
+ isCapitalized = {isCapitalized}
onChangeHandler={modifyKey}
type="varName"
position={keyPair.pos}
diff --cc frontend/src/hooks/api/workspace/index.tsx
index 23d9e42a31,7d22340185..51f8c38eb2
--- a/frontend/src/hooks/api/workspace/index.tsx
+++ b/frontend/src/hooks/api/workspace/index.tsx
@@@ -3,7 -3,6 +3,8 @@@ export
useDeleteWorkspace,
useDeleteWsEnvironment,
useGetUserWorkspaces,
+ useGetWorkspaceById,
useRenameWorkspace,
+ useToggleAutoCapitalization,
- useUpdateWsEnvironment
- } from './queries';
+ useUpdateWsEnvironment} from './queries';
++
diff --cc frontend/src/pages/dashboard/[id].tsx
index 9aa2c53e83,2fbcaa7da1..b9580a8f42
--- a/frontend/src/pages/dashboard/[id].tsx
+++ b/frontend/src/pages/dashboard/[id].tsx
@@@ -126,7 -131,7 +131,8 @@@ export default function Dashboard()
const [snapshotData, setSnapshotData] = useState<SnapshotProps>();
const [numSnapshots, setNumSnapshots] = useState<number>();
const [saveLoading, setSaveLoading] = useState(false);
+ const [autoCapitalization, setAutoCapitalization] = useState(false);
+ const [projectTags, setProjectTags] = useState<Tag[]>([]);
const { t } = useTranslation();
const { createNotification } = useNotificationContext();
diff --cc frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx
index da89e98825,9c08e2bcd0..1b30eb4e95
--- a/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx
+++ b/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx
@@@ -21,14 -22,15 +22,20 @@@ import
useDeleteServiceToken,
useDeleteWorkspace,
useDeleteWsEnvironment,
+ useDeleteWsTag,
useGetUserWsKey,
useGetUserWsServiceTokens,
+ useGetWsTags,
useRenameWorkspace,
+ useToggleAutoCapitalization,
useUpdateWsEnvironment
} from '@app/hooks/api';
++
+import { AutoCapitalizationSection } from './components/AutoCapitalizationSection/AutoCapitalizationSection';
++
+ import { SecretTagsSection } from './components/SecretTagsSection';
++
import {
CopyProjectIDSection,
CreateServiceToken,