From eb3eed5f7a29c3eed5823e5edd3bf7d866a49345 Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Wed, 14 Jan 2026 23:18:35 -0600 Subject: [PATCH] lint, fix repo-card styling --- pkg/appview/db/models.go | 2 +- pkg/appview/templates/components/repo-card.html | 2 +- pkg/atproto/client_test.go | 1 - pkg/hold/oci/xrpc.go | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/appview/db/models.go b/pkg/appview/db/models.go index 9e4bc23..5743196 100644 --- a/pkg/appview/db/models.go +++ b/pkg/appview/db/models.go @@ -131,7 +131,7 @@ type RepositoryWithStats struct { // RepoCardData contains all data needed to render a repository card type RepoCardData struct { OwnerHandle string - OwnerAvatarURL string // Owner's profile avatar URL (fallback when no repo icon) + OwnerAvatarURL string // Owner's profile avatar URL (fallback when no repo icon) Repository string Title string Description string diff --git a/pkg/appview/templates/components/repo-card.html b/pkg/appview/templates/components/repo-card.html index ca114be..8e76dd7 100644 --- a/pkg/appview/templates/components/repo-card.html +++ b/pkg/appview/templates/components/repo-card.html @@ -17,7 +17,7 @@ - LastUpdated: time.Time (optional) - Last push time - RegistryURL: string - Registry URL for docker commands (e.g., "atcr.io") */}} -
+
{{ if .IconURL }} {{ .Repository }} diff --git a/pkg/atproto/client_test.go b/pkg/atproto/client_test.go index 8f15938..b332f72 100644 --- a/pkg/atproto/client_test.go +++ b/pkg/atproto/client_test.go @@ -1043,4 +1043,3 @@ func TestGetBlobServerError(t *testing.T) { t.Error("Expected error from GetBlob, got nil") } } - diff --git a/pkg/hold/oci/xrpc.go b/pkg/hold/oci/xrpc.go index 04dd36b..81d0c47 100644 --- a/pkg/hold/oci/xrpc.go +++ b/pkg/hold/oci/xrpc.go @@ -247,7 +247,7 @@ func (h *XRPCHandler) HandleNotifyManifest(w http.ResponseWriter, r *http.Reques Operation string `json:"operation"` // "push" or "pull", defaults to "push" for backward compatibility Manifest struct { MediaType string `json:"mediaType"` - Config struct { + Config struct { Digest string `json:"digest"` Size int64 `json:"size"` MediaType string `json:"mediaType"`