Unify Template type definitions across frontend and backend
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python, typescript
- Área
- full-stack
Línea de trabajo
Compare the type definitions in apps/agent/src/templates.py, apps/app/src/components/template-library/index.tsx, and apps/app/src/components/template-library/seed-templates.ts, starting with the backend UITemplate schema and the missing seed-template fields. Unify the frontend definitions and align them with the backend fields, then verify that chart seed templates no longer need casts and the three definitions cannot drift independently.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
There are three separate Template type definitions that can drift out of sync:
UITemplateinapps/agent/src/templates.py(backend)Templateinterface inapps/app/src/components/template-library/index.tsx(frontend)SeedTemplateinapps/app/src/components/template-library/seed-templates.ts(frontend)
SeedTemplate is missing component_type and component_data fields, so seed templates for charts would need to be cast. Any field added to one type but not the others causes silent mismatches.
Suggested fix
- Unify
TemplateandSeedTemplateinto a single shared frontend type - Ensure the frontend type matches the backend
UITemplateschema (all optional fields present) - Consider a shared schema definition (e.g. Zod on frontend, matching TypedDict on backend)
Files
apps/agent/src/templates.pyapps/app/src/components/template-library/index.tsxapps/app/src/components/template-library/seed-templates.ts
From PR #20 review
- Lenguaje dominante
- TypeScript
- Estrellas
- 3.9k
- Forks
- 414
- Merge medio
- 4 h
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CopilotKit/OpenIntelligentUI
-
Script dedup key truncation may cause collisionsPosiblemente ocupada @saschabuehrle la tomó hace 216 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CopilotKit/OpenIntelligentUI#37 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CopilotKit/OpenIntelligentUI#29 ·
Los mantenedores suelen responder en 1 día
-
Self-host with Docker Compose and optional server-held keysPosiblemente ocupada @kannan983 la tomó hace 16 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
CopilotKit/OpenIntelligentUI#98 ·
Los mantenedores suelen responder en 1 día
-
Support OpenAI-compatible gateways (OpenRouter) via vendor/model namesPosiblemente ocupada @kannan983 la tomó hace 16 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
CopilotKit/OpenIntelligentUI#97 ·
Los mantenedores suelen responder en 1 día
-
UIAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
CopilotKit/OpenIntelligentUI#96 ·
Los mantenedores suelen responder en 1 día
Todos los issues de CopilotKit/OpenIntelligentUI
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
outline/outline#14348 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
[Bug]: Agent import retains quotes in .env API keys followed by inline commentsPosiblemente ocupada @yxr-2025 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
elie222/rakazo#2322 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
awslabs/visual-asset-management-system#804 ·
Los mantenedores suelen responder en 1 día
-
用户目录有单引号时,热加载时YAML解析崩溃Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dsh-market/dsh-market#1027 · 1 comentario ·
Los mantenedores suelen responder en 1 día