Move src/ → apps/server/ and packages/web/ → apps/web/ to adopt standard monorepo conventions (apps/ for runnable apps, packages/ for reusable libraries). Update all config files, shared package imports, test fixtures, and documentation to reflect new paths. Key fixes: - Update workspace config to ["apps/*", "packages/*"] - Update tsconfig.json rootDir/include for apps/server/ - Add apps/web/** to vitest exclude list - Update drizzle.config.ts schema path - Fix ensure-schema.ts migration path detection (3 levels up in dev, 2 levels up in dist) - Fix tests/integration/cli-server.test.ts import paths - Update packages/shared imports to apps/server/ paths - Update all docs/ files with new paths
36 lines
945 B
TypeScript
36 lines
945 B
TypeScript
import { Card, CardHeader, CardContent } from "@/components/ui/card";
|
|
import { ProgressBar } from "@/components/ProgressBar";
|
|
|
|
export interface ProgressPanelProps {
|
|
phasesComplete: number;
|
|
phasesTotal: number;
|
|
tasksComplete: number;
|
|
tasksTotal: number;
|
|
}
|
|
|
|
export function ProgressPanel({
|
|
phasesComplete,
|
|
phasesTotal,
|
|
tasksComplete,
|
|
tasksTotal,
|
|
}: ProgressPanelProps) {
|
|
return (
|
|
<Card>
|
|
<CardHeader>
|
|
<h2 className="text-lg font-semibold">Progress</h2>
|
|
</CardHeader>
|
|
<CardContent className="flex flex-col gap-3">
|
|
<ProgressBar completed={tasksComplete} total={tasksTotal} />
|
|
<div className="flex flex-col gap-1 text-sm text-muted-foreground">
|
|
<span>
|
|
Phases: {phasesComplete}/{phasesTotal} complete
|
|
</span>
|
|
<span>
|
|
Tasks: {tasksComplete}/{tasksTotal} complete
|
|
</span>
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
);
|
|
}
|