Skip to content

Commit f44759a

Browse files
authored
feat: standardize page titles and headers across UI (#588)
1 parent a02cb45 commit f44759a

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

view/app/containers/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ export default function ContainersPage() {
7979
<PageLayout maxWidth="6xl" padding="md" spacing="lg" className="relative z-10">
8080
<div className="flex items-center justify-between mb-6 flex-wrap gap-4">
8181
<span>
82-
<TypographyH1 className="text-2xl font-bold">{t('containers.title')}</TypographyH1>
82+
<TypographyH1>{t('containers.title')}</TypographyH1>
83+
<TypographyMuted>{t('containers.description')}</TypographyMuted>
8384
</span>
8485
<div className="flex items-center gap-2 flex-wrap">
8586
<Button

view/app/extensions/components/extensions-hero.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Button } from '@/components/ui/button';
66
import { ExternalLink } from 'lucide-react';
77
import { Skeleton } from '@/components/ui/skeleton';
88
import Image from 'next/image';
9+
import { TypographyH1, TypographyMuted } from '@/components/ui/typography';
910

1011
interface ExtensionsHeroProps {
1112
isLoading?: boolean;
@@ -25,10 +26,8 @@ function ExtensionsHero({ isLoading = false }: ExtensionsHeroProps) {
2526
<div className="inline-flex items-center rounded-full bg-primary/10 px-2 py-1 text-xs font-medium text-primary">
2627
{t('extensions.beta')}
2728
</div>
28-
<h1 className="text-xl font-bold tracking-tight md:text-2xl lg:text-3xl">
29-
{t('extensions.title')}
30-
</h1>
31-
<p className="text-sm text-muted-foreground md:text-base">{t('extensions.subtitle')}</p>
29+
<TypographyH1>{t('extensions.title')}</TypographyH1>
30+
<TypographyMuted>{t('extensions.subtitle')}</TypographyMuted>
3231
</div>
3332
<div className="flex-1">
3433
<div className="relative mx-auto max-w-xs">

view/app/file-manager/components/layout/Header.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
import React from 'react';
22
import { useTranslation } from '@/hooks/use-translation';
3-
import { TypographyMuted } from '@/components/ui/typography';
3+
import DashboardPageHeader from '@/components/layout/dashboard-page-header';
44

55
function FileManagerHeader() {
66
const { t } = useTranslation();
77

88
return (
9-
<div>
10-
<div className="">
11-
<h1 className="text-md font-bold capitalize leading-normal text-primary sm:text-lg md:text-xl lg:text-3xl">
12-
{t('fileManager.header.title')}
13-
</h1>
14-
<TypographyMuted>{t('fileManager.header.subtitle')}</TypographyMuted>
15-
</div>
16-
</div>
9+
<DashboardPageHeader
10+
label={t('fileManager.header.title')}
11+
description={t('fileManager.header.subtitle')}
12+
/>
1713
);
1814
}
1915

view/app/self-host/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ListRepositories from './components/github-repositories/list-repositories
55
import AppItem, { AppItemSkeleton } from './components/application';
66
import useGetDeployedApplications from './hooks/use_get_deployed_applications';
77
import PaginationWrapper from '@/components/ui/pagination';
8-
import { DahboardUtilityHeader } from '@/components/layout/dashboard-page-header';
8+
import DashboardPageHeader, { DahboardUtilityHeader } from '@/components/layout/dashboard-page-header';
99
import { Application } from '@/redux/types/applications';
1010
import { Button } from '@/components/ui/button';
1111
import { useTranslation } from '@/hooks/use-translation';
@@ -81,6 +81,10 @@ function page() {
8181
}
8282
>
8383
<PageLayout maxWidth="6xl" padding="md" spacing="lg">
84+
<DashboardPageHeader
85+
label={t('selfHost.page.title')}
86+
description={t('selfHost.page.description')}
87+
/>
8488
{renderContent()}
8589

8690
{showApplications && (

view/app/settings/teams/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import TeamMembers from './components/TeamMembers';
88
import EditTeam from './components/EditTeam';
99
import { useTranslation } from '@/hooks/use-translation';
1010
import { ResourceGuard } from '@/components/rbac/PermissionGuard';
11-
import { TypographyH2, TypographyMuted } from '@/components/ui/typography';
11+
import { TypographyH1, TypographyMuted } from '@/components/ui/typography';
1212
import PageLayout from '@/components/layout/page-layout';
1313

1414
function Page() {
@@ -40,7 +40,7 @@ function Page() {
4040
<div className={'flex items-center justify-between space-y-2'}>
4141
<div className="flex items-center">
4242
<span className="">
43-
<TypographyH2>{teamName}</TypographyH2>
43+
<TypographyH1>{teamName}</TypographyH1>
4444
<TypographyMuted>{teamDescription}</TypographyMuted>
4545
</span>
4646

view/lib/i18n/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"containers": {
2727
"title": "Containers",
28-
"description": "Preview all the containers",
28+
"description": "Manage and monitor your containers",
2929
"list": "Container List",
3030
"name": "Name",
3131
"image": "Image",

0 commit comments

Comments
 (0)