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
fix frontend lint issues
Matheus Nogueira7f667b58fd1e
diff --git a/frontend/src/components/v2/InfisicalSecretInput/InfisicalSecretInput.tsx b/frontend/src/components/v2/InfisicalSecretInput/InfisicalSecretInput.tsxindex d1d99f3673..7574b9ea31 100644--- a/frontend/src/components/v2/InfisicalSecretInput/InfisicalSecretInput.tsx+++ b/frontend/src/components/v2/InfisicalSecretInput/InfisicalSecretInput.tsx@@ -131,7 +131,8 @@ export const InfisicalSecretInput = forwardRef<HTMLTextAreaElement, Props>(}, [debouncedValue]);const isPopupOpen = Boolean(suggestionSource.isOpen) && isFocused;- const showWizard = isPopupOpen && (!suggestionSource.isDeep || suggestionSource.value.startsWith("@"));+ const showWizard =+ isPopupOpen && (!suggestionSource.isDeep || suggestionSource.value.startsWith("@"));const handleWizardSelect = (referenceContent: string) => {const { left } = suggestionSource;@@ -494,9 +495,7 @@ export const InfisicalSecretInput = forwardRef<HTMLTextAreaElement, Props>(if (showWizard) e.preventDefault();}}className={`relative top-2 z-100 max-h-80 thin-scrollbar overflow-auto rounded-md border border-mineshaft-600 bg-mineshaft-900 font-inter text-bunker-100 shadow-md ${showWizard ? "w-64" : "min-w-80"}`}- style={- showWizard ? undefined : { width: "var(--radix-popover-trigger-width)" }- }+ style={showWizard ? undefined : { width: "var(--radix-popover-trigger-width)" }}>{showWizard ? (<SecretReferenceWizarddiff --git a/frontend/src/components/v3/platform/SecretInput/InfisicalSecretInput.tsx b/frontend/src/components/v3/platform/SecretInput/InfisicalSecretInput.tsxindex 5336c85b25..0a1a2bb28a 100644--- a/frontend/src/components/v3/platform/SecretInput/InfisicalSecretInput.tsx+++ b/frontend/src/components/v3/platform/SecretInput/InfisicalSecretInput.tsx@@ -9,8 +9,8 @@ import { ProjectPermissionSecretActions } from "@app/context/ProjectPermissionCoimport { useDebounce, useToggle } from "@app/hooks";import { hasSecretReadValueOrDescribePermission } from "@app/lib/fn/permission";-import { SecretReferenceWizard } from "./SecretReferenceWizard";import { SecretInput } from "./SecretInput";+import { SecretReferenceWizard } from "./SecretReferenceWizard";const getIndexOfUnclosedRefToTheLeft = (value: string, pos: number) => {for (let i = pos; i >= 1; i -= 1) {@@ -251,14 +251,18 @@ export const InfisicalSecretInput = forwardRef<HTMLTextAreaElement, Props>(align="start"onOpenAutoFocus={(e) => e.preventDefault()}onMouseDown={(e) => e.preventDefault()}- className="relative top-2 z-[100] max-h-80 overflow-auto rounded-md border border-border bg-popover text-foreground shadow-md thin-scrollbar"+ className="relative top-2 z-[100] max-h-80 thin-scrollbar overflow-auto rounded-md border border-border bg-popover text-foreground shadow-md"style={{ width: "var(--radix-popover-trigger-width)", minWidth: "320px" }}><SecretReferenceWizardisEnabled={isPopupOpen}onSelect={handleWizardSelect}onFocusItem={() => inputRef.current?.focus()}- currentInput={openRefLeft !== -1 ? debouncedValue.slice(openRefLeft + 1, currentCursorPosition) : ""}+ currentInput={+ openRefLeft !== -1+ ? debouncedValue.slice(openRefLeft + 1, currentCursorPosition)+ : ""+ }/></PopoverPrimitive.Content></PopoverPrimitive.Portal>diff --git a/frontend/src/components/v3/platform/SecretInput/SecretReferenceWizard.tsx b/frontend/src/components/v3/platform/SecretInput/SecretReferenceWizard.tsxindex 3a493c4d9e..575a43aa50 100644--- a/frontend/src/components/v3/platform/SecretInput/SecretReferenceWizard.tsx+++ b/frontend/src/components/v3/platform/SecretInput/SecretReferenceWizard.tsx@@ -1,5 +1,11 @@import { useEffect, useMemo, useState } from "react";-import { ArrowLeftIcon, ChevronRightIcon, FolderIcon, KeyRoundIcon, LayersIcon } from "lucide-react";+import {+ ArrowLeftIcon,+ ChevronRightIcon,+ FolderIcon,+ KeyRoundIcon,+ LayersIcon+} from "lucide-react";import { useProject } from "@app/context";import { useGetProjectFolders, useGetProjectSecrets, useGetWorkspaceById } from "@app/hooks/api";@@ -34,7 +40,12 @@ const INITIAL_STATE: WizardState = {secretPath: "/"};-export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, currentInput = "" }: Props) => {+export const SecretReferenceWizard = ({+ onSelect,+ isEnabled,+ onFocusItem,+ currentInput = ""+}: Props) => {const { currentProject } = useProject();const projectId = currentProject?.id || "";@@ -58,10 +69,7 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, currenviewSecretValue: false,options: {enabled:- isEnabled &&- state.step === "browse" &&- Boolean(browseProjectId) &&- Boolean(state.env?.slug)+ isEnabled && state.step === "browse" && Boolean(browseProjectId) && Boolean(state.env?.slug)}});@@ -71,10 +79,7 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, currenpath: state.secretPath,options: {enabled:- isEnabled &&- state.step === "browse" &&- Boolean(browseProjectId) &&- Boolean(state.env?.slug)+ isEnabled && state.step === "browse" && Boolean(browseProjectId) && Boolean(state.env?.slug)}});@@ -155,8 +160,7 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, currenreturn;}- const secretPath =- folderSegments.length > 0 ? `/${folderSegments.join("/")}/` : "/";+ const secretPath = folderSegments.length > 0 ? `/${folderSegments.join("/")}/` : "/";setState({tab: "another-project",@@ -167,8 +171,10 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, curren});}, [parsedInput, uniqueSourceProjects, receivedGrants]);- const projectFilter = parsedInput && !parsedInput.hasProjectDot ? parsedInput.projectSlug.toLowerCase() : "";- const envFilter = parsedInput?.hasProjectDot && !parsedInput.hasEnvDot ? parsedInput.envSlug.toLowerCase() : "";+ const projectFilter =+ parsedInput && !parsedInput.hasProjectDot ? parsedInput.projectSlug.toLowerCase() : "";+ const envFilter =+ parsedInput?.hasProjectDot && !parsedInput.hasEnvDot ? parsedInput.envSlug.toLowerCase() : "";const browseFilter = parsedInput?.hasEnvDot ? parsedInput.lastSegment.toLowerCase() : "";const availableEnvs = useMemo(() => {@@ -221,8 +227,7 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, currenconst handleSelectFolder = (folderName: string) => {setState((prev) => {const currentPath = prev.secretPath;- const newPath =- currentPath === "/" ? `/${folderName}/` : `${currentPath}${folderName}/`;+ const newPath = currentPath === "/" ? `/${folderName}/` : `${currentPath}${folderName}/`;return { ...prev, secretPath: newPath };});};@@ -253,7 +258,7 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, currenreturn;}const pathParts = state.secretPath.split("/").filter(Boolean);- const newPath = "/" + pathParts.slice(0, index).join("/") + (index > 0 ? "/" : "");+ const newPath = `/${pathParts.slice(0, index).join("/")}${index > 0 ? "/" : ""}`;setState((prev) => ({ ...prev, secretPath: newPath }));};@@ -265,40 +270,40 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, curren: uniqueSourceProjects;return (- <div className="flex flex-col">- {filteredProjects.length === 0 ? (- <div className="flex flex-col items-center justify-center py-8 text-sm text-muted">- {projectFilter ? "No matching projects" : "No projects have shared secrets with you"}- </div>- ) : (- <>- <div className="px-2 py-1.5 text-[10px] font-semibold uppercase tracking-wider text-muted">- Projects that shared with you+ <div className="flex flex-col">+ {filteredProjects.length === 0 ? (+ <div className="flex flex-col items-center justify-center py-8 text-sm text-muted">+ {projectFilter ? "No matching projects" : "No projects have shared secrets with you"}</div>- {filteredProjects.map((grant) => (- <button- key={grant.sourceProjectId}- type="button"- aria-label="suggestion-item"- onClick={() => {- onFocusItem();- handleSelectProject(grant);- }}- className="flex w-full cursor-pointer items-center justify-between px-2 py-2 text-left text-sm transition-colors hover:bg-foreground/10"- >- <div className="flex items-center gap-2">- <div className="flex size-6 shrink-0 items-center justify-center rounded bg-project/20 text-xs font-semibold text-project">- {grant.sourceProjectName[0]?.toUpperCase()}+ ) : (+ <>+ <div className="px-2 py-1.5 text-[10px] font-semibold tracking-wider text-muted uppercase">+ Projects that shared with you+ </div>+ {filteredProjects.map((grant) => (+ <button+ key={grant.sourceProjectId}+ type="button"+ aria-label="suggestion-item"+ onClick={() => {+ onFocusItem();+ handleSelectProject(grant);+ }}+ className="flex w-full cursor-pointer items-center justify-between px-2 py-2 text-left text-sm transition-colors hover:bg-foreground/10"+ >+ <div className="flex items-center gap-2">+ <div className="flex size-6 shrink-0 items-center justify-center rounded bg-project/20 text-xs font-semibold text-project">+ {grant.sourceProjectName[0]?.toUpperCase()}+ </div>+ <span className="truncate">{grant.sourceProjectName}</span></div>- <span className="truncate">{grant.sourceProjectName}</span>- </div>- <ChevronRightIcon className="size-3.5 shrink-0 text-muted" />- </button>- ))}- </>- )}- </div>- );+ <ChevronRightIcon className="size-3.5 shrink-0 text-muted" />+ </button>+ ))}+ </>+ )}+ </div>+ );};const renderEnvStep = () => {@@ -307,50 +312,50 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, curren: availableEnvs;return (- <div className="flex flex-col">- {state.selectedProjectGrant && (- <button- type="button"- aria-label="suggestion-item"- onClick={() => {- onFocusItem();- setState((prev) => ({ ...prev, step: "project", env: null }));- }}- className="flex items-center gap-1.5 border-b border-border px-2 py-1.5 text-xs text-muted transition-colors hover:text-foreground"- >- <ArrowLeftIcon className="size-3 shrink-0" />- <span className="truncate">{state.selectedProjectGrant.sourceProjectName}</span>- </button>- )}- <div className="px-2 py-1.5 text-[10px] font-semibold uppercase tracking-wider text-muted">- Environments- </div>- {filteredEnvs.length === 0 ? (- <div className="flex items-center justify-center py-6 text-sm text-muted">- {envFilter ? "No matching environments" : "No environments available"}- </div>- ) : (- filteredEnvs.map((env) => (+ <div className="flex flex-col">+ {state.selectedProjectGrant && (<button- key={env.slug}type="button"aria-label="suggestion-item"onClick={() => {onFocusItem();- handleSelectEnv(env.slug, env.name);+ setState((prev) => ({ ...prev, step: "project", env: null }));}}- className="flex w-full cursor-pointer items-center justify-between px-2 py-2 text-left text-sm transition-colors hover:bg-foreground/10"+ className="flex items-center gap-1.5 border-b border-border px-2 py-1.5 text-xs text-muted transition-colors hover:text-foreground">- <div className="flex items-center gap-2">- <LayersIcon className="size-4 text-success" />- <span>{env.name}</span>- </div>- <ChevronRightIcon className="size-3.5 shrink-0 text-muted" />+ <ArrowLeftIcon className="size-3 shrink-0" />+ <span className="truncate">{state.selectedProjectGrant.sourceProjectName}</span></button>- ))- )}- </div>- );+ )}+ <div className="px-2 py-1.5 text-[10px] font-semibold tracking-wider text-muted uppercase">+ Environments+ </div>+ {filteredEnvs.length === 0 ? (+ <div className="flex items-center justify-center py-6 text-sm text-muted">+ {envFilter ? "No matching environments" : "No environments available"}+ </div>+ ) : (+ filteredEnvs.map((env) => (+ <button+ key={env.slug}+ type="button"+ aria-label="suggestion-item"+ onClick={() => {+ onFocusItem();+ handleSelectEnv(env.slug, env.name);+ }}+ className="flex w-full cursor-pointer items-center justify-between px-2 py-2 text-left text-sm transition-colors hover:bg-foreground/10"+ >+ <div className="flex items-center gap-2">+ <LayersIcon className="size-4 text-success" />+ <span>{env.name}</span>+ </div>+ <ChevronRightIcon className="size-3.5 shrink-0 text-muted" />+ </button>+ ))+ )}+ </div>+ );};const renderBrowseStep = () => {@@ -364,7 +369,7 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, currenreturn (<div className="flex flex-col">- <div className="flex min-w-0 items-center gap-0.5 overflow-x-auto border-b border-border px-2 py-1.5 text-xs text-muted no-scrollbar">+ <div className="no-scrollbar flex min-w-0 items-center gap-0.5 overflow-x-auto border-b border-border px-2 py-1.5 text-xs text-muted"><buttontype="button"aria-label="suggestion-item"@@ -427,7 +432,7 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, curren)}{secretList.length > 0 && (- <div className="px-2 py-1.5 text-[10px] font-semibold uppercase tracking-wider text-muted">+ <div className="px-2 py-1.5 text-[10px] font-semibold tracking-wider text-muted uppercase">Secrets in this {state.tab === "another-project" ? "project" : "environment"}</div>)}@@ -471,9 +476,7 @@ export const SecretReferenceWizard = ({ onSelect, isEnabled, onFocusItem, currenreturn (<Tabs value={state.tab} onValueChange={handleTabChange} className="gap-0">- <TabsList- className="h-auto w-full rounded-none rounded-t-md border-0 border-b border-border bg-transparent p-0"- >+ <TabsList className="h-auto w-full rounded-none rounded-t-md border-0 border-b border-border bg-transparent p-0"><TabsTriggervalue="this-project"className="flex-1 rounded-none rounded-tl-md border-0 py-2 text-xs"diff --git a/frontend/src/hooks/api/dashboard/queries.tsx b/frontend/src/hooks/api/dashboard/queries.tsxindex d9ede9b9b2..09dd9dfc59 100644--- a/frontend/src/hooks/api/dashboard/queries.tsx+++ b/frontend/src/hooks/api/dashboard/queries.tsx@@ -80,7 +80,13 @@ export const dashboardKeys = {{ projectId, secretPath, environment, filterByAction }] as const,getSecretValuesRoot: () => [...dashboardKeys.all(), "secrets-values"] as const,- getSecretValue: ({ projectId, environment, secretPath, secretKey, isOverride }: TGetSecretValueDTO) =>+ getSecretValue: ({+ projectId,+ environment,+ secretPath,+ secretKey,+ isOverride+ }: TGetSecretValueDTO) =>[...dashboardKeys.getSecretValuesRoot(),projectId,diff --git a/frontend/src/hooks/api/projectGrants/index.ts b/frontend/src/hooks/api/projectGrants/index.tsindex d24ba35eac..c119e72d30 100644--- a/frontend/src/hooks/api/projectGrants/index.ts+++ b/frontend/src/hooks/api/projectGrants/index.ts@@ -1,3 +1,8 @@export { useCreateProjectGrant, useDeleteProjectGrant } from "./mutations";export { useListProjectGrants, useListProjectGrantsReceived } from "./queries";-export type { TCreateProjectGrantDTO, TDeleteProjectGrantDTO, TProjectGrant, TProjectGrantReceived } from "./types";+export type {+ TCreateProjectGrantDTO,+ TDeleteProjectGrantDTO,+ TProjectGrant,+ TProjectGrantReceived+} from "./types";diff --git a/frontend/src/hooks/api/projectGrants/queries.tsx b/frontend/src/hooks/api/projectGrants/queries.tsxindex 54a856cceb..2503987813 100644--- a/frontend/src/hooks/api/projectGrants/queries.tsx+++ b/frontend/src/hooks/api/projectGrants/queries.tsx@@ -6,7 +6,8 @@ import { TProjectGrant, TProjectGrantReceived } from "./types";export const projectGrantKeys = {listByProject: (sourceProjectId: string) => [{ sourceProjectId }, "project-grants"] as const,- listReceived: (targetProjectId: string) => [{ targetProjectId }, "project-grants-received"] as const+ listReceived: (targetProjectId: string) =>+ [{ targetProjectId }, "project-grants-received"] as const};export const useListProjectGrants = (sourceProjectId: string) =>diff --git a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsxindex 294c072b8a..b60cbd30fa 100644--- a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx+++ b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx@@ -17,7 +17,12 @@ import {FieldTitle,Switch} from "@app/components/v3";-import { OrgPermissionActions, OrgPermissionSubjects, useOrganization, useServerConfig } from "@app/context";+import {+ OrgPermissionActions,+ OrgPermissionSubjects,+ useOrganization,+ useServerConfig+} from "@app/context";import { useUpdateOrg } from "@app/hooks/api/organization/queries";import { ProjectType } from "@app/hooks/api/projects/types";@@ -106,29 +111,31 @@ export const ProductSettingsPage = () => {)}</OrgPermissionCan></Field>- {config.isCrossProjectSecretSharingEnabled && <Field orientation="horizontal">- <FieldContent>- <FieldTitle>Cross-project secret sharing</FieldTitle>- <FieldDescription>- When enabled, allows secret imports and secret references to target folders- and secrets from other projects within the same organization.- </FieldDescription>- </FieldContent>- <OrgPermissionCan- I={OrgPermissionActions.Edit}- a={OrgPermissionSubjects.Settings}- >- {(isAllowed) => (- <Switch- id="allow-cross-project-secret-sharing"- variant="project"- checked={currentOrg?.allowCrossProjectSecretSharing ?? false}- onCheckedChange={(value) => handleCrossProjectSharingToggle(value)}- disabled={!isAllowed || isPending}- />- )}- </OrgPermissionCan>- </Field>}+ {config.isCrossProjectSecretSharingEnabled && (+ <Field orientation="horizontal">+ <FieldContent>+ <FieldTitle>Cross-project secret sharing</FieldTitle>+ <FieldDescription>+ When enabled, allows secret imports and secret references to target+ folders and secrets from other projects within the same organization.+ </FieldDescription>+ </FieldContent>+ <OrgPermissionCan+ I={OrgPermissionActions.Edit}+ a={OrgPermissionSubjects.Settings}+ >+ {(isAllowed) => (+ <Switch+ id="allow-cross-project-secret-sharing"+ variant="project"+ checked={currentOrg?.allowCrossProjectSecretSharing ?? false}+ onCheckedChange={(value) => handleCrossProjectSharingToggle(value)}+ disabled={!isAllowed || isPending}+ />+ )}+ </OrgPermissionCan>+ </Field>+ )}</FieldGroup></CardContent></Card>diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretImportTableRow/SecretImportTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretImportTableRow/SecretImportTableRow.tsxindex 8e7d581d2c..34b17f947b 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretImportTableRow/SecretImportTableRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretImportTableRow/SecretImportTableRow.tsx@@ -458,6 +458,18 @@ export const SecretImportTableRow = ({);};+ const getImportedSecretPath = (importItem?: TSecretImport | null) => {+ if (importItem?.isReplication) {+ return `${secretPath === "/" ? "" : secretPath}/${ReservedFolders.SecretReplication}${importItem.id}`;+ }++ if (importItem?.importEnv?.projectId !== currentProject?.id) {+ return secretPath;+ }++ return importPath;+ };+const renderRevokedContent = () => (<Empty><EmptyHeader className="gap-1.5">@@ -522,13 +534,7 @@ export const SecretImportTableRow = ({? effectiveSelectedEnv: importEnvSlug}- secretPath={- selectedImport?.isReplication- ? `${secretPath === "/" ? "" : secretPath}/${ReservedFolders.SecretReplication}${selectedImport.id}`- : selectedImport?.importEnv?.projectId !== currentProject?.id- ? secretPath- : importPath- }+ secretPath={getImportedSecretPath(selectedImport)}isEmpty={secret.isEmpty}/>))}@@ -587,7 +593,9 @@ export const SecretImportTableRow = ({: importEnvSlug}secretPath={- secretImport?.importEnv?.projectId !== currentProject?.id ? secretPath : importPath+ secretImport?.importEnv?.projectId !== currentProject?.id+ ? secretPath+ : importPath}isEmpty={secret.isEmpty}missingFromEnvs={missingEnvNames}@@ -642,17 +650,12 @@ export const SecretImportTableRow = ({key={`import-secret-${envSlug}-${secret.key}`}secretKey={secret.key}environment={- singleEnvImport?.isReplication || singleEnvImport?.importEnv?.projectId !== currentProject?.id+ singleEnvImport?.isReplication ||+ singleEnvImport?.importEnv?.projectId !== currentProject?.id? singleEnvSlug: importEnvSlug}- secretPath={- singleEnvImport?.isReplication- ? `${secretPath === "/" ? "" : secretPath}/${ReservedFolders.SecretReplication}${singleEnvImport.id}`- : singleEnvImport?.importEnv?.projectId !== currentProject?.id- ? secretPath- : importPath- }+ secretPath={getImportedSecretPath(singleEnvImport)}isEmpty={secret.isEmpty}/>))}diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretTableRow.tsxindex b0429d4a81..8ddccce6cc 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretTableRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretTableRow.tsx@@ -351,7 +351,9 @@ export const SecretTableRow = ({{secretKey}</span>{!isFormExpanded &&- environments.some(({ slug }) => getSecretByKey(slug, secretKey)?.revokedProjectGrant) && (+ environments.some(+ ({ slug }) => getSecretByKey(slug, secretKey)?.revokedProjectGrant+ ) && (<Badge variant="danger"><BanIcon className="size-3.5" />Access Revokeddiff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsxindex 8b9e498197..bdb509e82a 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx@@ -6,18 +6,14 @@ import { InfoIcon, Key } from "lucide-react";import { z } from "zod";import { createNotification } from "@app/components/notifications";-import { SecretPathInput } from "@app/components/v3";import {Button,Dialog,DialogContent,+ DialogDescription,DialogFooter,DialogHeader,- DialogDescription,DialogTitle,- Tooltip,- TooltipContent,- TooltipTrigger,Field,FieldContent,FieldDescription,@@ -29,6 +25,7 @@ import {ItemDescription,ItemMedia,ItemTitle,+ SecretPathInput,Select,SelectContent,SelectItem,@@ -37,7 +34,10 @@ import {Tabs,TabsContent,TabsList,- TabsTrigger+ TabsTrigger,+ Tooltip,+ TooltipContent,+ TooltipTrigger} from "@app/components/v3";import { useOrganization, useProject, useSubscription } from "@app/context";import { useCreateSecretImport } from "@app/hooks/api";@@ -289,7 +289,6 @@ export const CreateSecretImportForm = ({return (<div className="space-y-4">-<Field><FieldLabel>Project</FieldLabel><FieldContent>@@ -395,8 +394,7 @@ export const CreateSecretImportForm = ({import: {sourceProjectId: selectedGrant.sourceProjectId,environment: selectedGrant.environmentSlug,- path:- selectedGrant.folderName === "root" ? "/" : `/${selectedGrant.folderName}`+ path: selectedGrant.folderName === "root" ? "/" : `/${selectedGrant.folderName}`}});handleClose();@@ -456,10 +454,13 @@ export const CreateSecretImportForm = ({<li className="text-mineshaft-200"><strong className="font-medium text-mineshaft-100">This Project</strong> —Inherit secrets from another environment or folder within{" "}- <strong className="font-medium text-mineshaft-100">{currentProject?.name ?? "this project"}</strong>.+ <strong className="font-medium text-mineshaft-100">+ {currentProject?.name ?? "this project"}+ </strong>+ .<p className="mt-2">- Recommended when you want to reuse secrets across environments or folders- in the same project.+ Recommended when you want to reuse secrets across environments or folders in+ the same project.</p></li><li className="text-mineshaft-200">