同步:完善质量分析工作台并更新主题字体
同步已上线的智能分析执行协议、来源查询、图表报告与管理页面配套代码。 补齐数据库迁移、运行依赖和回归测试,保留原有指标计算口径。 统一午夜黑及其他主题的控件细节、中文和业务数字字体。 排除本地业务数据、凭据、预览、发布与验收产物。 验证:生产构建通过,320项前端回归通过;本轮仅同步Git,不再次部署。
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import React,{useState,useEffect} from 'react';
|
||||
import {createRoot} from 'react-dom/client';
|
||||
import {AnalysisThinkingBlock} from '../src/ModelThinkingPanel';
|
||||
import '../src/styles.css';
|
||||
import '../src/analysis-chat.css';
|
||||
function Fixture(){
|
||||
const [step,setStep]=useState(0);
|
||||
const [stream,setStream]=useState('');
|
||||
useEffect(()=>{
|
||||
if(step!==3)return;
|
||||
setStream('');let index=0;
|
||||
const timer=setInterval(()=>{
|
||||
index++;setStream(('核对已返回的查询依据,按指定期间和黑片阶段整理缺陷排名。🙂\n').repeat(index));
|
||||
if(index===15)clearInterval(timer);
|
||||
},200);
|
||||
return ()=>clearInterval(timer);
|
||||
},[step]);
|
||||
return <main style={{padding:24,maxWidth:900,margin:'auto'}}>
|
||||
<div style={{display:'flex',gap:12,marginBottom:16}}>
|
||||
<button onClick={()=>setStep(1)}>模拟思考结束</button>
|
||||
<button onClick={()=>setStep(2)}>模拟后续相邻调用</button>
|
||||
<button onClick={()=>setStep(3)}>模拟流式思考</button>
|
||||
</div>
|
||||
<AnalysisThinkingBlock running={true} entry={{id:step===3?'api-abcd1234-2':'api-abcd1234-1',source:'api',model:'local-fixture',phase:'analysis',version:step+1,status:step===1?'completed':'running',text:step===3?stream:'第一段已经收到的思考全文。'+(step===2?'后续调用补充的原始文字。':''),streaming:true,truncated:false}}/>
|
||||
</main>;
|
||||
}
|
||||
createRoot(document.getElementById('root')!).render(<Fixture/>);
|
||||
Reference in New Issue
Block a user