feat(web): 画布运行面板默认激活「过程」tab - #120
Merged
Merged
Conversation
Closes #119 - RESULT_TABS 顺序调整为「过程 / 成果 / 问题」,与默认激活项对齐 (该重排原在工作区未提交改动中,与本 issue 目标一致,一并收编) - ResultPanel 初始 useState 与切换运行的重置 effect 改为 'process' - deriveRunViewState 默认参数与非法 tab fallback 同步改为 'process' - result-adapter 测试断言同步更新 验证:web 14 套测试全绿;build-web.sh 双构建通过
Owner
Author
真实浏览器验证(合并门槛 2)Vite dev server + 页面内 fetch mock(/graph、/runs、/runs/detail、/run-results 等最小数据集),真实 Chrome 渲染验证:
本地验证汇总:web 14 套测试全绿 ✅ · build-web.sh 双构建通过 ✅ · CI test+build 通过 ✅ · 浏览器 E2E ✅ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #119
背景
运行面板三个 tab 原顺序为「成果 / 过程 / 问题」,默认激活「成果」。发起运行后用户第一诉求是看执行进度(哪个节点在跑、跑到哪了),长任务/失败场景下默认落在「成果」还会先看到空态。
方案
RESULT_TABS顺序调整为「过程 / 成果 / 问题」,默认激活项与第一项对齐ResultPanel.jsx:初始useState('process')+ 切换运行的重置setActiveTab('process')run-view-state.js:deriveRunViewState默认参数与非法 tab fallback 改'process'result-adapter.test.mjs:bad-tab断言同步更新注:RESULT_TABS 重排在工作区已有未提交改动(subworkflow 批)中先行出现,与 #119 目标一致,本 PR 一并收编;其余 subworkflow 工作未包含在本 PR。
验证
cd web && npm test:14 套全绿(含更新后的 result-adapter 断言)sh dsh-plugins/build-web.sh双构建通过