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

Abierto
#152 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python, typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
1
Forks
1
Merge medio
4 h 46 min
PR fusionados (30 d)
55

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de falbany/ProFiles

Todos los issues de falbany/ProFiles

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.