feat(03-02): /ai-model 页面接入 CredentialSlotDialog 组件
- 删除 L9-15 Dialog 系列命名导入(占位 Dialog 删后 page 不再直接使用 Dialog primitive)
- 新增 import { CredentialSlotDialog } from "@/components/ai-model/credential-slot-dialog"
- 删除 L473-485 占位 Dialog(含「对话框真实内容由 Phase 3 落地」字面量)
- 替换为 <CredentialSlotDialog open onOpenChange />,复用既有 isCredentialDialogOpen state
- 保留 mounted && hasPermission("credential-slot") 守卫 + Button 入口(Phase 2 已落地)
- CRED-FE-04 + CRED-FE-05 端到端串联,Milestone v1.0 收尾就绪
This commit is contained in:
parent
d719891754
commit
7872840db7
@ -6,14 +6,8 @@ import { DashboardHeader } from "@/components/dashboard-header"
|
|||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
|
||||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
||||||
import {
|
|
||||||
Dialog,
|
|
||||||
DialogContent,
|
|
||||||
DialogDescription,
|
|
||||||
DialogHeader,
|
|
||||||
DialogTitle,
|
|
||||||
} from "@/components/ui/dialog"
|
|
||||||
import { Brain, Mic, Database, Plus, Sparkles, Edit, Play, Sliders, User, KeyRound } from "lucide-react"
|
import { Brain, Mic, Database, Plus, Sparkles, Edit, Play, Sliders, User, KeyRound } from "lucide-react"
|
||||||
|
import { CredentialSlotDialog } from "@/components/ai-model/credential-slot-dialog"
|
||||||
import { hasPermission } from "@/lib/permissions"
|
import { hasPermission } from "@/lib/permissions"
|
||||||
|
|
||||||
export default function AIModelPage() {
|
export default function AIModelPage() {
|
||||||
@ -470,19 +464,10 @@ export default function AIModelPage() {
|
|||||||
</TabsContent>
|
</TabsContent>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
<Dialog
|
<CredentialSlotDialog
|
||||||
open={isCredentialDialogOpen}
|
open={isCredentialDialogOpen}
|
||||||
onOpenChange={setIsCredentialDialogOpen}
|
onOpenChange={setIsCredentialDialogOpen}
|
||||||
>
|
/>
|
||||||
<DialogContent>
|
|
||||||
<DialogHeader>
|
|
||||||
<DialogTitle>通用凭据槽位</DialogTitle>
|
|
||||||
<DialogDescription>
|
|
||||||
对话框真实内容由 Phase 3 落地
|
|
||||||
</DialogDescription>
|
|
||||||
</DialogHeader>
|
|
||||||
</DialogContent>
|
|
||||||
</Dialog>
|
|
||||||
</DashboardShell>
|
</DashboardShell>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user