- Honor ignore_singles/ignore_compilations at scanner read time so toggles take effect immediately on the dashboard, artist page, and digest instead of waiting for the MusicBrainz cache to expire and prune rows. - Run notifier notify synchronously in the scheduler loop to avoid overlapping read-send-mark runs double-sending the digest. - Show artist name (with ID fallback) on the archive page instead of raw IDs. - Select last_synced in GetAllArtistSettings for contract consistency. - Fix stale startPeriodicSync comment and remove redundant error var. - Remove dead ignored-branch from the artist template (never rendered). - Add tests: CSRF sameOrigin, ArtistCacheFresh, secondary_types round-trip, and scanner type-toggle filtering. - Update Specification.md schema/config to reflect mbid, last_synced, secondary_types, sync.interval, and server.public_url.
49 lines
1.7 KiB
HTML
49 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>NaviWatcher — Archive</title>
|
|
<style>
|
|
body { font-family: system-ui, sans-serif; margin: 2rem; color: #1a1a1a; }
|
|
h1 { margin-bottom: 0.25rem; }
|
|
a { color: #1565c0; }
|
|
table { border-collapse: collapse; width: 100%; }
|
|
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #e2e2e2; }
|
|
th { background: #f6f6f6; }
|
|
.empty { color: #888; font-style: italic; }
|
|
form { display: inline; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p><a href="/">← Dashboard</a></p>
|
|
<h1>Ignored releases</h1>
|
|
|
|
{{ if .Releases }}
|
|
<table>
|
|
<thead>
|
|
<tr><th>Artist</th><th>Title</th><th>Type</th><th>Date</th><th>Action</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range .Releases }}
|
|
<tr>
|
|
<td>{{ if .ArtistName }}{{ .ArtistName }}{{ else }}{{ .ArtistID }}{{ end }}</td>
|
|
<td>{{ .Title }}</td>
|
|
<td>{{ if .Type }}{{ .Type }}{{ else }}<span class="empty">—</span>{{ end }}</td>
|
|
<td>{{ if .ReleaseDate }}{{ .ReleaseDate }}{{ else }}<span class="empty">—</span>{{ end }}</td>
|
|
<td>
|
|
<form method="POST" action="/artist/{{ .ArtistID }}/restore">
|
|
<input type="hidden" name="rgid" value="{{ .RGID }}">
|
|
<button type="submit">Restore</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
{{ else }}
|
|
<p class="empty">No ignored releases.</p>
|
|
{{ end }}
|
|
</body>
|
|
</html>
|