Add HTML5 project report fragment
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-16 22:00:58 +03:00
parent da70128fb2
commit 33bfe70a1e
3 changed files with 59 additions and 1 deletions
@@ -40,6 +40,7 @@ from api_server.html5 import (
render_html5_index,
render_html5_project_setup,
render_html5_project_rows,
render_html5_project_report,
render_html5_import_check,
render_html5_import_job,
render_html5_operation_rows,
@@ -1702,6 +1703,15 @@ async def html5_project_source(project_id: str, lineage_id: str) -> Response:
)
@app.get("/html5/projects/{project_id}/report")
async def html5_project_report(project_id: str) -> Response:
report = await project_report(project_id)
return Response(
render_html5_project_report(project_id, report),
media_type="text/html; charset=utf-8",
)
@app.get("/html5/projects/{project_id}/setup")
async def html5_project_setup(project_id: str) -> Response:
setup = _project_setup_response(project_id)