td:not(:first-child)]:opacity-60',
+ visibleSource.status === 'disabled' && '[&>td:not(:first-child)]:opacity-60',
)}
>
|
@@ -379,13 +435,13 @@ function SourceRow({
|
- {t(($) => $[`newKnowledge.sourceStatus.${source.status}`])}
+ {t(($) => $[`newKnowledge.sourceStatus.${visibleSource.status}`])}
|
@@ -394,13 +450,27 @@ function SourceRow({
|
- {source.status === 'error' ? (
+ {visibleSource.status === 'syncing' && syncWorkflow ? (
+
+
+ {t(($) => $['newKnowledge.sourceSyncProgress'], {
+ completed:
+ syncWorkflow.progressCompleted +
+ syncWorkflow.progressFailed +
+ syncWorkflow.progressSkipped,
+ total: syncWorkflow.progressTotal ?? '—',
+ })}
+
+ ) : visibleSource.status === 'error' ? (
- {t(($) => $['newKnowledge.sourceSyncFailed'])}
+ {syncWorkflow?.lastErrorCode ?? t(($) => $['newKnowledge.sourceSyncFailed'])}
) : (
(lastSync ?? '—')
@@ -408,7 +478,7 @@ function SourceRow({
|
- {canSync && source.status === 'error' && (
+ {canSync && visibleSource.status === 'error' && (
|