feat(client): PageHeader on every page; remove sidebar bottom menu
- New PageHeader component (variant D — grouped icon-pill toolbar): big title + muted description on the left, Support / Docs / Changelog as a 3-icon segmented pill on the right with tooltips. External links open in a new tab. - BasePage / BasePageWithStates / MonitorBasePageWithStates accept a headerKey prop; when set, render PageHeader pulling pages.<headerKey>.header.title and .description from i18n. When unset, falls back to the existing breadcrumb (no behavior change for not-yet-migrated pages). - All top-level pages (uptime, infrastructure, pageSpeed, notifications, maintenance, statusPages, incidents, logs, checks, account, settings) now pass their headerKey. - Sidebar: removed the bottom menu (Support / Discussions / Docs / Changelog) since those links now live in the page header.
This commit is contained in:
1 parent
031a6fdf3c
commit
262c4eee93
10 files changed
+212
-39
No files matched your search
@@ -25,7 +25,7 @@ const Account = ({ open = "profile" }: AccountProps) => {
|
||||
}, [open]);
|
||||
|
||||
return (
|
||||
<BasePage>
|
||||
<BasePage headerKey="account">
|
||||
<Tabs
|
||||
value={activeTab}
|
||||
onChange={(_, newValue: number) => setActiveTab(newValue)}
|
||||
|
||||
@@ -122,6 +122,7 @@ const InfrastructureMonitors = () => {
|
||||
|
||||
return (
|
||||
<MonitorBasePageWithStates
|
||||
headerKey="infrastructure"
|
||||
loading={isLoading}
|
||||
error={monitorsWithChecksError}
|
||||
totalCount={effectiveTotalCount}
|
||||
|
||||
@@ -10,7 +10,7 @@ const LogsPage = () => {
|
||||
const { t } = useTranslation();
|
||||
const [activeTab, setActiveTab] = useState<number>(1);
|
||||
return (
|
||||
<BasePage>
|
||||
<BasePage headerKey="logs">
|
||||
<Tabs
|
||||
value={activeTab}
|
||||
onChange={(_, newValue: number) => setActiveTab(newValue)}
|
||||
|
||||
@@ -77,6 +77,7 @@ const PageSpeedMonitorsPage = () => {
|
||||
|
||||
return (
|
||||
<MonitorBasePageWithStates
|
||||
headerKey="pageSpeed"
|
||||
loading={isLoading}
|
||||
error={monitorsError || settingsError}
|
||||
totalCount={summary?.totalMonitors ?? 0}
|
||||
|
||||
@@ -277,6 +277,7 @@ export const SettingsPage = () => {
|
||||
|
||||
return (
|
||||
<BasePage
|
||||
headerKey="settings"
|
||||
component="form"
|
||||
onSubmit={form.handleSubmit(onSubmit, onError)}
|
||||
>
|
||||
|
||||
@@ -140,6 +140,7 @@ const UptimeMonitorsPage = () => {
|
||||
|
||||
return (
|
||||
<MonitorBasePageWithStates
|
||||
headerKey="uptime"
|
||||
loading={isLoading}
|
||||
error={monitorsWithChecksError}
|
||||
totalCount={effectiveTotalCount}
|
||||
|
||||
Reference in new issue
Block a user