Add HTML5 object context modes
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-17 01:05:22 +03:00
parent 48070f0f70
commit 477a94d302
3 changed files with 99 additions and 21 deletions
+2 -1
View File
@@ -1758,7 +1758,7 @@ async def html5_project_flowchart(
@app.get("/html5/projects/{project_id}/objects/context/{object_name}")
async def html5_project_object_context(project_id: str, object_name: str) -> Response:
async def html5_project_object_context(project_id: str, object_name: str, mode: str = "overview") -> Response:
schema = await get_object_schema(project_id, object_name)
impact = await get_object_impact(project_id, object_name)
access = await get_object_access(project_id, object_name)
@@ -1782,6 +1782,7 @@ async def html5_project_object_context(project_id: str, object_name: str) -> Res
privacy,
integrations,
flowchart,
mode,
)
flowchart_context = render_html5_flowchart(project_id, flowchart, focus=object_name, oob=True)
source_context = render_html5_source(source_node, oob=True) if source_node is not None else ""