Spaces:
Sleeping
Sleeping
Claude commited on
Commit ·
cf97819
1
Parent(s): 5d54c1c
UI: add topics stage chip between ocr and llm
Browse filesThe progress chip row in the upload page hadn't been updated when I
added topic segmentation. The orchestrator emits a 'topics' stage
event at 76% (between OCR and the per-segment LLM extraction) but
the UI had no chip for it, so the highlight just sat on 'ocr' until
the LLM stage kicked in.
Insert a 'topics' chip in the markup and add it to STAGE_ORDER so
the highlight advances in step with the pipeline.
- app/templates/index.html +2 -1
app/templates/index.html
CHANGED
|
@@ -485,6 +485,7 @@
|
|
| 485 |
<span data-stage="filter">filter</span>
|
| 486 |
<span data-stage="transcript">transcript</span>
|
| 487 |
<span data-stage="ocr">ocr</span>
|
|
|
|
| 488 |
<span data-stage="llm_extract">llm</span>
|
| 489 |
<span data-stage="audio">audio</span>
|
| 490 |
<span data-stage="render">render</span>
|
|
@@ -794,7 +795,7 @@
|
|
| 794 |
const reviewOpenBtn = reviewEl.querySelector('.vgm-review__open');
|
| 795 |
let lastResultUrl = null;
|
| 796 |
|
| 797 |
-
const STAGE_ORDER = ['uploading', 'scene_detect', 'filter', 'transcript', 'ocr', 'llm_extract', 'audio', 'render'];
|
| 798 |
function setStagePill(stage) {
|
| 799 |
const idx = STAGE_ORDER.indexOf(stage);
|
| 800 |
stagePillsEl.querySelectorAll('span').forEach(el => {
|
|
|
|
| 485 |
<span data-stage="filter">filter</span>
|
| 486 |
<span data-stage="transcript">transcript</span>
|
| 487 |
<span data-stage="ocr">ocr</span>
|
| 488 |
+
<span data-stage="topics">topics</span>
|
| 489 |
<span data-stage="llm_extract">llm</span>
|
| 490 |
<span data-stage="audio">audio</span>
|
| 491 |
<span data-stage="render">render</span>
|
|
|
|
| 795 |
const reviewOpenBtn = reviewEl.querySelector('.vgm-review__open');
|
| 796 |
let lastResultUrl = null;
|
| 797 |
|
| 798 |
+
const STAGE_ORDER = ['uploading', 'scene_detect', 'filter', 'transcript', 'ocr', 'topics', 'llm_extract', 'audio', 'render'];
|
| 799 |
function setStagePill(stage) {
|
| 800 |
const idx = STAGE_ORDER.indexOf(stage);
|
| 801 |
stagePillsEl.querySelectorAll('span').forEach(el => {
|