fix: stabilize e2e context and onboarding themes

This commit is contained in:
732642856
2026-07-21 22:35:13 +08:00
parent 909a248d20
commit a69e24461f
4 changed files with 56 additions and 3 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
export type ReplyTheme = "career" | "marriage" | "timing" | "general";
export type ReplyTheme = "career" | "marriage" | "wealth" | "timing" | "general";
const fallbackSuggestions: Record<ReplyTheme, readonly [string, string, string]> = {
career: ["我更适合怎样的职业路径?", "未来一年事业上要避开什么?", "我该如何发挥自己的优势?"],
marriage: ["我在关系里容易重复什么模式?", "怎样的伴侣更适合我?", "未来一年关系上要注意什么?"],
wealth: ["我的财富增长方式是什么?", "接下来财务上要避开什么?", "我该如何稳定提升收入?"],
timing: ["接下来最值得把握的阶段是什么?", "哪些时期更适合主动行动?", "我现在应该优先准备什么?"],
general: ["未来一年,事业和收入该关注什么?", "我的关系模式是什么?", "未来哪些阶段值得把握?"],
};
+2 -1
View File
@@ -77,7 +77,7 @@ type OnboardingProfileFingerprintInput = {
};
export type OnboardingSuggestion = {
readonly theme: "career" | "marriage" | "timing";
readonly theme: ConsultationTheme;
readonly text: string;
};
@@ -268,3 +268,4 @@ export async function requestOnboardingWithRecovery(
throw lastError ?? new OnboardingRequestError("pending");
}
import type { ConsultationTheme } from "./consultation-workflow-request";