Trigger folder access prompts in permission checks; add lead welcome

This commit is contained in:
Ian Gulliver
2026-10-22 08:01:59 -07:00
parent e1eeaad925
commit a3d1852f45
13 changed files with 227 additions and 149 deletions
+21 -2
View File
@@ -56,6 +56,7 @@ struct PhoneView: View {
@Environment(Overlays.self) private var overlays
@ViewState private var tab = PhoneTab.lead
@ViewState private var path: [PhoneRoute] = []
@ViewState private var moreRoute = MoreRoute.status
var body: some View {
VStack(spacing: 0) {
@@ -73,7 +74,7 @@ struct PhoneView: View {
}
}
shown(.more) {
MoreScreen()
MoreScreen(route: $moreRoute)
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
@@ -104,6 +105,24 @@ struct PhoneView: View {
.onChange(of: overlays.leadFocus) {
tab = .lead
}
.onChange(of: overlays.tabFocus) {
switch overlays.leftTab {
case .lead, .server:
tab = .lead
case .status:
tab = .more
moreRoute = .status
case .notes:
tab = .more
moreRoute = .notes
case .workflows:
tab = .more
moreRoute = .workflows
case .settings:
tab = .more
moreRoute = .settings
}
}
.onChange(of: tab == .tasks && !path.isEmpty, initial: true) { _, shown in
store.paneFocus.setShown(shown)
}
@@ -368,7 +387,7 @@ private func dismissKeyboard() {
}
private struct MoreScreen: View {
@ViewState private var route = MoreRoute.status
@Binding var route: MoreRoute
var body: some View {
VStack(spacing: 0) {