feat(client): 三端布局架构 + macOS 桌面端 + app 图标

三端布局(mobile/tablet/desktop):
- core/responsive/form_factor.dart 形态判定 + shell/ 分发器(home_shell→desktop/mobile)
- desktop_shell 对照 ui_kits/desktop/dapp.jsx: 侧栏204·6项 + 套餐卡 + 顶栏(标题/状态/主题切换) + 连接页居中单列
- 新增组件 nav_sidebar / plan_badge_card / content_top_bar / bottom_tab_bar
- 新增一级页 contact_page / settings_page; navigation_provider(NavView)
- 删除旧 widgets/home_shell.dart(逻辑迁入 shell/)

macOS 桌面端:
- 窗口默认 920×600 + 最小 720×560(MainFlutterWindow.swift)
- app 图标替换为穿山甲(AppIcon.appiconset 全套, 由 app-icon.svg 渲染)

其余(本会话):
- Phase2 接线: auth_api/token_store/auth_provider/vpn_bridge_provider + 真实 connection/nodes
- lucide_icons 兼容补丁(packages/lucide_icons_patched) 修复 IconData final 报错
- 测试修复: connect_passthrough(UTF-8) / harness / golden @Skip
- l10n 新增 settingsTitle

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-16 09:23:20 +08:00
parent 71a4cddf0b
commit 4dc4127252
92 changed files with 4536 additions and 1187 deletions
+34 -3
View File
@@ -1,10 +1,9 @@
{
"meta": {
"title": "doc — 项目 TODO",
"updated_at": "2026-06-11T16:33:27.008Z"
"updated_at": "2026-06-13T06:32:11.161Z"
"updated_at": "2026-06-16T00:50:13.996Z"
},
"seq": 19,
"seq": 21,
"items": [
{
"id": 1,
@@ -602,6 +601,38 @@
"done": false,
"completed_at": null,
"version": null
},
{
"id": 20,
"title": "修复 macOS keychain entitlement (-34018) 导致登录写 token 失败",
"desc": "flutter_secure_storage 在未签名 macOS app 上 write keychain 抛 PlatformException -34018 'A required entitlement isnot present'。真实登录成功后调 saveTokens 写 keychain 会卡住/抛异常。需给 macos entitlements 加 keychain-access-groups,或 TokenStore.saveTokens 加错误兜底。当前 debug 用 devLogin 内存旁路绕过。栈: token_store.dart:17 / auth_provider.dart:44 / auth_screen.dart",
"level": "mid",
"tier": 2,
"tags": [
"前端",
"mac"
],
"status": "open",
"created_at": "2026-06-15T23:36:58.366Z",
"done": false,
"completed_at": null,
"version": null
},
{
"id": 21,
"title": "客户端三端布局架构(mobile/tablet/desktop) + desktop 对齐设计稿",
"desc": "用 design-distill skill 重做:form_factor 三端判定 + shell/ 三端外壳(desktop_shell 对照 ui_kits/desktop/dapp.jsx:侧栏204·6项+套餐卡+顶栏主题切换+居中单列连接页) + navigation_provider(6视图) + contact_page/settings_page 一级页 + 截图diff验收。根因:MainFlutterWindow nib默认<900走窄屏;现宽屏分支是tablet双栏非desktop单列。plan: ~/.claude/plans/majestic-kindling-boole.md",
"level": "high",
"tier": 1,
"tags": [
"前端",
"mac"
],
"status": "doing",
"created_at": "2026-06-16T00:49:45.404Z",
"done": false,
"completed_at": null,
"version": null
}
]
}