fs-lawrisk/lawrisk/services
Codex Agent fe911592e0 fix: resolve server deployment image 404 errors and enhance admin UI
- Add dedicated image serving API endpoint (/admin/images/<filename>) with security whitelist
- Update image paths from /static/ to /fs-ai-asistant/api/workflow/lawrisk/admin/images/
- Add permit import sample file download endpoint
- Enhance import wizard UI with template/sample preview section
- Add risk count column to unbound permits table
- Filter out "不涉及" (not applicable) theme from theme list
- Improve permit import UX with better visual organization

This ensures images load correctly in server deployments (nginx, gunicorn) by using
the same API prefix as other admin resources, avoiding static file routing issues.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-04 13:51:20 +08:00
..
__init__.py refactor: 重新规划项目结构为标准Python包 2025-10-29 15:31:01 +08:00
auth_service.py Cleanup: Organize project structure and resolve merge conflicts 2025-12-25 19:18:37 +08:00
lawrisk_service.py refactor: 重新规划项目结构为标准Python包 2025-10-29 15:31:01 +08:00
lawrisk_v2_service.py feat: add visibility filter for permit management and fix V2 visibility logic 2025-12-29 15:54:53 +08:00
licensing_repo.py Refine import wizard: simplify permit details, add image zoom, and enhance risk metadata display (legal basis, document no, summary) 2026-01-27 15:33:33 +08:00
template_service.py fix: resolve server deployment image 404 errors and enhance admin UI 2026-02-04 13:51:20 +08:00