Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 24, 2026

Addresses four feature optimization requests: artifact workflow double-zip issue, layout button naming, i18n support, and viewed checkbox functionality.

Changes

Artifact Workflow

  • Upload dist/chrome/ and dist/edge/ directories directly instead of zipping first
  • Eliminates nested zip issue when downloading artifacts

Layout Button Naming

  • Renamed "左右布局" → "Side-by-Side" and "上下布局" → "Unified"
  • Standard diff terminology, localized via i18n

Internationalization

  • Added _locales/{en,zh,ja}/messages.json with translations
  • New i18n.js module: browser language detection, English fallback, localStorage persistence
  • HTML uses data-i18n, data-i18n-title, data-i18n-placeholder attributes

Viewed Checkbox Feature

  • Adds checkbox to each file header to mark files as "viewed"
  • Checked files collapse (hide diff content) with green header styling
  • State persisted to localStorage
  • Enabled fileListToggle, fileContentToggle, stickyFileHeaders options

Screenshots

English UI:
ui-english

Viewed checkbox (file1.txt collapsed):
viewed-checkbox

Original prompt

This section details on the original issue you should resolve

<issue_title>功能优化</issue_title>
<issue_description>1. artifact.yml目前打包结果 是 patchReader-chrome.zip下还有个同名的patchReader-chrome.zip 这样解压时会有问题,请去掉最外层的zip
2. 目前的左右布局和上下布局是针对差分视图的,目前名字不太合适,请帮我更换合适的名字
3. 支持国际化,中日英,默认是浏览器语言,如果都不符合,默认英文
4. diff2html 我记得课题有个viewed checkbox,可以折叠,能加上么,如果有其他的好用的功能也可以加上</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…iewed checkbox feature

Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
@unknowIfGuestInDream unknowIfGuestInDream marked this pull request as ready for review January 24, 2026 11:47
Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
Copilot AI changed the title [WIP] Optimize packaging of artifact.yml and improve layout names Feature optimizations: i18n, layout button names, artifact fix, viewed checkbox Jan 24, 2026
@unknowIfGuestInDream unknowIfGuestInDream merged commit 97bb9f2 into master Jan 24, 2026
2 checks passed
@unknowIfGuestInDream unknowIfGuestInDream deleted the copilot/optimize-artifact-structure branch January 24, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

功能优化

2 participants