fix(frontend): 稳定开发任务对话框状态 & 增加api类型检查#425
Open
awesomeYG wants to merge 3 commits intochaitin:mainfrom
Open
Conversation
added 2 commits
March 19, 2026 14:26
…ndle project changes more effectively
…prove rendering in file picker dialog
071d1ce to
76df0ef
Compare
76df0ef to
bd9244d
Compare
bd9244d to
e578bce
Compare
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.
变更描述
问题
key不稳定或缺失问题,可能引发渲染异常或不必要重渲染;多个 manager 页面分组列表拉取逻辑重复,维护成本高。apiRequest调用参数顺序与重载不一致,且部分接口响应类型推断不准确(如resp.data、provider、forward_id等),引发 TypeScript 报错和类型不一致问题。解决
main/master/首个分支,避免覆盖用户选择。(
frontend/src/components/console/project/start-develop-task-dialog.tsx)key(使用React.Fragment key=...)以提升渲染稳定性;统一各 manager 组件的分组列表获取逻辑,减少重复代码并提升一致性。(
frontend/src/components/console/files/file-picker-dialog.tsx、frontend/src/pages/playground-detail.tsx、frontend/src/components/manager/*)data类型;统一按extrax(路径参数数组)在前、params在后的调用顺序;收敛provider/forward_id等可选字段类型并补充必要防御性校验。(
frontend/src/utils/requestUtils.ts、frontend/src/components/console/*、frontend/src/components/manager/*)变更类型
apiRequest类型/重载问题)影响范围
apiRequest类型推断与调用规范