Make Status the first tab under More on the phone and after Lead on Mac

This commit is contained in:
Ian Gulliver
2026-10-22 07:09:31 -07:00
parent cbbfe43b94
commit 7997be6373
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ struct OverlayAlert: Identifiable {
}
enum LeftTab {
case lead, notes, workflows, status, server, settings
case lead, status, notes, workflows, server, settings
}
@MainActor
+3 -3
View File
@@ -113,15 +113,15 @@ private struct LeftPane: View {
PaneTabButton(label: "Lead", active: tab == .lead) {
pick(.lead)
}
PaneTabButton(label: "Status", active: tab == .status) {
pick(.status)
}
PaneTabButton(label: "Notes", active: tab == .notes) {
pick(.notes)
}
PaneTabButton(label: "Workflows", active: tab == .workflows) {
pick(.workflows)
}
PaneTabButton(label: "Status", active: tab == .status) {
pick(.status)
}
PaneTabButton(label: "Server", active: tab == .server) {
pick(.server)
}
+4 -4
View File
@@ -41,13 +41,13 @@ private func taskTab(_ store: Store) -> TaskTab {
}
private enum MoreRoute: Hashable {
case notes, workflows, status, settings
case status, notes, workflows, settings
}
private let moreTitles: [MoreRoute: String] = [
.status: "Status",
.notes: "Notes",
.workflows: "Workflows",
.status: "Status",
.settings: "Settings",
]
@@ -368,12 +368,12 @@ private func dismissKeyboard() {
}
private struct MoreScreen: View {
@ViewState private var route = MoreRoute.notes
@ViewState private var route = MoreRoute.status
var body: some View {
VStack(spacing: 0) {
HStack(spacing: 4) {
ForEach([MoreRoute.notes, .workflows, .status, .settings], id: \.self) { r in
ForEach([MoreRoute.status, .notes, .workflows, .settings], id: \.self) { r in
PaneTabButton(label: moreTitles[r]!, active: route == r) {
route = r
dismissKeyboard()