From 9050405b4f33b2b9b70458fcf3e43b80c940eef7 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 12 Apr 2026 00:55:42 -0500 Subject: add shortcuts widgets and power-user workflows --- Hutch/App/DeepLink.swift | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'Hutch/App/DeepLink.swift') diff --git a/Hutch/App/DeepLink.swift b/Hutch/App/DeepLink.swift index e42bd6b..bbf8885 100644 --- a/Hutch/App/DeepLink.swift +++ b/Hutch/App/DeepLink.swift @@ -9,6 +9,16 @@ enum DeepLink: Equatable { case ticket(owner: String, tracker: String, ticketId: Int) /// hutch://builds/ case build(jobId: Int) + /// hutch://builds (tab-level) + case buildsTab + /// hutch://repositories (tab-level) + case repositoriesTab + /// hutch://trackers (tab-level) + case trackersTab + /// hutch://status + case systemStatus + /// hutch://lookup + case lookup /// Attempt to parse a URL into a DeepLink. /// Expected format: hutch:// @@ -38,6 +48,21 @@ enum DeepLink: Equatable { guard let jobId = Int(components[1]) else { return nil } self = .build(jobId: jobId) + case "builds": + self = .buildsTab + + case "repositories": + self = .repositoriesTab + + case "trackers": + self = .trackersTab + + case "status": + self = .systemStatus + + case "lookup": + self = .lookup + default: return nil } -- cgit v1.2.3