Make Status the first tab under More on the phone and after Lead on Mac
This commit is contained in:
@@ -35,7 +35,7 @@ struct OverlayAlert: Identifiable {
|
||||
}
|
||||
|
||||
enum LeftTab {
|
||||
case lead, notes, workflows, status, server, settings
|
||||
case lead, status, notes, workflows, server, settings
|
||||
}
|
||||
|
||||
@MainActor
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user