Commit Graph

32 Commits

Author SHA1 Message Date
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 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
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
ludan b81f4b91c2 feat: 新增电商灵感实验室模块,包含AI团队/电商套图/商品视频分类卡片
新增功能:
- 新增电商灵感案例区域(ecom-inspiration-lab),含6个分类标签页(最近打开/一键同款/海报模板/热门/商品图/模特穿戴)
- 新增三个灵感分类行:
  · AI团队:指定ASIN优化listing、TikTok美区爆品分析、竞品分析+全套listing、世界杯属性快闪视频
  · 电商套图:科技礼盒主图、美妆节日套图、防晒产品场景、露营家具详情、香氛A+页面、童装listing组合
  · 商品视频:口播种草短片、香水质感视频、玩具互动短视频、器皿产品展示、饰品模特试戴、包袋生活方式
- 每行卡片支持横向滚动,配备左右箭头按钮控制浏览
- 仅在非完成(status !== 'done')状态下展示灵感区域

样式更新:
- ecommerce-standalone.css 新增灵感实验室全套样式,包括标签页导航、分类行元信息、卡片网格布局、横向滚动条、滚动按钮等组件的视觉设计
- 适配暗色主题变量体系,保持与现有设计系统一致

变更文件:
- src/features/ecommerce/EcommercePage.tsx (+92/-2)
- src/styles/ecommerce-standalone.css (+1136)
2026-06-11 18:22:50 +08:00
stringadmin 0d9e69b7de Merge pull request 'feat: refine ecommerce standalone typography, layout grid, gradient title, and unified theme typography system' (#4) from feat/ui-enhancements into main
Reviewed-on: #4
2026-06-11 07:18:14 +00:00
stringadmin 0d71ab963f Merge branch 'main' into feat/ui-enhancements 2026-06-11 07:18:04 +00:00
ludan a09513029c feat: refine ecommerce standalone typography, layout grid, gradient title, and unified theme typography system
- ecommerce-standalone.css: Title max-width expanded to 520px with gradient text effect (background-clip:text + linear-gradient), adjusted clamp font-size and line-height, added text-shadow glow; command option row switched from flex-wrap to CSS grid (6×44px) with centered layout for consistent icon button alignment; refined button sizing/spacing across composer toolbar
- ecommerce.css: Added high-specificity overrides for image workbench entry page — title min-height and heavy font-weight (860), rounded option buttons (15px border-radius), inline reference text with ellipsis overflow; responsive breakpoints at 760px and 540px with gradient title, compact row layout, adapted font scaling for narrow viewports (+631 lines)
- dark-green.css: Introduced comprehensive typography normalization using html body #root specificity — font-family/letter-spacing reset across all elements; semantic mapping for body text (p/em/li/td), strong/b, code blocks (font-mono), icon sets (anticon/shell-icon), interactive controls (button/label/tab/chip/badge/tag/pill), headings (h1-h6 with size variants), decorative text (subtitle/desc/hint/meta/caption/empty), and numeric values (score/number/count/value/amount/price); mobile responsive headline scaling at ≤767px; all rules preserve SVG/path/use elements from font override (+177 lines)
2026-06-11 15:16:46 +08:00
stringadmin b76e250ecb Merge pull request 'feat: add ecommerce image editing tools' (#3) from codex/ecommerce-ui-current into main
Reviewed-on: #3
2026-06-11 06:30:53 +00:00
Codex 31c0e79e2e merge: resolve conflicts with main branch 2026-06-11 14:04:03 +08:00
Codex 4caa915922 feat: add hot video page and enhance smart cutout editor
- Add 爆款视频 (hot video) page with platform, ratio, quality, duration settings
- Add AI video planning workspace integration
- Update smart cutout size options with precise output dimensions (295*413, 800*800, etc.)
- Add compare (对比) feature for before/after cutout preview
- Enhance smart cutout tool UI with size labels and improved layout
- Add hot video page styles and smart cutout editor refinements
2026-06-11 13:56:29 +08:00
stringadmin a10222d9d1 Merge pull request 'feat: enhance ecommerce UI with typewriter animation, icon buttons, responsive layout, and refined design tokens' (#2) from feat/ui-enhancements into main
Reviewed-on: #2
2026-06-11 03:32:16 +00:00
ludan bbea5d1e58 feat: enhance ecommerce UI with typewriter animation, icon buttons, responsive layout, and refined design tokens
- EcommercePage.tsx: Add typewriter animation (useTypewriter hook) for slogan text with blinking cursor; replace text-based add/delete buttons with Ant Design icons (CloudUploadOutlined, DeleteOutlined); make command history panel responsive to window width (auto-collapse ≤1180px); update button labels from generic "添加" to context-specific "上传商品图" / "上传素材"
- New useTypewriter.ts hook: Character-by-character typewriter animation with configurable speed and pause-before-loop, auto-resets on text change
- reset.css: Add comprehensive HTML/body typography baseline (font-size, text-rendering, font-smoothing, line-height); extend reset coverage to select/canvas/svg elements; add overflow-wrap:anywhere for text-bearing elements; add min-width:0 to prevent form element overflow
- primitives.css: Add reusable typography utility classes (ui-page-title, ui-section-title, ui-body-copy) with design token references
- tokens.css: Expand design token set for typography scales, font weights, and leading values
- ecommerce-standalone.css: Add 689 lines of standalone ecommerce page styles
- Page CSS (ecommerce, image-workbench, more-tools, more, script-tokens, script-tokens-v5, studio-layout): Enhanced visual styles and layout refinements across all pages
- app-shell.css: Shell-level layout and styling improvements
2026-06-11 11:31:39 +08:00
Codex 5ba9464646 feat: add ecommerce image editing tools 2026-06-11 00:07:24 +08:00
stringadmin c367198385 Merge pull request 'Codex/ecommerce ui current' (#1) from codex/ecommerce-ui-current into main
Reviewed-on: #1
2026-06-10 09:57:54 +00:00
Codex 7636333978 feat: refine ecommerce smart cutout editor 2026-06-10 17:52:01 +08:00
Codex 89eeb68aee Fix ecommerce UI Chinese display 2026-06-10 15:28:41 +08:00
stringadmin 3d98933e24 Initial ecommerce standalone package 2026-06-10 14:06:16 +08:00