feat(web): composer 图片附件缩略图预览(#377)#384
Merged
Merged
Conversation
owner 反馈参考 Codex:待发的图片附件应显缩略图预览而非纯文件名 chip。 - 抽 useAttachmentBlobUrl hook + isImageAttachment 到 AttachmentList(消息缩略图 与 composer 待发预览共用鉴权 blob 加载,不重复) - Composer 新增 PendingAttachment:图片→方形缩略图 + 右上角 × 浮层(Codex 式), 非图片→文件名 chip + ×;filename/size 落 title - urlToken() 加 typeof window guard(SSR/单测健壮性,顺带修本次单测崩溃) 验证:web 650 用例全过(Composer 附件测试更新为缩略图/文件 chip 两路径 + 新增 #377 缩略图断言)、tsc 干净、build 通过。 Closes #377 Claude-Session: https://claude.ai/code/session_01PgxkZeqJmDge3dYe9W2tPZ
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.
owner 反馈参考 Codex:composer 里待发的图片附件应显缩略图预览(+ 角标 ×),而非纯文件名 chip。
改动
useAttachmentBlobUrlhook +isImageAttachment到AttachmentList——消息缩略图与 composer 待发预览共用鉴权 blob 加载(不重复)Composer新增PendingAttachment:图片 → 方形缩略图 + 右上角 × 浮层(Codex 式);非图片 → 文件名 chip + ×;filename/size 落titleurlToken()加typeof windowguard(SSR/单测健壮性)验证
web 650 全过(Composer 附件测试改为「缩略图 / 文件 chip」两路径 + 新增 #377 缩略图断言)、tsc 干净、build 通过。
Closes #377
https://claude.ai/code/session_01PgxkZeqJmDge3dYe9W2tPZ