Codex
c1c7cb3cc7
fix ecommerce preview and module compatibility
2026-06-15 22:00:00 +08:00
Codex
b67f2e7601
Merge branch 'main' of http://118.145.251.184:3000/OmniAI/omniai-ds-code-package into codex/main-latest-20260615-030000
2026-06-15 21:56:00 +08:00
Codex
f056547160
fix: align hot clone reference upload UI
2026-06-15 19:59:00 +08:00
Codex
de3eb1d06a
merge main and adjust clone mode tabs
2026-06-15 18:25:38 +08:00
stringadmin
f929be30ed
Merge pull request 'feat: 优化记录详情对话面板布局与视觉层次' ( #17 ) from feat/ecommerce-chat-polish into main
...
Reviewed-on: #17
2026-06-15 10:24:35 +00:00
stringadmin
a2875738ce
Merge branch 'main' into feat/ecommerce-chat-polish
2026-06-15 10:24:30 +00:00
ludan
85adcdceef
feat: 优化记录详情对话面板布局与视觉层次
...
本次修改聚焦于电商记录详情页的对话面板体验打磨:
一、对话顺序优化(EcommercePage.tsx):
- 将"新需求"跟进消息从AI回复之前移至AI回复之后
- 调整后的对话时间线:用户历史需求 → AI回复 → 用户新需求,逻辑更符合真实对话流程
二、对话面板视觉升级(ecommerce-standalone.css):
- 对话面板宽度采用CSS变量动态控制(408-440px),视觉更宽敞
- 消息气泡区分明确:
· 用户消息:左侧缩进26-36px,蓝色调渐变背景,青色边框
· AI消息:右侧缩进26-36px,蓝调边框,中性背景
· 跟进消息:独特高亮样式,更强边框(0.24透明度)和投影
- 排版细节打磨:
· 消息标签字号12px/权重820
· 正文13px/行高1.64
· 气泡内间距15px、圆角20px、投影加深
- 元信息标签(emo)精修:28px高度、圆角胶囊样式
- 素材缩略图:46x46px、圆角14px
- 响应式适配:≤900px面板收窄至92vw,≤480px去除消息缩进
变更文件:
- src/features/ecommerce/EcommercePage.tsx (+20/-20)
- src/styles/ecommerce-standalone.css (+121)
2026-06-15 18:23:36 +08:00
Codex
66b761314b
chore: re-trigger push
2026-06-15 16:52:15 +08:00
stringadmin
ab99e3bf2f
Merge pull request 'feat: 完善电商记录详情页,支持触摸手势交互、对话式需求面板与画布节点拖拽' ( #16 ) from feat/ecommerce-record-detail-polish into main
...
Reviewed-on: #16
2026-06-15 08:38:41 +00:00
ludan
e3b48e2614
feat: 完善电商记录详情页,支持触摸手势交互、对话式需求面板与画布节点拖拽
...
本次修改全面打磨电商图片工作台的记录详情体验,主要包含以下变更:
一、记录详情对话面板(EcommercePage.tsx):
- 将记录详情中的"需求"区域重构为聊天对话式布局:
· 历史需求消息:展示原始需求文本、参数元信息(平台/语种/比例/设置)、已上传素材缩略图
· 新增跟进需求消息(is-followup):若当前素材与历史记录不同,自动展示新上传素材及当前参数配置
· AI 回复消息保持原有状态展示
- 记录详情中素材上传数量上限从 7 张提升至 20 张(maxCloneProductImages)
- 上传按钮重构:移至素材列表左侧,显示当前数量/上限,满额时禁用并提示"已满"
二、触摸与手势交互:
- 新增 PreviewTouchGesture 完整手势系统:
· 单指平移(pan):支持触摸拖拽预览画布
· 双指缩放(pinch):以双指中心为锚点进行缩放,范围 0.25x-2x
· 自动排除交互元素(按钮/输入框/链接等)避免冲突
· 智能切换:单指/双指模式无缝切换
- 画布节点触摸拖拽(canvas node drag):
· 支持触摸拖拽移动生成结果节点
· 考虑当前缩放级别计算位移
· 与预览画布手势互不干扰
三、记录详情页视觉升级(ecommerce-standalone.css):
- 整体背景采用径向渐变+线性渐变,营造专业 SaaS 质感
- 对话面板与历史面板统一采用毛玻璃卡片风格
- 聊天消息气泡:圆角 18px、柔和投影、用户消息左侧缩进 18px
- 历史面板宽度固定 292px
- CSS 自定义属性体系(record-detail-*)统一管理颜色和阴影
- 面板头部加高加粗标题,优化可读性
四、其他细节优化:
- 历史刷新按钮图标从文本符号改为 ReloadOutlined 组件
- 素材缩略图移除 hover 放大镜效果(.ecom-command-asset-zoom)
- 刷新按钮禁用样式完善
变更文件:
- src/features/ecommerce/EcommercePage.tsx (+246/-11)
- src/styles/ecommerce-standalone.css (+1369)
2026-06-15 16:20:55 +08:00
Codex
9a9c7eb86d
feat: optimize ecommerce hot clone UI
2026-06-15 15:26:49 +08:00
stringadmin
5b316a2399
Merge pull request 'feat: add generation record detail workspace with AI conversation panel and canvas reset' ( #14 ) from feat/ecommerce-record-detail-conversation-panel into main
...
Reviewed-on: #14
2026-06-15 05:41:17 +00:00
stringadmin
3f1954b38d
Merge branch 'main' into feat/ecommerce-record-detail-conversation-panel
2026-06-15 05:41:12 +00:00
ludan
96d335db8a
feat: add generation record detail workspace with AI conversation panel and canvas reset
...
- EcommercePage.tsx: Add isCloneConversationCollapsed state for toggling conversation sidebar; introduce isMainCloneWorkspace / isRecordDetailWorkspace derived flags to scope record-detail features to main clone tool only; compute currentResultCount, activeHistoryRecord, and currentResultThumbs for display; add canvas reset button (zoom=1, offset=0) in preview toolbar when viewing a history record; build AI conversation panel (clone-ai-conversation-panel) as left sidebar with:
- Header showing record title, model/platform/language metadata, and collapse button
- User message bubble with requirement text and uploaded asset thumbnails (up to 4 + overflow count)
- Assistant message bubble with status-aware response text (done/generating/failed/idle), EcommerceProgressBar during generation, and clickable result thumbnails that open product set preview
- Collapse/expand toggle button with MenuFoldOutlined / MenuUnfoldOutlined icons
- ecommerce-standalone.css (+1204 lines): Define record detail workspace layout (CSS grid: 352px chat column + fluid canvas); grid-pattern background with radial gradient accent; conversation panel styling with chat bubble cards, asset thumbnail grids, result thumbnail buttons, scrollable body; collapsed state (grid-template-columns: 0 1fr); toggle button positioning; responsive breakpoints for tablets and mobile with adjusted chat width and stacked layout
2026-06-15 13:40:14 +08:00
stringadmin
307537a7ce
fix(ecommerce): 补全 clone-ai-node-label 在 result-stack 顶部的定位样式
2026-06-15 11:33:04 +08:00
Codex
48262d6233
chore: 新增 .gitattributes 统一换行符为 LF
2026-06-15 10:52:03 +08:00
Codex
062c8b3445
feat: 临时下线智能抠图与图片翻译入口
2026-06-15 10:42:33 +08:00
stringadmin
0b2d6b901f
feat: 电商工作台进度与生成记录健壮性优化
2026-06-15 10:24:31 +08:00
stringadmin
e1fdbe5f9b
Merge remote-tracking branch 'origin/codex/ecommerce-hot-video-responsive' into main-merge-work
2026-06-13 19:41:10 +08:00
stringadmin
f51dfb17e1
Merge remote-tracking branch 'origin/fix/compact-composer-whitespace' into main-merge-work
...
# Conflicts:
# src/features/ecommerce/EcommercePage.tsx
# src/styles/ecommerce-standalone.css
2026-06-13 19:41:04 +08:00
stringadmin
76ae9ab0ac
Merge pull request 'feat: 重构电商指令栏布局,模式标签外置、精简结果标签、优化生成记录交互' ( #13 ) from feat/ecommerce-composer-redesign into main
...
Reviewed-on: #13
2026-06-13 11:29:36 +00:00
stringadmin
98db427ac5
Merge remote-tracking branch 'origin/main' into feat/ecommerce-composer-redesign
...
# Conflicts:
# src/features/ecommerce/EcommercePage.tsx
2026-06-13 19:28:51 +08:00
stringadmin
573cbacbd3
Merge pull request 'Codex/fix project review bugs' ( #12 ) from codex/fix-project-review-bugs into main
...
Reviewed-on: #12
2026-06-13 11:11:03 +00:00
stringadmin
38b513aebf
Merge branch 'main' into codex/fix-project-review-bugs
2026-06-13 11:10:57 +00:00
stringadmin
4d5f487a80
fix: adjust ecommerce source thumbnail label
2026-06-12 19:32:20 +08:00
ludan
4f6e32fb10
feat: 重构电商指令栏布局,模式标签外置、精简结果标签、优化生成记录交互
...
本次修改对电商图片工作台的指令栏(composer)进行了全面重构,主要包含以下变更:
一、指令栏布局重构(EcommercePage.tsx):
- 新增生成模式标签页(ecom-command-mode-tabs),5种模式(套图/详情图/模特图/视频/爆款图)以标签形式外置于输入区上方,每种模式配有独立图标和配色
- 设置行(平台/语种/比例/设置)移入输入区内部,采用圆角胶囊按钮排列
- 上传按钮从输入区移到底部工具栏,改为"上传素材"紧凑样式
- 精简生成结果画布:移除所有文字标签(套图/详情图/模特图/爆款图 标签、原图素材标签、结果卡片标签),让图片成为绝对视觉焦点
- 灵感行"AI团队"更名为"作品记录",更新描述文案为"沉淀最近生成的高转化素材,随时回看与复用"
二、样式系统升级(ecommerce-standalone.css):
- 新增模式标签页完整样式:5列等宽网格、磨砂玻璃背板、各模式独立主题色
· 套图 set:翠绿 #0f8f72
· 详情图 detail:紫色 #7a5af8
· 模特图 model:蓝色 #1073cc
· 视频 video:暖橙 #cc6b14
· 爆款图 hot:玫红 #c04468
- hover/active 状态带径向光晕和上浮微动效(translateY(-1px))
- 隐藏生成结果中的所有文字标签(display:none),减少视觉噪音
- 修复历史记录删除按钮定位:改为绝对居中定位,不受网格布局影响
- 输入区改为单列布局,增大最小高度(214-286px),增加内边距
变更文件:
- src/features/ecommerce/EcommercePage.tsx (+87/-51)
- src/styles/ecommerce-standalone.css (+456)
2026-06-12 18:41:31 +08:00
stringadmin
1f97167023
fix: polish ecommerce generation states
2026-06-12 18:15:58 +08:00
stringadmin
9ae5e1f493
Merge pull request 'Codex/fix project review bugs' ( #11 ) from codex/fix-project-review-bugs into main
...
Reviewed-on: #11
2026-06-12 09:29:49 +00:00
stringadmin
ad4bca31b1
fix: address project review bugs
2026-06-12 17:25:30 +08:00
stringadmin
f9e55578b3
Merge remote-tracking branch 'origin/main' into fix/ecommerce-ui-polish
...
# Conflicts:
# src/features/ecommerce/EcommercePage.tsx
2026-06-12 16:04:09 +08:00
stringadmin
7fdaa38504
feat: 电商快捷工具接入真实API并增强预览交互
...
- 图片修改接入局部重绘API,改为左右对比布局
- 去水印接入真实API,带进度条
- A+详情页预览区增加生成中/失败状态与进度条
- 新增图片翻译页面(含语言选择器)
- 快捷功能栏改为一行五列均分布局,移除白框
- 预览弹窗与A+详情页结果增加保存本地按钮
2026-06-12 16:00:43 +08:00
stringadmin
6378ce7546
Merge pull request 'feat: 优化电商图片工作台快捷操作区与灵感货架视觉体验' ( #10 ) from feat/ecommerce-imageworkbench-polish into main
...
Reviewed-on: #10
2026-06-12 07:57:53 +00:00
ludan
3cfcfe70d4
feat: 优化电商图片工作台快捷操作区与灵感货架视觉体验
...
本次修改聚焦于电商图片工作台(imageWorkbench)的视觉打磨,主要包含以下优化:
一、快捷操作区(quick action board)全面升级:
- 拓宽快捷操作面板宽度至 920px,增加内边距和间距,提升呼吸感
- 面板背景采用多层渐变叠加,模拟磨砂玻璃质感(glassmorphism)
- 按钮最小高度提升至 56px,引入分类专属色彩体系:
· detail(精细优化):紫调 #7a5af8
· edit(智能编辑):暖橙 #cc6b14
· cutout(智能抠图):蓝色 #1073cc
· watermark(水印去除):玫红 #c04468
- 每个按钮图标区采用 30px 圆角方块,带渐变背景和投影
- hover/focus 状态加入径向光晕效果(radial gradient),增强交互反馈
二、灵感实验室(inspiration lab)布局优化:
- 整体容器宽度改为自适应(2360px 上限),取消固定最大宽度限制
- 灵感行采用 grid 两栏布局(元信息 + 卡片带),列宽比例约 1:5
- 各行卡片宽度按类型差异化:
· AI团队行:420-620px(较宽,展示文字信息)
· 电商套图行:300-420px(适中)
· 商品视频行:360-540px(偏宽)
- 行背景采用半透明渐变,边框颜色统一为品牌蓝调
三、紧凑型指令栏(compact composer)居中定位:
- 当历史面板折叠(is-history-collapsed)时,指令栏水平居中于可视画布
- 移动端适配:small 文本域尺寸、按钮和缩略图缩放
四、响应式适配:
- ≤900px:灵感行切换为单列布局,卡片统一宽度
- ≤640px:快捷面板改为 2 列网格,指令栏进一步紧凑
变更文件:
- src/styles/ecommerce-standalone.css (+382)
2026-06-12 15:56:33 +08:00
stringadmin
9fbf464dbd
Merge pull request 'feat: add download/remove actions in product set preview and history detail compact composer' ( #9 ) from feat/ecommerce-preview-actions-history-detail into main
...
Reviewed-on: #9
2026-06-12 06:23:22 +00:00
ludan
e1a2e55792
feat: add download/remove actions in product set preview and history detail compact composer
...
- EcommercePage.tsx: Add DownloadOutlined icon and downloadResultAsset import; introduce ProductSetPreviewSelection interface (extends preview with nodeId/cardId/removable); enhance openProductSetPreview to accept nodeId and removable options; implement handleDownloadCanvasResult (triggers image download via downloadResultAsset), removeCanvasResult (filters canvas nodes and results by cardId), and removeSelectedProductSetPreview (removes card then closes preview); remove legacy canvas centering requestAnimationFrame block; add is-history-detail CSS class when viewing a history record; wire download/remove action buttons in product set preview modal footer; update canvas node result buttons to pass nodeId and removable options
- ecommerce-standalone.css (+382 lines):
- Product set preview modal: enhanced layered shadows and frosted border; footer flex layout with label truncation; pill-shaped action buttons with gradient backgrounds, hover lift and glow transitions; danger variant for remove action in red tones; mobile ≤640px column layout with stretched full-width buttons
- History detail mode (.is-history-detail): compact floating composer pill bar — fixed centered at workspace top with backdrop blur, pill-shaped container (border-radius 999px), single-line textarea, inline asset thumbnails, circular gradient send button, hidden option row; canvas nodes centered layout with max-width constraint; history item delete button repositioned absolute right with hover red state; responsive adjustments at ≤900px for full-width workspace
2026-06-12 14:21:25 +08:00
stringadmin
e88edbe165
fix: 优化 compact 对话框、画布节点标签、删图重置及比例弹窗
...
- compact 模式尺寸调整,生成按钮不再溢出框外
- 生成时自动进入 compact 状态,idle 时恢复
- 删除所有样图后重置为新对话状态(清除画布、恢复标题)
- 去掉 drag handle 模式标签,原图右上角统一高级黑 tag
- 作品图不再显示重复标识
- 比例弹窗宽度自适应内容,添加 hover/active 交互样式
- 套图模式默认三种各一张
- 设置弹窗点击外部可关闭
- 历史记录删除按钮样式优化
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-06-12 12:37:32 +08:00
stringadmin
863f1f075e
fix: 修复 compact 模式下对话框底部大量空白
...
高特异性 min-height 规则覆盖了 compact 模式的 max-height: 126px,
导致 .ecom-command-composer 在缩小状态下仍保持 218px+ 的最小高度。
在文件末尾添加更高特异性的 is-compact 覆盖,强制 min-height: 118px。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-06-12 11:33:13 +08:00
stringadmin
8a718d65f7
Merge pull request 'refactor: 清理未使用参数、移除死代码、聚焦电商核心模块' ( #8 ) from refactor/cleanup-unused-params-and-dead-code into main
...
Reviewed-on: #8
2026-06-12 03:16:50 +00:00
stringadmin
6d93c2b9b8
refactor: 清理未使用参数、移除死代码、聚焦电商核心模块
...
主要变更概述:
================
1. 清理未使用的函数参数 (TypeScript noUnusedParameters)
------------------------------------------------------
- AppShell.tsx: 移除未使用的 backendHealth prop 及 ServerConnectionHealth 导入
- canvasUtils.ts: 移除 resolveWorkflowVideoModel 的 workflowModel 参数
- canvasWorkflowDeserialize.ts: 同步更新调用方
- CanvasPage.tsx: 移除 resolveWorkflowVideoModel 未使用导入
- HomePage.tsx: 移除 onOpenTokenMonitor、onOpenImageTool 未使用 props
- ToolboxSection.tsx: 移除 onOpenImageTool 未使用 prop 及 WebImageWorkbenchTool 类型导入
- ScriptTokensPage.tsx: 移除 formatReportMarkdown 的 script 参数,更新 2 处调用
- TokenUsagePage.tsx: 移除 onOpenImageTool、onSelectView 未使用 props
- WorkbenchPage.tsx: 移除 renderComposerToolbar 的 showStop 参数,更新 2 处调用
2. 移除未使用的模块和死代码
--------------------------
删除以下未在电商模块中使用的功能模块:
- 画布模块 (canvas/): CanvasPage, canvasUtils, canvasWorkflow* 等
- 主页模块 (home/): HomePage, ToolboxSection, WelcomeSplash 等
- 工作台模块 (workbench/): WorkbenchPage, ConversationSidebar 等
- 社区模块 (community/, community-review/)
- 数字人模块 (digital-human/)
- 图片工作台 (image-workbench/)
- 其他独立工具页: agent, assets, beta-applications, character-mix,
compliance, dialog-generator, more, profile, provider-health,
report, resolution-upscale, script-tokens, settings, size-template,
subtitle-removal, watermark-removal
3. 移除未使用的公共组件
----------------------
- AnimatedPanel, BeforeAfterCompare, BetaApplicationModal
- CookieConsentBanner, DropZone, EmptyState, NotFoundPage
- NotificationCenter, OnboardingTour, OptimizedImage
- PageTransition, RechargeModal, ShellIcon, Skeleton
- StudioToolLayout, TaskStatusBar, WorkspacePageShell
4. 移除未使用的 API 客户端
--------------------------
- betaApplicationClient, communityClient, conversationClient
- draftClient, modelCapabilitiesClient, notificationClient
- projectTaskClient, providerHealthClient, publicConfigClient
- referenceUploadService, reportClient, scriptEvalClient
- uploadWithProgress
5. 移除未使用的工具函数和 hooks
-------------------------------
- utils/: imageModelVisibility, mentionTrigger, modelOptions,
ossImageOptimize, toolPageUtils
- hooks/: useGenerationStatus, useScrollEntrance
- scripts/: 所有分析脚本 (check-governance, dynamic-analysis 等)
6. 移除未使用的样式文件
----------------------
删除与已移除模块对应的 CSS 文件,保留电商模块专用样式
7. 新增电商模块功能文件
----------------------
+ src/api/generationRecordClient.ts (生成记录客户端)
+ src/features/ecommerce/ecommerceGenerationPersistence.ts (生成持久化)
验证:
- TypeScript 编译 (tsc --noEmit --noUnusedParameters) 零错误通过
- 所有保留文件的功能完整性未受影响
2026-06-12 11:12:55 +08:00
Codex
aa133d0f5c
style: refine ecommerce quick tool pages
2026-06-12 00:08:59 +08:00
stringadmin
52e704375c
Merge pull request 'Codex/ecommerce hot video responsive' ( #7 ) from codex/ecommerce-hot-video-responsive into main
...
Reviewed-on: #7
2026-06-11 16:06:37 +00:00
Codex
9fb042f950
feat: enable remote image url import
2026-06-12 00:04:07 +08:00
Codex
9ff3a6880b
fix: align hot video preview header
2026-06-11 23:56:27 +08:00
Codex
13a7c3ba5a
fix: restore ecommerce page transitions
2026-06-11 23:40:26 +08:00
Codex
70a4bbed29
fix: hot video page restructure + responsive layout for all quick pages
2026-06-11 23:29:16 +08:00
Codex
5ddfd37f4d
Polish ecommerce tool page layouts
2026-06-11 23:10:23 +08:00
stringadmin
2fdb82d499
Merge pull request 'feat: enhance ecommerce UI — sidebar, transitions, ratio options, cancel buttons, i18n fixes' ( #6 ) from codex/ecommerce-ui-current into main
...
Reviewed-on: #6
2026-06-11 15:05:46 +00:00
stringadmin
51ecefced4
Merge branch 'main' into codex/ecommerce-ui-current
2026-06-11 15:05:40 +00:00
Codex
9b9a276014
feat: enhance ecommerce UI — sidebar, transitions, ratio options, cancel buttons, i18n fixes
2026-06-11 20:38:35 +08:00
stringadmin
f6c7a63e1d
Merge pull request 'feat: 新增电商灵感实验室模块,包含AI团队/电商套图/商品视频分类卡片' ( #5 ) from feat/ecommerce-inspiration-lab into main
...
Reviewed-on: #5
2026-06-11 10:24:28 +00:00