Unify Template type definitions across frontend and backend
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python, typescript
- 領域
- full-stack
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 3.9k
- フォーク
- 414
- 平均マージ
- 4時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CopilotKit/OpenIntelligentUI のほかの issue
-
Script dedup key truncation may cause collisions対応中かも @saschabuehrle が 215 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CopilotKit/OpenIntelligentUI#37 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CopilotKit/OpenIntelligentUI#29 ·
メンテナーはふだん 1 日以内に返信
-
Self-host with Docker Compose and optional server-held keys対応中かも @kannan983 が 15 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
CopilotKit/OpenIntelligentUI#98 ·
メンテナーはふだん 1 日以内に返信
-
Support OpenAI-compatible gateways (OpenRouter) via vendor/model names対応中かも @kannan983 が 15 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
CopilotKit/OpenIntelligentUI#97 ·
メンテナーはふだん 1 日以内に返信
-
UIオープン
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
CopilotKit/OpenIntelligentUI#96 ·
メンテナーはふだん 1 日以内に返信
CopilotKit/OpenIntelligentUI の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
microsoft/playwright#43640 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
grasshopper-protocol/grsshppr#172 ·
メンテナーはふだん 1 日以内に返信
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Tencent/teamai-cli#1397 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DouyinFE/semi-design#3641 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信