Feat/batch image group canvas insertion#195
Closed
AiW520 wants to merge 3 commits into
Closed
Conversation
added 3 commits
June 19, 2026 17:10
同一批次提交的图片在画布上自动分组网格排列,不同批次间垂直分隔。通过 batchGroupId 参数传递分组键,仅影响批量出图工具,不影响其他功能。
在'生成选中行'按钮上添加 HoverTip,悬停时显示同批次图片将在画布上自动分组排列的说明
|
Someone is attempting to deploy a commit to the ljquan's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ Deploy Preview for ai-tu ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.

背景
批量出图工具生成的图片插入画布后随机分布,用户无法直观区分不同批次提交的图片。本次改动让同一次提交产出的图片在画布上自动分组网格排列,不同批次之间有明显分隔。
改动内容
1. 传递分组键 (
batch-image-generation.tsx)在
executeSubmit中为每个任务添加batchGroupId参数,值为batch-submit-${globalBatchTimestamp}。同一批次提交的所有任务共享相同的时间戳。2. 识别分组键 (
image-generation-anchor-task.ts)在
getImageGenerationTaskInsertGroupKey中新增batchGroupId判断,优先按批次分组。3. 画布排列
复用已有的
precalculateGroupedGridLayout逻辑:4. 用户提示
在"生成选中行"按钮上添加
HoverTip,悬停时显示分组说明。影响范围
涉及文件
packages/drawnix/src/components/ttd-dialog/batch-image-generation.tsxbatchGroupId;生成按钮添加 HoverTippackages/drawnix/src/utils/image-generation-anchor-task.tsbatchGroupId分组判断docs/BATCH_IMAGE_GROUP_CANVAS_INSERTION_LESSONS.md