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
chore(ui): delete orphan notice family and dead admin adapters (#8630)
Andrew Huang7b71173a8b1f
diff --git a/frontend/src/components/COMPONENT_LIFECYCLE.md b/frontend/src/components/COMPONENT_LIFECYCLE.mdindex 66d81c054c..05593645fe 100644--- a/frontend/src/components/COMPONENT_LIFECYCLE.md+++ b/frontend/src/components/COMPONENT_LIFECYCLE.md@@ -14,7 +14,7 @@ The [V3 migration ledger](V3_MIGRATION.md) tracks source removal, coverage, and| `ConfirmActionModal`, `DeleteActionModal`, `Modal` | Ready for focused deprecation | Follow the overlay recipe in the [V3 migration ledger](V3_MIGRATION.md#overlay-migration-recipe). || `ContentLoader`, `FormControl`, `GenericFieldLabel`, `Tag` | Blocked | The V3 replacements require consumer-specific composition or accessibility changes. || `SecretInput`, `SecretPathInput` | Blocked | Security-sensitive or specialist behavior needs workflow-level parity validation. |-| `NoticeBannerV2` | Blocked | Verify that V3 `Alert` covers existing layout and action requirements. |+| `NoticeBannerV2` | Removed | Deleted the unused implementation, empty family index, and stale root export. No external or internal consumers remained at `e05f750eb36506dac9a599709055ffb33d5b58ab`. |### Removed unused V2 familiesdiff --git a/frontend/src/components/V3_MIGRATION.md b/frontend/src/components/V3_MIGRATION.mdindex 60c6b8eb28..9bf324e256 100644--- a/frontend/src/components/V3_MIGRATION.md+++ b/frontend/src/components/V3_MIGRATION.md@@ -59,7 +59,7 @@ In the table, E is the number of external consumer files and I is the number of| `Menu/Menu.tsx` | 1 / 0 | One remaining type reference; replace with actual V3 contract, then delete source/exports. | `frontend/src/layouts/OrganizationLayout/components/MenuIconButton/MenuIconButton.tsx:19` || `Modal/Modal.tsx` | 55 / 2 | V3 Dialog/Sheet chosen by form size; follow the overlay recipe for nested overlays, pending close, discard, mutation errors, and focus. | `frontend/src/pages/organization/AccessManagementPage/components/UpgradePrivilegeSystemModal/UpgradePrivilegeSystemModal.tsx:65` || `NoticeBanner/NoticeBanner.tsx` | 0 / 0 | Deleted in first wave; no consumer. | Only its own/root barrels exported it. |-| `NoticeBannerV2/NoticeBannerV2.tsx` | 2 / 0 | V3 Alert composition; preserve warnings and associated actions. | `frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx:273` |+| `NoticeBannerV2/NoticeBannerV2.tsx` | 2 / 0 | Deleted unused implementation, empty family index, and stale root export; no consumer changes. | At `e05f750eb36506dac9a599709055ffb33d5b58ab`, no incoming implementation edge or external symbol reference remained. The root barrel exported only the empty family index. || `PageHeader/PageHeader.tsx` | 32 / 0 | V3 PageHeader owns the normal 40px bottom boundary; remove only header-boundary compensation and preserve body spacing, actions, scopes and responsive intent. | `frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx:53` || `Pagination/Pagination.tsx` | 12 / 0 | V3 Pagination; preserve page origin, size change, counts, and filtering/reset behavior. | `frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupProjectModal.tsx:163` || `PasswordGenerator/PasswordGenerator.tsx` | 0 / 0 | Deleted in first wave; V3 generator remains independent. | No external consumer; its private Slider also deleted. |diff --git a/frontend/src/components/v2/NoticeBannerV2/NoticeBannerV2.tsx b/frontend/src/components/v2/NoticeBannerV2/NoticeBannerV2.tsxdeleted file mode 100644index 5679714e80..0000000000--- a/frontend/src/components/v2/NoticeBannerV2/NoticeBannerV2.tsx+++ /dev/null@@ -1,28 +0,0 @@-import { ReactNode } from "react";-import { faInfoCircle } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { twMerge } from "tailwind-merge";--type Props = {- title: string;- children: ReactNode;- className?: string;- titleClassName?: string;-};--export const NoticeBannerV2 = ({ title, children, className, titleClassName }: Props) => {- return (- <div- className={twMerge(- "flex flex-col rounded-r border-l-2 border-l-project bg-label/5 px-4 py-2.5",- className- )}- >- <div className={twMerge("mb-1 flex items-center text-sm", titleClassName)}>- <FontAwesomeIcon icon={faInfoCircle} size="sm" className="mr-1.5 text-project" />- {title}- </div>- {children}- </div>- );-};diff --git a/frontend/src/components/v2/NoticeBannerV2/index.ts b/frontend/src/components/v2/NoticeBannerV2/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/frontend/src/components/v2/index.tsx b/frontend/src/components/v2/index.tsxindex 5e96fd4891..9c86016ce5 100644--- a/frontend/src/components/v2/index.tsx+++ b/frontend/src/components/v2/index.tsx@@ -16,7 +16,6 @@ export * from "./HoverCardv2";export * from "./IconButton";export * from "./Input";export * from "./Modal";-export * from "./NoticeBannerV2";export * from "./Pagination";export * from "./SecretInput";export * from "./Select";diff --git a/frontend/src/pages/admin/components/AdminTable.tsx b/frontend/src/pages/admin/components/AdminTable.tsxdeleted file mode 100644index 0e4d2260cc..0000000000--- a/frontend/src/pages/admin/components/AdminTable.tsx+++ /dev/null@@ -1,80 +0,0 @@-import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";--import {- Empty,- EmptyHeader,- EmptyMedia,- EmptyTitle,- Skeleton,- Table as V3Table,- TableBody,- TableCell,- TableHead,- TableHeader,- TableRow-} from "@app/components/v3";-import { cn } from "@app/components/v3/utils";--type TableContainerProps = React.ComponentProps<"div">;-const SKELETON_ROWS = ["one", "two", "three", "four", "five", "six", "seven", "eight"];-const SKELETON_COLUMNS = ["one", "two", "three", "four", "five", "six", "seven", "eight"];--export const TableContainer = ({ className, ...props }: TableContainerProps) => (- <div className={cn("overflow-x-auto rounded-md border border-border", className)} {...props} />-);--export const Table = ({ containerClassName, ...props }: React.ComponentProps<typeof V3Table>) => (- <V3Table containerClassName={cn("border-0", containerClassName)} {...props} />-);--export const EmptyState = ({- title,- icon,- className-}: {- title: string;- icon?: IconDefinition;- className?: string;-}) => (- <Empty className={cn("border-0", className)}>- <EmptyHeader>- {icon && (- <EmptyMedia variant="icon">- <FontAwesomeIcon icon={icon} />- </EmptyMedia>- )}- <EmptyTitle>{title}</EmptyTitle>- </EmptyHeader>- </Empty>-);--export const TableSkeleton = ({- columns,- innerKey,- rows = 5-}: {- columns: number;- innerKey: string;- rows?: number;-}) => (- <>- {SKELETON_ROWS.slice(0, rows).map((row) => (- <TableRow key={`${innerKey}-skeleton-${row}`}>- {SKELETON_COLUMNS.slice(0, columns).map((column) => (- <TableCell key={`${innerKey}-skeleton-${row}-${column}`}>- <Skeleton className="h-5 w-full" />- </TableCell>- ))}- </TableRow>- ))}- </>-);--export {- TableBody as TBody,- TableCell as Td,- TableHead as Th,- TableHeader as THead,- TableRow as Tr-};diff --git a/frontend/src/pages/admin/components/AdminV3Adapters.tsx b/frontend/src/pages/admin/components/AdminV3Adapters.tsxdeleted file mode 100644index 524f3ed024..0000000000--- a/frontend/src/pages/admin/components/AdminV3Adapters.tsx+++ /dev/null@@ -1,405 +0,0 @@-import {- ComponentProps,- ElementType,- forwardRef,- ReactElement,- ReactNode,- useId,- useLayoutEffect,- useState-} from "react";--import {- AlertDialog,- AlertDialogCancel,- AlertDialogContent,- AlertDialogDescription,- AlertDialogFooter,- AlertDialogHeader,- AlertDialogTitle,- Button as V3Button,- Checkbox as V3Checkbox,- Dialog,- DialogContent,- DialogDescription,- DialogFooter,- DialogHeader,- DialogTitle,- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem as V3DropdownMenuItem,- DropdownMenuLabel,- DropdownMenuTrigger,- Field,- FieldDescription,- FieldError,- FieldLabel,- IconButton as V3IconButton,- InputGroup,- InputGroupAddon,- InputGroupInput,- Tooltip as V3Tooltip,- TooltipContent,- TooltipTrigger-} from "@app/components/v3";-import { cn } from "@app/components/v3/utils";--type LegacyVariant =- | "danger"- | "info"- | "neutral"- | "outline_bg"- | "plain"- | "primary"- | "secondary";--const mapVariant = (variant?: LegacyVariant, colorSchema?: LegacyVariant) => {- const value = colorSchema ?? variant;- if (value === "danger") return "danger";- if (value === "info") return "info";- if (value === "plain") return "ghost";- return "neutral";-};--const mapIconVariant = (variant?: LegacyVariant, colorSchema?: LegacyVariant) => {- const value = colorSchema ?? variant;- if (value === "danger") return "danger";- if (value === "info") return "info";- if (value === "plain") return "ghost";- return "outline";-};--type ButtonProps = Omit<ComponentProps<typeof V3Button>, "asChild" | "variant"> & {- variant?: LegacyVariant;- colorSchema?: LegacyVariant;- isLoading?: boolean;- leftIcon?: ReactNode;- rightIcon?: ReactNode;-};--export const Button = forwardRef<HTMLButtonElement, ButtonProps>(- (- { children, colorSchema, isLoading, leftIcon, rightIcon, variant, isDisabled, ...props },- ref- ) => (- <V3Button- ref={ref}- asChild={false}- variant={mapVariant(variant, colorSchema)}- isPending={isLoading}- isDisabled={isDisabled}- {...props}- >- {leftIcon}- {children}- {rightIcon}- </V3Button>- )-);--Button.displayName = "Button";--type IconButtonProps = Omit<ComponentProps<typeof V3IconButton>, "asChild" | "variant"> & {- variant?: LegacyVariant;- colorSchema?: LegacyVariant;- ariaLabel?: string;-};--export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(- ({ ariaLabel, colorSchema, variant, ...props }, ref) => (- <V3IconButton- ref={ref}- asChild={false}- aria-label={ariaLabel}- variant={mapIconVariant(variant, colorSchema)}- {...props}- />- )-);--IconButton.displayName = "IconButton";--type InputProps = Omit<ComponentProps<typeof InputGroupInput>, "size"> & {- leftIcon?: ReactNode;- rightIcon?: ReactNode;- isDisabled?: boolean;- isReadOnly?: boolean;- isRequired?: boolean;- isFullWidth?: boolean;- containerClassName?: string;-};--export const Input = forwardRef<HTMLInputElement, InputProps>(- (- {- leftIcon,- rightIcon,- isDisabled,- isReadOnly,- isRequired,- isFullWidth = true,- containerClassName,- className,- ...props- },- ref- ) => (- <InputGroup className={containerClassName} data-full-width={isFullWidth}>- {leftIcon && <InputGroupAddon>{leftIcon}</InputGroupAddon>}- <InputGroupInput- ref={ref}- disabled={isDisabled}- readOnly={isReadOnly}- required={isRequired}- className={className}- {...props}- />- {rightIcon && <InputGroupAddon align="inline-end">{rightIcon}</InputGroupAddon>}- </InputGroup>- )-);--Input.displayName = "Input";--type CheckboxProps = ComponentProps<typeof V3Checkbox> & {- isChecked?: boolean;- isDisabled?: boolean;- isIndeterminate?: boolean;- children?: ReactNode;-};--export const Checkbox = ({- children,- id,- isChecked,- isDisabled,- isIndeterminate,- ...props-}: CheckboxProps) => (- <div className="flex items-center gap-2">- <V3Checkbox- id={id}- isChecked={isChecked}- isIndeterminate={isIndeterminate}- isDisabled={isDisabled}- {...props}- />- {children && <label htmlFor={id}>{children}</label>}- </div>-);--type TooltipProps = {- children: ReactElement;- content: ReactNode;- className?: string;- position?: "top" | "right" | "bottom" | "left";-};--export const Tooltip = ({ children, content, className, position = "top" }: TooltipProps) => (- <V3Tooltip>- <TooltipTrigger asChild>{children}</TooltipTrigger>- <TooltipContent className={className} side={position}>- {content}- </TooltipContent>- </V3Tooltip>-);--type DropdownMenuItemProps = ComponentProps<typeof V3DropdownMenuItem> & {- icon?: ReactNode;- iconPos?: "left" | "right";- as?: ElementType;-};--export const DropdownMenuItem = ({- children,- icon,- iconPos = "left",- as: _as,- ...props-}: DropdownMenuItemProps) => (- <V3DropdownMenuItem {...props}>- {icon && iconPos === "left" && icon}- {children}- {icon && iconPos === "right" && icon}- </V3DropdownMenuItem>-);--type DeleteActionModalProps = {- isOpen?: boolean;- onClose?: () => void;- onChange?: (isOpen: boolean) => void;- deleteKey: string;- title: string;- subTitle?: string;- onDeleteApproved: () => Promise<void>;- buttonText?: string;- formContent?: ReactNode;- children?: ReactNode;- deletionMessage?: ReactNode;- isDisabled?: boolean;-};--export const DeleteActionModal = ({- isOpen,- onClose,- onChange,- deleteKey,- onDeleteApproved,- title,- subTitle = "This action is irreversible.",- buttonText = "Delete",- formContent,- deletionMessage,- isDisabled,- children-}: DeleteActionModalProps) => {- const [confirmation, setConfirmation] = useState("");- const [isPending, setIsPending] = useState(false);- const confirmationInputId = useId();-- useLayoutEffect(() => setConfirmation(""), [isOpen, deleteKey]);-- const handleAction = async () => {- setIsPending(true);- try {- await onDeleteApproved();- onChange?.(false);- setConfirmation("");- onClose?.();- } catch {- // MutationCache reports request errors globally; keep the dialog and confirmation available.- } finally {- setIsPending(false);- }- };-- return (- <AlertDialog- open={isOpen}- onOpenChange={(open) => {- if (isPending && !open) return;- onChange?.(open);- if (!open) {- setConfirmation("");- onClose?.();- }- }}- >- <AlertDialogContent>- <form- className="contents"- onSubmit={(event) => {- event.preventDefault();- handleAction().catch(() => undefined);- }}- >- <AlertDialogHeader className="text-left">- <AlertDialogTitle>{title}</AlertDialogTitle>- <AlertDialogDescription>{subTitle}</AlertDialogDescription>- </AlertDialogHeader>- {formContent}- <label className="flex flex-col gap-2 text-sm" htmlFor={confirmationInputId}>- {deletionMessage || (- <span>- Type <strong>{deleteKey}</strong> to perform this action- </span>- )}- <InputGroup>- <InputGroupInput- id={confirmationInputId}- name={confirmationInputId}- value={confirmation}- onChange={(event) => setConfirmation(event.target.value)}- placeholder={`Type ${deleteKey} here`}- autoComplete="new-password"- data-1p-ignore- data-lpignore="true"- spellCheck={false}- />- </InputGroup>- </label>- {children}- <AlertDialogFooter>- <AlertDialogCancel isDisabled={isPending}>Cancel</AlertDialogCancel>- <V3Button- type="submit"- variant="danger"- size="sm"- isPending={isPending}- isDisabled={confirmation !== deleteKey || isDisabled}- >- {buttonText}- </V3Button>- </AlertDialogFooter>- </form>- </AlertDialogContent>- </AlertDialog>- );-};--export const Modal = ({- isOpen,- onOpenChange,- children-}: {- isOpen?: boolean;- onOpenChange?: (open: boolean) => void;- children: ReactNode;-}) => (- <Dialog open={isOpen} onOpenChange={onOpenChange}>- {children}- </Dialog>-);--export const ModalContent = ({- title,- subTitle,- footerContent,- bodyClassName,- className,- onClose: _onClose,- children,- ...props-}: Omit<ComponentProps<typeof DialogContent>, "title"> & {- title?: ReactNode;- subTitle?: ReactNode;- footerContent?: ReactNode;- bodyClassName?: string;- onClose?: () => void;-}) => (- <DialogContent className={cn("sm:max-w-lg", bodyClassName, className)} {...props}>- {(title || subTitle) && (- <DialogHeader className="text-left">- {title && <DialogTitle>{title}</DialogTitle>}- {subTitle && <DialogDescription>{subTitle}</DialogDescription>}- </DialogHeader>- )}- {children}- {footerContent && <DialogFooter>{footerContent}</DialogFooter>}- </DialogContent>-);--export const FormControl = ({- label,- errorText,- tooltipText,- className,- isError,- children-}: {- label?: ReactNode;- errorText?: ReactNode;- tooltipText?: ReactNode;- className?: string;- isError?: boolean;- children: ReactNode;-}) => (- <Field className={className} data-invalid={isError}>- {label && <FieldLabel>{label}</FieldLabel>}- {children}- {tooltipText && <FieldDescription>{tooltipText}</FieldDescription>}- {errorText && <FieldError>{errorText}</FieldError>}- </Field>-);--export { DropdownMenu, DropdownMenuContent, DropdownMenuLabel, DropdownMenuTrigger };