+
{t.crawlIntro}
+
+
+
+ {crawlState && !crawlState.configured ? `${t.crawlNotConfigured} (${crawlState.missing.join(', ')})` : null}
+ {crawlState?.configured && crawlState.status === 'running' ? fill(t.crawlRunning, { startedAt: when(crawlState.startedAt) }) : null}
+ {crawlState?.configured && crawlState.status === 'done'
+ ? fill(t.crawlDone, { finishedAt: when(crawlState.finishedAt), newUnknown: crawlState.summary?.newUnknown ?? 0, pages: crawlState.summary?.pages ?? 0, violations: crawlState.summary?.violations ?? 0 })
+ : null}
+ {/* a finished crawl can still carry a note, e.g. "Accept all" not found */}
+ {crawlState?.configured && crawlState.status === 'done' && crawlState.error ? ` ⚠ ${crawlState.error}` : null}
+ {crawlState?.configured && crawlState.status === 'idle' ? t.crawlIdle : null}
+ {crawlState?.configured && crawlState.status === 'failed' ? fill(t.crawlFailed, { error: crawlState.error ?? '' }) : null}
+
+
+
+ ) : null}
+