Skip to content

fix: open compressed files in decompress drawer, improve archive detection#11997

Open
A-Words wants to merge 1 commit into1Panel-dev:dev-v2from
A-Words:fix/11952-decompress-open
Open

fix: open compressed files in decompress drawer, improve archive detection#11997
A-Words wants to merge 1 commit into1Panel-dev:dev-v2from
A-Words:fix/11952-decompress-open

Conversation

@A-Words
Copy link
Contributor

@A-Words A-Words commented Feb 28, 2026

What this PR does / why we need it?

修复文件管理与压缩文件打开行为相关的问题(#11952):

  • 点击压缩文件应直接打开解压抽屉,不应进入预览抽屉。
  • 优化压缩包类型识别,提升复合后缀场景的稳定性。
  • 修复文件管理器列表中压缩文件图标识别不准确的问题。

Summary of your change

  • 调整文件打开逻辑优先级:在大文件预览判断前,优先处理 compress 类型并进入解压流程。
  • 通过统一扩展名解析支持 .tar.gz/.tar.bz2/.tar.xz 等复合后缀。
  • 修复收藏夹中打开文件时参数不完整问题,补全 name/path/extension/mimeType,保证与列表行为一致。
  • 调整右键按钮显示逻辑可解压的压缩包显示 打开,不再显示“预览”。
  • 调整文件管理器主列表图标识别逻辑,确保压缩文件显示压缩包图标。

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Feb 28, 2026

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Feb 28, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ssongliu for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant