From 88b1e94ef0e223fe702ccbfbbe7c7d4eb14abdd8 Mon Sep 17 00:00:00 2001 From: Karina Kharchenko Date: Mon, 1 Jun 2026 14:18:02 +0300 Subject: [PATCH 1/3] wip(auto-configure): scaffold streaming progress UI (awaiting backend) - ConfigurationStateService: replace the blocking GET on /ai/v2/setup/:id with a fetch + ReadableStream consumer that parses newline-delimited JSON or SSE-style "data:" lines and pushes typed ConfigProgress events to a progress$ BehaviorSubject. Falls back cleanly when the body is empty (current backend behavior). - AutoConfigureComponent: subscribes to progress$ and exposes a signal + computed percent; renders the current step / table name and a determinate progress bar fill when total is known, otherwise keeps the indeterminate look. - Template shows "Configuring " with a "X of N" counter once the backend starts streaming events. Backend endpoint update pending. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../auto-configure.component.html | 17 +++++- .../auto-configure.component.ts | 24 ++++++-- .../services/configuration-state.service.ts | 61 +++++++++++++++++-- 3 files changed, 92 insertions(+), 10 deletions(-) diff --git a/frontend/src/app/components/auto-configure/auto-configure.component.html b/frontend/src/app/components/auto-configure/auto-configure.component.html index 7e818bf08..7383cd366 100644 --- a/frontend/src/app/components/auto-configure/auto-configure.component.html +++ b/frontend/src/app/components/auto-configure/auto-configure.component.html @@ -7,8 +7,21 @@

Configuring your database

We're analyzing your structure and applying the best settings. This is running in the background.

-
-
+ +

+ + {{ p.step || 'Configuring' }} + {{ p.table }} + + {{ p.message }} + + · {{ p.current }} of {{ p.total }} + +

+ +
+