fix(prospecting): add missing /prospecting prefix and fix broken template macros
Some checks failed
CI / ruff (push) Successful in 11s
CI / validate (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / deploy (push) Has been cancelled
CI / pytest (push) Has started running

The API router was missing prefix="/prospecting", causing all endpoints to
register at /api/v1/admin/stats instead of /api/v1/admin/prospecting/stats.

Also fix 500 errors on prospects, leads, and scan-jobs pages caused by
importing non-existent macro names (table_empty → table_empty_state,
pagination_controls → pagination).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 23:23:09 +01:00
parent 31ced5f759
commit b9b8ffadcb
4 changed files with 10 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
{% extends "admin/base.html" %}
{% from 'shared/macros/headers.html' import page_header %}
{% from 'shared/macros/alerts.html' import loading_state, error_state %}
{% from 'shared/macros/pagination.html' import pagination_controls %}
{% from 'shared/macros/pagination.html' import pagination %}
{% block title %}Scan Jobs{% endblock %}
@@ -86,7 +86,7 @@
</div>
</div>
{{ pagination_controls() }}
{{ pagination() }}
{% endblock %}
{% block extra_scripts %}