fix(web): the Fingerprinting card's Try again reloads it, and the settings cards type-check (DRY W3)
release / web (push) Failing after 16s
release / go (push) Successful in 1m54s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / govulncheck (push) Canceled after 18s
release / android (push) Canceled after 1m48s
release / integration (push) Canceled after 2m14s

The Fingerprinting card's load-failure line pointed Try again at a load()
that no longer exists, and canSave closing over a value derived from the
form left TypeScript unable to type the form itself. Try again calls
f.load, and canSave states that it returns a boolean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 03:22:39 -05:00
co-authored by Claude Opus 5.5
parent 5f88fe941d
commit f298c44ecd
2 changed files with 3 additions and 3 deletions
@@ -18,7 +18,7 @@
const f = createSettingsForm<FingerprintSettings>({
load: getFingerprintSettings,
save: updateFingerprintSettings,
canSave: () => problems.length === 0,
canSave: (): boolean => problems.length === 0,
savedMessage: 'Fingerprinting settings saved.',
onSaved: () => onSaved?.()
});
@@ -62,7 +62,7 @@
<SettingsGroup title="Fingerprinting" id="fingerprint-settings" hint="How alike two tracks must sound to be one recording. Identical files are always found.">
{#if f.loadError || f.form === null}
<SettingsLoadStatus failed={f.loadError} what="fingerprinting settings" retry={load} />
<SettingsLoadStatus failed={f.loadError} what="fingerprinting settings" retry={f.load} />
{:else}
<SettingRow label="Fingerprint tracks" for="fp-enabled" hint="Off stops decoding audio; unfingerprinted tracks aren't compared.">
<input id="fp-enabled" type="checkbox" role="switch" aria-checked={f.form.enabled} bind:checked={f.form.enabled} class="h-4 w-4 cursor-pointer accent-accent" />
@@ -19,7 +19,7 @@
const f = createSettingsForm<LoudnessSettings>({
load: getLoudnessSettings,
save: updateLoudnessSettings,
canSave: () => valid,
canSave: (): boolean => valid,
savedMessage: 'Loudness analysis settings saved.',
onSaved: () => refreshCoverage()
});