Competition/Round architecture: full platform rewrite (Phases 1-9)
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m45s

Replace Pipeline/Stage system with Competition/Round architecture.
New schema: Competition, Round (7 types), JuryGroup, AssignmentPolicy,
ProjectRoundState, DeliberationSession, ResultLock, SubmissionWindow.
New services: round-engine, round-assignment, deliberation, result-lock,
submission-manager, competition-context, ai-prompt-guard.
Full admin/jury/applicant/mentor UI rewrite. AI prompt hardening with
structured prompts, retry logic, and injection detection. All legacy
pipeline/stage code removed. 4 new migrations + seed aligned.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 23:04:15 +01:00
parent 9ab4717f96
commit 6ca39c976b
349 changed files with 69938 additions and 28767 deletions

View File

@@ -24,6 +24,7 @@ import {
AlertDialogTrigger,
} from '@/components/ui/alert-dialog'
import {
Bot,
FileText,
RefreshCw,
Loader2,
@@ -38,7 +39,7 @@ import { formatDistanceToNow } from 'date-fns'
interface EvaluationSummaryCardProps {
projectId: string
stageId: string
roundId: string
}
interface ScoringPatterns {
@@ -71,7 +72,7 @@ const sentimentColors: Record<string, { badge: 'default' | 'secondary' | 'destru
export function EvaluationSummaryCard({
projectId,
stageId,
roundId,
}: EvaluationSummaryCardProps) {
const [isGenerating, setIsGenerating] = useState(false)
@@ -79,7 +80,7 @@ export function EvaluationSummaryCard({
data: summary,
isLoading,
refetch,
} = trpc.evaluation.getSummary.useQuery({ projectId, stageId })
} = trpc.evaluation.getSummary.useQuery({ projectId, roundId })
const generateMutation = trpc.evaluation.generateSummary.useMutation({
onSuccess: () => {
@@ -95,7 +96,7 @@ export function EvaluationSummaryCard({
const handleGenerate = () => {
setIsGenerating(true)
generateMutation.mutate({ projectId, stageId })
generateMutation.mutate({ projectId, roundId })
}
if (isLoading) {
@@ -157,6 +158,10 @@ export function EvaluationSummaryCard({
<CardTitle className="text-lg flex items-center gap-2">
<FileText className="h-5 w-5" />
AI Evaluation Summary
<Badge variant="outline" className="text-xs gap-1 shrink-0 ml-1">
<Bot className="h-3 w-3" />
AI Generated
</Badge>
</CardTitle>
<CardDescription className="flex items-center gap-2 mt-1">
<Clock className="h-3 w-3" />