Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: ui layout (#19929)
ecmadaod14e00afe4b5
diff --git a/frontend/src/layouts/ProjectV1Layout.vue b/frontend/src/layouts/ProjectV1Layout.vueindex 674dc2f7bd..f3e8370d32 100644--- a/frontend/src/layouts/ProjectV1Layout.vue+++ b/frontend/src/layouts/ProjectV1Layout.vue@@ -1,14 +1,14 @@<template><template v-if="initialized"><ArchiveBanner v-if="project.state === State.DELETED" class="py-2 mb-4" />- <template v-if="isDefaultProject">+ <div v-if="isDefaultProject" class="m-4"><h1 class="mb-4 text-xl font-bold leading-6 text-main truncate">{{ $t("database.unassigned-databases") }}</h1><BBAttention class="mb-4" type="info">{{ $t("project.overview.info-slot-content") }}</BBAttention>- </template>+ </div><RoutePermissionGuardclass="m-4"diff --git a/frontend/src/react/components/LearnMoreLink.tsx b/frontend/src/react/components/LearnMoreLink.tsxnew file mode 100644index 0000000000..42907f9cf4--- /dev/null+++ b/frontend/src/react/components/LearnMoreLink.tsx@@ -0,0 +1,26 @@+import { ExternalLink } from "lucide-react";+import { useTranslation } from "react-i18next";+import { cn } from "@/react/lib/utils";++interface LearnMoreLinkProps {+ href: string;+ className?: string;+}++export function LearnMoreLink({ href, className }: LearnMoreLinkProps) {+ const { t } = useTranslation();+ return (+ <a+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ className={cn(+ "inline-flex items-center gap-x-0.5 hover:underline",+ className+ )}+ >+ {t("common.learn-more")}+ <ExternalLink className="w-3 h-3" />+ </a>+ );+}diff --git a/frontend/src/react/components/instance/DataSourceForm.tsx b/frontend/src/react/components/instance/DataSourceForm.tsxindex 26a4bc2786..627f764c79 100644--- a/frontend/src/react/components/instance/DataSourceForm.tsx+++ b/frontend/src/react/components/instance/DataSourceForm.tsx@@ -2,6 +2,7 @@ import { create } from "@bufbuild/protobuf";import { Info } from "lucide-react";import { useCallback, useEffect, useMemo, useState } from "react";import { useTranslation } from "react-i18next";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { Button } from "@/react/components/ui/button";import { Input } from "@/react/components/ui/input";import { useVueState } from "@/react/hooks/useVueState";@@ -786,14 +787,10 @@ export function DataSourceForm({)}</label>))}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/get-started/connect/overview#secret-manager-integration"- target="_blank"- rel="noopener noreferrer"- className="text-sm text-accent hover:underline"- >- {t("common.learn-more")}- </a>+ className="text-sm text-accent"+ /></div></div>)}@@ -1441,14 +1438,10 @@ export function DataSourceForm({<span className="textinfolabel">{t("data-source.snowflake-keypair-tip")}</span>- <a+ <LearnMoreLinkhref="https://docs.snowflake.com/en/user-guide/key-pair-auth"- target="_blank"- rel="noopener noreferrer"- className="text-sm text-accent hover:underline"- >- {t("common.learn-more")}- </a>+ className="text-sm text-accent"+ /></div><textareavalue={dataSource.authenticationPrivateKey ?? ""}diff --git a/frontend/src/react/components/instance/DataSourceSection.tsx b/frontend/src/react/components/instance/DataSourceSection.tsxindex 369793b89d..f0f10f775d 100644--- a/frontend/src/react/components/instance/DataSourceSection.tsx+++ b/frontend/src/react/components/instance/DataSourceSection.tsx@@ -113,18 +113,17 @@ export function DataSourceSection({return (<>{showROTips && (- <Alert- variant="warning"- className="mt-2 flex items-center justify-between"- >- <span>{t("data-source.no-read-only-data-source")}</span>- <Button- variant="outline"- size="sm"- onClick={handleCreateRODataSource}- >- {t("common.create")}- </Button>+ <Alert variant="warning" className="my-4">+ <div className="flex items-center justify-between gap-x-2">+ <span>{t("data-source.no-read-only-data-source")}</span>+ <Button+ variant="outline"+ size="sm"+ onClick={handleCreateRODataSource}+ >+ {t("common.create")}+ </Button>+ </div></Alert>)}diff --git a/frontend/src/react/components/instance/InstanceFormBody.tsx b/frontend/src/react/components/instance/InstanceFormBody.tsxindex 4e93010509..a4d8c20623 100644--- a/frontend/src/react/components/instance/InstanceFormBody.tsx+++ b/frontend/src/react/components/instance/InstanceFormBody.tsx@@ -13,6 +13,7 @@ import { useTranslation } from "react-i18next";import { EnvironmentSelect } from "@/react/components/EnvironmentSelect";import { FeatureBadge } from "@/react/components/FeatureBadge";import { LabelListEditor } from "@/react/components/LabelListEditor";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { Alert } from "@/react/components/ui/alert";import { Button } from "@/react/components/ui/button";import { Input } from "@/react/components/ui/input";@@ -1564,14 +1565,10 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {<>{t("instance.account-locator")}<span className="mr-2 text-error"> *</span>- <a+ <LearnMoreLinkhref="https://docs.snowflake.com/en/user-guide/admin-account-identifier#using-an-account-locator-as-an-identifier"- target="_blank"- rel="noopener noreferrer"className="text-sm normal-link"- >- {t("common.learn-more")}- </a>+ /></>) : basicInfo.engine === Engine.COSMOSDB ? (<>diff --git a/frontend/src/react/pages/project/ProjectDatabaseDetailPage.tsx b/frontend/src/react/pages/project/ProjectDatabaseDetailPage.tsxindex 9461e3241e..5162825445 100644--- a/frontend/src/react/pages/project/ProjectDatabaseDetailPage.tsx+++ b/frontend/src/react/pages/project/ProjectDatabaseDetailPage.tsx@@ -191,11 +191,13 @@ export function ProjectDatabaseDetailPage({return (<div className="flex min-h-full flex-col gap-y-4 p-4">{!detail.database.effectiveEnvironment && (- <Alert variant="warning" className="items-center justify-between">- <div>{t("instance.no-environment")}</div>- <Button variant="link" size="sm" onClick={handleSetEnvironment}>- {t("database.edit-environment")}- </Button>+ <Alert variant="warning">+ <div className="flex flex-row items-center justify-between gap-x-2">+ <div>{t("instance.no-environment")}</div>+ <Button variant="link" size="sm" onClick={handleSetEnvironment}>+ {t("database.edit-environment")}+ </Button>+ </div></Alert>)}diff --git a/frontend/src/react/pages/project/ProjectReleaseDashboardPage.tsx b/frontend/src/react/pages/project/ProjectReleaseDashboardPage.tsxindex 4adb31e918..9826e87408 100644--- a/frontend/src/react/pages/project/ProjectReleaseDashboardPage.tsx+++ b/frontend/src/react/pages/project/ProjectReleaseDashboardPage.tsx@@ -1,9 +1,10 @@import { create } from "@bufbuild/protobuf";-import { ExternalLink, Loader2 } from "lucide-react";+import { Loader2 } from "lucide-react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { releaseServiceClientConnect } from "@/connect";import { HumanizeTs } from "@/react/components/HumanizeTs";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { Alert } from "@/react/components/ui/alert";import { Button } from "@/react/components/ui/button";import { PagedTableFooter, usePagedData } from "@/react/hooks/usePagedData";@@ -89,15 +90,10 @@ export function ProjectReleaseDashboardPage({<div className="px-4 flex flex-col gap-y-2 pb-2"><Alert variant="info"><span>{t("release.usage-description")}</span>- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/gitops/migration-based-workflow/release/?source=console"- target="_blank"- rel="noopener noreferrer"- className="ml-1 inline-flex items-center gap-x-0.5 hover:underline"- >- {t("common.learn-more")}- <ExternalLink className="w-3 h-3" />- </a>+ className="ml-1"+ /></Alert>{/* Category filter */}diff --git a/frontend/src/react/pages/project/ProjectSyncSchemaPage.tsx b/frontend/src/react/pages/project/ProjectSyncSchemaPage.tsxindex 8a53a4f13a..f8e04befcf 100644--- a/frontend/src/react/pages/project/ProjectSyncSchemaPage.tsx+++ b/frontend/src/react/pages/project/ProjectSyncSchemaPage.tsx@@ -6,7 +6,6 @@ import {ChevronDown,ChevronLeft,Copy,- ExternalLink,Maximize2,Minus,Plus,@@ -21,6 +20,7 @@ import {} from "@/components/MonacoEditor/editor";import { DatabaseSelect } from "@/react/components/DatabaseSelect";import { EnvironmentSelect } from "@/react/components/EnvironmentSelect";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { Button } from "@/react/components/ui/button";import { Combobox, type ComboboxOption } from "@/react/components/ui/combobox";import {@@ -412,14 +412,10 @@ export function ProjectSyncSchemaPage({ projectId }: { projectId: string }) {<div className="w-full h-full overflow-hidden flex flex-col px-4 py-4"><p className="text-sm text-gray-500">{t("database.sync-schema.description")}{" "}- <a- className="inline-flex items-center normal-link"+ <LearnMoreLinkhref="https://docs.bytebase.com/change-database/synchronize-schema?source=console"- target="__BLANK"- >- {t("common.learn-more")}- <ExternalLink className="w-4 h-4 ml-1" />- </a>+ className="normal-link"+ /></p>{isLoading ? (diff --git a/frontend/src/react/pages/settings/DataClassificationPage.tsx b/frontend/src/react/pages/settings/DataClassificationPage.tsxindex 57a5ee757c..dfb63cbda3 100644--- a/frontend/src/react/pages/settings/DataClassificationPage.tsx+++ b/frontend/src/react/pages/settings/DataClassificationPage.tsx@@ -1,13 +1,6 @@import { create } from "@bufbuild/protobuf";import { isEmpty } from "lodash-es";-import {- ChevronRight,- ExternalLink,- Pencil,- Trash2,- Undo2,- X,-} from "lucide-react";+import { ChevronRight, Pencil, Trash2, Undo2, X } from "lucide-react";import {type JSX,useCallback,@@ -20,6 +13,7 @@ import { useTranslation } from "react-i18next";import { v4 as uuidv4 } from "uuid";import classificationExample from "@/components/SensitiveData/classification-example.json";import { FeatureAttention } from "@/react/components/FeatureAttention";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { Button } from "@/react/components/ui/button";import { SearchInput } from "@/react/components/ui/search-input";import { useVueState } from "@/react/hooks/useVueState";@@ -529,15 +523,10 @@ export function DataClassificationPage() {<div className="flex items-center justify-between"><div className="text-sm text-control-light">{t("database.classification.description")}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/security/data-masking/data-classification?source=console"- target="_blank"- rel="noopener noreferrer"- className="ml-1 inline-flex items-center gap-0.5 text-accent hover:underline"- >- {t("common.learn-more")}- <ExternalLink className="w-3 h-3" />- </a>+ className="ml-1 text-accent"+ /></div>{allowEdit && (diff --git a/frontend/src/react/pages/settings/IDPDetailPage.tsx b/frontend/src/react/pages/settings/IDPDetailPage.tsxindex b65ad769fd..6ca7415d17 100644--- a/frontend/src/react/pages/settings/IDPDetailPage.tsx+++ b/frontend/src/react/pages/settings/IDPDetailPage.tsx@@ -5,6 +5,7 @@ import { ArrowRight, Database, Info, Key, ShieldCheck, X } from "lucide-react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { identityProviderServiceClientConnect } from "@/connect";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { PermissionGuard } from "@/react/components/PermissionGuard";import { ResourceIdField } from "@/react/components/ResourceIdField";import { Button } from "@/react/components/ui/button";@@ -1479,14 +1480,10 @@ export function IDPDetailPage() {<div className="w-full px-4 py-4 flex flex-col gap-y-6"><div className="textinfolabel">{t("settings.sso.description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/administration/sso/overview?source=console"- target="_blank"- rel="noopener noreferrer"- className="text-accent hover:underline"- >- {t("common.learn-more")}- </a>+ className="text-accent"+ /></div><div className="divide-y divide-block-border">diff --git a/frontend/src/react/pages/settings/IDPsPage.tsx b/frontend/src/react/pages/settings/IDPsPage.tsxindex 02109f3aae..df814bb17c 100644--- a/frontend/src/react/pages/settings/IDPsPage.tsx+++ b/frontend/src/react/pages/settings/IDPsPage.tsx@@ -18,6 +18,7 @@ import { useTranslation } from "react-i18next";import { identityProviderServiceClientConnect } from "@/connect";import { FeatureAttention } from "@/react/components/FeatureAttention";import { FeatureBadge } from "@/react/components/FeatureBadge";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { PermissionGuard } from "@/react/components/PermissionGuard";import {ResourceIdField,@@ -1902,14 +1903,10 @@ function CreateWizardDrawer({{t("settings.sso.form.user-information-mapping-description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/administration/sso/oauth2#user-information-field-mapping?source=console"- target="_blank"- rel="noopener noreferrer"- className="text-accent hover:underline ml-1"- >- {t("common.learn-more")}- </a>+ className="text-accent ml-1"+ /></p></div><div className="max-w-2xl mx-auto flex flex-col gap-y-6 w-full">@@ -2022,14 +2019,10 @@ export function IDPsPage() {<div className="textinfolabel">{t("settings.sso.description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/administration/sso/overview?source=console"- target="_blank"- rel="noopener noreferrer"- className="text-accent hover:underline"- >- {t("common.learn-more")}- </a>+ className="text-accent"+ /></div><div className="w-full flex justify-end">diff --git a/frontend/src/react/pages/settings/MembersPage.tsx b/frontend/src/react/pages/settings/MembersPage.tsxindex e5051b5d27..941125f50e 100644--- a/frontend/src/react/pages/settings/MembersPage.tsx+++ b/frontend/src/react/pages/settings/MembersPage.tsx@@ -28,6 +28,7 @@ import {import { AccountMultiSelect } from "@/react/components/AccountMultiSelect";import { DatabaseResourceSelector as DatabaseResourceSelectorComponent } from "@/react/components/DatabaseResourceSelector";import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { PermissionGuard } from "@/react/components/PermissionGuard";import { RoleSelect } from "@/react/components/RoleSelect";import { UserAvatar } from "@/react/components/UserAvatar";@@ -1767,14 +1768,10 @@ export function MembersPage({ projectId }: { projectId?: string }) {{projectName && (<div className="textinfolabel mb-4">{t("project.members.description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/administration/roles/?source=console#project-roles"- target="_blank"- rel="noopener noreferrer"- className="text-accent hover:underline"- >- {t("common.learn-more")}- </a>+ className="text-accent"+ /></div>)}diff --git a/frontend/src/react/pages/settings/RolesPage.tsx b/frontend/src/react/pages/settings/RolesPage.tsxindex 6a7d7b6056..3f46bb5ee7 100644--- a/frontend/src/react/pages/settings/RolesPage.tsx+++ b/frontend/src/react/pages/settings/RolesPage.tsx@@ -6,6 +6,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { FeatureAttention } from "@/react/components/FeatureAttention";import { FeatureBadge } from "@/react/components/FeatureBadge";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { PermissionGuard } from "@/react/components/PermissionGuard";import {ResourceIdField,@@ -801,14 +802,10 @@ export function RolesPage() {<div className="textinfolabel">{t("role.setting.description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/administration/roles?source=console"- target="_blank"- rel="noopener noreferrer"- className="text-accent hover:underline"- >- {t("common.learn-more")}- </a>+ className="text-accent"+ /></div><div className="w-full flex justify-end">diff --git a/frontend/src/react/pages/settings/SQLReviewPage.tsx b/frontend/src/react/pages/settings/SQLReviewPage.tsxindex 6ef85af75c..6ef3fea3b9 100644--- a/frontend/src/react/pages/settings/SQLReviewPage.tsx+++ b/frontend/src/react/pages/settings/SQLReviewPage.tsx@@ -1,6 +1,7 @@-import { Check, ExternalLink, Pencil, Plus, Trash2, X } from "lucide-react";+import { Check, Pencil, Plus, Trash2, X } from "lucide-react";import { useCallback, useEffect, useMemo, useState } from "react";import { useTranslation } from "react-i18next";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { ResourceLink } from "@/react/components/sql-review/ResourceLink";import { Badge } from "@/react/components/ui/badge";import { Button } from "@/react/components/ui/button";@@ -293,15 +294,10 @@ export function SQLReviewPage() {<div className="px-4 py-4 mx-auto flex flex-col gap-y-4"><div className="textinfolabel">{t("sql-review.description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/sql-review/review-rules?source=console"- target="_blank"- rel="noopener noreferrer"- className="normal-link inline-flex items-center gap-x-1"- >- {t("common.learn-more")}- <ExternalLink className="w-4 h-4" />- </a>+ className="normal-link"+ /></div><div className="flex justify-end items-center gap-x-2">diff --git a/frontend/src/react/pages/settings/general/AIAugmentationSection.tsx b/frontend/src/react/pages/settings/general/AIAugmentationSection.tsxindex a56aace7c4..ad7b5240d5 100644--- a/frontend/src/react/pages/settings/general/AIAugmentationSection.tsx+++ b/frontend/src/react/pages/settings/general/AIAugmentationSection.tsx@@ -10,6 +10,7 @@ import {} from "react";import { useTranslation } from "react-i18next";import { ComponentPermissionGuard } from "@/react/components/ComponentPermissionGuard";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { PermissionGuard } from "@/react/components/PermissionGuard";import { Alert } from "@/react/components/ui/alert";import { Input } from "@/react/components/ui/input";@@ -246,14 +247,10 @@ export const AIAugmentationSection = forwardRef<</div><div className="mt-1 mb-3 text-sm text-gray-400">{t("settings.general.workspace.ai-assistant.description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/ai-assistant?source=console"- target="_blank"- rel="noopener noreferrer"- className="text-accent hover:underline text-sm ml-1"- >- {t("common.learn-more")}- </a>+ className="text-accent text-sm ml-1"+ /></div></div>diff --git a/frontend/src/react/pages/settings/general/GeneralSection.tsx b/frontend/src/react/pages/settings/general/GeneralSection.tsxindex 6258cce205..5ae67eafe7 100644--- a/frontend/src/react/pages/settings/general/GeneralSection.tsx+++ b/frontend/src/react/pages/settings/general/GeneralSection.tsx@@ -9,6 +9,7 @@ import {useState,} from "react";import { useTranslation } from "react-i18next";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import {PermissionGuard,usePermissionCheck,@@ -205,14 +206,10 @@ export const GeneralSection = forwardRef<SectionHandle, GeneralSectionProps>(</label><div className="mb-3 text-sm text-gray-400">{t("settings.general.workspace.external-url.description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/get-started/self-host/external-url?source=console"- target="_blank"- rel="noopener noreferrer"- className="text-accent hover:underline"- >- {t("common.learn-more")}- </a>+ className="text-accent"+ /></div>{externalUrlFromFlag && (<Alert variant="info" className="mb-3">diff --git a/frontend/src/react/pages/settings/profile/ProfilePage.tsx b/frontend/src/react/pages/settings/profile/ProfilePage.tsxindex 04a438c3c4..a5a240f3bf 100644--- a/frontend/src/react/pages/settings/profile/ProfilePage.tsx+++ b/frontend/src/react/pages/settings/profile/ProfilePage.tsx@@ -6,6 +6,7 @@ import { Ellipsis, ShieldAlert } from "lucide-react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { FeatureBadge } from "@/react/components/FeatureBadge";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { getAvatarColor, getInitials } from "@/react/components/UserAvatar";import { Button } from "@/react/components/ui/button";import {@@ -588,14 +589,10 @@ export function ProfilePage({ principalEmail }: ProfilePageProps) {</div><p className="mt-4 text-sm text-gray-500">{t("two-factor.description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/administration/2fa?source=console"- target="_blank"- rel="noopener noreferrer"- className="text-accent hover:underline ml-1"- >- {t("common.learn-more")}- </a>+ className="text-accent ml-1"+ /></p>{showRegenerateRecoveryCodes && (diff --git a/frontend/src/react/pages/settings/shared/AADSyncDrawer.tsx b/frontend/src/react/pages/settings/shared/AADSyncDrawer.tsxindex e6b3b5c195..8e61b989ba 100644--- a/frontend/src/react/pages/settings/shared/AADSyncDrawer.tsx+++ b/frontend/src/react/pages/settings/shared/AADSyncDrawer.tsx@@ -2,6 +2,7 @@ import { create } from "@bufbuild/protobuf";import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";import { Copy, X } from "lucide-react";import { useTranslation } from "react-i18next";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { Alert, AlertDescription } from "@/react/components/ui/alert";import { Button } from "@/react/components/ui/button";import { Input } from "@/react/components/ui/input";@@ -119,14 +120,10 @@ export function AADSyncDrawer({ onClose }: { onClose: () => void }) {{/* Description */}<p className="text-sm text-control-light">{t("settings.members.entra-sync.description")}{" "}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/administration/scim/overview?source=console"- target="_blank"- rel="noopener noreferrer"- className="text-accent hover:underline"- >- {t("common.learn-more")}- </a>+ className="text-accent"+ /></p>{/* Missing external URL warning */}diff --git a/frontend/src/react/pages/settings/two-factor/TwoFactorSetupPage.tsx b/frontend/src/react/pages/settings/two-factor/TwoFactorSetupPage.tsxindex ee285086cb..598d9d6557 100644--- a/frontend/src/react/pages/settings/two-factor/TwoFactorSetupPage.tsx+++ b/frontend/src/react/pages/settings/two-factor/TwoFactorSetupPage.tsx@@ -1,10 +1,11 @@import { create } from "@bufbuild/protobuf";import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";import type { ConnectError } from "@connectrpc/connect";-import { Check, ExternalLink } from "lucide-react";+import { Check } from "lucide-react";import { QRCodeSVG } from "qrcode.react";import { useCallback, useEffect, useRef, useState } from "react";import { useTranslation } from "react-i18next";+import { LearnMoreLink } from "@/react/components/LearnMoreLink";import { Button } from "@/react/components/ui/button";import { OtpInput } from "@/react/components/ui/otp-input";import { useVueState } from "@/react/hooks/useVueState";@@ -213,15 +214,10 @@ export function TwoFactorSetupPage({ cancelAction }: TwoFactorSetupPageProps) {<div className="px-4 py-4"><p className="text-sm text-gray-500 mb-4">{t("two-factor.description")}- <a+ <LearnMoreLinkhref="https://docs.bytebase.com/administration/2fa?source=console"- target="_blank"- rel="noopener noreferrer"- className="ml-1 inline-flex items-center gap-x-0.5 text-accent hover:underline"- >- {t("common.learn-more")}- <ExternalLink className="w-3 h-3" />- </a>+ className="ml-1 text-accent"+ /></p>{/* Step indicator */}