Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: remove unused link icon type (#30469)
ga_oeccf79a710e0
diff --git a/api/models/model.py b/api/models/model.pyindex 6cfcc2859d7..b6f2751a72d 100644--- a/api/models/model.py+++ b/api/models/model.py@@ -70,6 +70,7 @@ class AppMode(StrEnum):class IconType(StrEnum):IMAGE = auto()EMOJI = auto()+ LINK = auto()class App(Base):@@ -81,7 +82,7 @@ class App(Base):name: Mapped[str] = mapped_column(String(255))description: Mapped[str] = mapped_column(LongText, default=sa.text("''"))mode: Mapped[str] = mapped_column(String(255))- icon_type: Mapped[str | None] = mapped_column(String(255)) # image, emoji+ icon_type: Mapped[str | None] = mapped_column(String(255)) # image, emoji, linkicon = mapped_column(String(255))icon_background: Mapped[str | None] = mapped_column(String(255))app_model_config_id = mapped_column(StringUUID, nullable=True)diff --git a/api/services/app_dsl_service.py b/api/services/app_dsl_service.pyindex deba0b79e85..acd2a25a863 100644--- a/api/services/app_dsl_service.py+++ b/api/services/app_dsl_service.py@@ -32,7 +32,7 @@ from extensions.ext_redis import redis_clientfrom factories import variable_factoryfrom libs.datetime_utils import naive_utc_nowfrom models import Account, App, AppMode-from models.model import AppModelConfig+from models.model import AppModelConfig, IconTypefrom models.workflow import Workflowfrom services.plugin.dependencies_analysis import DependenciesAnalysisServicefrom services.workflow_draft_variable_service import WorkflowDraftVariableService@@ -428,10 +428,10 @@ class AppDslService:# Set icon typeicon_type_value = icon_type or app_data.get("icon_type")- if icon_type_value in ["emoji", "link", "image"]:+ if icon_type_value in [IconType.EMOJI.value, IconType.IMAGE.value, IconType.LINK.value]:icon_type = icon_type_valueelse:- icon_type = "emoji"+ icon_type = IconType.EMOJI.valueicon = icon or str(app_data.get("icon", ""))if app:diff --git a/api/tests/unit_tests/models/test_app_models.py b/api/tests/unit_tests/models/test_app_models.pyindex e35788660de..8be2eea121d 100644--- a/api/tests/unit_tests/models/test_app_models.py+++ b/api/tests/unit_tests/models/test_app_models.py@@ -114,7 +114,7 @@ class TestAppModelValidation:def test_icon_type_validation(self):"""Test icon type enum values."""# Assert- assert {t.value for t in IconType} == {"image", "emoji"}+ assert {t.value for t in IconType} == {"image", "emoji", "link"}def test_app_desc_or_prompt_with_description(self):"""Test desc_or_prompt property when description exists."""diff --git a/web/types/app.ts b/web/types/app.tsindex eb1b29bb600..c8c409a22c9 100644--- a/web/types/app.ts+++ b/web/types/app.ts@@ -316,7 +316,7 @@ export type SiteConfig = {use_icon_as_answer_icon: boolean}-export type AppIconType = 'image' | 'emoji'+export type AppIconType = 'image' | 'emoji' | 'link'/*** App