feat: complete Task 3 - update web UI and handlers for Live/Remix filtering

This commit is contained in:
2026-08-05 17:19:31 +03:00
parent a3b8aa8a74
commit 0dcc86015d
4 changed files with 135 additions and 15 deletions

View File

@@ -58,6 +58,9 @@ func NewServer(cfg *config.ServerConfig, db *database.DB, uiBaseURL string, thre
mux.HandleFunc("/artist/{id}/ignore", s.ignoreOrRestore)
mux.HandleFunc("/artist/{id}/restore", s.ignoreOrRestore)
mux.HandleFunc("/artist/{id}/ignore-singles", s.toggleIgnoreSingles)
mux.HandleFunc("/artist/{id}/ignore-compilations", s.toggleIgnoreCompilations)
mux.HandleFunc("/artist/{id}/ignore-live", s.toggleIgnoreLive)
mux.HandleFunc("/artist/{id}/ignore-remix", s.toggleIgnoreRemix)
mux.HandleFunc("/archive", s.handleArchive)
s.mux = mux
return s
@@ -171,11 +174,11 @@ func (s *Server) sameOrigin(r *http.Request) bool {
// ArtistSummary is the dashboard projection of a single monitored artist and
// its missing-release count.
type ArtistSummary struct {
ID string
Name string
MBID string
MissingCount int
Monitored bool
ID string
Name string
MBID string
MissingCount int
Monitored bool
}
// DashboardData is the view model passed to the dashboard template.