From bf5ee0bef22e2e218170c105a9f77be3991d2d60 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Sun, 15 Mar 2026 16:20:41 -0300 Subject: [PATCH] Remove botui SVG dependency - use None for svg_content --- .forgejo/workflows/botserver.yaml | 4 ---- src/designer/canvas_api/service.rs | 16 ++++++++-------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index 2082e940..0433eeed 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -24,14 +24,10 @@ jobs: git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git workspace cd workspace git submodule update --init --depth 1 botlib - git submodule update --init --depth 1 botui # Clone botserver separately git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/BotServer.git botserver - # Copy botui files needed for compilation - cp -r botui botserver/ - # Remove all members except botserver and botlib from workspace sed -i '/"botapp",/d' Cargo.toml sed -i '/"botdevice",/d' Cargo.toml diff --git a/src/designer/canvas_api/service.rs b/src/designer/canvas_api/service.rs index 8b7e59b3..ed20daa3 100644 --- a/src/designer/canvas_api/service.rs +++ b/src/designer/canvas_api/service.rs @@ -636,14 +636,14 @@ impl CanvasService { pub async fn get_asset_library(&self, asset_type: Option) -> Result, CanvasError> { let icons = vec![ - AssetLibraryItem { id: Uuid::new_v4(), name: "Bot".to_string(), asset_type: AssetType::Icon, url: None, svg_content: Some(include_str!("../../../../botui/ui/suite/assets/icons/gb-bot.svg").to_string()), category: "General Bots".to_string(), tags: vec!["bot".to_string(), "assistant".to_string()], is_system: true }, - AssetLibraryItem { id: Uuid::new_v4(), name: "Analytics".to_string(), asset_type: AssetType::Icon, url: None, svg_content: Some(include_str!("../../../../botui/ui/suite/assets/icons/gb-analytics.svg").to_string()), category: "General Bots".to_string(), tags: vec!["analytics".to_string(), "chart".to_string()], is_system: true }, - AssetLibraryItem { id: Uuid::new_v4(), name: "Calendar".to_string(), asset_type: AssetType::Icon, url: None, svg_content: Some(include_str!("../../../../botui/ui/suite/assets/icons/gb-calendar.svg").to_string()), category: "General Bots".to_string(), tags: vec!["calendar".to_string(), "date".to_string()], is_system: true }, - AssetLibraryItem { id: Uuid::new_v4(), name: "Chat".to_string(), asset_type: AssetType::Icon, url: None, svg_content: Some(include_str!("../../../../botui/ui/suite/assets/icons/gb-chat.svg").to_string()), category: "General Bots".to_string(), tags: vec!["chat".to_string(), "message".to_string()], is_system: true }, - AssetLibraryItem { id: Uuid::new_v4(), name: "Drive".to_string(), asset_type: AssetType::Icon, url: None, svg_content: Some(include_str!("../../../../botui/ui/suite/assets/icons/gb-drive.svg").to_string()), category: "General Bots".to_string(), tags: vec!["drive".to_string(), "files".to_string()], is_system: true }, - AssetLibraryItem { id: Uuid::new_v4(), name: "Mail".to_string(), asset_type: AssetType::Icon, url: None, svg_content: Some(include_str!("../../../../botui/ui/suite/assets/icons/gb-mail.svg").to_string()), category: "General Bots".to_string(), tags: vec!["mail".to_string(), "email".to_string()], is_system: true }, - AssetLibraryItem { id: Uuid::new_v4(), name: "Meet".to_string(), asset_type: AssetType::Icon, url: None, svg_content: Some(include_str!("../../../../botui/ui/suite/assets/icons/gb-meet.svg").to_string()), category: "General Bots".to_string(), tags: vec!["meet".to_string(), "video".to_string()], is_system: true }, - AssetLibraryItem { id: Uuid::new_v4(), name: "Tasks".to_string(), asset_type: AssetType::Icon, url: None, svg_content: Some(include_str!("../../../../botui/ui/suite/assets/icons/gb-tasks.svg").to_string()), category: "General Bots".to_string(), tags: vec!["tasks".to_string(), "todo".to_string()], is_system: true }, + AssetLibraryItem { id: Uuid::new_v4(), name: "Bot".to_string(), asset_type: AssetType::Icon, url: None, svg_content: None, category: "General Bots".to_string(), tags: vec!["bot".to_string(), "assistant".to_string()], is_system: true }, + AssetLibraryItem { id: Uuid::new_v4(), name: "Analytics".to_string(), asset_type: AssetType::Icon, url: None, svg_content: None, category: "General Bots".to_string(), tags: vec!["analytics".to_string(), "chart".to_string()], is_system: true }, + AssetLibraryItem { id: Uuid::new_v4(), name: "Calendar".to_string(), asset_type: AssetType::Icon, url: None, svg_content: None, category: "General Bots".to_string(), tags: vec!["calendar".to_string(), "date".to_string()], is_system: true }, + AssetLibraryItem { id: Uuid::new_v4(), name: "Chat".to_string(), asset_type: AssetType::Icon, url: None, svg_content: None, category: "General Bots".to_string(), tags: vec!["chat".to_string(), "message".to_string()], is_system: true }, + AssetLibraryItem { id: Uuid::new_v4(), name: "Drive".to_string(), asset_type: AssetType::Icon, url: None, svg_content: None, category: "General Bots".to_string(), tags: vec!["drive".to_string(), "files".to_string()], is_system: true }, + AssetLibraryItem { id: Uuid::new_v4(), name: "Mail".to_string(), asset_type: AssetType::Icon, url: None, svg_content: None, category: "General Bots".to_string(), tags: vec!["mail".to_string(), "email".to_string()], is_system: true }, + AssetLibraryItem { id: Uuid::new_v4(), name: "Meet".to_string(), asset_type: AssetType::Icon, url: None, svg_content: None, category: "General Bots".to_string(), tags: vec!["meet".to_string(), "video".to_string()], is_system: true }, + AssetLibraryItem { id: Uuid::new_v4(), name: "Tasks".to_string(), asset_type: AssetType::Icon, url: None, svg_content: None, category: "General Bots".to_string(), tags: vec!["tasks".to_string(), "todo".to_string()], is_system: true }, ]; let filtered = match asset_type {