Web UI: live scan progress via the existing /api/scan/events SSE endpoint

Aperta
#152 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, typescript
Ambito
frontend

Direzione di ricerca

Read ActionBar.tsx around the ScanStatusStrip and routes/scan.py lines 175–194 to confirm the status fields sent by the SSE endpoint. Then trace how scan state reaches the UI and add a hook that consumes the existing event stream while scanning. Done means the strip shows the live file count and the event stream closes when the scan finishes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement frontend

Idea

The server already streams scan status every second over SSE (GET /api/scan/events, routes/scan.py:175-194 — {in_progress, count, directory}), but no client consumes it (it's currently flagged as dead surface in #143). Instead of removing it, wire it up: big scans on network shares currently show only a spinner.

Suggested implementation

  • A small useScanProgress() hook: one EventSource("/api/scan/events"), opened while a scan is in flight, closed when in_progress flips false.
  • Feed live "N files so far" into the existing ScanStatusStrip (currently a static label in ActionBar.tsx:79).
  • No server changes needed.

Nice synergy: either this issue or #143's "remove it" resolves the dead-endpoint finding — implementing this one turns dead code into a feature.

Lingua principale
Python
Stelle
1
Fork
1
Merge medio
4h 46m
PR unite (30g)
55

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di falbany/ProFiles

Tutte le issue di falbany/ProFiles

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.