Skip to content

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

feat: fixed unstable error

=fe59dfbd80b4
diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/EnvKeyPlatformModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/EnvKeyPlatformModal.tsx
index 289aaeafc9..4da16e6967 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/EnvKeyPlatformModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/EnvKeyPlatformModal.tsx
@@ -4,14 +4,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { z } from "zod";
import { createNotification } from "@app/components/notifications";
-import {
- Button,
- Field,
- FieldContent,
- FieldError,
- FieldLabel,
- UnstableInput
-} from "@app/components/v3";
+import { Button, Field, FieldContent, FieldError, FieldLabel, Input } from "@app/components/v3";
import { useImportEnvKey } from "@app/hooks/api/migration/mutations";
import { GenericDropzone } from "./GenericDropzone";
@@ -91,7 +84,7 @@ export const EnvKeyPlatformModal = ({ onClose }: Props) => {
<Field>
<FieldLabel>Encryption key</FieldLabel>
<FieldContent>
- <UnstableInput type="password" placeholder="" {...field} isError={Boolean(error)} />
+ <Input type="password" placeholder="" {...field} isError={Boolean(error)} />
</FieldContent>
<FieldError>{error?.message}</FieldError>
</Field>
diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/InPlatformMigrationSection.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/InPlatformMigrationSection.tsx
index 80db503504..c7e866b1b8 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/InPlatformMigrationSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/InPlatformMigrationSection.tsx
@@ -4,22 +4,22 @@ import { Edit, MoreVertical, Plus, Trash2 } from "lucide-react";
import { createNotification } from "@app/components/notifications";
import {
Button,
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuTrigger,
+ Empty,
+ EmptyDescription,
+ EmptyHeader,
+ EmptyTitle,
+ IconButton,
Skeleton,
- UnstableDropdownMenu,
- UnstableDropdownMenuContent,
- UnstableDropdownMenuItem,
- UnstableDropdownMenuTrigger,
- UnstableEmpty,
- UnstableEmptyDescription,
- UnstableEmptyHeader,
- UnstableEmptyTitle,
- UnstableIconButton,
- UnstableTable,
- UnstableTableBody,
- UnstableTableCell,
- UnstableTableHead,
- UnstableTableHeader,
- UnstableTableRow
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow
} from "@app/components/v3";
import {
getInPlatformMigrationProviderMeta,
@@ -114,62 +114,62 @@ export const InPlatformMigrationSection = () => {
const renderTable = () => {
if (isLoading) {
return (
- <UnstableTable>
- <UnstableTableHeader>
- <UnstableTableRow>
- <UnstableTableHead>Platform</UnstableTableHead>
- <UnstableTableHead>Connection</UnstableTableHead>
- <UnstableTableHead className="w-12 text-right" />
- </UnstableTableRow>
- </UnstableTableHeader>
- <UnstableTableBody>
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Platform</TableHead>
+ <TableHead>Connection</TableHead>
+ <TableHead className="w-12 text-right" />
+ </TableRow>
+ </TableHeader>
+ <TableBody>
{SKELETON_ROW_KEYS.map((key) => (
- <UnstableTableRow key={key}>
- <UnstableTableCell>
+ <TableRow key={key}>
+ <TableCell>
<Skeleton className="h-4 w-36" />
- </UnstableTableCell>
- <UnstableTableCell>
+ </TableCell>
+ <TableCell>
<Skeleton className="h-4 w-32" />
- </UnstableTableCell>
- <UnstableTableCell className="text-right">
+ </TableCell>
+ <TableCell className="text-right">
<Skeleton className="ml-auto size-7 shrink-0 rounded-md" />
- </UnstableTableCell>
- </UnstableTableRow>
+ </TableCell>
+ </TableRow>
))}
- </UnstableTableBody>
- </UnstableTable>
+ </TableBody>
+ </Table>
);
}
if (mergedRows.length === 0) {
return (
- <UnstableEmpty>
- <UnstableEmptyHeader>
- <UnstableEmptyTitle>No migration configurations</UnstableEmptyTitle>
- <UnstableEmptyDescription>
+ <Empty>
+ <EmptyHeader>
+ <EmptyTitle>No migration configurations</EmptyTitle>
+ <EmptyDescription>
Add a platform configuration to enable in-platform migration features.
- </UnstableEmptyDescription>
- </UnstableEmptyHeader>
- </UnstableEmpty>
+ </EmptyDescription>
+ </EmptyHeader>
+ </Empty>
);
}
return (
- <UnstableTable>
- <UnstableTableHeader>
- <UnstableTableRow>
- <UnstableTableHead>Platform</UnstableTableHead>
- <UnstableTableHead>Connection</UnstableTableHead>
- <UnstableTableHead className="w-12 text-right" />
- </UnstableTableRow>
- </UnstableTableHeader>
- <UnstableTableBody>
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Platform</TableHead>
+ <TableHead>Connection</TableHead>
+ <TableHead className="w-12 text-right" />
+ </TableRow>
+ </TableHeader>
+ <TableBody>
{mergedRows.map((config) => {
const app = providerApp(config);
const { name, imageFileName } = getInPlatformMigrationProviderMeta(app);
const isDoppler = config.provider === ExternalMigrationProviders.Doppler;
return (
- <UnstableTableRow key={config.id}>
- <UnstableTableCell>
+ <TableRow key={config.id}>
+ <TableCell>
<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
@@ -184,22 +184,22 @@ export const InPlatformMigrationSection = () => {
</div>
<span className="text-sm text-mineshaft-200">{name}</span>
</div>
- </UnstableTableCell>
- <UnstableTableCell>{getConnectionName(config.connectionId)}</UnstableTableCell>
- <UnstableTableCell className="text-right">
- <UnstableDropdownMenu>
- <UnstableDropdownMenuTrigger asChild>
- <UnstableIconButton
+ </TableCell>
+ <TableCell>{getConnectionName(config.connectionId)}</TableCell>
+ <TableCell className="text-right">
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <IconButton
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">
- <UnstableDropdownMenuItem
+ </IconButton>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end" className="min-w-40">
+ <DropdownMenuItem
onClick={() => {
if (isDoppler) {
setDopplerEditConfig(config);
@@ -212,8 +212,8 @@ export const InPlatformMigrationSection = () => {
>
<Edit />
Edit
- </UnstableDropdownMenuItem>
- <UnstableDropdownMenuItem
+ </DropdownMenuItem>
+ <DropdownMenuItem
variant="danger"
onClick={() => {
setConfigToDelete(config);
@@ -222,15 +222,15 @@ export const InPlatformMigrationSection = () => {
>
<Trash2 />
Delete
- </UnstableDropdownMenuItem>
- </UnstableDropdownMenuContent>
- </UnstableDropdownMenu>
- </UnstableTableCell>
- </UnstableTableRow>
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </TableCell>
+ </TableRow>
);
})}
- </UnstableTableBody>
- </UnstableTable>
+ </TableBody>
+ </Table>
);
};
diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/MigrationConfigDeleteDialog.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/MigrationConfigDeleteDialog.tsx
index 08d5ecb8f3..8be0ce9de9 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/MigrationConfigDeleteDialog.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/MigrationConfigDeleteDialog.tsx
@@ -11,7 +11,7 @@ import {
Field,
FieldContent,
FieldLabel,
- UnstableInput
+ Input
} from "@app/components/v3";
import { useToggle } from "@app/hooks";
@@ -76,7 +76,7 @@ export const MigrationConfigDeleteDialog = ({
Type <span className="font-bold">{deleteKey}</span> to perform this action
</FieldLabel>
<FieldContent>
- <UnstableInput
+ <Input
value={inputData}
onChange={(e) => setInputData(e.target.value)}
placeholder={`Type ${deleteKey} here`}
diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultNamespaceConfigModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultNamespaceConfigModal.tsx
index e9de0debcb..049df139d1 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultNamespaceConfigModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultNamespaceConfigModal.tsx
@@ -17,10 +17,10 @@ import {
FieldContent,
FieldError,
FieldLabel,
+ Input,
Tooltip,
TooltipContent,
- TooltipTrigger,
- UnstableInput
+ TooltipTrigger
} from "@app/components/v3";
import { FilterableSelect } from "@app/components/v3/generic/ReactSelect";
import { AppConnection } from "@app/hooks/api/appConnections/enums";
@@ -149,7 +149,7 @@ export const VaultNamespaceConfigModal = ({ isOpen, onOpenChange, editConfig }:
<Field>
<FieldLabel>Namespace</FieldLabel>
<FieldContent>
- <UnstableInput
+ <Input
{...field}
placeholder="e.g., admin, dev, prod"
autoComplete="off"
diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx
index 25742231b8..6bcd8ac321 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx
@@ -8,11 +8,15 @@ import { z } from "zod";
import { createNotification } from "@app/components/notifications";
import { OrgPermissionCan } from "@app/components/permissions";
import {
+ Alert,
+ AlertDescription,
+ AlertTitle,
Button,
Field,
FieldContent,
FieldError,
FieldLabel,
+ Input,
Select,
SelectContent,
SelectItem,
@@ -20,11 +24,7 @@ import {
SelectValue,
Tooltip,
TooltipContent,
- TooltipTrigger,
- UnstableAlert,
- UnstableAlertDescription,
- UnstableAlertTitle,
- UnstableInput
+ TooltipTrigger
} from "@app/components/v3";
import {
OrgGatewayPermissionActions,
@@ -201,9 +201,9 @@ export const VaultPlatformModal = ({ onClose }: Props) => {
return (
<div>
- <UnstableAlert variant="info" className="mb-4">
- <UnstableAlertTitle>Vault KV Secret Engine Import</UnstableAlertTitle>
- <UnstableAlertDescription>
+ <Alert variant="info" className="mb-4">
+ <AlertTitle>Vault KV Secret Engine Import</AlertTitle>
+ <AlertDescription>
<p>
The Vault migration currently supports importing static secrets from Vault
Dedicated/Self-Hosted.
@@ -211,8 +211,8 @@ export const VaultPlatformModal = ({ onClose }: Props) => {
<p className="mt-2 text-xs opacity-80">
Currently only KV Secret Engine is supported for Vault migrations.
</p>
- </UnstableAlertDescription>
- </UnstableAlert>
+ </AlertDescription>
+ </Alert>
<form onSubmit={handleSubmit(onSubmit)} autoComplete="off" className="space-y-4">
<div className="w-full flex-1">
<OrgPermissionCan
@@ -255,7 +255,7 @@ export const VaultPlatformModal = ({ onClose }: Props) => {
<Field>
<FieldLabel>Vault URL</FieldLabel>
<FieldContent>
- <UnstableInput placeholder="" {...field} isError={Boolean(error)} />
+ <Input placeholder="" {...field} isError={Boolean(error)} />
</FieldContent>
<FieldError>{error?.message}</FieldError>
</Field>
@@ -268,7 +268,7 @@ export const VaultPlatformModal = ({ onClose }: Props) => {
<Field>
<FieldLabel>Vault Namespace</FieldLabel>
<FieldContent>
- <UnstableInput type="text" placeholder="" {...field} isError={Boolean(error)} />
+ <Input type="text" placeholder="" {...field} isError={Boolean(error)} />
</FieldContent>
<FieldError>{error?.message}</FieldError>
</Field>
@@ -281,7 +281,7 @@ export const VaultPlatformModal = ({ onClose }: Props) => {
<Field>
<FieldLabel>Vault Access Token</FieldLabel>
<FieldContent>
- <UnstableInput type="password" placeholder="" {...field} isError={Boolean(error)} />
+ <Input type="password" placeholder="" {...field} isError={Boolean(error)} />
</FieldContent>
<FieldError>{error?.message}</FieldError>
</Field>
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/AddResourceButtons/AddResourceButtons.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/AddResourceButtons/AddResourceButtons.tsx
index 8e8644514b..c720bbb443 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/AddResourceButtons/AddResourceButtons.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/AddResourceButtons/AddResourceButtons.tsx
@@ -232,7 +232,7 @@ export function AddResourceButtons({
open={!isAllowed || !isOrgAdmin || !isSingleEnvSelected ? undefined : false}
>
<TooltipTrigger className="block w-full">
- <UnstableDropdownMenuItem
+ <DropdownMenuItem
onClick={onImportFromDoppler}
isDisabled={!isAllowed || !isOrgAdmin || !isSingleEnvSelected}
>
@@ -244,7 +244,7 @@ export function AddResourceButtons({
/>
</div>
Add from Doppler
- </UnstableDropdownMenuItem>
+ </DropdownMenuItem>
</TooltipTrigger>
<TooltipContent side="left">
{getInPlatformImportTooltip("Doppler")}