feat(aihr): align figma pages for release

This commit is contained in:
2026-07-14 02:04:36 +08:00
parent 922fe7ff29
commit 87360a25d3
51 changed files with 3575 additions and 629 deletions
+24 -1
View File
@@ -344,6 +344,18 @@ type ScenarioSeed = {
id: string;
name: string;
position?: string;
scenarioType?: string;
projectType?: string;
difficulty?: number;
customerPersona?: string;
openingText?: string;
explicitNeed?: string;
hiddenNeed?: string;
irritants?: string;
delights?: string;
sopRefs?: string;
successCriteria?: string;
enabled?: boolean;
trainee: string;
customer: string;
project: string;
@@ -489,7 +501,6 @@ const defaultPromptForm = (): PromptTemplateForm => ({
description: ''
});
const promptForm = ref<PromptTemplateForm>(defaultPromptForm());
const selectedScenario = computed(
() => scenarios.value.find((scenario) => scenario.id === scenarioId.value) ?? scenarios.value[0] ?? fallbackScenarios[0]
);
@@ -563,6 +574,18 @@ const mapApiScenario = (item: PracticeScenarioResponse): ScenarioSeed => ({
id: item.id,
name: item.name,
position: item.position,
scenarioType: item.scenarioType,
projectType: item.projectType,
difficulty: item.difficulty,
customerPersona: item.customerPersona,
openingText: item.openingText,
explicitNeed: item.explicitNeed,
hiddenNeed: item.hiddenNeed,
irritants: item.irritants,
delights: item.delights,
sopRefs: item.sopRefs,
successCriteria: item.successCriteria,
enabled: item.enabled,
trainee: '张三',
customer: item.customerPersona,
project: item.projectType || item.scenarioType,