fix: use real settings data boundaries
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
import { Database, ExternalLink } from "lucide-react";
|
||||
import { Database } from "lucide-react";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { LinkButton } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
|
||||
type ModulePageProps = {
|
||||
@@ -13,12 +12,6 @@ type ModulePageProps = {
|
||||
phase: "待接入" | "二期预留" | "三期预留";
|
||||
};
|
||||
|
||||
const realWorkspaceLinks = [
|
||||
{ href: "/app/dashboard", label: "运营看板" },
|
||||
{ href: "/app/elders", label: "老人档案" },
|
||||
{ href: "/app/beds", label: "床位房间" },
|
||||
];
|
||||
|
||||
export function ModulePage({ title, eyebrow, description, icon: Icon, phase }: ModulePageProps): React.ReactElement {
|
||||
return (
|
||||
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6">
|
||||
@@ -38,45 +31,19 @@ export function ModulePage({ title, eyebrow, description, icon: Icon, phase }: M
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="grid gap-4 lg:grid-cols-[minmax(0,1fr)_24rem]">
|
||||
<Card>
|
||||
<section>
|
||||
<Card className="max-w-3xl">
|
||||
<CardHeader>
|
||||
<CardTitle className="flex items-center gap-2 text-base">
|
||||
<Database className="size-5 text-primary" aria-hidden="true" />
|
||||
数据状态
|
||||
未接入真实数据源
|
||||
</CardTitle>
|
||||
<CardDescription>当前模块未接入真实业务数据源。</CardDescription>
|
||||
<CardDescription>当前模块暂不展示业务记录、统计指标或流程入口。</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<dl className="grid gap-3 text-sm">
|
||||
<div className="flex items-center justify-between gap-4 border-b pb-3">
|
||||
<dt className="text-muted-foreground">业务记录</dt>
|
||||
<dd className="font-medium">暂不展示</dd>
|
||||
</div>
|
||||
<div className="flex items-center justify-between gap-4 border-b pb-3">
|
||||
<dt className="text-muted-foreground">统计指标</dt>
|
||||
<dd className="font-medium">暂不展示</dd>
|
||||
</div>
|
||||
<div className="flex items-center justify-between gap-4">
|
||||
<dt className="text-muted-foreground">待办流程</dt>
|
||||
<dd className="font-medium">待真实流程接入</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle className="text-base">已接入工作区</CardTitle>
|
||||
<CardDescription>以下页面展示真实系统数据。</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="grid gap-2">
|
||||
{realWorkspaceLinks.map((link) => (
|
||||
<LinkButton className="w-full justify-between" href={link.href} key={link.href} variant="outline">
|
||||
{link.label}
|
||||
<ExternalLink className="size-4" aria-hidden="true" />
|
||||
</LinkButton>
|
||||
))}
|
||||
<p className="text-sm text-muted-foreground">
|
||||
接入对应的 Drizzle 查询和操作 API 前,这里只保留模块位置,不渲染未落库记录或伪造待办。
|
||||
</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user