Archived
Internes Project-Management-Tool für ToolCTRL — ergänzend zu Plane (Tickets) und Outline (Doku). Umfasst Puls-Übersicht, Tagesrhythmus (Lock-in + Reflexion), Bereichs-Detail-Views (Entwicklung/Vertrieb/Marketing), Pflicht-Minimum-Check und Blocker-Lifecycle gemäß Projektmanagement-Leitfaden v3.0. Stack: pnpm-Monorepo · Vite + React 18 + Tailwind · Fastify + tRPC v11 + Drizzle ORM · Postgres 16 · Authentik OIDC (Phase 2, Dev-Auto-Login aktiv). Planungs-Artefakte unter _bmad-output/planning-artifacts/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import { Link } from 'react-router';
|
|
import { trpc } from '../lib/trpc';
|
|
import { Card } from '../components/ui/Card';
|
|
import { SkeletonCard } from '../components/ui/SkeletonCard';
|
|
import { voice } from '../lib/voice';
|
|
|
|
export function ArchivRoute() {
|
|
const q = trpc.project.listArchived.useQuery();
|
|
if (q.isPending) return <SkeletonCard lines={4} />;
|
|
const items = q.data ?? [];
|
|
return (
|
|
<div className="space-y-4">
|
|
<h1 className="text-3xl font-bold">Archiv</h1>
|
|
{items.length === 0 ? (
|
|
<Card.Root>
|
|
<Card.Body>
|
|
<p className="text-sm text-[var(--color-ink-muted)]">{voice.empty.archive}</p>
|
|
</Card.Body>
|
|
</Card.Root>
|
|
) : (
|
|
<div className="space-y-2">
|
|
{items.map((p) => (
|
|
<Card.Root key={p.id}>
|
|
<Card.Body className="flex items-center justify-between">
|
|
<Link to={`/projekt/${p.id}`} className="font-medium hover:underline">
|
|
{p.name}
|
|
</Link>
|
|
<span className="text-xs text-[var(--color-ink-muted)]">
|
|
archiviert: {p.archiviertAm ? p.archiviertAm.toString().slice(0, 10) : '—'}
|
|
</span>
|
|
</Card.Body>
|
|
</Card.Root>
|
|
))}
|
|
</div>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|