From 9232e1e6a9882f78d0408e6fd7c2393a094bcf27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=BF=97=E8=B0=A6?= <89645338+simpleqt@users.noreply.github.com> Date: Mon, 24 Aug 2026 10:58:48 +0800 Subject: [PATCH] fix: DeerFlow brand casing in disclaimer, What's New title, setup-sandbox .PHONY (#4970) * fix: DeerFlow brand casing in disclaimer, 'What's New' title, setup-sandbox .PHONY - en-US disclaimer said 'Deerflow'; every other user-facing string brands it 'DeerFlow' (rendered under the chat composer) - landing section title 'Whats New in DeerFlow 2.0' -> 'What's New' - setup-sandbox was the only Makefile target missing from .PHONY * test: align disclaimer assertions with DeerFlow brand casing The unit and e2e suites still expected the old "Deerflow" spelling in inputBox.disclaimer; update both to the corrected locale string so the i18n load test and the chat footer assertion pass again. --------- Co-authored-by: Willem Jiang --- Makefile | 2 +- frontend/src/components/landing/sections/whats-new-section.tsx | 2 +- frontend/src/core/i18n/locales/en-US.ts | 2 +- frontend/tests/e2e/agent-chat.spec.ts | 2 +- frontend/tests/unit/core/i18n/translations.test.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ce37510a5..b1c8fc9a7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # DeerFlow - Unified Development Environment -.PHONY: help config config-upgrade check check-agent-guidance install extension-install extension-list extension-enable extension-disable extension-remove setup doctor support-bundle detect-thread-boundaries detect-blocking-io dev dev-daemon start start-daemon nginx stop up down clean docker-init docker-start docker-stop docker-logs docker-logs-frontend docker-logs-gateway docker-logs-redis +.PHONY: help config config-upgrade check check-agent-guidance install extension-install extension-list extension-enable extension-disable extension-remove setup doctor support-bundle detect-thread-boundaries detect-blocking-io dev dev-daemon start start-daemon nginx stop up down clean docker-init docker-start docker-stop docker-logs docker-logs-frontend docker-logs-gateway docker-logs-redis setup-sandbox BASH ?= bash BACKEND_UV_RUN = cd backend && uv run diff --git a/frontend/src/components/landing/sections/whats-new-section.tsx b/frontend/src/components/landing/sections/whats-new-section.tsx index a60dca720..c347bae28 100644 --- a/frontend/src/components/landing/sections/whats-new-section.tsx +++ b/frontend/src/components/landing/sections/whats-new-section.tsx @@ -68,7 +68,7 @@ export function WhatsNewSection({ className }: { className?: string }) { return (
{ const textarea = page.getByPlaceholder(/how can i assist you/i); await expect(textarea).toBeVisible({ timeout: 15_000 }); await expect( - page.getByText("Deerflow is AI and can make mistakes", { exact: true }), + page.getByText("DeerFlow is AI and can make mistakes", { exact: true }), ).toBeVisible(); }); diff --git a/frontend/tests/unit/core/i18n/translations.test.ts b/frontend/tests/unit/core/i18n/translations.test.ts index e66953e90..5a3ec532a 100644 --- a/frontend/tests/unit/core/i18n/translations.test.ts +++ b/frontend/tests/unit/core/i18n/translations.test.ts @@ -9,7 +9,7 @@ describe("core copy loading", () => { loadTranslations("zh-CN"), ]); expect(english.inputBox.disclaimer).toBe( - "Deerflow is AI and can make mistakes", + "DeerFlow is AI and can make mistakes", ); expect(chinese.inputBox.disclaimer).toBe( "内容由AI生成,重要信息请务必核查",