Commit cf03f72142

cf03f72142feee6b0d04192267d003a06f59637a

parent: 9f246fb2a7

Unsigned

cmc <hello@cleberg.net> · 2026-07-16 06:21 UTC

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.

Layout: unified · split

Hutch/Views/Repositories/ArtifactsView.swift −18
@@ -1,11 +1,5 @@
11import SwiftUI
22import UniformTypeIdentifiers
3import os
4
5#if DEBUG
6/// Temporary: diagnosing why the upload menu swallows taps.
7private let artifactsLogger = Logger(subsystem: "net.cleberg.Hutch", category: "Artifacts")
8#endif
93
104struct ArtifactsView: View {
115 let viewModel: RepositoryDetailViewModel
@@ -146,18 +140,6 @@ struct ArtifactsView: View {
146140 if isOwnedByCurrentUser, viewModel.tags.isEmpty {
147141 await viewModel.loadReferences()
148142 }
149 #if DEBUG
150 // Temporary: diagnosing why the upload menu swallows taps.
151 artifactsLogger.debug(
152 """
153 canManage=\(canManage, privacy: .public) \
154 tags=\(viewModel.tags.count, privacy: .public) \
155 isMutating=\(viewModel.isMutatingArtifact, privacy: .public) \
156 menuDisabled=\(viewModel.isMutatingArtifact || viewModel.tags.isEmpty, privacy: .public) \
157 error=\(viewModel.error ?? "nil", privacy: .public)
158 """
159 )
160 #endif
161143 }
162144 .overlay {
163145 if viewModel.isLoadingArtifacts, viewModel.referenceArtifacts.isEmpty {