integrate edit button into astro site

This commit is contained in:
Davide Scaini
2026-03-29 15:39:11 +02:00
parent 1d3848f85e
commit b0ab7fbe3f
6 changed files with 409 additions and 55 deletions
+5
View File
@@ -403,6 +403,11 @@ async def save_activity(activity_id: str, payload: dict[str, Any]) -> JSONRespon
content += "\n" + description + "\n"
sidecar_path.write_text(content, encoding="utf-8")
# Re-merge so the Astro dev server immediately serves updated data
from bincio.render.merge import merge_all
merge_all(dd)
return JSONResponse({"ok": True, "sidecar": str(sidecar_path)})