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:
@@ -12,7 +12,7 @@ describe("monitor config API", () => {
|
|||||||
it("GET returns defaults when nothing is stored", async () => {
|
it("GET returns defaults when nothing is stored", async () => {
|
||||||
const body = await (await GET()).json();
|
const body = await (await GET()).json();
|
||||||
expect(body).toMatchObject({
|
expect(body).toMatchObject({
|
||||||
"monitor.enabled": "false", "monitor.autoMonitorFuture": "false",
|
"monitor.enabled": "false",
|
||||||
"monitor.pollIntervalHours": "24", "monitor.retryIntervalHours": "6",
|
"monitor.pollIntervalHours": "24", "monitor.retryIntervalHours": "6",
|
||||||
"monitor.qualityCutoff": "2", "monitor.upgradeWindowDays": "14",
|
"monitor.qualityCutoff": "2", "monitor.upgradeWindowDays": "14",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { prisma } from "@/lib/db";
|
|||||||
|
|
||||||
const DEFAULTS: Record<string, string> = {
|
const DEFAULTS: Record<string, string> = {
|
||||||
"monitor.enabled": "false",
|
"monitor.enabled": "false",
|
||||||
"monitor.autoMonitorFuture": "false",
|
|
||||||
"monitor.pollIntervalHours": "24",
|
"monitor.pollIntervalHours": "24",
|
||||||
"monitor.retryIntervalHours": "6",
|
"monitor.retryIntervalHours": "6",
|
||||||
"monitor.qualityCutoff": "2",
|
"monitor.qualityCutoff": "2",
|
||||||
|
|||||||
@@ -278,16 +278,6 @@ export function SettingsForm() {
|
|||||||
Automatic monitoring (grab & upgrade)
|
Automatic monitoring (grab & upgrade)
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</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">
|
<div className="field-grid">
|
||||||
{MONITOR_FIELDS.map(([key, label]) => (
|
{MONITOR_FIELDS.map(([key, label]) => (
|
||||||
<label key={key} className="field">
|
<label key={key} className="field">
|
||||||
|
|||||||
Reference in New Issue
Block a user