99 * 判定的唯一事实源在后端 goal_interview.rs)。
1010 */
1111import { useEffect , useState } from "react" ;
12- import { Modal } from "../ui/primitives" ;
12+ import { Button , Modal } from "../ui/primitives" ;
1313import { invoke } from "@tauri-apps/api/core" ;
1414import type { Goal , GoalPlanView , MilestoneDraft } from "../types/goals" ;
1515import type { InterviewAnswers } from "../utils/goalInterview" ;
@@ -222,10 +222,10 @@ export default function InterviewDialog({ mode, groups, onClose, onCreated, goal
222222 { ! quickMode && step === 4 && "确认后即创建——里程碑/判据可从详情页调整" }
223223 </ span >
224224 { ! quickMode && step > 0 && (
225- < button onClick = { ( ) => setStep ( ( s ) => s - 1 ) } style = { ghostBtn } > 上一步</ button >
225+ < Button variant = "secondary" size = "md" onClick = { ( ) => setStep ( ( s ) => s - 1 ) } > 上一步</ Button >
226226 ) }
227227 { ! quickMode && ( step === 1 || step === 3 ) && (
228- < button data-testid = " skip-step" onClick = { ( ) => setStep ( ( s ) => s + 1 ) } style = { ghostBtn } > 跳过/以后想</ button >
228+ < Button variant = "secondary" size = "md" testId = " skip-step" onClick = { ( ) => setStep ( ( s ) => s + 1 ) } > 跳过/以后想</ Button >
229229 ) }
230230 { ! quickMode && step === 4 && (
231231 < button
@@ -239,12 +239,12 @@ export default function InterviewDialog({ mode, groups, onClose, onCreated, goal
239239 </ button >
240240 ) }
241241 { ! quickMode && step < 4 && (
242- < button data-testid = " next-step" onClick = { next } style = { primaryBtn } > 下一步</ button >
242+ < Button variant = "primary" size = "md" testId = " next-step" onClick = { next } > 下一步</ Button >
243243 ) }
244244 { ( quickMode || step === 4 ) && (
245- < button data-testid = "confirm-create" onClick = { ( ) => void create ( ) } disabled = { saving || ! name . trim ( ) } style = { primaryBtn } >
245+ < Button variant = "primary" size = "md" testId = "confirm- create" disabled = { saving || ! name . trim ( ) } onClick = { ( ) => void create ( ) } >
246246 { saving ? "创建中…" : "✓ 确认创建" }
247- </ button >
247+ </ Button >
248248 ) }
249249 </ div >
250250 { /* v0.18.2:AI 规划确认流(建议制——确认后替换规则草案落库) */ }
@@ -271,10 +271,6 @@ const inputStyle: React.CSSProperties = {
271271 width : "100%" , padding : "7px 10px" , fontSize : 13 , border : "1px solid #e5e7eb" ,
272272 borderRadius : 6 , boxSizing : "border-box" , marginBottom : 10 ,
273273} ;
274- const primaryBtn : React . CSSProperties = {
275- fontSize : 12 , padding : "6px 16px" , borderRadius : 6 , cursor : "pointer" ,
276- border : "1px solid #0f766e" , background : "#0f766e" , color : "#fff" ,
277- } ;
278274const ghostBtn : React . CSSProperties = {
279275 fontSize : 12 , padding : "6px 12px" , borderRadius : 6 , cursor : "pointer" ,
280276 border : "1px solid #d1d5db" , background : "#fff" , color : "#4b5563" ,
0 commit comments