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

オープン
#152 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
1
フォーク
1
平均マージ
4時間 46分
マージ済み PR(30日)
55

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

falbany/ProFiles のほかの issue

falbany/ProFiles の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。