feat(ui): unify visual tokens, container patterns, and CTA hierarchy - #59
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch had an error being deployed
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.
Motivation
home-*/compare-*/result-*的容器、交互和按钮层级标准化以减少视觉碎片化并明确 CTA 优先级。Description
ui/app/globals.css中新增 spacing、radius、surface、border、shadow、typography 等 token 并增加语义类(例如app-page-container、app-panel、app-panel-subtle、app-toolbar、app-interactive、app-chip、app-section-title)。home-hero、home-quick-scenes、home-results-preview改为使用 token 与语义类(例如使用app-panel-subtle、app-chip[data-active]和app-panel)。app-page-container、app-toolbar、app-panel、app-interactive,并在组件内调整卡片与列表样式以使用这些语义类(涉及ui/app/[locale]/compare/page.tsx、ui/app/[locale]/results/page.tsx、ui/components/*等文件)。default,次级动作统一为outline,低优先级动作使用ghost,并在组件中相应调整Buttonvariant 的使用;同时新增docs/component-visual-baseline.md作为视觉对照基线文档。Testing
npm --prefix ui run typecheck成功通过。npm --prefix ui run lint因仓库未提供 ESLint v9 所需的eslint.config.*报错(不是代码类型错误,需补充 ESLint 配置)。Codex Task