Trim comments to the non-obvious why
Test and deploy / test (push) Successful in 28s
Test and deploy / deploy (push) Successful in 31s

Drop narration, history and restated-code comments across the repo,
keep short ones for security boundaries, upstream quirks and ordering
constraints, and record the convention in CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-24 20:49:03 +00:00
co-authored by Claude Opus 5.5
parent effddd2794
commit 4530cb8dc4
222 changed files with 1173 additions and 5423 deletions
+1 -8
View File
@@ -5,10 +5,6 @@ import (
"github.com/zmb3/spotify/v2"
)
// Converters from the Spotify library's rich types to the deliberately narrow
// GraphQL types — the schema exposes only the handful of fields the home page
// renders.
// mapSpotifyImages keeps just the URLs of a set of album images.
func mapSpotifyImages(images []spotify.Image) []*model.SpotifyImage {
result := make([]*model.SpotifyImage, len(images))
@@ -35,10 +31,7 @@ func mapSpotifyTrack(track *spotify.FullTrack) *model.SpotifyTrack {
}
// mapRecentItems converts recently played history entries.
//
// It rebuilds the track inline instead of calling mapSpotifyTrack because a
// RecentlyPlayedItem holds a SimpleTrack, not the FullTrack that function
// takes — the duplication is forced by the library's types.
// A RecentlyPlayedItem holds a SimpleTrack, so mapSpotifyTrack can't be reused.
func mapRecentItems(items []spotify.RecentlyPlayedItem) []*model.SpotifyRecentItem {
result := make([]*model.SpotifyRecentItem, len(items))
for i, item := range items {