fix(sprint-6): 原型中文化 + Markdown 渲染 + 4 种接入模式 GUI 入口#21
Merged
Conversation
## 用户反馈的 5 个具体问题
1. ✅ 所有 "Artifacts" → "产出物"(全部原型 + HTML 注释)
2. ✅ 设置页 tab (已是中文,顺便把 HTML 注释也中文化)
3. ✅ 05 Artifact 全屏:默认是渲染后的 Markdown(标题/列表/表格/badge)
- 新增"预览 / 源码"切换按钮
- 预览:真正 h1/h2/h3 + 表格 + ul/ol + 元数据 chip
- 源码:带行号的原始 Markdown
4. ✅ 06 供应商切换 esc 布局:左对齐 "esc 取消" + 右对齐 "取消/切换" 按钮组
5. ✅ 按真实操作流程设计 → 补齐 4 种接入模式的 GUI 入口
## 新增:4 种接入模式的完整用户旅程
之前严重缺失:A 绿地 / B 开发中 / C 迭代中 / D 稳态运维 这 4 种
接入模式只在 CLI 里存在,GUI 里完全没体现。
### 新增 2 个原型页
- **16 · 项目列表** docs/design/ui/prototype/16-project-list.html
- 登录后默认进入
- 7 个示例项目卡片,每个带模式徽章(A 绿/B 橙/C 蓝/D 紫)
- 筛选: 全部/A/B/C/D 五选一
- 排序: 最近访问
- 显示: 会话数/产出物数/成员数/预警/当前阶段
- "+新建项目" 按钮 → 跳原型 17
- **17 · 新建项目向导** docs/design/ui/prototype/17-new-project.html
- 4 步:
- 1. 选接入模式(4 张大卡片,含判定条件 + 适合场景 + 链接到 docs/chapters/00-adoption)
- 2. 基本信息(项目名/显示名/本地目录/Git 远程)
- 3. 起步清单预览(根据所选模式动态生成目录树 + Checklist)
- 4. 初始化完成(→ 进入项目)
- 底层调用 `epcode init --mode=X --name=Y --dir=Z`
### 顶栏加项目切换器
- 01 主视图:"🚀 EP Code AI / [离职流程优化 · A·绿地 ▾]" · 点击回项目列表
- 12-15 四个场景工作流:顶栏 "项目名 + 模式徽章 ▾" · 用户始终知道在哪个项目
### 登录跳转改为项目列表
11-login.html "登录" 按钮现跳 16 而非 01
## 样式扩展
styles.css 加 ~180 行:
- .mode-badge(4 模式配色: 绿/橙/蓝/紫)
- .project-card + .project-grid + .filter-chip
- .mode-card-select(新建向导里的大卡片)
- .project-switcher(顶栏切换器)
- 优化 .pg-footer 为左右结构
## 文档同步
- wireframes/16-17-projects-and-new-project.md 含:
- 完整用户旅程 Mermaid 图
- 模式 → 工作流可见性规则表(比如 D 模式隐藏业务场景)
- Sprint 7 实现影响 (Swift 文件清单)
- prototype-modules-map.md 加 16/17 两行
- README.md 主 banner 更新: 17 个原型,强调完整旅程
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.
用户反馈 5 项全部修复 + 补 4 种接入模式的完整入口(16 项目列表 + 17 新建项目向导)。