krz/hutch

an ios client for sourcehut

clone: git clone https://gitbay.org/krz/hutch.git

21be03e6ca54c1a15607faab905b119eda9a548f

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-07-16T06:21:33Z

chore: remove the artifacts debug probe

It did its job: tags=1 confirmed the menu was disabled by its own tags check
while the explanation sat unreachable inside it.
 Hutch/Views/Repositories/ArtifactsView.swift | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/Hutch/Views/Repositories/ArtifactsView.swift b/Hutch/Views/Repositories/ArtifactsView.swift
index 1d9fc6c..69da0d6 100644
--- a/Hutch/Views/Repositories/ArtifactsView.swift
+++ b/Hutch/Views/Repositories/ArtifactsView.swift
@@ -1,11 +1,5 @@
 import SwiftUI
 import UniformTypeIdentifiers
-import os
-
-#if DEBUG
-/// Temporary: diagnosing why the upload menu swallows taps.
-private let artifactsLogger = Logger(subsystem: "net.cleberg.Hutch", category: "Artifacts")
-#endif
 
 struct ArtifactsView: View {
     let viewModel: RepositoryDetailViewModel
@@ -146,18 +140,6 @@ struct ArtifactsView: View {
             if isOwnedByCurrentUser, viewModel.tags.isEmpty {
                 await viewModel.loadReferences()
             }
-            #if DEBUG
-            // Temporary: diagnosing why the upload menu swallows taps.
-            artifactsLogger.debug(
-                """
-                canManage=\(canManage, privacy: .public) \
-                tags=\(viewModel.tags.count, privacy: .public) \
-                isMutating=\(viewModel.isMutatingArtifact, privacy: .public) \
-                menuDisabled=\(viewModel.isMutatingArtifact || viewModel.tags.isEmpty, privacy: .public) \
-                error=\(viewModel.error ?? "nil", privacy: .public)
-                """
-            )
-            #endif
         }
         .overlay {
             if viewModel.isLoadingArtifacts, viewModel.referenceArtifacts.isEmpty {