{order.title}
+{customerName(order.customer)}
+-
+
- {window ?? t("noDate")} +
- {addr} +
{t("status")}
-{t("immediate")}
-{t("offlineHint")}
-
+
{mode === "ios" ? t("ios") : t("other")}
+ )} +{t("available")}
+ +
+
+
{t("savedAt", { time: fmtDateTimeShort(data.syncedAt, locale) })}
} + {data.stale && data.orders.length > 0 && ( +
+
{t("notFound")}
} + > + ) : !data.ready ? ( +{t("notReady")}
+ ) : data.orders.length === 0 ? ( +{t("empty")}
+ ) : ( + <> +{t("count", { count: data.orders.length })}
+
+
{customerName(order.customer)}
+
+
{fmtWindow(dateOrNull(order.plannedStart), dateOrNull(order.plannedEnd), locale) ?? t("noDate")}
+{order.technicianNotes}
+{order.site.name}
} + {siteAddress &&{siteAddress}
} +{customerName(order.customer)}
+ {contact && ( ++ {t("contact")}: {contact.name} + {contact.role ? ` (${contact.role})` : ""} +
+ )} + {phone && ( + +{order.scope}
} + {order.description &&{order.description}
} +{t("checklistEmpty")}
:+ {tf(`notes.kind.${n.kind}`)} · {fmtDateTimeShort(n.createdAt, locale)} {n.pending && · {t("pendingBadge")}} +
+{n.text}
+{t("materialsProgress", { done: recorded, total: order.materialPlans.length })}
+{t("noDocuments")}
+ ) : ( +{t("noHistory")}
+ ) : ( ++ {h.workOrderNumber} · {tf(`detail.reportType.${h.reportType}`)} +
++ {fmtDateTimeShort(h.reportDate, locale)} · {h.workOrderTitle} +
+{t("completeOnline")}
} +
+
+
+
{t("sync.waitingForAuth")}
+ + {t("sync.login")} + +{t("sync.pendingOps", { count: s.summary.pendingOps })}
++ {t("sync.pendingUploads", { count: s.summary.pendingUploads })} + {s.summary.uploadBytes > 0 && · {t("sync.uploadSize", { size: fmtBytes(s.summary.uploadBytes, locale) })}} +
+ {uploads.map(([id, percent]) => ( +{t("sync.uploading", { percent })}
+
+
{t("sync.noProblems")}
+ ) : ( +
+
{t(`problem.${problemKey(op)}`)}
+{t("sync.createdAt", { time: fmtDateTimeShort(op.clientCreatedAt, locale) })}
+ {op.status === "conflict" ? ( + + ) : confirmDiscard === op.clientOpId ? ( +{t("sync.discardConfirm")}
+ + +{t("sync.offlineOrders", { count: offlineOrders })}
} + {s.storage ? ( + <> +{t("sync.storageUsage", { usage: fmtBytes(s.storage.usage, locale), quota: fmtBytes(s.storage.quota, locale) })}
+{s.storage.persisted ? t("sync.storagePersisted") : t("sync.storageNotPersisted")}
+ > + ) : ( +{t("sync.storageUnknown")}
+ )} +{t("sync.saveOfflineHint")}
+ + + {t("sync.openOffline")} + +
+
{t("sync.resetConfirm")}
+ {reset.unsent > 0 && ( +
+
+ {t("sync.createdAt", { time: fmtDateTimeShort(op.clientCreatedAt, locale) })} + {op.attempts > 0 && ` · ${t("sync.attempts", { count: op.attempts })}`} + {op.nextAttemptAt && ` · ${t("sync.nextAttempt", { time: fmtTimeShort(op.nextAttemptAt, locale) })}`} +
+ {op.lastError &&{t(`problem.${problemKey(op)}`)}
} +