Repository navigation
Conversation
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.
Summary
工单 LUM-202611-19ade483 的
.png原图实际为 HEIC。浏览器无法解码,裁剪器尚未就绪,点击旋转便触发Cannot read properties of undefined (reading 'width')。浏览器解码失败时,现在通过已有图片预览接口按实际格式转成 PNG;保留用户原文件,处理普通上传、批量退回单图及撤销恢复,并拒绝过期转换结果。后端解码失败会显示错误并关闭无法使用的裁剪框。裁剪、旋转、缩放和确认均等待当前图片就绪,替换图片或重新打开时重新初始化。
Validation
python -m pytest tests/test_system_canary_integration_unit.py -q:12 项通过,包含真实 HEIC 编码、错误扩展名和最终 PNG 下载。pnpm build、修改文件 ESLint、python scripts/run_smoke_tests.py、python scripts/log_quality_check.py --mode fast、git diff --check:通过。工单附件及浏览器验证页面仅保存在本地,没有加入提交。
AI assistance
Models and tools: GPT-6 系列,具体变体未提供(via Codex)。
What each model helped with: 分析工单原始图片和堆栈,实现实际格式解码与裁剪生命周期修复,编写回归测试,执行原图交互验证并撰写说明。
How the output was checked: Codex 实际执行上述测试、构建和浏览器交互,核对接口响应、图片尺寸和控制台错误;没有将 AI 审阅当作运行验证。