Skip to content

Feat/mobile design lab fusion - #3937

Open
Cinnnnnnndy wants to merge 10 commits into
openBitFun:mainfrom
Cinnnnnnndy:feat/mobile-design-lab-fusion
Open

Cinnnnnnndy wants to merge 10 commits into
openBitFun:mainfrom
Cinnnnnnndy:feat/mobile-design-lab-fusion

Conversation

@Cinnnnnnndy

Copy link
Copy Markdown
Contributor

Summary

Fixes #

Type and Areas

Type:

Areas:

Motivation / Impact

Verification

Reviewer Notes

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

Every Mobile* detail preview now renders inside a portrait device frame at
the 390px reading width the kit is authored for, with faux status and
gesture bars. Sheets resolve their overlay portal into the screen, so a
demo sheet slides over the phone instead of the Lab page. Pure Lab-side
change; no kit component was added or modified.

Co-Authored-By: OpenBitFun <openbitfun@openbitfun.ai>

---
Domained-by: OpenBitFun
…nd mobile scene gallery

- Converge motion tokens to 3+1 tiers (fast 160ms, base 240ms, exit 160ms)
- Fix hardcoded durations in VoiceCallPanel, ConversationBlocks, MenuPopover
- Add Reveal system: shared entrance animation preset (rise 8px + fade + scale 0.98)
- Add TokenChip to component detail: name → CSS variable → resolved value
- Unify Listbox/MobileListRow hover/selected colors and focus-visible outline
- Add label/description/appearance props to Switch (align with MobileSwitch)
- Add MobileSceneGallery: 4 typical phone scenes (chat, sessions, settings, pairing)
- Reduce visual intensity: hero one-shot animation, shadow-lg→base, air 2→1.25
- ComponentShowcase.css: 修复 .design-mobile-appearances span 选择器过宽问题,改为只影响标签 span
- MobileButton.module.css: label span 添加 color: inherit 确保继承按钮颜色

修复「样式」行 4 个按钮(主要/次要/无背景表面/危险)文字显示异常的问题
- 创建 ICON_SYSTEM.md 图标系统规范文档
- 所有移动端组件图标尺寸统一使用 design-tokens 变量
- 修复不一致的硬编码尺寸:
  - MobileTabBar: 20px → icon-size-md (16px)
  - MobileButton: 20px → icon-size-md (16px)
  - MobileBanner: 20px → icon-size-md (16px)
  - MobileListRow: 添加 leading/trailing 固定尺寸
  - MobileDisclosure: leading 20px→md, chevron 16px→sm
  - MobileStepper: 18px → icon-size-md (16px)
  - MobileStatus: 28px → icon-size-lg (24px)
  - MobileTag: 16px → icon-size-sm (14px)
  - MobileFileButton: 20px → icon-size-md (16px)
  - MobileSelect: 18px → icon-size-md (16px)
  - MobileTextField: 20px → icon-size-md (16px)
  - MobileTextarea: 20px → icon-size-md (16px)

确保图标视觉重心一致,便于 AI 生成统一风格的界面
- NavPanel.scss: item-icon 容器增加 justify-content: center 和 svg 100% 填充规则
  确保不同 Lucide glyph 在容器内视觉对齐
- ICON_SYSTEM.md: 增加第 5、6 节
  - 第 5 节: Lucide 图标光学尺寸差异分类(偏满/中等/偏小)
  - 第 6 节: 同排图标尺寸跳档规则(禁止跨档/例外条件)
  - 更新检查清单,增加光学对齐相关条目

修复 web-ui 侧边栏图标视觉大小不一致的问题
- 新增 8 个 sidebar 组件严格还原 HarmonyOS 实现 + 新 demo 设计
- 新增 sidebar 场景到 MobileSceneGallery 替换旧 session list 场景
- 拷贝 bitfun-mascot.svg / openbitfun-mark.svg 资源
- 每个组件配 smoke test
- 全量测试通过
- 新增 MobilePatternsPage + #mobile-patterns 路由:场景画廊独立成页
- Handheld 侧栏二级导航由 web 目录(FlowChat 等 23 项)切换为 Mobile 目录 + 组合示例 + 对话预览
- 移动端组件详情页移除场景折叠区,改为跳转典型移动端场景页的按钮
- type-check + 72 项 design-lab 测试全部通过
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