Skip to content

Self-improving AI Employees for everyone

refactor(icons): drop stale cls.icon declarations + move telegram/stripe icons to plugin folders

trohitg67d574a77528
diff --git a/server/nodes/google/_credentials.py b/server/nodes/google/_credentials.py
index 393faf38..65bfdd8d 100644
--- a/server/nodes/google/_credentials.py
+++ b/server/nodes/google/_credentials.py
@@ -22,7 +22,6 @@ class GoogleCredential(OAuth2Credential):
id = "google"
display_name = "Google Workspace"
category = "Productivity"
- icon = "asset:google"
authorization_url = "https://accounts.google.com/o/oauth2/auth"
token_url = "https://oauth2.googleapis.com/token"
client_id_api_key = "google_client_id"
diff --git a/server/nodes/location/_credentials.py b/server/nodes/location/_credentials.py
index b1674c20..78a2f656 100644
--- a/server/nodes/location/_credentials.py
+++ b/server/nodes/location/_credentials.py
@@ -25,7 +25,6 @@ class GoogleMapsCredential(ApiKeyCredential):
id = "google_maps"
display_name = "Google Maps"
category = "Location"
- icon = "asset:google_maps"
key_name = "key"
key_location = "query"
docs_url = "https://developers.google.com/maps/documentation"
diff --git a/server/nodes/model/_credentials.py b/server/nodes/model/_credentials.py
index 493693d6..13b0ecd9 100644
--- a/server/nodes/model/_credentials.py
+++ b/server/nodes/model/_credentials.py
@@ -60,17 +60,25 @@ class _LLMApiKey(ApiKeyCredential):
)
+# NOTE: ``icon`` is intentionally NOT declared on the LLM credentials
+# below. ``cls.icon`` is documentation-only — nothing reads it at
+# runtime; the catalogue (``server/config/credential_providers.json``
+# ``icon_ref`` field) is the FE-visible source of truth. Each LLM
+# provider's icon_ref uses ``lobehub:<brand>`` (the @lobehub/icons
+# React component). Per RFC F7 cleanup, the stale ``asset:<key>``
+# declarations were dropped — they pointed at frontend SVGs that
+# didn't exist for any LLM provider.
+
+
class OpenAICredential(_LLMApiKey):
id = "openai"
display_name = "OpenAI"
- icon = "asset:openai"
docs_url = "https://platform.openai.com/api-keys"
class AnthropicCredential(_LLMApiKey):
id = "anthropic"
display_name = "Anthropic"
- icon = "asset:anthropic"
docs_url = "https://console.anthropic.com/settings/keys"
# Anthropic uses ``x-api-key`` not Bearer.
key_name = "x-api-key"
@@ -80,7 +88,6 @@ class AnthropicCredential(_LLMApiKey):
class GeminiCredential(_LLMApiKey):
id = "gemini"
display_name = "Google Gemini"
- icon = "asset:gemini"
docs_url = "https://ai.google.dev/gemini-api/docs/api-key"
key_name = "key"
key_location = "query"
@@ -89,49 +96,42 @@ class GeminiCredential(_LLMApiKey):
class OpenRouterCredential(_LLMApiKey):
id = "openrouter"
display_name = "OpenRouter"
- icon = "asset:openrouter"
docs_url = "https://openrouter.ai/keys"
class GroqCredential(_LLMApiKey):
id = "groq"
display_name = "Groq"
- icon = "asset:groq"
docs_url = "https://console.groq.com/keys"
class CerebrasCredential(_LLMApiKey):
id = "cerebras"
display_name = "Cerebras"
- icon = "asset:cerebras"
docs_url = "https://cloud.cerebras.ai/"
class DeepSeekCredential(_LLMApiKey):
id = "deepseek"
display_name = "DeepSeek"
- icon = "asset:deepseek"
docs_url = "https://platform.deepseek.com/api_keys"
class KimiCredential(_LLMApiKey):
id = "kimi"
display_name = "Kimi (Moonshot)"
- icon = "asset:kimi"
docs_url = "https://platform.moonshot.cn"
class MistralCredential(_LLMApiKey):
id = "mistral"
display_name = "Mistral AI"
- icon = "asset:mistral"
docs_url = "https://console.mistral.ai/api-keys/"
class XaiCredential(_LLMApiKey):
id = "xai"
display_name = "xAI (Grok)"
- icon = "asset:xai"
docs_url = "https://console.x.ai"
diff --git a/server/nodes/scraper/_credentials.py b/server/nodes/scraper/_credentials.py
index d8c538cd..16bf170c 100644
--- a/server/nodes/scraper/_credentials.py
+++ b/server/nodes/scraper/_credentials.py
@@ -13,7 +13,6 @@ class ApifyCredential(ApiKeyCredential):
id = "apify"
display_name = "Apify"
category = "Scrapers"
- icon = "asset:apify"
key_name = "Authorization"
key_location = "bearer"
docs_url = "https://docs.apify.com/api/v2"
diff --git a/server/nodes/search/brave_search/__init__.py b/server/nodes/search/brave_search/__init__.py
index d01ac396..3c326d3f 100644
--- a/server/nodes/search/brave_search/__init__.py
+++ b/server/nodes/search/brave_search/__init__.py
@@ -32,7 +32,6 @@ class BraveSearchCredential(ApiKeyCredential):
id = "brave_search"
display_name = "Brave Search"
category = "Search"
- icon = "asset:brave"
key_name = "X-Subscription-Token"
key_location = "header"
docs_url = "https://api.search.brave.com/app/keys"
diff --git a/server/nodes/search/perplexity_search/__init__.py b/server/nodes/search/perplexity_search/__init__.py
index ea22eda2..ae3655e6 100644
--- a/server/nodes/search/perplexity_search/__init__.py
+++ b/server/nodes/search/perplexity_search/__init__.py
@@ -26,7 +26,6 @@ class PerplexityCredential(ApiKeyCredential):
id = "perplexity"
display_name = "Perplexity"
category = "Search"
- icon = "asset:perplexity"
key_name = "Authorization"
key_location = "bearer"
docs_url = "https://docs.perplexity.ai/guides/getting-started"
diff --git a/server/nodes/search/serper_search/__init__.py b/server/nodes/search/serper_search/__init__.py
index 3457539d..bfda1a46 100644
--- a/server/nodes/search/serper_search/__init__.py
+++ b/server/nodes/search/serper_search/__init__.py
@@ -19,7 +19,6 @@ class SerperCredential(ApiKeyCredential):
id = "serper"
display_name = "Serper"
category = "Search"
- icon = "asset:google"
key_name = "X-API-KEY"
key_location = "header"
docs_url = "https://serper.dev/api-key"
diff --git a/server/nodes/stripe/_credentials.py b/server/nodes/stripe/_credentials.py
index 2900bd24..e9629902 100644
--- a/server/nodes/stripe/_credentials.py
+++ b/server/nodes/stripe/_credentials.py
@@ -19,7 +19,6 @@ class StripeCredential(Credential):
id = "stripe"
display_name = "Stripe"
category = "Payments"
- icon = "asset:stripe"
auth = "custom"
docs_url = "https://stripe.com/docs/cli"
diff --git a/server/nodes/stripe/icon.svg b/server/nodes/stripe/icon.svg
new file mode 100644
index 00000000..19008486
--- /dev/null
+++ b/server/nodes/stripe/icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="6" fill="#635BFF"/><path d="M14.4 13.2c0-.9.7-1.3 1.9-1.3 1.7 0 3.9.5 5.6 1.4V8.1c-1.9-.7-3.7-1-5.6-1-4.6 0-7.6 2.4-7.6 6.4 0 6.2 8.6 5.2 8.6 7.9 0 1.1-.9 1.4-2.2 1.4-1.9 0-4.3-.8-6.2-1.8v5.4c2.1.9 4.3 1.3 6.2 1.3 4.7 0 7.9-2.3 7.9-6.4 0-6.7-8.6-5.5-8.6-8.1z" fill="#fff"/></svg>
diff --git a/server/nodes/telegram/_credentials.py b/server/nodes/telegram/_credentials.py
index 16f04416..c3189973 100644
--- a/server/nodes/telegram/_credentials.py
+++ b/server/nodes/telegram/_credentials.py
@@ -22,7 +22,6 @@ class TelegramCredential(ApiKeyCredential):
id = "telegram_bot_token"
display_name = "Telegram Bot"
category = "Social"
- icon = "asset:telegram"
key_name = "" # not used — python-telegram-bot takes the token directly
key_location = "header"
extra_fields = ("telegram_owner_chat_id",)
diff --git a/server/nodes/telegram/icon.svg b/server/nodes/telegram/icon.svg
new file mode 100644
index 00000000..e30cd7fe
--- /dev/null
+++ b/server/nodes/telegram/icon.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#0088CC">
+ <path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/>
+</svg>
diff --git a/server/nodes/twitter/_credentials.py b/server/nodes/twitter/_credentials.py
index e3e55a35..308b19a7 100644
--- a/server/nodes/twitter/_credentials.py
+++ b/server/nodes/twitter/_credentials.py
@@ -21,7 +21,6 @@ class TwitterCredential(OAuth2Credential):
id = "twitter"
display_name = "Twitter / X"
category = "Social"
- icon = "asset:x"
authorization_url = "https://twitter.com/i/oauth2/authorize"
token_url = "https://api.twitter.com/2/oauth2/token"
client_id_api_key = "twitter_client_id"
diff --git a/server/nodes/visuals.json b/server/nodes/visuals.json
index 9efd6d92..9549c1fb 100644
--- a/server/nodes/visuals.json
+++ b/server/nodes/visuals.json
@@ -280,12 +280,6 @@
"teamMonitor": {
"icon": "📊"
},
- "telegramReceive": {
- "icon": "asset:telegram"
- },
- "telegramSend": {
- "icon": "asset:telegram"
- },
"textChunker": {
"icon": "✂️"
},
@@ -343,10 +337,6 @@
"skill": "write-todos-skill"
},
"stripeAction": {
- "icon": "asset:stripe",
"skill": "stripe-skill"
- },
- "stripeReceive": {
- "icon": "asset:stripe"
}
}