Show push errors in commit dialog

This commit is contained in:
Gregory Schier
2025-02-07 22:20:39 -08:00
parent c6289f13c1
commit 83ab93cebf
2 changed files with 22 additions and 16 deletions

View File

@@ -27,8 +27,8 @@ export function HistoryDialog({ log }: Props) {
<TableBody>
{log.map((l, i) => (
<TableRow key={i}>
<TruncatedWideTableCell>{l.message}</TruncatedWideTableCell>
<TableCell className="font-bold">{l.author.name ?? 'Unknown'}</TableCell>
<TruncatedWideTableCell>{l.message || <em className="text-text-subtle">No message</em>}</TruncatedWideTableCell>
<TableCell>{l.author.name ?? 'Unknown'}</TableCell>
<TableCell className="text-text-subtle">
<span title={l.when}>{formatDistanceToNowStrict(l.when)} ago</span>
</TableCell>