feat: add challenge and red-blue competitions across API and web

This commit is contained in:
Joey Yakimowich-Payne 2025-10-01 06:49:09 -06:00
commit 8fd3c4bb64
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
77 changed files with 5355 additions and 24 deletions

View file

@ -66,6 +66,9 @@ const getIcon = (type: BlockEnum, className: string) => {
[BlockEnum.KnowledgeBase]: <KnowledgeBase className={className} />,
[BlockEnum.DataSource]: <Datasource className={className} />,
[BlockEnum.DataSourceEmpty]: <></>,
[BlockEnum.ChallengeEvaluator]: <IfElse className={className} />,
[BlockEnum.JudgingLLM]: <Llm className={className} />,
[BlockEnum.TeamChallenge]: <Agent className={className} />,
}[type]
}
const ICON_CONTAINER_BG_COLOR_MAP: Record<string, string> = {
@ -92,6 +95,9 @@ const ICON_CONTAINER_BG_COLOR_MAP: Record<string, string> = {
[BlockEnum.Agent]: 'bg-util-colors-indigo-indigo-500',
[BlockEnum.KnowledgeBase]: 'bg-util-colors-warning-warning-500',
[BlockEnum.DataSource]: 'bg-components-icon-bg-midnight-solid',
[BlockEnum.ChallengeEvaluator]: 'bg-util-colors-blue-blue-500',
[BlockEnum.JudgingLLM]: 'bg-util-colors-indigo-indigo-500',
[BlockEnum.TeamChallenge]: 'bg-util-colors-green-green-500',
}
const BlockIcon: FC<BlockIconProps> = ({
type,