移除TODO
移除多处已解决或过时TODO
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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<f32>,
|
||||
|
||||
Reference in New Issue
Block a user