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 */}
|
||||
|
||||
@@ -38,10 +38,10 @@ export interface ColdStartState {
|
||||
// === Default Greeting ===
|
||||
|
||||
const DEFAULT_GREETING_BODY =
|
||||
'我可以帮您处理数据报告、会议纪要、政策合规检查等日常工作。\n\n请问您是哪个科室的?主要负责哪方面的工作?';
|
||||
'我可以帮您处理写作、研究、数据分析、内容生成等各类任务。\n\n请告诉我您需要什么帮助?';
|
||||
|
||||
const FALLBACK_GREETING =
|
||||
'您好!我是您的工作助手。我可以帮您处理数据报告、会议纪要、政策合规检查等工作。请问您是哪个科室的?';
|
||||
'您好!我是您的工作助手。我可以帮您处理写作、研究、数据分析、内容生成等各类任务。请告诉我您需要什么帮助?';
|
||||
|
||||
// === Persistence Helpers ===
|
||||
|
||||
|
||||
@@ -476,7 +476,7 @@ export const useConnectionStore = create<ConnectionStore>((set, get) => {
|
||||
|
||||
// Models already fetched during health check above
|
||||
if (!relayModels || relayModels.length === 0) {
|
||||
throw new Error('SaaS 平台没有可用模型,请先在管理后台配置 Provider 和模型');
|
||||
throw new Error('暂时没有可用的 AI 模型,请稍后再试或联系管理员');
|
||||
}
|
||||
|
||||
if (isTauriRuntime()) {
|
||||
|
||||
Reference in New Issue
Block a user