Schliesse das Notebook-Source-Mapping, damit Wizard und Taxonomie ohne leere Kategorie starten.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b276758ee1
commit
d784248e28
13 files changed
+1505
-9
No files matched your search
@@ -60,6 +60,7 @@ export function WizardPage() {
|
||||
});
|
||||
|
||||
const sourceItems = sources.data?.items || [];
|
||||
const sourceRow = sourceItems.find((item) => item.source === source) || sourceItems[0];
|
||||
const needsPicker = sourceItems.filter((item) => item.status === "ACTIVE").length > 1;
|
||||
|
||||
const visible = useMemo(() => criteria.data?.criteria || [], [criteria.data]);
|
||||
@@ -113,6 +114,16 @@ export function WizardPage() {
|
||||
{categoryId && !sources.isLoading && sourceItems.length === 0 ? (
|
||||
<EmptyState>Keine Source für diese Produktkategorie verfügbar.</EmptyState>
|
||||
) : null}
|
||||
{sourceRow?.taxonomy_status === "NOT_LEARNED" && criteria.isLoading ? (
|
||||
<EmptyState>Kriterien für diese Produktkategorie werden gerade vorbereitet.</EmptyState>
|
||||
) : null}
|
||||
{sourceRow?.taxonomy_status === "LEARNING" ? <LoadingState /> : null}
|
||||
{sourceRow?.taxonomy_status === "BLOCKED" ? (
|
||||
<EmptyState>Quelle derzeit nicht automatisiert abfragbar.</EmptyState>
|
||||
) : null}
|
||||
{sourceRow?.taxonomy_status === "BROKEN" ? (
|
||||
<EmptyState>Die Quelle für diese Kategorie ist derzeit unbrauchbar.</EmptyState>
|
||||
) : null}
|
||||
{needsPicker ? (
|
||||
<label>
|
||||
Quelle
|
||||
@@ -128,6 +139,7 @@ export function WizardPage() {
|
||||
<p className="muted">Quelle: {source}</p>
|
||||
) : null}
|
||||
|
||||
{criteria.isError ? <ErrorState message={(criteria.error as Error).message} onRetry={() => criteria.refetch()} /> : null}
|
||||
{criteria.isLoading ? <LoadingState /> : null}
|
||||
{visible.length > 0 ? (
|
||||
<div className="card grid">
|
||||
|
||||
Reference in new issue
Block a user