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 @@
1import SwiftUI 1import SwiftUI
2import UniformTypeIdentifiers 2import 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
9 3
10struct ArtifactsView: View { 4struct ArtifactsView: View {
11 let viewModel: RepositoryDetailViewModel 5 let viewModel: RepositoryDetailViewModel
@@ -146,18 +140,6 @@ struct ArtifactsView: View {
146 if isOwnedByCurrentUser, viewModel.tags.isEmpty { 140 if isOwnedByCurrentUser, viewModel.tags.isEmpty {
147 await viewModel.loadReferences() 141 await viewModel.loadReferences()
148 } 142 }
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
161 } 143 }
162 .overlay { 144 .overlay {
163 if viewModel.isLoadingArtifacts, viewModel.referenceArtifacts.isEmpty { 145 if viewModel.isLoadingArtifacts, viewModel.referenceArtifacts.isEmpty {