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: resolve frontend lint errors and backend TS schema mismatches
Igor Correa7b3f71c89138
diff --git a/backend/src/server/routes/v3/external-migration-router.ts b/backend/src/server/routes/v3/external-migration-router.tsindex 1bd2c27590..0d960139a1 100644--- a/backend/src/server/routes/v3/external-migration-router.ts+++ b/backend/src/server/routes/v3/external-migration-router.ts@@ -134,7 +134,7 @@ export const registerExternalMigrationRouter = async (server: FastifyZodProvider.object({id: z.string(),orgId: z.string(),- namespace: z.string(),+ namespace: z.string().nullable().optional(),connectionId: z.string().nullish(),createdAt: z.date(),updatedAt: z.date()@@ -170,7 +170,7 @@ export const registerExternalMigrationRouter = async (server: FastifyZodProviderconfig: z.object({id: z.string(),orgId: z.string(),- namespace: z.string(),+ namespace: z.string().nullable().optional(),connectionId: z.string().nullable().optional(),createdAt: z.date(),updatedAt: z.date()diff --git a/frontend/src/hooks/api/migration/mutations.tsx b/frontend/src/hooks/api/migration/mutations.tsxindex 0fd14bfde5..84a953fcca 100644--- a/frontend/src/hooks/api/migration/mutations.tsx+++ b/frontend/src/hooks/api/migration/mutations.tsx@@ -192,11 +192,7 @@ export const useCreateDopplerExternalMigrationConfig = () => {export const useUpdateDopplerExternalMigrationConfig = () => {const queryClient = useQueryClient();- return useMutation<- TDopplerExternalMigrationConfig,- Error,- { id: string; connectionId: string }- >({+ return useMutation<TDopplerExternalMigrationConfig, Error, { id: string; connectionId: string }>({mutationFn: async ({ id, connectionId }) => {const { data } = await apiRequest.put<{ config: TDopplerExternalMigrationConfig }>(`/api/v3/external-migration/doppler/configs/${id}`,diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/ExternalMigrationsTab.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/ExternalMigrationsTab.tsxindex 013cc49446..422bb9014c 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/ExternalMigrationsTab.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/ExternalMigrationsTab.tsx@@ -28,8 +28,8 @@ export const ExternalMigrationsTab = () => {<p className="mt-1 mb-6 text-sm text-muted">Connect <span className="text-foreground/90">HashiCorp Vault</span> or{" "}<span className="text-foreground/90">Doppler</span> to enable migration features across- Infisical: import KV secrets (and from Vault, policies, Kubernetes-related resources, and- more) directly from the UI.+ Infisical: import KV secrets (and from Vault, policies, Kubernetes-related resources,+ and more) directly from the UI.</p></div><InPlatformMigrationSection />@@ -50,7 +50,9 @@ export const ExternalMigrationsTab = () => {<p className="text-base font-medium text-foreground">Import from external source</p><DocumentationLinkBadge href={EXTERNAL_MIGRATIONS_DOCS_HREF} /></div>- <p className="mt-1 text-sm text-muted">Import data from another platform to Infisical.</p>+ <p className="mt-1 text-sm text-muted">+ Import data from another platform to Infisical.+ </p></div><Buttondiff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/DopplerConfigModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/DopplerConfigModal.tsxindex c30765de58..c8c0ed4576 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/DopplerConfigModal.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/DopplerConfigModal.tsx@@ -1,7 +1,7 @@import { useEffect, useMemo } from "react";import { Controller, useForm } from "react-hook-form";-import { InfoIcon } from "lucide-react";import { zodResolver } from "@hookform/resolvers/zod";+import { InfoIcon } from "lucide-react";import { z } from "zod";import { createNotification } from "@app/components/notifications";@@ -108,7 +108,9 @@ export const DopplerConfigModal = ({ isOpen, onOpenChange, editConfig }: Props)><DialogContent className="max-w-lg overflow-visible" showCloseButton><DialogHeader>- <DialogTitle>{isEdit ? "Edit Doppler Configuration" : "Add Doppler Configuration"}</DialogTitle>+ <DialogTitle>+ {isEdit ? "Edit Doppler Configuration" : "Add Doppler Configuration"}+ </DialogTitle><DialogDescription>Configure a Doppler connection for in-platform migration tooling</DialogDescription>diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/DopplerImportModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/DopplerImportModal.tsxindex 07258dc7fa..f98f9a096c 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/DopplerImportModal.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/DopplerImportModal.tsx@@ -1,7 +1,7 @@import { useEffect, useMemo } from "react";import { Controller, useForm } from "react-hook-form";-import { InfoIcon } from "lucide-react";import { zodResolver } from "@hookform/resolvers/zod";+import { InfoIcon } from "lucide-react";import { z } from "zod";import { createNotification } from "@app/components/notifications";@@ -285,7 +285,9 @@ export const DopplerImportModal = ({ isOpen, onOpenChange, config }: Props) => {<InfoIcon className="size-3 text-accent" aria-hidden /></span></TooltipTrigger>- <TooltipContent>The path in Infisical where secrets will be imported</TooltipContent>+ <TooltipContent>+ The path in Infisical where secrets will be imported+ </TooltipContent></Tooltip></FieldLabel><FieldContent>@@ -305,7 +307,12 @@ export const DopplerImportModal = ({ isOpen, onOpenChange, config }: Props) => {<Button type="button" variant="ghost" onClick={handleClose}>Cancel</Button>- <Button type="submit" variant="project" isPending={isSubmitting} isDisabled={isSubmitting}>+ <Button+ type="submit"+ variant="project"+ isPending={isSubmitting}+ isDisabled={isSubmitting}+ >Import Secrets</Button></DialogFooter>diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/GenericDropzone.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/GenericDropzone.tsxindex b6f9b47bda..b7cc470ad3 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/GenericDropzone.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/GenericDropzone.tsx@@ -82,7 +82,7 @@ export const GenericDropzone = forwardRef<HTMLInputElement, Props>(onDragOver={handleDrag}onDrop={handleDrop}className={twMerge(- "relative mx-0.5 mt-4 mb-4 flex cursor-pointer items-center justify-center rounded-md border border-dashed border-border bg-container/40 px-2 py-4 text-sm text-muted opacity-80 outline-none duration-200 hover:border-accent/30 hover:opacity-100",+ "relative mx-0.5 mt-4 mb-4 flex cursor-pointer items-center justify-center rounded-md border border-dashed border-border bg-container/40 px-2 py-4 text-sm text-muted opacity-80 duration-200 outline-none hover:border-accent/30 hover:opacity-100",isDragActive && "opacity-100",!isSmaller && "mx-auto w-full max-w-3xl flex-col space-y-4 py-20")}diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/InPlatformMigrationSection.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/InPlatformMigrationSection.tsxindex fd1cd00173..6e08944064 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/InPlatformMigrationSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/InPlatformMigrationSection.tsx@@ -1,6 +1,6 @@import { useMemo, useState } from "react";-import { Download, Edit, MoreVertical, Plus, Trash2 } from "lucide-react";import { Link } from "@tanstack/react-router";+import { Download, Edit, MoreVertical, Plus, Trash2 } from "lucide-react";import { createNotification } from "@app/components/notifications";import {@@ -29,8 +29,8 @@ import {getInPlatformMigrationProviderMeta,TInPlatformMigrationApp} from "@app/helpers/externalMigrationInPlatform";-import { useListAppConnections } from "@app/hooks/api/appConnections/queries";import { AppConnection } from "@app/hooks/api/appConnections/enums";+import { useListAppConnections } from "@app/hooks/api/appConnections/queries";import {useDeleteDopplerExternalMigrationConfig,useDeleteVaultExternalMigrationConfig,@@ -58,7 +58,9 @@ export const InPlatformMigrationSection = () => {const [isProviderPickerOpen, setIsProviderPickerOpen] = useState(false);const [vaultModalOpen, setVaultModalOpen] = useState(false);- const [vaultEditConfig, setVaultEditConfig] = useState<TVaultExternalMigrationConfig | undefined>();+ const [vaultEditConfig, setVaultEditConfig] = useState<+ TVaultExternalMigrationConfig | undefined+ >();const [dopplerConfigModalOpen, setDopplerConfigModalOpen] = useState(false);const [dopplerEditConfig, setDopplerEditConfig] = useState<@@ -66,17 +68,19 @@ export const InPlatformMigrationSection = () => {>();const [dopplerImportModalOpen, setDopplerImportModalOpen] = useState(false);- const [dopplerImportConfig, setDopplerImportConfig] = useState<TDopplerExternalMigrationConfig | null>(- null- );+ const [dopplerImportConfig, setDopplerImportConfig] =+ useState<TDopplerExternalMigrationConfig | null>(null);const [vaultDeleteOpen, setVaultDeleteOpen] = useState(false);const [vaultToDelete, setVaultToDelete] = useState<TVaultExternalMigrationConfig | null>(null);const [dopplerDeleteOpen, setDopplerDeleteOpen] = useState(false);- const [dopplerToDelete, setDopplerToDelete] = useState<TDopplerExternalMigrationConfig | null>(null);+ const [dopplerToDelete, setDopplerToDelete] = useState<TDopplerExternalMigrationConfig | null>(+ null+ );- const { data: vaultConfigs = [], isPending: isVaultLoading } = useGetVaultExternalMigrationConfigs();+ const { data: vaultConfigs = [], isPending: isVaultLoading } =+ useGetVaultExternalMigrationConfigs();const { data: dopplerConfigs = [], isPending: isDopplerLoading } =useGetDopplerExternalMigrationConfigs();@@ -138,22 +142,9 @@ export const InPlatformMigrationSection = () => {setDopplerToDelete(null);};- return (- <div>- <div className="mb-4 flex flex-wrap items-center justify-between gap-2">- <h3 className="text-lg font-medium text-mineshaft-100">Configurations</h3>- <Button- variant="project"- type="button"- className="gap-1.5"- onClick={() => setIsProviderPickerOpen(true)}- >- <Plus className="size-4 shrink-0" />- Add configuration- </Button>- </div>-- {isLoading ? (+ const renderTable = () => {+ if (isLoading) {+ return (<UnstableTable><UnstableTableHeader><UnstableTableRow>@@ -182,7 +173,10 @@ export const InPlatformMigrationSection = () => {))}</UnstableTableBody></UnstableTable>- ) : mergedRows.length === 0 ? (+ );+ }+ if (mergedRows.length === 0) {+ return (<UnstableEmpty><UnstableEmptyHeader><EmptyMedia variant="icon">@@ -194,105 +188,125 @@ export const InPlatformMigrationSection = () => {</UnstableEmptyDescription></UnstableEmptyHeader></UnstableEmpty>- ) : (- <UnstableTable>- <UnstableTableHeader>- <UnstableTableRow>- <UnstableTableHead>Platform</UnstableTableHead>- <UnstableTableHead>Namespace</UnstableTableHead>- <UnstableTableHead>Connection</UnstableTableHead>- <UnstableTableHead className="w-12 text-right" />- </UnstableTableRow>- </UnstableTableHeader>- <UnstableTableBody>- {mergedRows.map((row) => {- const app = providerApp(row);- const { name, imageFileName } = getInPlatformMigrationProviderMeta(app);+ );+ }+ return (+ <UnstableTable>+ <UnstableTableHeader>+ <UnstableTableRow>+ <UnstableTableHead>Platform</UnstableTableHead>+ <UnstableTableHead>Namespace</UnstableTableHead>+ <UnstableTableHead>Connection</UnstableTableHead>+ <UnstableTableHead className="w-12 text-right" />+ </UnstableTableRow>+ </UnstableTableHeader>+ <UnstableTableBody>+ {mergedRows.map((row) => {+ const app = providerApp(row);+ const { name, imageFileName } = getInPlatformMigrationProviderMeta(app);- return (- <UnstableTableRow key={`${row.kind}-${row.config.id}`}>- <UnstableTableCell>- <div className="flex items-center gap-2">- <div className="flex size-8 shrink-0 items-center justify-center rounded-md bg-bunker-500 p-1">- <img- src={`/images/integrations/${imageFileName}`}- alt=""- className={- row.kind === "doppler"- ? "max-h-5 max-w-5 object-contain"- : "max-h-full max-w-full object-contain"- }- />- </div>- <span className="text-sm text-mineshaft-200">{name}</span>+ return (+ <UnstableTableRow key={`${row.kind}-${row.config.id}`}>+ <UnstableTableCell>+ <div className="flex items-center gap-2">+ <div className="flex size-8 shrink-0 items-center justify-center rounded-md bg-bunker-500 p-1">+ <img+ src={`/images/integrations/${imageFileName}`}+ alt=""+ className={+ row.kind === "doppler"+ ? "max-h-5 max-w-5 object-contain"+ : "max-h-full max-w-full object-contain"+ }+ /></div>- </UnstableTableCell>- <UnstableTableCell className="text-sm text-mineshaft-300">- {row.kind === "vault" ? row.config.namespace : "—"}- </UnstableTableCell>- <UnstableTableCell>{getConnectionName(row.config.connectionId)}</UnstableTableCell>- <UnstableTableCell className="text-right">- <UnstableDropdownMenu>- <UnstableDropdownMenuTrigger asChild>- <UnstableIconButton- variant="ghost"- size="xs"- aria-label="Row actions"- className="text-mineshaft-300"- >- <MoreVertical className="size-4" />- </UnstableIconButton>- </UnstableDropdownMenuTrigger>- <UnstableDropdownMenuContent align="end" className="min-w-40">- {row.kind === "doppler" && (- <UnstableDropdownMenuItem- onClick={() => {- setDopplerImportConfig(row.config);- setDopplerImportModalOpen(true);- }}- >- <Download />- Import secrets- </UnstableDropdownMenuItem>- )}- <UnstableDropdownMenuItem- onClick={() => {- if (row.kind === "vault") {- setVaultEditConfig(row.config);- setVaultModalOpen(true);- } else {- setDopplerEditConfig(row.config);- setDopplerConfigModalOpen(true);- }- }}- >- <Edit />- Edit- </UnstableDropdownMenuItem>+ <span className="text-sm text-mineshaft-200">{name}</span>+ </div>+ </UnstableTableCell>+ <UnstableTableCell className="text-sm text-mineshaft-300">+ {row.kind === "vault" ? row.config.namespace : "—"}+ </UnstableTableCell>+ <UnstableTableCell>{getConnectionName(row.config.connectionId)}</UnstableTableCell>+ <UnstableTableCell className="text-right">+ <UnstableDropdownMenu>+ <UnstableDropdownMenuTrigger asChild>+ <UnstableIconButton+ variant="ghost"+ size="xs"+ aria-label="Row actions"+ className="text-mineshaft-300"+ >+ <MoreVertical className="size-4" />+ </UnstableIconButton>+ </UnstableDropdownMenuTrigger>+ <UnstableDropdownMenuContent align="end" className="min-w-40">+ {row.kind === "doppler" && (<UnstableDropdownMenuItem- variant="danger"onClick={() => {- if (row.kind === "vault") {- setVaultToDelete(row.config);- setVaultDeleteOpen(true);- } else {- setDopplerToDelete(row.config);- setDopplerDeleteOpen(true);- }+ setDopplerImportConfig(row.config);+ setDopplerImportModalOpen(true);}}>- <Trash2 />- Delete+ <Download />+ Import secrets</UnstableDropdownMenuItem>- </UnstableDropdownMenuContent>- </UnstableDropdownMenu>- </UnstableTableCell>- </UnstableTableRow>- );- })}- </UnstableTableBody>- </UnstableTable>- )}+ )}+ <UnstableDropdownMenuItem+ onClick={() => {+ if (row.kind === "vault") {+ setVaultEditConfig(row.config);+ setVaultModalOpen(true);+ } else {+ setDopplerEditConfig(row.config);+ setDopplerConfigModalOpen(true);+ }+ }}+ >+ <Edit />+ Edit+ </UnstableDropdownMenuItem>+ <UnstableDropdownMenuItem+ variant="danger"+ onClick={() => {+ if (row.kind === "vault") {+ setVaultToDelete(row.config);+ setVaultDeleteOpen(true);+ } else {+ setDopplerToDelete(row.config);+ setDopplerDeleteOpen(true);+ }+ }}+ >+ <Trash2 />+ Delete+ </UnstableDropdownMenuItem>+ </UnstableDropdownMenuContent>+ </UnstableDropdownMenu>+ </UnstableTableCell>+ </UnstableTableRow>+ );+ })}+ </UnstableTableBody>+ </UnstableTable>+ );+ };++ return (+ <div>+ <div className="mb-4 flex flex-wrap items-center justify-between gap-2">+ <h3 className="text-lg font-medium text-mineshaft-100">Configurations</h3>+ <Button+ variant="project"+ type="button"+ className="gap-1.5"+ onClick={() => setIsProviderPickerOpen(true)}+ >+ <Plus className="size-4 shrink-0" />+ Add configuration+ </Button>+ </div>++ {renderTable()}<p className="mt-4 text-xs text-mineshaft-400">Manage credentials in{" "}@@ -303,8 +317,10 @@ export const InPlatformMigrationSection = () => {>App Connections</Link>- . Use <span className="text-mineshaft-300">{APP_CONNECTION_MAP[AppConnection.HCVault].name}</span>{" "}- or <span className="text-mineshaft-300">{APP_CONNECTION_MAP[AppConnection.Doppler].name}</span>{" "}+ . Use{" "}+ <span className="text-mineshaft-300">{APP_CONNECTION_MAP[AppConnection.HCVault].name}</span>{" "}+ or{" "}+ <span className="text-mineshaft-300">{APP_CONNECTION_MAP[AppConnection.Doppler].name}</span>{" "}connection types as needed.</p>diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/MigrationConfigDeleteDialog.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/MigrationConfigDeleteDialog.tsxindex 98b03bd654..08d5ecb8f3 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/MigrationConfigDeleteDialog.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/MigrationConfigDeleteDialog.tsx@@ -66,9 +66,9 @@ export const MigrationConfigDeleteDialog = ({<DialogDescription>{subTitle}</DialogDescription></DialogHeader><form- onSubmit={(evt) => {+ onSubmit={async (evt) => {evt.preventDefault();- if (deleteKey === inputData) void onDelete();+ if (deleteKey === inputData) await onDelete();}}><Field>@@ -93,7 +93,9 @@ export const MigrationConfigDeleteDialog = ({variant="danger"isPending={isLoading}isDisabled={deleteKey !== inputData || isLoading || isDisabled}- onClick={() => void onDelete()}+ onClick={async () => {+ await onDelete();+ }}>{buttonText}</Button>diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/SelectInPlatformMigrationProviderModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/SelectInPlatformMigrationProviderModal.tsxindex 0b0e626a58..9f8aadeacf 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/SelectInPlatformMigrationProviderModal.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/SelectInPlatformMigrationProviderModal.tsx@@ -72,7 +72,9 @@ export const SelectInPlatformMigrationProviderModal = ({<span className="mt-3 text-center text-sm font-medium text-foreground group-hover:text-foreground">{name}</span>- <span className="mt-2 text-center text-xs leading-snug text-muted">{description}</span>+ <span className="mt-2 text-center text-xs leading-snug text-muted">+ {description}+ </span></button>);})}diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultNamespaceConfigModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultNamespaceConfigModal.tsxindex 934e3355cf..818c8cc442 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultNamespaceConfigModal.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultNamespaceConfigModal.tsx@@ -1,7 +1,7 @@import { useEffect, useMemo } from "react";import { Controller, useForm } from "react-hook-form";-import { InfoIcon } from "lucide-react";import { zodResolver } from "@hookform/resolvers/zod";+import { InfoIcon } from "lucide-react";import { z } from "zod";import { createNotification } from "@app/components/notifications";@@ -131,7 +131,8 @@ export const VaultNamespaceConfigModal = ({ isOpen, onOpenChange, editConfig }:{isEdit ? "Edit Namespace Configuration" : "Add Namespace Configuration"}</DialogTitle><DialogDescription>- Configure a HashiCorp Vault namespace {isEdit ? "configuration" : "for migration tooling"}+ Configure a HashiCorp Vault namespace{" "}+ {isEdit ? "configuration" : "for migration tooling"}</DialogDescription></DialogHeader><form onSubmit={handleSubmit(onFormSubmit)} className="space-y-4">diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsxindex c6ad945780..25742231b8 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx@@ -1,7 +1,7 @@import { Controller, useForm } from "react-hook-form";-import { CircleHelpIcon } from "lucide-react";import { zodResolver } from "@hookform/resolvers/zod";import { useQuery } from "@tanstack/react-query";+import { CircleHelpIcon } from "lucide-react";import { twMerge } from "tailwind-merge";import { z } from "zod";@@ -67,20 +67,14 @@ function VaultGatewaySelect({}: VaultGatewaySelectProps) {const select = (<Select- value={value ? value : GATEWAY_NONE}+ value={value || GATEWAY_NONE}onValueChange={(v) => {onChange(v === GATEWAY_NONE ? undefined : v);}}disabled={!isAllowed || isGatewayLoading}>- <SelectTrigger- size="default"- className="w-full min-w-0 max-w-none"- aria-invalid={hasError}- >- <SelectValue- placeholder={isGatewayLoading ? "Loading gateways…" : "Internet Gateway"}- />+ <SelectTrigger size="default" className="w-full max-w-none min-w-0" aria-invalid={hasError}>+ <SelectValue placeholder={isGatewayLoading ? "Loading gateways…" : "Internet Gateway"} /></SelectTrigger><SelectContent position="popper" className="min-w-(--radix-select-trigger-width)"><SelectItem value={GATEWAY_NONE}>Internet Gateway</SelectItem>@@ -136,9 +130,9 @@ const MAPPING_TYPE_MENU_ITEMS = [label: "Namespaces",tooltip: (<div>- When using namespaces for mapping, each namespace within Vault will be created in Infisical as- a project. Each key vault (KV) inside the namespace, will be created as an environment inside- the corresponding project.+ When using namespaces for mapping, each namespace within Vault will be created in Infisical+ as a project. Each key vault (KV) inside the namespace, will be created as an environment+ inside the corresponding project.<div className="mt-4 flex flex-col gap-1 text-sm"><div>Namespace → Project</div><div>Key Vault → Project Environment</div>diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/DopplerSecretImportModal.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/DopplerSecretImportModal.tsxindex d664fd756b..c0d457824f 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/DopplerSecretImportModal.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/DopplerSecretImportModal.tsx@@ -1,6 +1,6 @@+import { Controller, useForm } from "react-hook-form";import { faInfoCircle } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { Controller, useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";import { z } from "zod";@@ -12,10 +12,7 @@ import {ModalClose,ModalContent} from "@app/components/v2";-import {- useGetDopplerEnvironments,- useGetDopplerProjects-} from "@app/hooks/api/migration/queries";+import { useGetDopplerEnvironments, useGetDopplerProjects } from "@app/hooks/api/migration/queries";const schema = z.object({dopplerProject: z.string().min(1, "Doppler project is required"),@@ -57,9 +54,8 @@ export const DopplerSecretImportModal = ({const selectedDopplerProject = watch("dopplerProject");- const { data: dopplerProjects = [], isPending: isLoadingProjects } = useGetDopplerProjects(- configId- );+ const { data: dopplerProjects = [], isPending: isLoadingProjects } =+ useGetDopplerProjects(configId);const { data: dopplerEnvironments = [], isPending: isLoadingEnvironments } =useGetDopplerEnvironments(configId, selectedDopplerProject || undefined);