fix(ui): UX 文案优化 — 区分新/老用户 + 去政务化 + 友好提示
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
- FirstConversationPrompt: 新用户显示"欢迎开始!",老用户"欢迎回来!" - use-cold-start: 冷启动问候语改为通用语言,去掉政务场景特定文案 - LoginPage: 添加"忘记密码?请联系管理员重置"提示 - connectionStore: 错误提示改为用户友好的"暂时没有可用的 AI 模型"
This commit is contained in:
@@ -77,6 +77,8 @@ export function FirstConversationPrompt({
|
||||
};
|
||||
|
||||
// Use template-provided welcome message if available, otherwise generate dynamically
|
||||
const isNewUser = !localStorage.getItem('zclaw-onboarding-completed');
|
||||
const welcomeTitle = isNewUser ? '你好,欢迎开始!' : '你好,欢迎回来!';
|
||||
const welcomeMessage = clone.welcomeMessage
|
||||
|| generateWelcomeMessage({
|
||||
userName: clone.userName,
|
||||
@@ -143,7 +145,7 @@ export function FirstConversationPrompt({
|
||||
transition={{ delay: 0.1, duration: 0.5 }}
|
||||
className="text-2xl font-semibold text-gray-900 dark:text-gray-100 mb-2"
|
||||
>
|
||||
你好,欢迎回来!
|
||||
{welcomeTitle}
|
||||
</motion.h1>
|
||||
|
||||
{/* Mode-aware subtitle */}
|
||||
|
||||
@@ -494,6 +494,13 @@ export function LoginPage() {
|
||||
)}
|
||||
</button>
|
||||
</motion.div>
|
||||
|
||||
{/* Forgot password hint — login mode only */}
|
||||
{!isRegister && (
|
||||
<p className="text-center text-xs text-gray-400 mt-3">
|
||||
忘记密码?请联系管理员重置
|
||||
</p>
|
||||
)}
|
||||
</form>
|
||||
|
||||
{/* Version footer */}
|
||||
|
||||
Reference in New Issue
Block a user