Reorder the sidebar so Gateway sits right under Overview. Replace the Scheduled and Program tables with card grids matching Services: add JobCard and ProgramCard, convert ScheduledSection to a JobCard grid, and turn the former ProgramTable into a filterable ProgramCard grid (renamed ProgramList; kept the search box, dropped the sortable table). Remove the now-orphaned SortHeader component.
22 lines
643 B
TypeScript
22 lines
643 B
TypeScript
import { usePrograms } from "@/services/api/hooks"
|
|
import { ProgramList } from "@/components/ProgramList"
|
|
import { PageHeader } from "@/components/PageHeader"
|
|
|
|
export function Programs() {
|
|
const { data: programs, isLoading } = usePrograms()
|
|
|
|
return (
|
|
<div className="max-w-6xl mx-auto px-6 py-8">
|
|
<PageHeader title="Programs" subtitle="Software catalog" />
|
|
|
|
{isLoading ? (
|
|
<p className="text-[var(--muted)]">Loading...</p>
|
|
) : programs && programs.length > 0 ? (
|
|
<ProgramList programs={programs} />
|
|
) : (
|
|
<p className="text-[var(--muted)]">No programs yet.</p>
|
|
)}
|
|
</div>
|
|
)
|
|
}
|