website (17 pages + 3 components): - multiplayer/wizard, middleware/wizard+test-wizard, communication - builds/wizard, staff-search, voice, sbom/wizard - foerderantrag, mail/tasks, tools/communication, sbom - compliance/evidence, uni-crawler, brandbook (already done) - CollectionsTab, IngestionTab, RiskHeatmap backend-lehrer (5 files): - letters_api (641 → 2), certificates_api (636 → 2) - alerts_agent/db/models (636 → 3) - llm_gateway/communication_service (614 → 2) - game/database already done in prior batch klausur-service (2 files): - hybrid_vocab_extractor (664 → 2) - klausur-service/frontend: api.ts (620 → 3), EHUploadWizard (591 → 2) voice-service (3 files): - bqas/rag_judge (618 → 3), runner (529 → 2) - enhanced_task_orchestrator (519 → 2) studio-v2 (6 files): - korrektur/[klausurId] (578 → 4), fairness (569 → 2) - AlertsWizard (552 → 2), OnboardingWizard (513 → 2) - korrektur/api.ts (506 → 3), geo-lernwelt (501 → 2) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
799 B
TypeScript
27 lines
799 B
TypeScript
export function getPositionBadgeColor(posType?: string) {
|
|
switch (posType) {
|
|
case 'professor':
|
|
return 'bg-purple-100 text-purple-800'
|
|
case 'postdoc':
|
|
return 'bg-blue-100 text-blue-800'
|
|
case 'researcher':
|
|
return 'bg-green-100 text-green-800'
|
|
case 'phd_student':
|
|
return 'bg-yellow-100 text-yellow-800'
|
|
default:
|
|
return 'bg-gray-100 text-gray-800'
|
|
}
|
|
}
|
|
|
|
export function getStateBadgeColor(state?: string) {
|
|
const colors: Record<string, string> = {
|
|
BW: 'bg-yellow-100 text-yellow-800',
|
|
BY: 'bg-blue-100 text-blue-800',
|
|
BE: 'bg-red-100 text-red-800',
|
|
NW: 'bg-green-100 text-green-800',
|
|
HE: 'bg-orange-100 text-orange-800',
|
|
SN: 'bg-purple-100 text-purple-800',
|
|
}
|
|
return colors[state || ''] || 'bg-gray-100 text-gray-800'
|
|
}
|