Repository navigation
Conversation
任务产出现在优先在文件管理器中打开,而不是只能在产出页里看: - 位于该任务所属空间内的产出,按空间文件在文件预览中打开,因此可以刷新、编辑, 也能使用文档插件。 - 位于空间内的文件夹产出,在文件管理器中打开并展开、聚焦该文件夹,复用目录树自身的点击路径。 - 文件产出打开时收起目录树,用户仍可手动展开。 - 以下情况保持原来的产出页:无空间的任务、空间目录之外的产出、其他任务的产出, 以及超出文件预览大小限制的文件。 新增 useTaskResourcePanelArtifact、useResourcePreviews、ExplorerTree 的单元测试。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
确实是更好的想法,之前有些散乱了。感觉之前的文件预览需要被收束 |
Contributor
|
初步梳理是现有打开机制的混乱,可能整个底层得重构一下。优化逻辑、优化交互。 |
Contributor
|
这部分将会关闭,产物将会走原有逻辑,只是会补充打开方式。 |
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.
背景与关联 / Context and related issue
主要改动 / Changes
useTaskResourcePanelArtifact、useResourcePreviews、ExplorerTree的单元测试。验证 / Verification
兼容与风险 / Compatibility and risks
不适用 / N/A。不改变存储、授权或迁移。需要留意的一点:判断“产出是否在任务所属空间内”的规则决定了哪些产出会改在文件管理器打开,请重点看
chatToolFileTarget.ts与useTaskResourcePanel.ts中的边界条件。界面变更 / UI changes
空间内的任务产出点击后在文件管理器中打开,而不是产出页;文件夹产出会展开并聚焦,文件产出打开时目录树默认收起。
🤖 Generated with Claude Code