fix(frontend): missing "fetching" status from auto-scrape

When auto-scraping, the dataset status page would say "Dataset Ready" when it was still fetching.
This commit is contained in:
2026-03-21 22:49:16 +00:00
parent b537b5ef16
commit e43eae5afd

View File

@@ -6,7 +6,7 @@ import StatsStyling from "../styles/stats_styling";
const API_BASE_URL = import.meta.env.VITE_BACKEND_URL
type DatasetStatusResponse = {
status?: "processing" | "complete" | "error";
status?: "fetching" | "processing" | "complete" | "error";
status_message?: string | null;
completed_at?: string | null;
};
@@ -73,7 +73,7 @@ const DatasetStatusPage = () => {
};
}, [navigate, parsedDatasetId, status]);
const isProcessing = loading || status === "processing";
const isProcessing = loading || status === "fetching" || status === "processing";
const isError = status === "error";
return (