Remove in-list spinner + add monitored-repos setting; bump to 2.3
Build iOS App / Build .ipa and publish source (push) Successful in 22s
Build iOS App / Build .ipa and publish source (push) Successful in 22s
- Remove the in-list loading wheel overlay; the landing page just shows the cached list or the 'No open PRs' screen. - Add a 'Monitored repos' setting (Settings > Inbox) that limits the inbox to specific repos, cutting the number of API calls dramatically. Empty = monitor all accessible repos. Bump to 2.3.
This commit is contained in:
1 parent
75f5f3bc64
commit
880cff9e68
6 files changed
+120
-17
No files matched your search
@@ -6,6 +6,7 @@ struct SettingsView: View {
|
||||
@State private var token: String
|
||||
@State private var mergeGateMode: MergeGateMode
|
||||
@State private var deleteBranchAfterMerge: Bool
|
||||
@State private var monitoredRepos: [String]
|
||||
@State private var testResult: TestResult?
|
||||
@State private var testing = false
|
||||
@State private var showLogoutConfirm = false
|
||||
@@ -20,6 +21,7 @@ struct SettingsView: View {
|
||||
_token = State(initialValue: SettingsStore.shared.token)
|
||||
_mergeGateMode = State(initialValue: SettingsStore.shared.mergeGateMode)
|
||||
_deleteBranchAfterMerge = State(initialValue: SettingsStore.shared.deleteBranchAfterMerge)
|
||||
_monitoredRepos = State(initialValue: SettingsStore.shared.monitoredRepos)
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@@ -54,6 +56,16 @@ struct SettingsView: View {
|
||||
Toggle("Delete branch after merge", isOn: $deleteBranchAfterMerge)
|
||||
}
|
||||
|
||||
Section {
|
||||
NavigationLink("Monitored repos") {
|
||||
MonitoredReposView(selection: $monitoredRepos)
|
||||
}
|
||||
} header: {
|
||||
Text("Inbox")
|
||||
} footer: {
|
||||
Text("Limit the landing page to specific repos to speed it up. Leave empty to monitor all accessible repos.")
|
||||
}
|
||||
|
||||
Section("Diagnostics") {
|
||||
NavigationLink("View logs") {
|
||||
LogsView()
|
||||
@@ -134,6 +146,7 @@ struct SettingsView: View {
|
||||
SettingsStore.shared.token = token
|
||||
SettingsStore.shared.mergeGateMode = mergeGateMode
|
||||
SettingsStore.shared.deleteBranchAfterMerge = deleteBranchAfterMerge
|
||||
SettingsStore.shared.monitoredRepos = monitoredRepos
|
||||
dismiss()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user