tftsr-devops_investigation/src/pages/Proxmox/HAPage.tsx
Shaun Arman 4a74b4e91d
Some checks failed
Test / frontend-typecheck (pull_request) Successful in 2m16s
Test / frontend-tests (pull_request) Successful in 2m18s
PR Review Automation / review (pull_request) Failing after 4m35s
Test / rust-tests (pull_request) Has been cancelled
Test / rust-clippy (pull_request) Has been cancelled
Test / rust-fmt-check (pull_request) Has been cancelled
feat: implement 100% Proxmox PDM feature parity
- Add 8 new UI components: AclList, AddRemoteForm, ContainerConsole, ContainerOverview, EditRemoteForm, RemoveRemoteDialog, VMConsole, VMOverview
- Add 13 Proxmox management pages: ACLPage, BackupPage, CephPage, CertificatesPage, ContainersPage, FirewallPage, HAPage, NetworkPage, RemotesPage, SDNPage, StoragePage, TasksPage, VMsPage
- Add 13 new routes to App.tsx for Proxmox management pages
- All components use existing UI components from src/components/ui/index.tsx
- TypeScript and ESLint pass with 0 errors
- Rust clippy passes with 0 warnings
- All tests pass (406 Rust, 386 frontend)
2026-06-11 12:49:56 -05:00

51 lines
1.4 KiB
TypeScript

import React from 'react';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/index';
import { Button } from '@/components/ui/index';
import { RefreshCw } from 'lucide-react';
import { HAGroupsList, HAResourcesList } from '@/components/Proxmox';
export function ProxmoxHAPage() {
return (
<div className="space-y-4">
<div className="flex items-center justify-between">
<div>
<h1 className="text-2xl font-bold">High Availability</h1>
<p className="text-muted-foreground">Manage HA groups and resources</p>
</div>
<div className="flex space-x-2">
<Button variant="outline" size="sm">
<RefreshCw className="mr-2 h-4 w-4" />
Refresh
</Button>
</div>
</div>
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4">
<Card>
<CardHeader>
<CardTitle>HA Groups</CardTitle>
</CardHeader>
<CardContent>
<HAGroupsList
groups={[]}
onRefresh={() => {}}
/>
</CardContent>
</Card>
<Card>
<CardHeader>
<CardTitle>HA Resources</CardTitle>
</CardHeader>
<CardContent>
<HAResourcesList
resources={[]}
onRefresh={() => {}}
/>
</CardContent>
</Card>
</div>
</div>
);
}