router.push(sessionUrl(row.sessionId))}
- className="hover:bg-gray-50 cursor-pointer"
- >
- {activeSessionColumns.map((col) => {
- switch (col.key) {
- case "device":
- return (
- |
- {row.deviceName || "—"}
- |
- );
- case "tenant": {
- const friendly = tenantLookup.get(row.tenantId);
- return (
-
- {friendly || `${row.tenantId.substring(0, 8)}…`}
- |
- );
- }
- case "model":
- return (
-
- {row.manufacturer} {row.model}
- |
- );
- case "version":
- return (
-
- {row.appVersion || "—"}
- |
- );
- case "status":
- return (
-
-
+
+
+
+ {activeSessionColumns.map((col) => (
+ |
+ {col.label}
+ |
+ ))}
+
+
+
+ {sessions.items.map((row) => {
+ const entry = row.failureCode ? getErrorCodeEntry(row.failureCode) : null;
+ return (
+ router.push(sessionUrl(row.sessionId))}
+ className="hover:bg-gray-50 cursor-pointer"
+ >
+ {activeSessionColumns.map((col) => {
+ switch (col.key) {
+ case "device":
+ return (
+ |
+ {row.deviceName || "—"}
+ |
+ );
+ case "tenant": {
+ const friendly = tenantLookup.get(row.tenantId);
+ return (
+
- {row.status}
-
- |
- );
- case "attempts":
- return (
-
- {row.attemptNumber || "—"}
- |
- );
- case "failureCode":
- return (
-
- {row.failureCode ? (
-
- {formatErrorCode(row.failureCode)}
-
- ) : (
- —
- )}
- |
- );
- case "duration":
- return (
-
- {formatDuration(row.durationSeconds)}
- {(row.installPassCount ?? 0) > 1 && (
+ {friendly || `${row.tenantId.substring(0, 8)}…`}
+ |
+ );
+ }
+ case "model":
+ return (
+
+ {row.manufacturer} {row.model}
+ |
+ );
+ case "version":
+ return (
+
+ {row.appVersion || "—"}
+ |
+ );
+ case "status":
+ return (
+
- ×{row.installPassCount}
+ {row.status}
- )}
- |
- );
- default:
- return null;
- }
- })}
-
- );
- })}
-
-
+ |
+ );
+ case "attempts":
+ return (
+
+ {row.attemptNumber || "—"}
+ |
+ );
+ case "failureCode":
+ return (
+
+ {row.failureCode ? (
+
+ {formatErrorCode(row.failureCode)}
+
+ ) : (
+ —
+ )}
+ |
+ );
+ case "duration":
+ return (
+
+ {formatDuration(row.durationSeconds)}
+ {(row.installPassCount ?? 0) > 1 && (
+
+ ×{row.installPassCount}
+
+ )}
+ |
+ );
+ default:
+ return null;
+ }
+ })}
+
+ );
+ })}
+