26 Commits

Author SHA1 Message Date
Your Name
927514ad6b 文字编辑支持删除条目并传递到生图
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-07 21:53:37 +08:00
Your Name
18a3495d2c 无限画布新增图片文字编辑工作流
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-07 21:48:49 +08:00
Your Name
bb4f51d198 feat: improve canvas workflow and auto title
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Hide internal prompts from users, auto-focus new images, avoid overlap, enable drag-and-drop upload, and fix canvas navigation reloads.
2026-02-03 16:33:51 +08:00
Your Name
bb1667881d fix: improve canvas image toolbar and tags
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Add watermark removal, improve dark mode toolbar styling, and sync tag deletion with attachments.
2026-02-03 15:51:30 +08:00
Your Name
98bc457082 fix: 彻底禁止base64存储 - 所有图片/视频上传均先传服务器获取URL
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-03 11:02:05 +08:00
Your Name
ff359fe03b feat: 将图片上传大小限制从 8MB 提升到 20MB
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-03 10:23:34 +08:00
Your Name
ff5e78c5a9 fix: 标注成功后自动生成标签,无需点击确认按钮
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-02 13:24:05 +08:00
Your Name
c74d2b7d44 feat: 改进物品标注交互,直接在画布图片上标注无需弹窗
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-02 13:13:22 +08:00
Your Name
e314edb283 feat: 画布点阵背景固定大小不随缩放变化,图片双击放大预览
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-02 12:34:13 +08:00
Your Name
47afddfd73 feat: 添加物品拾取功能(MVP版本)
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 新增 ObjectPickerOverlay 组件,支持点击图片拾取物品
- 新增 /api/pick-object API,调用 Qwen-VL 识别物品
- Canvas Store 扩展拾取模式状态管理
- ImageNode 工具栏新增拾取按钮
- CanvasChatPanel 集成物品标签,发送时自动构建精准prompt
- 图片压缩至 600px 以内加速 AI 分析
- 物品名称限制 8 字,位置固定 4 字标准词库
2026-02-02 11:50:30 +08:00
Your Name
dbed4020c0 feat: 图片工具栏改为纯图标模式,悬停显示功能名称
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 移除工具栏按钮的文字标签,只显示图标
- 使用 Tooltip 组件在鼠标悬停时显示功能名称
- 将下载和删除按钮从下拉菜单移到工具栏直接显示
- 工具栏更紧凑,视觉更简洁
2026-02-02 11:07:52 +08:00
Your Name
ed71477f15 fix: 画布图片下载改为直接下载,不再跳转页面
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 使用 fetch 获取图片数据并创建 Blob URL
- 避免跨域图片导致的跳转问题
- 添加下载进度提示和错误处理
2026-02-02 11:01:32 +08:00
Your Name
d7c0e66c3e feat: 画布图片按原始比例 1:1 显示
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 图片使用 object-contain 保持原始比例,不再裁剪
- 添加 getImageDimensions 函数获取图片原始尺寸
- 图片节点大小根据原始尺寸动态设置(最大 500px,最小 150px)
- 图片间距动态调整,避免重叠
2026-02-02 10:57:42 +08:00
Your Name
52867404f7 feat: 画布图片添加到对话框改为手动触发
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 在图片工具栏添加"添加到对话"按钮
- 移除选中图片时自动添加标签的逻辑
- 通过 canvas store 的 pendingChatAttachments 实现跨组件通信
- 用户点击按钮后才会将图片添加到对话框,避免标签越来越多
2026-02-02 10:54:03 +08:00
Your Name
59a81f3c0e feat: 画布图片节点添加图片标注功能
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 17:12:30 +08:00
Your Name
2524ec551b fix: 修复画布图片重复添加和工具栏位置问题
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
1. 首次加载时不将历史消息中的图片添加到画布(避免重复)
2. 检查画布中是否已存在相同 URL 的图片
3. 工具栏位置在渲染时实时计算(跟随画布平移缩放)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 15:35:09 +08:00
Your Name
dbdd188c9e fix: 使用 Portal 渲染工具栏避免被裁剪
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
1. 工具栏使用 createPortal 渲染到 body 级别
2. 根据图片位置动态计算工具栏定位
3. z-index 设为 9999 确保最顶层显示

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 15:29:11 +08:00
Your Name
58b9c1cbd5 fix: 工具栏显示在图片外部上方
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
1. 修改画布容器为 overflow-visible
2. 工具栏定位到图片上方 (-top-12)
3. 提高 z-index 确保不被遮挡

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 15:24:11 +08:00
Your Name
8f1f924421 feat: 优化画布图片选中工具栏
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
1. 选中图片时在顶部显示工具栏(放大、移除背景、场景、角度、扩展、调整)
2. 工具栏使用圆角胶囊样式,类似竞品设计
3. 显示图片标题和尺寸信息
4. 添加更多操作下拉菜单(下载、删除)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 15:21:29 +08:00
Your Name
057014900c feat: 完善画布功能按钮与后端 API 对接
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
1. 修复 CanvasChatPanel 中的图片上传 - 使用 parts 数组而非 attachments
2. 扩展 chat schema 支持更多图片格式(gif, bmp, svg)
3. 实现尺寸调整功能 - 添加对话框选择尺寸
4. 更新 imageGenerationService.resizeImage 使用 canvas API 调整尺寸
5. 所有图片编辑功能已对接:抠图、变清晰、扩展、角度编辑、场景裂变、尺寸调整

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 12:18:16 +08:00
Your Name
59bc3636e1 feat: rename scene fusion to detail replace, add auto-retry up to 10 times
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-01-27 21:47:59 +08:00
Your Name
aa4fbdd158 feat: show processing state for image operations in canvas
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- Add toolbar above selected image for quick access to editing tools
- Create new node with 'generating' status before processing
- Update node status to 'completed' or 'failed' after processing
- Allow overflow visible for toolbar to display outside node bounds
2026-01-24 21:15:28 +08:00
Your Name
14c8679ac6 fix: use button with ref to trigger file upload dialog
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-01-24 21:09:00 +08:00
Your Name
6a2cbb1b49 feat: use image URLs instead of Base64 for canvas image operations
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- Modified ImageNode to upload images to storage bucket before use
- Updated RMBG API to support imageUrl parameter (fetch from URL and convert to Base64 internally)
- Updated Enhance API to support imageUrl parameter
- Updated canvas service layer to use imageUrl for all image processing APIs
- All processed images are saved to storage bucket and user gallery
2026-01-24 20:58:15 +08:00
Your Name
bc7e967aba fix: fix image upload in canvas ImageNode
Added stopPropagation to prevent Rnd click handler from intercepting the file input click event. Added an explicit button for better UX.
2026-01-24 20:53:23 +08:00
Your Name
c7ffcda87b feat: add infinite canvas feature with AI image generation
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- Add canvas project and node database tables
- Create canvas workspace with drag, resize, zoom and pan
- Add ImageNode with background removal, enhance, extend, angle edit, scene fusion
- Add VideoNode with playback controls
- Add TextNode for text editing
- Integrate AI image generation API (Gemini/Alibaba)
- Implement viewport culling for performance optimization
- Add canvas entry in top navigation bar
2026-01-24 19:48:13 +08:00