From f45ace378a2546f1309e38e7db5d307048eeeed9 Mon Sep 17 00:00:00 2001 From: "a.tolmachev" Date: Mon, 30 Mar 2026 01:03:17 +0300 Subject: [PATCH] feat: connect alpine operations and wizard to admin api --- TASKS.md | 2 + apps/ui/html/wizard/index.html | 2 + apps/ui/html/wizard/step2.html | 2 +- apps/ui/index.html | 38 +- apps/ui/js/api.js | 114 +++++ apps/ui/js/catalog.js | 662 ++++++++++++++----------- apps/ui/js/wizard.js | 763 ++++++++++++++++++++++------- apps/ui/js/workspace.js | 144 ++++-- docs/alpine-ui-integration-plan.md | 6 +- 9 files changed, 1213 insertions(+), 520 deletions(-) create mode 100644 apps/ui/js/api.js diff --git a/TASKS.md b/TASKS.md index 643552d..b073fb1 100644 --- a/TASKS.md +++ b/TASKS.md @@ -13,6 +13,8 @@ DoD: - legacy React/Vite артефакты удалены из `apps/ui` - backend для `Operations/Wizard` поддерживает server-side `PATCH`, `DELETE`, `archive`, `category`, `usage_summary`, `agent_refs` - первые экраны Alpine UI можно сажать на реальные catalog/detail/mutation endpoints без расширения backend-контракта +- `Operations` page читает live catalog из `admin-api` и удаляет операции через backend +- `Wizard` использует live create/get/update flow вместо `localStorage` и `sessionStorage` ## Next diff --git a/apps/ui/html/wizard/index.html b/apps/ui/html/wizard/index.html index 8862771..194cecc 100644 --- a/apps/ui/html/wizard/index.html +++ b/apps/ui/html/wizard/index.html @@ -13,6 +13,8 @@ + + diff --git a/apps/ui/html/wizard/step2.html b/apps/ui/html/wizard/step2.html index a5e02a0..b5da464 100644 --- a/apps/ui/html/wizard/step2.html +++ b/apps/ui/html/wizard/step2.html @@ -94,7 +94,7 @@
json / auth-headers - diff --git a/apps/ui/index.html b/apps/ui/index.html index 88c2b92..53f3358 100644 --- a/apps/ui/index.html +++ b/apps/ui/index.html @@ -13,6 +13,7 @@ + @@ -118,23 +119,23 @@
Total operations
-
-
+3 this month
+
+
Active
-
-
+
+
Requests today
-
4,821
-
+12% vs yesterday
+
+
Avg. latency
-
187ms
-
+23ms this week
+
+
@@ -233,15 +234,15 @@ :class="{ 'has-value': filterAgent, open: openDropdown === 'agent' }" @click="toggleDropdown('agent')" > - +