Skip to content

feat(web): 新建任务上传附件 UI(#369)#386

Merged
leeguooooo merged 1 commit into
mainfrom
feat/369-upload-ui
Jul 12, 2026
Merged

feat(web): 新建任务上传附件 UI(#369)#386
leeguooooo merged 1 commit into
mainfrom
feat/369-upload-ui

Conversation

@leeguooooo

Copy link
Copy Markdown
Owner

#271 唯一真遗留「新建任务表单上传图片/文件」——后端 #376 已合,本 PR 补前端。

改动

  • TaskLedgerPanel 新建表单加「📎 添加附件」:uploadAttachment 上传 R2 → 待发 chip(可移除)→ createTask 带 attachments
  • 任务卡渲染附件(复用 AttachmentList:图片缩略图 / 文件下载)
  • onCreateTask 加可选 attachments;Channel 传 onUploadAttachment
  • i18n en+zh

验证

web 655 全过、tsc/build 干净。

Closes #369

https://claude.ai/code/session_01PgxkZeqJmDge3dYe9W2tPZ

#271 关闭承诺但没做的「新建任务表单上传图片/文件」——后端已在 #376 落地,本 PR
补前端 UI:

- TaskLedgerPanel 新建表单加「📎 添加附件」:走现成 uploadAttachment 上传到 R2
  拿引用,待发附件成 chip(可移除),随 createTask 带上 attachments
- 任务卡渲染已带附件(复用 AttachmentList:图片缩略图、其它文件下载)
- onCreateTask 签名加可选 attachments;Channel 传 onUploadAttachment(canWrite 才给)
- i18n en+zh

验证:web 655 全过(TaskLedgerPanel 测试断言更新为带 attachments)、tsc/build 干净。

Closes #369

Claude-Session: https://claude.ai/code/session_01PgxkZeqJmDge3dYe9W2tPZ
@leeguooooo leeguooooo merged commit dd8270a into main Jul 12, 2026
19 checks passed
@leeguooooo leeguooooo mentioned this pull request Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P2][交接] 唯一真遗留:#271 任务表单附件上传;附 #284/#185 现状澄清(经二次核实)

1 participant