docs(claude): sync §5/§7/§10 with Monitor+Profile; fix SeriesBucket SwiftData import
- §5 schema 重写为 7 @Model 完整列表(含 UserProfile + Indicator.seriesKey) - §7 IA 改成 5 槽 TabBar(2 内容 + 中间 + + 2 设置),记录入口 5 个 kind - §10.6 红线例外清单加 Monitor + Profile(Symptom 也补上) - SeriesBucket.swift 缺 import SwiftData(persistentModelID 报错) 全套测试 50 case pass / 0 fail / 0 warning。
This commit is contained in:
@@ -31,6 +31,7 @@ struct RootView: View {
|
||||
@State private var activeFlow: ActiveFlow?
|
||||
@State private var showSymptomStart = false
|
||||
@State private var showDiary = false
|
||||
@State private var showIndicator = false
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 0) {
|
||||
@@ -54,10 +55,11 @@ struct RootView: View {
|
||||
showRecordSheet = false
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
|
||||
switch kind {
|
||||
case .quick: activeFlow = .quick
|
||||
case .archive: activeFlow = .archive
|
||||
case .symptom: showSymptomStart = true
|
||||
case .diary: showDiary = true
|
||||
case .quick: activeFlow = .quick
|
||||
case .archive: activeFlow = .archive
|
||||
case .symptom: showSymptomStart = true
|
||||
case .diary: showDiary = true
|
||||
case .indicator: showIndicator = true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -68,6 +70,9 @@ struct RootView: View {
|
||||
.sheet(isPresented: $showDiary) {
|
||||
DiaryQuickSheet()
|
||||
}
|
||||
.sheet(isPresented: $showIndicator) {
|
||||
IndicatorQuickSheet()
|
||||
}
|
||||
#if os(iOS)
|
||||
.fullScreenCover(item: $activeFlow) { flow in
|
||||
switch flow {
|
||||
|
||||
Reference in New Issue
Block a user