Skip to content

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

fix(frontend): standardize browser titles and correct page labels (#8931)

Andrew Huang2dde41d6b087
diff --git a/frontend/AGENTS.md b/frontend/AGENTS.md
index 39782a3405..3a9d86fa9c 100644
--- a/frontend/AGENTS.md
+++ b/frontend/AGENTS.md
@@ -113,6 +113,7 @@ Secret Scanning has one active project per org (see the root `AGENTS.md`). Membe
## Conventions
+- App browser titles use `PageTitle` from `@app/components/PageTitle`, which applies the localized `common.head-title` format (`Page | Infisical`) without suspending loading/error fallbacks. Pass a page label, not an already branded string. Keep one title mounted per screen, including loading, empty, and denied states; place it outside permission guards when necessary. The static HTML title is handed off before React mounts, preserving a no-JS fallback without duplicates. Custom-branded public sharing keeps its existing native, unbranded title; its loading title must not assume Infisical branding before configuration resolves. Use resource names only, never secret values or tokens.
- ESLint flat config (ESLint 9+) with airbnb-typescript + prettier. Double quotes enforced.
- Import ordering via `simple-import-sort`: node builtins → react/external packages → `@app/` → internal → relative → styles.
- Forms use `react-hook-form` with `@hookform/resolvers` (Zod schemas).
diff --git a/frontend/index.html b/frontend/index.html
index 232cf8c46a..08ca8dc01d 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -18,7 +18,7 @@
font-src 'self' data: https://fonts.intercomcdn.com/ https://fonts.gstatic.com;
"
/>
- <title>Infisical</title>
+ <title id="initial-document-title">Infisical</title>
<script>window.__toCdnUrl = function(f) { return "/" + f; };</script>
<script src="/runtime-ui-env.js"></script>
</head>
diff --git a/frontend/public/locales/en/translations.json b/frontend/public/locales/en/translations.json
index 287d4c5877..c18eb106ae 100644
--- a/frontend/public/locales/en/translations.json
+++ b/frontend/public/locales/en/translations.json
@@ -1,4 +1,29 @@
{
+ "page-titles": {
+ "admin-login": "Admin Login",
+ "organization-setup": "Set Up Organization",
+ "access-control": "Access Control",
+ "projects": "Projects",
+ "create-organization": "Create Organization",
+ "user": "User",
+ "machine-identity": "Machine Identity",
+ "group": "Group",
+ "role": "Role",
+ "gateway": "Gateway",
+ "relay": "Relay",
+ "kmip-server": "KMIP Server",
+ "select-organization": "Select Organization",
+ "secret-approvals": "Secret Approvals",
+ "secret-scanning-findings": "Secret Scanning Findings",
+ "secret-scanning-data-sources": "Secret Scanning Data Sources",
+ "kmip": "KMIP",
+ "server-settings": "Server Settings",
+ "authentication": "Authentication",
+ "encryption": "Encryption",
+ "environment-variables": "Environment Variables",
+ "caching": "Caching",
+ "integrations": "Integrations"
+ },
"activity": {
"title": "Audit Logs",
"subtitle": "Event history for this Infisical project.",
diff --git a/frontend/src/components/PageTitle.tsx b/frontend/src/components/PageTitle.tsx
new file mode 100644
index 0000000000..b765d881bf
--- /dev/null
+++ b/frontend/src/components/PageTitle.tsx
@@ -0,0 +1,7 @@
+import { useTranslation } from "react-i18next";
+
+export const PageTitle = ({ title }: { title: string }) => {
+ const { t, ready } = useTranslation(undefined, { useSuspense: false });
+
+ return <title>{ready ? t("common.head-title", { title }) : `${title} | Infisical`}</title>;
+};
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
index e3e4904c2c..64f07105e9 100644
--- a/frontend/src/main.tsx
+++ b/frontend/src/main.tsx
@@ -6,6 +6,7 @@ import { QueryClientProvider } from "@tanstack/react-query";
import { createRouter, RouterProvider } from "@tanstack/react-router";
import NProgress from "nprogress";
+import { PageTitle } from "./components/PageTitle";
import { Loader } from "./components/v3/generic/Loader";
import { initializeTheme } from "./components/v3/platform/ThemeProvider";
import { queryClient } from "./hooks/api/reactQuery";
@@ -76,6 +77,7 @@ const router = createRouter({
context: { serverConfig: null, queryClient },
defaultPendingComponent: () => (
<div className="flex h-full w-full items-center justify-center bg-page [#root>&]:h-screen">
+ <PageTitle title="Loading" />
<Loader variant="brand" className="h-32 w-32" label="Loading page" />
</div>
),
@@ -104,6 +106,7 @@ declare module "@tanstack/react-router" {
const rootElement = document.getElementById("root")!;
if (!rootElement.innerHTML) {
const root = ReactDOM.createRoot(rootElement);
+ document.getElementById("initial-document-title")?.remove();
root.render(
<StrictMode>
<QueryClientProvider client={queryClient}>
diff --git a/frontend/src/pages/MfaSessionPage/MfaSessionPage.tsx b/frontend/src/pages/MfaSessionPage/MfaSessionPage.tsx
index ef570f4569..af629bff79 100644
--- a/frontend/src/pages/MfaSessionPage/MfaSessionPage.tsx
+++ b/frontend/src/pages/MfaSessionPage/MfaSessionPage.tsx
@@ -8,12 +8,14 @@ import {
MfaSessionChallenge
} from "@app/components/mfa/MfaSessionChallenge";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { CardContent, VerificationCodeHeader } from "@app/components/v3";
import { stashMfaLockoutError } from "@app/helpers/mfaSession";
import { MfaSessionStatus, useMfaSessionStatus } from "@app/hooks/api/mfaSession";
const MfaAuthPage = ({ children }: { children: ReactNode }) => (
<AuthPageLayout variant="focused" showFooter={false}>
+ <PageTitle title="Two-Factor Authentication" />
<AuthPagePanel>{children}</AuthPagePanel>
</AuthPageLayout>
);
diff --git a/frontend/src/pages/admin/AccessManagementPage/AccessManagementPage.tsx b/frontend/src/pages/admin/AccessManagementPage/AccessManagementPage.tsx
index dcf3588035..e6dbce9da9 100644
--- a/frontend/src/pages/admin/AccessManagementPage/AccessManagementPage.tsx
+++ b/frontend/src/pages/admin/AccessManagementPage/AccessManagementPage.tsx
@@ -1,15 +1,12 @@
-import { useTranslation } from "react-i18next";
-
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { ServerAdminsTable } from "./components";
export const AccessManagementPage = () => {
- const { t } = useTranslation();
-
return (
<div className="h-full text-foreground">
- <title>{t("common.head-title", { title: "Access Control" })}</title>
+ <PageTitle title="Access Control" />
<div className="mx-auto flex flex-col justify-between">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/admin/AuthenticationPage/AuthenticationPage.tsx b/frontend/src/pages/admin/AuthenticationPage/AuthenticationPage.tsx
index 300829397b..8009e151b7 100644
--- a/frontend/src/pages/admin/AuthenticationPage/AuthenticationPage.tsx
+++ b/frontend/src/pages/admin/AuthenticationPage/AuthenticationPage.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { AuthenticationPageForm } from "./components";
@@ -9,7 +10,7 @@ export const AuthenticationPage = () => {
return (
<div className="h-full text-foreground">
- <title>{t("common.head-title", { title: "Admin" })}</title>
+ <PageTitle title={t("page-titles.authentication")} />
<div className="mx-auto flex flex-col justify-between">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/admin/CachingPage/CachingPage.tsx b/frontend/src/pages/admin/CachingPage/CachingPage.tsx
index c211162d03..d71e42a076 100644
--- a/frontend/src/pages/admin/CachingPage/CachingPage.tsx
+++ b/frontend/src/pages/admin/CachingPage/CachingPage.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { CachingPageForm } from "./components";
@@ -9,7 +10,7 @@ export const CachingPage = () => {
return (
<div className="h-full text-foreground">
- <title>{t("common.head-title", { title: "Admin" })}</title>
+ <PageTitle title={t("page-titles.caching")} />
<div className="mx-auto flex flex-col justify-between">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/admin/EncryptionPage/EncryptionPage.tsx b/frontend/src/pages/admin/EncryptionPage/EncryptionPage.tsx
index f0d7e26617..69113e4cc2 100644
--- a/frontend/src/pages/admin/EncryptionPage/EncryptionPage.tsx
+++ b/frontend/src/pages/admin/EncryptionPage/EncryptionPage.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { EncryptionKeyRotationSection, EncryptionPageForm } from "./components";
@@ -9,7 +10,7 @@ export const EncryptionPage = () => {
return (
<div className="h-full text-foreground">
- <title>{t("common.head-title", { title: "Admin" })}</title>
+ <PageTitle title={t("page-titles.encryption")} />
<div className="mx-auto flex flex-col justify-between">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/admin/EnvironmentPage/EnvironmentPage.tsx b/frontend/src/pages/admin/EnvironmentPage/EnvironmentPage.tsx
index 0fc3935f03..bf6f42f50a 100644
--- a/frontend/src/pages/admin/EnvironmentPage/EnvironmentPage.tsx
+++ b/frontend/src/pages/admin/EnvironmentPage/EnvironmentPage.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { EnvironmentPageForm } from "./components";
@@ -9,7 +10,7 @@ export const EnvironmentPage = () => {
return (
<div className="text-foreground">
- <title>{t("common.head-title", { title: "Admin" })}</title>
+ <PageTitle title={t("page-titles.environment-variables")} />
<div className="mx-auto flex flex-col justify-between">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/admin/GeneralPage/GeneralPage.tsx b/frontend/src/pages/admin/GeneralPage/GeneralPage.tsx
index fe6b6fd9a3..10e18aab55 100644
--- a/frontend/src/pages/admin/GeneralPage/GeneralPage.tsx
+++ b/frontend/src/pages/admin/GeneralPage/GeneralPage.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { useGetServerConfig } from "@app/hooks/api/admin";
@@ -11,7 +12,7 @@ export const GeneralPage = () => {
return (
<div className="h-full text-foreground">
- <title>{t("common.head-title", { title: "Admin" })}</title>
+ <PageTitle title={t("page-titles.server-settings")} />
<div className="mx-auto flex flex-col justify-between">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/admin/IntegrationsPage/IntegrationsPage.tsx b/frontend/src/pages/admin/IntegrationsPage/IntegrationsPage.tsx
index a249b5d098..064ed88ba4 100644
--- a/frontend/src/pages/admin/IntegrationsPage/IntegrationsPage.tsx
+++ b/frontend/src/pages/admin/IntegrationsPage/IntegrationsPage.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { IntegrationsPageForm } from "./components";
@@ -9,7 +10,7 @@ export const IntegrationsPage = () => {
return (
<div className="h-full text-foreground">
- <title>{t("common.head-title", { title: "Admin" })}</title>
+ <PageTitle title={t("page-titles.integrations")} />
<div className="mx-auto flex flex-col justify-between">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/admin/ResourceOverviewPage/ResourceOverviewPage.tsx b/frontend/src/pages/admin/ResourceOverviewPage/ResourceOverviewPage.tsx
index 06e5572455..e6b442121b 100644
--- a/frontend/src/pages/admin/ResourceOverviewPage/ResourceOverviewPage.tsx
+++ b/frontend/src/pages/admin/ResourceOverviewPage/ResourceOverviewPage.tsx
@@ -1,6 +1,6 @@
-import { useTranslation } from "react-i18next";
import { useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import {
@@ -11,7 +11,6 @@ import {
} from "./components";
export const ResourceOverviewPage = () => {
- const { t } = useTranslation();
const { selectedTab } = useSearch({
from: "/_authenticate/_inject-org-details/admin/_admin-layout/resources/overview"
});
@@ -20,7 +19,7 @@ export const ResourceOverviewPage = () => {
return (
<div className="h-full text-foreground">
- <title>{t("common.head-title", { title: "Resource Overview" })}</title>
+ <PageTitle title="Resource Overview" />
<div className="mx-auto flex flex-col justify-between">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/admin/SetupPage/SetupPage.tsx b/frontend/src/pages/admin/SetupPage/SetupPage.tsx
index 1ccd276f84..1a4b32cd48 100644
--- a/frontend/src/pages/admin/SetupPage/SetupPage.tsx
+++ b/frontend/src/pages/admin/SetupPage/SetupPage.tsx
@@ -7,6 +7,7 @@ import { z } from "zod";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
import { OnboardingPageLayout } from "@app/components/auth/OnboardingPageLayout";
+import { PageTitle } from "@app/components/PageTitle";
import {
AnimatedCollapse,
Button,
@@ -584,7 +585,7 @@ export const SetupPage = () => {
</div>
}
>
- <title>Configure your instance | Infisical</title>
+ <PageTitle title="Configure Your Instance" />
<link rel="icon" href="/infisical.ico" />
<AuthPagePanel>
<form id={setupFormId} onSubmit={onSubmit}>
diff --git a/frontend/src/pages/admin/SignUpPage/SignUpPage.tsx b/frontend/src/pages/admin/SignUpPage/SignUpPage.tsx
index 9ead17633b..73d165d25e 100644
--- a/frontend/src/pages/admin/SignUpPage/SignUpPage.tsx
+++ b/frontend/src/pages/admin/SignUpPage/SignUpPage.tsx
@@ -8,6 +8,7 @@ import { z } from "zod";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
import { OnboardingPageLayout } from "@app/components/auth/OnboardingPageLayout";
+import { PageTitle } from "@app/components/PageTitle";
import SecurityClient from "@app/components/utilities/SecurityClient";
import {
Alert,
@@ -106,7 +107,7 @@ export const SignUpPage = () => {
return (
<OnboardingPageLayout currentStep={activeStep + 1} totalSteps={4}>
- <title>Set up your instance | Infisical</title>
+ <PageTitle title="Set Up Your Instance" />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<AuthPagePanel>
diff --git a/frontend/src/pages/admin/WelcomePage/WelcomePage.tsx b/frontend/src/pages/admin/WelcomePage/WelcomePage.tsx
index 7cee437798..37ce44dc4d 100644
--- a/frontend/src/pages/admin/WelcomePage/WelcomePage.tsx
+++ b/frontend/src/pages/admin/WelcomePage/WelcomePage.tsx
@@ -3,6 +3,7 @@ import { ArrowRight, Building2, KeyRound, ServerCog } from "lucide-react";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
+import { PageTitle } from "@app/components/PageTitle";
import { CardContent, CardDescription, CardHeader, CardTitle } from "@app/components/v3";
type Props = {
@@ -14,7 +15,7 @@ export const WelcomePage = ({ organizationId }: Props) => {
return (
<AuthPageLayout variant="focused" contentClassName="max-w-xl">
- <title>Instance ready | Infisical</title>
+ <PageTitle title="Instance Ready" />
<link rel="icon" href="/infisical.ico" />
<AuthPagePanel>
<CardHeader className="gap-0">
diff --git a/frontend/src/pages/agent-vault/AgentVaultAccessBundleDetailPage/AgentVaultAccessBundleDetailPage.tsx b/frontend/src/pages/agent-vault/AgentVaultAccessBundleDetailPage/AgentVaultAccessBundleDetailPage.tsx
index 2cddccc4e1..78019538f5 100644
--- a/frontend/src/pages/agent-vault/AgentVaultAccessBundleDetailPage/AgentVaultAccessBundleDetailPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultAccessBundleDetailPage/AgentVaultAccessBundleDetailPage.tsx
@@ -1,5 +1,4 @@
import { useState } from "react";
-import { useTranslation } from "react-i18next";
import { Link, useNavigate, useParams } from "@tanstack/react-router";
import {
ChevronLeftIcon,
@@ -15,6 +14,7 @@ import { AccessBundleFormDialog } from "@app/components/agent-vault/AccessBundle
import { ManageAccessSheet } from "@app/components/agent-vault/ManageAccessSheet";
import { PersonalValuesDialog } from "@app/components/agent-vault/PersonalValuesDialog";
import { ServiceSheet } from "@app/components/agent-vault/service-sheet";
+import { PageTitle } from "@app/components/PageTitle";
import {
Alert,
AlertAction,
@@ -41,7 +41,6 @@ import { DeleteAccessBundleDialog } from "@app/pages/agent-vault/AgentVaultAcces
import { ServicesCard } from "./components/ServicesCard";
export const AgentVaultAccessBundleDetailPage = () => {
- const { t } = useTranslation();
const navigate = useNavigate();
const { currentOrg } = useOrganization();
const { hasProjectRole } = useProjectPermission();
@@ -64,31 +63,40 @@ export const AgentVaultAccessBundleDetailPage = () => {
const [isServiceSheetOpen, setIsServiceSheetOpen] = useState(false);
const [serviceToEdit, setServiceToEdit] = useState<TAgentVaultService | null>(null);
- if (isPending) return <PageLoader />;
+ if (isPending)
+ return (
+ <>
+ <PageTitle title="Access Bundle" />
+ <PageLoader />
+ </>
+ );
if (!accessBundle) {
return (
- <div className="mx-auto mb-6 w-full max-w-8xl">
- <Empty className="border">
- <EmptyHeader>
- <EmptyTitle>Access bundle not found</EmptyTitle>
- <EmptyDescription>It was deleted or is no longer granted to you.</EmptyDescription>
- </EmptyHeader>
- <Button variant="av" asChild>
- <Link
- to="/organizations/$orgId/agent-vault/access-bundles"
- params={{ orgId: currentOrg.id }}
- >
- Back to Access Bundles
- </Link>
- </Button>
- </Empty>
- </div>
+ <>
+ <PageTitle title="Access Bundle" />
+ <div className="mx-auto mb-6 w-full max-w-8xl">
+ <Empty className="border">
+ <EmptyHeader>
+ <EmptyTitle>Access bundle not found</EmptyTitle>
+ <EmptyDescription>It was deleted or is no longer granted to you.</EmptyDescription>
+ </EmptyHeader>
+ <Button variant="av" asChild>
+ <Link
+ to="/organizations/$orgId/agent-vault/access-bundles"
+ params={{ orgId: currentOrg.id }}
+ >
+ Back to Access Bundles
+ </Link>
+ </Button>
+ </Empty>
+ </div>
+ </>
);
}
return (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
- <title>{t("common.head-title", { title: accessBundle.name })}</title>
+ <PageTitle title={accessBundle.name || "Access Bundle"} />
<PageHeader
scope={ProjectType.AgentVault}
diff --git a/frontend/src/pages/agent-vault/AgentVaultAccessBundlesPage/AgentVaultAccessBundlesPage.tsx b/frontend/src/pages/agent-vault/AgentVaultAccessBundlesPage/AgentVaultAccessBundlesPage.tsx
index e26e860596..f780451007 100644
--- a/frontend/src/pages/agent-vault/AgentVaultAccessBundlesPage/AgentVaultAccessBundlesPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultAccessBundlesPage/AgentVaultAccessBundlesPage.tsx
@@ -1,5 +1,4 @@
import { useState } from "react";
-import { useTranslation } from "react-i18next";
import { useNavigate } from "@tanstack/react-router";
import { format } from "date-fns";
import {
@@ -18,6 +17,7 @@ import { twMerge } from "tailwind-merge";
import { AccessBundleFormDialog } from "@app/components/agent-vault/AccessBundleFormDialog";
import { ManageAccessSheet } from "@app/components/agent-vault/ManageAccessSheet";
import { ServiceIconStack } from "@app/components/agent-vault/ServiceIconStack";
+import { PageTitle } from "@app/components/PageTitle";
import {
Alert,
AlertAction,
@@ -82,7 +82,6 @@ enum SortColumn {
}
export const AgentVaultAccessBundlesPage = () => {
- const { t } = useTranslation();
const navigate = useNavigate();
const { currentOrg } = useOrganization();
const { hasProjectRole } = useProjectPermission();
@@ -159,7 +158,7 @@ export const AgentVaultAccessBundlesPage = () => {
return (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
- <title>{t("common.head-title", { title: "Access Bundles" })}</title>
+ <PageTitle title="Access Bundles" />
<PageHeader
scope={ProjectType.AgentVault}
icon={PackageIcon}
diff --git a/frontend/src/pages/agent-vault/AgentVaultAccessControlPage/AgentVaultAccessControlPage.tsx b/frontend/src/pages/agent-vault/AgentVaultAccessControlPage/AgentVaultAccessControlPage.tsx
index 44ed10eee7..ee0766b112 100644
--- a/frontend/src/pages/agent-vault/AgentVaultAccessControlPage/AgentVaultAccessControlPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultAccessControlPage/AgentVaultAccessControlPage.tsx
@@ -1,7 +1,7 @@
-import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { ShieldIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader, Tabs, TabsContent, TabsList, TabsTrigger } from "@app/components/v3";
import {
ProjectPermissionMemberActions,
@@ -75,11 +75,9 @@ const AgentVaultAccessControlTabsWithPermission = withProjectPermission(
);
export const AgentVaultAccessControlPage = () => {
- const { t } = useTranslation();
-
return (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
- <title>{t("common.head-title", { title: "Access Control" })}</title>
+ <PageTitle title="Access Control" />
<PageHeader
scope={ProjectType.AgentVault}
icon={ShieldIcon}
diff --git a/frontend/src/pages/agent-vault/AgentVaultAuditLogsPage/AgentVaultAuditLogsPage.tsx b/frontend/src/pages/agent-vault/AgentVaultAuditLogsPage/AgentVaultAuditLogsPage.tsx
index caaa46e6a9..6d75ae5684 100644
--- a/frontend/src/pages/agent-vault/AgentVaultAuditLogsPage/AgentVaultAuditLogsPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultAuditLogsPage/AgentVaultAuditLogsPage.tsx
@@ -1,16 +1,14 @@
-import { useTranslation } from "react-i18next";
import { FileText } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { ProjectType } from "@app/hooks/api/projects/types";
import { ProjectAuditLogsTabs } from "@app/pages/project/AuditLogsPage/components";
export const AgentVaultAuditLogsPage = () => {
- const { t } = useTranslation();
-
return (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
- <title>{t("common.head-title", { title: "Audit Logs" })}</title>
+ <PageTitle title="Audit Logs" />
<PageHeader
scope={ProjectType.AgentVault}
icon={FileText}
diff --git a/frontend/src/pages/agent-vault/AgentVaultProxiesPage/AgentVaultProxiesPage.tsx b/frontend/src/pages/agent-vault/AgentVaultProxiesPage/AgentVaultProxiesPage.tsx
index 4f9635cef3..7340976a65 100644
--- a/frontend/src/pages/agent-vault/AgentVaultProxiesPage/AgentVaultProxiesPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultProxiesPage/AgentVaultProxiesPage.tsx
@@ -1,5 +1,4 @@
import { ReactNode, useState } from "react";
-import { useTranslation } from "react-i18next";
import { format } from "date-fns";
import {
BanIcon,
@@ -15,6 +14,7 @@ import {
import { twMerge } from "tailwind-merge";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
AlertDialog,
AlertDialogAction,
@@ -136,7 +136,6 @@ const truncateFingerprint = (fingerprint: string) =>
`${fingerprint.split(":").slice(0, 5).join(":")}…`;
export const AgentVaultProxiesPage = () => {
- const { t } = useTranslation();
const { hasProjectRole } = useProjectPermission();
const isAdmin = hasProjectRole(ProjectMembershipRole.Admin);
@@ -223,7 +222,7 @@ export const AgentVaultProxiesPage = () => {
return (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
- <title>{t("common.head-title", { title: "Proxies" })}</title>
+ <PageTitle title="Proxies" />
<PageHeader
scope={ProjectType.AgentVault}
icon={ServerIcon}
diff --git a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx
index cc669c09f1..59fb842fd9 100644
--- a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx
@@ -1,5 +1,4 @@
import { useState } from "react";
-import { useTranslation } from "react-i18next";
import { Link, linkOptions } from "@tanstack/react-router";
import { format } from "date-fns";
import {
@@ -19,6 +18,7 @@ import {
import { AgentVaultSessionLogUpgradeModal } from "@app/components/agent-vault/AgentVaultSessionLogUpgradeModal";
import { memberDisplayName, memberSubtitle } from "@app/components/agent-vault/MemberName";
+import { PageTitle } from "@app/components/PageTitle";
import {
Alert,
AlertAction,
@@ -102,7 +102,6 @@ const STATUS_OPTIONS = [
];
export const AgentVaultSessionsPage = () => {
- const { t } = useTranslation();
const { currentOrg } = useOrganization();
const { hasProjectRole } = useProjectPermission();
const isAdmin = hasProjectRole(ProjectMembershipRole.Admin);
@@ -181,7 +180,7 @@ export const AgentVaultSessionsPage = () => {
return (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
- <title>{t("common.head-title", { title: "Sessions" })}</title>
+ <PageTitle title="Sessions" />
<PageHeader
scope={ProjectType.AgentVault}
icon={IdCardIcon}
diff --git a/frontend/src/pages/agent-vault/AgentVaultSettingsPage/AgentVaultSettingsPage.tsx b/frontend/src/pages/agent-vault/AgentVaultSettingsPage/AgentVaultSettingsPage.tsx
index ef7fdf24fa..338e0f2440 100644
--- a/frontend/src/pages/agent-vault/AgentVaultSettingsPage/AgentVaultSettingsPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultSettingsPage/AgentVaultSettingsPage.tsx
@@ -1,6 +1,6 @@
-import { useTranslation } from "react-i18next";
import { SettingsIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { AccessRestrictedDialog, PageHeader } from "@app/components/v3";
import { useProjectPermission } from "@app/context";
import { ProjectType } from "@app/hooks/api/projects/types";
@@ -10,13 +10,12 @@ import { SessionLogAlerts } from "./components/SessionLogAlerts";
import { SessionLogSection } from "./components/SessionLogSection";
export const AgentVaultSettingsPage = () => {
- const { t } = useTranslation();
const { hasProjectRole } = useProjectPermission();
const isAdmin = hasProjectRole(ProjectMembershipRole.Admin);
return (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
- <title>{t("common.head-title", { title: "Settings" })}</title>
+ <PageTitle title="Settings" />
<PageHeader
scope={ProjectType.AgentVault}
diff --git a/frontend/src/pages/agent-vault/AgentVaultVariablesPage/AgentVaultVariablesPage.tsx b/frontend/src/pages/agent-vault/AgentVaultVariablesPage/AgentVaultVariablesPage.tsx
index bde18308dd..480c0ed6e1 100644
--- a/frontend/src/pages/agent-vault/AgentVaultVariablesPage/AgentVaultVariablesPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultVariablesPage/AgentVaultVariablesPage.tsx
@@ -1,7 +1,7 @@
-import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { BracesIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader, Tabs, TabsContent, TabsList, TabsTrigger } from "@app/components/v3";
import { useOrganization, useProjectPermission } from "@app/context";
import { AgentVaultVariableScope } from "@app/hooks/api/agentVault";
@@ -13,7 +13,6 @@ import { VariablesCard } from "./components/VariablesCard";
// Global variables are an admin's alone, so a member sees only their personal ones, without tabs. Nobody can see
// anyone else's personal variables, admins included.
export const AgentVaultVariablesPage = () => {
- const { t } = useTranslation();
const navigate = useNavigate();
const { currentOrg } = useOrganization();
const { hasProjectRole } = useProjectPermission();
@@ -38,7 +37,7 @@ export const AgentVaultVariablesPage = () => {
return (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
- <title>{t("common.head-title", { title: "Variables" })}</title>
+ <PageTitle title="Variables" />
<PageHeader
scope={ProjectType.AgentVault}
diff --git a/frontend/src/pages/auth/AccountRecoveryEmailPage/AccountRecoveryEmailPage.tsx b/frontend/src/pages/auth/AccountRecoveryEmailPage/AccountRecoveryEmailPage.tsx
index 6f1de23881..c35e79c269 100644
--- a/frontend/src/pages/auth/AccountRecoveryEmailPage/AccountRecoveryEmailPage.tsx
+++ b/frontend/src/pages/auth/AccountRecoveryEmailPage/AccountRecoveryEmailPage.tsx
@@ -6,6 +6,7 @@ import { MailCheck } from "lucide-react";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
import { EmailServiceSetupModal } from "@app/components/auth/EmailServiceSetupModal";
+import { PageTitle } from "@app/components/PageTitle";
import { Button, CardContent, CardHeader, CardTitle, Input } from "@app/components/v3";
import { envConfig } from "@app/config/env";
import { usePopUp } from "@app/hooks";
@@ -55,7 +56,7 @@ export const AccountRecoveryEmailPage = () => {
return (
<AuthPageLayout variant="focused">
- <title>Account Recovery</title>
+ <PageTitle title="Account Recovery" />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content="Account Recovery in Infisical" />
diff --git a/frontend/src/pages/auth/AccountRecoveryResetPage/AccountRecoveryResetPage.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/AccountRecoveryResetPage.tsx
index 229496eedb..2f47177129 100644
--- a/frontend/src/pages/auth/AccountRecoveryResetPage/AccountRecoveryResetPage.tsx
+++ b/frontend/src/pages/auth/AccountRecoveryResetPage/AccountRecoveryResetPage.tsx
@@ -3,6 +3,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ConfirmationAlertDialog } from "@app/components/v3/platform";
import { ROUTE_PATHS } from "@app/const/routes";
import { usePopUp } from "@app/hooks";
@@ -62,6 +63,7 @@ export const AccountRecoveryResetPage = () => {
return (
<AuthPageLayout variant="focused" contentClassName="max-w-2xl">
+ <PageTitle title="Account Recovery" />
{step === Steps.ConfirmEmail && (
<ConfirmEmailStep
onComplete={(verifyToken, userEncryptionVersion, hasEmailAuth) => {
diff --git a/frontend/src/pages/auth/CliRedirectPage/CliRedirectPage.tsx b/frontend/src/pages/auth/CliRedirectPage/CliRedirectPage.tsx
index 3d7c1d000a..288a752fd0 100644
--- a/frontend/src/pages/auth/CliRedirectPage/CliRedirectPage.tsx
+++ b/frontend/src/pages/auth/CliRedirectPage/CliRedirectPage.tsx
@@ -4,6 +4,7 @@ import { CheckIcon, CopyIcon, EyeIcon, EyeOffIcon, KeyRoundIcon, TerminalIcon }
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
CardContent,
@@ -49,7 +50,7 @@ export const CliRedirectPage = () => {
return (
<AuthPageLayout variant="focused">
- <title>Infisical CLI | Login Successful!</title>
+ <PageTitle title="CLI Login Successful" />
<link rel="icon" href="/infisical.ico" />
{cliToken ? (
<AuthPagePanel className="text-center">
diff --git a/frontend/src/pages/auth/EmailNotVerifiedPage/EmailNotVerifiedPage.tsx b/frontend/src/pages/auth/EmailNotVerifiedPage/EmailNotVerifiedPage.tsx
index 23936ca36e..4f9154c5a3 100644
--- a/frontend/src/pages/auth/EmailNotVerifiedPage/EmailNotVerifiedPage.tsx
+++ b/frontend/src/pages/auth/EmailNotVerifiedPage/EmailNotVerifiedPage.tsx
@@ -2,12 +2,13 @@ import { Link } from "@tanstack/react-router";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
+import { PageTitle } from "@app/components/PageTitle";
import { Button, CardContent, CardDescription, CardHeader, CardTitle } from "@app/components/v3";
export const EmailNotVerifiedPage = () => {
return (
<AuthPageLayout variant="focused">
- <title>Email Not Verified</title>
+ <PageTitle title="Email Not Verified" />
<link rel="icon" href="/infisical.ico" />
<AuthPagePanel>
<CardHeader className="mb-6 gap-2 text-center">
diff --git a/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx b/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx
index 4038a8e829..e45096f5b3 100644
--- a/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx
+++ b/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx
@@ -6,6 +6,7 @@ import { ChevronLeft } from "lucide-react";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { Button, CardContent, CardHeader, CardTitle, IconButton, Input } from "@app/components/v3";
import { useServerConfig } from "@app/context";
import { LoginMethod } from "@app/hooks/api/admin/types";
@@ -73,7 +74,7 @@ export const LoginLdapPage = () => {
return (
<AuthPageLayout variant="focused">
- <title>{t("common.head-title", { title: t("login.title") })}</title>
+ <PageTitle title={t("login.title")} />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content={t("login.og-title") ?? ""} />
diff --git a/frontend/src/pages/auth/LoginPage/LoginPage.tsx b/frontend/src/pages/auth/LoginPage/LoginPage.tsx
index e8e283af24..3787fcc8f3 100644
--- a/frontend/src/pages/auth/LoginPage/LoginPage.tsx
+++ b/frontend/src/pages/auth/LoginPage/LoginPage.tsx
@@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next";
import { Link } from "@tanstack/react-router";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
+import { PageTitle } from "@app/components/PageTitle";
import { useServerConfig } from "@app/context";
import { LoginMethod } from "@app/hooks/api/admin/types";
@@ -31,7 +32,7 @@ export const LoginPage = ({ isAdmin }: { isAdmin?: boolean }) => {
) : undefined
}
>
- <title>{t("common.head-title", { title: t("login.title") })}</title>
+ <PageTitle title={isAdmin ? t("page-titles.admin-login") : t("login.title")} />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content={t("login.og-title") ?? ""} />
diff --git a/frontend/src/pages/auth/LoginSsoPage/LoginSsoPage.tsx b/frontend/src/pages/auth/LoginSsoPage/LoginSsoPage.tsx
index c9b022f1ae..753affd085 100644
--- a/frontend/src/pages/auth/LoginSsoPage/LoginSsoPage.tsx
+++ b/frontend/src/pages/auth/LoginSsoPage/LoginSsoPage.tsx
@@ -6,6 +6,7 @@ import { z } from "zod";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
CardContent,
@@ -74,7 +75,7 @@ export const LoginSsoPage = ({ type }: Props) => {
return (
<AuthPageLayout variant="focused">
- <title>{t("common.head-title", { title: `${type} Login` })}</title>
+ <PageTitle title={`${type} Login`} />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content={t("login.og-title") ?? ""} />
diff --git a/frontend/src/pages/auth/PasswordSetupPage/PasswordSetupPage.tsx b/frontend/src/pages/auth/PasswordSetupPage/PasswordSetupPage.tsx
index c9e0297a9a..89b15b146b 100644
--- a/frontend/src/pages/auth/PasswordSetupPage/PasswordSetupPage.tsx
+++ b/frontend/src/pages/auth/PasswordSetupPage/PasswordSetupPage.tsx
@@ -9,6 +9,7 @@ import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
import { PasswordField } from "@app/components/auth/PasswordField";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { createPasswordSchema } from "@app/components/utilities/checks/password/passwordPolicy";
import { usePasswordBreachCheck } from "@app/components/utilities/checks/password/usePasswordBreachCheck";
import {
@@ -107,6 +108,7 @@ export const PasswordSetupPage = () => {
return (
<AuthPageLayout variant="focused">
+ <PageTitle title="Set Password" />
<form className="w-full" onSubmit={handleSubmit(handleSetPassword)}>
<AuthPagePanel>
<CardHeader className="mb-6 gap-2">
diff --git a/frontend/src/pages/auth/ProviderErrorPage/ProviderErrorPage.tsx b/frontend/src/pages/auth/ProviderErrorPage/ProviderErrorPage.tsx
index eb03c3387c..049a9770f6 100644
--- a/frontend/src/pages/auth/ProviderErrorPage/ProviderErrorPage.tsx
+++ b/frontend/src/pages/auth/ProviderErrorPage/ProviderErrorPage.tsx
@@ -1,10 +1,17 @@
import { useEffect } from "react";
+import { PageTitle } from "@app/components/PageTitle";
+
export const LoginProviderErrorPage = () => {
useEffect(() => {
window.localStorage.setItem("PROVIDER_AUTH_ERROR", "err");
window.close();
}, []);
- return <div />;
+ return (
+ <>
+ <PageTitle title="Login Failed" />
+ <div />
+ </>
+ );
};
diff --git a/frontend/src/pages/auth/RequestNewInvitePage/RequestNewInvitePage.tsx b/frontend/src/pages/auth/RequestNewInvitePage/RequestNewInvitePage.tsx
index 89503ca32f..4755aefeb0 100644
--- a/frontend/src/pages/auth/RequestNewInvitePage/RequestNewInvitePage.tsx
+++ b/frontend/src/pages/auth/RequestNewInvitePage/RequestNewInvitePage.tsx
@@ -2,6 +2,7 @@ import { Link, useSearch } from "@tanstack/react-router";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
+import { PageTitle } from "@app/components/PageTitle";
import { Button, CardContent, CardDescription, CardHeader, CardTitle } from "@app/components/v3";
/**
@@ -15,7 +16,7 @@ export const RequestNewInvitePage = () => {
return (
<AuthPageLayout variant="focused">
- <title>{isAlreadyMember ? "Already a Member" : "Request a New Invite"}</title>
+ <PageTitle title={isAlreadyMember ? "Already a Member" : "Request a New Invite"} />
<link rel="icon" href="/infisical.ico" />
<AuthPagePanel>
<CardHeader className="mb-6 gap-2 text-center">
diff --git a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
index 097f04650c..edb333df6e 100644
--- a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
+++ b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
@@ -18,6 +18,7 @@ import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
import { Mfa } from "@app/components/auth/Mfa";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import SecurityClient from "@app/components/utilities/SecurityClient";
import {
Breadcrumb,
@@ -448,16 +449,19 @@ export const SelectOrgPage = () => {
if (userLoading || !user) {
return (
- <div className="h-screen w-screen bg-page">
- <PageLoader />
- </div>
+ <>
+ <PageTitle title={t("page-titles.select-organization")} />
+ <div className="h-screen w-screen bg-page">
+ <PageLoader />
+ </div>
+ </>
);
}
if (shouldShowMfa) {
return (
<>
- <title>{t("common.head-title", { title: t("login.title") })}</title>
+ <PageTitle title={t("page-titles.select-organization")} />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content={t("login.og-title") ?? ""} />
@@ -483,7 +487,7 @@ export const SelectOrgPage = () => {
return (
<AuthPageLayout variant="focused" showFooter={false}>
- <title>{t("common.head-title", { title: t("login.title") })}</title>
+ <PageTitle title={t("page-titles.select-organization")} />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content={t("login.og-title") ?? ""} />
diff --git a/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx b/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx
index e56e91c0e5..fc308e2402 100644
--- a/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx
+++ b/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx
@@ -3,6 +3,7 @@ import { MailX } from "lucide-react";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
+import { PageTitle } from "@app/components/PageTitle";
import { CardContent, CardHeader, CardTitle } from "@app/components/v3";
import { SignUpPage } from "../SignUpPage/SignUpPage";
@@ -15,7 +16,7 @@ export const SignupInvitePage = () => {
if (error) {
return (
<AuthPageLayout variant="focused">
- <title>Invalid Invitation</title>
+ <PageTitle title="Invalid Invitation" />
<link rel="icon" href="/infisical.ico" />
<AuthPagePanel className="text-center">
<CardHeader className="mb-6 items-center gap-2 text-center">
diff --git a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx
index dbe1614eda..90d072106f 100644
--- a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx
+++ b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx
@@ -26,6 +26,7 @@ import {
import TeamInviteStep from "@app/components/auth/TeamInviteStep";
import UserInfoStep from "@app/components/auth/UserInfoStep";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { envConfig } from "@app/config/env";
import { useServerConfig } from "@app/context";
import { useSelectOrganization } from "@app/hooks/api/auth/queries";
@@ -299,7 +300,7 @@ export const SignUpPage = ({ invite }: SignUpPageProps) => {
const pageContent = (
<>
- <title>{t("common.head-title", { title: t("signup.title") })}</title>
+ <PageTitle title={t("signup.title")} />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content={t("signup.og-title") as string} />
@@ -321,12 +322,15 @@ export const SignUpPage = ({ invite }: SignUpPageProps) => {
if (!signupFlowVariant) {
return (
- <div className="flex min-h-screen items-center justify-center bg-page" role="status">
- <div className="flex flex-col items-center gap-3 text-sm text-label">
- <LoaderCircle className="size-5 animate-spin text-project motion-reduce:animate-none" />
- <span>Preparing sign up</span>
+ <>
+ <PageTitle title={t("signup.title")} />
+ <div className="flex min-h-screen items-center justify-center bg-page" role="status">
+ <div className="flex flex-col items-center gap-3 text-sm text-label">
+ <LoaderCircle className="size-5 animate-spin text-project motion-reduce:animate-none" />
+ <span>Preparing sign up</span>
+ </div>
</div>
- </div>
+ </>
);
}
diff --git a/frontend/src/pages/auth/SignUpSsoPage/SignUpSsoPage.tsx b/frontend/src/pages/auth/SignUpSsoPage/SignUpSsoPage.tsx
index 2ea7eeb32e..65a75193f4 100644
--- a/frontend/src/pages/auth/SignUpSsoPage/SignUpSsoPage.tsx
+++ b/frontend/src/pages/auth/SignUpSsoPage/SignUpSsoPage.tsx
@@ -7,6 +7,7 @@ import { captureSignupCompleted } from "@app/components/analytics/experiments/si
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import SecurityClient from "@app/components/utilities/SecurityClient";
import Telemetry from "@app/components/utilities/telemetry/Telemetry";
import {
@@ -131,7 +132,7 @@ export const SignupSsoPage = () => {
</Button>
}
>
- <title>{t("common.head-title", { title: t("signup.title") })}</title>
+ <PageTitle title={t("signup.title")} />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content={t("signup.og-title") as string} />
diff --git a/frontend/src/pages/cert-manager/AlertingPage/AlertingPage.tsx b/frontend/src/pages/cert-manager/AlertingPage/AlertingPage.tsx
index eefeff776c..de9b9726e9 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/AlertingPage.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/AlertingPage.tsx
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
-import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
DocumentationLinkBadge,
@@ -19,7 +19,6 @@ import { PkiDocsUrls } from "../pki-docs-urls";
import { PkiAlertsSection, PkiCollectionSection } from "./components";
export const AlertingPage = () => {
- const { t } = useTranslation();
const { currentProject } = useProject();
const [selectedTab, setSelectedTab] = useState("rule-based");
const [tabsOrientation, setTabsOrientation] = useState<"horizontal" | "vertical">(() =>
@@ -44,7 +43,7 @@ export const AlertingPage = () => {
return (
<div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: "Alerting" })}</title>
+ <PageTitle title="Alerting" />
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx
index 4818f81b5d..8f6a9b9106 100644
--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx
@@ -11,6 +11,7 @@ import {
} from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
AccessRestrictedDialog,
Button,
@@ -163,7 +164,12 @@ export const ApplicationDetailsByIDPage = () => {
};
if (isPending) {
- return <PageLoader />;
+ return (
+ <>
+ <PageTitle title="Application" />
+ <PageLoader />
+ </>
+ );
}
const isAccessForbidden =
@@ -174,21 +180,34 @@ export const ApplicationDetailsByIDPage = () => {
if (isAccessForbidden) {
return (
- <AccessRestrictedDialog description="You don't have access to this application. An administrator can grant it." />
+ <>
+ <PageTitle title="Application" />
+ <AccessRestrictedDialog description="You don't have access to this application. An administrator can grant it." />
+ </>
);
}
if (!application) {
- return <div className="p-12 text-muted">Application not found.</div>;
+ return (
+ <>
+ <PageTitle title="Application" />
+ <div className="p-12 text-muted">Application not found.</div>
+ </>
+ );
}
if (isPermissionsPending) {
- return <PageLoader />;
+ return (
+ <>
+ <PageTitle title="Application" />
+ <PageLoader />
+ </>
+ );
}
return (
<>
- <title>{application.name}</title>
+ <PageTitle title={application.name || "Application"} />
<div className="h-full bg-page">
<div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
diff --git a/frontend/src/pages/cert-manager/ApplicationsPage/ApplicationsPage.tsx b/frontend/src/pages/cert-manager/ApplicationsPage/ApplicationsPage.tsx
index 8834423be6..03f8ae41ff 100644
--- a/frontend/src/pages/cert-manager/ApplicationsPage/ApplicationsPage.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationsPage/ApplicationsPage.tsx
@@ -2,6 +2,7 @@ import { useState } from "react";
import { useNavigate, useParams } from "@tanstack/react-router";
import { InfoIcon, MoreHorizontalIcon, PlusIcon, SlidersHorizontalIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -173,7 +174,7 @@ export const ApplicationsPage = () => {
return (
<>
- <title>Applications</title>
+ <PageTitle title="Applications" />
<div className="h-full bg-page">
<div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
diff --git a/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/ApprovalRequestDetailPage.tsx b/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/ApprovalRequestDetailPage.tsx
index e9d3a0fbf4..b76701c735 100644
--- a/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/ApprovalRequestDetailPage.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/ApprovalRequestDetailPage.tsx
@@ -6,6 +6,7 @@ import { format } from "date-fns";
import { twMerge } from "tailwind-merge";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -459,7 +460,7 @@ const PageContent = () => {
export const ApprovalRequestDetailPage = () => {
return (
<>
- <title>Approval Request | Infisical</title>
+ <PageTitle title="Approval Request" />
<link rel="icon" href="/infisical.ico" />
<PageContent />
</>
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/ApprovalsPage.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/ApprovalsPage.tsx
index a5f0649ed0..29ba0fe4df 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/ApprovalsPage.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/ApprovalsPage.tsx
@@ -1,5 +1,6 @@
import { useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { useProject } from "@app/context";
@@ -16,6 +17,7 @@ export const ApprovalsPage = () => {
return (
<div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
+ <PageTitle title="Certificate Approvals" />
<link rel="icon" href="/infisical.ico" />
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
index 519c5f0b2d..4e125fd546 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
@@ -5,6 +5,7 @@ import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router"
import { EllipsisIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -214,7 +215,7 @@ const Page = () => {
export const CertAuthDetailsByIDPage = () => {
return (
<>
- <title>Certificate Authority</title>
+ <PageTitle title="Certificate Authority" />
<link rel="icon" href="/infisical.ico" />
<Page />
</>
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/CertificateAuthoritiesPage.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/CertificateAuthoritiesPage.tsx
index 00f92cb8f9..e82164385e 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/CertificateAuthoritiesPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/CertificateAuthoritiesPage.tsx
@@ -1,6 +1,6 @@
-import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader, Tabs, TabsContent, TabsList, TabsTrigger } from "@app/components/v3";
import { ProjectPermissionActions, ProjectPermissionSub, useOrganization } from "@app/context";
@@ -15,7 +15,6 @@ export enum CertificateAuthorityTab {
}
export const CertificateAuthoritiesPage = () => {
- const { t } = useTranslation();
const navigate = useNavigate();
const { currentOrg } = useOrganization();
@@ -36,7 +35,7 @@ export const CertificateAuthoritiesPage = () => {
return (
<div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: "Certificate Authorities" })}</title>
+ <PageTitle title="Certificate Authorities" />
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx
index 3b5c5c9dbc..beabb7af0e 100644
--- a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx
@@ -3,6 +3,7 @@ import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router"
import { ChevronLeftIcon, EllipsisIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { getCertificateDisplayName } from "@app/components/utilities/certificateDisplayUtils";
import {
AccessRestrictedDialog,
@@ -554,7 +555,7 @@ const Page = () => {
export const CertificateDetailsByIDPage = () => {
return (
<>
- <title>Certificate Details</title>
+ <PageTitle title="Certificate Details" />
<link rel="icon" href="/infisical.ico" />
<Page />
</>
diff --git a/frontend/src/pages/cert-manager/CertificatePoliciesPage/CertificatePoliciesPage.tsx b/frontend/src/pages/cert-manager/CertificatePoliciesPage/CertificatePoliciesPage.tsx
index 4433fcd45a..ee3881c03a 100644
--- a/frontend/src/pages/cert-manager/CertificatePoliciesPage/CertificatePoliciesPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificatePoliciesPage/CertificatePoliciesPage.tsx
@@ -1,5 +1,4 @@
-import { useTranslation } from "react-i18next";
-
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3";
import { ProjectPermissionSub } from "@app/context";
@@ -9,10 +8,9 @@ import { ProjectType } from "@app/hooks/api/projects/types";
import { CertificatePoliciesTab } from "../PoliciesPage/components";
export const CertificatePoliciesPage = () => {
- const { t } = useTranslation();
return (
<div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: "Certificate Policies" })}</title>
+ <PageTitle title="Certificate Policies" />
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx
index 543ae2af18..0b15e0172f 100644
--- a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx
@@ -5,6 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3";
import { ConfirmationAlertDialog } from "@app/components/v3/platform";
@@ -194,7 +195,7 @@ const Page = () => {
export const CertificatePolicyDetailsByIDPage = () => {
return (
<>
- <title>Certificate Policy</title>
+ <PageTitle title="Certificate Policy" />
<link rel="icon" href="/infisical.ico" />
<Page />
</>
diff --git a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx
index feac7e0d3b..2b6efee73c 100644
--- a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx
@@ -5,6 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3";
import { ConfirmationAlertDialog } from "@app/components/v3/platform";
@@ -167,7 +168,7 @@ const Page = () => {
export const CertificateProfileDetailsByIDPage = () => {
return (
<>
- <title>Certificate Profile</title>
+ <PageTitle title="Certificate Profile" />
<link rel="icon" href="/infisical.ico" />
<Page />
</>
diff --git a/frontend/src/pages/cert-manager/CertificateProfilesPage/CertificateProfilesPage.tsx b/frontend/src/pages/cert-manager/CertificateProfilesPage/CertificateProfilesPage.tsx
index 17b5b31dcd..3a7050c38b 100644
--- a/frontend/src/pages/cert-manager/CertificateProfilesPage/CertificateProfilesPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificateProfilesPage/CertificateProfilesPage.tsx
@@ -1,5 +1,4 @@
-import { useTranslation } from "react-i18next";
-
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3";
import { ProjectPermissionSub } from "@app/context";
@@ -9,10 +8,9 @@ import { ProjectType } from "@app/hooks/api/projects/types";
import { CertificateProfilesTab } from "../PoliciesPage/components";
export const CertificateProfilesPage = () => {
- const { t } = useTranslation();
return (
<div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: "Certificate Profiles" })}</title>
+ <PageTitle title="Certificate Profiles" />
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/CodeSigningPage.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/CodeSigningPage.tsx
index f095e292ab..c5115f1492 100644
--- a/frontend/src/pages/cert-manager/CodeSigningPage/CodeSigningPage.tsx
+++ b/frontend/src/pages/cert-manager/CodeSigningPage/CodeSigningPage.tsx
@@ -1,7 +1,7 @@
import { useState } from "react";
-import { useTranslation } from "react-i18next";
import { PenTool } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { useProject } from "@app/context";
import { ProjectType } from "@app/hooks/api/projects/types";
@@ -10,13 +10,12 @@ import { CreateSignerWizard } from "./components/CreateSignerWizard";
import { SignersTable } from "./components/SignersTable";
export const CodeSigningPage = () => {
- const { t } = useTranslation();
const { currentProject } = useProject();
const [isCreateOpen, setIsCreateOpen] = useState(false);
return (
<div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: "Code Signing" })}</title>
+ <PageTitle title="Code Signing" />
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx b/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
index d0f2f29de5..f1dea91def 100644
--- a/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
+++ b/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
@@ -1,7 +1,7 @@
import { useCallback, useState } from "react";
-import { useTranslation } from "react-i18next";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader, PageLoader } from "@app/components/v3";
import { useProject } from "@app/context";
@@ -29,7 +29,6 @@ import {
} from "./components";
export const DashboardPage = () => {
- const { t } = useTranslation();
const { currentProject } = useProject();
const navigate = useNavigate();
const [trendRange, setTrendRange] = useState("30d");
@@ -53,11 +52,16 @@ export const DashboardPage = () => {
[navigate, currentProject]
);
if (!currentProject) {
- return <PageLoader />;
+ return (
+ <>
+ <PageTitle title="Certificate Dashboard" />
+ <PageLoader />
+ </>
+ );
}
return (
<div className="h-full bg-page">
- <title>{t("common.head-title", { title: "Certificate Dashboard" })}</title>
+ <PageTitle title="Certificate Dashboard" />
<div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/DiscoveryDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/DiscoveryDetailsByIDPage.tsx
index 28143d13f8..9c02cb3b98 100644
--- a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/DiscoveryDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/DiscoveryDetailsByIDPage.tsx
@@ -3,6 +3,7 @@ import { useQueryClient } from "@tanstack/react-query";
import { Link, useNavigate, useParams } from "@tanstack/react-router";
import { ChevronLeftIcon, EllipsisIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Badge,
@@ -212,7 +213,7 @@ const Page = () => {
export const DiscoveryDetailsByIDPage = () => {
return (
<>
- <title>Discovery Job Details</title>
+ <PageTitle title="Discovery Job Details" />
<link rel="icon" href="/infisical.ico" />
<Page />
</>
diff --git a/frontend/src/pages/cert-manager/DiscoveryPage/DiscoveryPage.tsx b/frontend/src/pages/cert-manager/DiscoveryPage/DiscoveryPage.tsx
index 89ced90bf9..90a652546e 100644
--- a/frontend/src/pages/cert-manager/DiscoveryPage/DiscoveryPage.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryPage/DiscoveryPage.tsx
@@ -1,6 +1,6 @@
-import { useTranslation } from "react-i18next";
import { useNavigate, useParams, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
DocumentationLinkBadge,
@@ -23,7 +23,6 @@ import { PkiDocsUrls } from "../pki-docs-urls";
import { DiscoveryJobsTab, InstallationsTab } from "./components";
export const DiscoveryPage = () => {
- const { t } = useTranslation();
const navigate = useNavigate();
const { orgId } = useParams({ strict: false });
const { currentProject } = useProject();
@@ -43,7 +42,7 @@ export const DiscoveryPage = () => {
return (
<div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: "Certificate Discovery" })}</title>
+ <PageTitle title="Certificate Discovery" />
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/HsmConnectorDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/HsmConnectorDetailsByIDPage.tsx
index 54ecf4b9de..4d9b4cb125 100644
--- a/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/HsmConnectorDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/HsmConnectorDetailsByIDPage.tsx
@@ -3,6 +3,7 @@ import { Link, useNavigate, useParams } from "@tanstack/react-router";
import { ChevronLeftIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
@@ -128,7 +129,7 @@ const Page = () => {
export const HsmConnectorDetailsByIDPage = () => (
<>
- <title>HSM Connectors</title>
+ <PageTitle title="HSM Connector" />
<link rel="icon" href="/infisical.ico" />
<Page />
</>
diff --git a/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx
index aa636dde87..016034d041 100644
--- a/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx
@@ -8,6 +8,7 @@ import {
TriangleAlertIcon
} from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Alert,
@@ -243,7 +244,7 @@ const Page = () => {
export const InstallationDetailsByIDPage = () => {
return (
<>
- <title>Installation Details</title>
+ <PageTitle title="Installation Details" />
<link rel="icon" href="/infisical.ico" />
<Page />
</>
diff --git a/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx
index f3d5ca5083..e40a5b07cb 100644
--- a/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx
+++ b/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx
@@ -1,6 +1,6 @@
-import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader, Tabs, TabsContent } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
@@ -14,7 +14,6 @@ import { AppConnectionsTab, PkiSyncsTab } from "./components";
export const IntegrationsListPage = () => {
const navigate = useNavigate();
const { currentOrg } = useOrganization();
- const { t } = useTranslation();
const { selectedTab } = useSearch({
from: ROUTE_PATHS.CertManager.IntegrationsListPage.id
@@ -36,7 +35,7 @@ export const IntegrationsListPage = () => {
return (
<>
- <title>{t("common.head-title", { title: "Integrations" })}</title>
+ <PageTitle title="Integrations" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content="Manage your certificates in seconds" />
<meta name="og:description" content="Sync and manage PKI certificates across services" />
diff --git a/frontend/src/pages/cert-manager/InventoryPage/InventoryPage.tsx b/frontend/src/pages/cert-manager/InventoryPage/InventoryPage.tsx
index c932f61e28..ecb5fe14d8 100644
--- a/frontend/src/pages/cert-manager/InventoryPage/InventoryPage.tsx
+++ b/frontend/src/pages/cert-manager/InventoryPage/InventoryPage.tsx
@@ -1,7 +1,7 @@
import { useMemo } from "react";
-import { useTranslation } from "react-i18next";
import { useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { AccessRestrictedDialog, PageHeader, PageLoader } from "@app/components/v3";
import { useProject, useProjectPermission } from "@app/context";
import {
@@ -15,7 +15,6 @@ import type { FilterRule } from "../CertificatesPage/components/inventory-types"
import { CertificatesTab } from "../PoliciesPage/components/CertificatesTab";
export const InventoryPage = () => {
- const { t } = useTranslation();
const { currentProject } = useProject();
const { permission } = useProjectPermission();
const searchParams = useSearch({
@@ -87,12 +86,17 @@ export const InventoryPage = () => {
);
if (!currentProject) {
- return <PageLoader />;
+ return (
+ <>
+ <PageTitle title="Inventory" />
+ <PageLoader />
+ </>
+ );
}
return (
<div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: "Inventory" })}</title>
+ <PageTitle title="Inventory" />
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx
index 1a28216024..dea84d3ad5 100644
--- a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx
@@ -1,9 +1,9 @@
-import { useTranslation } from "react-i18next";
import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Link, useNavigate, useParams } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -168,10 +168,9 @@ export const PkiCollectionPage = () => {
};
export const PkiCollectionDetailsByIDPage = () => {
- const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: "PKI Collection" })}</title>
+ <PageTitle title="PKI Collection" />
<link rel="icon" href="/infisical.ico" />
<ProjectPermissionCan
renderGuardBanner
diff --git a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx
index 1b79134d1e..66f8036641 100644
--- a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx
@@ -1,9 +1,9 @@
-import { useTranslation } from "react-i18next";
import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Link, useNavigate, useParams } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -152,10 +152,9 @@ const Page = () => {
};
export const PkiSubscriberDetailsByIDPage = () => {
- const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: "PKI Subscriber" })}</title>
+ <PageTitle title="PKI Subscriber" />
<ProjectPermissionCan
I={ProjectPermissionPkiSubscriberActions.Read}
a={ProjectPermissionSub.PkiSubscribers}
diff --git a/frontend/src/pages/cert-manager/PkiSubscribersPage/PkiSubscribersPage.tsx b/frontend/src/pages/cert-manager/PkiSubscribersPage/PkiSubscribersPage.tsx
index fb385f2d9b..0b2f233c3e 100644
--- a/frontend/src/pages/cert-manager/PkiSubscribersPage/PkiSubscribersPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscribersPage/PkiSubscribersPage.tsx
@@ -1,5 +1,4 @@
-import { useTranslation } from "react-i18next";
-
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { LegacyPkiResource } from "@app/const/legacyPkiDeprecation";
import { ProjectType } from "@app/hooks/api/projects/types";
@@ -8,10 +7,9 @@ import { LegacyPkiDeprecationAlert } from "../components/LegacyPkiDeprecationAle
import { PkiSubscriberSection } from "./components";
export const PkiSubscribersPage = () => {
- const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: "PKI Subscribers" })}</title>
+ <PageTitle title="PKI Subscribers" />
<div className="h-full bg-page">
<div className="mx-auto flex flex-col justify-between text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
diff --git a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/PkiSyncDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/PkiSyncDetailsByIDPage.tsx
index b8645fd8a1..934445194b 100644
--- a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/PkiSyncDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/PkiSyncDetailsByIDPage.tsx
@@ -2,6 +2,7 @@ import { useState } from "react";
import { useNavigate, useParams, useSearch } from "@tanstack/react-router";
import { BanIcon, ChevronLeftIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
EditPkiSyncModal,
PkiSyncImportStatusBadge,
@@ -186,7 +187,7 @@ const PageContent = () => {
export const PkiSyncDetailsByIDPage = () => {
return (
<>
- <title>PKI Sync | Infisical</title>
+ <PageTitle title="PKI Sync" />
<link rel="icon" href="/infisical.ico" />
<PageContent />
</>
diff --git a/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx b/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx
index b8331e934b..a2260a3dfd 100644
--- a/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx
@@ -1,5 +1,4 @@
import { useState } from "react";
-import { useTranslation } from "react-i18next";
import {
faCog,
faEllipsis,
@@ -16,6 +15,7 @@ import {
useUpgradeGate
} from "@app/components/license/UpgradeGate";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Badge,
@@ -73,7 +73,6 @@ import { PkiTemplateForm } from "./components/PkiTemplateForm";
const PER_PAGE_INIT = 25;
export const PkiTemplateListPage = () => {
- const { t } = useTranslation();
const [page, setPage] = useState(1);
const [perPage, setPerPage] = useState(PER_PAGE_INIT);
@@ -121,7 +120,7 @@ export const PkiTemplateListPage = () => {
return (
<>
- <title>{t("common.head-title", { title: "PKI Templates" })}</title>
+ <PageTitle title="PKI Templates" />
<div className="h-full bg-page">
<div className="mx-auto flex flex-col justify-between">
<div className="mx-auto flex w-full max-w-8xl flex-col">
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx b/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx
index ff589a23a1..a2225b0a01 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx
@@ -1,7 +1,7 @@
import { useMemo, useState } from "react";
-import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { AccessRestrictedDialog, PageHeader, PageLoader } from "@app/components/v3";
import { useProject, useProjectPermission } from "@app/context";
import {
@@ -25,7 +25,6 @@ enum TabSections {
}
export const PoliciesPage = () => {
- const { t } = useTranslation();
const { currentProject } = useProject();
const { permission } = useProjectPermission();
const navigate = useNavigate();
@@ -126,12 +125,17 @@ export const PoliciesPage = () => {
};
if (!currentProject) {
- return <PageLoader />;
+ return (
+ <>
+ <PageTitle title="Certificate Manager" />
+ <PageLoader />
+ </>
+ );
}
return (
<div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: "Certificate Manager" })}</title>
+ <PageTitle title="Certificate Manager" />
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx b/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx
index 4640199e43..734cdab522 100644
--- a/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx
+++ b/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx
@@ -3,6 +3,7 @@ import { useQuery } from "@tanstack/react-query";
import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router";
import { FilterIcon, SearchIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Card,
@@ -241,7 +242,7 @@ export const RequestsPage = () => {
return (
<>
- <title>Requests</title>
+ <PageTitle title="Requests" />
<div className="h-full bg-page">
<div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
diff --git a/frontend/src/pages/cert-manager/SettingsPage/SettingsPage.tsx b/frontend/src/pages/cert-manager/SettingsPage/SettingsPage.tsx
index 67c3a7800c..433555b9d1 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/SettingsPage.tsx
@@ -1,5 +1,6 @@
import { useNavigate, useParams, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader, Tabs, TabsContent, TabsList, TabsTrigger } from "@app/components/v3";
import { ProjectPermissionActions, ProjectPermissionSub } from "@app/context";
@@ -22,7 +23,7 @@ export const SettingsPage = () => {
return (
<div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
- <title>Settings</title>
+ <PageTitle title="Settings" />
<div className="flex w-full max-w-8xl flex-col">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx
index d90409a1fd..95d8b4cd69 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx
@@ -1,5 +1,4 @@
import { useState } from "react";
-import { useTranslation } from "react-i18next";
import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router";
import {
AlertTriangleIcon,
@@ -17,6 +16,7 @@ import {
} from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
AlertDialog,
AlertDialogAction,
@@ -80,7 +80,6 @@ import { SigningOperationsTable } from "./components/SigningOperationsTable";
type Tab = "activity" | "approvals" | "members";
export const SignerDetailPage = () => {
- const { t } = useTranslation();
const { currentOrg } = useOrganization();
const navigate = useNavigate();
@@ -110,14 +109,23 @@ export const SignerDetailPage = () => {
const reissueSigner = useReissueSignerCertificate();
const checkSignerIssuance = useCheckSignerIssuance();
- if (isLoading) return <PageLoader />;
+ if (isLoading)
+ return (
+ <>
+ <PageTitle title="Signer" />
+ <PageLoader />
+ </>
+ );
if (!signer)
return (
- <Empty>
- <EmptyHeader>
- <EmptyTitle>Signer not found</EmptyTitle>
- </EmptyHeader>
- </Empty>
+ <>
+ <PageTitle title="Signer" />
+ <Empty>
+ <EmptyHeader>
+ <EmptyTitle>Signer not found</EmptyTitle>
+ </EmptyHeader>
+ </Empty>
+ </>
);
const onCopyId = async () => {
@@ -136,7 +144,7 @@ export const SignerDetailPage = () => {
return (
<>
- <title>{t("common.head-title", { title: `Signer: ${signer.name}` })}</title>
+ <PageTitle title={signer.name ? `Signer: ${signer.name}` : "Signer"} />
<div className="h-full bg-page">
<div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
diff --git a/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx b/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx
index 6b2790144d..8ed7e13c16 100644
--- a/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx
+++ b/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx
@@ -2,6 +2,7 @@ import { Link, useParams } from "@tanstack/react-router";
import { format } from "date-fns";
import { ChevronLeftIcon, FileSignatureIcon, HardDriveIcon, UserIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Card,
@@ -41,18 +42,27 @@ export const SigningOperationDetailPage = () => {
const { currentOrg } = useOrganization();
const { data, isPending } = useGetSigningOperation(signerId, operationId);
- if (isPending) return <PageLoader />;
+ if (isPending)
+ return (
+ <>
+ <PageTitle title="Signing Operation" />
+ <PageLoader />
+ </>
+ );
if (!data) {
return (
- <div className="mx-auto flex max-w-4xl flex-col px-6 py-6">
- <Empty className="border border-solid">
- <EmptyTitle>Signing operation not found</EmptyTitle>
- <EmptyDescription>
- The operation may belong to a different signer, or you may not have access to it.
- </EmptyDescription>
- </Empty>
- </div>
+ <>
+ <PageTitle title="Signing Operation" />
+ <div className="mx-auto flex max-w-4xl flex-col px-6 py-6">
+ <Empty className="border border-solid">
+ <EmptyTitle>Signing operation not found</EmptyTitle>
+ <EmptyDescription>
+ The operation may belong to a different signer, or you may not have access to it.
+ </EmptyDescription>
+ </Empty>
+ </div>
+ </>
);
}
@@ -61,7 +71,7 @@ export const SigningOperationDetailPage = () => {
return (
<div className="mx-auto flex max-w-5xl flex-col gap-y-4 px-6 py-6">
- <title>{`Signing Operation | ${signerName}`}</title>
+ <PageTitle title={signerName ? `Signing Operation: ${signerName}` : "Signing Operation"} />
<Link
to="/organizations/$orgId/cert-manager/code-signing/$signerId"
diff --git a/frontend/src/pages/kms/KmipPage/KmipPage.tsx b/frontend/src/pages/kms/KmipPage/KmipPage.tsx
index fee60d9374..6b323d97d0 100644
--- a/frontend/src/pages/kms/KmipPage/KmipPage.tsx
+++ b/frontend/src/pages/kms/KmipPage/KmipPage.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3";
import { ProjectPermissionKmipActions, ProjectPermissionSub } from "@app/context";
@@ -12,7 +13,7 @@ export const KmipPage = () => {
return (
<div className="h-full bg-page">
- <title>{t("common.head-title", { title: "KMS" })}</title>
+ <PageTitle title={t("page-titles.kmip")} />
<div className="mx-auto flex flex-col bg-page text-foreground">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
<PageHeader
diff --git a/frontend/src/pages/kms/OverviewPage/OverviewPage.tsx b/frontend/src/pages/kms/OverviewPage/OverviewPage.tsx
index 90e8fcbb3b..96b2a605b8 100644
--- a/frontend/src/pages/kms/OverviewPage/OverviewPage.tsx
+++ b/frontend/src/pages/kms/OverviewPage/OverviewPage.tsx
@@ -1,5 +1,4 @@
-import { useTranslation } from "react-i18next";
-
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3/platform";
import { ProjectPermissionActions, ProjectPermissionSub } from "@app/context";
@@ -8,11 +7,9 @@ import { ProjectType } from "@app/hooks/api/projects/types";
import { CmekTable } from "./components";
export const OverviewPage = () => {
- const { t } = useTranslation();
-
return (
<div className="h-full bg-page">
- <title>{t("common.head-title", { title: "KMS" })}</title>
+ <PageTitle title="KMS" />
<div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
diff --git a/frontend/src/pages/kms/SettingsPage/SettingsPage.tsx b/frontend/src/pages/kms/SettingsPage/SettingsPage.tsx
index e013d31521..1e62e9ae29 100644
--- a/frontend/src/pages/kms/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/kms/SettingsPage/SettingsPage.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { LookingForOrgPageLink } from "@app/components/v3";
import { PageHeader } from "@app/components/v3/platform";
import { ProjectType } from "@app/hooks/api/projects/types";
@@ -10,7 +11,7 @@ export const SettingsPage = () => {
return (
<div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: t("settings.project.title") })}</title>
+ <PageTitle title={t("settings.project.title")} />
<div className="w-full max-w-8xl">
<PageHeader
scope={ProjectType.KMS}
diff --git a/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx b/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx
index eaa13b5de5..f2c8b3c950 100644
--- a/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx
@@ -4,6 +4,7 @@ import { faInfoCircle } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionGuardBanner } from "@app/components/permissions/OrgPermissionCan";
import {
Button,
@@ -106,7 +107,7 @@ export const AccessManagementPage = () => {
return (
<div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: t("settings.org.title") })}</title>
+ <PageTitle title={t("page-titles.access-control")} />
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
scope={isSubOrganization ? "namespace" : "org"}
diff --git a/frontend/src/pages/organization/AppConnections/GitHubManifestCallbackPage/GitHubManifestCallbackPage.tsx b/frontend/src/pages/organization/AppConnections/GitHubManifestCallbackPage/GitHubManifestCallbackPage.tsx
index 0d0555ae6d..c6b7b55dda 100644
--- a/frontend/src/pages/organization/AppConnections/GitHubManifestCallbackPage/GitHubManifestCallbackPage.tsx
+++ b/frontend/src/pages/organization/AppConnections/GitHubManifestCallbackPage/GitHubManifestCallbackPage.tsx
@@ -2,6 +2,7 @@ import { useEffect, useRef } from "react";
import { useNavigate, useParams, useSearch } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { PageLoader } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import {
@@ -97,5 +98,10 @@ export const GitHubManifestCallbackPage = () => {
navigateBack(true);
}, []);
- return <PageLoader text="Creating your GitHub App, please wait..." />;
+ return (
+ <>
+ <PageTitle title="Creating GitHub App" />
+ <PageLoader text="Creating your GitHub App, please wait..." />
+ </>
+ );
};
diff --git a/frontend/src/pages/organization/AppConnections/OauthCallbackPage/OauthCallbackPage.tsx b/frontend/src/pages/organization/AppConnections/OauthCallbackPage/OauthCallbackPage.tsx
index 50e102943b..bdc7c4c751 100644
--- a/frontend/src/pages/organization/AppConnections/OauthCallbackPage/OauthCallbackPage.tsx
+++ b/frontend/src/pages/organization/AppConnections/OauthCallbackPage/OauthCallbackPage.tsx
@@ -2,6 +2,7 @@ import { useCallback, useEffect, useState } from "react";
import { useNavigate, useParams, useSearch } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { PageLoader } from "@app/components/v3/platform/PageLoader";
import { ROUTE_PATHS } from "@app/const/routes";
import {
@@ -716,5 +717,10 @@ export const OAuthCallbackPage = () => {
})();
}, [isReady]);
- return <PageLoader />;
+ return (
+ <>
+ <PageTitle title="Connecting App Connection" />
+ <PageLoader />
+ </>
+ );
};
diff --git a/frontend/src/pages/organization/AuditLogsPage/AuditLogsPage.tsx b/frontend/src/pages/organization/AuditLogsPage/AuditLogsPage.tsx
index c67753f350..35c7f040f0 100644
--- a/frontend/src/pages/organization/AuditLogsPage/AuditLogsPage.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/AuditLogsPage.tsx
@@ -1,5 +1,6 @@
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
LookingForOrgPageLink,
Tabs,
@@ -54,7 +55,7 @@ export const AuditLogsPage = () => {
return (
<div className="bg-page">
- <title>Infisical | Audit Logs</title>
+ <PageTitle title="Audit Logs" />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<div className="flex w-full justify-center bg-page pb-6 text-foreground-inverse">
diff --git a/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx b/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx
index 59480d75bb..d25630097e 100644
--- a/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx
@@ -7,6 +7,7 @@ import {
} from "@app/components/license/self-hosted-license";
import { getSafeUpgradeReturnPath } from "@app/components/license/UpgradeGate";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3/platform";
import {
@@ -332,7 +333,7 @@ export const BillingV2Page = () => {
return (
<>
- <title>{t("common.head-title", { title: t("billing.title") })}</title>
+ <PageTitle title={t("billing.title")} />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<div className="mb-8 flex w-full justify-center bg-page text-foreground-inverse">
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
index be09e36521..dad336cff3 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
@@ -3,6 +3,7 @@ import { Link, useNavigate, useParams } from "@tanstack/react-router";
import { ChevronLeftIcon, EllipsisIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -217,7 +218,7 @@ export const GroupDetailsByIDPage = () => {
const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: t("settings.org.title") })}</title>
+ <PageTitle title={t("page-titles.group")} />
<link rel="icon" href="/infisical.ico" />
<OrgPermissionCan
passThrough={false}
diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
index 8cbdaa7efb..86e7188975 100644
--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
@@ -3,6 +3,7 @@ import { Link, useNavigate, useParams } from "@tanstack/react-router";
import { ChevronLeftIcon, EllipsisIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import {
Alert,
@@ -261,7 +262,7 @@ export const IdentityDetailsByIDPage = () => {
const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: t("settings.org.title") })}</title>
+ <PageTitle title={t("page-titles.machine-identity")} />
<link rel="icon" href="/infisical.ico" />
<OrgPermissionCan
passThrough={false}
diff --git a/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx b/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx
index a572956062..fa8e63a475 100644
--- a/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx
+++ b/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx
@@ -1,6 +1,7 @@
import { useNavigate, useSearch } from "@tanstack/react-router";
import { InfoIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
AlertDescription,
DismissableAlert,
@@ -86,7 +87,7 @@ export const IntegrationsPage = () => {
return (
<>
- <title>Infisical | Integrations</title>
+ <PageTitle title="Integrations" />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<div className="flex w-full justify-center bg-page text-foreground-inverse">
diff --git a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/KmipServerDetailsByIDPage.tsx b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/KmipServerDetailsByIDPage.tsx
index 64f09f208e..cd6fce3c0d 100644
--- a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/KmipServerDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/KmipServerDetailsByIDPage.tsx
@@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next";
import { Link, useParams } from "@tanstack/react-router";
import { ChevronLeftIcon, ServerIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -93,7 +94,7 @@ export const KmipServerDetailsByIDPage = () => {
const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: t("settings.org.title") })}</title>
+ <PageTitle title={t("page-titles.kmip-server")} />
<link rel="icon" href="/infisical.ico" />
<OrgPermissionCan
passThrough={false}
diff --git a/frontend/src/pages/organization/KmipServersPage/KmipServersPage.tsx b/frontend/src/pages/organization/KmipServersPage/KmipServersPage.tsx
index efddb7abd6..7fce51c668 100644
--- a/frontend/src/pages/organization/KmipServersPage/KmipServersPage.tsx
+++ b/frontend/src/pages/organization/KmipServersPage/KmipServersPage.tsx
@@ -1,9 +1,11 @@
+import { PageTitle } from "@app/components/PageTitle";
+
import { KmipServerTab } from "./components";
export const KmipServersPage = () => {
return (
<>
- <title>Infisical | KMIP Servers</title>
+ <PageTitle title="KMIP Servers" />
<meta property="og:image" content="/images/message.png" />
<div className="flex w-full justify-center bg-page text-foreground-inverse">
<div className="w-full max-w-8xl">
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx
index 7b0eef56c2..b2b2019dbe 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx
@@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next";
import { Link, useParams } from "@tanstack/react-router";
import { ChevronLeftIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import { Empty, EmptyHeader, EmptyMedia, EmptyTitle, PageLoader } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
@@ -74,7 +75,7 @@ export const GatewayDetailsByIDPage = () => {
const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: t("settings.org.title") })}</title>
+ <PageTitle title={t("page-titles.gateway")} />
<link rel="icon" href="/infisical.ico" />
<OrgPermissionCan
passThrough={false}
diff --git a/frontend/src/pages/organization/NetworkingPage/NetworkingPage.tsx b/frontend/src/pages/organization/NetworkingPage/NetworkingPage.tsx
index d29f34f549..a0514048d6 100644
--- a/frontend/src/pages/organization/NetworkingPage/NetworkingPage.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/NetworkingPage.tsx
@@ -1,3 +1,4 @@
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { useOrganization } from "@app/context";
@@ -8,7 +9,7 @@ export const NetworkingPage = () => {
return (
<>
- <title>Infisical | Networking</title>
+ <PageTitle title="Networking" />
<meta property="og:image" content="/images/message.png" />
<div className="flex w-full justify-center bg-page text-foreground-inverse">
<div className="flex w-full max-w-8xl flex-col">
diff --git a/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/RelayDetailsByIDPage.tsx b/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/RelayDetailsByIDPage.tsx
index a66c0e7267..9c5e2c4ab4 100644
--- a/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/RelayDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/RelayDetailsByIDPage.tsx
@@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next";
import { Link, useParams } from "@tanstack/react-router";
import { ChevronLeftIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import { Empty, EmptyHeader, EmptyMedia, EmptyTitle, PageLoader } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
@@ -72,7 +73,7 @@ export const RelayDetailsByIDPage = () => {
const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: t("settings.org.title") })}</title>
+ <PageTitle title={t("page-titles.relay")} />
<link rel="icon" href="/infisical.ico" />
<OrgPermissionCan
passThrough={false}
diff --git a/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx b/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx
index 4cd3150371..a284a552f7 100644
--- a/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx
+++ b/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx
@@ -5,6 +5,7 @@ import { useNavigate } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
import { CreateOrgModal } from "@app/components/organization/CreateOrgModal";
+import { PageTitle } from "@app/components/PageTitle";
import { PageLoader } from "@app/components/v3";
import {
fetchOrganizations,
@@ -99,7 +100,7 @@ export const NoOrgPage = () => {
return (
<>
- <title>{t("common.head-title", { title: t("settings.org.title") })}</title>
+ <PageTitle title={t("page-titles.create-organization")} />
<link rel="icon" href="/infisical.ico" />
<div className="min-h-screen bg-page">
{failed ? (
diff --git a/frontend/src/pages/organization/OauthApplicationsPage/OauthApplicationsPage.tsx b/frontend/src/pages/organization/OauthApplicationsPage/OauthApplicationsPage.tsx
index 21e3cabd01..16114fd21d 100644
--- a/frontend/src/pages/organization/OauthApplicationsPage/OauthApplicationsPage.tsx
+++ b/frontend/src/pages/organization/OauthApplicationsPage/OauthApplicationsPage.tsx
@@ -1,3 +1,4 @@
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { useOrganization } from "@app/context";
import { OrgOauthClientsTab } from "@app/pages/organization/SettingsPage/components/OrgOauthClientsTab";
@@ -7,7 +8,7 @@ export const OauthApplicationsPage = () => {
return (
<>
- <title>Infisical | OAuth Applications</title>
+ <PageTitle title="OAuth Applications" />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<div className="flex w-full justify-center bg-page text-foreground-inverse">
diff --git a/frontend/src/pages/organization/OauthConsentPage/OauthConsentPage.tsx b/frontend/src/pages/organization/OauthConsentPage/OauthConsentPage.tsx
index 2116eb8eae..614e51871f 100644
--- a/frontend/src/pages/organization/OauthConsentPage/OauthConsentPage.tsx
+++ b/frontend/src/pages/organization/OauthConsentPage/OauthConsentPage.tsx
@@ -3,6 +3,7 @@ import { Link, useSearch } from "@tanstack/react-router";
import { CheckCircle2, Loader2 } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Alert,
AlertDescription,
@@ -73,24 +74,27 @@ export const OauthConsentPage = () => {
if (isRedirecting) {
return (
- <div className="flex min-h-screen flex-col items-center justify-center bg-page">
- <Card className="w-full max-w-md items-center text-center">
- <div className="flex size-16 items-center justify-center rounded-full bg-success/10">
- <CheckCircle2 className="size-8 text-success" />
- </div>
- <CardTitle className="justify-center">Authorization Successful</CardTitle>
- <CardDescription className="flex items-center justify-center gap-2">
- <Loader2 className="size-3.5 animate-spin" />
- Redirecting back to the application
- </CardDescription>
- </Card>
- </div>
+ <>
+ <PageTitle title="Authorize Application" />
+ <div className="flex min-h-screen flex-col items-center justify-center bg-page">
+ <Card className="w-full max-w-md items-center text-center">
+ <div className="flex size-16 items-center justify-center rounded-full bg-success/10">
+ <CheckCircle2 className="size-8 text-success" />
+ </div>
+ <CardTitle className="justify-center">Authorization Successful</CardTitle>
+ <CardDescription className="flex items-center justify-center gap-2">
+ <Loader2 className="size-3.5 animate-spin" />
+ Redirecting back to the application
+ </CardDescription>
+ </Card>
+ </div>
+ </>
);
}
return (
<div className="flex min-h-screen flex-col items-center justify-center bg-page">
- <title>Authorize Application</title>
+ <PageTitle title="Authorize Application" />
<link rel="icon" href="/infisical.ico" />
<Card className="w-full max-w-md">
diff --git a/frontend/src/pages/organization/ProductSettingsPage/ProjectTemplates/ProductSettingsPage.tsx b/frontend/src/pages/organization/ProductSettingsPage/ProjectTemplates/ProductSettingsPage.tsx
index f905a13d29..db7db4b382 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/ProjectTemplates/ProductSettingsPage.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/ProjectTemplates/ProductSettingsPage.tsx
@@ -1,5 +1,6 @@
import { useNavigate, useParams } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3/platform";
import { OrgPermissionActions, OrgPermissionSubjects, useOrganization } from "@app/context";
@@ -26,7 +27,7 @@ export const ProductSettingsPage = () => {
return (
<>
- <title>Product Settings | Infisical</title>
+ <PageTitle title="Product Settings" />
<link rel="icon" href="/infisical.ico" />
<div>
<div className="mx-auto w-full max-w-8xl bg-page text-foreground-inverse">
diff --git a/frontend/src/pages/organization/ProductSettingsPage/ProjectTemplates/project-templates/route.tsx b/frontend/src/pages/organization/ProductSettingsPage/ProjectTemplates/project-templates/route.tsx
index ee79edf462..8f0541a450 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/ProjectTemplates/project-templates/route.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/ProjectTemplates/project-templates/route.tsx
@@ -1,5 +1,6 @@
import { createFileRoute, linkOptions, redirect } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionActions, OrgPermissionSubjects } from "@app/context";
import { hasProjectTemplates, urlSlugToProjectType } from "@app/helpers/project";
import { withPermission } from "@app/hoc";
@@ -16,7 +17,12 @@ const RouteComponent = withPermission(() => <ProjectTemplatePage />, {
export const Route = createFileRoute(
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/product-settings/$type/project-templates/$templateId"
)({
- component: RouteComponent,
+ component: () => (
+ <>
+ <PageTitle title="Project Template" />
+ <RouteComponent />
+ </>
+ ),
context: ({ params }) => ({
breadcrumbs: [
{
diff --git a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx
index 20e7983e37..580de9a848 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx
@@ -5,6 +5,7 @@ import {
useUpgradeGate
} from "@app/components/license/UpgradeGate";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import {
Card,
@@ -76,7 +77,7 @@ export const ProductSettingsPage = () => {
return (
<>
- <title>Product Settings | Infisical</title>
+ <PageTitle title="Product Settings" />
<link rel="icon" href="/infisical.ico" />
<div>
<div className="mx-auto w-full max-w-8xl bg-page text-foreground-inverse">
diff --git a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/project-templates/route.tsx b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/project-templates/route.tsx
index 10b870c07a..9d0d73931c 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/project-templates/route.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/project-templates/route.tsx
@@ -1,5 +1,6 @@
import { createFileRoute, linkOptions, useParams } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionActions, OrgPermissionSubjects } from "@app/context";
import { withPermission } from "@app/hoc";
@@ -21,7 +22,12 @@ const RouteComponent = withPermission(
export const Route = createFileRoute(
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/product-settings/project-templates/$templateId"
)({
- component: RouteComponent,
+ component: () => (
+ <>
+ <PageTitle title="Project Template" />
+ <RouteComponent />
+ </>
+ ),
context: ({ params }) => ({
breadcrumbs: [
{
diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatePage.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatePage.tsx
index 31218355fe..32dadef761 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatePage.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatePage.tsx
@@ -53,7 +53,6 @@ export const ProjectTemplatePage = ({ templateId, projectType, onBack }: Props)
return (
<>
- <title>Project Template | Infisical</title>
<link rel="icon" href="/infisical.ico" />
<div>
<div className="mx-auto w-full max-w-8xl bg-page text-foreground-inverse">
diff --git a/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx b/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx
index e5f989dbad..3cd02bcc48 100644
--- a/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx
+++ b/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx
@@ -18,6 +18,7 @@ import { twMerge } from "tailwind-merge";
import { ProjectLimitUpgradeIntent, UpgradeGate } from "@app/components/license/UpgradeGate";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import { NewProjectModal } from "@app/components/projects";
import { CertManagerNotConfiguredModal } from "@app/components/projects/CertManagerNotConfiguredModal";
@@ -376,7 +377,7 @@ const ProjectTypeContent = ({
return (
<div className="mx-auto flex max-w-8xl flex-col">
- <title>{`${typeTitle} Projects`}</title>
+ <PageTitle title={`${typeTitle} Projects`} />
<link rel="icon" href="/infisical.ico" />
<PageHeader
title={typeTitle}
diff --git a/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx b/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx
index 81c3912901..da437d2a04 100644
--- a/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx
+++ b/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx
@@ -4,6 +4,7 @@ import { Outlet, useMatches } from "@tanstack/react-router";
import { AnnouncementModal } from "@app/components/announcements/AnnouncementModal";
import { useAnnouncementSeen } from "@app/components/announcements/useAnnouncementSeen";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3/platform";
import { useOrganization } from "@app/context";
import { useGetRecentAnnouncements } from "@app/hooks/api/announcement";
@@ -43,7 +44,7 @@ export const ProjectsPage = () => {
return (
<div className="mx-auto flex max-w-8xl flex-col justify-start px-0 md:px-6">
- <title>{t("common.head-title", { title: t("settings.members.title") })}</title>
+ <PageTitle title={t("page-titles.projects")} />
<link rel="icon" href="/infisical.ico" />
<PageHeader
className="mb-6 md:mb-10"
diff --git a/frontend/src/pages/organization/RoleByIDPage/RoleByIDPage.tsx b/frontend/src/pages/organization/RoleByIDPage/RoleByIDPage.tsx
index 1507adda3e..f53670b4b2 100644
--- a/frontend/src/pages/organization/RoleByIDPage/RoleByIDPage.tsx
+++ b/frontend/src/pages/organization/RoleByIDPage/RoleByIDPage.tsx
@@ -4,6 +4,7 @@ import { ChevronLeftIcon, CopyIcon, EllipsisIcon, PencilIcon, TrashIcon } from "
import { twMerge } from "tailwind-merge";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -201,7 +202,7 @@ export const RoleByIDPage = () => {
const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: t("settings.org.title") })}</title>
+ <PageTitle title={t("page-titles.role")} />
<link rel="icon" href="/infisical.ico" />
<OrgPermissionCan
passThrough={false}
diff --git a/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx
index f787b2f8c9..4500e1969a 100644
--- a/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx
+++ b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx
@@ -6,6 +6,7 @@ import {
SecretAccessInsightsUpgradeIntent,
useUpgradeGate
} from "@app/components/license/UpgradeGate";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -50,7 +51,7 @@ import {
const SENT_REPORT_STATUSES = [AuditReportStatus.Completed, AuditReportStatus.Partial];
const IN_FLIGHT_REPORT_STATUSES = [AuditReportStatus.Pending, AuditReportStatus.Processing];
-export const SecretInsightsPage = withPermission(
+const SecretInsightsPageContent = withPermission(
() => {
const { currentOrg } = useOrganization();
const { config } = useServerConfig();
@@ -133,7 +134,6 @@ export const SecretInsightsPage = withPermission(
return (
<>
- <title>Secret Insights | Infisical</title>
<link rel="icon" href="/infisical.ico" />
<div>
<div className="mx-auto w-full max-w-8xl bg-page text-foreground-inverse">
@@ -246,3 +246,10 @@ export const SecretInsightsPage = withPermission(
subject: OrgPermissionSubjects.SecretsManagementInsights
}
);
+
+export const SecretInsightsPage = () => (
+ <>
+ <PageTitle title="Secret Insights" />
+ <SecretInsightsPageContent />
+ </>
+);
diff --git a/frontend/src/pages/organization/SecretSharingPage/SecretSharingPage.tsx b/frontend/src/pages/organization/SecretSharingPage/SecretSharingPage.tsx
index f875ad1d40..4ca8db6fb5 100644
--- a/frontend/src/pages/organization/SecretSharingPage/SecretSharingPage.tsx
+++ b/frontend/src/pages/organization/SecretSharingPage/SecretSharingPage.tsx
@@ -1,15 +1,13 @@
-import { useTranslation } from "react-i18next";
-
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3";
import { ProjectType } from "@app/hooks/api/projects/types";
import { ShareSecretSection } from "./ShareSecretSection";
export const SecretSharingPage = () => {
- const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: "Secret Sharing" })}</title>
+ <PageTitle title="Secret Sharing" />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content="Secret Sharing" />
diff --git a/frontend/src/pages/organization/SettingsPage/OauthCallbackPage/OauthCallbackPage.tsx b/frontend/src/pages/organization/SettingsPage/OauthCallbackPage/OauthCallbackPage.tsx
index e0e8e4186e..f988cc2db7 100644
--- a/frontend/src/pages/organization/SettingsPage/OauthCallbackPage/OauthCallbackPage.tsx
+++ b/frontend/src/pages/organization/SettingsPage/OauthCallbackPage/OauthCallbackPage.tsx
@@ -3,6 +3,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { z } from "zod";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { PageLoader } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization } from "@app/context";
@@ -82,5 +83,10 @@ export const OAuthCallbackPage = () => {
})();
}, [isReady]);
- return <PageLoader text="Please wait! Authentication in process." />;
+ return (
+ <>
+ <PageTitle title="Connecting Microsoft Teams" />
+ <PageLoader text="Please wait! Authentication in process." />
+ </>
+ );
};
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx
index ce1e0c9a85..7aab16501b 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx
@@ -1,7 +1,7 @@
-import { useTranslation } from "react-i18next";
import { Link, useSearch } from "@tanstack/react-router";
import { InfoIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
AlertDescription,
AlertTitle,
@@ -19,7 +19,6 @@ import { OrgSecurityTab } from "../OrgSecurityTab";
import { OrgSubOrgsTab } from "../OrgSubOrgsTab";
export const OrgTabGroup = () => {
- const { t } = useTranslation();
const search = useSearch({
from: ROUTE_PATHS.Organization.SettingsPage.id
});
@@ -83,7 +82,7 @@ export const OrgTabGroup = () => {
return (
<div className="flex w-full flex-col">
- <title>{t("common.head-title", { title: pageTitle })}</title>
+ <PageTitle title={pageTitle} />
<PageHeader
scope={isSubOrganization ? "namespace" : "org"}
description={
diff --git a/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx b/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx
index df1b7908e4..48d8452420 100644
--- a/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx
+++ b/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx
@@ -16,6 +16,7 @@ import {
getSignupTrialProjectType
} from "@app/components/auth/signupTrialIntent";
import TeamInviteStep from "@app/components/auth/TeamInviteStep";
+import { PageTitle } from "@app/components/PageTitle";
import { PageLoader } from "@app/components/v3";
import { useSelectOrganization } from "@app/hooks/api/auth/queries";
import { fetchOrganizations } from "@app/hooks/api/organization/queries";
@@ -196,7 +197,7 @@ export const SignupOnboardingPage = () => {
bottomContent={section === OnboardingSection.OrgName ? <AuthTermsNotice /> : undefined}
onDocumentationClick={analytics.captureOnboardingDocumentationClicked}
>
- <title>{t("common.head-title", { title: t("signup.title") })}</title>
+ <PageTitle title={t("page-titles.organization-setup")} />
<link rel="icon" href="/infisical.ico" />
<OnboardingStepTransition step={section}>{renderView()}</OnboardingStepTransition>
</AuthPageLayout>
diff --git a/frontend/src/pages/organization/SsoPage/SsoPage.tsx b/frontend/src/pages/organization/SsoPage/SsoPage.tsx
index 2d4047319c..758fa73641 100644
--- a/frontend/src/pages/organization/SsoPage/SsoPage.tsx
+++ b/frontend/src/pages/organization/SsoPage/SsoPage.tsx
@@ -1,5 +1,6 @@
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader, Tabs, TabsContent, TabsList, TabsTrigger } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization } from "@app/context";
@@ -32,7 +33,7 @@ export const SsoPage = () => {
return (
<>
- <title>Infisical | SSO & Provisioning</title>
+ <PageTitle title="SSO & Provisioning" />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<div className="flex w-full justify-center bg-page text-foreground-inverse">
diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx
index 40e05cbef9..6c21cc932c 100644
--- a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx
@@ -4,6 +4,7 @@ import { ChevronLeftIcon, EllipsisIcon } from "lucide-react";
import { CustomRolesUpgradeIntent, UpgradeGate } from "@app/components/license/UpgradeGate";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -282,7 +283,7 @@ export const UserDetailsByIDPage = () => {
const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: t("settings.org.title") })}</title>
+ <PageTitle title={t("page-titles.user")} />
<link rel="icon" href="/infisical.ico" />
<Page />
</>
diff --git a/frontend/src/pages/pam/PamAccessControlPage/PamAccessControlPage.tsx b/frontend/src/pages/pam/PamAccessControlPage/PamAccessControlPage.tsx
index 2cec16de98..da457791a4 100644
--- a/frontend/src/pages/pam/PamAccessControlPage/PamAccessControlPage.tsx
+++ b/frontend/src/pages/pam/PamAccessControlPage/PamAccessControlPage.tsx
@@ -1,7 +1,7 @@
-import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { Shield } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { Badge, Tabs, TabsContent, TabsList, TabsTrigger } from "@app/components/v3";
import { PageHeader } from "@app/components/v3/platform";
import { useOrganization, useProject } from "@app/context";
@@ -23,7 +23,6 @@ export enum PamAccessControlTab {
}
export const PamAccessControlPage = () => {
- const { t } = useTranslation();
const navigate = useNavigate();
const { currentOrg } = useOrganization();
const { currentProject } = useProject();
@@ -51,7 +50,7 @@ export const PamAccessControlPage = () => {
return (
<div className="mx-auto mb-6 w-full max-w-8xl">
- <title>{t("common.head-title", { title: "Access Control" })}</title>
+ <PageTitle title="Access Control" />
<PageHeader
scope={ProjectType.PAM}
icon={Shield}
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
index 46bd059a43..5cbb9cb568 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
+++ b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
@@ -2,6 +2,7 @@ import { useState } from "react";
import { useParams, useSearch } from "@tanstack/react-router";
import { TriangleAlert } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { PamAccountType, TPamAccount, useGetPamAccountById } from "@app/hooks/api/pam";
import { PamDataExplorerPage } from "@app/pages/pam/PamDataExplorerPage/PamDataExplorerPage";
@@ -159,7 +160,7 @@ const PageContent = () => {
export const PamAccountAccessPage = () => {
return (
<>
- <title>Web Access | Infisical</title>
+ <PageTitle title="Web Access" />
<link rel="icon" href="/infisical.ico" />
<PageContent />
</>
diff --git a/frontend/src/pages/pam/PamAccountsPage/PamAccountsPage.tsx b/frontend/src/pages/pam/PamAccountsPage/PamAccountsPage.tsx
index cb5ae8ca61..ab6cf5fb99 100644
--- a/frontend/src/pages/pam/PamAccountsPage/PamAccountsPage.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/PamAccountsPage.tsx
@@ -1,9 +1,9 @@
import { useMemo, useRef, useState } from "react";
-import { useTranslation } from "react-i18next";
import { useNavigate } from "@tanstack/react-router";
import { ChevronDown, FolderOpen, FolderPlus, Plus, Search } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
ButtonGroup,
@@ -75,7 +75,6 @@ import { ViewCredentialsModal } from "./components/ViewCredentialsModal";
const SKELETON_KEYS = ["s1", "s2", "s3", "s4", "s5"];
export const PamAccountsPage = () => {
- const { t } = useTranslation();
const navigate = useNavigate();
const { currentOrg } = useOrganization();
const [searchInput, setSearchInput] = useState("");
@@ -228,7 +227,7 @@ export const PamAccountsPage = () => {
return (
<div className="mx-auto mb-6 w-full max-w-8xl">
- <title>{t("common.head-title", { title: "Accounts" })}</title>
+ <PageTitle title="Accounts" />
<PageHeader
title="Accounts"
description="Access and manage privileged accounts."
diff --git a/frontend/src/pages/pam/PamAccountsPage/PamFolderPage/PamFolderPage.tsx b/frontend/src/pages/pam/PamAccountsPage/PamFolderPage/PamFolderPage.tsx
index 8b6e9920d5..c634fb992e 100644
--- a/frontend/src/pages/pam/PamAccountsPage/PamFolderPage/PamFolderPage.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/PamFolderPage/PamFolderPage.tsx
@@ -1,9 +1,9 @@
import { useRef, useState } from "react";
-import { useTranslation } from "react-i18next";
import { Link, useNavigate, useParams } from "@tanstack/react-router";
import { Filter, FolderOpen, MoreHorizontal, Plus, Search, Settings, Trash2 } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -77,7 +77,6 @@ import { ViewCredentialsModal } from "../components/ViewCredentialsModal";
const SKELETON_KEYS = ["s1", "s2", "s3", "s4", "s5"];
export const PamFolderPage = () => {
- const { t } = useTranslation();
const { orgId, folderId } = useParams({ from: ROUTE_PATHS.Pam.FolderPage.id });
const navigate = useNavigate();
@@ -191,27 +190,30 @@ export const PamFolderPage = () => {
if (!isLoadingFolders && !folder) {
return (
- <div className="mx-auto mb-6 w-full max-w-8xl">
- <Empty className="mt-4 border">
- <EmptyHeader>
- <EmptyTitle>Folder not found</EmptyTitle>
- <EmptyDescription>
- This folder no longer exists, or you don&apos;t have access to it.
- </EmptyDescription>
- </EmptyHeader>
- <EmptyContent>
- <Button variant="outline" size="sm" asChild>
- <Link {...accountsRoute}>Back to Accounts</Link>
- </Button>
- </EmptyContent>
- </Empty>
- </div>
+ <>
+ <PageTitle title="Folder" />
+ <div className="mx-auto mb-6 w-full max-w-8xl">
+ <Empty className="mt-4 border">
+ <EmptyHeader>
+ <EmptyTitle>Folder not found</EmptyTitle>
+ <EmptyDescription>
+ This folder no longer exists, or you don&apos;t have access to it.
+ </EmptyDescription>
+ </EmptyHeader>
+ <EmptyContent>
+ <Button variant="outline" size="sm" asChild>
+ <Link {...accountsRoute}>Back to Accounts</Link>
+ </Button>
+ </EmptyContent>
+ </Empty>
+ </div>
+ </>
);
}
return (
<div className="mx-auto mb-6 w-full max-w-8xl">
- <title>{t("common.head-title", { title: folder?.name ?? "Folder" })}</title>
+ <PageTitle title={folder?.name ?? "Folder"} />
<PageHeader
title="Accounts"
diff --git a/frontend/src/pages/pam/PamApprovalRequestsPage/PamApprovalRequestsPage.tsx b/frontend/src/pages/pam/PamApprovalRequestsPage/PamApprovalRequestsPage.tsx
index c7b956d4c4..1a7693befa 100644
--- a/frontend/src/pages/pam/PamApprovalRequestsPage/PamApprovalRequestsPage.tsx
+++ b/frontend/src/pages/pam/PamApprovalRequestsPage/PamApprovalRequestsPage.tsx
@@ -1,9 +1,9 @@
import { useEffect, useMemo, useState } from "react";
-import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { format } from "date-fns";
import { FolderOpen, SearchIcon, ShieldCheck } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Card,
@@ -159,7 +159,6 @@ const RequestTable = ({
};
export const PamApprovalRequestsPage = () => {
- const { t } = useTranslation();
const [search, setSearch] = useState("");
const [selectedFolderId, setSelectedFolderId] = useState<string>("");
const [selectedRequest, setSelectedRequest] = useState<TPamAccessRequest | null>(null);
@@ -213,7 +212,7 @@ export const PamApprovalRequestsPage = () => {
return (
<div className="mx-auto mb-6 w-full max-w-8xl">
- <title>{t("common.head-title", { title: "Approval Requests" })}</title>
+ <PageTitle title="Approval Requests" />
<PageHeader
scope={ProjectType.PAM}
icon={ShieldCheck}
diff --git a/frontend/src/pages/pam/PamAuditLogsPage/PamAuditLogsPage.tsx b/frontend/src/pages/pam/PamAuditLogsPage/PamAuditLogsPage.tsx
index 983682a7b4..ed1eab3a28 100644
--- a/frontend/src/pages/pam/PamAuditLogsPage/PamAuditLogsPage.tsx
+++ b/frontend/src/pages/pam/PamAuditLogsPage/PamAuditLogsPage.tsx
@@ -1,16 +1,14 @@
-import { useTranslation } from "react-i18next";
import { FileText } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3/platform";
import { ProjectType } from "@app/hooks/api/projects/types";
import { ProjectAuditLogsTabs } from "@app/pages/project/AuditLogsPage/components";
export const PamAuditLogsPage = () => {
- const { t } = useTranslation();
-
return (
<div className="mx-auto mb-6 w-full max-w-8xl">
- <title>{t("common.head-title", { title: "Audit Logs" })}</title>
+ <PageTitle title="Audit Logs" />
<PageHeader
scope={ProjectType.PAM}
icon={FileText}
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx b/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx
index 5018c4c6b0..ab6bedd1f6 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx
@@ -3,6 +3,7 @@ import { format } from "date-fns";
import { MoreHorizontal, Plus, Radar, Search, Trash2 } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { HighlightText } from "@app/components/utilities/HighlightText";
import {
Button,
@@ -97,7 +98,7 @@ export const PamDiscoveryPage = () => {
return (
<>
- <title>Discovery</title>
+ <PageTitle title="Discovery" />
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
scope={ProjectType.PAM}
diff --git a/frontend/src/pages/pam/PamSessionsPage/PamSessionsPage.tsx b/frontend/src/pages/pam/PamSessionsPage/PamSessionsPage.tsx
index 7e2b994007..7979b87047 100644
--- a/frontend/src/pages/pam/PamSessionsPage/PamSessionsPage.tsx
+++ b/frontend/src/pages/pam/PamSessionsPage/PamSessionsPage.tsx
@@ -1,10 +1,10 @@
import { useState } from "react";
-import { useTranslation } from "react-i18next";
import { Link } from "@tanstack/react-router";
import { format } from "date-fns";
import { Activity, Ban, SearchIcon, Video } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { HighlightText } from "@app/components/utilities/HighlightText";
import {
Badge,
@@ -142,7 +142,6 @@ const FolderNameCell = ({ session, search }: { session: TPamSession; search: str
};
export const PamSessionsPage = () => {
- const { t } = useTranslation();
const { currentProject } = useProject();
const { map: accountTypeMap } = usePamAccountTypeMap();
@@ -204,7 +203,7 @@ export const PamSessionsPage = () => {
return (
<div className="mx-auto mb-6 w-full max-w-8xl">
- <title>{t("common.head-title", { title: "Sessions" })}</title>
+ <PageTitle title="Sessions" />
<PageHeader
scope={ProjectType.PAM}
icon={Video}
diff --git a/frontend/src/pages/pam/PamTemplatesPage/PamTemplatesPage.tsx b/frontend/src/pages/pam/PamTemplatesPage/PamTemplatesPage.tsx
index 8c16ecd468..5492e5b679 100644
--- a/frontend/src/pages/pam/PamTemplatesPage/PamTemplatesPage.tsx
+++ b/frontend/src/pages/pam/PamTemplatesPage/PamTemplatesPage.tsx
@@ -1,8 +1,8 @@
import { useMemo, useState } from "react";
-import { useTranslation } from "react-i18next";
import { ClipboardList, Layers, MoreHorizontal, Plus, Search, Trash2 } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { HighlightText } from "@app/components/utilities/HighlightText";
import {
Button,
@@ -133,8 +133,6 @@ const TemplateRow = ({
};
export const PamTemplatesPage = () => {
- const { t } = useTranslation();
-
const [searchInput, setSearchInput] = useState("");
const [selectedType, setSelectedType] = useState<string>("");
@@ -177,7 +175,7 @@ export const PamTemplatesPage = () => {
return (
<>
- <title>{t("common.head-title", { title: "Account Templates" })}</title>
+ <PageTitle title="Account Templates" />
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
scope={ProjectType.PAM}
diff --git a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
index 3c62b6b66e..8fce8ee95f 100644
--- a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
+++ b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
@@ -1,6 +1,7 @@
import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
LookingForOrgPageLink,
PageHeader,
@@ -127,7 +128,7 @@ export const AccessControlPage = () => {
return (
<>
- <title>{t("common.head-title", { title: t("settings.members.title") })}</title>
+ <PageTitle title={t("page-titles.access-control")} />
<link rel="icon" href="/infisical.ico" />
<Page />
</>
diff --git a/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx b/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx
index 7507a53197..fbf871d40b 100644
--- a/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx
+++ b/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx
@@ -1,3 +1,4 @@
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3/platform";
import { useProject } from "@app/context";
import {
@@ -8,13 +9,12 @@ import { getProjectLabel, hidesProjects } from "@app/helpers/project";
import { withProjectPermission } from "@app/hoc";
import { AppConnectionsTable } from "@app/pages/organization/AppConnections/AppConnectionsPage/components";
-export const AppConnectionsPage = withProjectPermission(
+const AppConnectionsPageContent = withProjectPermission(
() => {
const { currentProject } = useProject();
return (
<div className="bg-page">
- <title>Infisical | App Connections</title>
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<div className="flex w-full justify-center bg-page text-foreground-inverse">
@@ -40,3 +40,10 @@ export const AppConnectionsPage = withProjectPermission(
accessRestrictedMode: "dialog"
}
);
+
+export const AppConnectionsPage = () => (
+ <>
+ <PageTitle title="App Connections" />
+ <AppConnectionsPageContent />
+ </>
+);
diff --git a/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx b/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx
index 26a6e84b51..0c23396f27 100644
--- a/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx
+++ b/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx
@@ -1,3 +1,4 @@
+import { PageTitle } from "@app/components/PageTitle";
import { LookingForOrgPageLink } from "@app/components/v3";
import { PageHeader } from "@app/components/v3/platform";
import { useProject } from "@app/context";
@@ -12,7 +13,7 @@ export const AuditLogsPage = () => {
const projectsHidden = hidesProjects(currentProject.type);
return (
<div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
- <title>{projectsHidden ? "Audit Logs" : "Project Audit Logs"}</title>
+ <PageTitle title={projectsHidden ? "Audit Logs" : "Project Audit Logs"} />
<link rel="icon" href="/infisical.ico" />
<div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
<div className="w-full max-w-8xl">
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
index db767f969c..ecdd01f512 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
@@ -1,8 +1,8 @@
-import { useTranslation } from "react-i18next";
import { Link, useNavigate, useParams } from "@tanstack/react-router";
import { ChevronLeftIcon, EllipsisIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -217,12 +217,11 @@ const Page = () => {
};
export const GroupDetailsByIDPage = () => {
- const { t } = useTranslation();
const { currentProject } = useProject();
const projectsHidden = hidesProjects(currentProject.type);
return (
<>
- <title>{t("common.head-title", { title: projectsHidden ? "Group" : "Project Group" })}</title>
+ <PageTitle title={projectsHidden ? "Group" : "Project Group"} />
<link rel="icon" href="/infisical.ico" />
<ProjectPermissionCan
I={ProjectPermissionActions.Read}
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
index 72e7565d89..2eac75b9f2 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
@@ -16,6 +16,7 @@ import {
import { AssumePrivilegesDialog } from "@app/components/assume-privileges";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan, ProjectPermissionCan } from "@app/components/permissions";
import {
Alert,
@@ -488,16 +489,10 @@ const Page = () => {
export const IdentityDetailsByIDPage = () => {
const { t } = useTranslation();
- const { currentProject } = useProject();
- const isAgentVault = currentProject?.type === ProjectType.AgentVault;
return (
<>
- <title>
- {t("common.head-title", {
- title: isAgentVault ? "Machine Identity" : t("settings.members.title")
- })}
- </title>
+ <PageTitle title={t("page-titles.machine-identity")} />
<link rel="icon" href="/infisical.ico" />
<ProjectPermissionCan
I={ProjectPermissionActions.Read}
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx
index 2e83aa5366..877e98caa1 100644
--- a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx
@@ -14,6 +14,7 @@ import {
import { AssumePrivilegesDialog } from "@app/components/assume-privileges";
import { CustomRolesUpgradeIntent, UpgradeGate } from "@app/components/license/UpgradeGate";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Alert,
@@ -378,7 +379,7 @@ export const MemberDetailsByIDPage = () => {
return (
<>
- <title>{t("common.head-title", { title: t("settings.members.title") })}</title>
+ <PageTitle title={t("page-titles.user")} />
<link rel="icon" href="/infisical.ico" />
<ProjectPermissionCan
passThrough
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx
index 0556570c24..00f6abbd4f 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx
@@ -10,6 +10,7 @@ import {
} from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Alert,
@@ -253,13 +254,9 @@ const Page = () => {
export const RoleDetailsBySlugPage = () => {
const { t } = useTranslation();
- const { currentProject } = useProject();
- const isCertManager = currentProject.type === ProjectType.CertificateManager;
return (
<>
- <title>
- {t("common.head-title", { title: isCertManager ? "Role" : "Project Settings" })}
- </title>
+ <PageTitle title={t("page-titles.role")} />
<link rel="icon" href="/infisical.ico" />
<ProjectPermissionCan
I={ProjectPermissionActions.Read}
diff --git a/frontend/src/pages/public/ErrorPage/ErrorPage.tsx b/frontend/src/pages/public/ErrorPage/ErrorPage.tsx
index 559b0da5bf..acf60c63f9 100644
--- a/frontend/src/pages/public/ErrorPage/ErrorPage.tsx
+++ b/frontend/src/pages/public/ErrorPage/ErrorPage.tsx
@@ -95,6 +95,7 @@ export const ErrorPage = ({ error }: ErrorComponentProps) => {
return (
<ErrorPageFrame
+ pageTitle="Page Error"
badgeIcon={<TriangleAlertIcon />}
badgeText={badgeText}
heading={
diff --git a/frontend/src/pages/public/ErrorPage/components/ErrorPageFrame.tsx b/frontend/src/pages/public/ErrorPage/components/ErrorPageFrame.tsx
index 719604a39c..19d2ec8ac0 100644
--- a/frontend/src/pages/public/ErrorPage/components/ErrorPageFrame.tsx
+++ b/frontend/src/pages/public/ErrorPage/components/ErrorPageFrame.tsx
@@ -2,6 +2,7 @@ import { ReactNode, useLayoutEffect, useRef, useState } from "react";
import { ActivityIcon, CheckIcon, CopyIcon, MonitorCheckIcon, ShieldCheckIcon } from "lucide-react";
import { AuthPageBackground } from "@app/components/auth/AuthPageBackground";
+import { PageTitle } from "@app/components/PageTitle";
import { Badge, Button, Card } from "@app/components/v3";
import { useTimedReset } from "@app/hooks";
@@ -27,7 +28,7 @@ export const useErrorPageTimestamp = () => {
};
type Props = {
- helmetTitle?: string;
+ pageTitle: string;
badgeIcon: ReactNode;
badgeText: string;
heading: ReactNode;
@@ -44,7 +45,7 @@ type Props = {
// ProjectAccessError): vault backdrop, two-column card, badge + heading + actions on the left,
// "What We Know" status column on the right.
export const ErrorPageFrame = ({
- helmetTitle,
+ pageTitle,
badgeIcon,
badgeText,
heading,
@@ -94,7 +95,7 @@ export const ErrorPageFrame = ({
isFullScreen ? "min-h-screen bg-linear-to-tr from-card via-page-deep to-card" : "min-h-full"
}`}
>
- {helmetTitle && <title>{helmetTitle}</title>}
+ <PageTitle title={pageTitle} />
{isFullScreen && <AuthPageBackground />}
<Card className="relative z-10 grid w-full max-w-5xl gap-0 overflow-hidden p-0 lg:grid-cols-[1fr_26rem]">
<div className="flex flex-col p-8">
diff --git a/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx b/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx
index d85e6d2404..67fddc4120 100644
--- a/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx
+++ b/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx
@@ -199,7 +199,7 @@ export const ProjectAccessError = ({ projectId: projectIdProp }: ProjectAccessEr
return (
<ErrorPageFrame
- helmetTitle="Infisical | Access Restricted"
+ pageTitle="Access Restricted"
badgeIcon={<UserXIcon />}
badgeText="403 · Access Restricted"
heading={
diff --git a/frontend/src/pages/public/ForbiddenPage/ForbiddenPage.tsx b/frontend/src/pages/public/ForbiddenPage/ForbiddenPage.tsx
index cda7504a28..c220d4b614 100644
--- a/frontend/src/pages/public/ForbiddenPage/ForbiddenPage.tsx
+++ b/frontend/src/pages/public/ForbiddenPage/ForbiddenPage.tsx
@@ -44,7 +44,7 @@ export const ForbiddenPage = ({ error }: Props = {}) => {
return (
<ErrorPageFrame
- helmetTitle="Infisical | Access Denied"
+ pageTitle="Access Denied"
badgeIcon={<LockIcon />}
badgeText="403 · Access Denied"
heading={
diff --git a/frontend/src/pages/public/NotFoundPage/NotFoundPage.tsx b/frontend/src/pages/public/NotFoundPage/NotFoundPage.tsx
index ee8e47b301..7a4734954e 100644
--- a/frontend/src/pages/public/NotFoundPage/NotFoundPage.tsx
+++ b/frontend/src/pages/public/NotFoundPage/NotFoundPage.tsx
@@ -21,7 +21,7 @@ export const NotFoundPage = () => {
return (
<ErrorPageFrame
- helmetTitle="Infisical | Page Not Found"
+ pageTitle="Page Not Found"
badgeIcon={<CompassIcon />}
badgeText="404 · Not Found"
heading={
diff --git a/frontend/src/pages/public/ShareSecretPage/ShareSecretPage.tsx b/frontend/src/pages/public/ShareSecretPage/ShareSecretPage.tsx
index 02126eb65d..05231773b6 100644
--- a/frontend/src/pages/public/ShareSecretPage/ShareSecretPage.tsx
+++ b/frontend/src/pages/public/ShareSecretPage/ShareSecretPage.tsx
@@ -1,6 +1,7 @@
import { LockKeyhole } from "lucide-react";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
+import { PageTitle } from "@app/components/PageTitle";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@app/components/v3";
import { ShareSecretForm } from "./components";
@@ -8,7 +9,7 @@ import { ShareSecretForm } from "./components";
export const ShareSecretPage = () => {
return (
<>
- <title>Securely Share Secrets | Infisical</title>
+ <PageTitle title="Securely Share Secrets" />
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content="Securely Share Secrets" />
diff --git a/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx b/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx
index d240045dfa..344637bc8c 100644
--- a/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx
+++ b/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx
@@ -7,6 +7,7 @@ import { AuthPageBackground } from "@app/components/auth/AuthPageBackground";
import { AuthPageFooter } from "@app/components/auth/AuthPageFooter";
import { AuthPageHeader } from "@app/components/auth/AuthPageHeader";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Card,
CardContent,
@@ -166,9 +167,12 @@ export const ViewSecretRequestByIDPage = () => {
if (isPending) {
return (
- <div className="h-screen w-screen bg-page">
- <PageLoader lottieClassName="w-34" />
- </div>
+ <>
+ <title>Secret Request</title>
+ <div className="h-screen w-screen bg-page">
+ <PageLoader lottieClassName="w-34" />
+ </div>
+ </>
);
}
@@ -249,7 +253,7 @@ export const ViewSecretRequestByIDPage = () => {
return (
<div className="relative flex max-h-screen min-h-screen flex-col overflow-y-auto bg-page px-4 text-foreground scheme-dark">
<AuthPageBackground />
- <title>Secret Request | Infisical</title>
+ <PageTitle title="Secret Request" />
<meta property="og:image" content="/images/message.png" />
<AuthPageHeader />
<div className="relative z-10 my-auto flex flex-col items-center py-10">
diff --git a/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx b/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx
index ea41925a96..ebb2372ff0 100644
--- a/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx
+++ b/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx
@@ -5,6 +5,7 @@ import { addSeconds, formatISO } from "date-fns";
import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { Card, CardContent, CardHeader, CardTitle, PageLoader } from "@app/components/v3";
import { SessionStorageKeys } from "@app/const";
import { ROUTE_PATHS } from "@app/const/routes";
@@ -207,9 +208,12 @@ export const ViewSharedSecretByIDPage = () => {
if (isLoading || isLoadingBrandingConfig) {
return (
- <div className="h-screen w-screen bg-page">
- <PageLoader lottieClassName="w-34" />
- </div>
+ <>
+ <title>Securely Share Secrets</title>
+ <div className="h-screen w-screen bg-page">
+ <PageLoader lottieClassName="w-34" />
+ </div>
+ </>
);
}
@@ -266,7 +270,7 @@ export const ViewSharedSecretByIDPage = () => {
// Default: Infisical auth page layout
return (
<>
- <title>Securely Share Secrets | Infisical</title>
+ <PageTitle title="Securely Share Secrets" />
<meta property="og:image" content="/images/message.png" />
<AuthPageLayout variant="focused" contentClassName="max-w-xl">
<div className="flex flex-col items-center">
diff --git a/frontend/src/pages/secret-manager/InsightsPage/InsightsPage.tsx b/frontend/src/pages/secret-manager/InsightsPage/InsightsPage.tsx
index 53fd80cc34..27cefbea90 100644
--- a/frontend/src/pages/secret-manager/InsightsPage/InsightsPage.tsx
+++ b/frontend/src/pages/secret-manager/InsightsPage/InsightsPage.tsx
@@ -12,6 +12,7 @@ import {
SecretAccessInsightsUpgradeIntent,
useUpgradeGate
} from "@app/components/license/UpgradeGate";
+import { PageTitle } from "@app/components/PageTitle";
import { PageHeader } from "@app/components/v3/platform";
import {
ProjectPermissionInsightsActions,
@@ -35,7 +36,7 @@ import {
SecretAccessChart
} from "./components";
-export const InsightsPage = withProjectPermission(
+const InsightsPageContent = withProjectPermission(
() => {
const { subscription } = useSubscription();
const { currentProject, projectId } = useProject();
@@ -116,7 +117,6 @@ export const InsightsPage = withProjectPermission(
return (
<>
- <title>Insights</title>
<PageHeader
className="mb-4 dashboard:mb-10"
scope={ProjectType.SecretManager}
@@ -156,3 +156,10 @@ export const InsightsPage = withProjectPermission(
accessRestrictedMode: "dialog"
}
);
+
+export const InsightsPage = () => (
+ <>
+ <PageTitle title="Insights" />
+ <InsightsPageContent />
+ </>
+);
diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx
index 2404f56dd2..8ac4ae8922 100644
--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx
@@ -3,6 +3,7 @@ import { useNavigate, useParams } from "@tanstack/react-router";
import { MoreVerticalIcon, RefreshCwIcon, TrashIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { OrgPermissionCan } from "@app/components/permissions";
import {
Button,
@@ -75,7 +76,7 @@ export const IntegrationDetailsByIDPage = () => {
return (
<>
- <title>Integration Details | Infisical</title>
+ <PageTitle title="Integration Details" />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content="Manage your .env files in seconds" />
<meta name="og:description" content={t("integrations.description") as string} />
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
index f8db604ff2..8797df95de 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
@@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { TriangleAlertIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
PageHeader,
@@ -64,7 +65,7 @@ export const IntegrationsListPage = () => {
return (
<>
- <title>{t("common.head-title", { title: t("integrations.title") })}</title>
+ <PageTitle title={t("integrations.title")} />
<meta property="og:image" content="/images/message.png" />
<meta property="og:title" content="Manage your .env files in seconds" />
<meta name="og:description" content={t("integrations.description") as string} />
diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
index 15a52c7d9d..85a6230922 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
@@ -64,6 +64,7 @@ import {
useUpgradeGate
} from "@app/components/license/UpgradeGate";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
CreateProxiedServiceModal,
@@ -3766,9 +3767,12 @@ const OverviewPageContent = () => {
if (!isProjectV3)
return (
- <div className="flex h-full w-full flex-col items-center justify-center px-6 text-foreground">
- <SecretV2MigrationSection />
- </div>
+ <>
+ <PageTitle title={t("dashboard.title")} />
+ <div className="flex h-full w-full flex-col items-center justify-center px-6 text-foreground">
+ <SecretV2MigrationSection />
+ </div>
+ </>
);
const dynamicSecretLeaseData = popUp.dynamicSecretLeases?.data as
@@ -3896,7 +3900,7 @@ const OverviewPageContent = () => {
return withOverviewTelemetry(
overviewTelemetry,
<div className="mx-auto flex max-w-8xl flex-col">
- <title>{t("common.head-title", { title: t("dashboard.title") })}</title>
+ <PageTitle title={t("dashboard.title")} />
<meta property="og:title" content={String(t("dashboard.og-title"))} />
<meta name="og:description" content={String(t("dashboard.og-description"))} />
<PageHeader
diff --git a/frontend/src/pages/secret-manager/SecretApprovalsPage/SecretApprovalsPage.tsx b/frontend/src/pages/secret-manager/SecretApprovalsPage/SecretApprovalsPage.tsx
index 9c6f3e3ed1..c5576e6351 100644
--- a/frontend/src/pages/secret-manager/SecretApprovalsPage/SecretApprovalsPage.tsx
+++ b/frontend/src/pages/secret-manager/SecretApprovalsPage/SecretApprovalsPage.tsx
@@ -2,6 +2,7 @@ import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { Badge, PageHeader, Tabs, TabsContent, TabsList, TabsTrigger } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
@@ -82,7 +83,7 @@ export const SecretApprovalsPage = () => {
return (
<div>
- <title>{t("common.head-title", { title: t("approval.title") })}</title>
+ <PageTitle title={t("page-titles.secret-approvals")} />
<meta property="og:title" content={String(t("approval.og-title"))} />
<meta name="og:description" content={String(t("approval.og-description"))} />
<div className="mx-auto flex h-full w-full max-w-8xl flex-col bg-page text-foreground-inverse">
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/SecretSyncDetailsByIDPage.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/SecretSyncDetailsByIDPage.tsx
index a1e7582631..20bd5ef388 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/SecretSyncDetailsByIDPage.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/SecretSyncDetailsByIDPage.tsx
@@ -1,6 +1,7 @@
import { Link, useParams } from "@tanstack/react-router";
import { BanIcon, ChevronLeftIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
EditSecretSyncModal,
@@ -147,7 +148,7 @@ const PageContent = () => {
export const SecretSyncDetailsByIDPage = () => {
return (
<>
- <title>Secret Sync | Infisical</title>
+ <PageTitle title="Secret Sync" />
<link rel="icon" href="/infisical.ico" />
<ProjectPermissionCan
renderGuardBanner
diff --git a/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx b/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx
index 259983e7bc..29d2577cbb 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx
@@ -1,6 +1,7 @@
import { useTranslation } from "react-i18next";
import { useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { LookingForOrgPageLink } from "@app/components/v3";
import { PageHeader } from "@app/components/v3/platform";
import { ROUTE_PATHS } from "@app/const/routes";
@@ -82,7 +83,7 @@ export const SettingsPage = () => {
return (
<div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: pageTitle })}</title>
+ <PageTitle title={pageTitle} />
<div className="w-full max-w-8xl">
<PageHeader
scope={ProjectType.SecretManager}
diff --git a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx
index bebe8bac0c..a00ee2ce52 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx
@@ -5,6 +5,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -95,7 +96,7 @@ export const AWSParameterStoreAuthorizeIntegrationPage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize AWS Parameter Integration</title>
+ <PageTitle title="Authorize AWS Parameter Store Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx
index 97f09fd62d..d18191943b 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx
@@ -9,6 +9,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { motion } from "motion/react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -182,7 +183,7 @@ export const AWSParameterStoreConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && !isIntegrationAuthAwsKmsKeysLoading ? (
<div className="flex h-full w-full flex-col items-center justify-center">
- <title>Set Up AWS Parameter Integration</title>
+ <PageTitle title="Set Up AWS Parameter Store Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -402,7 +403,7 @@ export const AWSParameterStoreConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up AWS Parameter Store Integration</title>
+ <PageTitle title="Set Up AWS Parameter Store Integration" />
{isintegrationAuthLoading || isIntegrationAuthAwsKmsKeysLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx
index 3a6601f018..8a3fd3b13c 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx
@@ -5,6 +5,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -92,7 +93,7 @@ export const AWSSecretManagerAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize AWS Secrets Manager Integration</title>
+ <PageTitle title="Authorize AWS Secrets Manager Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx
index 088934c54a..b3f11037d7 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx
@@ -12,6 +12,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { motion } from "motion/react";
import z from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -231,7 +232,7 @@ export const AwsSecretManagerConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && !isIntegrationAuthAwsKmsKeysLoading ? (
<div className="flex h-full w-full flex-col items-center justify-center">
- <title>Set Up AWS Secrets Manager Integration</title>
+ <PageTitle title="Set Up AWS Secrets Manager Integration" />
<form onSubmit={handleSubmit(handleButtonClick)}>
<Card className="w-full max-w-lg">
<CardHeader>
@@ -679,7 +680,7 @@ export const AwsSecretManagerConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up AWS Secrets Manager Integration</title>
+ <PageTitle title="Set Up AWS Secrets Manager Integration" />
{isintegrationAuthLoading || isIntegrationAuthAwsKmsKeysLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx
index c8252794e8..eaab1233f7 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx
@@ -7,6 +7,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { z } from "zod";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -159,7 +160,7 @@ export const AzureAppConfigurationConfigurePage = () => {
onSubmit={handleSubmit(handleIntegrationSubmit)}
className="flex h-full w-full flex-col items-center justify-center"
>
- <title>Set Up Azure App Configuration Integration</title>
+ <PageTitle title="Set Up Azure App Configuration Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -391,6 +392,9 @@ export const AzureAppConfigurationConfigurePage = () => {
</Card>
</form>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Azure App Configuration Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx
index 6c4cbf26ef..b2211565be 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx
@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useAuthorizeIntegration } from "@app/hooks/api";
@@ -43,5 +44,10 @@ export const AzureAppConfigurationOauthCallbackPage = () => {
})();
}, []);
- return <div />;
+ return (
+ <>
+ <PageTitle title="Connecting Azure App Configuration Integration" />
+ <div />
+ </>
+ );
};
diff --git a/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx
index 075b8bea02..3ecd6b9b08 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx
@@ -3,6 +3,7 @@ import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-sv
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -71,7 +72,7 @@ export const AzureDevopsAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Azure DevOps Integration</title>
+ <PageTitle title="Authorize Azure DevOps Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx
index 85d6328de5..79e1bf1b43 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx
@@ -3,6 +3,7 @@ import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-sv
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -109,7 +110,7 @@ export const AzureDevopsConfigurePage = () => {
integrationAuthApps &&
targetApp ? (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Azure DevOps Integration</title>
+ <PageTitle title="Set Up Azure DevOps Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -206,6 +207,9 @@ export const AzureDevopsConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Azure DevOps Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/AzureKeyVaultAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/AzureKeyVaultAuthorizePage.tsx
index b7cde9b7bb..f69da8fc05 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/AzureKeyVaultAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/AzureKeyVaultAuthorizePage.tsx
@@ -5,6 +5,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useSearch } from "@tanstack/react-router";
import z from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -49,7 +50,7 @@ export function AzureKeyVaultAuthorizePage() {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Azure Key Vault Integration</title>
+ <PageTitle title="Authorize Azure Key Vault Integration" />
<link rel="icon" href="/infisical.ico" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx
index 5e6c7704b9..505232d603 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -113,6 +114,7 @@ export const AzureKeyVaultConfigurePage = () => {
return integrationAuth && workspace && selectedSourceEnvironment ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Azure Key Vault Integration" />
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>Azure Key Vault Integration</CardTitle>
@@ -195,6 +197,9 @@ export const AzureKeyVaultConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Azure Key Vault Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx
index 88078efc13..f697c3ee36 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx
@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useAuthorizeIntegration } from "@app/hooks/api";
@@ -43,5 +44,10 @@ export const AzureKeyVaultOauthCallbackPage = () => {
})();
}, []);
- return <div />;
+ return (
+ <>
+ <PageTitle title="Connecting Azure Key Vault Integration" />
+ <div />
+ </>
+ );
};
diff --git a/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx
index 458086023e..c98761b57d 100644
--- a/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx
@@ -6,6 +6,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { z } from "zod";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -185,6 +186,7 @@ export const BitbucketConfigurePage = () => {
if (isBitbucketWorkspacesLoading || isBitbucketReposLoading)
return (
<div className="flex h-full w-full items-center justify-center p-24">
+ <PageTitle title="Set Up Bitbucket Integration" />
<Spinner />
</div>
);
@@ -196,6 +198,7 @@ export const BitbucketConfigurePage = () => {
onSubmit={handleSubmit(onSubmit)}
className="flex h-full w-full items-center justify-center"
>
+ <PageTitle title="Set Up Bitbucket Integration" />
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx
index d62f14986b..28eab88a3a 100644
--- a/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx
@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useAuthorizeIntegration } from "@app/hooks/api";
@@ -43,5 +44,10 @@ export const BitbucketOauthCallbackPage = () => {
})();
}, []);
- return <div />;
+ return (
+ <>
+ <PageTitle title="Connecting Bitbucket Integration" />
+ <div />
+ </>
+ );
};
diff --git a/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx
index 2d16ca05ed..dbac421a0d 100644
--- a/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx
@@ -3,6 +3,7 @@ import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-sv
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -66,7 +67,7 @@ export const ChecklyAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Checkly Integration</title>
+ <PageTitle title="Authorize Checkly Integration" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx
index cd6640fa10..c32c0cf5e5 100644
--- a/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx
@@ -4,6 +4,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { motion } from "motion/react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -143,7 +144,7 @@ export const ChecklyConfigurePage = () => {
integrationAuthGroups &&
targetAppId ? (
<div className="flex h-full w-full flex-col items-center justify-center bg-linear-to-tr from-surface-base to-page-deep py-6">
- <title>Set Up Checkly Integration</title>
+ <PageTitle title="Set Up Checkly Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -301,7 +302,7 @@ export const ChecklyConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Checkly Integration</title>
+ <PageTitle title="Set Up Checkly Integration" />
{isIntegrationAuthAppsLoading || isintegrationAuthGroupsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx
index fe2d062f2f..1777e2f3ba 100644
--- a/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx
@@ -3,6 +3,7 @@ import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-sv
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -65,7 +66,7 @@ export const CircleCIAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize CircleCI Integration</title>
+ <PageTitle title="Authorize CircleCI Integration" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx
index e911e7893f..e834f15934 100644
--- a/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx
@@ -6,6 +6,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { z } from "zod";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -127,6 +128,7 @@ export const CircleCIConfigurePage = () => {
if (isCircleCIOrganizationsLoading)
return (
<div className="flex h-full w-full items-center justify-center p-24">
+ <PageTitle title="Set Up CircleCI Integration" />
<Spinner />
</div>
);
@@ -136,6 +138,7 @@ export const CircleCIConfigurePage = () => {
onSubmit={handleSubmit(onSubmit)}
className="flex h-full w-full items-center justify-center"
>
+ <PageTitle title="Set Up CircleCI Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx
index c6f97f3b7e..7dc0718494 100644
--- a/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -61,6 +62,7 @@ export const Cloud66AuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Cloud 66 Integration" />
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>Cloud 66 Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx
index cc003da12b..6f2439c808 100644
--- a/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -98,6 +99,7 @@ export const Cloud66ConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Cloud 66 Integration" />
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>Cloud 66 Integration</CardTitle>
@@ -175,6 +177,9 @@ export const Cloud66ConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Cloud 66 Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx
index dfdd0f7d7b..1c4933ad6e 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -70,6 +71,7 @@ export const CloudflarePagesAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Cloudflare Pages Integration" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
<CardTitle>Cloudflare Pages Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx
index 7d72458cb7..10ca16b197 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -121,6 +122,7 @@ export const CloudflarePagesConfigurePage = () => {
targetEnvironment &&
targetApp ? (
<div className="flex h-full w-full items-center justify-center bg-linear-to-tr from-surface-base to-page-deep">
+ <PageTitle title="Set Up Cloudflare Pages Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Cloudflare Pages Integration</CardTitle>
@@ -239,6 +241,9 @@ export const CloudflarePagesConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Cloudflare Pages Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx
index 428419331b..821f0678b9 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -70,6 +71,7 @@ export const CloudflareWorkersAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Cloudflare Workers Integration" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
<CardTitle>Cloudflare Workers Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx
index f3f62928f3..5c7ea63fd2 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -96,6 +97,7 @@ export const CloudflareWorkersConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full items-center justify-center bg-linear-to-tr from-surface-base to-page-deep">
+ <PageTitle title="Set Up Cloudflare Workers Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Cloudflare Workers Integration</CardTitle>
@@ -182,6 +184,9 @@ export const CloudflareWorkersConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Cloudflare Workers Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx
index e91135c4b7..a39444b5b8 100644
--- a/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -60,6 +61,7 @@ export const CodefreshAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Codefresh Integration" />
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>Codefresh Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx
index b1c36f1b7d..93ad0e2d2b 100644
--- a/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -94,6 +95,7 @@ export const CodefreshConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Codefresh Integration" />
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>Codefresh Integration</CardTitle>
@@ -171,6 +173,9 @@ export const CodefreshConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Codefresh Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx
index 4c31de3d91..fe75fea22a 100644
--- a/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx
@@ -3,6 +3,7 @@ import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-sv
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -69,7 +70,7 @@ export const DatabricksAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Databricks Integration</title>
+ <PageTitle title="Authorize Databricks Integration" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx
index f9217a7784..244001bd87 100644
--- a/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx
@@ -9,6 +9,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -108,7 +109,7 @@ export const DatabricksConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthScopes ? (
<div className="flex h-full w-full flex-col items-center justify-center">
- <title>Set Up Databricks Integration</title>
+ <PageTitle title="Set Up Databricks Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -233,7 +234,7 @@ export const DatabricksConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Databricks Integration</title>
+ <PageTitle title="Set Up Databricks Integration" />
{isIntegrationAuthScopesLoading || isintegrationAuthLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx
index 6de2c7e592..03a21380dc 100644
--- a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -60,6 +61,7 @@ export const DigitalOceanAppPlatformAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize DigitalOcean App Platform Integration" />
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>Digital Ocean App Platform Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx
index 8f44f039b4..eec83db9d4 100644
--- a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -95,6 +96,7 @@ export const DigitalOceanAppPlatformConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up DigitalOcean App Platform Integration" />
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>Digital Ocean App Platform Integration</CardTitle>
@@ -179,6 +181,9 @@ export const DigitalOceanAppPlatformConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up DigitalOcean App Platform Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx
index babdcd001f..b4f013632f 100644
--- a/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx
@@ -6,6 +6,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -74,7 +75,7 @@ export const FlyioAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Fly.io Integration</title>
+ <PageTitle title="Authorize Fly.io Integration" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx
index 129f8e8090..d4c7ac5fb1 100644
--- a/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx
@@ -9,6 +9,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { TriangleAlertIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Alert,
AlertDescription,
@@ -112,7 +113,7 @@ export const FlyioConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full flex-col items-center justify-center">
- <title>Set Up Fly.io Integration</title>
+ <PageTitle title="Set Up Fly.io Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -231,7 +232,7 @@ export const FlyioConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Fly.io Integration</title>
+ <PageTitle title="Set Up Fly.io Integration" />
{isIntegrationAuthLoading || isIntegrationAuthAppsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx
index 96b50fae89..99ffddaaf3 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx
@@ -9,6 +9,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -100,7 +101,7 @@ export const GcpSecretManagerAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize GCP Secret Manager Integration</title>
+ <PageTitle title="Authorize GCP Secret Manager Integration" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx
index f9cb44d224..6434b8fc24 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx
@@ -7,6 +7,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { motion } from "motion/react";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -193,7 +194,7 @@ export const GcpSecretManagerConfigurePage = () => {
className="flex h-full w-full flex-col items-center justify-center"
>
<Card className="w-full max-w-lg">
- <title>Set Up GCP Secret Manager Integration</title>
+ <PageTitle title="Set Up GCP Secret Manager Integration" />
<CardHeader>
<CardTitle>
<img
@@ -528,7 +529,7 @@ export const GcpSecretManagerConfigurePage = () => {
</form>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up GCP Secret Manager Integration</title>
+ <PageTitle title="Set Up GCP Secret Manager Integration" />
{isIntegrationAuthAppsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx
index 3cf6b8b529..7ed1784fe1 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx
@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useAuthorizeIntegration } from "@app/hooks/api";
@@ -43,5 +44,10 @@ export const GcpSecretManagerOauthCallbackPage = () => {
})();
}, []);
- return <div />;
+ return (
+ <>
+ <PageTitle title="Connecting GCP Secret Manager Integration" />
+ <div />
+ </>
+ );
};
diff --git a/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx
index 589afd5188..07c7d75fc5 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx
@@ -5,6 +5,7 @@ import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-sv
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -44,7 +45,7 @@ export const GithubAuthorizePage = () => {
const { currentOrg } = useOrganization();
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Select GitHub Integration Auth</title>
+ <PageTitle title="Select GitHub Integration Auth" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx
index 3f7aafbbfe..046903df78 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx
@@ -14,6 +14,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { motion } from "motion/react";
import { z, ZodIssueCode } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -304,7 +305,7 @@ export const GithubConfigurePage = () => {
return integrationAuth && integrationAuthApps ? (
<div className="flex h-full w-full flex-col items-center justify-center py-4">
- <title>Set Up GitHub Integration</title>
+ <PageTitle title="Set Up GitHub Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -881,7 +882,7 @@ export const GithubConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up GitHub Integration</title>
+ <PageTitle title="Set Up GitHub Integration" />
{isIntegrationAuthAppsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx
index 002ec2d48f..ff2cd18e5e 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx
@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useAuthorizeIntegration } from "@app/hooks/api";
@@ -51,5 +52,10 @@ export const GithubOauthCallbackPage = () => {
})();
}, []);
- return <div />;
+ return (
+ <>
+ <PageTitle title="Connecting GitHub Integration" />
+ <div />
+ </>
+ );
};
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx
index 12eab2db49..df7d1d3c7d 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx
@@ -6,6 +6,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { zodResolver } from "@hookform/resolvers/zod";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -75,7 +76,7 @@ export const GitlabAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize GitLab Integration</title>
+ <PageTitle title="Authorize GitLab Integration" />
<Card className="mb-12 w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx
index c2ab7ada99..9edc1446b4 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx
@@ -7,6 +7,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { motion } from "motion/react";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Badge,
Button,
@@ -222,7 +223,7 @@ export const GitlabConfigurePage = () => {
})}
className="flex h-full w-full flex-col items-center justify-center"
>
- <title>Set Up GitLab Integration</title>
+ <PageTitle title="Set Up GitLab Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -664,7 +665,7 @@ export const GitlabConfigurePage = () => {
</form>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up GitLab Integration</title>
+ <PageTitle title="Set Up GitLab Integration" />
{isIntegrationAuthAppsLoading || isintegrationAuthTeamsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx
index 459d9084e4..0d033b9d4a 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx
@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useCreateAppConnection, useUpdateAppConnection } from "@app/hooks/api/appConnections";
@@ -104,6 +105,7 @@ export const GitLabOAuthCallbackPage = () => {
return (
<div className="flex h-screen items-center justify-center">
+ <PageTitle title="Connecting GitLab Integration" />
<div className="text-center">
<div className="mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-b-2 border-project" />
<p className="text-label">Connecting to GitLab...</p>
diff --git a/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx
index 6fe5aef792..632095d72e 100644
--- a/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx
@@ -3,6 +3,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -71,7 +72,7 @@ export const HashicorpVaultAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Vault Integration</title>
+ <PageTitle title="Authorize Vault Integration" />
<form onSubmit={handleSubmit(handleFormSubmit)} noValidate className="w-full max-w-lg">
<Card>
<CardHeader>
diff --git a/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx
index 4b581017ce..8a5383a613 100644
--- a/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx
@@ -7,6 +7,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { InfoIcon } from "lucide-react";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Alert,
AlertDescription,
@@ -119,7 +120,7 @@ export const HashicorpVaultConfigurePage = () => {
return integrationAuth ? (
<div className="flex h-full w-full flex-col items-center justify-center gap-6">
- <title>Set Up Vault Integration</title>
+ <PageTitle title="Set Up Vault Integration" />
<form onSubmit={handleSubmit(handleFormSubmit)} noValidate className="w-full max-w-lg">
<Card>
<CardHeader>
@@ -294,7 +295,7 @@ export const HashicorpVaultConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Vault Integration</title>
+ <PageTitle title="Set Up Vault Integration" />
{isintegrationAuthLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx
index ead06f07aa..f4aa58dd0e 100644
--- a/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx
@@ -4,6 +4,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -69,7 +70,7 @@ export const HasuraCloudAuthorizePage = () => {
};
return (
<div className="flex h-full w-full items-center justify-center">
- <title>{`Authorize ${APP_NAME} Integration`}</title>
+ <PageTitle title={`Authorize ${APP_NAME} Integration`} />
<form onSubmit={handleSubmit(onFormSubmit)} className="w-full max-w-lg">
<Card>
<CardHeader>
diff --git a/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx
index 04049d87c5..44423a2635 100644
--- a/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx
@@ -5,6 +5,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -102,7 +103,7 @@ export const HasuraCloudConfigurePage = () => {
return integrationAuth && integrationAuthApps ? (
<div className="flex h-full w-full flex-col items-center justify-center">
- <title>{`Set Up ${APP_NAME} Integration`}</title>
+ <PageTitle title={`Set Up ${APP_NAME} Integration`} />
<form onSubmit={handleSubmit(onFormSubmit)} className="w-full max-w-lg">
<Card>
<CardHeader>
@@ -233,7 +234,7 @@ export const HasuraCloudConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>{`Set Up ${APP_NAME} Integration`}</title>
+ <PageTitle title={`Set Up ${APP_NAME} Integration`} />
{isIntegrationAuthLoading || isIntegrationAuthAppsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx
index 1e7819c8c9..a9129e0eee 100644
--- a/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx
@@ -6,6 +6,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -124,7 +125,7 @@ export const HerokuConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps ? (
<div className="flex h-full w-full flex-col items-center justify-center">
- <title>Set Up Heroku Integration</title>
+ <PageTitle title="Set Up Heroku Integration" />
<form onSubmit={handleSubmit(onFormSubmit)} className="w-full max-w-lg">
<Card>
<CardHeader>
@@ -320,7 +321,7 @@ export const HerokuConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Heroku Integration</title>
+ <PageTitle title="Set Up Heroku Integration" />
{isIntegrationAuthAppsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx
index 94e46d61a3..5ed95b623a 100644
--- a/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx
@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useCreateAppConnection, useUpdateAppConnection } from "@app/hooks/api/appConnections";
@@ -96,6 +97,7 @@ export const HerokuOAuthCallbackPage = () => {
return (
<div className="flex h-screen items-center justify-center">
+ <PageTitle title="Connecting Heroku Integration" />
<div className="text-center">
<div className="mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-b-2 border-project" />
<p className="text-label">Connecting to Heroku...</p>
diff --git a/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx
index f529dc4b4d..6d7f89b2af 100644
--- a/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -65,6 +66,7 @@ export const LaravelForgeAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Laravel Forge Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Laravel Forge Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx
index a3c75c3ba1..dfb1128144 100644
--- a/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -90,6 +91,7 @@ export const LaravelForgeConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Laravel Forge Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Laravel Forge Integration</CardTitle>
@@ -176,6 +178,9 @@ export const LaravelForgeConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Laravel Forge Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx
index be1aca1dd7..bd932c6367 100644
--- a/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -102,6 +103,7 @@ export const NetlifyConfigurePage = () => {
targetApp &&
targetEnvironment ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Netlify Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Netlify Integration</CardTitle>
@@ -210,6 +212,9 @@ export const NetlifyConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Netlify Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx
index abddc4b26e..e1a89bb50d 100644
--- a/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx
@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useAuthorizeIntegration } from "@app/hooks/api";
@@ -43,5 +44,10 @@ export const NetlifyOauthCallbackPage = () => {
})();
}, []);
- return <div />;
+ return (
+ <>
+ <PageTitle title="Connecting Netlify Integration" />
+ <div />
+ </>
+ );
};
diff --git a/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx
index cf5924dc94..686cdbfc90 100644
--- a/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -55,6 +56,7 @@ export const NorthflankAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Northflank Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Northflank Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx
index c79f412736..8b3c756d6b 100644
--- a/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -110,6 +111,7 @@ export const NorthflankConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetAppId ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Northflank Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Northflank Integration</CardTitle>
@@ -232,6 +234,9 @@ export const NorthflankConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Northflank Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx
index 988b29dd9a..2013f79e80 100644
--- a/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx
@@ -3,6 +3,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -62,7 +63,7 @@ export const OctopusDeployAuthorizePage = () => {
onSubmit={handleSubmit(onSubmit)}
className="flex h-full w-full items-center justify-center"
>
- <title>Authorize Octopus Deploy Integration</title>
+ <PageTitle title="Authorize Octopus Deploy Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx
index ab212f029d..5e951d0a99 100644
--- a/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx
@@ -6,6 +6,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { z } from "zod";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -166,6 +167,7 @@ export const OctopusDeployConfigurePage = () => {
if (isLoadingOctopusDeploySpaces || isOctopusDeployResourcesLoading)
return (
<div className="flex h-full w-full items-center justify-center p-24">
+ <PageTitle title="Set Up Octopus Deploy Integration" />
<Spinner />
</div>
);
@@ -175,6 +177,7 @@ export const OctopusDeployConfigurePage = () => {
onSubmit={handleSubmit(onSubmit)}
className="flex h-full w-full items-center justify-center"
>
+ <PageTitle title="Set Up Octopus Deploy Integration" />
<Card className="w-full max-w-4xl">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx
index 9c62bf3b49..2b7e5a9af3 100644
--- a/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -57,7 +58,7 @@ export const QoveryAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Qovery Integration</title>
+ <PageTitle title="Authorize Qovery Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx
index f431f03ea5..f6d57a7784 100644
--- a/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx
@@ -4,6 +4,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { motion } from "motion/react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -194,7 +195,7 @@ export const QoveryConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment ? (
<div className="flex h-full w-full flex-col items-center justify-center">
- <title>Set Up Qovery Integration</title>
+ <PageTitle title="Set Up Qovery Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -449,7 +450,7 @@ export const QoveryConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Qovery Integration</title>
+ <PageTitle title="Set Up Qovery Integration" />
{isIntegrationAuthAppsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx
index 7d8038ff5e..02e0283693 100644
--- a/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -55,6 +56,7 @@ export const RailwayAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Railway Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Railway Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx
index 27ee74f434..dd3d401d1d 100644
--- a/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -135,6 +136,7 @@ export const RailwayConfigurePage = () => {
targetServices &&
filteredTargetServices ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Railway Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Railway Integration</CardTitle>
@@ -283,6 +285,9 @@ export const RailwayConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Railway Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx
index 57a20b98d4..05e482bfe7 100644
--- a/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -57,7 +58,7 @@ export const RenderAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Render Integration</title>
+ <PageTitle title="Authorize Render Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx
index 1a85e1e9fc..1a8f5a4964 100644
--- a/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx
@@ -7,6 +7,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { InfoIcon } from "lucide-react";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Alert,
AlertDescription,
@@ -125,7 +126,7 @@ export const RenderConfigurePage = () => {
onSubmit={handleSubmit(onFormSubmit)}
className="flex h-full w-full flex-col items-center justify-center gap-6"
>
- <title>Set Up Render Integration</title>
+ <PageTitle title="Set Up Render Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -293,7 +294,7 @@ export const RenderConfigurePage = () => {
</form>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Render Integration</title>
+ <PageTitle title="Set Up Render Integration" />
{isIntegrationAuthLoading || isIntegrationAuthAppsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx
index 582ef09901..3366a740d8 100644
--- a/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx
@@ -4,6 +4,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate } from "@tanstack/react-router";
import z from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -75,7 +76,7 @@ export const RundeckAuthorizePage = () => {
};
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Rundeck Integration</title>
+ <PageTitle title="Authorize Rundeck Integration" />
<form onSubmit={handleSubmit(onFormSubmit)} className="w-full max-w-lg">
<Card>
<CardHeader>
diff --git a/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx
index 8a34ecdba6..d4f2ca0c59 100644
--- a/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx
@@ -5,6 +5,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { z } from "zod";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -97,7 +98,7 @@ export const RundeckConfigurePage = () => {
return integrationAuth ? (
<div className="flex h-full w-full flex-col items-center justify-center">
- <title>Set Up Rundeck Integration</title>
+ <PageTitle title="Set Up Rundeck Integration" />
<form onSubmit={handleSubmit(onFormSubmit)} className="w-full max-w-lg">
<Card>
<CardHeader>
@@ -217,7 +218,7 @@ export const RundeckConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Rundeck Integration</title>
+ <PageTitle title="Set Up Rundeck Integration" />
{isIntegrationAuthLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx b/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx
index d3ef24cb39..b7c268920e 100644
--- a/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx
@@ -3,6 +3,7 @@ import crypto from "crypto";
import { useCallback, useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -162,15 +163,18 @@ export const SelectIntegrationAuthPage = () => {
(integrationAuths?.length === 0 && isLoadingIntegrationAuthsSuccess)
) {
return (
- <div className="container mx-auto flex h-screen w-full items-center justify-center px-8">
- <Loader variant="brand" size="lg" className="h-32" />
- </div>
+ <>
+ <PageTitle title="Select Connection" />
+ <div className="container mx-auto flex h-screen w-full items-center justify-center px-8">
+ <Loader variant="brand" size="lg" className="h-32" />
+ </div>
+ </>
);
}
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Select Connection</title>
+ <PageTitle title="Select Connection" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx
index 1e22b4dfb5..1e09a03713 100644
--- a/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -56,6 +57,7 @@ export const SupabaseAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Supabase Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Supabase Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx
index 356aaf8be2..03f5fbfb0d 100644
--- a/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -89,6 +90,7 @@ export const SupabaseConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Supabase Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Supabase Integration</CardTitle>
@@ -175,6 +177,9 @@ export const SupabaseConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Supabase Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx
index 0a865b0f6d..e424379963 100644
--- a/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -68,7 +69,7 @@ export const TeamcityAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize TeamCity Integration</title>
+ <PageTitle title="Authorize TeamCity Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx
index 50bb92f55f..c2717aab61 100644
--- a/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx
@@ -3,6 +3,7 @@ import { faBugs } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -113,7 +114,7 @@ export const TeamcityConfigurePage = () => {
targetBuildConfigs &&
targetAppId ? (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up TeamCity Integration</title>
+ <PageTitle title="Set Up TeamCity Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -248,7 +249,7 @@ export const TeamcityConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up TeamCity Integration</title>
+ <PageTitle title="Set Up TeamCity Integration" />
{isIntegrationAuthLoading || isIntegrationAuthAppsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx
index 40a9e755a2..903f696f5f 100644
--- a/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -67,7 +68,7 @@ export const TerraformCloudAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <title>Authorize Terraform Cloud Integration</title>
+ <PageTitle title="Authorize Terraform Cloud Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx
index 10c195f31c..de75cb73f6 100644
--- a/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -125,7 +126,7 @@ export const TerraformCloudConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full items-center justify-center">
- <title>Create Terraform Cloud Integration</title>
+ <PageTitle title="Create Terraform Cloud Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -277,6 +278,9 @@ export const TerraformCloudConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Create Terraform Cloud Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx
index 048da1bce6..ee3c80de56 100644
--- a/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -56,6 +57,7 @@ export const TravisCIAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Travis CI Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Travis CI Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx
index f9f0ee93f6..9ee20bc78b 100644
--- a/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -91,6 +92,7 @@ export const TravisCIConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Travis CI Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Travis CI Integration</CardTitle>
@@ -177,6 +179,9 @@ export const TravisCIConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Travis CI Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx
index 50359d74f2..a3f76675ed 100644
--- a/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx
@@ -4,6 +4,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { InfoIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Alert,
AlertDescription,
@@ -178,7 +179,7 @@ export const VercelConfigurePage = () => {
targetAppId &&
targetEnvironment ? (
<div className="flex h-full w-full flex-col items-center justify-center gap-6">
- <title>Set Up Vercel Integration</title>
+ <PageTitle title="Set Up Vercel Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>
@@ -375,7 +376,7 @@ export const VercelConfigurePage = () => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <title>Set Up Vercel Integration</title>
+ <PageTitle title="Set Up Vercel Integration" />
{isIntegrationAuthAppsLoading ? (
<img
src="/images/loading/loading.gif"
diff --git a/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx
index 2596444e76..e5cea75277 100644
--- a/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx
@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useAuthorizeIntegration } from "@app/hooks/api";
@@ -43,5 +44,10 @@ export const VercelOauthCallbackPage = () => {
})();
}, []);
- return <div />;
+ return (
+ <>
+ <PageTitle title="Connecting Vercel Integration" />
+ <div />
+ </>
+ );
};
diff --git a/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx
index 55dd3f1118..98b38988e1 100644
--- a/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx
@@ -2,6 +2,7 @@ import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
import { CircleHelpIcon } from "lucide-react";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -104,6 +105,7 @@ export const WindmillAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Authorize Windmill Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Windmill Integration</CardTitle>
diff --git a/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx
index 15f674c3bf..1af53dd381 100644
--- a/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import {
Button,
Card,
@@ -91,6 +92,7 @@ export const WindmillConfigurePage = () => {
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
<div className="flex h-full w-full items-center justify-center">
+ <PageTitle title="Set Up Windmill Integration" />
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Windmill Integration</CardTitle>
@@ -177,6 +179,9 @@ export const WindmillConfigurePage = () => {
</Card>
</div>
) : (
- <div />
+ <>
+ <PageTitle title="Set Up Windmill Integration" />
+ <div />
+ </>
);
};
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx
index f30f486b62..b46de21e89 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx
@@ -9,6 +9,7 @@ import {
} from "lucide-react";
import { createNotification } from "@app/components/notifications";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import {
Badge,
@@ -282,7 +283,7 @@ const PageContent = () => {
export const SecretScanningDataSourceByIdPage = () => {
return (
<>
- <title>Secret Scanning Data Source | Infisical</title>
+ <PageTitle title="Secret Scanning Data Source" />
<link rel="icon" href="/infisical.ico" />
<ProjectPermissionCan
renderGuardBanner
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/SecretScanningDataSourcesPage.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/SecretScanningDataSourcesPage.tsx
index ad046fd95e..6009128a0f 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/SecretScanningDataSourcesPage.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/SecretScanningDataSourcesPage.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from "react-i18next";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3/platform";
import {
@@ -14,7 +15,7 @@ export const SecretScanningDataSourcesPage = () => {
const { t } = useTranslation();
return (
<>
- <title>{t("common.head-title", { title: "Secret Scanning" })}</title>
+ <PageTitle title={t("page-titles.secret-scanning-data-sources")} />
<ProjectPermissionCan
renderGuardBanner
I={ProjectPermissionSecretScanningDataSourceActions.Read}
diff --git a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/SecretScanningFindingsPage.tsx b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/SecretScanningFindingsPage.tsx
index 472dc41142..60fbe222c6 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/SecretScanningFindingsPage.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/SecretScanningFindingsPage.tsx
@@ -1,6 +1,7 @@
import { useTranslation } from "react-i18next";
import { useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader } from "@app/components/v3/platform";
import { ROUTE_PATHS } from "@app/const/routes";
@@ -18,7 +19,7 @@ export const SecretScanningFindingsPage = () => {
return (
<>
- <title>{t("common.head-title", { title: "Secret Scanning" })}</title>
+ <PageTitle title={t("page-titles.secret-scanning-findings")} />
<ProjectPermissionCan
renderGuardBanner
I={ProjectPermissionSecretScanningFindingActions.Read}
diff --git a/frontend/src/pages/secret-scanning/SettingsPage/SettingsPage.tsx b/frontend/src/pages/secret-scanning/SettingsPage/SettingsPage.tsx
index fd9a1fdeb1..d77bbf8ba4 100644
--- a/frontend/src/pages/secret-scanning/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/secret-scanning/SettingsPage/SettingsPage.tsx
@@ -1,6 +1,6 @@
-import { useTranslation } from "react-i18next";
import { useSearch } from "@tanstack/react-router";
+import { PageTitle } from "@app/components/PageTitle";
import { ProjectPermissionCan } from "@app/components/permissions";
import { LookingForOrgPageLink, PageLoader } from "@app/components/v3";
import { PageHeader } from "@app/components/v3/platform";
@@ -13,7 +13,6 @@ import { ProjectGeneralTab } from "@app/pages/project/SettingsPage/components/Pr
import { ProjectScanningConfigTab } from "./components/ProjectScanningConfigTab";
export const SettingsPage = () => {
- const { t } = useTranslation();
const { selectedTab } = useSearch({
from: "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-scanning/_secret-scanning-layout/settings"
});
@@ -33,7 +32,7 @@ export const SettingsPage = () => {
return (
<div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
- <title>{t("common.head-title", { title: "Secret Scanning Settings" })}</title>
+ <PageTitle title="Secret Scanning Settings" />
<div className="w-full max-w-8xl">
<PageHeader
scope={ProjectType.SecretScanning}
diff --git a/frontend/src/pages/user/PersonalSettingsPage/PersonalSettingsPage.tsx b/frontend/src/pages/user/PersonalSettingsPage/PersonalSettingsPage.tsx
index 03b7b1ff5b..1fab4bcc3e 100644
--- a/frontend/src/pages/user/PersonalSettingsPage/PersonalSettingsPage.tsx
+++ b/frontend/src/pages/user/PersonalSettingsPage/PersonalSettingsPage.tsx
@@ -3,6 +3,7 @@ import { Link, useNavigate, useSearch } from "@tanstack/react-router";
import { ArrowLeftIcon } from "lucide-react";
import { WishForm } from "@app/components/features/WishForm";
+import { PageTitle } from "@app/components/PageTitle";
import { PersonalTabGroup } from "./components/PersonalTabGroup";
@@ -15,7 +16,7 @@ export const PersonalSettingsPage = () => {
return (
<div className="mx-auto w-full max-w-5xl p-4 lg:p-8">
- <title>{t("common.head-title", { title: t("settings.personal.title") })}</title>
+ <PageTitle title={t("settings.personal.title")} />
<link rel="icon" href="/infisical.ico" />
<Link
to="/"