Skip to content

fix(ui): 落地页与工作台视觉打磨,修复预览页渐变按钮基线失败 - #221

Merged
Vantalens merged 1 commit into
mainfrom
fix/landing-workbench-visual-polish
Sep 24, 2026
Merged

Vantalens merged 1 commit into
mainfrom
fix/landing-workbench-visual-polish

Conversation

@Vantalens

Copy link
Copy Markdown
Owner

概述

对落地页(#/)与工作台(#/workbench)做一轮视觉与体验打磨,纯展示层改动,不涉及任何转换逻辑;顺带修复 unified-button-test 的既有基线失败。

落地页(landing-view.js / styles/landing.css)

  • Hero 版本标识 v2.3 → v2.4,与 package.json 对齐
  • Hero 垂直节奏收紧,消除首屏下方大片空白,特性卡片上沿进入首屏视野
  • 副标题按语义切分为 nowrap 短语,消除单字"网"孤行
  • 滚动渐入稳健化:.reveal-on-scroll 改为 .reveal-armed 门控——仅当 IntersectionObserver 真正武装后才隐藏待入场元素;JS 未执行、无 observer、打印(@media print 强制可见且跳过过渡)等场景下内容默认可见;prefers-reduced-motion 回退保持原样
  • 特性卡片 / 格式矩阵行 / 工作流步骤增加悬停浮起与阴影反馈;CTA 区增加品牌渐变顶条与细边框;各区块补 scroll-margin-top 改善锚点跳转

工作台(styles.css,未动 app.js 逻辑)

  • 空状态从单行灰字改为居中虚线占位框
  • 「预览 / 结果」tab 激活态加品牌色指示条,补 :focus-visible 焦点框
  • 进度条轨道 4px→6px、填充改品牌渐变,百分比加粗并使用 tabular-nums
  • 面板投影层级拉开(--shadow-soft → --shadow);ghost/mini/menu 按钮补 :active 按压反馈;下拉/输入框补 hover 描边

独立预览页(styles/preview.css)

  • 新增暗色顶栏语境下的主按钮规则,显式使用 var(--btn-gradient-primary)(3 处),含 hover 提亮、投影与焦点框
  • 修复 unified-button-test 基线失败:原失败点为 preview.css 未使用渐变 token

其他

  • package.json 新增 "dev": "node src/web-server.js" 脚本(与 start 一致)

测试

改动后逐条通过:

  • ✅ design-token-test(警告数较基线下降,无新增)
  • ✅ ui-accessibility-test
  • ✅ ui-button-consistency-test(12/12)
  • ✅ unified-button-test(基线失败已修复)
  • ✅ smoke-test(60 组)
  • ✅ browser-smoke-test
  • ✅ ui-conversion-e2e-test
  • ✅ server-hardening-test

已用 Puppeteer(1440×900)截图核验落地页首屏、落地页整页(四个区块全部可见)与工作台渲染,无内容缺失。

…view gradient buttons

Landing:
- bump hero eyebrow v2.3 -> v2.4 to match package version
- tighten hero vertical rhythm; split subtitle into nowrap phrases to
  drop the single-character orphan line
- gate .reveal-on-scroll behind a .reveal-armed class so content stays
  visible when JS/observer/print contexts never trigger intersection
- hover feedback for feature cards, format rows, workflow steps; CTA
  section gets a brand gradient bar

Workbench (styles.css only):
- dashed centered empty states, tab active indicator, focus-visible rings
- gradient progress bar with tabular-nums percentage
- stronger pane elevation, press feedback on ghost/mini/menu buttons

Preview (preview.css):
- explicit brand-gradient primary button rules for dark topbar context
  (fixes unified-button-test baseline failure: token now used 3x)

Chore: add npm run dev script alongside existing start script

Tests: design-token, ui-accessibility, ui-button-consistency (12/12),
unified-button, smoke (60 groups), browser-smoke, ui-conversion-e2e,
server-hardening all pass.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Vantalens
Vantalens merged commit b2266d9 into main Sep 24, 2026
8 checks passed
@Vantalens
Vantalens deleted the fix/landing-workbench-visual-polish branch September 24, 2026 07:06
Vantalens added a commit that referenced this pull request Sep 24, 2026
Resolve conflicts from squash-merged #221 (identical content to this
branch's first commit) and #224 (pdf.js scanned-PDF warning): take the
redesigned UI files; pdf.js and docs come from main unchanged.
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.

1 participant