diff --git a/README.md b/README.md index 1020331..8cf8c2f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [](./tools/cli/) []() -> 📍 **最新进展**: Phase 1 已完成(v0.6.0 · 5 Sprint · 整体完成度 98%)。Phase 2 启动 · Sprint 6 ⑥ UI/UX 设计稿首发(10 wireframes + 5 interaction flows)。 +> 📍 **最新进展**: Phase 1 已完成(v0.6.0 · 5 Sprint · 整体完成度 98%)。Phase 2 启动 · Sprint 6 ⑥ UI/UX 设计稿完整首发(**[🎨 11 个 HTML 原型](./docs/design/ui/prototype/)** + 10 wireframes + 5 flows + 映射表)。 > > - 🧰 [统一 CLI · epcode](./tools/cli/) · 10 个子命令,零依赖 `npx epcode --help` > - 🌐 **[文档站 · epcode-ai.github.io/ep-code-ai](https://epcode-ai.github.io/ep-code-ai/)** ✅ 已上线 · 首页以 4 接入模式为一等公民 diff --git a/docs/design/ui/README.md b/docs/design/ui/README.md index 37516cf..387d967 100644 --- a/docs/design/ui/README.md +++ b/docs/design/ui/README.md @@ -6,9 +6,11 @@ > > **观看顺序**: > 1. 本文(原则 + 索引) -> 2. [wireframes/](./wireframes/) — 10 张静态页面线框图(ASCII) -> 3. [interaction-flows/](./interaction-flows/) — 5 个关键交互流程图(Mermaid) -> 4. [cross-platform-constraints.md](./cross-platform-constraints.md) — 三平台一致性约束 +> 2. **🎨 [prototype/](./prototype/) — 可交互 HTML 原型(打开 index.html,点击预览)** ⭐ 推荐先看这个 +> 3. [wireframes/](./wireframes/) — 10 张静态页面线框图(ASCII,含元素说明) +> 4. [interaction-flows/](./interaction-flows/) — 5 个关键交互流程图(Mermaid) +> 5. [cross-platform-constraints.md](./cross-platform-constraints.md) — 三平台一致性约束 +> 6. [prototype/prototype-modules-map.md](./prototype/prototype-modules-map.md) — 原型↔模块↔Swift 文件 映射 --- diff --git a/docs/design/ui/prototype/01-main-three-pane.html b/docs/design/ui/prototype/01-main-three-pane.html new file mode 100644 index 0000000..d2c4539 --- /dev/null +++ b/docs/design/ui/prototype/01-main-three-pane.html @@ -0,0 +1,173 @@ + + +
+ +v20.10.0
+ 满足
+ v10.2.3
+ OK
+ v2.42.0
+ OK
+ —
+ 未安装
+ npm install -g @anthropic-ai/claude-code
+ —
+ 未检测到
+ xcode-select --install
+
+ 你正在切换供应商: Anthropic 官方 → AWS Bedrock
+影响:
+会话「需求评审 - 离职流程」和它的 6 条消息将被删除
+每个空态都要告诉用户"为什么没有 + 下一步做什么"
+fuz/
+ v20.10.0v10.2.3v2.42.0v1.2.3--color-success#00C853--color-warning#FFB300--color-error#D50000--color-text-muted#6B728010 个核心页面的可交互 HTML 原型。点击卡片预览。
++ 📚 配套文档: + 设计稿索引 · + 跨平台约束 · + ASCII 线框 · + 交互流程 · + 原型↔模块↔功能映射 +
+侧边栏会话列表 · 中栏聊天 · 右栏 Artifact
+ + +4 步: Welcome → 环境检查 → 供应商 → 完成
+ + +4 个 tab: General / Provider / Shortcuts / Experimental
+ + +/ 触发 · 模糊搜索 · 参数补齐
+ + +大纲 · 版本对比 · 元数据
+ +新会话切 / 会话内切 + 上下文重塑预警
+ + +会话 / Artifact / 命令 / 消息 · 分组结果
+ + +收藏 · 分组 · 多选 · 导出
+ + +首次 / 无选中 / 新会话 / 搜索无结果 / 断网
+ + +全绿 / 警告 / 错误 · hover 详情
+ ++ 5 个关键交互流程图见 interaction-flows/(在 GitHub / 文档站可直接预览 Mermaid)。 +
+ + + diff --git a/docs/design/ui/prototype/prototype-modules-map.md b/docs/design/ui/prototype/prototype-modules-map.md new file mode 100644 index 0000000..41e3f4b --- /dev/null +++ b/docs/design/ui/prototype/prototype-modules-map.md @@ -0,0 +1,202 @@ +# 原型 ↔ 模块 ↔ 功能 映射 + +> 每张原型图对应哪些**功能模块**,覆盖什么**用户任务**,Sprint 1-5 的哪些**工具**会被用到,以及当前 `app/ClaudeCodeHistory/` 哪些 **Swift 文件**负责实现。 +> +> 这份映射是 Sprint 7 macOS Beta 开发的**权威对照表**。 + +--- + +## 一、全景表 + +| # | 原型 | 核心模块 | 功能范围 | 对应 Swift 文件 | 复用 Sprint 1-5 能力 | +|---|------|---------|---------|---------------|---------------------| +| 01 | [主视图三栏](./01-main-three-pane.html) | 会话列表 + 聊天 + Artifact | 核心工作区 | `ContentView.swift`