Add HTML5 symbol detail fragment

This commit is contained in:
2026-05-16 22:45:24 +03:00
parent 7304acdba7
commit 0c3953e6bd
3 changed files with 93 additions and 7 deletions
+11 -1
View File
@@ -42,6 +42,7 @@ from api_server.html5 import (
render_html5_project_rows,
render_html5_project_report,
render_html5_review,
render_html5_symbol_detail,
render_html5_import_check,
render_html5_import_job,
render_html5_operation_rows,
@@ -1687,7 +1688,16 @@ async def html5_project_events(project_id: str, once: bool = False) -> Streaming
async def html5_project_symbols(project_id: str, q: str = "") -> Response:
snapshot = _project_snapshot_or_404(project_id)
return Response(
render_html5_symbols(snapshot, q),
render_html5_symbols(snapshot, q, project_id),
media_type="text/html; charset=utf-8",
)
@app.get("/html5/projects/{project_id}/symbols/{lineage_id}/detail")
async def html5_project_symbol_detail(project_id: str, lineage_id: str) -> Response:
references = await project_symbol_references(project_id, lineage_id, direction="both")
return Response(
render_html5_symbol_detail(project_id, references),
media_type="text/html; charset=utf-8",
)