fix(web): remove inert global autoMonitorFuture checkbox from Monitor tab

The worker never reads the global monitor.autoMonitorFuture Config key;
auto-monitor-future is governed solely by the per-artist
WatchedArtist.autoMonitorFuture toggle on the Artists page. Removes the
misleading no-op checkbox and its DEFAULTS/test entries.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan
2026-07-13 01:08:05 +02:00
parent a67c552f29
commit e008ee8d13
3 changed files with 1 additions and 12 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ describe("monitor config API", () => {
it("GET returns defaults when nothing is stored", async () => {
const body = await (await GET()).json();
expect(body).toMatchObject({
"monitor.enabled": "false", "monitor.autoMonitorFuture": "false",
"monitor.enabled": "false",
"monitor.pollIntervalHours": "24", "monitor.retryIntervalHours": "6",
"monitor.qualityCutoff": "2", "monitor.upgradeWindowDays": "14",
});
-1
View File
@@ -2,7 +2,6 @@ import { prisma } from "@/lib/db";
const DEFAULTS: Record<string, string> = {
"monitor.enabled": "false",
"monitor.autoMonitorFuture": "false",
"monitor.pollIntervalHours": "24",
"monitor.retryIntervalHours": "6",
"monitor.qualityCutoff": "2",
-10
View File
@@ -278,16 +278,6 @@ export function SettingsForm() {
Automatic monitoring (grab &amp; upgrade)
</label>
</div>
<div className="save-row" style={{ margin: "2px 0 8px" }}>
<label className="toggle">
<input
type="checkbox"
checked={monitorCfg["monitor.autoMonitorFuture"] === "true"}
onChange={(e) => setMon("monitor.autoMonitorFuture", e.target.checked ? "true" : "false")}
/>
Auto-monitor future releases from watched artists
</label>
</div>
<div className="field-grid">
{MONITOR_FIELDS.map(([key, label]) => (
<label key={key} className="field">