From 07cd66a0e391f48174381793917d56af2ea5b0ed Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Thu, 2 Apr 2026 23:24:19 +0200 Subject: [PATCH] feat(hosting): add Build POC button with template selector on site detail Draft sites with a linked prospect show a "Build POC from Template" section with: - Template dropdown (generic, restaurant, construction, auto-parts, professional-services) loaded from /admin/hosting/sites/templates API - "Build POC" button that calls POST /admin/hosting/sites/poc/build - Loading state + success message with pages created count - Auto-refreshes site detail after build (status changes to POC_READY) Visible only for draft sites with a prospect_id. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../templates/hosting/admin/site-detail.html | 57 ++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/app/modules/hosting/templates/hosting/admin/site-detail.html b/app/modules/hosting/templates/hosting/admin/site-detail.html index 9a727bb7..88bb00cd 100644 --- a/app/modules/hosting/templates/hosting/admin/site-detail.html +++ b/app/modules/hosting/templates/hosting/admin/site-detail.html @@ -39,6 +39,29 @@ + +
+

Build POC from Template

+
+
+ +
+ +
+

+
+