fix logger import

This commit is contained in:
2026-03-11 11:30:07 +03:00
parent 0083d9054e
commit 50001f5ec5
6 changed files with 122 additions and 125 deletions

View File

@@ -573,3 +573,7 @@ All implementation tasks MUST follow the Design-by-Contract specifications:
- [x] D095 [US3] Migrate deprecated native event directives to event attributes in [`+page.svelte`](frontend/src/routes/dashboards/+page.svelte), fix modal propagation handlers, and address targeted a11y warnings in [`automation/+page.svelte`](frontend/src/routes/settings/automation/+page.svelte).
- [x] D096 [US6] Resolve blocking parse error in [`ProtectedRoute.svelte`](frontend/src/components/auth/ProtectedRoute.svelte) by removing HTML comments from script scope and aligning rendering with Svelte 5 (`{@render ...}`).
- [x] D097 [US1] Fix auth backend runtime failure by importing logger in [`AuthRepository`](backend/src/core/auth/repository.py) to eliminate `NameError` during [`POST /api/auth/login`](backend/src/api/auth.py).
- [x] D098 [US6] Fix consolidated settings 500 by replacing invalid `config.payload` access in [`settings router`](backend/src/api/routes/settings.py) with DB-backed `AppConfigRecord` notifications extraction and safe fallback.
- [x] D099 [US6] Diagnose Settings→Automation click crash for Svelte 5: confirmed runes-mode compile blocker in [`automation/+page.svelte`](frontend/src/routes/settings/automation/+page.svelte) (`$:` not allowed) and validated likely runtime null-source in [`PolicyForm.svelte`](frontend/src/lib/components/health/PolicyForm.svelte) where `policy={null}` can trigger `policy.name` access during add-flow initialization.
- [x] D100 [US6] Fix Settings→Automation policy form null crash for Svelte 5 by making [`PolicyForm.svelte`](frontend/src/lib/components/health/PolicyForm.svelte) null-safe for `policy`/`environments` and removing runes `state_referenced_locally` warning pattern from form initialization.