mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-30 11:46:36 +08:00
feat: report STRM tree batch progress
This commit is contained in:
@@ -17,6 +17,9 @@ export type GenerateSTRMResult = {
|
||||
updated: number
|
||||
skipped: number
|
||||
cleaned: number
|
||||
total?: number
|
||||
remaining?: number
|
||||
batch_limited?: boolean
|
||||
previewed?: number
|
||||
errors?: string[]
|
||||
items?: Array<{
|
||||
|
||||
@@ -272,8 +272,12 @@ export function StrmGenerateResultPanel({ result }: { result: GenerateSTRMResult
|
||||
</div>
|
||||
<div className="mt-1">
|
||||
{result.previewed ? `预检 ${result.previewed} · ` : ''}
|
||||
{result.total ? `共 ${result.total} · ` : ''}
|
||||
新增 {result.generated} · 更新 {result.updated} · 跳过 {result.skipped} · 清理 {result.cleaned || 0}
|
||||
</div>
|
||||
{result.batch_limited && (
|
||||
<div className="mt-1 text-amber-600">本批已达到上限,剩余 {result.remaining || 0} 个可继续运行。</div>
|
||||
)}
|
||||
{result.errors && result.errors.length > 0 && (
|
||||
<div className="mt-2 text-red-500">
|
||||
失败 {result.errors.length} 条:{result.errors.slice(0, 3).join(';')}
|
||||
|
||||
Reference in New Issue
Block a user