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
refactor(frontend): upgrade ExternalMigrationsTab styling and components
Igor Correae1ccc7752e2e
diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/ExternalMigrationsTab.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/ExternalMigrationsTab.tsxindex 781475d919..013cc49446 100644--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/ExternalMigrationsTab.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/ExternalMigrationsTab.tsx@@ -1,7 +1,6 @@-import { faArrowUpRightFromSquare, faBookOpen, faPlus } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { Plus } from "lucide-react";-import { Button } from "@app/components/v2";+import { Button, DocumentationLinkBadge } from "@app/components/v3";import { useOrgPermission } from "@app/context";import { OrgMembershipRole } from "@app/helpers/roles";import { usePopUp } from "@app/hooks";@@ -9,6 +8,9 @@ import { usePopUp } from "@app/hooks";import { InPlatformMigrationSection } from "./components/InPlatformMigrationSection";import { SelectImportFromPlatformModal } from "./components/SelectImportFromPlatformModal";+const EXTERNAL_MIGRATIONS_DOCS_HREF =+ "https://infisical.com/docs/documentation/platform/external-migrations/overview";+export const ExternalMigrationsTab = () => {const { hasOrgRole } = useOrgPermission();@@ -17,40 +19,27 @@ export const ExternalMigrationsTab = () => {return (<div className="flex flex-col gap-6">{/* In-Platform Migration Tooling Section */}- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">+ <div className="rounded-lg border border-border bg-card p-4"><div className="mb-4"><div className="flex flex-wrap items-center gap-2">- <h2 className="text-xl font-medium text-mineshaft-100">In-Platform Migration Tooling</h2>- <a- target="_blank"- rel="noopener noreferrer"- href="https://infisical.com/docs/documentation/platform/external-migrations/overview"- >- <div className="inline-block rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">- <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />- Docs- <FontAwesomeIcon- icon={faArrowUpRightFromSquare}- className="text-xxs mb-[0.07rem] ml-1.5"- />- </div>- </a>+ <h2 className="text-xl font-medium text-foreground">In-Platform Migration Tooling</h2>+ <DocumentationLinkBadge href={EXTERNAL_MIGRATIONS_DOCS_HREF} /></div>- <p className="mt-1 mb-6 text-sm text-gray-400">- Connect <span className="text-mineshaft-200">HashiCorp Vault</span> or{" "}- <span className="text-mineshaft-200">Doppler</span> to enable migration features across- Infisical: import KV secrets (and from Vault, policies, Kubernetes-related resources,- and more) directly from the UI.+ <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.</p></div><InPlatformMigrationSection /></div>{/* Bulk Data Import Section */}- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">+ <div className="rounded-lg border border-border bg-card p-4"><div className="mb-4">- <h2 className="text-xl font-medium text-mineshaft-100">Bulk Data Import</h2>- <p className="mt-1 mb-6 text-sm text-gray-400">+ <h2 className="text-xl font-medium text-foreground">Bulk Data Import</h2>+ <p className="mt-1 mb-6 text-sm text-muted">Perform one-time bulk imports of data from external platforms.</p></div>@@ -58,36 +47,22 @@ export const ExternalMigrationsTab = () => {<div className="flex flex-wrap items-start justify-between gap-2"><div><div className="flex items-center gap-2">- <p className="text-base font-medium text-mineshaft-100">- Import from external source- </p>- <a- target="_blank"- rel="noopener noreferrer"- href="https://infisical.com/docs/documentation/platform/external-migrations/overview"- >- <div className="inline-block rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">- <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />- Docs- <FontAwesomeIcon- icon={faArrowUpRightFromSquare}- className="text-xxs mb-[0.07rem] ml-1.5"- />- </div>- </a>+ <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-gray-400">- 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><Button+ variant="project"+ type="button"+ className="gap-1.5"onClick={() => {handlePopUpOpen("selectImportPlatform");}}isDisabled={!hasOrgRole(OrgMembershipRole.Admin)}- leftIcon={<FontAwesomeIcon icon={faPlus} />}>+ <Plus className="size-4 shrink-0" />Import</Button></div>