fix: resolve CI failures — ESLint unused vars and AI chat tests in CI

Frontend: suppress unused-vars ESLint errors for callback params in
MaintenanceFlowDetailPage and StepLibraryPage.

Backend: add autouse fixture to mock settings.ai_enabled=True in
test_ai_chat.py so tests pass in CI where no ANTHROPIC_API_KEY is set.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-01 14:21:48 -05:00
parent 5b150e29e5
commit f31058fc3f
3 changed files with 14 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ export default function MaintenanceFlowDetailPage() {
load()
}, [id, navigate])
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const handleLaunched = (batchId: string, _count: number) => {
setShowBatchModal(false)
setBannerDismissed(false)

View File

@@ -73,6 +73,7 @@ export default function StepLibraryPage() {
}
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const handleFormSuccess = (_step: Step) => {
setCreateOpen(false)
setEditingStep(null)