diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs index fd4602086..dd5779172 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs @@ -21,9 +21,6 @@ use ts_rs::TS; const MAX_REFERENCES: usize = 4; -// TODO -// * 头像、图标或物品图只识别为一个图片或头像组件。 -// * 文本和动态数值即使没有独立素材,也必须保留为组件。 const SYSTEM_PROMPT: &str = r#" 角色: 你是游戏 UI 多图结构识别器。 @@ -283,7 +280,7 @@ fn convert_node( allow_llm_edit_component: true, source: NodeSource::Llm, }, - // TODO: 等识别 DTO 增加 type 字段后,再映射 Image/Text Component。 + // TODO: What is let llm give component structure at recognize step ???? components: Vec::new(), children_display_mode: ChildrenDisplayMode::Stack, children, diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/ui_design_suggestion.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/ui_design_suggestion.rs index bf92132e7..e26ef28aa 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/ui_design_suggestion.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/ui_design_suggestion.rs @@ -203,7 +203,6 @@ pub(crate) async fn suggest_ui_design_semantic_impl( eprintln!("ui_design_suggestion.error stage=validate_result error={error}"); format!("LLM 响应无效(详情:{error})") })?; - // TODO: future single-page policy may reject multiple Page suggestions. Ok(suggestions) } diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/resource/sprite.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/resource/sprite.rs index 290a93ff4..498fb0437 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/resource/sprite.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/resource/sprite.rs @@ -66,7 +66,6 @@ impl Default for SpriteBorder { #[ts(export, export_to = concat!(env!("CARGO_MANIFEST_DIR"), "/../src/features/ui-editor/types/"))] pub struct SpriteAssetMetadata { pub(crate) name: String, - // TODO pub(crate) asset_type: String, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize, TS)] @@ -74,7 +73,6 @@ pub struct SpriteAssetMetadata { pub struct SpriteAsset { pub(crate) asset_id: SpriteAssetId, pub(crate) metadata: SpriteAssetMetadata, - // TODO pub(crate) path: String, #[ts(as = "[f32; 2]")] pub(crate) pixel_size: Vector2,