refactor: surface BI metric definitions

This commit is contained in:
kkfluous
2026-08-07 15:12:34 +08:00
parent 46dbe725de
commit 08097f7c29
6 changed files with 175 additions and 1 deletions
+2
View File
@@ -6,6 +6,7 @@ import DailyReportView from './DailyReportView';
import { useHashSubTab } from '../energy/useHashSubTab';
import RotatingFooterHint from '../../components/RotatingFooterHint';
import { FadeIn, PageFrame, SegmentedNav } from '../../components/ui/surface';
import MetricCatalogButton from '../../components/MetricCatalogButton';
type MileageSubTab = 'monitoring' | 'statistics' | 'report';
@@ -27,6 +28,7 @@ export default function MileageModule() {
icon={LayoutDashboard}
eyebrow="MILEAGE BI"
meta="实时监控 · 统计报表 · 每日汇报"
actions={<MetricCatalogButton domain="mileage" />}
compactInfo
>
<div className="sticky top-0 z-30 -mx-3 bg-[var(--app-bg)] px-3 pb-2 pt-1 shadow-[0_8px_12px_-12px_rgba(15,23,42,0.08)] md:-mx-6 md:top-12 md:px-6">