summaryrefslogtreecommitdiff
path: root/Hutch/App/RootView.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-07 03:16:14 -0500
committerGitHub <[email protected]>2026-08-07 03:16:14 -0500
commit6c26cf048119bf4ff6af039991d3e34d76bac2ad (patch)
tree22c3280dca5f85923ddc3cc85bff8751ad46b7fe /Hutch/App/RootView.swift
parent044c33f7f43db1f38d6c44dd8f483298d9efcc06 (diff)
parent9c11d69002d71556fea1e2a938e02d4f4d503ea5 (diff)
downloadhutch-6c26cf048119bf4ff6af039991d3e34d76bac2ad.tar.gz
hutch-6c26cf048119bf4ff6af039991d3e34d76bac2ad.tar.bz2
hutch-6c26cf048119bf4ff6af039991d3e34d76bac2ad.zip
Merge pull request #31 from krazywarez/app-intents-expansion
Expand App Intents: dialogs, search type, mutating intents (#17)
Diffstat (limited to 'Hutch/App/RootView.swift')
-rw-r--r--Hutch/App/RootView.swift12
1 files changed, 6 insertions, 6 deletions
diff --git a/Hutch/App/RootView.swift b/Hutch/App/RootView.swift
index 2e16718..a3f9e7e 100644
--- a/Hutch/App/RootView.swift
+++ b/Hutch/App/RootView.swift
@@ -247,12 +247,12 @@ struct RootView: View {
appState.pendingBuildListFilter = .failed
appState.selectedTab = .builds
- case .search(let query):
+ case .search(let query, let type):
morePath = NavigationPath()
appState.selectedTab = .more
Task {
await settleNavigationTransition()
- morePath.append(MoreRoute.lookup(query: query))
+ morePath.append(MoreRoute.lookup(query: query, type: type))
}
case .lookup:
@@ -260,7 +260,7 @@ struct RootView: View {
appState.selectedTab = .more
Task {
await settleNavigationTransition()
- morePath.append(MoreRoute.lookup(query: nil))
+ morePath.append(MoreRoute.lookup(query: nil, type: nil))
}
case .buildsTab:
@@ -431,7 +431,7 @@ enum MoreDestination: Hashable {
}
enum MoreRoute: Hashable {
- case lookup(query: String?)
+ case lookup(query: String?, type: LookupType?)
case projects
case lists
case pastes
@@ -454,8 +454,8 @@ private struct MoreNavigationRoot: View {
MoreView()
.navigationDestination(for: MoreRoute.self) { route in
switch route {
- case .lookup(let query):
- LookupView(initialQuery: query ?? "")
+ case .lookup(let query, let type):
+ LookupView(initialQuery: query ?? "", initialType: type)
case .projects:
ProjectsListView()
case .lists: