feat(s7.1.1): SettingsView 4 tab + ContentView 顶栏骨架#26
Open
JohnC-stack wants to merge 1 commit into
Open
Conversation
Sprint 7.1 第一轮 · 两个相对独立的文件改造,需 Xcode 编译验证。 ## SettingsView.swift 重构(249 → 452 行) 从 3 tab(外观/数据/认证)重构为 4 tab(按 Sprint 6 UI 设计稿): - 通用 — 合并原"外观"+"数据"+新增"运行环境" section - 供应商 — 原"认证"改名,内容保留(OAuth + Provider list + 添加按钮) - 卡片化展示:每个供应商一张卡,有图标/名字/地址/状态徽章/操作按钮 - 当前激活的加绿色 "✓ 当前使用" badge + 粗边框 - 快捷键 — 新增,只读展示三组:会话/导航/输入(编辑功能 S8 做) - 实验性 ⚗️ — 新增,4 个 feature flag 用 @AppStorage 持久化: - 命令面板模糊搜索(默认开) - AI 长上下文(默认关) - 多模态输入(默认关) - 调试面板(默认关) 左侧导航条(180px)替代原顶部 capsule 风格,更符合 macOS HIG。 ## ContentView.swift 重构(59 → 196 行) 保留 NavigationSplitView + HStack 三栏结构,toolbar 重排: - 左侧(navigation placement): - 项目切换器 · "🚀 默认项目 [A · 绿地 ▾]" · 点击弹占位提示 - 场景导航 · 💼业务/💻开发/🧪测试/🚀运维 · 点击弹占位提示 - 右侧(automatic placement): - 产出物面板开关(保留) - 收藏过滤(保留) - 刷新(保留) - 用户头像菜单 · Menu 组件 · 6 个 item(资料/角色/统计/设置/退出) "敬请期待" alert 统一封装,message 说明哪个 Sprint 实现。 ## 未做(留后续) - SidebarView 右键菜单 · S7.1.2 - ChatView 附件 chip + 工具条 · S7.1.3 - SetupWizardView 加步骤 3-4 · S7.1.3 - ProjectStore / LoginView · S7.3 - 场景工作流 WorkflowView · S7.4 ## 验证 需要 Xcode 编译。如有错误,告诉我具体哪一行,我修。
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.
Sprint 7.1 第一轮 · 两个相对独立的文件。
SettingsView: 3 tab → 4 tab (通用/供应商/快捷键/实验性)
ContentView: toolbar 加项目切换器 + 场景导航 + 用户菜单(占位 · 真实实现 S7.3-7.4)
请在 Xcode 编译,有错告诉我具体行号,我修。