DRY + stability pass — extension, ML/settings backend, frontend cards (#161) #232
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scoped DRY + stability pass across the three most-recently-touched surfaces, run under process #594 (over-DRY guard + adversarial verify). Milestone #161. No migrations. Net ≈ −87 backend lines + sizable frontend card reductions.
Divergence bugs fixed (not just cleanup)
<SettingNumberField>..fc-section-hnever global).("face","figure")/_l2instead of importing the canonical ones.Consolidations
_sigmoid/_conflict_scores/_insert_presentation_review/_applied_or_rejected;MLSettings.load/.load_sync;AUTO_APPLY_THRESHOLD_MIN/MAX;_recover_stalled_runs; patreon_campaigns_api_first.<SettingToggleRow>+<SettingNumberField>+useSettingSaveacross HeadsCard / CropProposersCard / MLBackfillCard / VideoEmbeddingCard; CSS tokens.fc-section-h/.fc-good/.fc-weakpromoted global (~18 redefs removed).api.webRoot(),exportPlatformCookies(), popupmutedNote()(no version bump — banks for the next ext release).Left alone (over-DRY guard)
Two Python Patreon regexes (different exclusion sets), the JS↔Py regex mirror (cross-runtime), the three auto-apply sweep bodies (by-design guards),
.fc-ok/.fc-bad, TranslationCard (err-alert save) + MLBackfillCard (plain labelled switch).Verification
All commits CI-green on dev (backend 2274, CSS 2275, extension 2276/2277, frontend 2281). New tests:
test_ml_dry_helpers,test_recover_stalled_head_runs. Frontend has no Vue type-check → operator live-reviews the settings cards.🤖 Generated with Claude Code
https://claude.ai/code/session_01NsmJSQxnNxGgtM5Yz4GAqi